:root {
  --ink: #2e342f;
  --muted: #6f6a5f;
  --soft: #8b8678;
  --line: #ece6da;
  --line2: #ddd3c2;
  --green: #4c5f52;
  --header: #45584b;
  --sand: #e1cba4;
  --gold: #bd9a59;
  --bg: #faf8f3;
  --card: #ffffff;
  --warm: #f6f4ee;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
}

/* ---------- Landing page ---------- */
header.band { background: var(--header); color: #fff; padding: 40px 0 44px; }
.band .wrap { max-width: 820px; margin: 0 auto; padding: 0 28px; }
.band img.logo { height: 46px; width: auto; display: block; }
.band .eyebrow { margin: 26px 0 0; color: var(--sand); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.band h1 { margin: 10px 0 0; font-size: 33px; font-weight: 640; letter-spacing: -0.02em; line-height: 1.15; }
.band p.lede { margin: 14px 0 0; color: rgba(255,255,255,0.82); font-size: 18px; max-width: 38em; }

main { max-width: 820px; margin: 0 auto; padding: 8px 28px 80px; }

.docs { display: grid; gap: 14px; margin: 30px 0; }
.doccard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; transition: border-color .15s, transform .15s; }
.doccard:hover { border-color: var(--line2); transform: translateY(-1px); }
.doccard.soon { opacity: 0.6; }
.doccard .n { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.doccard h3 { margin: 6px 0 4px; font-size: 20px; }
.doccard p { margin: 0; color: var(--muted); font-size: 16px; }
.doccard .tag { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--soft); border: 1px solid var(--line2); border-radius: 20px; padding: 2px 10px; }

footer { max-width: 820px; margin: 0 auto; padding: 28px; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }

a { color: var(--green); text-decoration: none; }

/* ============ HORIZONTAL DECK ============ */
body.deck-body { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; background: var(--bg); }

.deck {
  display: flex;
  height: 100vh;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.deck::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 100vw;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 10vw 108px;
  position: relative;
  overflow: hidden;
}
.slide .inner { max-width: 880px; width: 100%; margin: 0 auto; }

.slide .kicker { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 30px; }
.slide h2 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 660; letter-spacing: -0.022em; line-height: 1.12; margin: 0 0 26px; }
.slide p { font-size: clamp(17px, 2vw, 22px); line-height: 1.62; margin: 22px 0; max-width: 40em; }
.slide p.big { font-size: clamp(21px, 2.9vw, 31px); font-weight: 560; line-height: 1.32; }
.slide .num-tag { position: absolute; top: 30px; right: 38px; font-size: 13px; color: var(--soft); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }

/* green emphasis + title */
.slide.green { background: var(--header); color: #fff; }
.slide.green .kicker { color: var(--sand); }
.slide.green p { color: rgba(255,255,255,0.9); }
.slide.green .num-tag { color: rgba(255,255,255,0.55); }
.slide.title { background: var(--header); color: #fff; }
.slide.title .logo { height: 44px; margin-bottom: 30px; }
.slide.title h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 680; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
.slide.title .lede { color: rgba(255,255,255,0.85); font-size: clamp(19px, 2.6vw, 28px); margin-top: 24px; max-width: 22em; }

/* big stop line */
.stop { font-size: clamp(30px, 5.4vw, 60px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin: 0; }

/* columns */
.cols { display: grid; gap: 30px; margin: 48px 0 0; }
.cols.two { grid-template-columns: 1fr 1fr; }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.block { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 32px; }
.green .block { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }
.block .bh { font-size: clamp(18px, 2.3vw, 24px); font-weight: 660; margin: 0 0 8px; letter-spacing: -0.01em; }
.block p { font-size: clamp(15px, 1.7vw, 18px); margin: 0; color: var(--muted); max-width: none; }
.green .block p { color: rgba(255,255,255,0.85); }

/* flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 32px; }
.flow .step { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; min-height: 168px; display: flex; flex-direction: column; justify-content: center; }
.flow .step .bh { font-size: clamp(16px, 1.9vw, 20px); }
.flow .step p { font-size: clamp(14px, 1.55vw, 16px); margin: 10px 0 0; color: var(--muted); max-width: none; line-height: 1.5; }
.flow .step .lab { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 8px; }
.flow .chev { color: var(--gold); font-size: 30px; font-weight: 700; text-align: center; }

/* stages */
.stages { margin: 28px 0 0; }
.stages .row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stages .row:last-child { border-bottom: none; }
.stages .st { font-weight: 700; color: var(--gold); font-size: clamp(15px, 1.7vw, 19px); }
.stages .sd { color: var(--muted); font-size: clamp(15px, 1.7vw, 18px); }

/* entry animation */
.slide .inner > *, .flow, .cols, .stages { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.slide.in .inner > *, .slide.in .flow, .slide.in .cols, .slide.in .stages { opacity: 1; transform: none; }
.slide.in .inner > *:nth-child(2) { transition-delay: .08s; }
.slide.in .inner > *:nth-child(3) { transition-delay: .16s; }
.slide.in .inner > *:nth-child(4) { transition-delay: .24s; }

/* progress bar */
.progress { position: fixed; top: 0; left: 0; height: 4px; background: var(--gold); width: 0; z-index: 60; transition: width .4s ease; }

/* control pill */
.ctrl { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line2); border-radius: 44px; padding: 8px 12px; z-index: 60; box-shadow: 0 6px 26px rgba(0,0,0,0.08); }
.ctrl button { background: none; border: none; cursor: pointer; font-size: 22px; line-height: 1; color: var(--green); width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.ctrl button:hover { background: var(--warm); }
.ctrl button:disabled { color: var(--line2); cursor: default; }
.ctrl .dots2 { display: flex; gap: 9px; }
.ctrl .dots2 a { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); transition: background .2s, transform .2s; }
.ctrl .dots2 a.active { background: var(--gold); transform: scale(1.4); }
.ctrl .count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; letter-spacing: 0.08em; font-weight: 600; }

.deck-back { position: fixed; left: 22px; top: 20px; z-index: 60; font-size: 13px; background: rgba(255,255,255,0.9); border: 1px solid var(--line2); border-radius: 22px; padding: 6px 14px; color: var(--green); }
.slide.title ~ .deck-back, .deck-back { } /* keep visible */

.hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* age mixing diagram */
.mix { margin: 26px 0 0; display: flex; flex-direction: column; gap: 14px; }
.mixrow { display: grid; grid-template-columns: 90px 1fr 1fr 110px; gap: 14px; align-items: stretch; }
.mixrow .lbl { display: flex; align-items: center; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--soft); }
.mixrow .room { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.mixrow .room b { display: block; font-size: clamp(15px, 1.7vw, 18px); margin-bottom: 2px; }
.mixrow .room span { color: var(--muted); font-size: clamp(14px, 1.6vw, 16px); }
.mixrow .tot { display: flex; align-items: center; justify-content: flex-end; font-weight: 700; font-size: clamp(16px, 2vw, 22px); color: var(--ink); }
.mixrow.good .room { border-color: var(--green); }
.mixrow.good .tot { color: var(--green); }
.mixrow.good .room.moved { background: #eef3ee; }
.saved { margin-top: 18px; font-size: clamp(18px, 2.4vw, 26px); font-weight: 620; color: var(--green); }

/* simple cost bar */
.costline { margin: 26px 0 0; }
.costbar { height: 26px; border-radius: 8px; background: var(--line); overflow: hidden; position: relative; max-width: 520px; }
.costbar > i { display: block; height: 100%; width: 52%; background: var(--green); }
.costbar > b { position: absolute; left: 55%; top: 0; height: 100%; border-left: 2px dashed var(--gold); padding-left: 8px; font-size: 12px; color: var(--gold); font-weight: 700; display: flex; align-items: center; font-style: normal; }

/* ---- product screen mock ---- */
.mock { margin: 22px 0 0; border: 1px solid var(--line2); border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,0.12); max-width: 880px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px; background: var(--header); color: #fff; }
.mock-top .mt-site { font-size: clamp(13px, 1.5vw, 16px); font-weight: 600; letter-spacing: -0.01em; }
.mock-top .mt-right { display: flex; align-items: center; gap: 14px; }
.mt-cost { font-size: 13px; color: var(--sand); font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-cost.over { color: #f0b9ac; }
.mt-pub { font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 22px; }
.mt-pub.ok { background: var(--gold); color: #20291f; }
.mt-pub.blocked { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.45); }

.mg-head, .mg-row { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1fr 1fr; }
.mg-head { background: var(--warm); border-bottom: 1px solid var(--line); }
.mg-head span { padding: 7px 13px; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--soft); font-weight: 700; }
.mg-row { border-bottom: 1px solid var(--line); }
.mg-row:last-child { border-bottom: none; }
.mg-room { padding: 9px 13px; border-right: 1px solid var(--line); }
.mg-room b { display: block; font-size: clamp(14px, 1.55vw, 17px); letter-spacing: -0.01em; }
.mg-room .age { color: var(--soft); font-size: 12px; }
.mg-room .pill { display: inline-block; margin-top: 7px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 12px; letter-spacing: 0.01em; }
.pill.ok { background: #e7f0e7; color: var(--green); }
.pill.bad { background: #f6ded8; color: #b0432d; }
.mg-cell { padding: 9px 13px; border-right: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; }
.mg-cell:last-child { border-right: none; }
.mg-cell i { font-style: normal; font-size: 12px; font-weight: 700; background: var(--warm); border: 1px solid var(--line2); color: var(--ink); border-radius: 6px; padding: 3px 8px; letter-spacing: 0.02em; }
.mg-row.bad { background: #fdf5f2; }
.mg-row.bad .mg-cell.gap { align-items: center; }
.mg-cell .gap-note { font-size: 11px; font-weight: 700; color: #b0432d; }
.mock-foot { padding: 9px 18px; background: #fdf5f2; border-top: 1px solid #f0d7cf; color: #b0432d; font-size: 12.5px; font-weight: 700; }

/* demo slides carry a full screen mock, so they run tighter */
.slide.demo { padding-top: 62px; padding-bottom: 66px; }
.slide.demo .kicker { margin-bottom: 16px; }
.slide.demo h2 { font-size: clamp(25px, 3.4vw, 39px); margin-bottom: 12px; }
.slide.demo > .inner > p,
.slide.demo .inner > p { font-size: clamp(15px, 1.7vw, 19px); margin: 12px 0; }
.slide.demo .mock { margin-top: 18px; }

/* comparison chart (features down the side, tools across the top) */
.cmp { width: 100%; max-width: 860px; margin: 14px 0 0; border-collapse: collapse; table-layout: fixed; }
.cmp th, .cmp td { padding: 6px 7px; text-align: center; border-bottom: 1px solid var(--line); font-size: clamp(12px, 1.3vw, 15px); }
.cmp thead th { font-size: clamp(10.5px, 1.1vw, 13px); font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--line2); vertical-align: bottom; line-height: 1.2; }
.cmp thead th:first-child { color: var(--soft); font-weight: 600; text-align: left; }
.cmp tbody th { text-align: left; font-weight: 540; color: var(--ink); width: 35%; padding-right: 12px; font-size: clamp(12px, 1.3vw, 14.5px); line-height: 1.25; }
.cmp .y { color: var(--green); font-weight: 800; }
.cmp .n { color: #cdc5b4; font-weight: 700; }
.cmp .w { color: var(--gold); font-weight: 700; font-size: 0.66em; text-transform: uppercase; letter-spacing: 0.04em; }
.cmp .b { color: var(--soft); font-weight: 700; font-size: 0.66em; text-transform: uppercase; letter-spacing: 0.04em; }
.cmp .ourcol { background: #edf2ed; }
.cmp thead th.ourcol { color: var(--green); font-weight: 800; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp-legend { font-size: 12px; color: var(--soft); margin: 10px 0 0; }
.cmp-legend .y { color: var(--green); font-weight: 800; }
.cmp-legend .w { color: var(--gold); font-weight: 700; }
.cmp-legend .b { color: var(--soft); font-weight: 700; }
.cmp-legend .n { color: #cdc5b4; font-weight: 700; }

/* clean bullet lists */
.slide ul.clean { list-style: none; padding: 0; margin: 32px 0 0; max-width: 44em; }
.slide ul.clean li { position: relative; padding: 0 0 0 28px; margin: 0 0 18px; font-size: clamp(16px, 1.9vw, 20px); color: var(--ink); line-height: 1.5; }
.slide ul.clean li:last-child { margin-bottom: 0; }
.slide ul.clean li:before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.slide ul.clean li strong { font-weight: 660; color: var(--ink); }
.slide.green ul.clean li { color: rgba(255,255,255,0.9); }
.slide.green ul.clean li strong { color: #fff; }

/* muted note line */
.slide p.muted, .slide .muted { color: var(--soft); font-size: clamp(15px, 1.7vw, 18px); }
.slide.green p.muted { color: rgba(255,255,255,0.62); }

/* timing label inside a block */
.block .when { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 8px; }
.green .block .when { color: var(--sand); }

/* ---- roadmap (Paper 3): the plan as a sequence, each step with its payoff ---- */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 36px 0 0; }
.roadmap .stage { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; position: relative; display: flex; flex-direction: column; }
.roadmap .stage .when { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0 0 10px; }
.roadmap .stage h3 { font-size: clamp(16px, 1.8vw, 20px); font-weight: 660; margin: 0 0 8px; letter-spacing: -0.01em; line-height: 1.2; }
.roadmap .stage p { font-size: clamp(13px, 1.45vw, 15px); color: var(--muted); margin: 0 0 16px; max-width: none; line-height: 1.5; }
.roadmap .stage .gain { margin-top: auto; font-size: clamp(13px, 1.45vw, 15px); font-weight: 640; color: var(--green); background: #eef3ee; border-radius: 9px; padding: 9px 12px; line-height: 1.4; }
.roadmap .stage:not(:last-child):after { content: "\2192"; position: absolute; right: -14px; top: 36px; color: var(--gold); font-size: 17px; font-weight: 700; z-index: 2; }
/* green success variant of the product screen footer (Paper 3 prize mock) */
.mock-foot.ok { background: #eef3ee; border-top: 1px solid #cfe0cf; color: var(--green); }

@media (max-width: 760px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap .stage:not(:last-child):after { content: "\2193"; right: 50%; top: auto; bottom: -15px; transform: translateX(50%); }
  .cols.two, .cols.three { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow .chev { transform: rotate(90deg); }
  .flow .step { min-height: 0; }
  .slide { padding: 70px 26px 104px; justify-content: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .slide .inner { margin: auto 0; padding: 8px 0; }
  .cols { gap: 18px; margin-top: 34px; }
  .block { padding: 22px 24px; }
  .slide ul.clean { margin-top: 28px; }
  .slide ul.clean li { margin-bottom: 18px; }
  .slide .num-tag { top: 18px; right: 20px; }
  .slide h2 { font-size: clamp(23px, 6vw, 30px); }
  .slide p { font-size: clamp(15px, 4.2vw, 18px); }
  .ctrl { bottom: 16px; }
  .ctrl .dots2 { display: none; }
  .stages .row { grid-template-columns: 1fr; gap: 2px; }
  .mixrow { grid-template-columns: 1fr; gap: 8px; }
  .mixrow .tot { justify-content: flex-start; }
  .mg-head, .mg-row { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
  .mg-head span, .mg-room, .mg-cell { padding: 8px 7px; }
  .mg-cell i { font-size: 10px; padding: 2px 5px; }
  .mg-head span { font-size: 9px; letter-spacing: 0.04em; }
  .cmp th, .cmp td { padding: 9px 4px; font-size: 12.5px; }
  .cmp thead th { font-size: 9px; }
}
