/* BoutiqueIQ website. Dark tokens are the app's (src/theme, direction D, Navy Ledger); the light
   scheme is derived for the site only: the app's off-white becomes the ground, its navy the ink,
   and brass and the feedback colours are darkened until they pass WCAG AA on paper. */

@font-face { font-family: "Fraunces"; font-weight: 500; font-display: optional; src: url("fonts/Fraunces_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: optional; src: url("fonts/Fraunces_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: optional; src: url("fonts/InstrumentSans_400Regular.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-display: optional; src: url("fonts/InstrumentSans_500Medium.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-display: optional; src: url("fonts/InstrumentSans_600SemiBold.woff2") format("woff2"); }
/* Metric-matched fallbacks, so the swap to the real face does not move the page. */
@font-face { font-family: "Fraunces Fallback"; src: local("Times New Roman"), local("Times"); size-adjust: 112%; ascent-override: 90%; descent-override: 23%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Sans Fallback"; src: local("Helvetica Neue"), local("Arial"); size-adjust: 98%; ascent-override: 96%; descent-override: 25%; line-gap-override: 0%; }

:root {
  color-scheme: dark light;
  --bg: #0F1D3A;
  --surface: #162A4E;
  --raised: #1B3158;
  --high: #27437A;
  --border: #22365C;
  --border-strong: #2E4875;
  --text: #F2EFE6;
  --text-2: #A9B4CC;
  --text-3: #8E9CBB;
  --brass: #D9B86A;
  --brass-text: #D9B86A;
  --brass-deep: #B8963F;
  --on-brass: #0F1D3A;
  --incorrect: #F2A79E;
  --bezel: #070E1F;
  --device-ring: 0 0 0 1px #2E4875;
  --device-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 22px 40px -26px rgba(0, 0, 0, 0.6);
  --header: rgba(15, 29, 58, 0.78);
  --shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7);

  --display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --body: "Instrument Sans", "Instrument Sans Fallback", -apple-system, system-ui, sans-serif;

  --step-h1: clamp(2.25rem, 1.55rem + 2.8vw, 4rem);
  --step-h2: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  --step-h3: 1.375rem;
  --step-lede: clamp(1.125rem, 1.02rem + 0.42vw, 1.3125rem);
  --step-small: 0.875rem;

  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem;
  --gutter: clamp(1.25rem, 4.5vw, 4.5rem);
  --max: 72rem;
  --measure: 38rem;
  --section: clamp(4.5rem, 10vw, 9rem);
  --r-md: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F2EA;
    --surface: #ECE7DA;
    --raised: #FFFDF7;
    --high: #E2DCCB;
    --border: rgba(15, 29, 58, 0.13);
    --border-strong: rgba(15, 29, 58, 0.26);
    --text: #0F1D3A;
    --text-2: #3B4763;
    --text-3: #55617D;
    --brass: #B8963F;
    --brass-text: #765A17;
    --brass-deep: #9C7C2C;
    --on-brass: #0F1D3A;
    --incorrect: #A9463C;
    --bezel: #1A1F2B;
    --device-ring: 0 0 0 1px rgba(15, 29, 58, 0.18);
    --device-shadow: 0 1px 2px rgba(15, 29, 58, 0.22), 0 18px 34px -20px rgba(15, 29, 58, 0.38);
    --header: rgba(245, 242, 234, 0.82);
    --shadow: 0 50px 90px -45px rgba(15, 29, 58, 0.45);
  }
}

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 5rem; caret-color: var(--brass); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.55 var(--body);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-h1); line-height: 1.02; letter-spacing: -0.028em; }
h2 { font-size: var(--step-h2); line-height: 1.06; letter-spacing: -0.022em; }
h3 { font-size: var(--step-h3); line-height: 1.27; letter-spacing: -0.008em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
strong { font-weight: 600; }
.num { font-variant-numeric: lining-nums tabular-nums; }
.nowrap { white-space: nowrap; }
::selection { background: var(--brass); color: var(--on-brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 20; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s3); }
a, button, summary { touch-action: manipulation; }

/* Header */
.top-wrap { position: sticky; top: 0; z-index: 10; background: var(--header); -webkit-backdrop-filter: saturate(140%) blur(16px); backdrop-filter: saturate(140%) blur(16px); border-bottom: 1px solid var(--border); view-transition-name: site-header; }
@media (prefers-reduced-transparency: reduce) { .top-wrap { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.top { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); min-height: 4rem; display: flex; align-items: center; gap: var(--s5); }
.wordmark { font-family: var(--display); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.top-nav { margin-left: auto; display: flex; gap: var(--s5); font-size: 0.9375rem; font-weight: 500; color: var(--text-2); }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; border-bottom: 1px solid transparent; }
.top-nav a[aria-current] { color: var(--text); border-bottom-color: var(--brass); }
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border-radius: var(--r-md); cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu .menu-close, .menu[open] .menu-open { display: none; }
.menu[open] .menu-close { display: block; }
.menu nav { position: absolute; right: -6px; top: calc(100% + 8px); min-width: 15rem; padding: var(--s2); display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow); transform-origin: top right; }
.menu nav a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s4); border-radius: var(--r-md); text-decoration: none; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .menu nav { transition: opacity 180ms var(--ease), transform 180ms var(--ease); }
  @starting-style { .menu[open] nav { opacity: 0; transform: scale(0.96); } }
}
@media (hover: hover) and (pointer: fine) {
  .top-nav a:hover { color: var(--text); }
  .menu nav a:hover { background: var(--surface); }
  .text-link:hover { text-decoration-color: var(--brass); }
  .foot nav a:hover { color: var(--text); }
  .button:hover { filter: brightness(1.04); }
}

/* Shared layout */
main > section { padding: var(--section) var(--gutter); }
.wrap { max-width: var(--max); margin: 0 auto; }
.band { background: var(--surface); }
.head { max-width: var(--measure); display: flex; flex-direction: column; gap: var(--s4); }
.head p, .lede { color: var(--text-2); }
.head p { font-size: 1.125rem; max-width: 34rem; }
.lede { font-size: var(--step-lede); line-height: 1.5; max-width: 34rem; }
.fine { font-size: var(--step-small); line-height: 1.5; color: var(--text-2); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.split-flip > :first-child { order: 2; }

/* Actions */
.button, .store {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s5); border-radius: 999px;
  font: 600 1rem/1.2 var(--body); text-decoration: none; white-space: nowrap;
}
/* Until launch the store state is plain text with a brass dot: a status, not a control. */
.store { min-height: 0; padding: 0; border: 0; border-radius: 0; color: var(--text-2); background: transparent; font-size: 0.9375rem; font-weight: 500; }
.store-live { min-height: 52px; padding: 0 var(--s5); font-size: 1rem; font-weight: 600; }
.store:not(.store-live)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.store.store-live { background: var(--brass); color: var(--on-brass); border: 0; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); }
.button-primary { background: var(--brass); color: var(--on-brass); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.55); }
.button-quiet { background: transparent; color: var(--text); border: 1px solid var(--border-strong); cursor: pointer; }
.button:active { transform: scale(0.97); }
@media (prefers-reduced-motion: no-preference) { .button, .button-quiet { transition: transform 120ms var(--ease), filter 150ms ease; } }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-strong); }

/* The device: a restrained frame around a real capture. The captures' status bars were painted
   out (they showed different clock times); one iOS-style bar at 9:41 and the island are drawn here. */
.device { position: relative; width: 100%; max-width: 20rem; margin: 0 auto; padding: 2.6%; border-radius: 15% / 7%; background: var(--bezel); box-shadow: var(--device-ring), inset 0 0 0 1px rgba(255, 255, 255, 0.09), var(--device-shadow); container-type: inline-size; }
.device img, .device picture { display: block; width: 100%; border-radius: 12.6% / 5.8%; }
.device::before { content: ""; position: absolute; z-index: 1; left: 2.743cqw; right: 2.743cqw; top: 2.743cqw; height: 12.9cqw; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1320 170'%3E%3Ctext x='250' y='117' text-anchor='middle' font-family='-apple-system,SF Pro Text,Helvetica Neue,Arial,sans-serif' font-size='50' font-weight='600' fill='white'%3E9:41%3C/text%3E%3Crect x='928' y='101' width='14' height='16' rx='3' fill='white'/%3E%3Crect x='948' y='93' width='14' height='24' rx='3' fill='white'/%3E%3Crect x='968' y='85' width='14' height='32' rx='3' fill='white'/%3E%3Crect x='988' y='77' width='14' height='40' rx='3' fill='white'/%3E%3Cpath d='M1020.9 84.9A44 44 0 0 1 1083.1 84.9' fill='none' stroke='white' stroke-width='9' stroke-linecap='round'/%3E%3Cpath d='M1032.9 96.9A27 27 0 0 1 1071.1 96.9' fill='none' stroke='white' stroke-width='9' stroke-linecap='round'/%3E%3Cpath d='M1052 118L1044 109A12 12 0 0 1 1060 109Z' fill='white'/%3E%3Crect x='1098' y='80' width='80' height='38' rx='11' fill='none' stroke='white' stroke-opacity='.45' stroke-width='3'/%3E%3Crect x='1104' y='86' width='68' height='26' rx='7' fill='white'/%3E%3Crect x='1182' y='93' width='5' height='12' rx='2' fill='white' fill-opacity='.45'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%; pointer-events: none; }
.device::after { content: ""; position: absolute; z-index: 1; left: 50%; top: 5.95cqw; width: 28.4cqw; height: 8.3cqw; translate: -50% 0; border-radius: 999px; background: #000; }

/* A capture cut short (the phone layout's step 1): the frame stops with a rule, no bottom corners. */
.device-crop { padding-bottom: 0; border-radius: 15% 15% 0 0 / 15cqw 15cqw 0 0; box-shadow: var(--device-ring), inset 0 0 0 1px rgba(255, 255, 255, 0.09); border-bottom: 1px solid var(--border-strong); }
.device-crop img, .device-crop picture { border-radius: 12.6cqw 12.6cqw 0 0; }

/* 1. Hero */
.hero { padding-top: clamp(2.5rem, 6vw, 6rem) !important; overflow: clip; }
.hero-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: var(--s5); }
.hero h1 { max-width: 17ch; }
.hero .device { justify-self: start; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s2); }

/* The hero's one authored motion (DESIGN.md, marketing site): the pace line draws once. */
.pace { margin: var(--s5) 0 0; padding-top: 1.75rem; max-width: 30rem; }
.pace-track { position: relative; height: 2px; margin: var(--s2) 6px; background: var(--border-strong); }
.pace-fill { position: absolute; inset: 0; background: var(--brass); transform-origin: left center; }
.pace-mark { position: absolute; top: 50%; translate: -50% -50%; }
.pace-today { left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--brass); }
.pace-close { left: 82%; width: 10px; height: 10px; background: var(--incorrect); rotate: 45deg; }
.pace-ready { left: 100%; width: 12px; height: 12px; border-radius: 50%; background: var(--brass); }
.pace-labels { position: relative; display: flex; align-items: baseline; justify-content: space-between; margin-top: var(--s3); font-size: var(--step-small); color: var(--text-2); }
.pace-labels b { font-family: var(--display); font-weight: 600; font-size: 1.125rem; color: var(--text); }
.pace-close-label { position: absolute; left: 82%; bottom: calc(100% + 1.5rem); translate: -72% 0; white-space: nowrap; color: var(--incorrect); font-weight: 600; }
.pace figcaption { margin-top: var(--s2); }
@media (prefers-reduced-motion: no-preference) {
  .pace-fill { animation: draw 700ms var(--ease) 250ms both; }
  .pace-close, .pace-ready { animation: fade 250ms var(--ease) 800ms both; }
}
@keyframes draw { from { transform: scaleX(0); } }
.hero .device { max-width: 21.5rem; }

/* 2. Answer one */
.try-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.try-q { display: flex; flex-direction: column; gap: var(--s4); position: sticky; top: 6rem; }
.try-meta { color: var(--text-3); font-size: var(--step-small); }
.try-q blockquote { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; }
.try-q .button-quiet { align-self: flex-start; margin-top: var(--s2); }
.model { display: flex; flex-direction: column; gap: var(--s3); padding-top: var(--s5); border-top: 1px solid var(--border); }
.model h3, .rubric h3 { font-size: 1.25rem; font-weight: 600; }
.model p { color: var(--text-2); font-size: 1rem; line-height: 1.6; max-width: 36rem; }
.rubric { margin-top: var(--s6); }
.try.is-closed .rubric { margin-top: 0; }
.rubric ol { list-style: none; margin: var(--s3) 0 0; padding: 0; border-top: 1px solid var(--border); }
.rubric li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr) auto; gap: var(--s1) var(--s4); padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.tick { grid-row: 1 / span 2; width: 1.375rem; height: 1.375rem; margin-top: 0.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--brass); color: var(--on-brass); }
.tick svg { width: 0.875rem; height: 0.875rem; }
.crit { font-weight: 500; }
.weight { font-family: var(--display); font-size: 1.125rem; color: var(--text-2); font-variant-numeric: lining-nums tabular-nums; }
.quote { grid-column: 2 / 4; color: var(--text-3); font-size: 0.9375rem; line-height: 1.45; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); padding-top: var(--s4); border-top: 3px double var(--brass-deep); margin-top: -1px; }
.total b { white-space: nowrap; font-family: var(--display); font-weight: 500; font-size: 1.75rem; font-variant-numeric: lining-nums tabular-nums; }
.try-note { margin-top: var(--s5); max-width: 36rem; }
.note-closed { display: none; }
.try.is-closed .note-closed { display: block; }
.try.is-closed .note-open { display: none; }
/* Closed: the script hides the answer until asked; without the script it all shows. */
.try.is-closed .model, .try.is-closed .quote, .try.is-closed .total { display: none; }
.try.is-closed .tick { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .try.is-open .model { animation: rise 320ms var(--ease) both; }
  .try.is-open .tick { animation: tick 220ms var(--ease) both; animation-delay: calc(240ms + var(--i) * 110ms); }
  .try.is-open .quote { animation: fade 260ms var(--ease) both; animation-delay: calc(280ms + var(--i) * 110ms); }
  .try.is-open .total { animation: fade 260ms var(--ease) both; animation-delay: 860ms; }
}
@media (prefers-reduced-motion: reduce) { .try.is-open .model, .try.is-open .quote, .try.is-open .total { animation: fade 200ms ease both; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes tick { from { opacity: 0; transform: scale(0.85); } }

/* 3. How a session goes */
.session { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(3rem, 8vw, 8rem); margin-top: clamp(2rem, 4vw, 3rem); timeline-scope: --st2, --st3, --st4; }
.steps { list-style: none; margin: 0; padding: 0 0 5rem; }
.step { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-content: start; gap: var(--s2) var(--s4); min-height: 12.5rem; border-top: 1px solid var(--border); padding: var(--s5) 0; }
.step:last-child { border-bottom: 1px solid var(--border); }
.step-n { grid-row: 1 / span 2; font-family: var(--display); font-size: 1.75rem; line-height: 1.1; color: var(--brass-text); font-variant-numeric: lining-nums tabular-nums; }
.step p { color: var(--text-2); max-width: 30rem; }
.step-shot { display: none; }
.session-device { position: sticky; align-self: start; top: calc(50vh - 15.5rem); width: 15.5rem; max-width: none; margin: 0 auto; }
.screens { position: relative; }
.screens .screen { position: absolute; inset: 0; opacity: 0; }
.screens .screen-1 { position: relative; opacity: 1; }
.session[data-step="2"] .screen-2, .session[data-step="3"] .screen-2, .session[data-step="4"] .screen-2,
.session[data-step="3"] .screen-3, .session[data-step="4"] .screen-3, .session[data-step="4"] .screen-4 { opacity: 1; }
.session .screen { transition: opacity 300ms var(--ease); }
/* Inactive steps take the muted text colour (6:1 dark, 5.5:1 light), never a lowered opacity. */
.session.is-tracking .step:not(.is-active) :is(h3, p) { color: var(--text-3); }
.session .step :is(h3, p) { transition: color 250ms var(--ease); }
.session[data-step="1"] .step:nth-child(1), .session[data-step="2"] .step:nth-child(2),
.session[data-step="3"] .step:nth-child(3), .session[data-step="4"] .step:nth-child(4) { opacity: 1; }
@supports (animation-timeline: view()) {
  html:not(.no-sda) .session .step:nth-child(2) { view-timeline: --st2 block; }
  html:not(.no-sda) .session .step:nth-child(3) { view-timeline: --st3 block; }
  html:not(.no-sda) .session .step:nth-child(4) { view-timeline: --st4 block; }
  html:not(.no-sda) .session .screen-2 { animation: show linear both; animation-timeline: --st2; animation-range: cover 41% cover 44%; }
  html:not(.no-sda) .session .screen-3 { animation: show linear both; animation-timeline: --st3; animation-range: cover 41% cover 44%; }
  html:not(.no-sda) .session .screen-4 { animation: show linear both; animation-timeline: --st4; animation-range: cover 41% cover 44%; }
  html:not(.no-sda) .session .step { animation: focus linear both; animation-timeline: view(); animation-range: cover 39% cover 61%; }
  html:not(.no-sda) .session .step :is(h3, p) { color: inherit; }
}
@keyframes show { from { opacity: 0; } to { opacity: 1; } }
@keyframes focus { 0%, 100% { color: var(--text-3); } 10%, 90% { color: var(--text); } }

/* The stacked session: phones, tablets, and anyone who asked for less motion */
@media (max-width: 960px), (prefers-reduced-motion: reduce) {
  .session { grid-template-columns: 1fr; }
  .session-device { display: none; }
  .steps { padding-bottom: 0; }
  .step, .session .step { min-height: 0; animation: none !important; padding: var(--s6) 0 var(--s7); }
  .session .step h3 { color: var(--text) !important; }
  .session .step p { color: var(--text-2) !important; }
  .step-shot { display: block; grid-column: 2; margin: var(--s5) 0 0; max-width: 17rem; }
}

/* 5. Markets this week: text, and a ruled list of what a briefing holds */
.split-text { align-items: start; }
.briefing-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--brass-deep); }
.briefing-list li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s4); align-items: baseline; padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.briefing-list strong { font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.briefing-list span { color: var(--text-2); font-size: 0.9375rem; }

/* 4. What it covers */
.ledger { width: 100%; margin-top: clamp(2rem, 4vw, 3rem); border-collapse: collapse; }
.ledger th { padding: 0 0 var(--s3); text-align: left; font-size: var(--step-small); font-weight: 500; color: var(--text-3); border-bottom: 1px solid var(--brass-deep); }
.ledger td { padding: var(--s4) 0; border-bottom: 1px solid var(--border); vertical-align: baseline; }
.ledger .n { width: 3rem; font-family: var(--display); color: var(--text-3); font-variant-numeric: lining-nums tabular-nums; }
.ledger .unit { font-weight: 500; font-size: 1.125rem; }
.ledger .ask { display: block; margin-top: var(--s1); font-size: 0.9375rem; color: var(--text-2); max-width: 36rem; }
.ledger .when { width: 24%; padding-left: var(--s5); color: var(--text-2); font-size: 0.9375rem; }
.ledger .count { width: 6rem; text-align: right; font-family: var(--display); font-size: 1.375rem; font-variant-numeric: lining-nums tabular-nums; }
.ledger thead th, .ledger thead th.when, .ledger thead th.count { font-family: var(--body); font-size: var(--step-small); font-weight: 500; color: var(--text-3); }
.ledger tfoot td { border-bottom: 0; border-top: 1px solid var(--border-strong); font-weight: 600; }
.also { list-style: none; margin: var(--s7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); }
.also li { padding: var(--s4) 0; border-top: 1px solid var(--border); color: var(--text-2); }
.also strong { display: block; color: var(--text); }

/* 7. Price */
.price-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.price-grid .price { margin-top: 0; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; } .price-grid .price { margin-top: var(--s5); } }
.price { margin: clamp(2rem, 4vw, 3rem) 0 0; border-top: 1px solid var(--brass-deep); max-width: 48rem; }
.price > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s1) var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--border); }
.price dt { font-weight: 500; font-size: 1.125rem; }
.price dd { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.price dd.sub { flex-basis: 100%; font-family: var(--body); font-size: 0.9375rem; text-align: left; color: var(--text-2); max-width: 34rem; }
.price-note { margin-top: var(--s5); max-width: 40rem; }

/* 8. Questions */
.qa { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--border); max-width: 48rem; }
.qa details { border-bottom: 1px solid var(--border); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; padding: var(--s4) 0; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.25rem; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3); transform: translateY(-3px) rotate(45deg); }
.qa details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
@media (prefers-reduced-motion: no-preference) { .qa summary::after { transition: transform 200ms var(--ease); } }
.qa details > div { padding: 0 var(--s6) var(--s5) 0; color: var(--text-2); max-width: 40rem; display: flex; flex-direction: column; gap: var(--s3); }

/* Closing line and footer */
.close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); max-width: var(--max); margin: 0 auto; padding: var(--s7) 0; border-top: 1px solid var(--border); }
.close-line { font-family: var(--display); font-weight: 600; font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); line-height: 1.2; letter-spacing: -0.012em; max-width: 24ch; }
.close-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.foot { padding: 0 var(--gutter) var(--s7); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding-top: var(--s6); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 var(--s5); margin-left: auto; color: var(--text-2); font-size: 0.9375rem; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot .fine { width: 100%; }

/* Legal and support pages: one readable column, ruled sections */
.legal { max-width: calc(40rem + 2 * var(--gutter)); margin: 0 auto; padding-top: clamp(2.5rem, 6vw, 5rem) !important; }
.legal-head { display: flex; flex-direction: column; gap: var(--s4); padding-bottom: var(--s6); border-bottom: 1px solid var(--brass-deep); }
.legal-head p { color: var(--text-2); font-size: 1.125rem; }
.legal h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); line-height: 1.2; margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border); }
.legal h3 { font-size: 1.1875rem; margin-top: var(--s6); }
.legal p, .legal li, .legal td { color: var(--text-2); }
.legal p + p, .legal h2 + p, .legal h3 + p, .legal ul + p, .legal p + ul, .legal h2 + ul, .legal h3 + ul, .legal table + p { margin-top: var(--s4); }
.legal ul { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: var(--s2); }
.legal strong { color: var(--text); }
.legal a { text-decoration-color: var(--border-strong); }
.legal .summary { margin-top: var(--s6); padding: var(--s5) 0 var(--s5) var(--s5); border-left: 2px solid var(--brass); }
.legal .summary h2 { margin: 0 0 var(--s3); padding: 0; border: 0; font-size: 1.25rem; }
.toc { margin-top: var(--s6); font-size: 0.9375rem; }
.toc h2 { font-family: var(--body); font-size: var(--step-small); font-weight: 500; color: var(--text-3); margin: 0; padding: 0; border: 0; letter-spacing: 0; }
.toc ol { margin: var(--s2) 0 0; padding: 0; list-style: none; columns: 2; column-gap: var(--s6); counter-reset: toc; }
.toc li { counter-increment: toc; break-inside: avoid; }
.toc a { display: flex; gap: var(--s3); align-items: center; min-height: 44px; text-decoration: none; color: var(--text-2); }
.toc a::before { content: counter(toc); min-width: 1.25rem; font-family: var(--body); font-weight: 500; color: var(--text-3); font-variant-numeric: lining-nums tabular-nums; }
.legal table { width: 100%; margin-top: var(--s4); border-collapse: collapse; font-size: 0.9375rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: var(--s3) var(--s3) var(--s3) 0; border-top: 1px solid var(--border); }
.legal th { color: var(--text); font-weight: 600; }
.legal .quote-block { margin: var(--s4) 0 0; padding-left: var(--s4); border-left: 2px solid var(--brass-deep); color: var(--text); }
.legal h2[id] { scroll-margin-top: 5.5rem; }

/* Not found */
.lost { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; gap: var(--s5); max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; }

/* Responsive */
@media (max-width: 960px) {
  .split, .try-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 2.5rem; }
  .split-flip > :first-child { order: 0; }
  .try-q { position: static; }
  .split .device { max-width: 17rem; margin: 0; }
}
@media (max-width: 767px) {
  .hero-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .top-nav { display: none; }
  .pace { display: none; }
  .menu { display: block; }
  .hero { padding-top: var(--s6) !important; }
  .hero-copy { gap: var(--s3); }
  .hero .lede { font-size: 1.0625rem; line-height: 1.45; }
  .hero-actions { margin-top: var(--s1); }
  .hero .device { max-width: 15.5rem; margin: var(--s2) auto 0; justify-self: center; }
  .hero-actions { gap: var(--s2) var(--s5); }
  .ledger thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ledger tr { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; column-gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
  .ledger td { display: block; padding: 0; border: 0; width: auto; }
  .ledger .when { width: auto; grid-column: 2; grid-row: 2; padding: var(--s1) 0 0; font-size: var(--step-small); color: var(--text-3); }
  .ledger .count { grid-column: 3; grid-row: 1; width: auto; }
  .ledger tfoot tr { border-bottom: 0; border-top: 1px solid var(--border-strong); }
  .ledger tfoot td { border: 0; }
  .also { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal tr { padding: var(--s3) 0; border-top: 1px solid var(--border); }
  .legal td { border: 0; padding: var(--s1) 0; }
  .legal td:first-child { color: var(--text); font-weight: 600; }
  .foot nav { margin-left: 0; }
}
@media print {
  .top-wrap, .skip, .close, .menu { display: none; }
  body { background: #fff; color: #000; }
}
