:root {
  --stone: #eceeea;      /* cool limestone */
  --paper: #f7f8f5;
  --ink: #14213d;        /* the app's navy */
  --ink-2: #48546a;
  --brass: #b8862a;
  --brass-2: #d9b25c;
  --sage: #5e7d6a;
  --line: #c9cec8;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

/* Header */
.top { display: flex; align-items: center; gap: 28px; padding: 20px clamp(20px, 5vw, 64px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; text-decoration: none; font-size: 1.05rem; }
.brand svg { width: 30px; height: 30px; } .brand rect { fill: var(--ink); } .brand path { fill: none; stroke: var(--brass-2); stroke-width: 2.2; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--ink-2); font-size: .95rem; } .top nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; border: 1.5px solid var(--ink); }
.btn.brass { background: var(--ink); color: #fff; border-color: var(--ink); } .btn.brass:hover { background: #1f3159; }
.btn.ghost { background: transparent; color: var(--ink); } .btn.ghost:hover { background: rgba(20,33,61,.06); }
.top .btn { min-height: 42px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 64px) 40px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; font-weight: 400; }
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); max-width: 34em; margin: 22px 0 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { color: var(--ink-2); font-size: .92rem; max-width: 36em; }
.hero .fine { margin-top: 26px; }

.coupe { margin: 0; }
.coupe svg { width: 100%; height: auto; display: block; overflow: visible; }
.coupe figcaption { font-size: .85rem; color: var(--ink-2); margin-top: 8px; max-width: 44em; }
.coupe .ground { stroke: var(--ink); stroke-width: 1.5; }
.coupe .draw { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; }
.coupe .wall { stroke-width: 2.4; }
.coupe .floor { stroke-width: 1; stroke: #7d8699; }
.coupe .lift { stroke: #2f6fbe; stroke-width: 1.4; stroke-dasharray: 3 4; }
.coupe .win path { stroke: #9aa3b2; stroke-width: 3; stroke-linecap: round; }
.coupe .you { fill: var(--brass-2); opacity: .55; }
.coupe .pine .crown { fill: var(--sage); opacity: .85; }
.coupe .note path { fill: none; stroke: var(--brass); stroke-width: 1.2; }
.coupe .note circle { fill: var(--brass); }
.coupe .note text { font: 600 13.5px var(--sans); fill: var(--ink); }
.coupe .note text.sub { font-weight: 400; fill: var(--ink-2); font-size: 12.5px; }

/* the one orchestrated moment: the section drawing draws itself, then the annotations appear */
@media (prefers-reduced-motion: no-preference) {
  .coupe .draw { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.6s cubic-bezier(.6,.1,.2,1) forwards; }
  .coupe .floor { animation-delay: .5s; } .coupe .lift { stroke-dasharray: 3 4; stroke-dashoffset: 0; animation: none; opacity: 0; animation: fade .6s 1.4s forwards; }
  .coupe .win, .coupe .pine .crown, .coupe .you { opacity: 0; animation: fade .7s 1.2s forwards; }
  .coupe .you { animation: you .9s 1.7s forwards; }
  .coupe .note { opacity: 0; animation: fade .6s forwards; }
  .coupe .n1 { animation-delay: 2.1s; } .coupe .n2 { animation-delay: 2.4s; } .coupe .n3 { animation-delay: 2.7s; } .coupe .n4 { animation-delay: 3s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes you { to { opacity: .55; } }

/* What you see */
.read { padding: 72px clamp(20px, 5vw, 64px); background: var(--paper); }
.read h2, .who h2, .steps h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; }
.read .intro { font-size: 1.15rem; color: var(--ink-2); max-width: 40em; margin: 14px 0 40px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.row.flip .txt { order: 2; }
.row h3 { font-size: 1.65rem; margin-bottom: 10px; }
.row p { max-width: 34em; margin: 0 0 10px; }
.vis { width: 100%; max-width: 420px; justify-self: center; }
.vis text { font: 500 12px var(--sans); fill: var(--ink-2); }
.vis .stack rect { fill: #2f6fbe; } .vis .stack .b { fill: var(--brass); } .vis .stack .c { fill: var(--sage); }
.vis .flow { fill: #2f6fbe; opacity: .14; } .vis .flow.b { fill: var(--brass); } .vis .flow.c { fill: var(--sage); }
.vis .doc { fill: #fff; stroke: var(--ink); stroke-width: 1.4; } .vis .doc.back { fill: none; stroke: #9aa3b2; }
.vis .doc-l { stroke: #9aa3b2; stroke-width: 3; stroke-linecap: round; }
.vis .clip { fill: var(--brass-2); } .vis .clip-t { fill: var(--ink); font-weight: 700; }
.vis .iso { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; } .vis .iso-f { fill: var(--brass-2); opacity: .6; }
.vis .crown2 { fill: var(--sage); } .vis .trunk { stroke: #6b4f3a; stroke-width: 3; }
.vis .mast, .vis .roof { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; } .vis .wave { fill: none; stroke: var(--brass); stroke-width: 1.8; }
.vis .coin { fill: var(--brass-2); stroke: var(--brass); }
.vis .tally { stroke: var(--ink); stroke-width: 1.4; } .vis .vote { fill: var(--sage); } .vis .vote.b { fill: #b65b4a; } .vis .vote.c { fill: #9aa3b2; }

/* Who */
.who { padding: 72px clamp(20px, 5vw, 64px); }
.who dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 34px 0 0; border-top: 2px solid var(--ink); }
.who dl > div { padding: 20px 22px 8px 0; }
.who dl > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.who dt { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 8px; }
.who dd { margin: 0; color: var(--ink-2); }

/* Start */
.start { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 80px); padding: 72px clamp(20px, 5vw, 64px); background: var(--ink); color: #fff; }
.start h2 { color: #fff; }
.start ol { list-style: none; counter-reset: s; padding: 0; margin: 30px 0; display: grid; gap: 22px; }
.start li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 12px; color: #c9d1e0; }
.start li::before { content: counter(s); font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--brass-2); }
.start li b { color: #fff; display: block; font-weight: 600; }
.start .fine { color: #9fb0cc; }
.beta { background: var(--paper); color: var(--ink); border-radius: 18px; padding: 28px; display: grid; gap: 14px; align-self: start; }
.beta h3 { font-size: 1.6rem; }
.beta label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.beta input, .beta select { font: 400 1rem var(--sans); min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.beta input:focus, .beta select:focus { border-color: var(--ink); outline: none; }
.beta .btn { margin-top: 6px; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; gap: 20px 60px; align-items: flex-start; justify-content: space-between; padding: 40px clamp(20px, 5vw, 64px); }
.foot p { color: var(--ink-2); margin: 8px 0 0; }
.foot div:nth-child(2) { display: flex; gap: 24px; }
.foot .ed { flex-basis: 100%; font-size: .85rem; margin: 0; }

@media (max-width: 900px) {
  .hero, .row, .start { grid-template-columns: 1fr; }
  .row.flip .txt { order: 0; }
  .who dl { grid-template-columns: 1fr 1fr; }
  .who dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 560px) { .who dl { grid-template-columns: 1fr; } .who dl > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
