/* shared styles for the plan, welcome and legal pages (tokens from DESIGN.md, same as index.html) */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 600 800; font-stretch: 100% 125%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("fonts/public-sans.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  --bg: #f5f3ee; --white: #ffffff; --sunk: #ece8e0; --ink: #17191c; --ink-2: #4a4e54; --ink-3: #6b6f75;
  --line: rgb(23 25 28 / .1); --line-2: rgb(23 25 28 / .16); --orange: #ff6a1f; --rust: #b23f0a; --tint: #ffe7d6;
  --green: #1b7a43; --night: #0f1113; --night-3: #212429; --on-night: #f5f3ee; --on-night-2: #b4b8bd;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif; --text: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace; --gutter: clamp(20px, 5vw, 64px); --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
.narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.top__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { font: 800 22px/1 var(--display); font-stretch: 112%; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: flex-start; padding-block: 11px; }
.logo::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin: 2px 0 0 3px; }
.back { font-size: 15px; color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--ink); }
h1 { font: 700 clamp(34px, 4.4vw, 52px)/1.08 var(--display); letter-spacing: -0.022em; margin: 0; text-wrap: balance; }
h2 { font: 700 22px/1.25 var(--display); letter-spacing: -0.01em; margin: 40px 0 10px; }
h3 { font: 700 17px/1.3 var(--display); margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 58ch; }
.muted { color: var(--ink-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--text); text-decoration: none; border: 0; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.btn--primary { background: var(--orange); color: #17191c; } .btn--primary:hover { background: #ff7a35; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); } .btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.foot { padding-block: 40px 48px; margin-top: 80px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* legal pages */
.legal { padding-block: 56px 0; }
.legal .meta { color: var(--ink-3); font-size: 15px; margin: 14px 0 32px; }
.legal p, .legal li { color: var(--ink-2); max-width: 70ch; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal .note { background: var(--tint); color: #5a2508; border-radius: 12px; padding: 14px 18px; font-size: 15px; max-width: none; }
.toc { background: var(--white); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 18px 22px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; column-gap: 32px; }
.toc a { color: var(--ink-2); text-decoration: none; } .toc a:hover { color: var(--ink); text-decoration: underline; }
.ph { background: #fff3c4; border-radius: 4px; padding: 0 4px; }

/* plan and welcome pages */
.checkout { padding-block: 48px 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: minmax(0, 1fr); } }
.box { background: var(--white); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 32px); }
.choose { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.choose legend { font: 700 16px/1.3 var(--display); margin-bottom: 10px; padding: 0; }
.opt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow .15s, background-color .15s; }
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: #fbfaf7; }
.opt input { margin: 0; width: 18px; height: 18px; accent-color: var(--ink); }
.opt b { font-weight: 600; } .opt small { grid-column: 2; color: var(--ink-3); font-size: 14px; }
.opt .amt { font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; }
.free { color: var(--green); font-weight: 700; }
.group + .group { margin-top: 24px; }
.sum { background: var(--night); color: var(--on-night); border-radius: 20px; padding: clamp(20px, 3vw, 32px); position: sticky; top: 92px; }
.sum h2 { margin-top: 0; color: var(--on-night); }
.sum dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; margin: 18px 0; }
.sum dt { color: var(--on-night-2); } .sum dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum .total { border-top: 1px solid rgb(255 255 255 / .12); padding-top: 12px; font: 800 26px/1.2 var(--display); }
.sum .btn { width: 100%; margin-top: 8px; }
.sum .small { font-size: 14px; color: var(--on-night-2); margin: 12px 0 0; }
.promo { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgb(255 106 31 / .14); color: #ffd2b3; font-size: 14px; }
.promo code { font: 700 14px/1 var(--mono); color: #fff; }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--on-night-2); }
.checks li::before { content: "✓"; color: #4cc27e; margin-right: 8px; }
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; counter-reset: n; }
.steps li { counter-increment: n; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; background: var(--white); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 18px; }
.steps li::before { content: counter(n); width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font: 700 14px/1 var(--display); grid-row: span 2; }
.steps b { font-weight: 600; } .steps span { grid-column: 2; color: var(--ink-2); font-size: 15px; }

/* checkout v2 (start.html): rules in docs/13-checkout-guidelines.md */
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.co-top { position: sticky; top: 0; z-index: 20; background: rgb(245 243 238 / .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.co-top__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 68px; }
.co-help { justify-self: end; font-size: 15px; color: var(--ink-2); text-decoration: none; }
.co-help span { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.co-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.co-steps li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.co-steps li + li::before { content: ""; width: 28px; height: 1.5px; background: var(--line-2); margin-right: 2px; }
.co-steps span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--display); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.co-steps [aria-current] { color: var(--ink); font-weight: 600; }
.co-steps [aria-current] span { background: var(--ink); color: var(--bg); box-shadow: none; }
@media (max-width: 600px) { .co-top__bar { grid-template-columns: auto 1fr; } .co-steps { justify-self: end; gap: 6px; font-size: 13px; } .co-steps li + li::before { width: 12px; } .co-help { display: none; } }
@media (max-width: 600px) { .co-steps li:not([aria-current]) { font-size: 0; gap: 0; } .co-steps li + li::before { margin-right: 6px; } .co-steps li:not([aria-current]) span { font-size: 12px; } }

.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 410px); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: 36px 0; }
@media (max-width: 900px) { .co { grid-template-columns: minmax(0, 1fr); } }
.co-back { font-size: 15px; color: var(--ink-2); text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.co-back:hover { color: var(--ink); }
.co h1 { font-size: clamp(32px, 4vw, 48px); margin-top: 6px; }
.co-assure { font-size: 18px; color: var(--ink-2); margin: 12px 0 0; }

.co-offer { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 18px; border-radius: 16px; background: var(--tint); color: #5a2508; }
.co-offer p { margin: 0; font-size: 15px; flex: 1 1 260px; } .co-offer b { color: #3d1904; }
.co-offer__tag { background: var(--orange); color: var(--ink); font: 700 12px/1 var(--text); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; }
.co-offer__end { font: 500 13px/1.3 var(--mono); color: #7a3510; }

.co-block { margin-top: 44px; }
.co-block h2 { font-size: 22px; margin: 0 0 16px; }
.co-plans, .co-opts { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.co-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 10px; }
@media (max-width: 640px) { .co-plans { grid-template-columns: minmax(0, 1fr); } }
.co-plan { position: relative; display: grid; align-content: start; gap: 6px; padding: 20px; background: var(--white); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow .18s var(--ease), transform .18s var(--ease); }
.co-plan:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.co-plan:active { transform: scale(.99); }
.co-plan:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink), 0 14px 30px -20px rgb(15 17 19 / .35); }
.co-plan:has(input:focus-visible), .co-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.co-plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-plan__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.co-plan__head b { font: 700 19px/1.2 var(--display); }
.co-tick { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); color: transparent; transition: background-color .18s, color .18s, box-shadow .18s; flex: none; }
.co-tick svg { width: 14px; height: 14px; }
.co-plan:has(input:checked) .co-tick, .co-tick--on { background: var(--ink); color: var(--bg); box-shadow: none; }
.co-tick--on { background: var(--green); color: #fff; }
.co-plan__for { font-size: 14px; color: var(--ink-3); line-height: 1.4; min-height: 2.8em; }
.co-plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-top: 6px; }
.co-plan__price s { color: var(--ink-3); font-size: 15px; flex-basis: 100%; }
.co-plan__price b { font: 800 30px/1 var(--display); font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.co-plan__price small { color: var(--ink-3); font-size: 15px; }
.co-plan__note { font-size: 14px; color: var(--ink-2); }
.co-plan__min { font: 500 13px/1.3 var(--mono); color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.co-plan__pick { position: absolute; top: -11px; left: 16px; background: var(--ink); color: var(--bg); font: 600 12px/1 var(--text); padding: 6px 10px; border-radius: 999px; }
@media (max-width: 640px) {
  .co-plan { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "head price" "for note" "min min"; gap: 4px 12px; padding: 18px 16px 14px; }
  .co-plan__head { grid-area: head; flex-direction: row-reverse; justify-content: flex-end; gap: 10px; }
  .co-plan__for { grid-area: for; min-height: 0; font-size: 13px; }
  .co-plan__price { grid-area: price; justify-content: flex-end; margin-top: 0; }
  .co-plan__price s { text-align: right; font-size: 13px; }
  .co-plan__price b { font-size: 24px; }
  .co-plan__note { grid-area: note; text-align: right; font-size: 13px; align-self: start; }
  .co-plan__min { grid-area: min; margin-top: 4px; padding-top: 8px; }
}

.co-incl { margin-top: 14px; padding: 18px 20px; border-radius: 16px; background: var(--sunk); }
.co-incl__h { font-size: 15px; color: var(--ink-2); margin: 0 0 10px; } .co-incl__h b { color: var(--ink); }
.co-incl ul { list-style: none; margin: 0; padding: 0; columns: 2 230px; column-gap: 24px; }
.co-incl li { display: flex; gap: 8px; font-size: 15px; padding: 3px 0; break-inside: avoid; }
.co-incl svg, .co-promises svg { width: 16px; height: 16px; flex: none; color: var(--green); margin-top: 4px; }

.co-opts { display: grid; gap: 10px; }
.co-opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 16px 18px; background: var(--white); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow .18s var(--ease); }
.co-opt:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.co-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); }
.co-opt input { margin: 0; width: 18px; height: 18px; accent-color: var(--ink); }
.co-opt__t b { font-weight: 600; } .co-opt__t small { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.co-opt__t small .free { font-weight: 700; }
.co-opt__a { font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-chip { display: inline-block; vertical-align: 2px; margin-left: 6px; background: #e1f1e7; color: var(--green); font: 600 12px/1 var(--text); padding: 4px 8px; border-radius: 999px; }
.co-hint { font-size: 15px; color: var(--ink-2); margin: 12px 0 0; } .co-hint b { color: var(--green); }
.co-included { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--white); border-radius: 16px; box-shadow: inset 0 0 0 1.5px rgb(27 122 67 / .4); }
.co-included p { margin: 0; flex: 1; min-width: 0; } .co-included p > b { display: block; font-weight: 700; }
.co-included p > span { display: block; font-size: 14px; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }
.co-included__amt { font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; padding-top: 2px; }
.co-included__amt s { color: var(--ink-3); font-weight: 500; margin-right: 4px; }
.co-included__amt small { display: block; font: 400 13px/1.3 var(--text); color: var(--ink-3); margin-top: 4px; }

.co-time { list-style: none; margin: 0; padding: 0; }
.co-time li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 2px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.co-time li:last-child { border-bottom: 1px solid var(--line); }
.co-time .mono { font: 500 13px/1.6 var(--mono); color: var(--ink-3); grid-row: span 2; padding-top: 1px; }
.co-time b { font-weight: 600; } .co-time p { margin: 0; font-size: 15px; color: var(--ink-2); }
@media (max-width: 520px) { .co-time li { grid-template-columns: minmax(0, 1fr); } .co-time .mono { grid-row: auto; } }

.co-faq details { border-top: 1px solid var(--line); } .co-faq details:last-child { border-bottom: 1px solid var(--line); }
.co-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 10px 0; font-weight: 600; cursor: pointer; }
.co-faq summary::-webkit-details-marker { display: none; }
.co-faq summary svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); transition: transform .2s var(--ease); }
.co-faq details[open] summary svg { transform: rotate(45deg); }
.co-faq details p { margin: 0 0 16px; font-size: 15px; color: var(--ink-2); max-width: 62ch; }

.co-side { position: sticky; top: 92px; display: grid; gap: 16px; }
@media (max-width: 900px) { .co-side { position: static; margin-top: 8px; } }
.co-card { background: var(--night); color: var(--on-night); border-radius: 22px; padding: clamp(22px, 2.4vw, 30px); box-shadow: 0 30px 60px -32px rgb(15 17 19 / .55); }
.co-card h2 { margin: 0 0 8px; font-size: 20px; color: var(--on-night); }
.co-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgb(255 255 255 / .08); }
.co-line small { display: block; font-size: 13px; color: var(--on-night-2); margin-top: 1px; }
.co-line > span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-line s { color: var(--on-night-2); font-weight: 400; }
.co-line .free, .co-line--save > span:last-child { color: #4cc27e; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; }
.co-total span { color: var(--on-night-2); font-size: 15px; }
.co-total b { font: 800 34px/1 var(--display); font-stretch: 112%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.co-total.is-new b { animation: co-pop .5s var(--ease); }
@keyframes co-pop { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.co-tax { font-size: 13px; color: var(--on-night-2); margin: 6px 0 0; text-align: right; }
.co-save { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgb(47 179 106 / .14); color: #9fe3bb; font-size: 14px; }
.co-save b { color: #fff; }
.co-sched { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; margin: 14px 0 0; font-size: 14px; }
.co-sched dt { color: var(--on-night-2); } .co-sched dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.co-sched .co-sched__sum { padding-top: 8px; margin-top: 2px; border-top: 1px dashed rgb(255 255 255 / .14); }
.co-sched dt.co-sched__sum { margin-right: -16px; padding-right: 16px; }   /* bridge the column gap so the rule is one line */
.co-sched dd.co-sched__sum { font-weight: 600; }
.co-go { width: 100%; height: 56px; margin-top: 18px; font-size: 17px; transition: background-color .2s, transform .15s var(--ease); }
.co-go:active { transform: scale(.985); }
.co-go svg, .co-bar .btn svg { width: 16px; height: 16px; }
.co-legal { font-size: 13px; color: var(--on-night-2); margin: 12px 0 0; line-height: 1.5; }
.co-legal a { color: var(--on-night); }
.co-pay { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .08); }
.co-pay__marks { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-grid; place-items: center; width: 40px; height: 26px; background: #fff; border-radius: 6px; }
.chip img { display: block; max-height: 16px; max-width: 32px; width: auto; height: auto; }
.co-pay__by { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--on-night-2); }
.co-pay__by img { height: 16px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.co-secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--on-night-2); margin: 10px 0 0; }
.co-secure svg { width: 13px; height: 13px; color: #4cc27e; flex: none; }
.co-promises { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
@media (max-width: 640px) { .co-promises { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.co-promises li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-3); }
.co-promises b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.co-ask { font-size: 14px; color: var(--ink-2); margin: 0; padding-inline: 4px; }
.co-ask a { color: var(--ink); }

.co-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--night); color: var(--on-night); transform: translateY(110%); transition: transform .3s var(--ease); }
.co-bar.is-on { transform: none; }
.co-bar__sum small { display: block; font-size: 12px; color: var(--on-night-2); }
.co-bar__sum b { font: 800 22px/1.1 var(--display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.co-bar .btn { height: 48px; }
@media (max-width: 900px) { .co-bar { display: flex; } .co-page .foot { padding-bottom: 110px; } }
@media (prefers-reduced-motion: reduce) { .co-bar, .co-plan, .co-tick, .co-go { transition: none; } }
