/* ============================================================================
   CareerFactoryAI design system.

   Rules this file enforces, because the last version broke all of them:
   - ONE container width and ONE gutter. Every band uses them, so left edges
     line up down the whole page.
   - Columns are FIXED counts per breakpoint (3 -> 2 -> 1), never auto-fit.
     auto-fit is what made rows go ragged with an orphan card hanging off.
   - Cards in a row are equal height by construction, and their CTAs sit on a
     shared baseline because the body flexes and the footer is pushed down.
   - One spacing scale, one type scale. No ad-hoc margins in templates.
   ========================================================================== */

:root {
  /* colour ---------------------------------------------------------------
     Green, white, black. Nothing else. Greys are neutral, not colour.
     Verdict states are told apart by WEIGHT, not hue:
       apply = solid green · your call = green outline · don't = black, struck. */
  --brand:      #0d7a52;
  --brand-dark: #0a6444;
  --brand-deep: #063d29;
  --brand-light:#6cb897;
  --brand-tint: #e7f3ed;
  --brand-line: #b9dcc9;

  --ink:        #0a0a0a;
  --ink-2:      #3b4340;
  --muted:      #79837f;
  --line:       #e3e7e5;
  --line-soft:  #eef1f0;
  --bg:         #ffffff;
  --bg-alt:     #f6f8f7;
  --card:       #ffffff;
  --black:      #0a0a0a;

  /* space --------------------------------------------------------------- */
  --gutter: 24px;
  --maxw:   1120px;
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  /* form ---------------------------------------------------------------- */
  --radius:    2px;
  --radius-sm: 2px;
  --shadow:    0 1px 2px rgba(15,22,19,.05), 0 4px 16px rgba(15,22,19,.045);
  --shadow-lg: 0 2px 6px rgba(15,22,19,.06), 0 18px 44px rgba(15,22,19,.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16.5px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* type scale ---------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 var(--s3); line-height: 1.18; letter-spacing: -.021em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 1.4rem + 3.2vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; word-spacing: .06em; line-height: 1.04; }
.h1-sub { display: block; margin-top: .35em; font-size: .48em; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--brand-dark); }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.6rem); font-weight: 800; letter-spacing: -.034em; line-height: 1.06; }
h3 { font-size: 1.09rem; font-weight: 750; letter-spacing: -.016em; }
h4 { font-size: .98rem; }
p  { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }
a  { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
strong { color: var(--ink); font-weight: 650; }
.lede { font-size: clamp(1.05rem, .98rem + .34vw, 1.24rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.note  { font-size: .875rem; color: var(--muted); }

/* ---------------------------------------------------------------------- */
/* layout primitives — the whole page hangs off these                     */
/* ---------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 68ch; }

/* A band is one full-width horizontal slice. Uniform padding everywhere. */
.band { padding-block: var(--s9); border-top: 1px solid var(--line-soft); }
.band:first-of-type { border-top: 0; }
.band-alt  { background: var(--bg-alt); }
.band-tint { background: var(--brand-tint); border-color: var(--brand-line); }
.band-black {
  background: var(--black); color: rgba(255,255,255,.78); border-top: 0;
}
.band-black :is(h1, h2, h3, h4) { color: #fff; }
.band-black .eyebrow { color: var(--brand); }
.band-black .band-head p { color: rgba(255,255,255,.62); }
.band-black .note, .band-black .muted { color: rgba(255,255,255,.55); }
.band-black a { color: #fff; }
.band-black .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.band-black .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.band-black .ticks li { border-color: rgba(255,255,255,.14); color: rgba(255,255,255,.8); }
.band-black .ticks li::before { border-color: var(--brand); }
.band-black .card {
  background: transparent; border-color: rgba(255,255,255,.16);
}
.band-black .card > p { color: rgba(255,255,255,.7); }
.band-black .card-num { background: var(--brand); color: #fff; border-color: var(--brand); }
.band-black .card-foot { border-color: rgba(255,255,255,.14); }
.band-tight { padding-block: var(--s8); }
.band:last-of-type { border-bottom: 0; }

/* Every band leads with the same head block, so headings line up page-wide. */
.band-head { max-width: 62rem; margin-bottom: var(--s6); }
.band-head p, .band-head .lede { max-width: 62ch; }
.band-head p { color: var(--muted); margin-bottom: 0; }
.band-head.center { margin-inline: auto; text-align: center; }
/* text-align centres the words INSIDE the paragraph's box, but the box itself
   was still pinned left by its 62ch cap — so the line sat left of the heading
   it was supposed to sit under. Centre the box too. */
.band-head.center > * { margin-inline: auto; }

.eyebrow {
  display: inline-block; margin-bottom: var(--s4);
  font-size: .715rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow-pill { background: var(--brand-tint); border: 1px solid var(--brand-line); padding: 5px 12px; border-radius: 999px; letter-spacing: .07em; }

/* FIXED column counts. Never auto-fit — that is what made rows ragged. */
.cols { display: grid; gap: var(--s5); align-items: stretch; }
.cols-align, .plans { row-gap: 0; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); }
}

/* Split: text beside a panel, aligned at the top. */
.split { display: grid; gap: var(--s7); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }

/* ---------------------------------------------------------------------- */
/* header / nav                                                            */
/* ---------------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: var(--s5); min-height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .95rem;
  letter-spacing: -.04em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.12; }
.logo-name { font-weight: 750; font-size: 1.02rem; letter-spacing: -.02em; }
.logo-sub  { font-size: .705rem; font-weight: 550; color: var(--muted); letter-spacing: .005em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s5); }
.nav a { font-size: .935rem; color: var(--muted); text-decoration: none; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.nav a.on { color: var(--ink); font-weight: 600; }
/* The CTA is a .btn that happens to live in the nav. `.nav a` outranks `.btn`
   on specificity, so without these the primary button inherited the nav's grey
   link colour and went near-black on dark green when hovered — unreadable.
   Any .btn dropped inside a container that styles its links needs this. */
.nav a.btn, .nav a.btn:hover, .nav a.btn:focus { color: #fff; }
.nav a.btn.btn-ghost, .nav a.btn.btn-ghost:hover { color: var(--ink); }
.nav-cta { margin-left: var(--s2); }
@media (max-width: 860px) {
  /* The wrapped nav is two or three rows tall; pinned, it eats a phone screen. */
  .topbar { position: static; }
  .topbar-inner { flex-wrap: wrap; padding-block: var(--s3); min-height: 0; }
  /* WRAP, never scroll. As a horizontal scroller this row pushed the primary
     CTA off the right edge on a phone, where nothing hinted it was there — the
     one button the page exists for, invisible to half the traffic. */
  .nav { width: 100%; margin-left: 0; gap: var(--s4); flex-wrap: wrap; row-gap: var(--s3); }
  .nav a { white-space: nowrap; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 560px) {
  .nav-cta { width: 100%; margin-left: 0; }
}

/* ---------------------------------------------------------------------- */
/* buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font: inherit; font-size: .97rem; font-weight: 650; text-decoration: none;
  border: 1px solid var(--brand); background: var(--brand); color: #fff;
  cursor: pointer; white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease;
}
.btn:hover { background: var(--black); border-color: var(--black); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 3px; }
.btn-lg { padding: 15px 30px; font-size: 1.04rem; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; color: var(--brand-dark); border-color: var(--brand); }
.btn-block { width: 100%; }
.btn-row { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.btn-note { display: block; margin-top: var(--s3); font-size: .855rem; color: var(--muted); }

/* ---------------------------------------------------------------------- */
/* cards                                                                    */
/*                                                                          */
/* Equal outer height is not enough — the INSIDES have to line up too. A     */
/* two-line heading in one card was pushing its body text a line lower than  */
/* its neighbour's. Every card is therefore a four-slot grid:                */
/*     1 number   2 heading   3 body   4 footer                              */
/* and inside a .cols-align row those four slots become a subgrid, so all    */
/* four rails are shared across every card sitting side by side. Headings    */
/* start on the same line, body copy starts on the same line, buttons sit    */
/* on the same baseline, whatever the copy length.                           */
/* Card children MUST stay in that order, and every card in a row must agree */
/* on whether it has a number, or the slots shift by one.                    */
/* ---------------------------------------------------------------------- */
.card {
  display: grid; grid-template-rows: auto auto 1fr auto; align-content: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s5); height: 100%;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.cols-align { grid-template-rows: auto auto 1fr auto; }
.cols-align > .card { grid-row: span 4; }
@supports (grid-template-rows: subgrid) {
  .cols-align > .card { grid-template-rows: subgrid; }
}
.card-hover:hover { border-color: var(--brand-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card > h3 { margin: 0 0 var(--s3); align-self: start; }
.card > p { color: var(--ink-2); }
.card-body { min-width: 0; }
.card-body > :last-child { margin-bottom: 0; }
.card-foot { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line-soft); align-self: end; }
.card-num {
  display: grid; place-items: center; width: 30px; height: 30px; margin: 0 0 var(--s4);
  border-radius: 8px; background: var(--brand-tint); color: var(--brand-dark);
  font-size: .85rem; font-weight: 750; border: 1px solid var(--brand-line);
  align-self: start;
}
.card-quiet { background: var(--bg-alt); border-style: dashed; }

/* ---------------------------------------------------------------------- */
/* lists                                                                   */
/* ---------------------------------------------------------------------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 9px 0 9px 28px; border-top: 1px solid var(--line-soft); font-size: .95rem; }
.ticks li:first-child { border-top: 0; padding-top: 0; }
.ticks li:last-child { padding-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 15px; height: 8px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.ticks li:first-child::before { top: 6px; }
.ticks li.no::before { border: 0; content: "—"; color: var(--muted); top: 9px; font-weight: 700; }
.ticks li.you::before { border: 0; content: "→"; color: var(--warn); top: 9px; font-weight: 700; }
.ticks li.you { font-weight: 650; color: var(--ink); }

/* two-column tick list that stays aligned */
.ticks-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s7); }
@media (max-width: 700px) { .ticks-2 { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------------- */
/* pricing                                                                 */
/* ---------------------------------------------------------------------- */
.plans { display: grid; gap: var(--s5); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 940px) { .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
/* Four slots: tag / name+price / body / footer. Subgrid keeps the three price
   figures on one line and the three buttons on one baseline, instead of the
   old min-height guess that broke as soon as copy changed length. */
.plans { grid-template-rows: auto auto 1fr auto; }
.plan {
  display: grid; grid-template-rows: auto auto 1fr auto; grid-row: span 4;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--s6) var(--s5); height: 100%;
}
@supports (grid-template-rows: subgrid) {
  .plan { grid-template-rows: subgrid; }
}
.plan-featured { border-color: var(--brand); box-shadow: var(--shadow-lg); position: relative; }
.plan-head { align-self: start; }
.plan-tag {
  display: inline-block; justify-self: start; margin: 0 0 var(--s3); padding: 4px 10px; border-radius: 999px;
  font-size: .69rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase;
  background: var(--brand); color: #fff;
}
.plan-tag-soon { background: var(--warn); }
.plan-tag-ghost { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.plan-name { font-weight: 700; color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }
.plan-price { font-size: 2.55rem; font-weight: 750; color: var(--ink); letter-spacing: -.04em; line-height: 1.05; }
.plan-price span { font-size: .92rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan-body { margin-block: var(--s5); min-width: 0; }
.plan-foot { align-self: end; }

/* ---------------------------------------------------------------------- */
/* comparison table                                                        */
/* ---------------------------------------------------------------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .93rem; }
table.cmp th, table.cmp td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.cmp thead th { background: var(--bg-alt); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
table.cmp thead th:last-child { color: var(--brand-dark); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td:first-child { color: var(--ink); font-weight: 550; width: 46%; }
table.cmp td.them { color: var(--muted); }
table.cmp td.us { color: var(--brand-dark); font-weight: 700; background: var(--brand-tint); }
/* On a phone the four columns become one card per row, each cell labelled with
   its column heading, instead of a table you have to scroll sideways. */
@media (max-width: 640px) {
  .tablewrap { overflow-x: visible; }
  table.cmp { min-width: 0; }
  table.cmp thead { display: none; }
  table.cmp, table.cmp tbody, table.cmp tr, table.cmp td { display: block; width: 100%; }
  table.cmp tr { border-bottom: 1px solid var(--line); }
  table.cmp tbody tr:last-child { border-bottom: 0; }
  table.cmp td { padding: 8px var(--s4); border-bottom: 0; }
  table.cmp td:first-child { width: 100%; padding-top: var(--s4); font-size: 1rem; }
  table.cmp td:last-child { padding-bottom: var(--s4); }
  table.cmp td:nth-child(n+2)::before {
    display: block; font-size: .68rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
  }
  table.cmp td:nth-child(2)::before { content: "What it costs"; }
  table.cmp td:nth-child(3)::before { content: "What it does"; }
  table.cmp td:nth-child(4)::before { content: "What's still on you"; }
}

/* ---------------------------------------------------------------------- */
/* forms                                                                   */
/* ---------------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s7); box-shadow: var(--shadow); }
@media (max-width: 640px) { .form-card { padding: var(--s5); } }
.stack { display: grid; gap: var(--s5); }
.fieldset { display: grid; gap: var(--s5); padding: 0; margin: 0; border: 0; min-width: 0; }
/* 11/11/26 site-wide: a grid track sizes to its widest child's min-content, so one
   no-wrap button label, long <select> option or file picker pushed whole forms
   past a 320px screen (/scan, /start). Tracks may shrink; controls fit; form
   buttons wrap. */
form.stack, .fieldset, .field { grid-template-columns: minmax(0, 1fr); }
.field > input, .field > select, .field > textarea { min-width: 0; max-width: 100%; }
form .btn { white-space: normal; }
.fieldset + .fieldset { padding-top: var(--s5); border-top: 1px solid var(--line-soft); }
.fieldset legend { padding: 0; font-size: .735rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-dark); }
/* A field is three fixed rails: label / control / hint. Inside a .pair the two
   fields share those rails via subgrid, so the two input bars sit on exactly
   the same line even when one label wraps to two lines and the other doesn't,
   or when only one of them has a hint. The hint sits UNDER the bar for the
   same reason — above the bar it pushed its own input down and left the field
   beside it stranded higher. */
.field { display: grid; grid-template-rows: auto auto auto; align-content: start; }
.field > label { grid-row: 1; align-self: end; display: block; font-weight: 650; font-size: .93rem; color: var(--ink); margin: 0 0 5px; }
.field > :is(input, select, textarea) { grid-row: 2; align-self: start; }
.field > .hint { grid-row: 3; font-size: .845rem; color: var(--muted); margin: 6px 0 0; }
.field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: .97rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input[type=file] {
  width: 100%; padding: 14px; font: inherit; font-size: .93rem;
  border: 1.5px dashed var(--brand-line); border-radius: var(--radius-sm); background: var(--brand-tint);
  cursor: pointer;
}
.field textarea { min-height: 96px; resize: vertical; }
.field :is(input, select, textarea):focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,122,82,.13);
}
.pair {
  display: grid; column-gap: var(--s5); row-gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
}
.pair > .field { grid-row: span 3; }
@supports (grid-template-rows: subgrid) {
  .pair > .field { grid-template-rows: subgrid; }
}
/* Rows of pairs still need air between them; the row gap is zero so the three
   rails stay flush, so the spacing goes on the pair itself. */
.fieldset > .pair + .pair { margin-top: var(--s5); }
@media (max-width: 640px) {
  .pair { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--s5); }
  .pair > .field { grid-row: auto; grid-template-rows: auto auto auto; }
}

.alert { padding: 13px 16px; border-radius: var(--radius-sm); font-size: .93rem; border: 1px solid var(--stop-line); background: var(--stop-tint); color: var(--ink); }
.alert-ok { border-color: var(--brand-line); background: var(--brand-tint); color: var(--brand-dark); }

.inline-form { display: flex; gap: var(--s3); flex-wrap: wrap; }
.inline-form input[type=email] {
  flex: 1 1 200px; min-width: 0; padding: 11px 13px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.inline-form input[type=email]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,122,82,.13); }

/* ---------------------------------------------------------------------- */
/* prose (legal + sample pages)                                            */
/* ---------------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--s8); font-size: 1.32rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s6); }
.prose ul { padding-left: 1.15em; margin: 0 0 var(--s4); }
.prose li { margin-bottom: 6px; }
.prose-meta { font-size: .875rem; color: var(--muted); margin-bottom: var(--s7); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }

/* faq */
.qa { border-top: 1px solid var(--line); }
.qa > div { border-bottom: 1px solid var(--line); padding: var(--s5) 0; }
.qa h3 { margin-bottom: 6px; }
.qa p { margin: 0; color: var(--ink-2); }

/* ---------------------------------------------------------------------- */
/* footer                                                                  */
/* ---------------------------------------------------------------------- */
footer { background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-grid {
  display: grid; gap: var(--s6); padding-block: var(--s8) var(--s6);
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-grid h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: var(--s3); }
.footer-grid a { display: block; padding: 4px 0; font-size: .92rem; color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--brand-dark); }
.footer-grid a.btn { color: #fff; }
.footer-blurb { font-size: .9rem; color: var(--muted); max-width: 34ch; }
.footer-bar { border-top: 1px solid var(--line); }
.footer-bar-inner { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding-block: var(--s4); font-size: .845rem; color: var(--muted); }

/* ============================================================================
   Autofill demo. Motion does the work: fields fill in sequence and the submit
   button is the last thing to light up, because it is the only thing the
   customer does.
   ========================================================================== */
.demo { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-lg); }
.demo-bar { display: flex; align-items: center; gap: var(--s3); padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.demo-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.demo-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.demo-url { flex: 1 1 auto; min-width: 0; text-align: center; font-size: .78rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-replay { flex: 0 0 auto; font: inherit; font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.demo-replay:hover { color: var(--brand-dark); border-color: var(--brand); }

.demo-body { padding: var(--s6); }
@media (max-width: 640px) { .demo-body { padding: var(--s5); } }
.demo-head { display: flex; align-items: flex-start; gap: var(--s4); flex-wrap: wrap; padding-bottom: var(--s5); margin-bottom: var(--s5); border-bottom: 1px solid var(--line-soft); }
.demo-role { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.demo-co { font-size: .84rem; color: var(--muted); }
.demo-verify { margin-left: auto; font-size: .765rem; font-weight: 650; color: var(--brand-dark); background: var(--brand-tint); border: 1px solid var(--brand-line); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }

.demo-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-field.wide { grid-column: 1 / -1; }
.demo-field label { display: block; font-size: .755rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.demo-field output { display: block; min-height: 40px; padding: 10px 12px; font-size: .93rem; color: var(--ink); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.demo-field output.para { font-size: .885rem; line-height: 1.55; }
.demo-field output.file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--brand-dark); font-weight: 650; }
.demo-field output.answer-no { font-weight: 750; }
.tag { display: inline-block; font-size: .705rem; font-weight: 650; letter-spacing: .015em; background: var(--brand-tint); color: var(--brand-dark); border: 1px solid var(--brand-line); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.tag-quiet  { margin-top: 7px; background: var(--bg-alt); color: var(--muted); border-color: var(--line); }
.tag-honest { margin-top: 7px; background: var(--warn-tint); color: var(--warn); border-color: var(--warn-line); }
.demo-field.honest output { border-color: var(--warn-line); background: var(--warn-tint); }

.demo-field output, .demo-field .tag, .demo-verify { opacity: 0; }
.demo-field output { transform: translateY(4px); }
.demo.run .demo-field output { animation: fill .34s cubic-bezier(.2,.7,.3,1) forwards; }
.demo.run .demo-field .tag,
.demo.run .demo-verify { animation: fade .3s ease forwards; }
@keyframes fill {
  from { opacity: 0; transform: translateY(4px); background: var(--brand-tint); border-color: var(--brand); }
  62%  { opacity: 1; transform: translateY(0);   background: var(--brand-tint); border-color: var(--brand); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade { to { opacity: 1; } }

.demo-footer { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-top: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line-soft); }
.demo-count { font-size: .885rem; color: var(--muted); }
.demo-count strong { color: var(--brand-dark); font-size: 1.05rem; }
.demo-submit { margin-left: auto; font: inherit; font-weight: 700; font-size: .99rem; padding: 12px 26px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #eef1f0; color: var(--muted); cursor: not-allowed; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.demo.ready .demo-submit { background: var(--brand); border-color: var(--brand); color: #fff; cursor: pointer; animation: pulse 2.2s ease-out infinite; }
.demo.ready .demo-submit:hover { background: var(--brand-dark); animation: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(13,122,82,.38); }
  70%  { box-shadow: 0 0 0 13px rgba(13,122,82,0); }
  100% { box-shadow: 0 0 0 0 rgba(13,122,82,0); }
}
.demo-yours { margin: var(--s4) 0 0; font-size: .89rem; color: var(--muted); opacity: 0; transition: opacity .4s ease; }
.demo.ready .demo-yours { opacity: 1; }
.demo-done { color: var(--brand-dark) !important; font-weight: 700; }

@media (max-width: 640px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-submit { margin-left: 0; width: 100%; }
  .demo-verify { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo.run :is(.demo-field output, .demo-field .tag), .demo.run .demo-verify { animation-duration: .01ms; }
  .demo.ready .demo-submit { animation: none; }
  .card-hover:hover, .btn:hover { transform: none; }
}

/* ============================================================================
   Sample teardown page — the proof asset
   ========================================================================== */
.teardown { display: grid; gap: var(--s5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .teardown { grid-template-columns: minmax(0, 1fr); } }
.td-pane { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.td-pane-head { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line-soft); background: var(--bg-alt); }
.td-pane-head h3 { margin: 0 0 2px; }
.td-pane-head p { margin: 0; font-size: .84rem; color: var(--muted); }
.td-pane-body { flex: 1 1 auto; padding: var(--s5); }
.td-line { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: .91rem; }
.td-line:first-child { border-top: 0; padding-top: 0; }
.td-line code { font-size: .86rem; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.td-bad  { color: var(--stop); font-weight: 650; }
.td-good { color: var(--brand-dark); font-weight: 650; }

/* ============================================================================
   Anatomy of one application. Replaces the old them-vs-us table: the boundary
   between what everything else does and what we do is drawn INSIDE our own
   process, so the page never turns into a list of other products to go price.
   ========================================================================== */
.anatomy { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s4); padding: var(--s4) var(--s5); border-top: 1px solid var(--line-soft); }
.step:first-child { border-top: 0; }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: .82rem; font-weight: 750; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.step h4 { margin: 3px 0 2px; }
.step p { margin: 0; font-size: .9rem; color: var(--muted); }
.step-ours { background: linear-gradient(90deg, var(--brand-tint) 0%, #fff 62%); }
.step-ours .step-n { background: var(--brand); color: #fff; border-color: var(--brand); }
.step-you { background: var(--warn-tint); }
.step-you .step-n { background: var(--warn); color: #fff; border-color: var(--warn); }
.step-you h4 { color: var(--ink); }

.cutline { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); background: var(--bg-alt); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.cutline span { font-size: .765rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cutline::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
/* Slot-1 placeholder for cards with no number. Occupies the rail, draws nothing. */
.card-num-none { display: block; height: 0; }

/* ============================================================================
   Verdicts, direction B — the product talks to you.

   Three earlier attempts failed by putting the judgment inside a container:
   outlined boxes read as a government form, a dark slab read as a dashboard.
   A verdict is advice, so it arrives as a message from someone on your side.
   States are weight, not hue: apply solid green, your call outlined, don't
   black and struck through.
   ========================================================================== */
.thread { max-width: 60rem; }
.thread-day {
  text-align: center; margin-bottom: var(--s5);
  font-size: .715rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted);
}
.msg { display: flex; gap: var(--s3); margin-bottom: var(--s4); align-items: flex-end; }
.msg-av {
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--black); color: #fff; display: grid; place-items: center;
  font-size: .72rem; font-weight: 800; letter-spacing: -.03em;
}
.bub {
  background: var(--bg-alt); border-radius: 16px 16px 16px 3px;
  padding: var(--s4) var(--s5); max-width: min(80%, 46rem); min-width: 0;
}
.bub-call {
  display: inline-block; margin-bottom: var(--s3); padding: 5px 12px; border-radius: 999px;
  font-size: .705rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.msg-go   .bub-call { background: var(--brand); color: #fff; }
.msg-wait .bub-call { background: #fff; color: var(--brand-dark); box-shadow: inset 0 0 0 1.5px var(--brand-line); }
.msg-stop .bub-call { background: var(--black); color: #fff; }
.bub-role { margin: 0 0 2px; font-size: 1.06rem; font-weight: 750; letter-spacing: -.018em; color: var(--ink); }
.bub-org  { margin: 0 0 var(--s3); font-size: .84rem; color: var(--muted); }
.bub-why  { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--ink-2); }
.bub-time { display: block; margin-top: var(--s3); font-size: .75rem; color: var(--muted); }
.msg-stop .bub { background: #fff; border: 1px dashed var(--line); }
.msg-stop .bub-role { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.msg-you { justify-content: flex-end; }
.msg-you .bub { background: var(--brand); color: #fff; border-radius: 16px 16px 3px 16px; }
.msg-you .bub-why { color: #fff; }

.band-black .bub { background: rgba(255,255,255,.07); }
.band-black .bub-role { color: #fff; }
.band-black .bub-why { color: rgba(255,255,255,.72); }
.band-black .bub-org, .band-black .bub-time { color: rgba(255,255,255,.5); }
.band-black .msg-av { background: #fff; color: var(--black); }
.band-black .msg-stop .bub { background: transparent; border-color: rgba(255,255,255,.2); }
.band-black .msg-stop .bub-role { color: rgba(255,255,255,.45); text-decoration-color: rgba(255,255,255,.25); }
.band-black .msg-wait .bub-call { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.band-black .msg-stop .bub-call { background: #fff; color: var(--black); }

.typing { display: flex; gap: 5px; padding: var(--s4) var(--s5); background: var(--bg-alt); border-radius: 16px 16px 16px 3px; width: fit-content; }
.band-black .typing { background: rgba(255,255,255,.07); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typ 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typ { 0%,60%,100% { opacity:.3; transform: translateY(0); } 30% { opacity:1; transform: translateY(-4px); } }

/* tally strip, direction A: hard-edged, no rounding */
.tally { display: flex; flex-wrap: wrap; border: 1px solid var(--line); margin-bottom: var(--s6); max-width: 60rem; }
.band-black .tally { border-color: rgba(255,255,255,.22); }
.tally-i { flex: 1 1 130px; padding: var(--s5) var(--s5); border-right: 1px solid var(--line); }
.band-black .tally-i { border-color: rgba(255,255,255,.22); }
.tally-i:last-child { border-right: 0; }
.tally-i b { display: block; font-size: 3rem; font-weight: 800; line-height: .85; letter-spacing: -.05em; color: var(--ink); }
.band-black .tally-i b { color: #fff; }
.tally-i span { display: block; margin-top: 10px; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.band-black .tally-i span { color: rgba(255,255,255,.5); }
.tally-i.go b { color: var(--brand); }
.tally-i.stop b { color: var(--muted); }
.band-black .tally-i.stop b { color: rgba(255,255,255,.38); }

@media (max-width: 620px) { .bub { max-width: 100%; } }

/* ============================================================================
   Sample teardown page — the proof asset
   ========================================================================== */
.teardown { display: grid; gap: var(--s5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .teardown { grid-template-columns: minmax(0, 1fr); } }
.td-pane { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.td-pane-head { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line-soft); background: var(--bg-alt); }
.td-pane-head h3 { margin: 0 0 2px; }
.td-pane-head p { margin: 0; font-size: .84rem; color: var(--muted); }
.td-pane-body { flex: 1 1 auto; padding: var(--s5); }
.td-line { padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: .91rem; }
.td-line:first-child { border-top: 0; padding-top: 0; }
.td-line code { font-size: .86rem; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.td-bad  { color: var(--stop); font-weight: 650; }
.td-good { color: var(--brand-dark); font-weight: 650; }

/* ============================================================================
   Anatomy of one application. Replaces the old them-vs-us table: the boundary
   between what everything else does and what we do is drawn INSIDE our own
   process, so the page never turns into a list of other products to go price.
   ========================================================================== */
.anatomy { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--s4); padding: var(--s4) var(--s5); border-top: 1px solid var(--line-soft); }
.step:first-child { border-top: 0; }
.step-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-size: .82rem; font-weight: 750; background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.step h4 { margin: 3px 0 2px; }
.step p { margin: 0; font-size: .9rem; color: var(--muted); }
.step-ours { background: linear-gradient(90deg, var(--brand-tint) 0%, #fff 62%); }
.step-ours .step-n { background: var(--brand); color: #fff; border-color: var(--brand); }
.step-you { background: var(--warn-tint); }
.step-you .step-n { background: var(--warn); color: #fff; border-color: var(--warn); }
.step-you h4 { color: var(--ink); }

.cutline { display: flex; align-items: center; gap: var(--s4); padding: var(--s4) var(--s5); background: var(--bg-alt); border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.cutline span { font-size: .765rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.cutline::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
/* Slot-1 placeholder for cards with no number. Occupies the rail, draws nothing. */
.card-num-none { display: block; height: 0; }

/* ============================================================================
   Verdict list. Five full-bleed tinted blocks stacked up read as noise, and
   the colour did all the talking. These are white cards with one coloured
   rail and one coloured badge, so the eye scans the decisions down the left
   edge and the tint is a signal rather than a wash. Skipped roles are visibly
   set aside: muted title, greyed body, so "don't" looks like "don't".
   ========================================================================== */
/* The list is a reading column, not a full-width slab. It matches the width of
   the .band-head above it, so the copy and the cards share one left AND right
   edge instead of the text wrapping short over cards that run to the gutter.
   Long reason lines were also unreadable at 1120px. */
.vsum, .vlist { max-width: 62rem; }
.vsum {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center;
  padding: var(--s3) var(--s5); margin-bottom: var(--s4);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt);
  font-size: .875rem; color: var(--muted);
}
.vsum-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.vsum-item strong { color: var(--ink); font-weight: 700; }
.vsum-item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.vsum-go::before   { background: var(--brand); }
.vsum-wait::before { background: var(--warn); }
.vsum-stop::before { background: var(--stop); }
.vsum-lead { margin-right: auto; }
.vsum-lead::before { display: none; }

.vlist { display: grid; gap: var(--s3); }
.vcard {
  display: grid; grid-template-columns: 4px minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  overflow: hidden; transition: box-shadow .16s ease, border-color .16s ease;
}
.vcard:hover { box-shadow: var(--shadow); }
.vcard-rail { background: var(--line); }
.vcard-main { padding: var(--s4) var(--s5) var(--s3); min-width: 0; }

.vcard-top { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: 7px; }
.vbadge {
  flex: 0 0 auto; font-size: .69rem; font-weight: 800; letter-spacing: .095em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 5px; line-height: 1.35;
}
.vcard-title { margin: 0; font-size: 1.02rem; color: var(--ink); }
.vcard-org { font-size: .87rem; color: var(--muted); }
.vcard-why { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--ink-2); max-width: 74ch; }

.vcard-foot {
  display: flex; align-items: center; gap: var(--s3) var(--s4); flex-wrap: wrap;
  margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line-soft);
  font-size: .795rem; color: var(--muted);
}
.vstamp { display: inline-flex; align-items: center; gap: 7px; }
.vstamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 7px; }
.vtime { margin-left: auto; font-variant-numeric: tabular-nums; }

.vcard-go   .vcard-rail { background: var(--brand); }
.vcard-go   .vbadge { background: var(--brand-tint); color: var(--brand-dark); }
.vcard-go   .vstamp::before { background: var(--brand); }
.vcard-wait .vcard-rail { background: var(--warn); }
.vcard-wait .vbadge { background: var(--warn-tint); color: var(--warn); }
.vcard-wait .vstamp::before { background: var(--warn); }

/* Skipped roles are deliberately quieter than the ones worth acting on. */
.vcard-stop { background: var(--bg-alt); }
.vcard-stop .vcard-rail { background: var(--stop); }
.vcard-stop .vbadge { background: var(--stop-tint); color: var(--stop); }
.vcard-stop .vcard-title { color: var(--muted); }
.vcard-stop .vstamp::before { background: var(--stop); }

@media (max-width: 560px) {
  .vcard-main { padding: var(--s4); }
  .vtime { margin-left: 0; width: 100%; }
}

/* ============================================================================
   Alerts, direction C — the one place a phone earns its keep, because the
   feature is literally a notification on your phone. Green field, copy left,
   device right. Same three-colour rule: green, white, black.
   ========================================================================== */
.alertx {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s8);
  align-items: center;
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-deep) 100%);
  padding: var(--s8) var(--s7);
}
.alertx h2 { color: #fff; }
.alertx .eyebrow { color: rgba(255,255,255,.72); }
.alertx-copy p { color: rgba(255,255,255,.85); max-width: 42ch; }
.alertx-stats { display: flex; gap: var(--s7); flex-wrap: wrap; margin-top: var(--s6); }
.alertx-stat b { display: block; font-size: 2.2rem; font-weight: 800; color: #fff; letter-spacing: -.045em; line-height: 1; }
.alertx-stat span { display: block; margin-top: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }

.phone { background: var(--black); border-radius: 34px; padding: 11px; box-shadow: 0 26px 60px rgba(3,20,13,.45); }
.phone-screen { background: var(--bg-alt); border-radius: 25px; overflow: hidden; }
.phone-bar { display: flex; justify-content: space-between; padding: 12px 18px 6px; font-size: .7rem; font-weight: 700; color: var(--ink); }
.phone-head { padding: 4px 18px 14px; font-size: 1.02rem; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.phone-list { display: grid; gap: 9px; padding: 0 12px 14px; }
.push { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(10,10,10,.09); }
.push-call { display: inline-block; margin-bottom: 7px; padding: 3px 9px; border-radius: 4px; font-size: .61rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.push-go   .push-call { background: var(--brand); color: #fff; }
.push-wait .push-call { background: #fff; color: var(--brand-dark); box-shadow: inset 0 0 0 1.5px var(--brand-line); }
.push-stop .push-call { background: var(--black); color: #fff; }
.push-role { margin: 0 0 2px; font-size: .92rem; font-weight: 750; color: var(--ink); letter-spacing: -.015em; }
.push-org { margin: 0 0 6px; font-size: .73rem; color: var(--muted); }
.push-why { margin: 0; font-size: .78rem; line-height: 1.45; color: var(--ink-2); }
.push-time { display: block; margin-top: 7px; font-size: .65rem; font-weight: 700; color: var(--muted); }
.push-stop { background: var(--bg-alt); }
.push-stop .push-role { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }

@media (max-width: 860px) {
  .alertx { grid-template-columns: minmax(0, 1fr); padding: var(--s7) var(--s5); gap: var(--s7); }
  .phone { max-width: 300px; margin-inline: auto; }
}

/* ---------------------------------------------------------------------- */
/* results page — the side by side                                        */
/*                                                                        */
/* Two columns of résumé text with the changed lines marked. The hard part */
/* is that a résumé line is long: it has to wrap inside its own cell, and  */
/* the row has to stay aligned when one side wraps and the other doesn't.  */
/* Grid with align-items:stretch does that; a flex row does not.           */
/* ---------------------------------------------------------------------- */
.diff {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden;
}
.diff-head {
  display: grid; grid-template-columns: 1fr 1fr;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.diff-head span { padding: 10px var(--s5); }
.diff-head span + span { border-left: 1px solid var(--line); }
.diff-row { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.diff-cell {
  padding: 5px var(--s5); font-size: .875rem; line-height: 1.55;
  white-space: pre-wrap; overflow-wrap: anywhere; min-height: 1.55em;
}
.diff-cell + .diff-cell { border-left: 1px solid var(--line); }
.diff-changed .diff-new, .diff-added .diff-new { background: var(--brand-tint); color: var(--brand-deep); }
.diff-changed .diff-old { color: var(--muted); }
.diff-removed .diff-old { color: var(--muted); text-decoration: line-through; }
.diff-added .diff-old, .diff-removed .diff-new { background: repeating-linear-gradient(
    -45deg, transparent, transparent 6px, var(--line-soft) 6px, var(--line-soft) 7px); }
.diff-gap {
  padding: 6px var(--s5); font-size: .76rem; letter-spacing: .04em;
  color: var(--muted); background: var(--bg-alt);
  border-block: 1px solid var(--line-soft); text-align: center;
}
/* On a phone two columns of résumé text is unreadable. Stack them and label
   which is which, rather than shrinking the type until nobody reads either. */
@media (max-width: 720px) {
  .diff-head { display: none; }
  .diff-row { grid-template-columns: minmax(0, 1fr); }
  .diff-cell + .diff-cell { border-left: 0; border-top: 1px dashed var(--line); }
  .diff-cell:empty { display: none; }
  .diff-old::before, .diff-new::before {
    display: block; font-size: .66rem; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
  }
  .diff-old::before { content: "Original"; }
  .diff-new::before { content: "Rebuilt"; }
}

/* a verified opening */
.role-head { display: flex; align-items: flex-start; gap: var(--s4); justify-content: space-between; }
.role-head h3 { margin-bottom: 2px; }
.tag-dark { background: var(--black); color: #fff; border-color: var(--black); }

/* ---------------------------------------------------------------------- */
/* tabs                                                                    */
/*                                                                         */
/* Panels are all visible until the script says otherwise, so the page is   */
/* readable with JavaScript off and never renders empty if the script fails.*/
/* ---------------------------------------------------------------------- */
.tabs { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.tabstrip {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
}
.tabstrip::-webkit-scrollbar { display: none; }
.tab {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted);
  padding: 14px var(--s5); white-space: nowrap; position: relative;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink); background: #fff; }
.tab:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: -3px; }
.tab[aria-selected="true"] { color: var(--brand-dark); background: #fff; border-bottom-color: var(--brand); }
.tab-n {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px;
  border-radius: 50%; font-size: .72rem; font-weight: 800;
  background: var(--line-soft); color: var(--muted); vertical-align: -4px;
}
.tab[aria-selected="true"] .tab-n { background: var(--brand); color: #fff; }
.tabpanel { padding: var(--s6); }
.tabpanel > h3 { margin-bottom: var(--s3); }
.tabpanel > p { max-width: 62ch; }
.tabpanel > p + p { margin-top: var(--s4); }
/* Before the script runs every panel shows and each gets a rule above it so the
   sections stay distinguishable. Once enhanced, only the selected one remains. */
.tabs:not([data-enhanced]) .tabpanel + .tabpanel { border-top: 1px solid var(--line-soft); }
@media (max-width: 640px) {
  /* 11/11/26: one squeezed row cut tabs 4-5 off on a 320px phone and wrapped
     labels one word per line. Two columns instead; an odd last tab spans both. */
  .tabstrip { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .tab { padding: 12px var(--s4); font-size: .855rem; white-space: normal; text-align: left;
         border-bottom: 1px solid var(--line-soft); }
  .tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tab[aria-selected="true"] { border-bottom: 2px solid var(--brand); }
  .tabpanel { padding: var(--s5); }
  .tabpanel > .anatomy-flush { margin: calc(var(--s5) * -1) calc(var(--s5) * -1) 0; }
}

/* accordion — one question, one click, no wall of answers */
.qa { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.qa details + details { border-top: 1px solid var(--line-soft); }
.qa summary {
  cursor: pointer; list-style: none; padding: 16px var(--s5);
  font-weight: 650; color: var(--ink); font-size: 1.0rem;
  display: flex; align-items: flex-start; gap: var(--s4);
  transition: background .14s ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: var(--bg-alt); }
.qa summary:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: -3px; }
.qa summary::after {
  content: ""; margin-left: auto; flex: 0 0 9px; width: 9px; height: 9px; margin-top: 7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s ease, border-color .18s ease;
}
.qa details[open] summary { color: var(--brand-dark); }
.qa details[open] summary::after { transform: rotate(-135deg); border-color: var(--brand); }
.qa .qa-body { padding: 0 var(--s5) var(--s5); max-width: 68ch; }
.qa .qa-body p { color: var(--ink-2); }

/* charts ---------------------------------------------------------------- */
.chart { margin: 0; }
.chart svg { display: block; max-width: 100%; }
.ch-stage { font-size: 11px; font-weight: 800; letter-spacing: .12em; fill: #79837f; }
.ch-val   { font-size: 21px; font-weight: 800; letter-spacing: -.02em; fill: #0a0a0a; }
.ch-val-hero { font-size: 26px; fill: #063d29; }
.ch-note  { font-size: 13px; fill: #79837f; }
.chart figcaption {
  margin-top: var(--s5); font-size: .875rem; color: var(--muted); max-width: 68ch;
}
/* 11/11/26: the two charts were wide SVGs that needed a sideways swipe on phones,
   which hid the biggest number off-screen. Plain HTML bars now: widths are
   percentages (still to scale), labels sit under the bar, nothing overflows. */
.hbars { display: grid; gap: var(--s5); }
.hbar-stage { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #79837f; margin-bottom: 8px; }
.hbar-track { height: 32px; }
.hbar-track i { display: block; height: 100%; border-radius: 4px; }
.hbar-val { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hbar-val b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: #0a0a0a; }
.hbar-val b.hero { font-size: 26px; color: #063d29; }
.hbar-val span { font-size: 13px; color: #79837f; }
/* the anatomy list sits inside a tab panel now, so it drops its own frame */
.anatomy-flush { border: 0; border-radius: 0; }
.tabpanel > .anatomy-flush { margin: calc(var(--s6) * -1) calc(var(--s6) * -1) 0; }

/* a squeeze page keeps the legal minimum in the footer and nothing else to click */
.footer-bare { display: flex; flex-wrap: wrap; gap: var(--s5); padding-block: var(--s5); }
.footer-bare a { font-size: .875rem; color: var(--muted); text-decoration: none; }
.footer-bare a:hover { color: var(--ink); }

/* the scan report */
.scan-sum { display: flex; flex-wrap: wrap; gap: var(--s6); align-items: baseline; margin-bottom: var(--s6); }
.scan-big { font-size: clamp(2.6rem, 1.8rem + 2.4vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.scan-big.bad { color: var(--brand-deep); }
.scan-big-note { font-size: .95rem; color: var(--muted); max-width: 34ch; }
.rowlist { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.rowitem { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: var(--s5); padding: var(--s5); }
.rowitem + .rowitem { border-top: 1px solid var(--line-soft); }
.rowitem.is-empty { background: #fff; }
.rowitem.is-found { background: var(--bg-alt); }
.rowtag { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.rowtag.t-found   { color: var(--brand-dark); font-weight: 700; }
.rowtag.t-partial { color: var(--ink-2); border-bottom: 2px dotted var(--brand-line); }
.rowtag.t-empty   { color: var(--black); font-weight: 900; }
.rowitem h4 { margin-bottom: 4px; }
.rowitem code { font-size: .82rem; background: var(--bg-alt); padding: 1px 6px; border-radius: 2px; }
.rowfix { margin-top: var(--s3); font-size: .9rem; color: var(--brand-dark); }
@media (max-width: 560px) { .rowitem { grid-template-columns: minmax(0,1fr); gap: var(--s2); } }

/* content library */
.postcard { text-decoration: none; color: inherit; display: block; transition: border-color .15s ease, transform .12s ease; }
.postcard:hover { border-color: var(--brand); transform: translateY(-1px); }
.postcard h3 { color: var(--ink); }
.postcard:hover h3 { color: var(--brand-dark); }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); margin-top: var(--s7); }
.prose h3 { margin-top: var(--s6); }
.prose p { max-width: 68ch; }
.prose ul.ticks { margin-block: var(--s5); }
.prose .pull {
  border-left: 3px solid var(--brand); padding-left: var(--s5); margin-block: var(--s6);
  font-size: 1.1rem; color: var(--ink); font-weight: 550;
}

/* small screens: give the hero room to breathe (2026-11-10) */
@media (max-width: 640px) {
  h1 { letter-spacing: -.022em; line-height: 1.06; }
  .h1-sub { font-size: .52em; margin-top: .45em; }
  .eyebrow-pill { letter-spacing: .04em; font-size: .68rem; }
  .tag { white-space: normal; max-width: 100%; }
}

/* Black Friday offer box on /pricing (shows only while bf_on(), through 11/29/26). Black + bright green, his pick 11/26. */
.band.bf-top { padding-top: var(--s5); }
.bf-offer { background: #0a0a0a; color: #ffffff; margin-bottom: var(--s6); overflow: hidden; border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(10,10,10,.35); animation: bf-in .45s ease-out both; }
.bf-ticker { background: #22e07a; color: #0a0a0a; overflow: hidden; white-space: nowrap; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; font-size: .78rem; padding: 7px 0; }
.bf-ticker-run { display: inline-block; animation: bf-tick 18s linear infinite; }
.bf-body { padding: var(--s5); position: relative;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px); }
.bf-title { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; line-height: .95;
  font-size: clamp(2.6rem, 1.9rem + 3.4vw, 4.4rem); color: #ffffff; }
.bf-title span { color: transparent; -webkit-text-stroke: 2px #22e07a; }
.bf-offer h2 { color: #ffffff; font-size: clamp(1.2rem, 1rem + .9vw, 1.6rem); font-weight: 750; line-height: 1.2; margin: var(--s3) 0 var(--s4); }
.bf-tagrow { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.bf-tag { position: relative; flex: none; background: #22e07a; color: #0a0a0a; font-weight: 900; letter-spacing: -.03em;
  font-size: clamp(2.8rem, 2.2rem + 2.4vw, 4rem); line-height: 1; padding: 10px 18px 10px 30px; transform: rotate(-6deg);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); animation: bf-swing 3s ease-in-out infinite; transform-origin: 0 50%; }
.bf-hole { position: absolute; left: 12px; top: 50%; width: 9px; height: 9px; margin-top: -4px; border-radius: 50%; background: #0a0a0a; }
.bf-sub { color: rgba(255,255,255,.8); margin: 0; font-weight: 600; font-size: .95rem; line-height: 1.4; }
.bf-bonus { border: 1px dashed #22e07a; padding: var(--s3) var(--s4); color: #ffffff; margin-bottom: var(--s5); font-size: .97rem; }
.bf-bonus strong { color: #22e07a; display: block; text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; }
.bf-offer .bf-btn { background: #22e07a; border-color: #22e07a; color: #0a0a0a; font-size: 1.15rem; font-weight: 850; text-transform: uppercase;
  letter-spacing: .03em; padding: 16px 30px; animation: bf-pulse 2.2s ease-in-out infinite; }
.bf-offer .bf-btn:hover { background: #ffffff; border-color: #ffffff; color: #0a0a0a; }
.bf-clock { display: flex; gap: var(--s2); margin-top: var(--s4); }
.bf-clock div { background: #ffffff; color: #0a0a0a; min-width: 58px; text-align: center; padding: 6px 4px 4px; border-radius: var(--radius); }
.bf-clock b { display: block; font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bf-clock i { font-style: normal; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: #3b4340; }
.bf-fine { color: rgba(255,255,255,.6); font-size: .8rem; margin: var(--s4) 0 0; }
@media (max-width: 640px) {
  .bf-body { padding: var(--s4); }
  .bf-offer .bf-btn { display: flex; width: 100%; }
  .bf-tagrow { gap: var(--s3); }
  .bf-bonus { margin-bottom: var(--s4); }
}
@keyframes bf-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bf-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bf-swing { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(-2deg); } }
@keyframes bf-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,224,122,.6); } 50% { box-shadow: 0 0 0 12px rgba(34,224,122,0); } }
@media (prefers-reduced-motion: reduce) { .bf-offer, .bf-offer .bf-btn, .bf-tag, .bf-ticker-run { animation: none; } }
@media (max-width: 640px) {
  .bf-title { font-size: 2.35rem; }
  .bf-offer h2 { font-size: 1.12rem; margin: var(--s2) 0 var(--s3); }
  .bf-tag { font-size: 2.6rem; }
  .bf-sub { font-size: .88rem; }
  .bf-tagrow { margin-bottom: var(--s3); }
  .bf-bonus { padding: var(--s2) var(--s3); }
}
/* BF v3 polish 11/26: everything centered, even spacing, solid FRIDAY, full-width countdown. */
.bf-body { text-align: center; }
.bf-title span { color: #22e07a; -webkit-text-stroke: 0; }
.bf-offer h2 { margin-left: auto; margin-right: auto; max-width: 24ch; }
.bf-tagrow { flex-direction: column; justify-content: center; gap: var(--s3); }
.bf-tag { transform-origin: 50% 50%; }
.bf-sub { max-width: 30ch; margin: 0 auto; }
.bf-bonus { max-width: 460px; margin-left: auto; margin-right: auto; }
.bf-offer .bf-btn { display: flex; width: 100%; max-width: 460px; margin: 0 auto; }
.bf-clock { justify-content: center; max-width: 460px; margin-left: auto; margin-right: auto; }
.bf-clock div { flex: 1; min-width: 0; }
.bf-fine { max-width: 52ch; margin-left: auto; margin-right: auto; }
.bf-ticker { text-align: left; }
@media (max-width: 640px) {
  .bf-tagrow { gap: var(--s2); }
  .bf-tag { font-size: 2.4rem; padding: 8px 16px 8px 28px; }
  .bf-title { font-size: 2.25rem; }
}
.bf-offer h2 { max-width: 30ch; text-wrap: balance; }
.bf-hole { display: none; }
.bf-tag { padding-left: 26px; }
/* Ticker edges fade so words slide in/out instead of looking cut off. */
.bf-ticker { position: relative; }
.bf-ticker::before, .bf-ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 34px; z-index: 1; pointer-events: none; }
.bf-ticker::before { left: 0; background: linear-gradient(90deg, #22e07a 20%, rgba(34,224,122,0)); }
.bf-ticker::after { right: 0; background: linear-gradient(270deg, #22e07a 20%, rgba(34,224,122,0)); }
/* Black Friday strip on /start: carries the /pricing box's look onto the upload page. */
.bf-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: #0a0a0a; color: #ffffff; padding: 12px 14px; margin-bottom: var(--s5); border-left: 4px solid #22e07a; border-radius: var(--radius); animation: bf-in .45s ease-out both; }
.bf-strip-tag { background: #22e07a; color: #0a0a0a; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; padding: 4px 8px; }
.bf-strip-txt { font-weight: 650; font-size: .92rem; flex: 1 1 220px; }
.bf-strip-clock { color: #22e07a; font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums; }
