/* Cubicles pitch deck. Colours and type follow the Cubicles product (Cloud-Service-Frontend/src/app/globals.css). */

:root {
  --ink: #171e2d;
  --ink-soft: #58667c;
  --faint: #8d9bb1;
  --paper: #f7f8fb;
  --card: #ffffff;
  --line: #dfe4ef;
  --line-soft: #eaf0f8;
  --moss: #3158eb;
  --moss-deep: #2446bd;
  --moss-tint: #e7edff;
  --sage: #8fb98a;
  --live: #e0592b;
  --void: #0b0d0c;
  --night: #141614;
  --cream: #f4f2ec;
  --cream-soft: #b3ada3;
  --dark-line: rgb(255 255 255 / 0.1);

  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --bar-h: 56px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-snap-type: y mandatory; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: -0.01em; }
.faint { color: var(--faint); }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--bar-h);
  display: flex; align-items: center; gap: 16px; padding: 0 var(--gutter);
  color: var(--ink); background: rgb(247 248 251 / 0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s;
}
body.on-dark .bar { color: var(--cream); background: rgb(11 13 12 / 0.7); border-color: var(--dark-line); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.04em; }
.logo svg { width: 26px; height: 26px; }
.bar-tag { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
body.on-dark .bar-tag { color: var(--cream-soft); }
.bar-count { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
body.on-dark .bar-count { color: var(--cream-soft); }
.bar-btn {
  font: 500 13px var(--sans); color: inherit; background: transparent; cursor: pointer;
  border: 1px solid currentColor; border-radius: 999px; padding: 6px 14px; opacity: .8;
}
.bar-btn:hover { opacity: 1; }

/* ---------- Side dots ---------- */
.dots { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 20; display: flex; flex-direction: column; gap: 10px; }
.dots a { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; transition: transform .2s, background .2s; }
.dots a[aria-current="true"] { background: var(--moss); transform: scale(1.4); }
body.on-dark .dots a { background: rgb(255 255 255 / 0.2); }
body.on-dark .dots a[aria-current="true"] { background: var(--sage); }

/* ---------- Slides ---------- */
.slide {
  min-height: 100vh; min-height: 100svh; scroll-snap-align: start;
  display: flex; align-items: center;
  padding: calc(var(--bar-h) + 28px) var(--gutter) 40px;
  position: relative;
}
.slide.dark { background: var(--void); color: var(--cream); }
.slide.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 75% 30%, rgb(49 88 235 / 0.16), transparent 70%);
}
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; position: relative; }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--moss); margin-bottom: 18px; }
.eyebrow.on-dark { color: var(--sage); }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 80px); }
h2 { font-size: clamp(30px, 4.2vw, 52px); max-width: 22ch; margin-bottom: clamp(24px, 4vh, 40px); }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.lede { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--cream-soft); max-width: 46ch; margin-top: 22px; }
.slide:not(.dark) .lede { color: var(--ink-soft); }
.body { font-size: 17px; line-height: 1.6; color: var(--ink-soft); max-width: 52ch; }
.body + .body { margin-top: 14px; }
.body.wide { max-width: 80ch; margin: -12px 0 28px; }
.note { margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.note.on-dark { color: var(--cream-soft); }
.label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; font-weight: 500; }
.label.on-dark { color: var(--cream-soft); }
h3.label { margin-top: 0; }
.source { margin-top: 26px; font-size: 12px; color: var(--faint); }
.source.on-dark { color: rgb(244 242 236 / 0.4); }
.kicker { margin-top: 36px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; max-width: 60ch; color: var(--cream); }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.even { grid-template-columns: 1fr 1fr; align-items: start; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.card h3 s { text-decoration-color: var(--live); text-decoration-thickness: 2px; }
.card.big .num { display: block; font-family: var(--display); font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.03em; margin-bottom: 10px; }
.card.accent { background: var(--moss); border-color: var(--moss); color: #fff; }
.card.accent p, .card.accent .label { color: rgb(255 255 255 / 0.8); }

.callout {
  margin-top: 24px; display: flex; gap: 20px; align-items: center;
  padding: 20px 24px; border-radius: var(--radius); background: var(--moss-tint); color: var(--moss-deep);
}
.callout .num { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.03em; white-space: nowrap; }
.callout span { font-size: 15px; line-height: 1.5; }
.callout.tight { margin-top: 28px; }

.pill { font: 500 11px var(--mono); padding: 3px 9px; border-radius: 999px; background: var(--moss-tint); color: var(--moss-deep); }
.pill.grey { background: var(--line-soft); color: var(--ink-soft); }
.dot-live, .dot-idle { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
.dot-live { animation: pulse 2.4s ease-in-out infinite; }
.dot-idle { background: var(--faint); }
@keyframes pulse { 50% { opacity: .35; } }

/* Placeholders the founder fills in before sending. */
.fill { color: var(--faint) !important; border-bottom: 1px dashed var(--faint); }

/* ---------- Cover ---------- */
.cover { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.raise { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.raise div { border: 1px solid var(--dark-line); background: rgb(255 255 255 / 0.04); border-radius: 12px; padding: 12px 18px; }
.raise dt { font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--cream-soft); }
.raise dd { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; margin-top: 4px; }

.screen { border-radius: 16px; border: 1px solid var(--dark-line); background: var(--night); overflow: hidden; box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.7); }
.screen-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--dark-line); font-size: 13px; }
.screen-top .faint { margin-left: auto; }
.screen-body { display: grid; grid-template-columns: 1.2fr 1fr; }
.desk { position: relative; padding: 18px; background: linear-gradient(160deg, #1d2a4a, #121a2e 60%, #0f1626); min-height: 280px; }
.win { position: relative; background: #f7f8fb; border-radius: 8px; overflow: hidden; height: 200px; }
.win-bar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #e9edf5; font-size: 10px; color: var(--ink-soft); }
.win-bar i { width: 7px; height: 7px; border-radius: 50%; background: #cbd3e3; }
.win-bar span { margin-left: 6px; }
.win-lines { padding: 12px; display: grid; gap: 9px; }
.win-lines b { height: 9px; border-radius: 4px; background: #dfe4ef; }
.win-lines b.short { width: 60%; }
.win-lines b:first-child { background: #c9d5fb; width: 80%; }
.cursor { position: absolute; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 14px solid var(--ink); transform: rotate(-30deg); animation: wander 9s cubic-bezier(.22,1,.36,1) infinite; }
@keyframes wander { 0%,100% { left: 22%; top: 30%; } 30% { left: 58%; top: 42%; } 55% { left: 40%; top: 68%; } 80% { left: 70%; top: 58%; } }
.dock { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.dock i { width: 20px; height: 20px; border-radius: 6px; background: rgb(255 255 255 / 0.18); }
.dock i:first-child { background: #3158eb; }
.log { padding: 18px; display: grid; gap: 10px; align-content: start; font-size: 12px; color: var(--cream-soft); border-left: 1px solid var(--dark-line); }
.log li { opacity: 0; animation: reveal 12s infinite; line-height: 1.4; }
.log time { color: var(--sage); margin-right: 6px; }
.log em { font-style: normal; color: var(--sage); }
.log li:nth-child(1) { animation-delay: 0s; } .log li:nth-child(2) { animation-delay: .8s; } .log li:nth-child(3) { animation-delay: 1.6s; }
.log li:nth-child(4) { animation-delay: 2.4s; } .log li:nth-child(5) { animation-delay: 3.2s; } .log li:nth-child(6) { animation-delay: 4s; }
.log li:last-child { color: var(--cream); }
@keyframes reveal { 0% { opacity: 0; transform: translateY(4px); } 4%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }

/* ---------- Solution ---------- */
.ticks { display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16.5px; line-height: 1.5; color: var(--ink-soft); }
.ticks li strong { color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--moss-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%232446bd' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.plate-stack { display: grid; gap: 14px; }
.plate { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; box-shadow: 0 12px 30px -20px rgb(23 30 45 / 0.35); }
.plate.muted { opacity: .7; }
.plate-head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.plate-head .pill { margin-left: auto; }
.meter { height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--moss); border-radius: 3px; }

/* ---------- Why now ---------- */
.stat { border-top: 1px solid var(--dark-line); padding-top: 20px; }
.stat strong { display: block; font-family: var(--display); font-size: clamp(40px, 5vw, 64px); font-weight: 600; letter-spacing: -0.04em; color: var(--sage); line-height: 1; margin-bottom: 14px; }
.stat p { font-size: 15px; line-height: 1.55; color: var(--cream-soft); }

/* ---------- Product ---------- */
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.45; }
.checks li::before { content: "✓"; color: var(--moss); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; position: relative; }
.plan .pill { position: absolute; top: -10px; left: 18px; }
.plan h4 { font-size: 15px; font-weight: 600; }
.plan .price { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.plan .price small { font: 400 14px var(--sans); color: var(--ink-soft); letter-spacing: 0; }
.plan p:last-child { font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.traction { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.traction div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--card); }
.traction dt { font-size: 13px; color: var(--ink-soft); }
.traction dd { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.03em; margin-top: 4px; display: inline-block; }

/* ---------- Comparison ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.compare thead th.hl { color: var(--moss-deep); }
.compare tbody th { font-weight: 500; color: var(--ink); width: 30%; }
.compare td small { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; font-weight: 400; }
.compare td.hl { background: var(--moss-tint); }
.compare td.y { color: var(--moss-deep); font-weight: 600; }
.compare td.n { color: var(--live); font-weight: 600; }
.compare td.p { color: #a8701a; font-weight: 600; }
.compare td.y::before { content: "● "; } .compare td.n::before { content: "○ "; } .compare td.p::before { content: "◐ "; }
.compare .price-row td b { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.compare tr:last-child > * { border-bottom: 0; }

/* ---------- Market ---------- */
.bottomup { margin-top: 16px; border: 1px dashed var(--line-strong, #cbd3e3); border-radius: var(--radius); padding: 18px 22px; }
.bu-rows { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.bu { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-soft); }
.bu b { font-family: var(--display); font-size: 24px; color: var(--ink); letter-spacing: -0.02em; }

/* ---------- Competition bars ---------- */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 56px; align-items: center; gap: 12px; font-size: 14px; }
.bar-row span small { display: block; font-size: 11px; color: var(--faint); }
.bar-row div { height: 22px; background: var(--line-soft); border-radius: 6px; overflow: hidden; }
.bar-row i { display: block; height: 100%; width: var(--w); min-width: 4px; background: var(--faint); border-radius: 6px; transform-origin: left; transition: transform 1s cubic-bezier(.22,1,.36,1); }
.bar-row b { font-family: var(--mono); font-size: 13px; text-align: right; font-weight: 500; }
.bar-row.us { font-weight: 600; color: var(--moss-deep); }
.bar-row.us i { background: var(--moss); }
.slide:not(.seen) .bar-row i { transform: scaleX(0); }

/* ---------- Economics ---------- */
.econ { margin-top: 0; }
.kv { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.kv th, .kv td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.kv th { font-weight: 500; color: var(--ink-soft); width: 45%; }
.kv tr.sum th, .kv tr.sum td { border-bottom: 0; color: var(--moss-deep); font-weight: 700; padding-top: 12px; }
.econ-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.econ-figs strong { display: block; font-family: var(--display); font-size: 34px; letter-spacing: -0.03em; }
.econ-figs span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Ask ---------- */
h2.huge { font-size: clamp(56px, 8vw, 104px); max-width: none; margin-bottom: 0; }
h2.huge span { display: block; font-size: 0.32em; letter-spacing: -0.02em; color: var(--sage); margin-top: 10px; }
.funds { border: 1px solid var(--dark-line); border-radius: 16px; padding: 24px; background: rgb(255 255 255 / 0.03); }
.stack { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; margin-bottom: 20px; }
.stack i { width: var(--w); background: var(--c); }
.legend { display: grid; gap: 12px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto 42px; gap: 12px; align-items: center; font-size: 14.5px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.legend span { color: var(--cream-soft); }
.legend b { font-family: var(--mono); font-weight: 500; }
.legend em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--cream-soft); text-align: right; }

/* ---------- Milestones ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.timeline li { position: relative; padding: 26px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline li::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 22px; width: 28px; height: 28px; border-radius: 50%; background: var(--moss); color: #fff; font: 600 13px/28px var(--mono); text-align: center; }
.timeline .when { color: var(--moss-deep); display: block; margin-bottom: 8px; }
.timeline p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* ---------- Roadmap ---------- */
.stairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.stairs li { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--dark-line); border-radius: var(--radius); background: rgb(255 255 255 / 0.04); }
.stairs li:nth-child(2) { margin-bottom: 28px; }
.stairs li:nth-child(3) { margin-bottom: 56px; }
.stairs li.now { background: var(--moss); border-color: var(--moss); }
.stairs .stage { color: var(--sage); }
.stairs li.now .stage { color: rgb(255 255 255 / 0.85); }
.stairs h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.03em; margin: 0; }
.stairs p { font-size: 15px; line-height: 1.55; color: var(--cream-soft); }
.stairs li.now p { color: rgb(255 255 255 / 0.85); }
.stairs .why { font-size: 14px; padding: 10px 12px; border-left: 2px solid var(--sage); background: rgb(255 255 255 / 0.04); border-radius: 0 6px 6px 0; }
.stairs .why b { color: var(--sage); font-weight: 600; }
.stairs dl { display: grid; gap: 6px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--dark-line); }
.stairs li.now dl { border-color: rgb(255 255 255 / 0.25); }
.stairs dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.stairs dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--cream-soft); padding-top: 2px; }
.stairs li.now dt { color: rgb(255 255 255 / 0.7); }
.stairs dd { text-align: right; font-weight: 500; }
.stairs + .kicker { margin-top: 28px; }

/* ---------- Team ---------- */
.person { display: grid; gap: 4px; align-content: start; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--moss-tint); color: var(--moss-deep); display: grid; place-items: center; font: 600 22px var(--display); margin-bottom: 12px; }
.person h3 { display: inline-block; justify-self: start; margin-bottom: 0; }
.role { font-family: var(--mono); font-size: 12px; color: var(--moss-deep) !important; margin-bottom: 8px; }
.person.ghost { background: transparent; border-style: dashed; }
.person.lead { grid-column: span 2; }
.person .ticks { margin-top: 14px; gap: 10px; }
.person .ticks li { font-size: 14.5px; }

/* ---------- Close ---------- */
.close { text-align: center; display: grid; justify-items: center; }
.close h2 { max-width: 20ch; margin-bottom: 0; }
.close .lede { margin-left: auto; margin-right: auto; }
.close-mark { width: 64px; height: 64px; color: var(--sage); margin-bottom: 24px; }
.cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--cream); color: var(--void); }
.btn:hover { background: #fff; }
.btn.ghost { background: transparent; color: var(--cream); border: 1px solid rgb(255 255 255 / 0.3); }
.btn.ghost:hover { border-color: var(--cream); }
.sources { margin-top: 40px; font-size: 13px; color: var(--cream-soft); max-width: 640px; text-align: left; }
.sources summary { cursor: pointer; text-align: center; }
.sources ul { margin-top: 12px; display: grid; gap: 6px; columns: 2; }
.sources a { color: var(--cream-soft); }
.foot { margin-top: 32px; font-size: 12px; color: rgb(244 242 236 / 0.4); }

/* ---------- Entrance ---------- */
@media (prefers-reduced-motion: no-preference) {
  .slide .wrap > * { transition: opacity .6s ease, transform .6s cubic-bezier(.22,1,.36,1); }
  .js .slide:not(.seen) .wrap > * { opacity: 0; transform: translateY(14px); }
  .slide .wrap > *:nth-child(2) { transition-delay: .06s; }
  .slide .wrap > *:nth-child(3) { transition-delay: .12s; }
  .slide .wrap > *:nth-child(n+4) { transition-delay: .18s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .log li, .cursor, .dot-live { animation: none; opacity: 1; }
  .bar-row i { transition: none; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 980px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .cover, .split, .split.even { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 24px; }
  .stairs { grid-template-columns: 1fr; }
  .stairs li:nth-child(n) { margin-bottom: 0; }
}
@media (max-width: 720px) {
  html { scroll-snap-type: y proximity; }
  .slide { padding-top: calc(var(--bar-h) + 32px); padding-bottom: 56px; }
  .bar-tag, .dots { display: none; }
  .bar-btn { padding: 5px 11px; font-size: 12px; }
  .grid.two, .grid.three, .grid.four, .plans, .traction, .econ-figs { grid-template-columns: 1fr; }
  .person.lead { grid-column: auto; }
  .bu-rows { grid-template-columns: 1fr; }
  .screen-body { grid-template-columns: 1fr; }
  .log { border-left: 0; border-top: 1px solid var(--dark-line); }
  .desk { min-height: 0; }
  .win { height: 150px; }
  .callout { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bar-row { grid-template-columns: 92px 1fr 48px; gap: 8px; font-size: 13px; }
  .legend li { grid-template-columns: 12px 1fr auto; }
  .legend em { display: none; }
  .sources ul { columns: 1; }
}

/* ---------- Print / PDF: one slide per landscape page ---------- */
@media print {
  @page { size: 1280px 720px; margin: 0; }
  html { scroll-snap-type: none; }
  html, body { background: var(--paper); }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; transition: none !important; }
  .bar, .dots, .bar-btn, .cta, .sources { display: none !important; }
  .slide { height: 720px; min-height: 0; padding: 48px 64px; page-break-after: always; break-after: page; overflow: hidden; }
  .slide .wrap > *, .bar-row i { opacity: 1 !important; transform: none !important; }
  .log li { opacity: 1; }
  h1 { font-size: 64px; } h2 { font-size: 40px; margin-bottom: 24px; } h2.huge { font-size: 88px; }
}
