/* Venedix: measurement-sheet look. Layout idea: a ruled sheet; one 96-block day is the hero. */
:root {
  --paper: #f2f4f6;
  --panel: #ffffff;
  --ink: #0e1a2b;
  --muted: #55627a;
  --line: #d5dce5;
  --cost: #c93f17;
  --flow: #0f766e;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(16px, 5vw, 56px);
  --maxw: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1220; --panel: #121b2d; --ink: #e8eef6; --muted: #9aa8bf;
    --line: #26344d; --cost: #ff7a4d; --flow: #3cc5b8; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1220; --panel: #121b2d; --ink: #e8eef6; --muted: #9aa8bf;
  --line: #26344d; --cost: #ff7a4d; --flow: #3cc5b8; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--flow); outline-offset: 3px; border-radius: 4px;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 22px; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cost); }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }

/* hero */
.hero { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cost); margin-bottom: 16px; }
.hero h1 { font-size: clamp(40px, 7vw, 84px); font-weight: 800; max-width: 14ch; }
.hero .lead { margin-top: 22px; max-width: 58ch; font-size: clamp(18px, 2vw, 21px); color: var(--muted); }
.hero .actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; font-family: var(--body); font-weight: 600; font-size: 16px; text-decoration: none; padding: 12px 22px; border-radius: 6px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--cost); border-color: var(--cost); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* day sheet (chart) */
.sheet { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: clamp(14px, 2.4vw, 28px); }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sheet-head h2 { font-size: 20px; letter-spacing: -0.01em; }
.sim { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.chart-box { position: relative; touch-action: pan-y; cursor: crosshair; }
.chart-box svg { display: block; width: 100%; height: auto; }
.chart-box text { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.chart-box .plabel { fill: var(--ink); font-weight: 500; font-size: 12.5px; }
.scrub { margin: 14px 0 6px; display: flex; align-items: center; gap: 14px; }
.scrub label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; }
.scrub input[type="range"] { flex: 1; min-width: 0; accent-color: var(--cost); height: 28px; }
.readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 10px; }
.readout div { background: var(--panel); padding: 10px 14px; }
.readout dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.readout dd { margin: 2px 0 0; font-family: var(--mono); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.readout dd.hot { color: var(--cost); }
.insight { margin-top: 16px; font-size: 16px; color: var(--muted); max-width: 70ch; }
.insight strong { color: var(--ink); font-weight: 600; }

/* sections */
.section { padding: clamp(40px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 4vw, 44px); max-width: 20ch; }
.section .intro { margin-top: 16px; max-width: 62ch; color: var(--muted); }

.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.steps li { background: var(--panel); padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.steps .n { font-family: var(--mono); font-size: 13px; color: var(--cost); letter-spacing: 0.06em; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--muted); font-size: 16px; }
.steps .go { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; }
.steps .go a { text-decoration: none; border-bottom: 2px solid var(--cost); }
.steps .soon { margin-top: auto; padding-top: 8px; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 36px; }
.trust div { border-top: 3px solid var(--flow); padding-top: 14px; }
.trust h3 { font-size: 20px; margin-bottom: 8px; }
.trust p { color: var(--muted); font-size: 16px; }

.routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 36px; }
.route { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 26px 24px; border-top: 4px solid var(--flow); }
.route h3 { font-size: 24px; margin-bottom: 10px; }
.route .best { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.route ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }
.both { margin-top: 20px; color: var(--muted); max-width: 66ch; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 28px; }
.metrics div { background: var(--panel); padding: 16px 18px; }
.metrics dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.metrics dd { margin: 4px 0 0; font-family: var(--mono); font-size: 26px; font-variant-numeric: tabular-nums; }
.metrics dd small { font-size: 14px; color: var(--muted); }

.next { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.note { margin-top: 20px; font-size: 15px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 14px; max-width: 62ch; }

/* home: story acts */
.acts { margin-top: 8px; }
.act { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); padding: clamp(28px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.act-tag { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding-top: 10px; }
.act h2 { font-size: clamp(30px, 5vw, 56px); max-width: 18ch; font-weight: 700; }
.act p { margin-top: 16px; max-width: 56ch; font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); }
@media (max-width: 640px) { .act { grid-template-columns: minmax(0, 1fr); gap: 8px; } .act-tag { padding-top: 0; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* advisory: cost-leak rows */
.leak { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 56px); align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.leak:first-of-type { margin-top: 32px; }
.leak .n { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; color: var(--cost); }
.leak h3 { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 12px; max-width: 22ch; }
.leak p { color: var(--muted); max-width: 54ch; }
.mini { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 12px; }
.mini svg { display: block; width: 100%; height: auto; }
.mini text { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.mini .cap { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.chips { display: grid; gap: 10px; }
.chips span { display: block; border: 1px solid var(--line); border-left: 4px solid var(--flow); border-radius: 6px; padding: 12px 14px; background: var(--paper); }
.chips b { display: block; font-family: var(--display); font-size: 18px; }
.chips small { color: var(--muted); font-size: 14.5px; }
.receive { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 32px; }
.receive div { border-top: 3px solid var(--cost); padding-top: 14px; }
.receive h3 { font-size: 20px; margin-bottom: 8px; }
.receive p { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .leak { grid-template-columns: minmax(0, 1fr); }
}

.site-foot { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14.5px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: background .15s, color .15s, border-color .15s; }
}
@media (max-width: 560px) {
  .scrub { flex-wrap: wrap; }
  .scrub input[type="range"] { flex-basis: 100%; order: 3; }
  .chart-box text { font-size: 15px; }
  .chart-box .plabel { font-size: 16px; }
  .readout { grid-template-columns: repeat(2, 1fr); }
  .readout div:first-child { grid-column: 1 / -1; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div:last-child { grid-column: 1 / -1; }
}
