/* Sign-up, Confirm email and Paid (sign-up & payment, Card 11) — ported from
   docs/signup-payment/drafts/drafts.css. Every colour is a shell.css token; classes are `sp-*`.
   Shared by start.js, plan.js and the landing bands; plan.css holds the plan page and the in-app screens. */

.sp-link { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sp-link:hover { text-decoration-thickness: 2px; }
.sp-linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-mid); }

/* ── type ───────────────────────────────────────────────────────────────────── */
.sp-h, .sp-q, .sp-display, .sp-greet { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; }
.sp-h { font-size: 30px; line-height: 1.15; letter-spacing: -.012em; }
.sp-q { font-size: 34px; line-height: 1.12; letter-spacing: -.015em; }
.sp-display { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.025em; }
.sp-greet { font-size: 32px; line-height: 1.2; letter-spacing: -.012em; margin-top: 28px; }
.sp-greet-s { font-size: 26px; max-width: 30ch; margin-top: 8px; }
.sp-h2 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin: 0 0 6px; }
.sp-lead { margin: 10px 0 0; font-size: 16px; line-height: 1.55; max-width: 46ch; }
.sp-fine { margin: 12px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-mid); max-width: 52ch; }
.sp-alt { margin: 18px 0 0; font-size: 14px; color: var(--ink-mid); }
.sp-alt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.sp-gate .sp-alt-row { margin-top: 12px; }
.sp-note { margin: 16px 0 0; padding: 10px 14px; border-left: 2px solid var(--plum); background: var(--paper-2); font-size: 14px; line-height: 1.55; }
.sp-fig { font-family: var(--serif); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.sp-list { margin: 8px 0 0; padding: 0; list-style: none; }
.sp-list li { padding: 7px 0; border-bottom: 1px solid var(--rule-soft); font-size: 14.5px; }
.sp-list li:last-child { border-bottom: 0; }

/* ── form parts ─────────────────────────────────────────────────────────────── */
.sp-form { display: grid; gap: 0; }
.sp-fld { display: grid; gap: 6px; margin-top: 18px; min-width: 0; }
.sp-fld > label, .sp-lab { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.sp-inrow { position: relative; }
.sp-inrow .inp { min-height: 48px; font-size: 16px; }   /* 16px: iOS does not zoom the page on focus */
.sp-fld.bad .inp { border-color: var(--red); }
.sp-ferr { margin: 0; font-size: 13.5px; color: var(--ink); border-left: 2px solid var(--red); padding-left: 10px; }
.sp-hint { margin: 0; font-size: 13px; color: var(--ink-mid); }
.sp-show { position: absolute; right: 4px; top: 4px; bottom: 4px; min-width: 56px; border: 0; border-radius: var(--radius); background: transparent; color: var(--plum); font-size: 13.5px; font-weight: 500; }
.sp-show:hover { background: var(--paper-2); }
.sp-inrow:has(.sp-show) .inp { padding-right: 68px; }
.sp-code { letter-spacing: .3em; font-family: var(--mono); font-size: 20px !important; max-width: 220px; }
.sp-wide { width: 100%; min-height: 48px; margin-top: 22px; font-size: 15px; }
.sp-banner { margin: 18px 0 0; padding: 12px 14px; border-left: 2px solid var(--red); background: var(--paper-2); font-size: 14px; line-height: 1.55; }
.sp-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } /* announced, not shown: each one repeats a visible heading or button */
.sp-gate { margin-top: 18px; padding: 14px 16px; background: var(--paper-2); border-left: 2px solid var(--plum); }
.sp-gate p { margin: 0; font-size: 14.5px; }
.sp-gate .sp-fld { margin-top: 10px; }

/* the two-way and three-way choices: real radios, the whole row is the target */
.sp-choice { border: 0; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.sp-opt { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; align-items: baseline; padding: 13px 14px; min-height: 48px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); cursor: pointer; transition: border-color 120ms, background-color 120ms; }
.sp-opt:hover { border-color: var(--ink-mid); }
.sp-opt.on { border-color: var(--plum); background: var(--paper-2); box-shadow: inset 2px 0 0 var(--plum); }
.sp-opt input { margin: 0; accent-color: var(--plum); width: 16px; height: 16px; transform: translateY(2px); }
.sp-opt:has(input:focus-visible) { outline: 2px solid var(--plum); outline-offset: 2px; }
.sp-opt-l { font-weight: 500; font-size: 15px; }
.sp-opt-s { grid-column: 2; font-size: 13.5px; color: var(--ink-mid); }
.sp-step { display: flex; align-items: center; gap: 12px; }
.sp-step output { font-family: var(--serif); font-size: 24px; min-width: 2ch; text-align: center; }
.sp-step .btn { min-width: 44px; min-height: 44px; font-size: 18px; }

/* ── receipt (A, and B's last step) ─────────────────────────────────────────── */
.sp-r-h { font-family: var(--serif); font-size: 21px; font-weight: 400; margin: 0 0 12px; }
.sp-r-h3 { font-size: 13.5px; font-weight: 500; margin: 18px 0 0; }
.sp-r-p { font-size: 14px; line-height: 1.55; margin: 12px 0 0; }
.sp-r-sub { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--ink-mid); font-weight: 400; margin-top: 2px; }
.sp-rows { margin: 0; display: grid; }
.sp-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.sp-rows dt { font-size: 14.5px; }
.sp-rows dd { margin: 0; font-size: 15px; text-align: right; }
.sp-rows .sp-fig { font-size: 18px; }
.sp-rows .sp-rule { border-top: 1px solid var(--ink-mid); margin-top: 4px; }
.sp-rows .sp-soft dt, .sp-rows .sp-soft dd { color: var(--ink-mid); }
.sp-rows .sp-total { border-bottom: 3px double var(--ink); }
.sp-rows .sp-total dt { font-weight: 600; }
.sp-rows .sp-total .sp-fig { font-size: 24px; }
.sp-rows-l > div { align-items: flex-start; }
.sp-rows-l dd { text-align: right; max-width: 60%; }
.sp-facts { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sp-facts li { font-size: 13.5px; line-height: 1.5; padding-left: 14px; position: relative; color: var(--ink); }
.sp-facts li::before { content: ''; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--plum); border-radius: 50%; }
.sp-facts b { font-family: var(--mono); font-weight: 500; font-size: 12.5px; }

/* ── C: the sign-in, continued ──────────────────────────────────────────────── */
.sp-c { grid-template-columns: 46% 54%; }
.sp-c-panel { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 9%; gap: 36px; }
.sp-c .signin-flower svg { --fw: min(13vw, 26vh); }
.sp-c-lines { color: #EBE3D6; max-width: 34ch; position: relative; z-index: 1; }
.sp-c-big { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.012em; margin: 0; }
.sp-c-list { margin: 22px 0 0; padding: 0; list-style: none; }
.sp-c-list li { padding: 10px 0; border-top: 1px solid rgba(235, 227, 214, .22); font-size: 15px; line-height: 1.5; color: rgba(235, 227, 214, .92); }
.sp-c-paper { align-content: center; }
.sp-c-main { width: min(400px, 100%); }
.sp-c-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; padding: 12px 0; border-top: 1px solid var(--ink-mid); border-bottom: 3px double var(--ink); }
.sp-c-total b { font-size: 26px; font-weight: 400; }

.sp-legend { padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.sp-choice.row { grid-template-columns: 1fr 1fr; }
.sp-choice.row .sp-legend { grid-column: 1 / -1; }
.sp-b-col .sp-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sp-vat { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-mid); }
.sp-vat b { color: var(--ink); font-weight: 500; }

/* ── Philip's review, 2026-10-16: lines that are obviously separate ─────────── */
.sp-rows > div { border-bottom-color: var(--rule); padding: 11px 0; }
.sp-list li { border-bottom-color: var(--rule); padding: 9px 0; }
.sp-facts { gap: 0; border-top: 1px solid var(--rule); }
.sp-facts li { padding: 10px 0 10px 16px; border-bottom: 1px solid var(--rule); }
.sp-facts li::before { top: 1.12em; }
.sp-c-list li { border-top-color: rgba(235, 227, 214, .34); padding: 12px 0; }
.sp-c-list li:last-child { border-bottom: 1px solid rgba(235, 227, 214, .34); }
/* each question on the plan page is its own block, ruled off from the one above */
.sp-a-main .sp-choice, .sp-c-main .sp-choice, .sp-a-main .sp-fld:has(.sp-step), .sp-c-main .sp-fld:has(.sp-step) { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.sp-form .sp-choice { border-top: 0; padding-top: 0; }
.sp-opt + .sp-opt { margin-top: 0; }
.sp-srow { padding: 16px 0; }

/* SP14: a narrower plum panel */
.sp-c { grid-template-columns: 36% 64%; }
.sp-c-panel { padding: 0 7%; }
.sp-c-lines { max-width: 30ch; }
.sp-c .signin-flower svg { --fw: min(11vw, 24vh); }

/* a legend sits in the fieldset's border; floated, it is a plain block and the rule above stays a clean line */
.sp-legend { float: left; width: 100%; }
.sp-a-main .sp-choice, .sp-c-main .sp-choice { border-top: 0; box-shadow: inset 0 1px 0 var(--rule); }
.sp-choice { display: block; }
.sp-opts { display: grid; gap: 8px; clear: both; }
.sp-choice.row .sp-opts { grid-template-columns: 1fr 1fr; }
.sp-opt { align-content: start; }

/* the sign-in page's own mobile band, with this page's copy beside the flower */
.sp-ts { margin-top: 18px; }
.sp-c .signin-panel { min-height: 100dvh; }
@media (max-width: 1023px) {
  .sp-h { font-size: 26px; }
  .sp-greet { font-size: 26px; }
  .sp-c { grid-template-columns: 1fr; display: flex; }
  .sp-c-panel { position: relative; min-height: 0 !important; height: auto !important; padding: 22px 16px 20px; flex-direction: row; align-items: center; gap: 16px; }
  .sp-c .signin-flower svg { --fw: 56px; }
  .sp-c-big { font-size: 20px; }
  .sp-c-list { margin-top: 8px; }
  .sp-c-list li { padding: 4px 0; border: 0; font-size: 13.5px; }
  .sp-c-list li:last-child { border: 0; }
  .sp-c-list li:nth-child(n+3) { display: none; }
  .sp-c-paper { padding: 22px 16px 48px; place-items: start stretch; }
  .sp-c-main { width: 100%; }
}
