/* gethuntsman.com · lane 74, direction B "One living mark" (built by design/site-v2/final/_build/build.js).
   The app's own look: paper, ink and one blue (design/APPROVED.md:48-50). Blue is only the AI (the Mist art) and the
   Bought screen. Type is the system stack on Apple's scale; Geist Mono only inside the Mist canvas and the app screens.
   CSP: no inline style anywhere; every value lives here, and motion runs from assets/home.js. */

@font-face { font-family: "Geist Mono"; src: url(/assets/geistmono.5f3d6ad60f.woff2) format("woff2"); font-weight: 400 700; font-display: block; }

:root {
  --paper: #F5F5F2;
  --card: #FFFFFF;
  --surface: #ECECE8;
  --line: #D3D3CC;
  --ink: #16171A;
  --blue: #2B59E3;
  --blue-deep: #1D43B5;
  --night: #0D0E10;
  --night-card: #17181B;
  --night-line: #26272C;
  --night-line-2: #34353B;
  --night-ink: #EDEDEA;
  --night-blue: #6F8FF7;
  --sans: -apple-system, BlinkMacSystemFont, "Funnel Sans", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(20px, 5.6vw, 80px);
  /* one left/right edge for the nav, every scene and every page: the gutter, or a centred 1280 column on wide screens */
  --edge: max(var(--gutter), calc((100vw - 1280px) / 2));
  --nav: 52px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.47 var(--sans);
  letter-spacing: -0.022em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
h1, h2, p { margin: 0; }
figure { margin: 0; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 99; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: 14px; text-decoration: none; }
.skip:focus { top: 10px; }

/* ------------------------------------------------------------------ nav: quiet, sticky, carries the one action */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav);
  background: rgba(245, 245, 242, 0.82);
  -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
  color: var(--ink);
  transition: background-color 0.35s, color 0.35s;
}
.nav[data-theme="blue"] { background: rgba(29, 67, 181, 0.86); color: #FFFFFF; }
.nav-in { height: 100%; padding: 0 var(--edge); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; }
.mk { display: block; flex: none; width: 22px; height: 22px; }
/* the wordmark: the name beside the mark on every page's nav */
.wm { font-size: 17px; line-height: 1; font-weight: 600; letter-spacing: -0.022em; white-space: nowrap; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 14px; letter-spacing: -0.016em; }
.nav nav a { text-decoration: none; }
.nav nav a:hover, .nav nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; }
.store {
  display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-weight: 500; white-space: nowrap;
  transition: background-color 0.35s, color 0.35s;
}
.nav[data-theme="blue"] .store { background: #FFFFFF; color: var(--blue-deep); }

/* ------------------------------------------------------------------ Home: one sticky stage
   The story is about four screens of scroll; the stage sticks for all of it. assets/home.js sets the phase (0 mark,
   1 cloud and the market, 2 ">" and your line, 3 the check on the Bought screen) and the geometry, through CSSOM:
   --ax/--ay the art's centre, --aw/--ah its canvas, --u the mark's blade, --chx/--ly the chip,
   --mw0..3 each clause's width. Text only fades in place; the art never moves. */
.story { --P: 80svh; position: relative; margin-top: calc(-1 * var(--nav)); height: calc(100svh + 3.8 * var(--P)); background: var(--paper); transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.story[data-phase="3"] { background: var(--blue-deep); }

.art { position: absolute; display: block; pointer-events: none; color: var(--blue);
  left: calc(var(--ax, 70%) - var(--aw, 0px) / 2); top: calc(var(--ay, 50%) - var(--ah, 0px) / 2);
  width: var(--aw, 0px); height: var(--ah, 0px); transition: opacity 0.3s linear; }
/* the watch phase's cloud is lighter, so the market's lines read first and the cloud never reads as a solid blob */
.art.soft { opacity: 0.42; transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.art.dip { opacity: 0; transition: opacity 0.3s linear; }

/* the market's lines and the app's chart: crisp, never moving; they draw in, fade and thicken only */
.lines { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.lines .m { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; opacity: 0;
  transition: opacity 0.4s linear, stroke-width 0.6s cubic-bezier(0.4, 0, 0.2, 1), stroke-dashoffset 1.2s cubic-bezier(0.25, 0.1, 0.25, 1); }
.story[data-phase="1"] .lines .m { opacity: 1; }
.lines .m.price { stroke-width: 2.4; }
.story[data-phase="1"] .lines .m.price { opacity: 0; }
.story[data-phase="2"] .lines .m.price { opacity: 1; }
.lines .yl { stroke: var(--blue); stroke-width: 1.6; stroke-dasharray: 6 6; }
.lines .now { fill: var(--ink); stroke: var(--paper); stroke-width: 3; }
.lines .yl, .lines .now { opacity: 0; transition: opacity 0.4s linear; }
.story[data-phase="2"] .lines .yl, .story[data-phase="2"] .lines .now { opacity: 1; transition: opacity 0.5s linear 0.5s; }

/* the AI's chip (the app's .chip2, design/v31/assets/v6.css:74, at page scale); its opacity follows the ">" frame by frame */
.chip { position: absolute; left: var(--chx, 0px); top: var(--ly, 0px); transform: translateY(-50%); opacity: 0;
  height: 40px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px #E2E2DC;
  font: 500 16px/40px var(--mono); letter-spacing: 0; color: var(--ink); white-space: nowrap; }
/* the approved line, one clause at a time, bottom left; the incoming clause waits for the outgoing one to clear */
.words { position: absolute; left: var(--edge); right: var(--edge); bottom: clamp(88px, 12svh, 112px); margin: 0; font-weight: 600; }
.c { position: absolute; left: 0; bottom: 0; display: block; opacity: 0; transition: opacity 0.25s linear; text-wrap: balance; }
.story[data-phase="0"] .c0, .story[data-phase="1"] .c1, .story[data-phase="2"] .c2, .story[data-phase="3"] .c3 { opacity: 1; transition: opacity 0.45s linear 0.2s; }
.story.hold .c { opacity: 0; transition: opacity 0.25s linear; }
.c0 { max-width: var(--mw0, 9.4em); font-size: clamp(56px, 5.6vw, 80px); line-height: 1.05; letter-spacing: -0.015em; }
.c1, .c2, .c3 { font-size: clamp(40px, 3.9vw, 56px); line-height: 1.07; letter-spacing: -0.005em; }
.c1 { max-width: var(--mw1, 12.6em); }
.c2 { max-width: var(--mw2, 12em); }
.c3 { max-width: var(--mw3, 12.2em); }
.story[data-phase="3"] .c { color: #FFFFFF; }

/* one slot for fine print at the bottom left (the risk line, then "Sample data"), the pause control at the right */
.fine { position: absolute; left: var(--edge); right: var(--edge); bottom: 28px; min-height: 36px; display: flex; align-items: center; justify-content: flex-end; }
.fine .risk, .fine .sample { position: absolute; left: 0; right: 60px; top: 50%; transform: translateY(-50%); font-size: 13px; line-height: 1.38; letter-spacing: -0.01em; }
.fine .risk { visibility: visible; transition: opacity 0.25s linear, visibility 0s; }
.story:not([data-phase="0"]) .fine .risk { opacity: 0; visibility: hidden; transition: opacity 0.25s linear, visibility 0s 0.25s; }
.fine .sample { opacity: 0; transition: opacity 0.25s linear; }
.story[data-phase="1"] .fine .sample, .story[data-phase="2"] .fine .sample { opacity: 1; transition: opacity 0.45s linear 0.2s; }

/* pause: drawn in the mark's square language (R5) */
.pause {
  position: relative; z-index: 3; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; flex: none;
  display: grid; place-items: center; cursor: pointer; color: var(--ink); background: rgba(22, 23, 26, 0.07);
  transition: background-color 0.6s, color 0.6s;
}
.story[data-phase="3"] .pause { color: #FFFFFF; background: rgba(255, 255, 255, 0.16); }
.pause svg { width: 14px; height: 14px; display: block; }
.pause .i-play { display: none; }
.pause[aria-pressed="true"] .i-play { display: inline; }
.pause[aria-pressed="true"] .i-pause { display: none; }

.foot { padding: 56px var(--edge) 56px; font-size: 12px; line-height: 1.5; letter-spacing: -0.01em; }
.foot-in { max-width: 1280px; margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--line); }
.home .foot-in { border-top: 0; padding-top: 0; }
.foot .mk { width: 20px; height: 20px; }
.foot .legal { max-width: 880px; margin: 20px 0 12px; }

/* ------------------------------------------------------------------ Support and Legal */
.page { padding: 0 var(--edge); }
.page-head { padding: clamp(56px, 10svh, 104px) 0 clamp(40px, 6svh, 64px); }
.page-head h1 { font-size: clamp(40px, 4vw, 56px); line-height: 1.07; letter-spacing: -0.005em; font-weight: 600; }
.contact, .page-head .lede { margin-top: 20px; max-width: 24em; font-size: clamp(21px, 2vw, 28px); line-height: 1.18; letter-spacing: 0.007em; }

.rows { padding-bottom: 96px; }
.nf .page { min-height: calc(100svh - var(--nav) - 240px); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 48px; padding: 32px 0; border-top: 1px solid var(--line); }
.row h2 { font-size: 21px; line-height: 1.19; letter-spacing: 0.011em; font-weight: 600; text-wrap: balance; }
.page-head h1, .prose h2 { text-wrap: balance; }
.contact, .page-head .lede, .row-b p, .row-b li, .prose p, .prose li { text-wrap: pretty; }
.row-b { max-width: 40em; }
.row-b > * + * { margin-top: 12px; }
.row-b ol { margin: 0; padding-left: 1.25em; }
.row-b li + li { margin-top: 6px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.brokers-line { display: flex; flex-wrap: wrap; gap: 0 6px; }
.brokers { list-style: none; margin: 0; padding: 0; display: flex; gap: 0 6px; }

/* the legal switcher lives beside the text (with the section list), never above the title */
.side { position: sticky; top: calc(var(--nav) + 32px); align-self: start; }
.docs { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0 0 32px -14px; font-size: 14px; }
.docs a { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; text-decoration: none; }
.docs a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.docs a:not([aria-current]):hover { background: var(--surface); }
.draft { display: inline-block; margin-top: 28px; padding: 10px 16px; border: 1px solid var(--ink); border-radius: 12px; font-size: 14px; line-height: 1.43; }
.draft-t { font-weight: 600; margin-right: 4px; }
.meta { margin-top: 14px; font-size: 14px; }

.doc { display: grid; grid-template-columns: 220px minmax(0, 700px); gap: 72px; padding-bottom: 104px; }
.toc { font-size: 14px; line-height: 1.35; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li + li { margin-top: 10px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2 { margin: 56px 0 16px; font-size: 28px; line-height: 1.14; letter-spacing: 0.007em; font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose table { margin: 0 0 16px; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose strong { font-weight: 600; }
.prose code { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; letter-spacing: -0.01em; margin: 24px 0 24px; }
.prose th { text-align: left; font-weight: 600; padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.prose td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
mark.ph { background: var(--surface); color: var(--ink); padding: 0 4px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line); }

/* ------------------------------------------------------------------ tablet */
@media (max-width: 1068px) {
  .c0 { font-size: 64px; }
  .c1, .c2, .c3 { font-size: 44px; line-height: 1.09; }
  .doc { grid-template-columns: 180px minmax(0, 1fr); gap: 48px; }
}

/* ------------------------------------------------------------------ phone */
@media (max-width: 734px) {
  .nav nav { gap: 14px; font-size: 13px; }
  .store { height: 30px; padding: 0 11px; }
  .mk { width: 20px; height: 20px; }
  .brand { gap: 7px; }
  .wm { font-size: 16px; }

  .words { bottom: 100px; }
  .c0 { font-size: 44px; line-height: 1.07; letter-spacing: -0.01em; }
  .c1, .c2, .c3 { font-size: 30px; line-height: 1.13; letter-spacing: 0.002em; }
  .chip { height: 28px; padding: 0 9px; font-size: 11.5px; line-height: 28px; }
  .fine { bottom: 22px; }
  .fine .risk, .fine .sample { font-size: 12px; right: 50px; }
  .pause { width: 34px; height: 34px; }
  .foot { padding: 40px var(--edge); }

  .row { grid-template-columns: 1fr; padding: 28px 0; }
  .doc { grid-template-columns: 1fr; }
  .toc { display: none; }
  .side { position: static; }
  .docs { flex-direction: row; gap: 4px; margin: 0 0 8px -14px; }
  .prose h2 { font-size: 24px; margin-top: 44px; }
  .prose table, .prose thead, .prose tbody, .prose tr, .prose th, .prose td { display: block; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .prose tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .prose td { padding: 2px 0 8px; border: 0; }
  .prose td::before { content: attr(data-label); display: block; font-weight: 600; font-size: 14px; }
}

/* ------------------------------------------------------------------ very narrow phones */
@media (max-width: 359px) {
  .wm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav nav { gap: 12px; }
}

/* ------------------------------------------------------------------ reduced motion: stills, no fades */
@media (prefers-reduced-motion: reduce) {
  .pause { display: none; }
  .nav, .store, .art, .art.soft, .art.dip { transition: none; }
  .story, .lines .m, .lines .yl, .lines .now, .c, .fine .risk, .fine .sample { transition-duration: 0.35s !important; transition-delay: 0s !important; }
}
