/* ============================================================================
   Ordira — stylesheet
   Design: ledger / despacho editorial. Every section is a leaf of the expediente:
   a card on the desk, with a ruled margin carrying a folio and a petrol tick.

   One hue axis. Every neutral sits at the primary's own OKLCH hue (184°); only
   lightness and chroma vary. The secondary is the ledger's red, matched to the
   primary's lightness, and is spent on the money column alone — never on the
   card furniture.

   One self-hosted font. No external requests, no analytics by default.
   ========================================================================== */

/* Source Serif 4 — variable, subset to latin plus the glyphs Spanish and Catalan need.
   OFL. 120 KB woff2 instead of a 1.2 MB TTF. Self-hosted: no GDPR exposure, no
   render-blocking third-party request. */
@font-face{
  font-family:'Source Serif 4';
  src:url('/assets/fonts/source-serif-4.woff2') format('woff2');
  font-weight:200 900;
  font-style:normal;
  font-display:swap;
}

:root{
  /* --- neutrals · H=184, the primary's own hue --- */
  --sheet:#F7FBFA;   /* the card surface */
  --paper:#E2EDEB;   /* the desk the cards sit on */
  --rule:#C9D8D5;
  --card-line:#A8BEBA;   /* card outline — 1.63:1 on the desk, 1.88:1 on the card */
  --rule2:#7B928E;       /* control borders and the exhibit — 3.17:1 on card */
  --muted:#586966;       /* 5.55:1 on card */
  --ink2:#415451;        /* 7.71:1 */
  --ink:#13211F;         /* 15.92:1 */

  /* --- primary · petrol · H=184 --- */
  --p900:#002521;
  --p700:#094741;
  --p600:#1D5951;        /* links, solid buttons — white on it 8.08:1 */
  --p300:#78C1B6;
  --p100:#CBF1EB;
  --p050:#E7F9F6;

  /* --- secondary · ledger red · H=28 · same lightness as the primary ---
     the money column is its only remaining spend; the steps below are palette
     reference and are not currently in use. */
  --s700:#59302A;
  --s600:#713D36;        /* structural step */
  --s300:#E1A79F;        /* free step — was the ruled margin */
  --s100:#FFE1DC;
  --s-ink:#7A2822;       /* at ink weight: money column, ticks, stamp, warnings */

  --r:2px;
  --u:8px;
  --bar:84px;     /* the pinned masthead's height; the body reserves it. 115px below 720px */

  /* --- type scale --- */
  --t-xs:.75rem;
  --t-sm:.875rem;
  --t-base:1.0625rem;
  --t-md:1.15rem;         /* the lead rung: 17 -> 20.8 is a 22% jump, and intro copy needs one between */
  --t-lg:1.3rem;
  --t-xl-min:1.6rem;      /* the big-figure spans run between --t-lg and this */
  --t-xl-max:1.95rem;
  --t-xl:clamp(var(--t-xl-min),2.2vw,var(--t-xl-max));
  --t-display:clamp(2.05rem,4.6vw,3.05rem);

  --f-serif:'Source Serif 4','Iowan Old Style',Palatino,'Palatino Linotype','Book Antiqua',Georgia,serif;
  --f-sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --f-mono:ui-monospace,SFMono-Regular,'SF Mono',Menlo,Consolas,'Liberation Mono',monospace;

  /* --- the card system --- */
  --card-pad-x:clamp(1.5rem,2.7vw,2.25rem);
  --card-pad-y:clamp(1.15rem,1.8vw,1.55rem);
  --card-gap:calc(var(--u)*1.5);
  --maxw:1080px;   /* card width: sized so the 64ch measure fills its column with a fore-edge,
                      not so wide that prose strands dead space on the right */
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--u)*12)}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font:400 var(--t-base)/1.62 var(--f-sans);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
img,svg{max-width:100%;height:auto}
a{color:var(--p600);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
a:not(.btn):hover{color:var(--p900)}
:focus-visible{outline:2px solid var(--p600);outline-offset:3px;border-radius:var(--r)}

.wrap{max-width:var(--maxw);margin:0 auto;padding:0 clamp(1.25rem,4vw,3.5rem)}

/* ============ masthead: fixed, and the rule that opens the document ============
   The masthead stays put while the expediente scrolls. Two things make that work: the
   bar needs an OPAQUE fill (--paper, the desk) or the cards would show through it, and
   the document's opening rule is now this element's bottom border. It used to be a
   separate `.doc-open` div just below the header, which under a scrolling bar scrolls
   away and leaves the masthead floating with no lower edge.

   ⚠️ FIXED, not sticky — and the difference is not stylistic. A sticky element is painted
   inside the scrolling layer, whose pixel-snap grid rides the fractional scroll offset.
   At a fractional devicePixelRatio (125% display scaling, i.e. 100% browser zoom on such a
   monitor) every PAINTED BOX in the bar — its background, its 2px rule, the button's fill,
   the lockup — rounds against a grid that is moving, so it shifts one device pixel while
   scrolling, while text (subpixel positioned, never snapped) sits still. Measured at DPR
   1.25 and 1.5: sticky jitters, fixed does not, at any DPR. will-change, translateZ,
   contain, filter and isolation do NOT rescue sticky; only leaving the scrolling layer.
   The cost is that the bar no longer reserves its own space, so the body carries it. */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:50;
  background:var(--paper);border-bottom:2px solid var(--ink);
  padding:calc(var(--u)*3) 0 0;
}
/* Out of the flow, so the document reserves the bar's height here — keep --bar in step with
   the measured bar height (84 above 720px, 115 below) in the same commit that changes it. */
body{padding-top:var(--bar)}
.site-header .wrap{display:block;padding-bottom:calc(var(--u)*2.5)}
/* The masthead wraps onto three rows on a phone, and a bar that tall would eat a fifth
   of the viewport. Tighten its own padding there, and give an in-page jump room to clear
   it: the layout is untouched, only the bar's height.
   ⚠️ This must stay AFTER the two rules above. A media query adds no specificity, so a
   later .site-header rule of equal weight would win and the padding would never shrink. */
@media(max-width:719px){
  :root{--bar:115px}      /* the masthead wraps here — the measured bar height */
  html{scroll-padding-top:calc(var(--u)*20)}
  .site-header{padding-top:calc(var(--u)*1.5)}
  .site-header .wrap{padding-bottom:calc(var(--u)*1.5)}
}
.masthead{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--u)*3);flex-wrap:wrap}
/* The CTA is a sibling of the nav rather than a child of it, so a phone can order it beside
   the brand (see the breakpoint block by the buttons). On wider screens this auto margin keeps
   the links grouped with the CTA at the right edge — exactly where they sat while the CTA was
   still the nav's last child. */
.masthead>.nav{margin-left:auto}
.brand{font:600 1.45rem/1 var(--f-serif);letter-spacing:-.012em;color:var(--ink);text-decoration:none}
.brand em,.brand span{font-style:normal;color:var(--p600)}
/* The header mark. Sized to the CTA's own 38px (btn-sm min-height), which is what sets the
   masthead's height — so the bar is exactly as tall as it was with the text wordmark and
   nothing below it shifts. `width:auto` keeps the lockup's 2000:830 ratio. */
.brand img{display:block;height:38px;width:auto}
.nav{display:flex;gap:calc(var(--u)*2.5);align-items:center;flex-wrap:wrap}
.nav a:not(.btn){
  font:500 var(--t-sm)/1 var(--f-sans);color:var(--ink2);text-decoration:none;
  padding:calc(var(--u)*.75) 0;border-bottom:1px solid transparent;
  transition:color .14s ease-out,border-color .14s ease-out;
}
/* The section you are in. Persistent, and twice the weight of the hover rule that follows it, so
   it still reads as "here" while a sibling is hovered. The inset shadow carries the second pixel:
   `border-bottom-width:2px` would add a pixel of height and knock this link off the baseline the
   other two sit on — and the one thing the masthead may not do is change height per page. */
.nav a:not(.btn)[aria-current="page"]{
  color:var(--ink);
  border-bottom-color:var(--p600);
  box-shadow:inset 0 -1px 0 0 var(--p600);
}
.nav a:not(.btn):hover{color:var(--p900);border-bottom-color:var(--p600)}

/* ============ buttons — every state defined ============ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5em;
  min-height:44px;padding:0 1.15rem;border:1px solid transparent;border-radius:var(--r);
  font:600 var(--t-sm)/1 var(--f-sans);text-decoration:none;cursor:pointer;
  transition:background-color .14s ease-out,border-color .14s ease-out,color .14s ease-out;
}
.btn-sm{min-height:38px;padding:0 .9rem}
/* solid — white text; the background only ever gets DARKER */
.btn-solid{background:var(--p600);border-color:var(--p600);color:#fff}
.btn-solid:hover{background:var(--p700);border-color:var(--p700);color:#fff}
.btn-solid:active{background:var(--p900);border-color:var(--p900);color:#fff}
.btn-solid:disabled{background:var(--p100);border-color:var(--p100);color:var(--p700);cursor:not-allowed}
/* line — dark text; the background only ever gets LIGHTER */
.btn-line{background:transparent;border-color:var(--rule2);color:var(--p600)}
.btn-line:hover{background:var(--p050);border-color:var(--p600);color:var(--p700)}
.btn-line:active{background:var(--p100);border-color:var(--p700);color:var(--p900)}
.btn-line:disabled{border-color:var(--rule);color:var(--muted);cursor:not-allowed}

/* ============ the masthead on a phone ============
   The bar carries four controls: the brand, three nav links and the CTA. On a phone the
   links plus a full-width «Prueba gratis» do not fit on one row with the brand, so the
   button used to land alone on a THIRD row and the pinned bar ate a fifth of the viewport
   (158px tall at 360px wide). Below 720px the CTA moves up beside the brand and the links
   take their own row; the label shortens to «Prueba» so the button stays compact.
   Both labels are in the markup and the link carries aria-label, so the accessible name is
   «Prueba gratis» at every width — a shortened visible label is still a label-in-name match.
   ⚠️ Must stay AFTER the .masthead/.nav rules above: a media query adds no specificity, so
   an equal-weight earlier rule would win — the same trap the .site-header override documents. */
.cta-short{display:none}
@media(max-width:719px){
  .masthead>.nav{order:2;flex:1 1 100%}
  .masthead>.btn{order:1}
  .cta-long{display:none}
  .cta-short{display:inline}
}

/* The submit gate. A DISABLED control takes no pointer events, so the reason for
   the gate cannot hang off the button itself (a `title` there is unreliable and a
   real tooltip would never fire): it hangs off the wrapper, which is not disabled.
   The reason node is held at opacity 0 rather than `visibility:hidden`, because it
   is also a live region — `visibility` would drop it out of the accessibility tree
   and the reason would exist only for people who can hover. */
.btn-wrap{position:relative;display:inline-flex}
.btn-why{
  position:absolute;left:0;bottom:calc(100% + .55rem);z-index:3;
  width:max-content;max-width:30ch;
  background:var(--ink);color:var(--sheet);
  font:400 var(--t-xs)/1.5 var(--f-mono);letter-spacing:.02em;
  padding:.5rem .7rem;border-radius:var(--r);
  opacity:0;transition:opacity .12s ease-out;pointer-events:none;
}
.btn-wrap.is-blocked:hover .btn-why{opacity:1}

/* ============ one card per section, with the ruled margin inside ============ */
.doc{
  display:grid;grid-template-columns:minmax(0,1fr);
  background:var(--sheet);border:1px solid var(--card-line);border-radius:var(--r);
  padding:var(--card-pad-y) var(--card-pad-x);margin-bottom:var(--card-gap);
}
.doc-head{display:block;padding:0 0 calc(var(--u)*1.5)}
.doc-col{min-width:0}
@media(min-width:980px){
  .doc{grid-template-columns:9.5rem minmax(0,1fr)}
  .doc-head{padding:0;text-align:right}
  .doc-col{border-left:1px solid var(--p300);padding-left:2.5rem}
}
/* the petrol tick crosses the ruled margin at each section head */
.fol{display:inline-flex;align-items:center;gap:.55rem;font:400 var(--t-xs)/1 var(--f-mono);letter-spacing:.08em;color:var(--muted)}
.fol::after{content:'';display:block;width:11px;height:1px;background:var(--p600);position:relative;z-index:1}
@media(min-width:980px){
  .doc-head{text-align:right}
  .fol::after{margin-right:-6px}
}

/* ============ type ============ */
h1{font:600 var(--t-display)/1.08 var(--f-serif);letter-spacing:-.022em;margin:0 0 calc(var(--u)*3);max-width:23ch;text-wrap:balance}
h2{font:600 var(--t-xl)/1.2 var(--f-serif);letter-spacing:-.016em;margin:0 0 calc(var(--u)*2.25);max-width:30ch;text-wrap:balance}
h3{font:600 var(--t-lg)/1.35 var(--f-serif);letter-spacing:-.01em;margin:calc(var(--u)*4) 0 calc(var(--u)*1.5);text-wrap:balance}
p{margin:0 0 calc(var(--u)*2.25);max-width:64ch;text-wrap:pretty}
p:last-child{margin-bottom:0}
strong{font-weight:650;color:var(--ink)}
.standfirst,.lead{font:400 clamp(var(--t-md),1.9vw,var(--t-lg))/1.58 var(--f-sans);color:var(--ink2);max-width:50ch;margin-bottom:calc(var(--u)*4);text-wrap:pretty}
.mono{font:400 var(--t-xs)/1.6 var(--f-mono);letter-spacing:.07em;color:var(--muted)}
.meta-line,.btn-note{font:400 var(--t-xs)/1.6 var(--f-mono);letter-spacing:.07em;color:var(--muted);margin:calc(var(--u)*2.5) 0 0}
/* A muted aside in prose. Sans, not mono: the mono stack is for figures and refs, never prose. */
.note{font:400 var(--t-sm)/1.6 var(--f-sans);color:var(--muted)}
.note p{margin:calc(var(--u)*1.5) 0 0}
.note ul{margin:calc(var(--u)*1.5) 0 0;padding-left:1.1em}
.note li{margin-bottom:calc(var(--u)*.75)}
.note{color:var(--ink2)}
.cta-row,.btn-row{display:flex;gap:calc(var(--u)*1.5);flex-wrap:wrap;align-items:center}
.breadcrumb{font:400 var(--t-xs)/1.6 var(--f-mono);letter-spacing:.07em;color:var(--muted);margin:0 0 calc(var(--u)*2)}
.breadcrumb a{color:var(--muted);text-decoration:none;border-bottom:1px solid var(--rule)}
.breadcrumb a:hover{color:var(--p900);border-bottom-color:var(--p600)}

/* ============ the exhibit: an invoice being parsed ============ */
.exhibit{margin-top:calc(var(--u)*5);border:1px solid var(--rule2);border-radius:var(--r);background:#fff;position:relative;isolation:isolate;padding:calc(var(--u)*3.5) calc(var(--u)*3.5) calc(var(--u)*3)}
.caption{display:block;font:400 var(--t-xs)/1.5 var(--f-mono);letter-spacing:.06em;color:var(--muted);border-bottom:1px solid var(--rule);padding-bottom:calc(var(--u)*1.5);margin-bottom:calc(var(--u)*2);max-width:calc(100% - 9rem)}
table.ledger{width:100%;border-collapse:collapse;font:400 var(--t-sm)/1.7 var(--f-mono);font-variant-numeric:tabular-nums;margin:0}
table.ledger th{text-align:left;font:600 var(--t-xs)/1.4 var(--f-sans);letter-spacing:.05em;color:var(--muted);padding:0 calc(var(--u)*1) calc(var(--u)*1);border-bottom:1px solid var(--rule2)}
table.ledger td{padding:calc(var(--u)*1.125) calc(var(--u)*1);border-bottom:1px dotted var(--rule)}
table.ledger td:last-child{text-align:right}
table.ledger tr[data-state="pending"] td{color:var(--muted)}
/* the money column: the one place the secondary ink is used as type */
table.ledger tr.total td{border-top:1px solid var(--rule2);border-bottom:0;padding-top:calc(var(--u)*1.5);font-weight:700}
table.ledger tr.total td:last-child{color:var(--s-ink)}
.ex-foot{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--u)*2);flex-wrap:wrap;margin-top:calc(var(--u)*3)}
.status{font:400 var(--t-xs)/1.6 var(--f-mono);color:var(--muted);font-variant-numeric:tabular-nums}
.status.ok{color:var(--p700);font-weight:600}
.stamp{
  position:absolute;top:calc(var(--u)*2.5);right:calc(var(--u)*3);z-index:2;
  border:2px solid var(--s-ink);background:var(--s100);color:var(--s-ink);border-radius:var(--r);
  font:700 var(--t-xs)/1 var(--f-mono);letter-spacing:.12em;padding:6px 8px;
  transform:rotate(-7deg);opacity:0;transition:opacity .2s ease-out;
}
.stamp.on{opacity:1}

/* ============ in-card lists: dotted data rows, never rules ============ */
.rules{list-style:none;padding:0;margin:calc(var(--u)*2.5) 0 0;max-width:66ch}
.rules li{display:grid;gap:calc(var(--u)*.5);padding:calc(var(--u)*2) 0;border-top:1px dotted var(--rule)}
.rules li:first-child{border-top:0;padding-top:0}
.rules li:last-child{border-bottom:1px dotted var(--rule)}
@media(min-width:640px){.rules li{grid-template-columns:13.5rem minmax(0,1fr);gap:calc(var(--u)*3)}}
.rules .k{font:600 var(--t-base)/1.5 var(--f-serif)}
.rules .v{color:var(--ink2);text-wrap:pretty}
.rules .v a{display:inline-block;margin-top:calc(var(--u)*.5);font-size:var(--t-sm);font-weight:600;text-decoration:none;border-bottom:1px solid var(--rule2);transition:border-color .14s ease-out,color .14s ease-out}
.rules .v a:hover{border-bottom-color:var(--p600);color:var(--p900)}
/* a plain bullet list, rendered as ledger dashes rather than UA dots */
.clist{list-style:none;padding:0;margin:0 0 calc(var(--u)*2.25);max-width:64ch}
.clist li{position:relative;padding-left:calc(var(--u)*2.5);margin-bottom:calc(var(--u)*1.25);color:var(--ink2)}
.clist li::before{content:'';position:absolute;left:0;top:.72em;width:9px;height:1px;background:var(--s-ink)}
/* A bare list inside a card renders as ledger dashes, not UA bullets.
   :where() keeps specificity at (0,1,x) so .rules and .price-card can override —
   they are declared later in this file, which wins the tie. */
.doc-col :where(ul:not([class])){list-style:none;padding:0;margin:0 0 calc(var(--u)*2.25);max-width:64ch}
.doc-col :where(ul:not([class])) li{position:relative;padding-left:calc(var(--u)*2.5);margin-bottom:calc(var(--u)*1.25);color:var(--ink2)}
.doc-col :where(ul:not([class])) li::before{content:'';position:absolute;left:0;top:.72em;width:9px;height:1px;background:var(--s-ink)}
.doc-col :where(ol:not([class])){margin:0 0 calc(var(--u)*2.25);padding-left:calc(var(--u)*2.5);max-width:64ch}
.updated{font:400 var(--t-xs)/1.6 var(--f-mono);letter-spacing:.06em;color:var(--muted);margin-top:calc(var(--u)*3.5)}

ol.steps{counter-reset:s;list-style:none;padding:0;margin:calc(var(--u)*2.5) 0 0;max-width:66ch}
ol.steps li{counter-increment:s;position:relative;padding:calc(var(--u)*2.25) 0 calc(var(--u)*2.25) calc(var(--u)*5.5);border-top:1px dotted var(--rule)}
ol.steps li:first-child{border-top:0;padding-top:calc(var(--u)*.5)}
ol.steps li:last-child{border-bottom:1px dotted var(--rule)}
ol.steps li::before{content:counter(s,decimal-leading-zero);position:absolute;left:0;top:calc(var(--u)*2.5);font:600 var(--t-sm)/1 var(--f-mono);color:var(--p600);letter-spacing:.04em}
ol.steps li:first-child::before{top:calc(var(--u)*.75)}
ol.steps strong{display:block;font:600 var(--t-base)/1.4 var(--f-serif);margin-bottom:calc(var(--u)*.75)}

.faq{max-width:66ch}
.faq details{border-top:1px dotted var(--rule)}
.faq details:first-of-type{border-top:0}
.faq details:last-of-type{border-bottom:1px dotted var(--rule)}
.faq summary{cursor:pointer;list-style:none;padding:calc(var(--u)*2.25) 0;font:600 var(--t-base)/1.5 var(--f-serif);text-wrap:pretty}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";float:right;color:var(--p600);font:400 var(--t-base)/1 var(--f-mono)}
.faq details[open] summary::after{content:"–"}
.faq details p{margin:0 0 calc(var(--u)*2.25);color:var(--ink2);max-width:64ch}

/* ============ callouts ============ */
.callout{
  border-left:2px solid var(--p600);background:var(--p050);
  padding:calc(var(--u)*2) calc(var(--u)*2.5);margin:calc(var(--u)*2.5) 0;border-radius:0 var(--r) var(--r) 0;
}
.callout p{max-width:62ch;color:var(--ink2)}
.callout p:last-child{margin-bottom:0}
.callout.warn{border-left-color:var(--s-ink);background:var(--s100)}
.callout.warn p,.callout.warn strong{color:var(--s700)}

/* ============ generic tables render as ledgers ============ */
table{width:100%;border-collapse:collapse;margin:calc(var(--u)*2.5) 0;font-size:var(--t-sm);font-variant-numeric:tabular-nums}
th,td{text-align:left;padding:calc(var(--u)*1.375) calc(var(--u)*1.25);border-bottom:1px dotted var(--rule);vertical-align:top}
th{font:600 var(--t-xs)/1.4 var(--f-sans);letter-spacing:.05em;color:var(--muted);border-bottom:1px solid var(--rule2)}
td strong{display:block;font:600 var(--t-base)/1.5 var(--f-serif)}
table tr:last-child th,table tr:last-child td{border-bottom:0}

/* ============ the ROI calculator ============ */
.calc{border:1px solid var(--rule2);border-radius:var(--r);background:#fff;padding:calc(var(--card-pad-x)*.85);margin:calc(var(--u)*2.5) 0}
.calc-row{display:flex;flex-wrap:wrap;gap:calc(var(--u)*2);align-items:flex-end}
.calc-field{flex:1 1 190px}
.calc-field label{display:block;font:600 var(--t-xs)/1.5 var(--f-sans);letter-spacing:.05em;color:var(--muted);margin-bottom:calc(var(--u)*.75)}
.calc-field input{
  width:100%;padding:calc(var(--u)*1.25) calc(var(--u)*1.5);
  border:1px solid var(--rule2);border-radius:var(--r);background:var(--sheet);
  font:400 var(--t-base)/1.3 var(--f-mono);font-variant-numeric:tabular-nums;color:var(--ink);
  transition:border-color .14s ease-out;
}
.calc-field input:hover{border-color:var(--p600)}
.calc-field input:focus{border-color:var(--p600);outline:2px solid var(--p600);outline-offset:2px}
/* The contact form's controls, same treatment as the calculator's. They shipped as inline
   styles: a Tailwind border (#e2e8f0), an 8px radius where --r is 2px, and a label at the
   body size next to this one's 12px caps. */
.field label{display:block;font:600 var(--t-xs)/1.5 var(--f-sans);letter-spacing:.05em;color:var(--muted);margin-bottom:calc(var(--u)*.75)}
.field input,.field select,.field textarea{
  width:100%;padding:calc(var(--u)*1.25) calc(var(--u)*1.5);
  border:1px solid var(--rule2);border-radius:var(--r);background:var(--sheet);color:var(--ink);
  font:inherit;   /* --t-base, and never under 16px: that is where iOS zooms a focused control */
  transition:border-color .14s ease-out;
}
.field input:hover,.field select:hover,.field textarea:hover{border-color:var(--p600)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--p600);outline:2px solid var(--p600);outline-offset:2px}
.form-actions{margin-top:calc(var(--u)*1)}
.form-status{font-weight:600}
.calc-out{margin-top:calc(var(--u)*2.5);padding-top:calc(var(--u)*2.5);border-top:1px solid var(--rule2)}
.calc-big{font:600 clamp(var(--t-lg),3vw,var(--t-xl-max))/1.15 var(--f-serif);color:var(--s-ink);letter-spacing:-.015em;font-variant-numeric:tabular-nums}
.calc-sub{font:400 var(--t-xs)/1.6 var(--f-mono);color:var(--muted);margin-top:calc(var(--u)*1);max-width:60ch}

/* ============ pricing: comparison boxes inside a card ============ */
.grid{display:grid;gap:calc(var(--u)*2);margin-top:calc(var(--u)*2.5)}
/* the line that closes a pricing block reads as the block's own footnote */
.grid + p{margin-top:calc(var(--u)*2.5)}
/* three columns only when there is room for readable measure; two columns earlier */
@media(min-width:900px){.grid-3{grid-template-columns:repeat(3,1fr)}}
@media(min-width:720px){.grid-2{grid-template-columns:repeat(2,1fr)}}
.price-card{background:#fff;border:1px solid var(--rule);border-radius:var(--r);padding:calc(var(--u)*2.5)}
.price-card.featured{border-color:var(--s-ink)}
.price-card h2{margin:0 0 calc(var(--u)*1);font-size:var(--t-md)}
/* Safe default that always fits a 3-up card. */
.price{font:600 clamp(var(--t-lg),2vw,var(--t-xl-max))/1.1 var(--f-serif);color:var(--ink);letter-spacing:-.015em;margin:calc(var(--u)*.5) 0;font-variant-numeric:tabular-nums}
/* The price scales with its CARD, not the viewport: at 3-up the card is a fraction of the
   window, so a vw-based clamp wraps the amount onto a second line. `11cqi` lets the type
   grow to 1.95rem (--t-xl's ceiling) when the card is wide and shrink until it fits, down to
   --t-lg. Both ends of the span are rungs, the middle is the card's own width. */
@supports (container-type:inline-size){
  .price-card{container-type:inline-size}
  .price{font-size:clamp(var(--t-lg),11cqi,var(--t-xl-max))}
}
.price-card.featured .price{color:var(--s-ink)}
.price small{display:block;font:400 var(--t-xs)/1.5 var(--f-mono);letter-spacing:.05em;color:var(--muted);margin-top:calc(var(--u)*.75)}
.price-card ul{list-style:none;padding:0;margin:calc(var(--u)*2) 0 0;font-size:var(--t-sm)}
.price-card li{position:relative;padding-left:calc(var(--u)*2.5);padding-top:calc(var(--u)*1);margin-bottom:0;color:var(--ink2);border-top:1px dotted var(--rule)}
.price-card li:first-child{border-top:0;padding-top:0}
.price-card li::before{content:'';position:absolute;left:0;top:1.2em;width:9px;height:1px;background:var(--s-ink)}
.price-card li:first-child::before{top:.72em}
.price-card .btn{margin-top:calc(var(--u)*2.5)}

/* ============ the one statement ============ */
.statement .mark{width:2.5rem;height:2px;background:var(--s-ink);margin-bottom:calc(var(--u)*2.5)}
.statement blockquote{margin:0 0 calc(var(--u)*3.5);font:400 clamp(var(--t-lg),2.5vw,var(--t-xl-min))/1.45 var(--f-serif);letter-spacing:-.012em;color:var(--ink);max-width:40ch;text-wrap:balance}

/* ============ footer ============ */
.site-footer{padding:calc(var(--u)*4) 0 calc(var(--u)*4);font-size:var(--t-sm);color:var(--ink2)}
.foot,.footer-grid{display:grid;gap:calc(var(--u)*3.5)}
@media(min-width:820px){.foot,.footer-grid{grid-template-columns:2fr 1fr 1fr}}
.site-footer strong{display:block;font:600 var(--t-base)/1.4 var(--f-serif);color:var(--ink);margin-bottom:calc(var(--u)*1)}
.site-footer a{color:var(--ink2);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .14s ease-out,color .14s ease-out}
.site-footer a:hover{color:var(--p900);border-bottom-color:var(--p600)}
.colophon{font:400 var(--t-xs)/1.6 var(--f-mono);letter-spacing:.06em;color:var(--muted);max-width:var(--maxw);margin:0 auto;padding:0 clamp(1.25rem,4vw,3.5rem) calc(var(--u)*4)}

.skip{position:absolute;left:-9999px}
.sr-only{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.skip:focus{left:12px;top:12px;background:#fff;padding:12px;z-index:100;border-radius:var(--r)}
.warn{color:var(--s-ink)}

@media(prefers-reduced-motion:reduce){*{transition-duration:1ms !important;animation:none !important}}
@media print{.doc{border:0;margin:0;padding:0}.site-header,.site-footer,.stamp,.btn{display:none}body{background:#fff}}
