/* checkout.css: the on-site checkout page, site/CHECKOUT-WIREFRAME.md section 3.

   Self contained on purpose. The token block below is the same set of values
   as the :root block of styles.css (teal #2A6B6A action, warm #C47A4A on the
   mark only, paper #F4F2EE, ink #141413, dark set one step up from #141413),
   copied rather than imported so this page and the landing can be worked on in
   parallel without one lane's restructure taking the other's page down. The
   values are the contract; if they drift, the two pages stop looking like one
   product, which is what a review catches.

   Anatomy copied from styles.css: .nav, .brand, .toggle, .label, .tag, .chip,
   .card__note, .seg, .btn, .lede, .consent. New here: the .co two column
   checkout, its order card, its steps and the states of the payment frame.

   Radius 0 everywhere (Basel). One accent: the teal button and the ok chip.
   Nothing under 13px. Every text pair clears AA against its ground. */

:root {
  color-scheme: light;
  --paper: #F4F2EE;
  --ink: #141413;
  --ink-2: #3d3c3a;
  --ink-3: #6b6966;
  --rule: #e0ddd7;
  --rule-2: #a8a59e;
  --surface: #f9f7f3;
  --surface-2: #efece6;
  --frame: #141413;
  --accent: #2A6B6A;
  --accent-hover: #1F5554;
  --accent-ink: #ffffff;
  --accent-text: #2A6B6A;
  --warm: #C47A4A;
  --block: #A93F2E;
  --shadow-board: 0 1px 0 rgba(20, 20, 19, .06), 0 28px 56px -28px rgba(20, 20, 19, .30);
  --shadow-1: 0 1px 2px rgba(20, 20, 19, .05), 0 6px 16px -8px rgba(20, 20, 19, .12);
  --show-moon: inline-block;
  --show-sun: none;
  --font: "Host Grotesk Variable", Helvetica, Arial, sans-serif;
  --mono: "Commit Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1400px;
  --gutter: 40px;
  --pad: 20px;
  --ease: cubic-bezier(.2, 0, 0, 1);
  --dur-1: 160ms;
  --dur-2: 240ms;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141413;
    --ink: #F4F2EE;
    --ink-2: #c8c5be;
    --ink-3: #9a968e;
    --rule: #2e2d2b;
    --rule-2: #5a5854;
    --surface: #1c1b19;
    --surface-2: #252422;
    --frame: #6f6c67;
    --accent: #3D7A78;
    --accent-hover: #346E6C;
    --accent-ink: #ffffff;
    --accent-text: #7ab5b3;
    --block: #E07A66;
    --shadow-board: 0 32px 64px -32px rgba(0, 0, 0, .75);
    --shadow-1: 0 8px 20px -10px rgba(0, 0, 0, .6);
    --show-moon: none;
    --show-sun: inline-block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141413;
  --ink: #F4F2EE;
  --ink-2: #c8c5be;
  --ink-3: #9a968e;
  --rule: #2e2d2b;
  --rule-2: #5a5854;
  --surface: #1c1b19;
  --surface-2: #252422;
  --frame: #6f6c67;
  --accent: #3D7A78;
  --accent-hover: #346E6C;
  --accent-ink: #ffffff;
  --accent-text: #7ab5b3;
  --block: #E07A66;
  --shadow-board: 0 32px 64px -32px rgba(0, 0, 0, .75);
  --shadow-1: 0 8px 20px -10px rgba(0, 0, 0, .6);
  --show-moon: none;
  --show-sun: inline-block;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; background: var(--paper); color: var(--ink); overflow-x: hidden; }
h1, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
svg.ic { display: inline-block; vertical-align: -0.125em; flex: none; width: 20px; height: 20px; }
svg.ic-16 { width: 16px; height: 16px; }
.mark { display: inline-block; vertical-align: -0.2em; flex: none; }
/* The only orange on the page: the mark's short bar. */
.mark rect:last-child { fill: var(--warm); opacity: 1; }
.label { font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.lede { font-size: 1.125rem; line-height: 1.45; color: var(--ink-2); max-width: 42ch; }
.tag { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid currentColor; padding: 2px 8px; color: var(--ink-3); white-space: nowrap; }
.page { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 64px; border-bottom: 1px solid var(--ink); background: var(--paper); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; letter-spacing: -.015em; padding-left: var(--pad); }
.brand small { font-weight: 400; font-size: 14px; color: var(--ink-3); letter-spacing: 0; margin-left: 2px; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 16px; font-weight: 500; padding-right: var(--pad); }
.nav__links a { padding: 4px 0; }
.nav__links a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--ink); background: transparent; cursor: pointer; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.toggle:hover { background: var(--ink); color: var(--paper); }
.toggle .i-moon { display: var(--show-moon); }
.toggle .i-sun { display: var(--show-sun); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 17px; letter-spacing: -.01em; line-height: 1.2;
  border: 0; cursor: pointer; text-decoration: none;
  transition: background var(--dur-1) var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn--line { background: none; color: var(--ink); border: 1px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* Segmented plan switcher, the board's anatomy */
.seg { display: flex; border: 1px solid var(--rule-2); }
.seg button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 6px; font-size: 14px; font-weight: 500; background: none; border: 0; border-left: 1px solid var(--rule); cursor: pointer; white-space: nowrap; color: var(--ink-2); transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--surface-2); color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); font-weight: 600; }
.seg button:focus-visible { outline-offset: -3px; outline-color: var(--accent-text); }
/* The price on the switcher is a convenience: the order card below always
   states the price of the plan that is selected. Narrow screens drop it rather
   than overlap three labels, which is the wireframe's phone sketch. */
.seg__price { font-variant-numeric: tabular-nums; }

/* Chips and notes */
.chip { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 13px; font-weight: 700; line-height: 1; flex: none; margin-top: 1px; }
.chip--ok { background: var(--accent); color: var(--accent-ink); }
.chip--warn { background: var(--surface-2); color: var(--ink); border: 1px solid var(--rule-2); }
.chip--block { background: var(--block); color: var(--paper); }
.card__note { display: flex; gap: 10px; font-size: 14px; color: var(--ink-3); line-height: 1.45; max-width: 46ch; }
.card__note .ic { margin-top: 2px; }

/* The page: 12 hairline columns, order in five, payment in six */
.co { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); padding-bottom: 64px; }
.co__eyebrow { grid-column: 1 / -1; padding: 32px var(--pad) 24px; }
.co__main { grid-column: 1 / span 5; padding: 0 var(--pad) 40px; display: flex; flex-direction: column; align-items: stretch; gap: 20px; min-width: 0; }
.co__side { grid-column: 7 / -1; padding: 0 var(--pad) 40px; min-width: 0; }
.co__trust { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 24px var(--pad) 0; border-top: 1px solid var(--rule); margin: 16px var(--pad) 0; }
.co h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; line-height: .95; letter-spacing: -.04em; }
.co__ent { font-size: 14px; color: var(--ink-3); line-height: 1.45; max-width: 46ch; margin-top: -8px; }
.co__ent a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Order card: 1px ink border, label top, ruled rows, the total at 22px */
.co__sum { border: 1px solid var(--frame); background: var(--surface); box-shadow: var(--shadow-1); padding: 16px 20px 18px; }
.co__sum .label { display: block; padding-bottom: 12px; }
.co__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.co__row b { font-weight: 600; white-space: nowrap; }
.co__row--total { border-top: 1px solid var(--rule-2); font-weight: 600; }
.co__row--total b { font-size: 22px; letter-spacing: -.02em; }
.co__detail { font-size: 14px; color: var(--ink-3); line-height: 1.45; max-width: 48ch; }
.co__detail[hidden] { display: none; }
.co__sum .co__detail { padding-bottom: 4px; }

/* The workbook row: the drop zone's file line plus a chip */
.co__work { display: flex; flex-direction: column; gap: 6px; }
.co__file { display: grid; grid-template-columns: 20px 1fr auto; gap: 4px 10px; align-items: baseline; }
.co__file .chip { grid-column: 1; }
.co__name { grid-column: 2; font-family: var(--mono); font-size: 14px; word-break: break-all; }
.co__size { grid-column: 3; font-family: var(--mono); font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.co__file .co__detail { grid-column: 2 / -1; }
.co__link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* Optional email, pay-first path only */
.co__field { display: flex; flex-direction: column; gap: 6px; }
.co__field[hidden] { display: none; }
.co__field label { font-size: 14px; font-weight: 600; }
.co__opt { font-weight: 400; color: var(--ink-3); }
.co__field input { min-height: 44px; padding: 0 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--rule-2); font-size: 16px; }
.co__field input:focus-visible { border-color: var(--accent-text); }

/* 01 / 02 / 03 */
.co__steps { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.co__steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.co__steps b { font-family: var(--mono); font-size: 13px; color: var(--ink-3); font-weight: 400; }

/* Payment frame */
.co__payhead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
/* Stripe's iframe lays its own form out and centres it inside whatever width
   it is given, on its own white ground. Six columns of a 1440 is wider than
   the form wants, which left a white gutter down both sides of it; capping the
   mount at the form's own width makes the frame the form rather than a white
   panel with a form in it. */
.co__mount { min-height: 0; max-width: 620px; }
.co__mount:not(:empty) { min-height: 560px; }
.co__state:empty { display: none; }

/* Loading: three bars, no spinner */
.co__load { display: flex; flex-direction: column; gap: 14px; min-height: 560px; padding: 24px 0 0; }
.co__load i { display: block; height: 14px; background: var(--surface-2); border: 1px solid var(--rule); }
.co__load i:nth-child(2) { width: 72%; }
.co__load i:nth-child(3) { width: 44%; }
.co__load .co__detail { padding-top: 8px; }

/* One card for every other state: chip, headline, one line, one action */
.co__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 20px; border: 1px solid var(--frame); background: var(--surface); box-shadow: var(--shadow-1); }
.co__card h2 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; display: flex; gap: 10px; align-items: flex-start; }
.co__card p { font-size: 15px; color: var(--ink-2); line-height: 1.5; max-width: 52ch; }
.co__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 4px; }
.co__actions .btn { min-height: 48px; font-size: 16px; }
.co__second { font-size: 15px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }

/* Footer */
.co__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 20px var(--pad) 40px; border-top: 1px solid var(--ink); }
.co__legal { display: flex; flex-wrap: wrap; gap: 24px; font-size: 14px; color: var(--ink-3); }
.co__legal a { text-decoration: underline; text-underline-offset: 3px; }
.co__legal a:hover { color: var(--accent-text); }

/* No JavaScript: the order and the form both describe a plan that only the
   island knows, so neither renders. One line and a link to Stripe's page. */
.co__nojs { display: none; }
.no-js .co__nojs { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; padding: 32px var(--pad); font-size: 16px; color: var(--ink-2); }
.no-js .co__nojs-link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.no-js .co, .no-js .co__foot { display: none; }

/* Consent bar */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 30; width: 360px; max-width: calc(100vw - 32px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--frame); box-shadow: var(--shadow-board); font-size: 14px; line-height: 1.45; }
.consent[hidden] { display: none; }
.consent .btn--line { min-height: 40px; padding: 0 16px; font-size: 14px; flex: 1 1 0; }

@media (max-width: 1100px) {
  :root { --gutter: 24px; }
  .co__main { grid-column: 1 / span 6; }
  .co__side { grid-column: 7 / -1; }
}

/* Phone, wireframe (e): the order is confirmed before the card fields, the
   card is cut to its two rows, and the basics, email and steps drop below the
   trust lines. display:contents lets the column's children take their own
   place in the single column stack. */
@media (max-width: 560px) {
  .seg__price { display: none; }
  .brand small { display: none; }
  .nav__links { gap: 8px; }
}

/* Touch widths, phone and iPad: the brand and the nav apart and rigid, one-line
   44 px nav links, links and buttons at 44 px */
@media (max-width: 900px) {
  .brand { flex: none; min-height: 44px; }
  .nav__links { flex: none; }
  .nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; white-space: nowrap; }
  .toggle { width: 44px; height: 44px; }
  .co__ent a, .co__link { padding-top: 14px; padding-bottom: 14px; }
  .co__foot a { padding: 12px 4px; margin: 0 -4px; }
  .consent .btn--line { min-height: 44px; }
}

@media (max-width: 820px) {
  :root { --gutter: 0px; --pad: 16px; }
  .co { display: flex; flex-direction: column; padding-bottom: 40px; }
  .co__main { display: contents; }
  .co__eyebrow { padding: 20px var(--pad) 12px; }
  .co h1 { padding: 0 var(--pad); }
  .co__lead, .co .lede { padding: 8px var(--pad) 0; }
  .co .seg { margin: 16px var(--pad) 0; }
  .co__ent { padding: 12px var(--pad) 0; margin-top: 0; }
  .co__sum { margin: 16px var(--pad) 0; }
  .co__sum .co__detail { display: none; }
  .co__work { padding: 16px var(--pad) 0; }
  .co__side { padding: 20px var(--pad) 0; }
  .co__trust { margin: 24px var(--pad) 0; padding-top: 20px; gap: 12px; flex-direction: column; }
  .co__field { order: 8; padding: 24px var(--pad) 0; }
  .co__steps { order: 9; margin: 20px var(--pad) 0; }
  .co__foot { padding: 20px var(--pad) 32px; }
  .co__load, .co__mount:not(:empty) { min-height: 520px; }
  .consent { left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-left: 0; border-right: 0; border-bottom: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .co__load i { animation: co-pulse 1.4s var(--ease) infinite; }
  .co__load i:nth-child(2) { animation-delay: .12s; }
  .co__load i:nth-child(3) { animation-delay: .24s; }
  @keyframes co-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
}

/* The interval note: an annual ask the ladder cannot bill yet reads as words,
   in ink, next to the total it affects. Never a silent downgrade. */
.co__notice { color: var(--ink); font-weight: 600; max-width: 44ch; }
