/* Layout: a packing slip. Product shown as printed sheets on a work surface; codes and figures in mono like stock labels. */
:root {
  color-scheme: light;
  --bench: #eef2f0;      /* the work surface */
  --paper: #ffffff;      /* printed sheets and cards */
  --ink: #0f2520;        /* deep green-black text */
  --ink-2: #41554f;
  --muted: #6b7d77;
  --rule: #d3dcd8;
  --brand: #1f4f46;      /* the workbook's own green */
  --on-brand: #ffffff;
  --sticker: #ffc83a;    /* price-sticker yellow */
  --on-sticker: #231a00;
  --wash: #e1ebe7;
  --alert: #a8440f;
  --shadow: 0 1px 2px rgba(15,37,32,.08), 0 14px 40px -12px rgba(15,37,32,.22);
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bench: #0b1614; --paper: #13211e; --ink: #eef5f2; --ink-2: #b9cbc5; --muted: #8aa099; --rule: #24403a;
    --brand: #7fd0bd; --on-brand: #06201b; --sticker: #ffc83a; --on-sticker: #231a00; --wash: #172b27;
    --alert: #ffab7a; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 14px 40px -12px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bench: #0b1614; --paper: #13211e; --ink: #eef5f2; --ink-2: #b9cbc5; --muted: #8aa099; --rule: #24403a;
  --brand: #7fd0bd; --on-brand: #06201b; --sticker: #ffc83a; --on-sticker: #231a00; --wash: #172b27;
  --alert: #ffab7a; --shadow: 0 1px 2px rgba(0,0,0,.5), 0 14px 40px -12px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bench); color: var(--ink); font: 400 17px/1.6 var(--body);
  -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 6.2vw, 4.35rem); font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(transparent 82%, var(--sticker) 82%, var(--sticker) 97%, transparent 97%); }
h2 { font-size: clamp(1.75rem, 3.9vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sticker); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1140px; margin-inline: auto; padding-inline: 20px; }
section { padding-block: clamp(56px, 8vw, 104px); }
.kicker { font: 700 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.sub { color: var(--ink-2); max-width: 60ch; margin-top: 14px; font-size: 1.06rem; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 14px; max-width: 60ch; }
.mail { font-family: var(--mono); font-size: .92em; overflow-wrap: anywhere; }

.btn { display: inline-block; font: 700 1.02rem/1 var(--body); text-decoration: none; text-align: center; cursor: pointer;
  background: var(--brand); color: var(--on-brand); padding: 16px 24px; border-radius: 12px; border: 2px solid var(--brand);
  transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px var(--brand); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.small { padding: 10px 16px; font-size: .92rem; border-radius: 10px; }
.btn.block { display: block; margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:hover { transform: none; } }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bench) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; gap: 14px 22px; padding-block: 12px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 1.15rem/1 var(--display); color: var(--ink); text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; flex: none; }
.mark::after { content: ""; width: 11px; height: 11px; border: 2.5px solid var(--on-brand); border-radius: 2px; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: .95rem; font-weight: 500; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 700px) { .top nav { display: none; } .top .btn.small { margin-left: auto; } }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { min-width: 0; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.24rem); color: var(--ink-2); margin-top: 22px; max-width: 54ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.assure { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.assure li { display: flex; align-items: center; gap: 8px; }
.assure li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--brand); flex: none; }
.hero-shot { margin: 0; position: relative; min-width: 0; }
.hero-shot img { background: #fff; border-radius: 12px; border: 1px solid var(--rule); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero-shot figcaption { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.sticker { position: absolute; z-index: 2; top: -22px; right: -6px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--sticker); color: var(--on-sticker); display: grid; place-content: center; text-align: center;
  font: 700 .8rem/1.1 var(--mono); text-transform: uppercase; letter-spacing: .06em; transform: rotate(9deg);
  box-shadow: 0 6px 18px -6px rgba(35,26,0,.6); }
.sticker span { font: 800 2rem/1 var(--display); letter-spacing: -.03em; display: block; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-shot img { transform: none; } .sticker { right: 6px; } }

/* the problem */
.pain { background: var(--paper); border-block: 1px solid var(--rule); }
.pain h2 { max-width: 20ch; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 30px; margin-top: 40px; }
.pain-grid p { color: var(--ink-2); margin-top: 8px; }
.tagcode { display: inline-block; font: 700 .72rem/1 var(--mono); letter-spacing: .1em; padding: 6px 9px; border-radius: 5px;
  background: var(--wash); color: var(--brand); margin-bottom: 14px; }

/* the tour: a sheet of paper with spreadsheet tabs along the bottom */
.sheet { margin-top: 38px; }
.sheet-view { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px 14px 0 0; padding: clamp(14px, 2.4vw, 28px);
  box-shadow: var(--shadow); }
.sheet-view figure { margin: 0; }
.sheet-view figure + figure { margin-top: 34px; }
.sheet-view img { background: #fff; border-radius: 6px; border: 1px solid var(--rule); margin-inline: auto; max-height: 560px; width: auto; }
.sheet-view figcaption { margin-top: 16px; color: var(--ink-2); max-width: 70ch; }
.sheet-view figcaption b { color: var(--ink); }
.sheet.live .sheet-view figure { display: none; margin-top: 0; }
.sheet.live .sheet-view figure.on { display: block; }
.sheet-tabs { display: none; }
.sheet.live .sheet-tabs { display: flex; gap: 3px; overflow-x: auto; padding: 0 10px; background: var(--wash);
  border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 14px 14px; }
.sheet-tabs button { font: 600 .9rem/1 var(--body); color: var(--ink-2); background: transparent; border: 0; cursor: pointer;
  padding: 13px 16px; border-radius: 0 0 9px 9px; white-space: nowrap; flex: none; }
.sheet-tabs button:hover { color: var(--ink); }
.sheet-tabs button[aria-selected="true"] { background: var(--paper); color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }

/* try it */
.try { background: var(--paper); border-block: 1px solid var(--rule); }
.try-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .try-grid { grid-template-columns: minmax(0, 1fr); } }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px 20px; margin-top: 28px; }
.calc label { font-weight: 600; font-size: .95rem; display: grid; gap: 7px; }
.calc label > span:not(.field) { font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: -4px; }
.field { display: flex; align-items: center; border: 2px solid var(--rule); border-radius: 10px; background: var(--bench); padding-inline: 12px; }
.field:focus-within { border-color: var(--brand); }
.field i { font: 500 1rem/1 var(--mono); color: var(--muted); font-style: normal; }
.field input { font: 700 1.1rem/1 var(--mono); color: var(--ink); background: transparent; border: 0; outline: 0; width: 100%;
  padding: 13px 8px; min-width: 0; font-variant-numeric: tabular-nums; }
.slip { background: var(--bench); border: 1px dashed var(--muted); border-radius: 4px; padding: 26px clamp(18px, 3vw, 30px); position: relative; }
.slip-head { font: 700 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.slip dl { margin: 18px 0 0; }
.slip dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 12px; border-bottom: 1px dashed var(--rule); }
.slip dt { color: var(--ink-2); }
.slip dd { margin: 0; font: 700 1.2rem/1 var(--mono); font-variant-numeric: tabular-nums; }
.slip .total { border-bottom: 0; padding-top: 16px; }
.slip .total dt { color: var(--ink); font-weight: 700; }
.slip .total dd { font-size: 1.9rem; color: var(--brand); }
.verdict { margin-top: 6px; font-weight: 600; padding: 10px 12px; border-radius: 8px; background: var(--wash); color: var(--brand); }
.verdict.low { color: var(--alert); background: color-mix(in srgb, var(--alert) 13%, var(--paper)); }

/* what you get */
.packing-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .packing-grid { grid-template-columns: minmax(0, 1fr); } }
.price-block { display: flex; align-items: baseline; gap: 12px; margin-block: 26px 22px; flex-wrap: wrap; }
.price { font: 800 4.2rem/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.price.small { font-size: 2.6rem; }
.price-note { color: var(--muted); font-weight: 500; }
.slip-list { list-style: none; margin: 0; padding: 8px clamp(16px, 3vw, 28px); background: var(--paper); border: 1px solid var(--rule);
  border-radius: 14px; box-shadow: var(--shadow); }
.slip-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 16px; padding-block: 14px; border-bottom: 1px dashed var(--rule); align-items: baseline; }
.slip-list li:last-child { border-bottom: 0; }
.slip-list .sku { font: 500 .78rem/1 var(--mono); color: var(--muted); grid-row: span 2; align-self: center; letter-spacing: .03em; }
.slip-list b { font-weight: 700; }
.slip-list li > span:last-child { color: var(--ink-2); font-size: .93rem; }

/* guarantee */
.promise { background: var(--brand); color: var(--on-brand); }
.promise-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: center; }
@media (max-width: 640px) { .promise-grid { grid-template-columns: minmax(0, 1fr); } }
.promise h2 { max-width: 22ch; }
.promise p { margin-top: 14px; max-width: 58ch; opacity: .94; }
.promise .fine { color: inherit; opacity: .78; }
.seal { width: 132px; height: 132px; border-radius: 50%; background: var(--sticker); color: var(--on-sticker); display: grid; place-content: center;
  text-align: center; font: 700 .85rem/1.1 var(--mono); text-transform: uppercase; letter-spacing: .1em; transform: rotate(-8deg);
  outline: 2px dashed var(--on-sticker); outline-offset: -9px; }
.seal span { font: 800 3rem/1 var(--display); letter-spacing: -.04em; display: block; }

/* questions */
.faq-wrap { max-width: 800px; }
.faq h2 { margin-bottom: 26px; }
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; font: 700 1.08rem/1.35 var(--display); padding-block: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 1.4rem/1 var(--mono); color: var(--brand); flex: none; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--ink-2); padding-bottom: 22px; max-width: 64ch; }

/* second product */
.also { background: var(--paper); border-block: 1px solid var(--rule); }
.also-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 760px) { .also-grid { grid-template-columns: minmax(0, 1fr); } }
.also p:not(.kicker):not(.fine) { color: var(--ink-2); margin-top: 14px; max-width: 62ch; }
.also-buy { display: grid; gap: 6px; justify-items: start; }
.also-buy .btn { margin-top: 12px; }

.last { text-align: center; }
.last h2 { max-width: 20ch; margin-inline: auto; margin-bottom: 30px; }

footer { border-top: 1px solid var(--rule); padding-block: 28px 44px; color: var(--muted); font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; }

/* download page */
.thanks { padding-block: clamp(44px, 7vw, 88px); }
.thanks h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 16ch; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 30px 0 0; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; color: var(--ink-2); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px;
  background: var(--brand); color: var(--on-brand); font: 700 1rem/1 var(--mono); margin-bottom: 12px; }
.steps b { display: block; color: var(--ink); }
.note { background: var(--wash); border-radius: 12px; padding: 18px 22px; margin-top: 28px; max-width: 760px; }

.center { text-align: center; margin-inline: auto; }
.cta-row.center { justify-content: center; }
.muted { color: var(--muted); }
.chip { display: inline-block; font: 700 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px;
  border-radius: 5px; background: var(--sticker); color: var(--on-sticker); vertical-align: 2px; }
.sheet-tabs button i { font: 700 .64rem/1 var(--mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 5px; border-radius: 4px; background: var(--sticker); color: var(--on-sticker); margin-left: 4px; vertical-align: 1px; }

/* see it work: a working slice of the kit */
.demo { margin-top: 36px; background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow);
  padding: clamp(16px, 2.6vw, 30px); }
.demo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.tile { background: var(--bench); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 16px; display: grid; gap: 6px; min-width: 0; }
.tile span { font: 700 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile b { font: 700 clamp(1.3rem, 2.6vw, 1.75rem)/1 var(--mono); color: var(--brand); font-variant-numeric: tabular-nums; }
.tile.alert.hot { border-color: var(--alert); }
.tile.alert.hot b { color: var(--alert); }
.tile.bump b { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.12); } }
.demo-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); margin-top: 22px; align-items: start; }
@media (max-width: 820px) { .demo-body { grid-template-columns: minmax(0, 1fr); } }
.demo-table { overflow-x: auto; min-width: 0; border: 1px solid var(--rule); border-radius: 10px; }
.demo-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.demo-table th { font: 700 .72rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-align: left;
  background: var(--brand); color: var(--on-brand); padding: 11px 12px; white-space: nowrap; }
.demo-table td { padding: 11px 12px; border-top: 1px solid var(--rule); white-space: nowrap; }
.demo-table .n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.demo-table tr.flash td { animation: flash 1s ease; }
@keyframes flash { 0% { background: var(--sticker); } 100% { background: transparent; } }
.state { font: 700 .74rem/1 var(--mono); letter-spacing: .06em; padding: 5px 8px; border-radius: 5px; background: var(--wash); color: var(--brand); }
.state.low { background: color-mix(in srgb, var(--alert) 16%, var(--paper)); color: var(--alert); }
.demo-form { display: grid; gap: 8px; min-width: 0; }
.demo-form label { font-weight: 600; font-size: .92rem; margin-top: 6px; }
.demo-form select, .stepper input { font: 600 1rem/1 var(--body); color: var(--ink); background: var(--bench); border: 2px solid var(--rule);
  border-radius: 10px; padding: 12px; width: 100%; min-width: 0; }
.stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 8px; }
.stepper input { text-align: center; font-family: var(--mono); }
.stepper button { font: 700 1.2rem/1 var(--mono); color: var(--brand); background: var(--wash); border: 0; border-radius: 10px; cursor: pointer; }
.reset { background: none; border: 0; color: var(--muted); font: 500 .9rem/1 var(--body); text-decoration: underline; cursor: pointer;
  padding: 10px; justify-self: center; }
.demo-log { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 6px; font: 500 .88rem/1.45 var(--mono); color: var(--ink-2); }
.demo-log li { padding: 9px 12px; border-left: 3px solid var(--brand); background: var(--bench); border-radius: 0 8px 8px 0; overflow-wrap: anywhere; }
.demo-log li.warn { border-left-color: var(--alert); }
.demo-tease { margin-top: 20px; padding: 18px 20px; border-radius: 12px; background: var(--wash); display: flex; gap: 16px 24px;
  align-items: center; justify-content: space-between; flex-wrap: wrap; }
.demo-tease p { max-width: 62ch; min-width: 0; flex: 1 1 320px; }
@media (prefers-reduced-motion: reduce) { .tile.bump b, .demo-table tr.flash td { animation: none; } }

.calc label.wide { grid-column: 1 / -1; }

/* pricing */
.pricing { background: var(--paper); border-block: 1px solid var(--rule); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; margin-top: 38px; align-items: start; }
.tier { background: var(--bench); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(22px, 3vw, 32px); position: relative; min-width: 0; }
.tier.best { border: 2px solid var(--brand); background: var(--paper); box-shadow: var(--shadow); }
.tier h3 { font-size: 1.45rem; }
.tier-for { color: var(--ink-2); margin-top: 8px; min-height: 3.2em; }
.tier .price-block { margin-block: 14px 18px; }
.flag { position: absolute; top: -13px; left: 24px; font: 700 .72rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: var(--sticker); color: var(--on-sticker); padding: 7px 10px; border-radius: 6px; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 11px; color: var(--ink-2); }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.ticks b { color: var(--ink); }

.promise p + p { margin-top: 12px; }
details p + p { margin-top: -10px; }

/* buy bar: slides in once the first screen is out of view */
.buybar { position: fixed; inset: auto 0 0 0; z-index: 20; background: var(--ink); color: var(--bench);
  padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px -12px rgba(0,0,0,.5); }
.buybar-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.buybar-row > span { min-width: 0; font-size: .95rem; }
.buybar .muted { color: color-mix(in srgb, var(--bench) 70%, transparent); }
.buybar .btn { background: var(--sticker); border-color: var(--sticker); color: var(--on-sticker); flex: none; }
body.has-bar footer { padding-bottom: 96px; }
