/* ============================================================
   FNS Shield checkout (/join), 2026-09-25.

   Built from the reviewed concept (design/checkout-concept on PR #8). Every
   colour comes from the site's own tokens in site.css (--ground, --surface,
   --ink, --blue, --good, --band ...), which carry light AND dark values, so
   the old white-on-white dark-mode headings cannot come back. The few tokens
   site.css does not define are added below with the same light / system-dark
   / data-theme pattern.

   Type is deliberately large: 65+ customers, often on a phone, often with a
   technician on the line. Nothing a customer must read is under 17px or
   fainter than --body.
   ============================================================ */

:root{
  --alert:#b91c1c; --alert-wash:#fef2f2; --alert-line:#fecaca; --on-alert:#ffffff;
  --help:#00533f; --help-ink:#ffffff;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --alert:#fca5a5; --alert-wash:rgb(185 28 28/.18); --alert-line:rgb(252 165 165/.35); --on-alert:#3b0a0a;
    --help:#0b3d2f; --help-ink:#eaf2f8;
  }
}
:root[data-theme="dark"]{
  --alert:#fca5a5; --alert-wash:rgb(185 28 28/.18); --alert-line:rgb(252 165 165/.35); --on-alert:#3b0a0a;
  --help:#0b3d2f; --help-ink:#eaf2f8;
}

body.checkout{background:var(--ground);color:var(--body);overflow-x:hidden}

/* ---------- layout ----------
   DOM order: your order, the step, help. On a phone that IS the visual order
   (focus and reading order agree). Wide: order + help on the right, the step
   on the left. Nothing is sticky. */
.co{padding:4px 0 24px}
.co-wrap{width:min(100% - 2rem,1180px);margin-inline:auto}
.co-grid{display:grid;gap:22px;grid-template-columns:minmax(0,1fr)}
.co-main,.co-side{min-width:0}
.co-help{margin:0}
@media(min-width:1000px){
  .co-grid{grid-template-columns:minmax(0,1fr) 400px;grid-template-rows:auto 1fr;gap:0 40px;align-items:start}
  .co-side{grid-column:2;grid-row:1}
  .co-main{grid-column:1;grid-row:1/3}
  .co-help{grid-column:2;grid-row:2;margin-top:18px}
}

/* ---------- progress: four stops, never more ---------- */
.co-progress{list-style:none;margin:22px 0 20px;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.co-progress li{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;position:relative;font-size:16px;font-weight:700;color:var(--body);min-width:0}
.co-progress li::before{content:'';position:absolute;top:18px;left:calc(50% + 24px);right:calc(-50% + 24px);height:3px;background:var(--line-strong);border-radius:2px}
.co-progress li:last-child::before{display:none}
.co-progress .dot{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--surface);border:3px solid var(--line-strong);color:var(--body);font-weight:800;font-size:17px;position:relative;z-index:1}
.co-progress .lbl{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.co-progress li.done{color:var(--good)}
.co-progress li.done .dot{background:var(--good);border-color:var(--good);color:var(--on-blue)}
.co-progress li.done::before{background:var(--good)}
.co-progress li.now{color:var(--ink)}
.co-progress li.now .dot{background:var(--blue);border-color:var(--blue);color:var(--on-blue)}
.co-progress li.part{color:var(--ink)}
.co-progress li.part .dot{background:var(--surface);border-color:var(--good);color:var(--good);font-size:16px}
.co-progress li.problem .dot{background:var(--alert);border-color:var(--alert);color:var(--on-alert)}
.co-progress li.problem{color:var(--alert)}

/* ---------- headings and cards ---------- */
.co-main h1{font-size:clamp(28px,3vw,38px);line-height:1.12;letter-spacing:-.03em;margin:4px 0 10px;color:var(--ink)}
.co-main h1:focus{outline:none}
.co-main .lead{font-size:20px;line-height:1.5;margin:0 0 20px;max-width:62ch}
.co-main p{font-size:18px;line-height:1.5;margin:.45rem 0}
/* Text links only; an <a class="btn"> keeps its button colours. */
.co-main a:not(.btn){color:var(--blue)}
.fine{font-size:17px;color:var(--body);line-height:1.45}
.co-main p.fine{font-size:17px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:24px;margin:0 0 18px;box-shadow:var(--shadow)}
.card h2{font-size:24px;line-height:1.2;margin:0 0 10px;color:var(--ink)}
.checkout strong{color:var(--ink)}

/* ---------- form fields ---------- */
.field{margin:14px 0 0}
.field label{display:block;font-size:17px;font-weight:650;color:var(--ink);margin-bottom:6px}
.field .opt{font-weight:400;color:var(--body)}
.field input{width:100%;font:inherit;font-size:20px;padding:14px;border:2px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink);min-height:56px}
.field input::placeholder{color:var(--muted);opacity:1}
.field input:focus{outline:3px solid var(--blue);outline-offset:1px}
.field input[aria-invalid="true"]{border-color:var(--alert)}
.field .fine{margin:6px 0 0}
/* The optional phone number, folded: one line with a big tap target until someone opens it. */
.opt-phone summary{display:flex;align-items:center;min-height:48px;font-size:17px;font-weight:650;color:var(--blue);cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.opt-phone summary .opt{margin-left:.35em;text-decoration:none}
.opt-phone summary:focus-visible{outline:3px solid var(--blue);outline-offset:2px;border-radius:6px}
.opt-phone[open] summary{margin-bottom:8px}
.field-err{margin:8px 0 0;font-size:17px;font-weight:650;color:var(--alert)}
/* Square's card frame is a light document. Under the page's dark color-scheme the browser paints an opaque white
   backdrop behind a frame whose scheme differs from its own (found 2026-09-27: a white box with the dark theme's light
   text on it). Pinned light, the frame stays see-through, and join.js colours the box from the same tokens as the
   email box. The fallback note inside keeps its colour from .fine. */
#card-container{margin:10px 0 16px;min-height:92px;color-scheme:light}

/* ---------- buttons ---------- */
.checkout .btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none;font-family:var(--display);font-weight:700;font-size:19px;line-height:1.2;cursor:pointer;padding:15px 26px;border-radius:10px;background:var(--blue);color:var(--on-blue);border:2px solid transparent;min-height:56px;text-align:center}
.checkout .btn:hover{background:var(--blue-hover);color:var(--on-blue)}
.checkout .btn:disabled{opacity:.6;cursor:default}
.checkout .btn.ghost{background:transparent;color:var(--blue);border-color:var(--blue)}
.checkout .btn.ghost:hover{background:var(--surface-2);color:var(--blue)}
.checkout .btn.big{font-size:22px;padding:18px 30px;min-height:64px}
.checkout .btn:focus-visible,.linkbtn:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.btnrow{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:14px 0 8px}
.linkbtn{background:none;border:0;padding:6px 4px;font:inherit;font-size:17px;font-weight:700;color:var(--blue);text-decoration:underline;text-underline-offset:3px;cursor:pointer;min-height:44px}
@media(max-width:700px){.checkout .btn{width:100%}}

/* ---------- messages ---------- */
.msg{font-size:18px;line-height:1.5;padding:14px 16px;border-radius:10px;margin:14px 0;border:1px solid}
.msg p{margin:.3rem 0}
.msg.err{background:var(--alert-wash);border-color:var(--alert-line);color:var(--alert)}
.msg.ok{background:var(--good-wash);border-color:var(--good-line);color:var(--good)}
.msg.info{background:var(--info-wash);border-color:var(--info-line);color:var(--info-ink)}
.msg.warn{background:var(--warn-wash);border-color:var(--warn-line);color:var(--warn-ink)}
.msg strong,.msg a:not(.btn){color:inherit}
.msg h3{color:inherit;font-size:19px;margin:0 0 6px}

.spinner{display:inline-block;width:20px;height:20px;border:3px solid var(--line-strong);border-top-color:var(--blue);border-radius:50%;animation:spin 1s linear infinite;vertical-align:-4px;margin-right:8px;flex:none}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spinner{animation:none;border-top-color:var(--line-strong)}}

/* ---------- "what happens next" ---------- */
.next{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.next li{display:flex;gap:12px;align-items:flex-start;font-size:17px;line-height:1.45;color:var(--body)}
.next .n{flex:none;width:30px;height:30px;border-radius:50%;background:var(--surface-2);border:1px solid var(--line-strong);color:var(--ink);display:grid;place-items:center;font-weight:800;font-size:16px;margin-top:1px}

/* ---------- after payment ---------- */
.paidbar{display:flex;gap:14px;align-items:flex-start;background:var(--good-wash);border:1px solid var(--good-line);border-radius:14px;padding:18px 20px;margin:0 0 18px;font-size:18px;line-height:1.5}
.paidbar .tick{flex:none;width:40px;height:40px;border-radius:50%;background:var(--good);color:var(--on-blue);display:grid;place-items:center;font-weight:800;font-size:22px}
.paidbar .ttl{font-size:20px;display:block;margin-bottom:2px}
.paidbar div{min-width:0;overflow-wrap:anywhere}
/* Not on yet is a calm status, not a warning (Design build brief item 3). */
.status-calm{margin:0 0 18px;padding:12px 16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface);font-size:17px;line-height:1.5;color:var(--body)}
.status-calm strong{color:var(--ink)}
/* The phone's one card: where to go on the computer, and the call. */
.go-card h2{margin:0 0 12px}
.go-steps{margin:0;padding-left:0;list-style:none;counter-reset:g}
.go-steps li{counter-increment:g;position:relative;padding:0 0 14px 46px;font-size:18px;line-height:1.45;color:var(--body);overflow-wrap:anywhere}
.go-steps li::before{content:counter(g);position:absolute;left:0;top:-2px;width:32px;height:32px;border-radius:50%;background:var(--blue);color:var(--on-blue);font-weight:800;display:grid;place-items:center;font-size:17px}
.go-steps strong{color:var(--ink);overflow-wrap:anywhere}
.checkout .go-card .btn{width:100%;min-height:52px;font-size:18px;white-space:normal}
.go-card .fine{font-size:16px;margin:10px 0 0}
.protected{background:var(--band);color:var(--band-ink);border:1px solid var(--band-line);border-radius:16px;padding:28px 26px;margin:0 0 18px}
.protected h2{color:var(--band-ink);font-size:clamp(24px,2.6vw,30px);margin:0 0 8px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.protected .bigtick{flex:none;width:44px;height:44px;border-radius:50%;background:var(--cyan-bright);color:#052519;display:grid;place-items:center;font-size:26px;font-weight:800}
.protected p{color:var(--band-ink);font-size:18px;line-height:1.5;margin:.4rem 0}
.co-main .protected a:not(.btn){color:var(--cyan-bright)}

.task{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;padding:20px 0;border-top:1px solid var(--line)}
.task:first-child{border-top:0;padding-top:4px}
.task:last-child{padding-bottom:4px}
.task .tnum{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:20px;background:var(--blue);color:var(--on-blue)}
.task.on .tnum{background:var(--good)}
.card .task-h{font-size:22px;line-height:1.2;margin:8px 0 8px;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.task p{margin:.35rem 0}
.task ol.sub{margin:8px 0 0;padding-left:1.3em;font-size:18px;line-height:1.5}
.task ol.sub li{margin:0 0 .5rem}
.pill{display:inline-block;font-size:16px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;padding:5px 12px;border-radius:999px;border:1.5px solid;line-height:1.3;white-space:nowrap}
.pill.todo{background:var(--chip-bg);color:var(--ink);border-color:var(--line-strong)}
.pill.wait{background:var(--info-wash);color:var(--info-ink);border-color:var(--info-line)}
.pill.on{background:var(--good-wash);color:var(--good);border-color:var(--good-line)}
.comps{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.comps li{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:17px;line-height:1.45;padding:10px 0;border-top:1px solid var(--line)}
.comps li:first-child{border-top:0}

/* ---------- your order ---------- */
.order{background:var(--surface);border:2px solid var(--blue);border-radius:16px;padding:22px;box-shadow:var(--shadow)}
.order-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:6px}
.order-head h2{font-size:22px;margin:0;color:var(--ink)}
.order-name{font-size:26px;font-weight:800;color:var(--ink);line-height:1.15;letter-spacing:-.02em}
.order-includes{font-size:17px;color:var(--body);margin-top:4px;line-height:1.4}
.term{margin:16px 0 4px}
.term-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--surface-2);border:2px solid var(--line);border-radius:12px;padding:6px}
.term-tab{position:relative;display:block;min-width:0}
.term-tab input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.term-tab span{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:58px;border-radius:9px;font-size:18px;font-weight:700;color:var(--body);cursor:pointer;line-height:1.15;padding:6px 4px;text-align:center}
.term-tab small{font-size:16px;font-weight:600;color:var(--body);margin-top:2px}
.term-tab input:checked + span{background:var(--surface);color:var(--blue);box-shadow:inset 0 0 0 2px var(--blue)}
.term-tab input:checked + span small{color:var(--blue)}
.term-tab input:focus-visible + span{outline:3px solid var(--blue);outline-offset:2px}
.term-tab input:disabled + span{cursor:default}
/* Not offered (yearly on the $10 promo): full-strength text with a strike and a caption, never a faded ghost. */
.term-tab.na span{cursor:not-allowed;color:var(--body);text-decoration:line-through;text-decoration-thickness:2px}
.term-tab.na small{text-decoration:none;color:var(--body)}
.term-note{margin:8px 0 0;font-size:17px;color:var(--body);line-height:1.45}
.chooser{border:0;padding:0;margin:14px 0 0;min-width:0}
.chooser legend{font-size:17px;font-weight:700;color:var(--ink);padding:0;margin-bottom:8px}
.plan-opt{display:flex;align-items:flex-start;gap:12px;border:2px solid var(--line);border-radius:12px;padding:14px;margin-bottom:8px;cursor:pointer;background:var(--surface)}
.plan-opt:hover{border-color:var(--blue)}
.plan-opt.sel{border-color:var(--blue);background:var(--surface-2)}
.plan-opt input{width:28px;height:28px;margin:1px 0 0;accent-color:var(--blue);flex:none}
.plan-opt .ptext{flex:1 1 auto;min-width:0}
.plan-opt .pn{display:block;font-size:19px;font-weight:750;color:var(--ink);line-height:1.2}
.plan-opt .pd{display:block;font-size:16px;color:var(--body);margin-top:3px;line-height:1.35}
.plan-opt .pp{display:block;font-size:17px;font-weight:800;color:var(--blue);margin-top:6px}
.plan-opt .pp small{display:block;font-size:15px;font-weight:600;color:var(--body)}
.totals{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line)}
.totals div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:4px 0}
.totals dt{font-size:17px;color:var(--body);font-weight:700;flex:none}
.totals dd{margin:0;font-size:20px;font-weight:800;color:var(--ink);text-align:right;font-variant-numeric:tabular-nums}
.totals div:first-child dd{font-size:32px;color:var(--blue);letter-spacing:-.02em}
.order-renew{margin:8px 0 0}
/* Yearly in plain dollars (Design build brief item 2): no badge, no struck-out price, no urgency. */
.plan-opt .yr{display:block;font-size:16px;font-weight:600;color:var(--body);margin-top:2px}
.yr-nudge{margin:16px 0 4px;padding:16px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface)}
.yr-nudge p{margin:0 0 6px;font-size:17px;line-height:1.45;color:var(--body)}
.yr-nudge .yr-h{font-size:18px;color:var(--ink)}
.checkout .yr-nudge .btn{width:100%;min-height:48px;margin:8px 0;font-size:17px;padding:12px 16px;white-space:normal;overflow-wrap:break-word}
.yr-nudge .fine{font-size:16px;margin:0}
.order-locked{margin:10px 0 0;color:var(--body)}
/* A picked plan on a phone: the order in a few short lines, so the account step is nearer the top (walkthrough at 390). */
@media(max-width:999px){
  .order.compact{padding:14px 18px}
  .order.compact .order-head{margin-bottom:2px}
  .order.compact .order-head h2{font-size:17px}
  .order.compact .order-name{font-size:21px}
  .order.compact .order-includes{font-size:16px;margin-top:2px}
  .order.compact .totals{display:flex;flex-wrap:wrap;column-gap:22px;margin-top:8px;padding-top:8px}
  .order.compact .totals div{gap:8px;padding:0}
  .order.compact .totals dd,.order.compact .totals div:first-child dd{font-size:19px}
  .order.compact .order-renew{display:none}
  .order.compact .order-locked{font-size:16px;margin-top:6px}
}
/* On a phone: what happens on the computer, in one line, instead of the computer's steps. */

.help{background:var(--help);color:var(--help-ink);border-radius:14px;padding:20px 22px}
.help strong{font-size:19px;display:block;color:var(--help-ink)}
.help p{margin:.35rem 0 0;font-size:17px;line-height:1.45;color:var(--help-ink)}
.help .num{display:block;margin-top:8px;font-size:28px;font-weight:800;color:var(--help-ink);text-decoration:none;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.help .num:hover{text-decoration:underline}

.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}

/* ---------- add-on steps with pictures (roadmap 6) ---------- */
ol.picsteps{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:22px;counter-reset:none}
.picsteps li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px}
.picsteps .pn{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:22px;background:var(--blue);color:var(--on-blue)}
.picsteps h3{font-size:22px;line-height:1.25;margin:6px 0 4px;color:var(--ink)}
.picsteps p{margin:.2rem 0 .6rem}
.picsteps .pic{display:block;width:100%;max-width:420px;height:auto;border-radius:12px;margin-top:6px}
.picsteps .btnrow{margin:10px 0 0}
.protected{text-align:center}
.protected h2{justify-content:center;font-size:clamp(30px,6vw,40px)}
.protected .bigtick{width:56px;height:56px;font-size:34px}
.protected .popup-fig{margin:14px auto;width:min(100%,360px)}
.protected .popup-fig figcaption{margin-top:8px;font-size:18px;text-align:center}
.protected .popup-shot{display:block;width:100%;height:auto;margin:0;border-radius:14px;border:1px solid var(--band-line);object-fit:cover;object-position:50% 50%;aspect-ratio:380/600}
.protected .protected-sub{font-size:22px;font-weight:600}
.protected p{text-align:left}
.protected .protected-sub{text-align:center}
.co-main .protected strong{color:inherit}
/* While the email with the 6 numbers comes: the plan and the next steps, beside the code box. */
.code-wait{margin-top:22px;padding:18px 18px 16px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line-strong)}
.code-wait h3{margin:0 0 8px;font-size:19px}
.code-wait-plan{margin:0 0 12px;font-size:17px;line-height:1.5;color:var(--body)}
/* Read out by screen readers, not shown: the pay view's page heading (CS timing, CEO 2026-10-31). */
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* "check now" is a fallback (the page updates on its own), so it is a small link, still a full-size tap target. */
.linkbtn.small-link{font-size:16px;font-weight:600;padding:6px 0}

/* ---------- Protect my parent, phase 1 (behind PARENT_SETUP_ENABLED; hidden on /join while it is off) ----------
   docs/design/protect-my-parent/BUILD-BRIEF.md sections 1 to 3. Same tokens as the rest of the page, so dark mode
   follows; the printed sheet alone is pinned light, because it is paper. */
.who-choices{border:0;margin:0;padding:0;display:grid;gap:12px}
.who-choices legend{font-size:22px;font-weight:700;color:var(--ink);margin:0 0 10px;padding:0}
.who-choice{display:flex;gap:14px;align-items:flex-start;border:2px solid var(--line-strong);border-radius:14px;padding:16px 18px;background:var(--surface);cursor:pointer;min-height:64px}
.who-choice input{width:26px;height:26px;margin:2px 0 0;accent-color:var(--blue);flex:none}
.who-choice b{display:block;color:var(--ink);font-size:20px}
.who-choice span span{display:block;font-size:17px;line-height:1.45;color:var(--body)}
.who-choice.on{border-color:var(--blue);background:var(--surface-2)}
.who-choice:focus-within{outline:3px solid var(--blue);outline-offset:2px}
.who-card .field input{max-width:28rem}
.who-chips{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 0}
.who-chip{min-height:48px;padding:8px 18px;border-radius:999px;border:2px solid var(--blue);background:var(--surface);color:var(--blue);font:600 17px/1.2 var(--display,inherit);cursor:pointer}
.who-chip:hover{background:var(--surface-2)}
.who-chip:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.who-note{margin:16px 0 0;padding:14px 16px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line-strong)}
.who-note p{margin:0;font-size:18px;line-height:1.5}
#who-family{margin:12px 0 0}
#who-family .linkbtn{font-size:17px;min-height:0;padding:0;vertical-align:baseline}

.co-main .eyebrow{font-size:16px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--good);margin:0 0 4px}
.pcode-wrap{margin:6px 0 10px}
.pcode{display:inline-block;font-family:ui-monospace,'Cascadia Mono',Consolas,monospace;font-size:clamp(28px,7vw,40px);font-weight:700;letter-spacing:.14em;color:var(--ink);background:var(--surface-2);border:2px dashed var(--blue);border-radius:12px;padding:10px 18px;white-space:nowrap}
.paths-h{font-size:24px;line-height:1.2;color:var(--ink);margin:26px 0 12px}
.paths{display:grid;gap:0}
.path .num{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:22px;background:var(--blue);color:var(--on-blue);margin:0 0 10px}
.path h3{font-size:22px;line-height:1.25;margin:0 0 6px;color:var(--ink)}
.path ol.steps{margin:6px 0 8px;padding-left:1.4em;font-size:18px;line-height:1.5}
.path ol.steps li{margin:0 0 6px}
.path .addr{font-family:ui-monospace,'Cascadia Mono',Consolas,monospace;font-weight:700;color:var(--ink);overflow-wrap:normal}
.path .shop-addr{font-size:18px;color:var(--ink)}
.nowrap{white-space:nowrap}
@media(max-width:420px){.pcode{letter-spacing:.06em;padding:8px 12px}}

