/* The www shell stylesheet — the whole surface's presentation (#326 ruling ④: zero JS; hand-rolled).
   #336: DARK is the default, STRICT (no OS override). Light mode = the at_theme cookie: the header
   toggle POSTs to /leg/theme; a CloudFront viewer-request function rewrites /styles.css to
   /styles-light.css when the cookie says light. styles-light.css = @import /styles-base.css (the
   SAME dark bytes under a key the function never rewrites — importing /styles.css would loop) +
   the light :root overrides + the two #338 label-visibility rules — ONE source of rules.
   #338: the SERVED SHEET is the state — the dark sheet hides .to-dark so the state-blind static
   toggle reads "Light mode"; the light twin flips the pair. */
:root {
  --bg: #1e2227;
  --ink: #e3e6e9;
  --soft: #9aa3ab;
  --line: #3a4046;
  --accent: #6db392;
  --field: #262b31;
  --btn-ink: #1e2227;
  --brand-ink: #f2ead9;
  --rim: #f2ead9;
  --tee: #f2ead9;
  --tee-line: #1e2227;
}
* { box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0 auto;
  max-width: 60rem;
  padding: 2rem 1.25rem 4rem;
  line-height: 1.6;
}
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
header .brand { font-weight: 700; letter-spacing: 0.02em; color: var(--brand-ink); }
header .brand a { color: inherit; text-decoration: none; }
.mark-rim { stroke: var(--rim); }
.mark-tee { fill: var(--tee); stroke: var(--tee-line); }
h1 { font-size: 1.8rem; line-height: 1.25; margin: 1.5rem 0 1rem; }
a { color: var(--accent); }
ul { padding-left: 1.25rem; }
li { margin: 0.4rem 0; }
form p { margin: 0.9rem 0; }
label { color: var(--soft); font-size: 0.95rem; }
input, textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--field);
}
button {
  font: inherit;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--btn-ink);
  cursor: pointer;
}
.cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: var(--btn-ink);
  text-decoration: none;
}
footer { margin-top: 3rem; border-top: 1px solid var(--line); color: var(--soft); font-size: 0.9rem; }
form.theme { margin: 0; }
form.theme button { background: transparent; color: var(--ink); border: 0; padding: 5px; opacity: 0.8; cursor: pointer; }
form.theme button:hover { opacity: 1; color: var(--accent); }
form.theme .to-dark { display: none; }
/* ── the landing (S211-c marketing rewrite; v2 S224 #359 — the ledger voice + THE RECEIPT;
   index.html scopes via body.landing). The paper is theme-invariant brand cream (#f2ead9, the
   locked mark's keyline) — paper is paper in both themes, so styles-light.css stays untouched.
   The hero media query uses range syntax (width < …) — the ONE-WIDTH pin counts the property. ── */
.hero { margin: 2.5rem 0 3.5rem; display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 2.75rem; align-items: start; }
@media (width < 52rem) { .hero { grid-template-columns: minmax(0, 1fr); } .till { width: min(100%, 22rem); margin: 0 auto; } }
.hero h1 { font-size: 2.5rem; line-height: 1.15; margin: 0 0 1rem; font-weight: 800; letter-spacing: -0.02em; }
.eyebrow { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; margin-top: 1.75rem; }
.cta-quiet { color: var(--accent); }
main section { margin: 3.25rem 0; }
h2 { font-size: 1.4rem; margin: 0 0 1rem; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card { background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem 1.2rem; }
.card h3 { font-size: 1.02rem; margin: 0.5rem 0; }
.card p { margin: 0; color: var(--soft); font-size: 0.95rem; }
.card .card-icon { margin: 0; color: var(--accent); }
.cta-band { border-top: 1px solid var(--line); padding-top: 2.5rem; }
/* THE RECEIPT + its event-log echo (the v2 signature: one sale, twice). */
.till { display: grid; gap: 1.1rem; }
.paper { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; line-height: 1.55; background: #f2ead9; color: #1e2227; border: 1px solid var(--line); border-radius: 3px; padding: 1.1rem 1rem 1.3rem; transform: rotate(-1deg); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18); }
.paper p { margin: 0.1rem 0; }
.r-head, .r-foot { text-align: center; letter-spacing: 0.08em; }
.r-head { font-weight: 700; }
.r-foot { margin-top: 0.5rem; color: #5c5344; }
.r-line { display: flex; justify-content: space-between; gap: 1rem; }
.r-note { color: #5c5344; }
.r-total { font-weight: 700; font-size: 0.9rem; }
.tear { border: 0; border-top: 1px dashed rgba(30, 34, 39, 0.45); margin: 0.55rem 0; }
.echo p { margin: 0.2rem 0; }
.e-line { display: flex; justify-content: space-between; gap: 1rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.75rem; color: var(--soft); }
.e-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 0.55rem; vertical-align: 2px; }
.e-ref { color: var(--ink); }
.e-cap { color: var(--soft); font-size: 0.85rem; margin-top: 0.6rem; }
/* The ledger voice: per-card capability lines, the real query, the FAQ, the apply steps. */
p.card-caps, .strip-caps { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.02em; border-top: 1px solid var(--line); margin: 0.85rem 0 0; padding-top: 0.65rem; color: var(--soft); }
.query { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85rem; background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; overflow-x: auto; margin: 1.25rem 0 0.75rem; }
.dev-cap { color: var(--soft); font-size: 0.9rem; }
.faq details { border-top: 1px solid var(--line); padding: 0.85rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq summary::marker { color: var(--accent); }
.faq details p { color: var(--soft); margin: 0.6rem 0 0; }
.apply-steps { padding-left: 1.3rem; margin: 1.25rem 0; }
.apply-steps li { margin: 0.45rem 0; color: var(--soft); }
.apply-steps li::marker { color: var(--accent); font-weight: 700; }
.apply-steps b { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ── the commercial model (v3 S224 #361 — the $5 face; merchant voice; the ledger voice carries the numbers) ── */
.card p.price-big { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 2.6rem; font-weight: 800; line-height: 1.1; margin: 0 0 0.6rem; color: var(--ink); }
.price-big .price-per { font-size: 1rem; font-weight: 400; color: var(--soft); margin-left: 0.3rem; }
.card p.plan-price { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 700; margin: 0.3rem 0 0.4rem; color: var(--ink); }
.plans-head { font-size: 1.1rem; margin: 2.25rem 0 0.5rem; }
.features.plans { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.usd-note { color: var(--soft); font-size: 0.85rem; }
/* The THEM/US ledger (v3.1 — the unnamed-competitor contrast; text glyphs, not icons — #339 governs iconography). */
.vs-list { margin: 1.25rem 0 0; }
.vs-list dt { color: var(--soft); margin: 1.1rem 0 0.2rem; }
.vs-list dt::before { content: "✕ "; color: var(--soft); }
.vs-list dd { margin: 0; color: var(--ink); }
.vs-list dd::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.horizon-list { padding-left: 1.3rem; margin: 1rem 0 0; }
.horizon-list li { margin: 0.45rem 0; color: var(--soft); }
.horizon-list li::marker { color: var(--accent); }
/* ── the signup treatment (S211-f) ── */
ol.steps { display: flex; align-items: stretch; gap: 1rem; padding: 0; margin: 1.5rem 0 2rem; list-style: none; color: var(--soft); font-size: 0.95rem; }
/* Each step is a CARD (the landing-card idiom) so the three stages read as distinct stations (S211-k). */
ol.steps li { flex: 1; background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem 1rem; }
ol.steps li.sep { flex: 0 0 auto; align-self: center; color: var(--accent); background: transparent; border: 0; padding: 0; }
ol.steps b { display: block; color: var(--ink); margin-bottom: 0.15rem; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; background: var(--accent); color: var(--btn-ink); border-radius: 50%; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; }
small.help { display: block; color: var(--soft); font-size: 0.85rem; margin-top: 0.3rem; }
.back { margin: 0 0 1.25rem; }
/* Leave-the-page links (Back, Cancel) are MUTED — never the primary accent (S211-j). */
.back a { color: var(--soft); text-decoration: none; }
.back a:hover { color: var(--ink); }
.cancel { color: var(--soft); }
.cancel:hover { color: var(--ink); }
select { width: 100%; font: inherit; color: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--field); }

/* S246 — the zero-JS multi-select group (the signup onlineSales checkboxes): each option is a flex
   row; the checkbox escapes the global full-width input rule. */
p.checks label { display: flex; align-items: center; gap: 0.55rem; margin: 0.45rem 0; }
p.checks input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--accent); }
