:root {
  --bg: #f6f7f9; --bg-2: #eef0f3; --paper: #ffffff; --ink: #14171c; --ink-2: #4b525d; --ink-3: #868d98; --line: #e2e5ea; --line-2: #d3d7de;
  --green: #07855e; --green-ink: #056b4b; --green-soft: #e4f4ed; --green-2: #0a9a6d;
  --red: #dd3b28; --red-soft: #fde8e4; --amber: #a86a00; --amber-soft: #fcf1da; --blue: #2f5fd0; --blue-soft: #e6edfb;
  --rule: #d6e4f5; --margin: #f3b4ab;
  --shadow: 0 1px 0 rgba(20,23,28,.04), 0 30px 60px -30px rgba(20,23,28,.28);
  --display: "Familjen Grotesk", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --hand: "Caveat", "Segoe Print", cursive;
  --wm: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  --r: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-pop-theme="light"]) {
    --bg: #0e1013; --bg-2: #13161a; --paper: #15181d; --ink: #eef0f3; --ink-2: #a8afba; --ink-3: #79818d; --line: #262a31; --line-2: #313640;
    --green: #34d399; --green-ink: #6ee7b7; --green-soft: #0f2c22; --green-2: #6ee7b7;
    --red: #ff6a55; --red-soft: #3a1b16; --amber: #fbbf4a; --amber-soft: #33260b; --blue: #7aa2ff; --blue-soft: #18223a;
    --rule: #1f2c3d; --margin: #5b2a24; --shadow: 0 30px 60px -30px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-pop-theme="dark"] {
  --bg: #0e1013; --bg-2: #13161a; --paper: #15181d; --ink: #eef0f3; --ink-2: #a8afba; --ink-3: #79818d; --line: #262a31; --line-2: #313640;
  --green: #34d399; --green-ink: #6ee7b7; --green-soft: #0f2c22; --green-2: #6ee7b7;
  --red: #ff6a55; --red-soft: #3a1b16; --amber: #fbbf4a; --amber-soft: #33260b; --blue: #7aa2ff; --blue-soft: #18223a;
  --rule: #1f2c3d; --margin: #5b2a24; --shadow: 0 30px 60px -30px rgba(0,0,0,.7); color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
table { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.draft { background: var(--ink); color: var(--paper); font: 500 12px/1 var(--mono); text-align: center; padding: 8px 16px; letter-spacing: .06em; }
.eyebrow { font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink); }
.hand { font-family: var(--hand); color: var(--red); font-size: 22px; line-height: 1.1; }
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: clamp(34px, 4.8vw, 56px); }
.sec-head p { color: var(--ink-2); font-size: 19px; max-width: 38em; }

/* header */
.head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.wm { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 500 22px/1 var(--wm); letter-spacing: -.02em; white-space: nowrap; }
.wm b { font-weight: 800; }
.wm svg { width: 28px; height: 28px; flex: none; }
.head nav { display: flex; gap: 4px; margin-left: 12px; }
.head nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 6px 10px; border-radius: var(--r); }
.head nav a:hover { color: var(--ink); background: var(--paper); }
.head .cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
@media (max-width: 920px) { .head nav, .head .cta .ghost { display: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r); font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 10px 22px -12px var(--green); }
:root[data-pop-theme="dark"] .btn.primary { color: #06150f; }
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; }
.mode { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: 600 14px/1 var(--body); cursor: pointer; }
.mode svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mode .moon { fill: currentColor; stroke: none; }
:root[data-pop-theme="dark"] .mode .moon, :root:not([data-pop-theme="dark"]) .mode .sun { display: none; }
@media (max-width: 520px) { .mode span { display: none; } }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 40%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--green) 10%, transparent), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 1040px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(42px, 5vw, 66px); letter-spacing: -.04em; line-height: .98; margin-top: 16px; }
.hero h1 .u { position: relative; white-space: nowrap; }
.hero h1 .u svg { position: absolute; left: -2%; bottom: -.1em; width: 104%; height: .3em; overflow: visible; }
.hero h1 .u path { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 440; animation: ink 1.2s .4s cubic-bezier(.6,.1,.3,1) backwards; }
@keyframes ink { from { stroke-dashoffset: 440; } }
.hero .lede { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 30em; }
.hero .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero .small { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.proof span { display: inline-flex; gap: 7px; align-items: center; }
.proof svg { width: 16px; height: 16px; color: var(--green); }

/* app window (same look as the app) */
.stage { position: relative; }
.win { position: relative; width: 760px; height: 476px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; transform-origin: 0 0; font-size: 13px; line-height: 1.4; }
.win.compact { width: 520px; }
.chrome { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--paper); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.chrome .url { margin: 0 auto; font: 500 11px var(--mono); color: var(--ink-3); background: var(--bg); padding: 4px 14px; border-radius: 6px; }
.app { display: grid; grid-template-columns: 150px 1fr; height: calc(100% - 34px); }
.win.compact .app { grid-template-columns: 1fr; }
.win.compact .rail { display: none; }
.rail { border-right: 1px solid var(--line); padding: 12px 10px; display: grid; align-content: start; gap: 3px; background: var(--paper); }
.rail .brand { display: flex; gap: 7px; align-items: center; font: 500 15px/1 var(--wm); margin: 2px 4px 14px; }
.rail .brand b { font-weight: 800; }
.rail .brand svg { width: 22px; height: 22px; }
.rail a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 12.5px; transition: background .3s, color .3s; }
.rail a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rail a em { margin-left: auto; font: 500 10px var(--mono); font-style: normal; padding: 1px 6px; border-radius: 999px; background: var(--bg-2); }
.rail a.on { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.main { position: relative; overflow: hidden; }
.top { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.top b { font: 700 15px var(--display); }
.top small { color: var(--ink-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.top .sp { flex: 1; }
.win.compact .top .opt { display: none; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--paper); font: 600 11.5px var(--body); color: var(--ink); white-space: nowrap; transition: transform .15s, box-shadow .2s; }
.chip-btn.g { background: var(--green); border-color: var(--green); color: #fff; }
:root[data-pop-theme="dark"] .chip-btn.g { color: #06150f; }
.chip-btn.press { transform: scale(.94); box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 22%, transparent); }
.scene { position: absolute; inset: 0; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.scene.on { opacity: 1; visibility: visible; }
.cursor { position: absolute; left: 0; top: 0; z-index: 9; width: 18px; height: 18px; transition: transform .9s cubic-bezier(.5,.05,.2,1), opacity .3s; opacity: 0; pointer-events: none; }
.cursor svg { width: 18px; height: 18px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }

/* hero scene: import */
.drop { position: absolute; inset: 16px; border: 2px dashed var(--line-2); border-radius: 12px; display: grid; place-items: center; text-align: center; transition: border-color .3s, background .3s, opacity .3s; }
.drop.hot { border-color: var(--green); background: var(--green-soft); }
.drop .msg b { display: block; font: 700 17px var(--display); }
.drop .msg span { color: var(--ink-3); font-size: 12px; }
.drop .msg svg { width: 30px; height: 30px; color: var(--green); margin-bottom: 6px; }
.file { position: absolute; left: 50%; top: 50%; display: inline-flex; gap: 8px; align-items: center; padding: 9px 12px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 9px; box-shadow: 0 14px 30px -14px rgba(0,0,0,.35); font: 500 12px var(--mono); transform: translate(-280px, -230px) rotate(-8deg); opacity: 0; transition: transform 1s cubic-bezier(.3,.7,.2,1), opacity .3s; white-space: nowrap; }
.file i { width: 22px; height: 26px; border-radius: 3px; background: var(--green); position: relative; flex: none; }
.file i::after { content: "XLS"; position: absolute; inset: auto 0 4px; font: 700 7px var(--mono); color: #fff; text-align: center; }
.file.in { opacity: 1; transform: translate(-50%, -50%) rotate(0); }
.file.gone { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.reading { position: absolute; inset: 16px; display: grid; align-content: center; gap: 12px; padding: 0 40px; opacity: 0; transition: opacity .3s; }
.reading.on { opacity: 1; }
.reading .bar { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.reading .bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: 3px; transition: width 1.6s ease-out; }
.reading ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 7px; }
.reading li { display: flex; gap: 8px; align-items: center; color: var(--ink-2); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.reading li.on { opacity: 1; transform: none; }
.reading li svg { width: 15px; height: 15px; color: var(--green); flex: none; }
.reading .t { font: 700 16px var(--display); }

/* hero scene: overview */
.ov .eb { font: 500 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.ov h4 { font-size: 26px; letter-spacing: -.03em; margin: 4px 0 12px; }
.ov h4 span { color: var(--ink-3); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.win.compact .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis div { padding: 10px 12px; border-left: 1px solid var(--line); }
.kpis div:first-child { border-left: 0; }
.win.compact .kpis div:nth-child(3) { border-left: 0; }
.win.compact .kpis div:nth-child(n+3) { border-top: 1px solid var(--line); }
.kpis small { display: block; color: var(--ink-3); font-size: 11px; }
.kpis b { display: block; font: 700 21px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.kpis em { font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.cover { margin-top: 12px; display: grid; gap: 7px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.cover .lab { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--ink-2); }
.cover .lab b { color: var(--ink); }
.sbar { display: flex; height: 16px; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.sbar i { height: 100%; transition: width 1.2s cubic-bezier(.2,.8,.2,1); width: 0; }
.sbar .k { background: var(--green); } .sbar .s { background: var(--amber); } .sbar .o { background: var(--blue); } .sbar .n { background: var(--ink-3); opacity: .5; }
.legend-s { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 10.5px; color: var(--ink-3); }
.legend-s span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; background: var(--c); }
.ov .act { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; }
.win.compact .ov h4 { font-size: 22px; }
.win.compact .cover { display: none; }

/* hero scene: orders */
.ord-list { display: grid; gap: 7px; }
.ord { display: grid; grid-template-columns: 26px minmax(0, 1fr) 60px 70px 82px; gap: 8px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; }
.win.compact .ord { grid-template-columns: 26px minmax(0, 1fr) 70px 70px; }
.win.compact .ord .u { display: none; }
.ord .av { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font: 700 10px var(--display); color: #fff; }
.ord b { font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord small { color: var(--ink-3); font-size: 10.5px; }
.ord .n { text-align: right; font: 500 12px var(--mono); }
.pill { justify-self: end; display: inline-flex; gap: 5px; align-items: center; font: 600 10.5px var(--mono); padding: 4px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-3); transition: background .3s, color .3s; white-space: nowrap; }
.pill svg { width: 11px; height: 11px; display: none; }
.pill.ok { background: var(--green-soft); color: var(--green-ink); }
.pill.ok svg { display: inline; }
.ord-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--ink-3); }
.tray { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; justify-content: center; }
.tray .f { display: inline-flex; gap: 6px; align-items: center; padding: 6px 9px; border-radius: 7px; background: var(--paper); border: 1px solid var(--line-2); font: 500 10.5px var(--mono); opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.tray .f.on { opacity: 1; transform: none; }
.tray .f i { width: 12px; height: 14px; border-radius: 2px; background: var(--green); }
.stamp { position: absolute; left: 50%; top: 294px; padding: 8px 14px; border: 3px solid var(--green); color: var(--green); font: 500 16px/1 var(--mono); letter-spacing: .16em; border-radius: 6px; transform: translateX(-50%) rotate(-5deg); white-space: nowrap; opacity: 0; background: color-mix(in srgb, var(--paper) 80%, transparent); }
.stamp.on { animation: thump .5s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes thump { 0% { opacity: 0; transform: translateX(-50%) scale(2) rotate(-14deg); } 100% { opacity: .95; transform: translateX(-50%) scale(1) rotate(-5deg); } }
.stage-cap { margin-top: 14px; display: flex; gap: 6px; justify-content: center; }
.stage-cap span { font: 500 12px var(--mono); color: var(--ink-3); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; transition: all .3s; }
.stage-cap span.on { color: var(--green-ink); border-color: var(--green); background: var(--green-soft); }

/* tour */
.tour-item { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tour-item + .tour-item { margin-top: clamp(80px, 10vw, 130px); }
.tour-item.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.tour-item.flip .copy { order: 2; }
@media (max-width: 960px) { .tour-item, .tour-item.flip { grid-template-columns: minmax(0, 1fr); } .tour-item.flip .copy { order: 0; } }
.copy { display: grid; gap: 14px; align-content: start; }
.copy .num { font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: .1em; }
.copy h3 { font-size: clamp(28px, 3.4vw, 40px); }
.copy p { color: var(--ink-2); font-size: 17.5px; }
.copy ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 15.5px; color: var(--ink-2); }
.copy li { display: flex; gap: 10px; }
.copy li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; padding: 2px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.panel-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; flex-wrap: wrap; }
.panel-top b { font: 700 16px var(--display); }
.panel-top small { color: var(--ink-3); font-size: 12.5px; }
.panel-top .sp { flex: 1; }

/* 01 import */
.map .r { display: grid; grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) 22px; gap: 8px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.map .r.h { border-top: 0; font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-block: 10px 6px; }
.map code { font: 500 13px var(--mono); background: var(--bg-2); padding: 3px 7px; border-radius: 5px; justify-self: start; white-space: nowrap; }
.map .arrow { color: var(--ink-3); text-align: center; }
.map .to { font-weight: 600; opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s; }
.map .ck { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .35s cubic-bezier(.2,1.6,.4,1); }
:root[data-pop-theme="dark"] .map .ck { color: #06150f; }
.map .ck svg { width: 12px; height: 12px; }
.map .r.on .to { opacity: 1; transform: none; } .map .r.on .ck { transform: scale(1); }
.map-foot { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg); font-size: 13.5px; }
.map-foot .ok { color: var(--green-ink); font-weight: 600; opacity: 0; transition: opacity .4s; }
.map-foot .ok.on { opacity: 1; }

/* 02 plan */
.plan { width: 100%; border-collapse: collapse; font-size: 14px; }
.plan th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.plan td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.plan tr:last-child td { border-bottom: 0; }
.plan td:first-child, .plan th:first-child { padding-left: 16px; }
.plan td:last-child, .plan th:last-child { padding-right: 16px; }
.plan .it b { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.25; }
.plan .it small { font: 500 11px var(--mono); color: var(--ink-3); }
.plan .num { text-align: right; font: 500 13px var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.spark { width: 74px; height: 24px; display: block; }
.spark path { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.2s ease-out; }
.play .spark path { stroke-dashoffset: 0; }
.cv { width: 150px; }
.cv .track { position: relative; height: 8px; border-radius: 4px; background: var(--bg-2); }
.cv .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--green); width: var(--from); transition: width 1.3s cubic-bezier(.2,.8,.2,1), background .5s; }
.cv .fill.amber { background: var(--amber); } .cv .fill.blue { background: var(--blue); }
.cv .tgt { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .3; left: 62.5%; }
.cv .val { margin-top: 4px; font: 500 11px var(--mono); color: var(--ink-3); white-space: nowrap; }
.cv .val b { color: var(--green-ink); font-weight: 500; }
.st { display: inline-flex; align-items: center; gap: 5px; font: 600 11px var(--mono); padding: 4px 8px; border-radius: 999px; white-space: nowrap; transition: background .4s, color .4s; }
.st svg { width: 11px; height: 11px; }
.st.order { background: var(--amber-soft); color: var(--amber); }
.st.ok { background: var(--green-soft); color: var(--green-ink); }
.st.over { background: var(--blue-soft); color: var(--blue); }
.plan-key { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12px; color: var(--ink-3); }
.plan-key i { display: inline-block; width: 2px; height: 12px; background: var(--ink); opacity: .3; vertical-align: -2px; margin-right: 6px; }
@media (max-width: 640px) { .plan .hide-s { display: none; } .cv { width: 96px; } .cv .val { white-space: normal; } .plan td, .plan th { padding-inline: 6px; } }

/* paper, kept only where a buyer writes on the page */
.paper { background-color: var(--paper); background-image:
  linear-gradient(to right, transparent 46px, var(--margin) 46px, var(--margin) 47px, transparent 47px, transparent 50px, var(--margin) 50px, var(--margin) 51px, transparent 51px),
  repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  border: 1px solid var(--line); border-radius: 6px; }

/* 03 the sum */
.dr-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dr-head .ph { width: 40px; height: 40px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; flex: none; color: var(--ink-3); }
.dr-head .ph svg { width: 24px; height: 24px; }
.dr-head b { display: block; font: 700 16px var(--display); }
.dr-head small { font: 500 11.5px var(--mono); color: var(--ink-3); }
.dr-head .st { margin-left: auto; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 92px; padding: 14px 16px 0; }
.bars i { flex: 1; background: color-mix(in srgb, var(--green) 35%, transparent); border-radius: 2px 2px 0 0; height: var(--h); transform: scaleY(0); transform-origin: bottom; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.bars i.last { background: var(--green); }
.play .bars i { transform: scaleY(1); }
.bars-x { display: flex; justify-content: space-between; padding: 6px 16px 12px; font: 500 10.5px var(--mono); color: var(--ink-3); border-bottom: 1px solid var(--line); }
.calc { margin: 16px; padding: 18px 20px 20px 66px; position: relative; }
.calc .title { font: 500 12px/32px var(--mono); color: var(--ink-3); }
.calc table { width: 100%; border-collapse: collapse; font: 500 15px/32px var(--mono); font-variant-numeric: tabular-nums; }
.calc td { height: 32px; padding: 0; }
.calc td.op { width: 24px; color: var(--ink-3); }
.calc td.v { text-align: right; white-space: nowrap; padding-left: 10px; }
.calc tr.tot td.v { position: relative; }
.calc tr.tot td.v::after { content: ""; position: absolute; right: 0; bottom: 3px; width: 5.5em; height: 5px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform-origin: right; }
.calc tr.final td { color: var(--green-ink); font-size: 17px; }
.calc tr.final td.v b { position: relative; display: inline-block; font-weight: 500; }
.calc tr.final svg { position: absolute; left: -16%; top: -30%; width: 132%; height: 160%; overflow: visible; pointer-events: none; }
.calc tr.final svg path { fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 260; }
.calc .why { margin-top: 6px; font: 600 22px/1.2 var(--hand); color: var(--green-ink); }
.calc.run tr { animation: rowin .35s ease-out backwards; }
.calc.run tr:nth-child(2) { animation-delay: .2s; } .calc.run tr:nth-child(3) { animation-delay: .4s; } .calc.run tr:nth-child(4) { animation-delay: .6s; } .calc.run tr:nth-child(5) { animation-delay: .8s; } .calc.run tr:nth-child(6) { animation-delay: 1s; }
@keyframes rowin { from { opacity: 0; transform: translateX(-8px); } }
.calc.run tr.tot td.v::after { animation: dbl .4s .8s ease-out backwards; }
@keyframes dbl { from { transform: scaleX(0); } }
.calc.run tr.final svg path { animation: circ .8s 1.3s ease-out backwards; }
@keyframes circ { from { stroke-dashoffset: 260; } }
.calc.run .why { animation: rise .5s 1.8s ease-out backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tabs button { font: 600 14px var(--body); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 560px) { .calc { margin: 12px; padding: 14px 12px 16px 40px; background-image: linear-gradient(to right, transparent 20px, var(--margin) 20px, var(--margin) 21px, transparent 21px, transparent 24px, var(--margin) 24px, var(--margin) 25px, transparent 25px), repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px); } .calc table { font-size: 13px; } .calc tr.final td { font-size: 14px; } .calc .qq { display: none; } }

/* 04 margin notes */
.notes table { width: 100%; border-collapse: collapse; font-size: 15px; }
.notes th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 10px 10px; border-bottom: 1px solid var(--line); background: var(--paper); }
.notes th:first-child, .notes td:first-child { padding-left: 66px; }
.notes td { height: 64px; padding: 0 10px; vertical-align: middle; }
.notes td.n { font: 500 15px var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.notes .sku { display: block; font: 500 12px var(--mono); color: var(--ink-3); }
.notes .mk { position: relative; display: inline-block; min-width: 2.4em; padding: 4px 10px; text-align: center; }
.notes .mk svg { position: absolute; left: -3px; top: -4px; width: calc(100% + 6px); height: calc(100% + 8px); overflow: visible; }
.notes .mk path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 240; }
.notes td.note { width: 38%; }
.notes td.note .hand { display: inline-block; font-size: 23px; transform: rotate(-2deg); }
.notes td.note .hand.g { color: var(--green-ink); }
.play .notes .mk path { animation: circ .7s ease-out backwards; }
.play .notes td.note .hand { animation: wipe .8s ease-out backwards; }
.play .notes tr:nth-child(2) path, .play .notes tr:nth-child(2) .hand { animation-delay: .5s; }
.play .notes tr:nth-child(3) path, .play .notes tr:nth-child(3) .hand { animation-delay: 1s; }
.play .notes tr:nth-child(4) path, .play .notes tr:nth-child(4) .hand { animation-delay: 1.5s; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.decide { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink-2); align-items: center; }
.decide .k { font: 600 12px var(--mono); padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); }
@media (max-width: 640px) {
  .notes-wrap { background-image: linear-gradient(to right, transparent 20px, var(--margin) 20px, var(--margin) 21px, transparent 21px, transparent 24px, var(--margin) 24px, var(--margin) 25px, transparent 25px), repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px); }
  .notes thead { display: none; }
  .notes tbody, .notes tr, .notes td { display: block; }
  .notes tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 8px 12px 10px 38px; border-bottom: 1px solid var(--line); }
  .notes td, .notes td:first-child { height: auto; padding: 0; }
  .notes td.n:nth-child(2) { display: none; }
  .notes td.note { grid-column: 1 / -1; width: auto; margin-top: 4px; }
  .notes td.note .hand { font-size: 21px; }
}

/* 05 seasons */
.gantt { padding: 30px 16px 8px; }
.g-months { position: relative; height: 22px; margin-left: 150px; border-bottom: 1px solid var(--line); }
.g-months span { position: absolute; top: 2px; font: 500 10.5px var(--mono); color: var(--ink-3); transform: translateX(-50%); }
.g-rows { position: relative; }
.g-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; height: 46px; border-bottom: 1px solid var(--line); }
.g-row:last-of-type { border-bottom: 0; }
.g-row .nm { font-weight: 600; font-size: 14px; line-height: 1.2; }
.g-row .nm small { display: block; font: 500 11px var(--mono); color: var(--ink-3); font-weight: 400; }
.g-track { position: relative; height: 100%; }
.g-bar { position: absolute; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: color-mix(in srgb, var(--green) 30%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.g-bar::before, .g-bar::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--paper); border: 3px solid var(--green); }
.g-bar::before { left: -6px; } .g-bar::after { right: -6px; background: var(--green); }
.g-bar.soon { background: color-mix(in srgb, var(--amber) 30%, transparent); }
.g-bar.soon::before { border-color: var(--amber); }
.g-tag { position: absolute; top: 50%; transform: translate(12px, -50%); font: 600 10.5px var(--mono); white-space: nowrap; padding: 3px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green-ink); opacity: 0; transition: opacity .4s; }
.g-tag.flip { transform: translate(calc(-100% - 12px), -50%); }
.g-tag.soon { background: var(--amber-soft); color: var(--amber); }
.play .g-bar { transform: scaleX(1); }
.play .g-tag { opacity: 1; }
.g-today { position: absolute; top: -22px; bottom: 0; width: 2px; background: var(--ink); opacity: .75; }
.g-today::before { content: "Today"; position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font: 600 10px var(--mono); background: var(--ink); color: var(--paper); padding: 2px 6px; border-radius: 4px; }
.g-key { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--bg); font-size: 12.5px; color: var(--ink-2); }
.g-key span { display: inline-flex; gap: 6px; align-items: center; }
.g-key i { width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--green); }
.g-key i.f { background: var(--green); }
@media (max-width: 640px) { .g-row { grid-template-columns: 96px 1fr; } .g-months { margin-left: 96px; } .g-row .nm { font-size: 12.5px; } .g-tag { display: none; } }

/* 06 sequence */
.seq { position: relative; height: 300px; }
.seq .r { position: absolute; left: 0; right: 0; height: 50px; display: grid; grid-template-columns: 30px minmax(0, 1fr) 60px 168px; gap: 10px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--paper); transition: top .9s cubic-bezier(.5,.05,.2,1); }
.seq .rk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); background: var(--bg-2); color: var(--ink-3); transition: background .4s .9s, color .4s .9s; }
.play .seq .rk { background: var(--green); color: #fff; }
:root[data-pop-theme="dark"] .play .seq .rk { color: #06150f; }
.seq .it b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seq .it small { font: 500 11px var(--mono); color: var(--ink-3); }
.seq .q { text-align: right; font: 500 13px var(--mono); }
.seq .why { justify-self: end; font: 600 10.5px var(--mono); padding: 4px 8px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); opacity: 0; transition: opacity .4s 1.1s; white-space: nowrap; }
.seq .why.hot { background: var(--green-soft); color: var(--green-ink); }
.play .seq .why { opacity: 1; }
.seq-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg); border-top: 1px solid var(--line); font-size: 13.5px; }
.seq-foot .f { display: inline-flex; gap: 8px; align-items: center; font: 500 12px var(--mono); padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); opacity: 0; transform: translateY(8px); transition: opacity .4s 2s, transform .4s 2s; }
.seq-foot .f i { width: 14px; height: 16px; border-radius: 2px; background: var(--green); }
.play .seq-foot .f { opacity: 1; transform: none; }
@media (max-width: 640px) { .seq .r { grid-template-columns: 28px minmax(0, 1fr) 52px; } .seq .why { display: none; } }

/* 07 customers */
.cust { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
@media (max-width: 640px) { .cust { grid-template-columns: minmax(0, 1fr); } .cust .list { display: none; } }
.cust .list { border-right: 1px solid var(--line); }
.cust .list div { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.cust .list div b { display: block; font-weight: 600; }
.cust .list div small { font: 500 10.5px var(--mono); color: var(--ink-3); }
.cust .list div.on { background: var(--green-soft); box-shadow: inset 3px 0 0 var(--green); }
.cust .body { padding: 14px 16px 16px; display: grid; gap: 12px; min-width: 0; }
.cust .body h4 { font-size: 22px; margin-top: 4px; }
.cust .k3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cust .k3 div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.cust .k3 small { display: block; font-size: 11px; color: var(--ink-3); }
.cust .k3 b { font: 700 18px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cust .k3 em { display: block; font-style: normal; font-size: 10.5px; color: var(--green-ink); }
.cust .bars { padding: 0; height: 74px; }
.cust .bars i { background: color-mix(in srgb, var(--green) 30%, transparent); }
.cust .bars i:nth-last-child(-n+12) { background: var(--green); }
.ups h5 { margin: 0 0 8px; font: 700 14px var(--display); }
.ups .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ups .chips span { font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--green); color: var(--green-ink); background: var(--green-soft); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.play .ups .chips span { opacity: 1; transform: none; }
.play .ups .chips span:nth-child(1) { transition-delay: .8s; } .play .ups .chips span:nth-child(2) { transition-delay: 1.1s; } .play .ups .chips span:nth-child(3) { transition-delay: 1.4s; } .play .ups .chips span:nth-child(4) { transition-delay: 1.7s; }
@media (max-width: 480px) { .cust .k3 b { font-size: 15px; } }

/* 08 rules, interactive */
.rules { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
@media (max-width: 760px) { .rules { grid-template-columns: minmax(0, 1fr); } }
.rules .ctl { padding: 18px; border-right: 1px solid var(--line); display: grid; gap: 20px; align-content: start; }
@media (max-width: 760px) { .rules .ctl { border-right: 0; border-bottom: 1px solid var(--line); } }
.rules label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.rules label .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rules label output { font: 500 14px var(--mono); color: var(--green-ink); white-space: nowrap; }
.rules label small { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
input[type=range] { width: 100%; accent-color: var(--green); height: 24px; margin: 0; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.sw button { width: 44px; height: 26px; border-radius: 999px; border: 0; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.sw button::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.sw button[aria-pressed="true"] { background: var(--green); }
.sw button[aria-pressed="true"]::after { transform: translateX(18px); }
.rules table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rules th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 12px 12px 8px; border-bottom: 1px solid var(--line); }
.rules td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.rules td.n, .rules th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rules td b { font-weight: 600; display: block; line-height: 1.25; }
.rules td small { font: 500 11px var(--mono); color: var(--ink-3); }
.rules tr.tot td { font-weight: 700; border-bottom: 0; background: var(--bg); }
.rules tr.flash td { animation: flash .6s ease-out; }
@keyframes flash { from { background: var(--green-soft); } }
@media (max-width: 480px) { .rules td, .rules th { padding-inline: 8px; } .rules .lasts { display: none; } }

/* 09 workspace */
.ws-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.ws-logo { width: 42px; height: 42px; border-radius: 10px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 16px var(--display); flex: none; }
.ws-head b { display: block; font: 700 19px/1.15 var(--display); overflow-wrap: anywhere; }
.ws-head small { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink-3); }
.ws-head small svg { width: 13px; height: 13px; flex: none; }
.ws-tabs { display: flex; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); overflow: hidden; }
.ws-tabs span { padding: 10px 0; white-space: nowrap; }
.ws-tabs span.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--green); font-weight: 600; }
.ws-input { padding: 16px; display: grid; gap: 8px; }
.ws-input label { font-size: 13px; font-weight: 600; }
.ws-input input { height: 44px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: 500 16px var(--body); padding: 0 12px; width: 100%; }

/* facts, pricing, faq, final */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.facts { display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 520px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.facts b { font-size: 15px; }
.facts span { color: var(--ink-2); font-size: 16px; }
.ph { border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 24px; color: var(--ink-3); font: 500 14px/1.5 var(--mono); display: grid; gap: 10px; background: var(--paper); }
.ph b { color: var(--ink); font: 700 19px var(--display); }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 500 20px/1 var(--mono); color: var(--green-ink); }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.closing { background: #101317; color: #eef0f3; }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .closing .wrap { grid-template-columns: minmax(0, 1fr); } }
.closing h2 { font-size: clamp(36px, 5vw, 62px); letter-spacing: -.035em; margin-top: 14px; }
.closing p { color: #a8afba; font-size: 18px; margin-top: 16px; max-width: 32em; }
.closing .row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.closing .btn { background: transparent; color: #eef0f3; border-color: #3a4049; }
.closing .btn.primary { background: #34d399; border-color: #34d399; color: #06150f; box-shadow: 0 10px 26px -12px #34d399; }
.closing .ticks { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 12.5px var(--mono); color: #8e95a1; }
.closing .ticks span::before { content: "✓ "; color: #34d399; }
.closing .sheet { border-radius: 12px; background: #15181d; border: 1px solid #262a31; padding: 8px 18px; font: 500 13px var(--mono); color: #c9ced6; }
.closing .sheet .r { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #262a31; }
.closing .sheet .r:last-child { border-bottom: 0; }
.closing .sheet .r b { color: #6ee7b7; font-weight: 500; white-space: nowrap; }
.foot { padding: 28px 0 40px; font-size: 14px; color: var(--ink-3); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 03 the sum: the app's own item drawer (same parts and sizes as the app) */
.appdr { background: var(--bg); }
.ad-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); background: var(--paper); }
.ad-t { flex: 1; min-width: 0; }
.ad-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.ad-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--amber); background: var(--amber-soft); }
.ad-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ad-pill.now { color: var(--red); background: var(--red-soft); }
.ad-sku { font: 500 12px var(--mono); }
.ad-head h4 { margin: 6px 0 0; font: 600 21px/1.2 var(--display); letter-spacing: -.025em; }
.ad-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 4px; }
.ad-btn { flex: none; display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); font-size: 12px; font-weight: 600; }
.ad-body { padding: 16px 20px 20px; display: grid; gap: 16px; }
.ad-lbl { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.ad-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.ad-stats > div { background: var(--paper); padding: 11px 12px; }
.ad-stats .ad-lbl { font-size: 10px; }
.ad-stats b { display: block; margin-top: 2px; font: 600 19px var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ad-stats b small { font: 400 12px var(--body); color: var(--ink-2); }
.ad-box { background: var(--paper); border-radius: 10px; box-shadow: 0 0 0 1px var(--line); padding: 12px 14px 8px; }
.ad-box svg { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.ad-box svg text { font-family: var(--body); }
.ad-box .bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.ad-box .avg { stroke-dasharray: 3 3; opacity: 0; transition: opacity .4s; }
.appdr.play .ad-box .bar { transform: none; }
.appdr.play .ad-box .avg { opacity: 1; transition-delay: 1s; }
.ad-note { font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.ad-calc { display: grid; grid-template-columns: minmax(0, 1fr) auto; font-size: 13px; background: var(--paper); border-radius: 10px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.ad-calc > div { padding: 8px 14px; border-top: 1px solid var(--line); opacity: 0; transition: opacity .3s; }
.ad-calc > div:nth-child(-n+2) { border-top: 0; }
.ad-calc .op { color: var(--ink-2); }
.ad-calc .v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.ad-calc .total { background: var(--green-soft); color: var(--ink); font-weight: 700; }
.ad-calc > div.on { opacity: 1; }
.ad-qty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ad-step { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-2); border-radius: 9px; padding: 2px; }
.ad-step i { width: 24px; height: 26px; display: grid; place-items: center; font-style: normal; color: var(--ink-2); font-size: 15px; }
.ad-step output { width: 62px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.ad-val { margin-left: auto; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .ad-head, .ad-body { padding-inline: 14px; } .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ad-btn { display: none; } .ad-head h4 { font-size: 19px; } }

/* 04 checks: the app's Checks screen, zoomed into while it is worked through */
.chk-stage { position: relative; }
.chk-win { position: relative; width: 960px; height: 480px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; transform-origin: 0 0; font-size: 13px; line-height: 1.45; }
.chk-top { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap; position: relative; z-index: 2; }
.chk-top b { font: 700 15px var(--display); }
.chk-top small { color: var(--ink-3); font-size: 11.5px; }
.chk-top .sp { flex: 1; }
.chk-vp { position: absolute; inset: 49px 0 0; overflow: hidden; }
.chk-view { position: absolute; left: 0; top: 0; width: 960px; padding: 18px 22px; transform-origin: 0 0; transition: transform 1.1s cubic-bezier(.6,.05,.25,1); }
.chk-eb { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.chk-h { font: 700 24px/1.15 var(--display); letter-spacing: -.03em; margin: 4px 0 14px; }
.chk-grp { display: flex; align-items: center; gap: 10px; }
.chk-grp b { font: 700 15px var(--display); }
.chk-badge { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--amber-soft); color: var(--amber); }
.chk-desc { color: var(--ink-2); font-size: 12.5px; margin: 6px 0 12px; }
.chk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cc { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px; transition: opacity .5s, box-shadow .4s; }
.cc.focus { box-shadow: 0 0 0 2px var(--green), 0 18px 40px -22px rgba(0,0,0,.4); }
.cc-top { display: flex; align-items: center; gap: 8px; }
.cc-top b { margin-left: auto; font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cc h5 { margin: 8px 0 6px; font: 600 14.5px/1.3 var(--display); letter-spacing: -.01em; }
.cc ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); display: grid; gap: 3px; }
.cc .rec { position: relative; color: var(--ink); }
.cc .rec svg { position: absolute; left: -9px; top: -6px; width: calc(100% + 18px); height: calc(100% + 12px); overflow: visible; pointer-events: none; }
.cc .rec path { fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset .8s ease-out; }
.cc .rec.on path { stroke-dashoffset: 0; }
.cc-act { display: flex; align-items: center; gap: 4px; margin-top: 12px; flex-wrap: nowrap; white-space: nowrap; }
.cc-b { display: inline-flex; align-items: center; height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--paper); font-size: 12px; font-weight: 600; transition: transform .15s, box-shadow .2s, background .3s, color .3s; }
.cc-l { font-size: 12px; color: var(--ink-2); padding: 0 4px; }
.cc-l.red { color: var(--red); }
.cc-b.press { transform: scale(.94); box-shadow: 0 0 0 6px color-mix(in srgb, var(--green) 22%, transparent); }
.cc.done { opacity: .5; }
.cc.done .cc-b.mk { border-color: transparent; color: var(--ink-2); font-weight: 500; }
.cc.done .cc-b.mk span::after { content: " ✓"; color: var(--green); }
.chk-cur { position: absolute; left: 0; top: 0; z-index: 9; width: 18px; height: 18px; opacity: 0; pointer-events: none; transition: transform .9s cubic-bezier(.5,.05,.2,1), opacity .3s; }
.chk-cur svg { width: 18px; height: 18px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.chk-toast { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 12px); background: #10231b; color: #eef4f0; font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 10px; opacity: 0; transition: opacity .35s, transform .35s; white-space: nowrap; }
.chk-toast::before { content: "✓ "; color: #6ee7b7; }
.chk-toast.on { opacity: 1; transform: translate(-50%, 0); }
.flipnum { display: inline-block; animation: flipn .45s cubic-bezier(.2,.7,.3,1); }
@keyframes flipn { 0% { transform: translateY(-60%); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---- live site additions (tools/build_home.py) */
.anchor { position: absolute; top: -88px; }
.stage { position: relative; }
.closing .walk { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid #262a31; align-items: start; }
.closing .walk h3 { font-size: clamp(26px, 3.2vw, 36px); margin-top: 14px; }
.closing .walk a { color: #6ee7b7; }
.form { position: relative; display: grid; gap: 12px; background: #15181d; border: 1px solid #262a31; border-radius: 12px; padding: 22px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: #a8afba; }
.form input, .form select { height: 44px; border-radius: var(--r); border: 1px solid #313640; background: #0e1013; color: #eef0f3; font: 400 15px var(--body); padding: 0 12px; width: 100%; }
.form input:focus, .form select:focus { outline: 2px solid #34d399; outline-offset: 1px; }
.form select option { color: #14171c; background: #fff; }
.form .row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 520px) { .form .row2 { grid-template-columns: minmax(0, 1fr); } }
.form .btn { width: 100%; margin-top: 4px; }
.form .note { font-size: 12.5px; color: #8e95a1; margin: 0; }
.form .note.ok { color: #34d399; }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.foot.site { display: block; padding: 56px 0 28px; border-top: 1px solid var(--line); background: var(--bg); }
.foot.site .foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 760px) { .foot.site .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot.site .foot-brand { grid-column: 1 / -1; } }
.foot.site h4 { font: 500 12px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.foot.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot.site a { color: var(--ink-2); text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.foot.site a:hover { color: var(--ink); }
.foot.site .foot-brand p { color: var(--ink-3); font-size: 15px; max-width: 26em; margin-top: 12px; }
.foot.site .foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font: 500 12.5px var(--mono); }

