/* =====================================================================
 * Aureum Frontiers marketing site. One stylesheet, no framework.
 * Tokens mirror the Sentinel consumer app (web/app/globals.css): the white
 * ground and warm ink of its light theme, and the dark block of its dark
 * theme. Ink and paper: the header, the hero, the closing band and the footer
 * are ink; everything between them is paper. The two palettes are named here
 * once; the semantic tokens alias one or the other per scope (see .ink).
 * ===================================================================== */

:root {
  color-scheme: light;
  /* Ink (the app's dark block) */
  --ink-bg: oklch(10% 0.006 50);
  --ink-bg-elevated: oklch(17% 0.008 50);
  --ink-bg-recessed: oklch(7% 0.005 50);
  --ink-text: oklch(97% 0.004 70);
  --ink-text-secondary: oklch(80% 0.005 70);
  --ink-text-tertiary: oklch(72% 0.005 55);
  --ink-border: oklch(22% 0.007 50);
  --ink-border-strong: oklch(34% 0.008 50);
  --ink-border-field: oklch(56% 0.008 50); /* form-field outline: 3:1 or more on every ink ground */
  --ink-positive: oklch(72% 0.12 150);
  --ink-negative: oklch(70% 0.14 25);
  /* Paper (the app's light theme). The SURFACES are neutral and match
     web/app/globals.css exactly: white ground, 97.5% elevated, 95% recessed.
     They used to be a warm ivory at 96.5%, which read as dirty next to the
     app screenshots, whose own chrome is pure white. The TEXT stays warm:
     ink and paper still, with the warmth now carried by the ink alone. */
  --paper-bg: oklch(100% 0 0);
  --paper-bg-elevated: oklch(97.5% 0 0);
  --paper-bg-recessed: oklch(95% 0 0);
  --paper-text: oklch(18% 0.008 50);
  --paper-text-secondary: oklch(36% 0.008 50);
  --paper-text-tertiary: oklch(46% 0.008 50);
  --paper-border: oklch(86% 0.008 70);
  --paper-border-strong: oklch(70% 0.01 70);
  --paper-border-field: oklch(58% 0.008 50); /* form-field outline: 3:1 or more on paper and recessed */
  --paper-positive: oklch(46% 0.12 150);
  --paper-negative: oklch(50% 0.16 25);
  /* Semantic tokens: paper by default */
  --bg-primary: var(--paper-bg);
  --bg-elevated: var(--paper-bg-elevated);
  --bg-recessed: var(--paper-bg-recessed);
  --text-primary: var(--paper-text);
  --text-secondary: var(--paper-text-secondary);
  --text-tertiary: var(--paper-text-tertiary);
  --text-on-accent: var(--paper-bg);
  --border-default: var(--paper-border);
  --border-strong: var(--paper-border-strong);
  --border-field: var(--paper-border-field);
  --feedback-positive: var(--paper-positive);
  --feedback-negative: var(--paper-negative);
  --radius: 2px;
  --radius-pill: 999px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  /* The label voice: a humanist sans beside Inter's grotesque, drawn for
   * small sizes, with tabular figures. Loaded from Google Fonts like Inter. */
  --font-label: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --header-h: 48px;
  --rail-w: 200px;
  --wrap: 1120px;
  --edge: 32px;
  /* Photo scrims (home hero field only): the ground at four strengths, plus
   * the elevated ground at 90% so a hint of sea stays under the verdict. */
  --scrim-strong: oklch(10% 0.006 50 / 0.74);
  --scrim-mid: oklch(10% 0.006 50 / 0.44);
  --scrim-faint: oklch(10% 0.006 50 / 0.06);
  --scrim-top: oklch(10% 0.006 50 / 0.5);
}

@media (min-width: 900px) {
  :root { --edge: 64px; }
}

/* Ink scope: the same semantic tokens, aliased to the dark palette. Header,
 * drawer, hero, the pinned home stage, the closing band and the footer. */
.ink, .site-header, .site-footer, .band--hero, .reveal-pin, .band--inverted {
  color-scheme: dark;
  --bg-primary: var(--ink-bg);
  --bg-elevated: var(--ink-bg-elevated);
  --bg-recessed: var(--ink-bg-recessed);
  --text-primary: var(--ink-text);
  --text-secondary: var(--ink-text-secondary);
  --text-tertiary: var(--ink-text-tertiary);
  --text-on-accent: var(--ink-bg);
  --border-default: var(--ink-border);
  --border-strong: var(--ink-border-strong);
  --border-field: var(--ink-border-field);
  --feedback-positive: var(--ink-positive);
  --feedback-negative: var(--ink-negative);
  background: var(--bg-primary);
  color: var(--text-primary);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; } /* in-page links clear the sticky header */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; padding: 8px 12px;
  background: var(--text-primary); color: var(--text-on-accent); z-index: 100;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--edge); }
@media (min-width: 1600px) { :root { --wrap: 1280px; } }
.prose { max-width: 68ch; }
/* A wrapper that is also prose stays full width and left-aligned like every
 * other band; the reading measure applies to its children instead. */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 68ch; }
.prose p + p { margin-top: 1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose .btn { text-decoration: none; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
/* Chip rows are lists but not prose lists: no indent, no stagger. */
.prose .chips { padding-left: 0; }
.prose .chips li + li { margin-top: 0; }
.stack > * + * { margin-top: var(--s, 16px); }
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Bands (full-width blocks with an edge-to-edge top rule) ---------- */
.band, .section { padding: 64px 0; border-top: 1px solid var(--border-default); }
.band--hero, .section--hero { border-top: 0; padding-top: 48px; }
.band--elevated { background: var(--bg-elevated); }
.band--inverted { border-top: 0; }
@media (min-width: 900px) {
  .band, .section { padding: 96px 0; }
  .band--hero, .section--hero { padding-top: 72px; }
}

/* ---------- Cells (the lattice) ----------
 * A 1px grid gap over a hairline-coloured background draws every rule once,
 * at any column count, with no per-breakpoint border logic. */
.cells { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border-default); border: 1px solid var(--border-default); }
.cell { background: var(--bg-primary); padding: 20px; display: grid; align-content: start; gap: 10px; }
.band--elevated .cell { background: var(--bg-elevated); }
.cell__num { font-family: var(--font-label); font-size: 13px; color: var(--text-tertiary); }
a.cell:hover .display-md, a.cell:hover .display-lg { color: var(--text-secondary); }
@media (min-width: 700px) {
  .cell { padding: 24px; }
  .cells--2, .cells--4 { grid-template-columns: repeat(2, 1fr); }
  .cells--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .cells--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Hero: headline cell left, lede and actions right, wide visual below ---------- */
.hero-cells { display: grid; gap: 28px; }
/* Proof band: one readable surface. Type keeps a short measure on the left;
 * the chart crop owns the right column and runs off the stage edge. */
.band--proof { overflow: hidden; }
.proof-cells { display: grid; gap: 28px; }
.hero-visual { margin-top: 40px; }
.scroll-cue { display: none; } /* desktop only; the pinned frame has a foot to point at */
@media (min-width: 900px) {
  .hero-cells { grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
  .proof-cells { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); gap: 64px; align-items: start; }
  /* The bleed is a mid-desktop trick. The figure never grows past the slice's
   * native width; on a wide display the extra space is ink, not more image. */
  .proof-cells .shot--bleed { width: calc(100% + max(0px, (100vw - var(--wrap)) / 2) + var(--edge) * 2); max-width: 1080px; margin-top: 32px; }
  .proof-cells .shot--bleed img { height: min(64vh, 640px); object-fit: cover; object-position: 0 0; }
  .hero-visual { margin-top: 56px; }
  .reveal-pin__hero { padding-top: clamp(96px, 14vh, 128px); }
  /* One left column: headline on two lines, lede at a short measure, and a
   * scroll cue centred at the foot of the frame. */
  .hero-stack { max-width: 960px; }
  .hero-stack .lede { max-width: 42ch; }
  .hero-stack .actions { padding-top: 8px; }
  .reveal-pin__hero { position: relative; }
  .scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; left: 0; right: 0; bottom: 28px; margin: 0; color: var(--text-tertiary); letter-spacing: 0.18em; }
  .scroll-cue svg { width: 16px; height: 16px; }
}
/* Narrow desktops: a shorter crop keeps the calibration sentence and the
 * last peak of the path inside the viewport. */
@media (min-width: 900px) and (max-width: 1100px) {
  .proof-cells .shot--bleed img { height: min(50vh, 440px); }
}
/* From 1440 up: the whole panel at its natural aspect, no cover crop, and
 * the figure stops at the wrap margin so there is always ink beside it. */
@media (min-width: 1440px) {
  .proof-cells .shot--bleed { width: calc(100% + max(0px, (100vw - var(--wrap)) / 2)); }
  .proof-cells .shot--bleed img { height: auto; object-fit: fill; }
}

/* ---------- Proof panel: a contained box that clips its own shot ----------
 * The band stays page-coloured and the tint lives in an inset box, so there is
 * ground either side of it. The figure is wider than its column and the box
 * clips it: that cut edge is the frame, which is why the shot needs no border
 * of its own on that side. Padding is deliberately asymmetric, none on the
 * right, so the screenshot can reach the boundary. */
.panel--proof { background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius); overflow: hidden; padding: 32px var(--edge); }
.panel--proof .proof-cells { gap: 28px; }
.panel--proof .shot { border-radius: 0; }
@media (min-width: 900px) {
  .panel--proof { padding: 64px 0 64px 56px; }
  .panel--proof .proof-cells { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 48px; align-items: center; }
  /* Overflow the column, then let the box cut it. `fill` rather than `cover`
   * so a wide crop is never zoomed to meet a fixed height. */
  .panel--proof .shot--bleed { width: calc(100% + 144px); max-width: none; margin-top: 0; }
  /* A landscape crop puts its payload near its own right edge, so the same
   * 144px cut that harmlessly trims a tall shot will swallow the numbers.
   * Wide shots take a token overlap instead: enough to read as clipped,
   * not enough to lose anything. */
  .panel--proof .shot--bleed--tight { width: calc(100% + 36px); }
  .panel--proof .shot--bleed img { height: auto; object-fit: fill; }
  .panel--proof .shot--bleed .shot__caption { padding-right: 160px; }
}

/* Alternating side. Koyfin flips the image left/right every section to stop a
 * long feature page reading as one repeated slab, and it is the cheapest
 * fatigue fix there is. `order` does the swap so the DOM keeps type before
 * figure: reading order and the screen-reader pass stay correct. */
@media (min-width: 900px) {
  .panel--proof--flip .proof-cells { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); }
  .panel--proof--flip .proof-cells > .stack { order: 2; }
  .panel--proof--flip .proof-cells > .shot { order: 1; }
  /* A flipped panel does NOT bleed, and that asymmetry is deliberate. Western
   * data UI is label-first, so the left edge of one of our shots carries the
   * row names and the headline. Clipping there cost the words "What moved your
   * returns" and every ticker in the contribution chart, whereas clipping on
   * the right only ever trims a summary rail. Koyfin can cut on the left
   * because their left-hand shots are report mockups with page margins, not
   * dense tables. So: alternate the SIDE for the fatigue relief, but bleed
   * only to the right. */
  .panel--proof--flip { padding: 64px 56px; }
  .panel--proof--flip .shot--bleed { width: 100%; margin-left: 0; }
}

/* ---------- Light split hero (advisors) ----------
 * `.band--hero` is in the ink group, so it cannot be reused here without
 * turning every hero on the site light. This is its paper twin: a full-width
 * tinted band, type left, and the shot running off the page edge rather than
 * being clipped by a box. */
.band--hero-light { background: var(--bg-elevated); border-top: 0; overflow: hidden; padding: 48px 0 0; }
.hero-split { display: grid; gap: 32px; }
.hero-split .shot { border-radius: 0; }
@media (min-width: 900px) {
  .band--hero-light { padding: 72px 0 0; }
  .hero-split { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: 56px; align-items: center; }
  .hero-split .shot--bleed { width: calc(100% + max(0px, (100vw - var(--wrap)) / 2) + var(--edge)); max-width: none; margin-top: 0; }
  .hero-split .shot--bleed img { height: auto; object-fit: fill; }
}

/* ---------- Hero field (home): the photo behind the fold ----------
 * Default = a block of sea above the hero text, fading into the ground at
 * its foot. Inside the pin it becomes the stage's full-bleed floor with a
 * scrim under the text column; the bands sit above it. */
.hero-field { display: block; position: relative; margin: 0; overflow: hidden; background: var(--bg-recessed); }
.hero-field img { display: block; width: 100%; height: 22vh; min-height: 160px; object-fit: cover; object-position: 50% 55%; } /* a strip, so the headline and Get started sit in a phone's first screen */
.hero-field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, transparent, var(--bg-primary)); } /* scrim */

/* ---------- Forms (contact) ---------- */
.form { max-width: 640px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; position: relative; }
.field__label { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.field__optional { color: var(--text-tertiary); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 15px; line-height: 1.4; color: var(--text-primary);
  background: var(--bg-recessed); border: 1px solid var(--border-field); border-radius: var(--radius);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 1px; border-color: var(--text-primary); }
/* The select has no native arrow (appearance: none), so its wrapper draws one. */
.field__select { position: relative; display: block; }
.field__select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border-right: 1.5px solid var(--text-secondary); border-bottom: 1.5px solid var(--text-secondary); transform: rotate(45deg); pointer-events: none; }
.field__select select { padding-right: 36px; }
.field input.is-invalid, .field select.is-invalid, .field textarea.is-invalid { border-color: var(--feedback-negative); }
.field__error { font-family: var(--font-label); font-size: 14px; color: var(--feedback-negative); }
.field__count { font-family: var(--font-label); font-size: 13px; color: var(--text-tertiary); justify-self: end; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 14px; color: var(--text-secondary); padding: 10px 12px; border: 1px solid var(--border-default); border-radius: var(--radius); }
.form__status:empty { display: none; }
.form__status[data-kind="ok"] { color: var(--text-primary); border-color: var(--border-strong); }

/* ---------- Portrait frame (about) ---------- */
.shot--portrait { max-width: 320px; }

/* ---------- Research library rows ---------- */
.rows--library .row { display: grid; gap: 10px; padding: 32px 0; border-top: 1px solid var(--border-default); }
.rows--library .row:last-child { border-bottom: 1px solid var(--border-default); }
.rows--library .row h2 a { color: inherit; text-decoration: none; }
.rows--library .row h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.row__sep { padding: 0 6px; color: var(--text-tertiary); }

/* ---------- Legal documents: long prose with numbered sections ---------- */
.legal-doc section + section { margin-top: 40px; }
.legal-doc h2 { margin-bottom: 12px; }
.legal-doc h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.legal-doc p + p, .legal-doc p + ul, .legal-doc ul + p, .legal-doc p + dl { margin-top: 12px; }
.legal-doc dt { font-weight: 500; margin-top: 12px; }
.legal-doc dd { margin: 4px 0 0; color: var(--text-secondary); }

/* ---------- Trust line (home, under the pin): one mono line, no cells ---------- */
.band--trust { padding: 16px 0; }
.trust-line {
  margin: 0; font-family: var(--font-label); font-size: 14px; line-height: 1.6;
  letter-spacing: 0.01em; color: var(--text-secondary);
}
.trust-line a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.trust-line a:hover { color: var(--text-primary); }
.trust-line__sep { display: inline-block; padding: 0 10px; }

/* ---------- Product rows with a sticky rail ----------
 * One repeated rhythm: rule, heading row (title left, one small button
 * right), one sentence, one wide visual, mono tags. The rail lists the
 * rows and stays put on wide screens; on narrow ones it is a plain list. */
.rail-grid { display: grid; gap: 0; }
.rail { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.rail a { font-family: var(--font-label); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); padding: 4px 0; }
.rail a:hover, .rail a[aria-current="true"] { color: var(--text-primary); }
.rows { display: grid; }
.row { padding: 40px 0; border-top: 1px solid var(--border-default); display: grid; gap: 16px; }
.row:last-child { border-bottom: 1px solid var(--border-default); }
.row__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.row__head > :first-child { flex: 1 1 60%; min-width: 0; }
.row__head > .btn { flex: none; }
.row__lede { max-width: 68ch; }
.row .shot { margin-top: 8px; }
@media (min-width: 1100px) {
  .rail-grid { grid-template-columns: var(--rail-w) 1fr; column-gap: 40px; align-items: start; }
  .rail { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 6px; margin: 40px 0 0; }
  .row { padding: 48px 0; gap: 20px; }
}

/* ---------- Type ---------- */
/* Label voice: eyebrows, tags, captions, figures, in Source Sans 3. Inter
 * does all the reading; this face marks the small things. */
.mono { font-family: var(--font-label); font-weight: 400; }
.eyebrow {
  font-family: var(--font-label); font-size: 13px; line-height: 1.5; letter-spacing: 0.05em;
  text-transform: uppercase; font-weight: 400; color: var(--text-secondary);
}
.display-3xl { font-size: clamp(40px, 6.5vw, 72px); line-height: 0.95; letter-spacing: -0.022em; font-weight: 600; text-wrap: balance; }
.display-line { display: block; text-wrap: balance; }
/* Short paragraphs beside a display heading: no one-word last line. */
.hero-cells p, .hero-stack p, .proof-cells p { text-wrap: pretty; }
.display-2xl { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.02em; font-weight: 600; text-wrap: balance; }
.display-xl { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.06; letter-spacing: -0.016em; font-weight: 600; text-wrap: balance; }
.display-lg { font-size: clamp(26px, 2.6vw, 32px); line-height: 1.12; letter-spacing: -0.012em; font-weight: 600; text-wrap: balance; }
.display-md { font-size: clamp(22px, 2vw, 24px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.45; letter-spacing: -0.01em; color: var(--text-secondary); }
.body-sm { font-size: 13px; line-height: 1.45; }
.muted { color: var(--text-secondary); }
.tertiary { color: var(--text-tertiary); }
.num { font-family: var(--font-label); font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "zero"; }
.pull-quote { font-style: italic; font-size: 18px; color: var(--text-secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; max-width: 100%;
  transition: background-color 180ms var(--ease-out-expo), border-color 180ms var(--ease-out-expo), color 180ms var(--ease-out-expo);
}
.btn--primary { background: var(--text-primary); color: var(--text-on-accent); }
.btn--primary:hover { background: var(--text-secondary); }
.btn--secondary { border-color: var(--border-strong); color: var(--text-primary); background: transparent; }
.btn--secondary:hover { border-color: var(--text-primary); }
.btn--sm { padding: 10px 16px; font-size: 13px; }
@media (max-width: 400px) { .btn { white-space: normal; line-height: 1.25; text-align: center; } }
/* Touch screens: every small link and control gets a 44px hit area. */
@media (pointer: coarse) {
  .btn--sm, .rail a, .footer-col a, .faq summary, .chips a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-col a { display: flex; }
}

/* ---------- Header (a row of cells, edge to edge) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-primary); border-bottom: 1px solid var(--border-default);
}
.site-header__inner { display: flex; align-items: stretch; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 20px; font-weight: 600; letter-spacing: -0.01em; font-size: 16px; }
.brand img { width: 22px; height: 22px; border-radius: var(--radius); }
.brand span { color: var(--text-primary); white-space: nowrap; }

.nav-primary { display: none; align-items: stretch; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; white-space: nowrap;
  border-left: 1px solid var(--border-default);
  color: var(--text-secondary); font-size: 16px; font-weight: 500;
}
.nav-link:hover, .menu-company[open] > .nav-link { color: var(--text-primary); background: var(--bg-elevated); }
/* The current page: full-strength text and a rule along the bar's bottom edge. */
.nav-link[aria-current] { color: var(--text-primary); }
.nav-link[aria-current]::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; background: var(--text-primary);
}
/* The chevron marks the items that open a menu and turns while it is open. */
.nav-chevron { width: 10px; height: 10px; flex: none; transition: transform 160ms var(--ease-out-expo); }
.menu-company[open] .nav-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .nav-chevron { transition: none; } }

.menu-company { position: relative; display: flex; }
.menu-company > summary { list-style: none; cursor: pointer; }
.menu-company > summary::-webkit-details-marker { display: none; }
/* Open panels sit on the elevated ground with a strong hairline, so they read
 * as a layer over the hero rather than blending into it. No shadow (house rule). */
.menu-company__panel {
  position: absolute; top: 100%; left: -1px; z-index: 60;
  min-width: 320px; display: grid; align-content: start;
  background: var(--bg-elevated); border: 1px solid var(--border-strong); border-top: 0;
}
.menu-company__head { padding: 14px 16px 6px; }
.menu-row {
  display: grid; gap: 3px; padding: 12px 16px;
  border-top: 1px solid var(--border-default);
}
.menu-company__head + .menu-row { border-top: 0; }
.menu-row:hover, .menu-row:focus-visible { background: var(--bg-primary); }
.menu-row__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--text-primary); }
.menu-row__desc { font-size: 14px; line-height: 1.4; color: var(--text-secondary); }
.menu-tag {
  padding: 1px 6px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  font-size: 13px; font-weight: 500; color: var(--text-tertiary);
}
/* Product: a mega menu, the rows beside a narrow column of quick links. */
.menu-mega__panel { grid-template-columns: minmax(0, 1fr) 180px; min-width: 560px; }
.menu-mega__main { display: grid; align-content: start; padding-bottom: 6px; }
.menu-mega__side { display: grid; align-content: start; padding-bottom: 10px; border-left: 1px solid var(--border-default); }
.menu-mega__side a { display: block; padding: 8px 16px; font-size: 15px; color: var(--text-secondary); }
.menu-mega__side a:hover, .menu-mega__side a:focus-visible { color: var(--text-primary); background: var(--bg-primary); }

.nav-actions { margin-left: auto; display: flex; align-items: stretch; }
.nav-cta {
  display: inline-flex; align-items: center; padding: 0 20px; white-space: nowrap;
  border-left: 1px solid var(--border-default); font-size: 15px; font-weight: 500; color: var(--text-primary);
}
.nav-cta:hover { background: var(--bg-elevated); }
.nav-cta--fill { background: var(--text-primary); color: var(--text-on-accent); }
.nav-cta--fill:hover { background: var(--text-secondary); }
/* Narrow header: the drawer carries both buttons, so the bar keeps a plain
 * Get started beside the menu button, not a filled block. */
/* .98, not 1023: a fractional viewport (zoom, DPR) would fall between 1023
 * and the min-width 1024 query below and match neither. */
@media (max-width: 1023.98px) {
  .nav-actions .nav-cta:not(.nav-cta--fill) { display: none; }
  .nav-cta--fill { background: none; color: var(--text-primary); }
  .nav-cta--fill:hover { background: var(--bg-elevated); }
}
/* Below 350px the brand, Get started and the menu button do not fit one row
 * (brand 176px + button 120px + menu 48px), so Get started lives in the
 * drawer only. */
@media (max-width: 349.98px) {
  .nav-actions .nav-cta--fill { display: none; }
}
/* One voice in the header: the menu and drawer labels are the same sans as
 * the links, not the mono eyebrow used in page bodies. */
.site-header .eyebrow, .nav-search-result-page {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.01em; text-transform: none; color: var(--text-tertiary);
}

/* Search: one icon cell in the bar; the field opens in a panel beneath it
 * (click, or the "/" key), like the menus. */
.nav-search { position: relative; display: none; align-items: stretch; border-left: 1px solid var(--border-default); }
.nav-search-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: var(--header-h);
  background: none; border: 0; color: var(--text-secondary); cursor: pointer;
}
.nav-search-toggle:hover, .nav-search-toggle[aria-expanded="true"] { color: var(--text-primary); background: var(--bg-elevated); }
.nav-search-icon { width: 15px; height: 15px; flex: none; }
.nav-search-panel {
  position: absolute; top: 100%; right: -1px; z-index: 60; width: 380px; padding: 12px;
  background: var(--bg-elevated); border: 1px solid var(--border-strong); border-top: 0;
}
.nav-search-input {
  display: block; width: 100%; padding: 10px 12px; background: var(--bg-primary);
  border: 1px solid var(--border-strong); border-radius: var(--radius); outline: none;
  color: var(--text-primary); font: inherit; font-size: 15px;
}
.nav-search-input:focus-visible { border-color: var(--text-primary); }
.nav-search-input::placeholder { color: var(--text-tertiary); }
.nav-search-input::-webkit-search-cancel-button, .nav-search-input::-webkit-search-decoration { -webkit-appearance: none; }
.nav-search-popover { margin-top: 8px; }
.nav-search-results { list-style: none; margin: 0; padding: 0; }
.nav-search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; font-size: 13px; }
.nav-search-results a:hover, .nav-search-results a:focus-visible { background: var(--bg-primary); }
.nav-search-result-title { color: var(--text-primary); }
.nav-search-result-page { white-space: nowrap; }
.nav-search-empty { margin: 0; padding: 10px; font-size: 13px; color: var(--text-tertiary); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--header-h); background: none; border: 0; border-left: 1px solid var(--border-default); cursor: pointer;
}
.nav-toggle svg { width: 16px; height: 16px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

.drawer {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
  overflow-y: auto; border-top: 1px solid var(--border-default); background: var(--bg-primary);
}
body.nav-open .drawer { display: block; }
body.nav-open { overflow: hidden; }
/* The wrap's side padding is the gutter; only the vertical padding is set here. */
.drawer__inner { padding-top: 8px; padding-bottom: 32px; }
.drawer a { display: block; padding: 12px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--border-default); }
.drawer .eyebrow { margin: 22px 0 4px; }
.drawer .actions { margin-top: 20px; }
.drawer .actions a { border-bottom: 0; padding: 14px 24px; font-size: 15px; }

/* The full bar needs ~960px at 16px type, so tablets keep the drawer. */
@media (min-width: 1024px) {
  .nav-primary { display: flex; }
  .nav-search { display: flex; }
  .nav-toggle { display: none; }
  body.nav-open .drawer { display: none; }
  body.nav-open { overflow: auto; }
}


/* ---------- Capability chips ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 3px 7px; background: var(--bg-elevated); border-radius: var(--radius);
  font-family: var(--font-label); font-size: 13px; line-height: 1.5; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-secondary);
  white-space: nowrap;
}

/* ---------- Screenshot frame ---------- */
.shot { border: 1px solid var(--border-strong); border-radius: var(--radius); overflow: hidden; background: var(--bg-recessed); }
.shot img { width: 100%; }
.shot__caption { padding: 10px 12px; border-top: 1px solid var(--border-default); font-family: var(--font-label); font-size: 14px; line-height: 1.5; color: var(--text-secondary); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--border-default); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border-default); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-tertiary); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 12px; color: var(--text-secondary); max-width: 68ch; }
.faq details a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Comparison rows (advisors) ---------- */
.compare { display: grid; }
.compare__row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border-default); color: var(--text-secondary); }
.compare__row:last-child { border-bottom: 1px solid var(--border-default); }
.compare__row--ours { color: var(--text-primary); font-weight: 500; }

/* ---------- Pricing ---------- */
.term-switch { position: relative; display: inline-flex; padding: 2px; border: 1px solid var(--border-default); border-radius: var(--radius); }
.term-switch label { position: relative; cursor: pointer; }
.term-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.term-switch span { display: inline-block; padding: 8px 14px; font-size: 13px; font-weight: 500; border-radius: var(--radius); color: var(--text-secondary); }
.term-switch input:checked + span { background: var(--text-primary); color: var(--text-on-accent); }
.term-switch input:focus-visible + span { outline: 2px solid var(--text-primary); outline-offset: 2px; }
/* On a phone the three terms share the row evenly instead of wrapping ragged. */
@media (max-width: 559.98px) {
  .term-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .term-switch label { display: block; }
  .term-switch span { display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; }
}

.cells--tiers { grid-template-columns: 1fr; }
@media (min-width: 700px) { .cells--tiers { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cells--tiers { grid-template-columns: repeat(4, 1fr); } .cells--tiers .tier--wide { grid-column: 1 / -1; } }
.tier { display: flex; flex-direction: column; gap: 14px; }
.tier--popular { outline: 1px solid var(--text-primary); outline-offset: -1px; }
.band--elevated .matrix-select { background: var(--bg-recessed); }
.tier__flag { font-family: var(--font-label); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-primary); }
.tier__name { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.tier__price { font-family: var(--font-label); font-size: 36px; line-height: 1; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.tier__period { font-size: 13px; color: var(--text-tertiary); }
.tier__note { font-size: 13px; color: var(--text-tertiary); min-height: 2.6em; }
.tier__pitch { font-size: 14px; color: var(--text-secondary); }
.tier__list { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.tier__list li { position: relative; padding-left: 18px; }
.tier__list li::before {
  content: ""; position: absolute; left: 1px; top: 0.5em; width: 8px; height: 5px;
  border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(-45deg);
}
.tier__roadmap { font-size: 13px; color: var(--text-tertiary); }
.tier .btn { margin-top: auto; justify-content: center; }

.matrix { display: grid; grid-template-columns: 1fr 1fr; font-size: 13px; }
.matrix__row { display: contents; } /* rows exist for assistive tech; the grid lays out their cells */
.matrix__head, .matrix__cell { text-align: center; }
.matrix__head { padding: 12px 8px; border-bottom: 1px solid var(--border-strong); font-family: var(--font-label); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); }
.matrix__head--label { text-align: left; padding-left: 0; }
.matrix__label { padding: 12px 12px 12px 0; border-top: 1px solid var(--border-default); color: var(--text-secondary); }
.matrix__cell { padding: 12px 8px; border-top: 1px solid var(--border-default); color: var(--text-primary); font-variant-numeric: tabular-nums; }
.matrix__cell--no { color: var(--text-tertiary); }
.matrix__cell--road { color: var(--text-tertiary); font-size: 13px; }
.matrix__cell svg { width: 14px; height: 14px; margin: 0 auto; }
.matrix-select { display: inline-block; margin-bottom: 16px; padding: 8px 10px; font: inherit; font-size: 13px; color: var(--text-primary); background: var(--bg-elevated); border: 1px solid var(--border-field); border-radius: var(--radius); min-height: 44px; }
/* Narrow screens show one tier column, chosen by the select. The show rules
 * carry the same specificity as the hide rule and come later, so they win. */
.matrix[data-show] .matrix__head[data-tier], .matrix[data-show] .matrix__cell[data-tier] { display: none; }
.matrix[data-show="basic"] .matrix__head[data-tier="basic"], .matrix[data-show="basic"] .matrix__cell[data-tier="basic"],
.matrix[data-show="pro"] .matrix__head[data-tier="pro"], .matrix[data-show="pro"] .matrix__cell[data-tier="pro"],
.matrix[data-show="advisor"] .matrix__head[data-tier="advisor"], .matrix[data-show="advisor"] .matrix__cell[data-tier="advisor"],
.matrix[data-show="family_office"] .matrix__head[data-tier="family_office"], .matrix[data-show="family_office"] .matrix__cell[data-tier="family_office"],
.matrix[data-show="institutional"] .matrix__head[data-tier="institutional"], .matrix[data-show="institutional"] .matrix__cell[data-tier="institutional"] { display: block; }
@media (min-width: 900px) {
  .matrix { grid-template-columns: 1.6fr repeat(5, 1fr); }
  .matrix-select { display: none; }
  .matrix[data-show] .matrix__head[data-tier], .matrix[data-show] .matrix__cell[data-tier] { display: block; }
}

/* ---------- Footer (four cells, the registration line, the wordmark) ---------- */
.site-footer { margin-top: 0; border-top: 1px solid var(--border-default); padding: 48px 0 0; overflow: hidden; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--text-primary); }
.footer-legal {
  margin-top: 24px; padding: 16px 0; border-top: 1px solid var(--border-default);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-family: var(--font-label); font-size: 14px; line-height: 1.5; color: var(--text-tertiary);
}
.footer-mark {
  margin: 24px 0 -0.18em; font-weight: 600; font-size: clamp(56px, 12vw, 180px); line-height: 1;
  letter-spacing: -0.04em; color: var(--border-strong); white-space: nowrap; user-select: none;
}

/* ---------- Motion ---------- */
/* Hidden until revealed only when scripts run: with JS off or blocked, every
 * section shows in place. */
@media (scripting: enabled) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity 480ms var(--ease-out-expo), transform 480ms var(--ease-out-expo); }
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Pinned hero reveal (home only) ----------
 * Default = the static stack every browser gets. The pinned rules live
 * entirely inside @supports + @media so an unsupported engine, or a
 * reduced-motion preference, never sees them. Transform and opacity only. */
.reveal-pin { display: block; }
.reveal-pin__stage { display: block; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
    .reveal-pin { height: 200vh; view-timeline: --pin block; }
    .reveal-pin__stage {
      position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
      display: grid; overflow: hidden;
    }
    .reveal-pin__stage { isolation: isolate; }
    .reveal-pin__stage > .hero-field { grid-area: 1 / 1; z-index: 0; height: 100%; min-height: 0; }
    .reveal-pin__stage > .hero-field img {
      height: 100%; min-height: 0; object-position: 50% 40%; transform-origin: 50% 40%;
      animation: pin-field-drift linear both; animation-timeline: --pin; animation-range: contain 0% contain 100%;
    }
    .reveal-pin__stage > .hero-field::after {
      inset: 0; height: auto;
      background:
        linear-gradient(90deg, var(--scrim-strong) 0%, var(--scrim-mid) 46%, var(--scrim-faint) 100%), /* scrim */
        linear-gradient(180deg, var(--scrim-top) 0%, transparent 26%); /* scrim */
    }
    .reveal-pin__stage > .band { grid-area: 1 / 1; z-index: 1; display: flex; align-items: center; min-height: 0; }
    /* The hero band sits on the photo floor: it must not paint the ink
     * ground the .ink scope gives every other hero band. */
    .reveal-pin__stage > .reveal-pin__hero { background: transparent; }
    /* The proof band paints nothing. By the time its line rises the photo
     * has faded to the stage's own ink floor, so the floor is opaque
     * without a veil. */
    .reveal-pin__stage > .reveal-pin__proof { background: transparent; }
    @keyframes pin-field-drift { from { transform: scale(1); } to { transform: scale(1.06); } }
    .reveal-pin__stage > .reveal-pin__hero { align-items: flex-start; }
    /* Serial acts on one timeline. No two full layers ever share the frame.
     *   0-30%    photo drifts, hero type holds, CTA clickable
     *   30-52%   hero type leaves upward; photo fades to the ink floor
     *   55%      hard cut: photo at 0, floor solid ink, screenshot still hidden
     *   55-75%   honesty line rises into the empty stage
     *   76-92%   screenshot enters from below, after the line has settled
     *   92-100%  hold, then the pin releases */
    .reveal-pin__stage > .hero-field { animation: pin-field-out linear both; animation-timeline: --pin; animation-range: contain 0% contain 100%; }
    .reveal-pin__hero { animation: pin-hero-out linear both; animation-timeline: --pin; animation-range: contain 0% contain 100%; transform-origin: 50% 40%; }
    .reveal-pin__proof { animation: pin-proof-pointer linear both; animation-timeline: --pin; animation-range: contain 0% contain 100%; }
    .reveal-pin__proof .proof-cells > .stack { animation: pin-line-in linear both; animation-timeline: --pin; animation-range: contain 0% contain 100%; }
    .reveal-pin__proof .shot { animation: pin-shot-in linear both; animation-timeline: --pin; animation-range: contain 0% contain 100%; }
    /* The scroll timeline owns these two; the intersection reveal must not
     * add a second transition on the same properties. */
    .reveal-pin__proof .reveal { transition: none; }
    /* Both bands share one grid cell, so the later sibling (proof) sits on
     * top and would swallow clicks meant for the hero. pointer-events rides
     * the same timeline: the hero keeps the pointer until its type starts
     * leaving at 30%, nothing is clickable across the cut, and the proof
     * takes the pointer when its line begins to rise at 55%. Discrete
     * properties flip between adjacent keyframes, so each handoff is a step. */
    @keyframes pin-field-out {
      from, 30% { opacity: 1; }
      55%, to { opacity: 0; }
    }
    @keyframes pin-hero-out {
      from, 30% { opacity: 1; transform: none; pointer-events: auto; }
      30.001% { pointer-events: none; }
      52% { opacity: 0; transform: translateY(-12%) scale(0.96); pointer-events: none; visibility: visible; }
      52.001%, to { opacity: 0; transform: translateY(-12%) scale(0.96); pointer-events: none; visibility: hidden; }
    }
    @keyframes pin-proof-pointer {
      from, 55% { pointer-events: none; }
      55.001%, to { pointer-events: auto; }
    }
    @keyframes pin-line-in {
      from, 55% { opacity: 0; transform: translateY(14%); visibility: hidden; }
      55.001% { visibility: visible; }
      75%, to { opacity: 1; transform: none; visibility: visible; }
    }
    @keyframes pin-shot-in {
      from, 76% { opacity: 0; visibility: hidden; transform: translateY(32px); }
      76.001% { visibility: visible; }
      92%, to { opacity: 1; visibility: visible; transform: none; }
    }
  }
}
