:root {
  --bg: #161519;
  --bg-2: #1d1c21;
  --surface: #23212a;
  --surface-2: #2b2932;
  --line: #3a3742;
  --cream: #f3ead8;
  --cream-2: #d9cfbd;
  --muted: #a89f92;
  --tomato: #e2553d;
  --tomato-soft: rgba(226, 85, 61, 0.16);
  --ember: #e9a23b;
  --slate: #8193a8;
  --slate-2: #5d6d80;
  --slate-3: #3f4b5a;
  --slate-soft: rgba(129, 147, 168, 0.16);
  --good: #8fcf9a;
  --radius: 18px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(226,85,61,0.10), transparent 60%),
                    radial-gradient(900px 500px at -10% 30%, rgba(233,162,59,0.05), transparent 60%);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--cream); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
button, input, select { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ember); color: #1a1208; padding: 10px 14px; border-radius: 10px; z-index: 50; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* top bar */
.topbar { border-bottom: 1px solid var(--line); background: rgba(22,21,25,0.85); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brandmark { font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 10px; }
.brandmark .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 4px var(--tomato-soft); }
.toplink { font-size: 16px; color: var(--cream-2); text-decoration: none; }
.toplink:hover { text-decoration: underline; }
@media (max-width: 520px) { .toplink { display: none; } }

/* hero */
.hero { padding-top: 56px; padding-bottom: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 600; color: var(--ember); margin: 0 0 14px; }
h1 { font-family: var(--display); font-weight: 650; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -0.015em; margin: 0 0 18px; max-width: 18ch; }
h1 .accent { color: var(--tomato); }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--cream-2); max-width: 46ch; margin: 0 0 26px; }
.example-card { display: inline-flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; max-width: 100%; }
.ex-icon { width: 46px; height: 46px; color: var(--tomato); flex: none; }
.ex-name { margin: 0; font-weight: 700; font-size: 18px; }
.ex-sub { margin: 0 0 4px; color: var(--muted); font-size: 16px; }
.ex-link { font-size: 16px; font-weight: 600; color: var(--ember); }

.sec-h { font-family: var(--display); font-weight: 650; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.01em; }
.sec-sub { color: var(--cream-2); margin: -8px 0 24px; font-size: 18px; }

/* demo */
.demo { padding-top: 48px; padding-bottom: 32px; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 8px; }
.tab { all: unset; box-sizing: border-box; cursor: pointer; border-radius: 15px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; min-width: 0; transition: background .2s; }
.tab:hover { background: var(--surface); }
.tab:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.tab-k { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--surface-2); color: var(--cream-2); }
.tab-t { font-weight: 700; font-size: 19px; line-height: 1.2; }
.tab-s { font-size: 15px; color: var(--muted); line-height: 1.3; }
.tab[aria-selected="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--tomato); }
.tab[aria-selected="true"] .tab-k { background: var(--tomato); color: #fff; }
.tab.is-third[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--slate); }
.tab.is-third[aria-selected="true"] .tab-k { background: var(--slate); color: #10151b; }
@media (max-width: 640px) {
  .tabs { grid-template-columns: 1fr; }
  .tab { padding: 12px 14px; }
}

.panel { margin-top: 18px; }
.options { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 30px; margin-bottom: 14px; }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.opt[hidden] { display: none; }
.opt-label { font-weight: 600; }
.opt-note { margin: 0; color: var(--cream-2); font-size: 16px; }

.seg { display: inline-flex; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg-b { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 16px; color: var(--cream-2); }
.seg-b:hover { background: var(--surface); }
.seg-b[aria-pressed="true"] { background: var(--slate-3); color: var(--cream); box-shadow: inset 0 0 0 1px var(--slate); }
.seg-speed .seg-b[aria-pressed="true"] { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--cream-2); }

.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.btn { border: 1px solid var(--line); background: var(--surface); padding: 11px 18px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; }
.btn:hover { background: var(--surface-2); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--tomato); border-color: var(--tomato); color: #fff; font-size: 18px; padding: 12px 22px; box-shadow: 0 8px 24px -10px rgba(226,85,61,.7); }
.btn-primary:hover { background: #ec634b; }
.btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--cream-2); }
@media (max-width: 640px) {
  .controls .btn-primary { flex: 1 1 100%; justify-content: center; }
  .controls .btn { flex: 1 1 auto; justify-content: center; }
}

/* stage */
.stage { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(84px, 128px) repeat(var(--n, 6), minmax(0, 1fr)); grid-auto-rows: minmax(88px, auto); column-gap: 14px; row-gap: 10px; }
.lane-bg { grid-column: 1 / -1; border-radius: 14px; background: rgba(255,255,255,0.025); border: 1px dashed rgba(255,255,255,0.05); position: relative; }
.lane-label { grid-column: 1; align-self: center; display: flex; align-items: center; gap: 8px; padding-left: 12px; font-weight: 600; font-size: 15px; color: var(--cream-2); line-height: 1.2; min-width: 0; z-index: 1; }
.lane-label svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.lane-note { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; font-style: italic; }
.lane-label.is-third svg { color: var(--slate); }

.step { grid-column: var(--c); grid-row: var(--r); align-self: center; z-index: 2; min-width: 0; margin: 8px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; opacity: .42; transition: opacity .35s, border-color .35s, background .35s, transform .35s; }
.step-n { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; }
.step-t { font-weight: 700; font-size: 15px; line-height: 1.25; display: block; overflow-wrap: anywhere; }
.step-lane, .step-cap { display: none; }
.step.is-done { opacity: .85; }
.step.is-active { opacity: 1; border-color: var(--tomato); background: #2c2324; transform: translateY(-2px); box-shadow: 0 10px 30px -14px rgba(226,85,61,.8); }
.step.is-third.is-active { border-color: var(--slate); background: #232a33; box-shadow: 0 10px 30px -14px rgba(129,147,168,.8); }
.step.is-done .step-n::after { content: " ✓"; color: var(--good); }

.wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.wire-base { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 2; stroke-dasharray: 4 6; }
.wire { fill: none; stroke: var(--tomato); stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.wire.is-third { stroke: var(--slate); }

.token { position: absolute; left: 0; top: 0; z-index: 3; width: 58px; display: flex; flex-direction: column; align-items: center; opacity: 0; transition: transform .75s cubic-bezier(.6,.05,.25,1), opacity .3s; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.token.is-on { opacity: 1; }
.token svg { width: 44px; height: 33px; }
.token span { font-size: 12px; font-weight: 700; background: var(--tomato); color: #fff; padding: 1px 7px; border-radius: 99px; margin-top: -4px; }

/* list layout (phones, reduced motion) */
.stage.is-list .grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; row-gap: 14px; }
.stage.is-list .lane-bg, .stage.is-list .lane-label { display: none; }
.stage.is-list .step { grid-column: 1; grid-row: auto; margin: 0; padding: 12px 14px 12px 56px; position: relative; opacity: .5; }
.stage.is-list .step::before { content: attr(data-num); position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 14px; }
.stage.is-list .step.is-active::before, .stage.is-list .step.is-done::before { background: var(--tomato); color: #fff; }
.stage.is-list .step.is-third.is-active::before, .stage.is-list .step.is-third.is-done::before { background: var(--slate); color: #10151b; }
.stage.is-list .step-n { display: none; }
.stage.is-list .step-lane { display: inline-block; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stage.is-list .step-t { font-size: 17px; padding-right: 54px; }
.stage.is-list .step-cap { display: block; font-size: 16px; color: var(--cream-2); margin-top: 2px; }
.stage.is-list .step.is-active, .stage.is-list .step.is-done { opacity: 1; }
.stage.is-list .step.is-done { border-color: var(--line); }

.caption { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--tomato); border-radius: 14px; padding: 16px 20px; min-height: 96px; }
.caption.is-third { border-left-color: var(--slate); }
.cap-step { margin: 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ember); }
.cap-text { margin: 4px 0 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.4; }

/* live grid */
.live-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; margin-top: 22px; align-items: start; }
@media (max-width: 1080px) { .live-grid { grid-template-columns: 280px minmax(0, 1fr); } .receipt { grid-column: 1 / -1; } }
@media (max-width: 640px) { .live-grid { grid-template-columns: minmax(0, 1fr); } .receipt { grid-column: auto; } }
figure { margin: 0; }
figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 10px; }

.phone-wrap { justify-self: center; width: 100%; max-width: 280px; }
.phone { position: relative; height: 430px; border-radius: 40px; background: #0d0d10; border: 2px solid #3d3a44; padding: 34px 12px 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 0 0 6px #141318; display: flex; flex-direction: column; overflow: hidden; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 84px; height: 20px; border-radius: 12px; background: #000; }
.phone-head { display: flex; gap: 10px; align-items: center; padding: 6px 6px 10px; border-bottom: 1px solid #25232b; }
.phone-av { width: 34px; height: 34px; border-radius: 50%; background: var(--tomato); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 13px; flex: none; }
.phone-av.is-third { background: var(--slate); color: #10151b; }
.phone-name { display: block; font-weight: 700; font-size: 16px; line-height: 1.2; }
.phone-sub { display: block; font-size: 13px; color: var(--muted); }
.sms { list-style: none; margin: 0; padding: 10px 4px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; justify-content: flex-end; overflow: hidden; }
.sms li { background: #2c2a33; border-radius: 16px 16px 16px 5px; padding: 9px 12px; font-size: 15px; line-height: 1.35; max-width: 92%; animation: pop .35s ease-out both; }
.sms li.is-third { background: #26303b; }
.sms li time { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.sms .sms-empty { background: none; color: var(--muted); text-align: center; align-self: center; max-width: 100%; animation: none; font-size: 15px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }

.kitchen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.tablet { background: #101014; border: 1px solid #34313b; border-radius: 14px; padding: 12px 14px; }
.tablet-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); gap: 8px; }
.chime { display: inline-flex; align-items: center; gap: 4px; color: var(--ember); font-weight: 700; opacity: 0; }
.chime svg { width: 18px; height: 18px; }
.chime.is-ring { animation: ring 1.4s ease-out both; }
@keyframes ring { 0% { opacity: 0; transform: rotate(0); } 10% { opacity: 1; transform: rotate(-12deg); } 20% { transform: rotate(12deg); } 30% { transform: rotate(-8deg); } 40% { transform: rotate(0); } 85% { opacity: 1; } 100% { opacity: 0; } }
.tablet-status { margin: 6px 0 0; font-weight: 700; font-size: 18px; line-height: 1.3; }
.tablet-status.is-new { color: var(--ember); }
.printer { margin-top: 16px; height: 22px; background: linear-gradient(#3a3742, #2a2830); border-radius: 10px 10px 4px 4px; position: relative; }
.printer-slot { position: absolute; left: 12%; right: 12%; bottom: 4px; height: 4px; background: #0c0c0f; border-radius: 3px; }
.ticket { position: relative; margin: -4px 14% 0; background: #fbf6ea; color: #26221b; border-radius: 0 0 6px 6px; overflow: hidden; max-height: 0; transition: max-height 1.4s steps(14, end); font-family: "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.45; box-shadow: 0 10px 20px -10px rgba(0,0,0,.6); }
.ticket.is-printed { max-height: 360px; }
.ticket-in { padding: 12px 14px 16px; }
.ticket-in .tk-h { font-weight: 700; text-align: center; border-bottom: 1px dashed #b9ad94; padding-bottom: 6px; margin-bottom: 6px; }
.ticket-in .tk-row { display: flex; justify-content: space-between; gap: 8px; }
.ticket-in .tk-foot { border-top: 1px dashed #b9ad94; margin-top: 6px; padding-top: 6px; font-weight: 700; display: flex; justify-content: space-between; }
.stamp { position: absolute; right: 8px; bottom: 44px; transform: rotate(-12deg) scale(1.6); opacity: 0; border: 3px solid var(--tomato); color: var(--tomato); font-family: var(--body); font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; font-size: 15px; transition: transform .3s ease-out, opacity .3s; background: rgba(251,246,234,.85); }
.stamp.is-on { opacity: 1; transform: rotate(-12deg) scale(1); }
.stamp.is-third { border-color: var(--slate-2); color: var(--slate-2); }
.owner-text { margin: 14px 0 0; font-size: 15px; color: var(--cream-2); min-height: 22px; }
.owner-text b { color: var(--cream); }

.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.receipt h3 { font-family: var(--display); font-size: 24px; font-weight: 650; margin: 0 0 4px; }
.r-order { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.r-items { list-style: none; margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px dashed var(--line); font-size: 16px; color: var(--cream-2); }
.r-items li { display: flex; justify-content: space-between; gap: 12px; }
.r-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); transition: opacity .3s; }
.r-line > span:first-child { min-width: 0; }
.r-line small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
.r-line > span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.r-line.is-off { opacity: .4; }
.r-sub { font-weight: 700; }
.neg { color: #f0a493; }
.r-line.is-third .neg { color: #b7c4d4; }
.switch { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--tomato); margin: 0; }
.field-inline { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 16px; }
.field-inline input, .field-inline select { background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px; width: 92px; font-size: 16px; }
.field-inline select { width: auto; padding-right: 4px; }
.r-keep { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.r-keep > span:first-child { font-family: var(--display); font-size: 24px; font-weight: 650; }
.keep-num { font-family: var(--display); font-weight: 650; font-size: clamp(34px, 4vw, 46px); color: var(--good); font-variant-numeric: tabular-nums; line-height: 1; }
.r-keep.is-pulse .keep-num { animation: glow 1.2s ease-out; }
@keyframes glow { 0% { text-shadow: 0 0 0 rgba(143,207,154,0); } 30% { text-shadow: 0 0 24px rgba(143,207,154,.7); } 100% { text-shadow: 0 0 0 rgba(143,207,154,0); } }
.bar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; margin-top: 14px; background: var(--bg-2); }
.bar span { height: 100%; transition: width .6s ease; }
.b-keep { background: var(--good); }
.b-proc { background: #b07a6e; }
.b-courier { background: var(--slate); }
.b-comm { background: var(--slate-2); }
.r-pct { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.legend { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; white-space: nowrap; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.compare { margin-top: 22px; }
.compare-h { margin: 0 0 10px; font-weight: 700; font-size: 18px; }
.compare-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .compare-row { grid-template-columns: minmax(0, 1fr); } }
.cmp { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; display: block; width: 100%; }
.cmp:hover { background: var(--surface-2); }
.cmp.is-current { border-color: var(--tomato); }
.cmp.is-third.is-current { border-color: var(--slate); }
.cmp-t { display: block; font-weight: 700; font-size: 16px; }
.cmp-s { display: block; font-size: 14px; color: var(--muted); }
.cmp-v { display: block; font-family: var(--display); font-size: 30px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; }
.cmp-bar { display: block; height: 8px; border-radius: 99px; background: var(--bg-2); margin-top: 8px; overflow: hidden; }
.cmp-bar i { display: block; height: 100%; background: var(--good); border-radius: 99px; transition: width .6s ease; }
.cmp.is-third .cmp-bar i { background: var(--slate); }
.cmp-p { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* calculator */
.calc { padding-top: 56px; padding-bottom: 32px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: minmax(0, 1fr); } }
.calc-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (max-width: 560px) { .calc-in { grid-template-columns: minmax(0, 1fr); } }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--cream-2); min-width: 0; }
.f small { color: var(--muted); }
.f-wide { grid-column: 1 / -1; }
.f input[type="number"] { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 18px; width: 100%; min-width: 0; color: var(--cream); }
.f input[type="range"] { width: 100%; accent-color: var(--tomato); height: 28px; }
.pre, .post { display: flex; align-items: center; gap: 6px; color: var(--cream); font-size: 18px; }
.calc-out { background: linear-gradient(160deg, #2a2224, var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.co-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-variant-numeric: tabular-nums; }
.co-line span:last-child { font-weight: 600; white-space: nowrap; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; flex-wrap: wrap; }
.co-total span:first-child { font-weight: 700; font-size: 18px; }
.co-total span:last-child { font-family: var(--display); font-size: clamp(34px, 4vw, 46px); font-weight: 650; color: var(--good); font-variant-numeric: tabular-nums; line-height: 1.1; }
.co-total span.is-neg { color: #f0a493; }
.co-sentence { font-size: 18px; margin: 12px 0 8px; }
.co-note { font-size: 15px; color: var(--muted); margin: 0; }

/* plug strip */
.plug { padding-top: 56px; padding-bottom: 48px; }
.plug-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1080px) { .plug-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .plug-row { grid-template-columns: minmax(0, 1fr); } }
.plug-row li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--tomato-soft); color: var(--tomato); font-weight: 700; }
.plug-row h3 { font-size: 18px; margin: 12px 0 6px; line-height: 1.25; }
.plug-row p { margin: 0; color: var(--cream-2); font-size: 16px; }
.techy { margin-top: 20px; color: var(--muted); font-size: 15px; }
.techy summary { cursor: pointer; font-weight: 600; color: var(--cream-2); }
.techy p { max-width: 80ch; }

.selftest { white-space: pre-wrap; background: #000; color: #9f9; padding: 12px; margin: 16px; border-radius: 8px; font-size: 14px; }

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 15px; }
.foot p { margin: 0 0 8px; max-width: 90ch; }
.foot a { color: var(--cream-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .token { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .chime.is-ring { opacity: 1; }
}

/* compact hero on wide screens so the demo sits higher */
section[id], .stage { scroll-margin-top: 74px; }
@media (min-width: 1000px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); column-gap: 40px; align-items: end; padding-top: 44px; }
  .hero .eyebrow, .hero h1, .hero .lede { grid-column: 1; }
  .hero h1 { max-width: none; font-size: clamp(40px, 4.2vw, 58px); }
  .hero .example-card { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin-bottom: 26px; }
  .demo { padding-top: 28px; }
}
