/* precise.ai: one stylesheet. Tokens are copied from the Precise design system (tokens/). Fonts are self-hosted (tokens/fonts.css). */
@import url("tokens/fonts.css");
@import url("tokens/colors.css");
@import url("tokens/typography.css");
@import url("tokens/spacing.css");
@import url("tokens/motion.css");
@import url("tokens/plates.css");
@import url("tokens/base.css");

/* ---- base ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { background: var(--ground); color: var(--ink-measured); font: 400 17px/1.55 var(--font-prose); margin: 0; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--ink-measured); color: var(--sheet); padding: 8px 12px; border-radius: var(--radius-control); z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--page-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (max-width: 480px) { .wrap { padding-left: 16px; padding-right: 16px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- type voices ---- */
.framing { font-family: var(--font-framing); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; text-wrap: pretty; margin: 0; }
.framing-xl { font-size: clamp(40px, 6vw, 72px); }
.framing-lg { font-size: clamp(30px, 3.6vw, 44px); }
.framing-md { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; }
.framing .muted { color: var(--muted); }
.framing .said { color: var(--ink-said); }
.label { font-size: var(--text-label); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--muted); margin: 0; }
.lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.45; text-wrap: pretty; margin: 0; max-width: 44ch; }
.prose { max-width: 62ch; text-wrap: pretty; }
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.fig { font-family: var(--font-figure); font-variant-numeric: tabular-nums; }
.fig-xl { font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.fig-lg { font-size: 32px; line-height: 1; }
.fig-said { color: var(--ink-said); }
.basis { font-size: var(--text-label); color: var(--muted); line-height: 1.45; margin-top: 8px; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---- controls ---- */
.btn { display: inline-block; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.3; padding: 12px 20px; border-radius: var(--radius-control); background: var(--ink-measured); color: var(--sheet); text-decoration: none; border: 0; cursor: pointer; transition: background var(--dur-state) var(--ease); }
.btn:hover { background: var(--ink-hover); color: var(--sheet); }
.btn:active { background: var(--ink-pressed); }
.btn-secondary { background: transparent; color: var(--ink-measured); border: 1px solid var(--ink-measured); font-weight: 400; padding: 11px 18px; }
.btn-secondary:hover { background: var(--sheet); color: var(--ink-measured); }
.btn-text { background: none; border: 0; padding: 0; color: var(--ink-said); text-decoration: underline; text-underline-offset: 3px; font: inherit; cursor: pointer; }
.btn-text:hover { text-decoration-thickness: 2px; }
.on-ink .btn { background: var(--sheet); color: var(--ink-measured); }
.on-ink .btn:hover { background: var(--ground); }
.on-ink .btn-secondary { background: transparent; color: var(--sheet); border-color: var(--sheet); }
.on-ink a { color: var(--sheet); }
.on-ink a:hover { color: var(--ground); }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--ground); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-measured); font-family: var(--font-framing); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.wordmark:hover { color: var(--ink-measured); }
.wordmark img { width: 24px; height: 24px; margin-right: 8px; }
.wordmark { gap: 0; }
.wordmark .tld { font-weight: 400; }
.site-nav { display: flex; gap: 28px; align-items: center; font-size: 15px; }
.site-nav a { color: var(--ink-measured); text-decoration: none; }
.site-nav a:hover { color: var(--ink-said); }
.site-nav a.btn { padding: 8px 14px; font-size: 14px; color: var(--sheet); }
.site-nav a.btn:hover { color: var(--sheet); }
.menu { display: none; }
@media (max-width: 780px) {
  .site-nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-size: 15px; padding: 8px 0; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-list { position: absolute; right: 0; top: 100%; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-sheet); padding: 12px 16px; display: grid; gap: 12px; min-width: 240px; font-size: 16px; }
  .menu-list a { color: var(--ink-measured); text-decoration: none; }
}

/* ---- sections ---- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: start; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head > .lead, .section-head > .prose, .section-head > .principle { padding-top: 0.55em; }
.section-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; }
.section-body > .prose { grid-column: 2; }
.lab-head { margin-bottom: 0; }
.lab-head .principle { margin-top: 28px; }
@media (max-width: 780px) { .section-head, .section-body { grid-template-columns: 1fr; } .section-head > .lead, .section-head > .prose, .section-head > .principle { padding-top: 0; } .section-body > .prose { grid-column: 1; } }
.two-col { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.4fr); gap: 32px 64px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.on-ink { background: var(--ink-measured); color: var(--sheet); }
.on-ink .label, .on-ink .muted, .on-ink .basis { color: var(--axis); }
.on-said { background: var(--ink-said); color: var(--sheet); }
.on-said .label, .on-said .muted { color: rgba(255, 255, 255, 0.72); }
.on-said a { color: var(--sheet); }

/* ---- hero ---- */
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: 40px 64px; align-items: start; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin: 0 0 16px; max-width: none; }
.hero .prose { font-size: 16px; color: var(--muted-deep); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 28px; }
.audience { margin-top: 20px; font-size: 14px; color: var(--muted); max-width: 52ch; }

/* ---- plates ---- */
.plate { background: var(--sheet); border: 1px solid var(--hair); border-radius: var(--radius-sheet); padding: 18px 20px 14px; }
.plate-title { font-size: 15px; line-height: 1.45; text-wrap: pretty; margin: 0 0 8px; display: flex; justify-content: space-between; gap: 16px; }
.plate-title .btn-text { font-size: 13px; white-space: nowrap; }
.plate svg { width: 100%; height: auto; overflow: visible; font-family: var(--font-figure); font-size: var(--plate-label-size); }
.plate text { paint-order: stroke; stroke: var(--sheet); stroke-width: 4; stroke-linejoin: round; }
.plate .axis { stroke: var(--axis); stroke-width: 1; }
.plate .tick { fill: var(--muted); stroke-width: 0; }
.plate .actual { fill: none; stroke: var(--ink-measured); stroke-width: 2.6; stroke-linejoin: round; }
.plate .predicted { fill: none; stroke: var(--ink-said); stroke-width: 1.8; }
.plate .range { fill: var(--ink-said-range); }
.plate .left-alone { fill: none; stroke: var(--ghost); stroke-width: 1.3; stroke-dasharray: 5 4; }
.plate .holdout { fill: none; stroke: var(--ghost); stroke-width: 1.3; }
.plate .call { fill: var(--ink-said); }
.plate .observed { stroke: var(--ink-measured); stroke-width: 1.5; }
.plate .playhead { stroke: var(--axis); stroke-dasharray: 2 3; }
.plate .readout-line { stroke: var(--ink-measured); stroke-width: 1; }
.plate .ring { fill: var(--sheet); stroke-width: 2; }
.plate .ring-actual { stroke: var(--ink-measured); }
.plate .ring-said { stroke: var(--ink-said); }
.plate .label-ink { fill: var(--ink-measured); }
.plate .label-said { fill: var(--ink-said); }
.plate .label-muted { fill: var(--muted); }
.plate .bold { font-weight: 600; }
.plate .caption { font-size: var(--text-label); line-height: 1.55; color: var(--muted); border-top: 1px solid var(--hair); padding-top: 8px; margin: 8px 0 0; text-wrap: pretty; }
.readout { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--font-figure); font-size: 12px; line-height: 1.4; border-top: 1px solid var(--hair); padding-top: 8px; margin-top: 6px; min-height: 34px; align-items: baseline; }
.readout .said { color: var(--ink-said); }
.readout .muted { color: var(--muted); }
.readout .strong { font-weight: 500; }
.plate.on-ground { background: transparent; border: 0; padding: 0; }
.plate.on-ground text { stroke: var(--ground); }

/* paired shares */
.shares { display: grid; gap: 12px; padding: 10px 0; font-size: 12px; }
.shares-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr 110px; gap: 12px; align-items: center; }
.shares-row.is-selected .shares-name { color: var(--ink-measured); font-weight: 600; }
.shares-name { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; }
.shares-bars { display: grid; gap: 3px; }
.shares-money { height: 9px; border: 1px solid var(--ink-measured); }
.shares-outcome { height: 9px; background: var(--ink-measured); }
.shares-vals { display: grid; gap: 3px; font-family: var(--font-figure); line-height: 9px; white-space: nowrap; }
.shares-vals .money { color: var(--muted); }
.plate .cohort-delivery { fill: var(--ink-measured); }
.plate .cohort-closed { fill: var(--ink-measured); opacity: 0.55; }
.plate .cohort-open { fill: none; stroke: var(--ink-measured); stroke-dasharray: 3 2; }
.plate .curve { fill: none; stroke: var(--ink-measured); stroke-width: 2.2; }
.plate .ceiling { stroke: var(--muted); stroke-dasharray: 5 4; }
.plate .today { fill: var(--ink-measured); }
.plate .band { fill: var(--ink-said-band); }
.plate .centre { stroke: var(--ink-said); stroke-width: 2; }
.plate .dot { fill: var(--ink-measured); opacity: 0.7; }
.plate .median { stroke: var(--ink-said); stroke-width: 2; }

/* data table */
.data { margin-top: 12px; font-family: var(--font-figure); font-size: 12px; font-variant-numeric: tabular-nums; width: 100%; border-collapse: collapse; }
.data th { text-align: left; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--hair); padding: 0 8px 4px 0; }
.data td { padding: 3px 8px 3px 0; border-bottom: 1px solid var(--hair-faint); }
.data .said { color: var(--ink-said); }
.data .muted { color: var(--muted); }
.data caption { text-align: left; color: var(--muted); font-family: var(--font-prose); padding-bottom: 6px; }
[hidden] { display: none !important; }

/* time strip */
.strip { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 16px; }
.strip-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.strip-body { position: relative; height: 74px; margin-top: 8px; font-family: var(--font-figure); font-size: 11px; }
.strip-past { position: absolute; left: 0; top: 36px; border-top: 2px solid var(--ink-measured); }
.strip-future { position: absolute; right: 0; top: 36px; border-top: 1px dashed var(--axis); }
.strip-tick { position: absolute; top: 46px; color: var(--muted); transform: translateX(-50%); }
.strip-tick.first { transform: none; }
.strip-tick.last { transform: translateX(-100%); }
.strip-mark { position: absolute; transform: translateX(-50%); line-height: 1; font-size: 12px; color: var(--ink-measured); }
.strip-mark.said { color: var(--ink-said); }
.strip-mark.batch { font-size: 9px; top: 20px; }
.strip-mark.future { opacity: 0.3; }
.strip-play { position: absolute; top: 24px; height: 26px; border-left: 2px solid var(--ink-measured); transform: translateX(-1px); }
.strip-play-label { position: absolute; top: 60px; transform: translateX(-50%); white-space: nowrap; }
.strip input[type=range] { position: absolute; left: 0; right: 0; top: 25px; width: 100%; margin: 0; }

/* moves */
.moves { display: grid; border-top: 1px solid var(--hair); }
.move { display: grid; gap: 4px; text-align: left; padding: 12px 12px 12px 14px; border: 0; border-bottom: 1px solid var(--hair); border-left: 3px solid transparent; background: none; font: inherit; color: var(--ink-measured); cursor: pointer; transition: background var(--dur-state) var(--ease); }
.move:hover { background: var(--sheet); }
.move[aria-pressed="true"] { background: var(--sheet); border-left-color: var(--ink-said); }
.move-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.move[aria-pressed="true"] .move-sentence { font-weight: 600; }
.move-left { font-family: var(--font-figure); font-variant-numeric: tabular-nums; color: var(--ink-said); white-space: nowrap; font-size: 15px; }
.move-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.stakes { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 24px 0 0; }
.stakes > div { min-width: 140px; }

/* attribute list */
.attributes { display: flex; flex-wrap: wrap; gap: 6px 24px; font-family: var(--font-framing); font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.2; color: var(--ink-measured); margin: 0; padding: 0; list-style: none; max-width: 30ch; }
.economics-body { margin-top: clamp(48px, 6vw, 80px); }
.after-head { margin-top: 12px; }
.closing { margin: 40px 0 0; font-size: 17px; opacity: 0.92; }
.attributes li:last-child { color: var(--ink-said); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.steps li { border-top: 1px solid rgba(255, 255, 255, 0.35); padding-top: 16px; }
.steps .fig { font-size: 28px; line-height: 1; margin-bottom: 14px; }
.steps h3 { font: 600 20px/1.3 var(--font-prose); margin: 0 0 8px; }
.steps p { margin: 0; font-size: 16px; opacity: 0.92; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.cards-band { margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { border-top: 1px solid var(--rule); padding-top: 16px; }
.card h3 { font: 600 19px/1.3 var(--font-prose); margin: 0 0 8px; text-wrap: pretty; }
.card p { margin: 0 0 8px; font-size: 16px; max-width: 42ch; }
.note { font-size: 13px; color: var(--muted); }
details.disclosure { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: 32px; }
details.disclosure summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.disclosure summary::after { content: "+"; font-family: var(--font-figure); color: var(--muted); }
details.disclosure[open] summary::after { content: "−"; }
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure .body { padding: 0 0 20px; }

/* team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; list-style: none; }
@media (max-width: 900px) { .team { grid-template-columns: repeat(2, 1fr); } }
.team li { border-top: 1px solid rgba(255, 255, 255, 0.35); padding-top: 12px; }
.team b { display: block; font-weight: 600; margin-bottom: 2px; }
.team span { font-size: 14px; color: var(--axis); }
.principle { font-family: var(--font-framing); font-weight: 500; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.01em; line-height: 1.3; margin: 0; }

/* faq */
.faq { display: grid; gap: 0; margin-top: 40px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-figure); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq .body { padding: 0 0 20px; max-width: 62ch; }

/* contact + form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 480px); gap: 40px 64px; align-items: start; }
.contact-grid .lead { max-width: 38ch; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; }
.form input, .form textarea { font: inherit; font-size: 16px; color: var(--ink-measured); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-control); padding: 10px 12px; min-height: 44px; }
.form textarea { min-height: 96px; resize: vertical; }
.form-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; font-size: 14px; }
.form-status { font-size: 14px; min-height: 1.4em; }
.contact-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; font-size: 14px; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; align-items: baseline; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-measured); }

/* policy pages */
.doc { max-width: 720px; padding: clamp(48px, 6vw, 88px) 0; }
.doc h1 { margin-bottom: 20px; }
.doc .lead { max-width: none; }
.doc .date { margin: 20px 0 48px; font-size: 14px; color: var(--muted); letter-spacing: 0; text-transform: none; }
.doc h2 { font-family: var(--font-framing); font-weight: 600; font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.015em; margin: 44px 0 12px; text-wrap: pretty; }
.doc h2:first-of-type { margin-top: 0; }
.doc p { margin: 0 0 14px; font-size: 17px; }
.doc .note { margin: 20px 0 48px; }
.doc .back { display: inline-block; margin-top: 56px; }

/* methods page */
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.method-grid h2 + p, .method-grid h2:not(:first-child) { margin-top: 0; }
.method-grid h2:not(:first-child) { margin-top: 40px; }
.doc.doc-wide { max-width: none; }
.doc-wide > .lead, .doc-wide > .note, .doc-wide > h1 { max-width: 720px; }
@media (max-width: 900px) { .method-grid { grid-template-columns: 1fr; } }
.placeholder { border: 1px dashed var(--ink-said); border-radius: var(--radius-sheet); padding: 14px 16px; font-size: 14px; color: var(--muted); font-family: var(--font-figure); }

@media print { .site-header, .strip, .cta-row, .form, .menu { display: none; } .plate { break-inside: avoid; } }

/* spacing utilities */
.mt-16 { margin-top: 16px; } .mt-40 { margin-top: 40px; } .mt-48 { margin-top: 48px; } .mt-56 { margin-top: 56px; }
#sel-sentence { margin-top: 6px; }
#sel-why { margin-top: 20px; }
#priced-plate { margin-top: 24px; }
#maturity-plate { margin-top: 24px; }

.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-4 { grid-template-columns: 1fr; } }
.card .label { margin-bottom: 8px; }

.section[id]{scroll-margin-top:80px}.comparison{margin-top:28px}.return-row{margin:24px 0}.return-label{display:flex;justify-content:space-between;gap:20px;margin-bottom:10px;font-size:16px}.return-label strong{font-size:24px;font-weight:400}.return-track{height:16px;background:var(--ground)}.return-bar{height:100%;background:var(--ink-measured)}.improved .return-bar{background:var(--ink-said)}.improved strong{color:var(--ink-said)}.move{padding-top:20px;padding-bottom:20px;min-height:68px}.readout{font-size:14px}.simple-key{display:flex;flex-wrap:wrap;gap:16px;font-size:14px;margin-top:18px}.shares{font-size:14px;gap:20px}.shares-row{grid-template-columns:minmax(130px,180px) 1fr 42px}.shares-vals{line-height:1.25;gap:4px}.shares-bars{gap:10px}.shares-name{color:var(--ink-measured)}.note{font-size:14px}.plate-title .btn-text{font-size:14px}.hero .plate{padding-top:22px}.hero .readout{min-height:48px}#sel-why{font-size:17px}#hero-svg{margin-top:20px}@media(max-width:480px){.plate{padding:16px 12px}.shares-row{grid-template-columns:110px 1fr 36px;gap:8px}.hero .plate svg{min-height:210px}.return-label{font-size:14px}.return-label strong{font-size:22px}}
