/* Self-hosted fonts (latin subsets from Google Fonts, served first-party:
   no third-party request, no render-blocking CSS fetch, GDPR-quiet). */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/fraunces-roman.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/fraunces-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans-roman.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/instrument-sans-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page: #0d0d0d;
  --surface: #1a1a19;
  --raised: #222220;
  --ink: #f5f3ec;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --brand: #c9a35c;
  --brand-dim: #8a6f3e;
  --up: #21b021;
  --down: #e66767;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --w: 1080px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; } /* animated anchor jumps are motion too */
}

/* Cross-document view transition: the language toggle (and privacy links)
   crossfade instead of white-flashing. Progressive — unsupported browsers
   keep the plain navigation. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* Reading-progress hairline under the sticky header (CSS-only, no JS). */
@supports (animation-timeline: scroll()) {
  body::after {
    content: ""; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
    background: var(--brand); transform-origin: 0 50%; transform: scaleX(0);
    animation: scroll-progress linear forwards; animation-timeline: scroll();
    pointer-events: none;
  }
  @keyframes scroll-progress { to { transform: scaleX(1); } }
}
body {
  background:
    radial-gradient(1300px 560px at 70% -8%, rgba(201, 163, 92, 0.07), transparent 62%),
    var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* faint film grain so the dark field doesn't read flat */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(201, 163, 92, 0.32); }
a { color: inherit; }
/* height:auto is load-bearing: imgs carry width/height ATTRIBUTES (CLS
   reservation), and the height attribute is a presentational hint — without
   height:auto, CSS width:100% + attribute height renders a stretched image. */
img { max-width: 100%; display: block; height: auto; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.tnum { font-variant-numeric: tabular-nums; }
[id] { scroll-margin-top: 78px; } /* anchors land below the sticky header */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 12px; z-index: 60;
  background: var(--brand); color: #141005; font: 600 14px/1 var(--sans);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus-visible { left: 12px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[tabindex="-1"]:focus-visible { outline: none; } /* programmatic targets don't ring */

/* ————— header ————— */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--page) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.top-row { display: flex; align-items: center; gap: 28px; height: 62px; }
.wordmark {
  font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: .01em;
  text-decoration: none; display: flex; align-items: baseline; gap: 9px;
}
.wordmark .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); transform: translateY(-1px); }
nav.main { display: flex; gap: 22px; margin-left: auto; }
/* :not(.btn) keeps nav's grey from out-specificity-ing .btn-gold's dark
   text (grey-on-gold was a real 1.3:1 contrast failure). */
nav.main a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
nav.main a:not(.btn):hover { color: var(--ink); }
nav.main a.btn { text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--brand); color: #141005; }
.btn-gold:hover { background: #d8b26b; }
.btn-line { border-color: var(--hairline-strong); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--brand-dim); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; border-radius: 8px; }
.os-ico { width: 15px; height: 15px; fill: currentColor; flex: none; }

/* ————— hero ————— */
.hero { padding: 88px 0 30px; text-align: center; }
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 26px;
}
h1 {
  font-family: var(--display); font-weight: 420; font-size: clamp(40px, 6.4vw, 74px);
  line-height: 1.04; letter-spacing: -0.015em; margin: 0 auto 26px; max-width: 18ch;
  font-variation-settings: "opsz" 100;
}
h1 em { font-style: italic; color: var(--brand); }
.lede { font-size: 18.5px; color: var(--ink-2); max-width: 62ch; margin: 0 auto 36px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-meta { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.cta-meta b { color: var(--ink-2); font-weight: 500; }
.release-line { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.release-line a { color: var(--muted); }
.release-line a:hover { color: var(--ink-2); }

/* staggered load-in */
@media (prefers-reduced-motion: no-preference) {
  .hero > * , .hero-shot { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.3,1) forwards; }
  .hero > :nth-child(1) { animation-delay: .05s } .hero > :nth-child(2) { animation-delay: .12s }
  .hero > :nth-child(3) { animation-delay: .2s }  .hero > :nth-child(4) { animation-delay: .3s }
  .hero > :nth-child(5) { animation-delay: .38s } .hero > :nth-child(6) { animation-delay: .42s }
  .hero-shot { animation-delay: .5s }
  @keyframes rise { to { opacity: 1; transform: none } }
  /* .js gate: without it, a browser that never runs the IntersectionObserver
     (JS off, extension-blocked) would keep every section invisible forever. */
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ————— screenshot frames ————— */
.shot { margin: 0; }
.frame {
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 14px;
  overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.4);
}
.frame-bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a37; }
.frame-bar i:first-child { background: #514537; }
.shot img { width: 100%; }
/* Until a real screenshot lands, the frame states exactly which file it needs. */
.shot.missing img { display: none; }
.shot.missing .frame-body::after {
  content: attr(data-need);
  display: grid; place-items: center; text-align: center; padding: 40px 24px;
  aspect-ratio: 16 / 10; font-size: 13.5px; line-height: 1.7; color: var(--muted);
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,.02) 14px 28px);
  white-space: pre-line;
}
.hero-shot { max-width: 980px; margin: 64px auto -120px; position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: -8% -14% auto; height: 120%; z-index: -1;
  background: radial-gradient(56% 62% at 50% 32%, rgba(201,163,92,.14), transparent 70%);
  filter: blur(6px);
}
.shot-caption { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ————— fact strip ————— */
.strip { margin-top: 168px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-cell { padding: 22px 18px; border-left: 1px solid var(--hairline); font-size: 14px; color: var(--ink-2); }
.strip-cell:first-child { border-left: 0; }
.strip-cell b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 3px; }

/* ————— sections ————— */
section.block { padding: 104px 0 0; }
.sec-head { display: flex; align-items: baseline; gap: 20px; border-top: 1px solid var(--hairline-strong); padding-top: 26px; margin-bottom: 14px; }
.sec-no { font-family: var(--display); font-style: italic; font-size: 19px; color: var(--brand); flex: none; }
h2 { font-family: var(--display); font-weight: 460; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.01em; }
.sec-sub { color: var(--ink-2); max-width: 66ch; margin-bottom: 44px; }
.feature { display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center; }
.feature.flip { grid-template-columns: 6fr 5fr; }
.feature.flip .copy { order: 2; }
.copy h3 { font-family: var(--display); font-weight: 500; font-size: 24px; margin-bottom: 12px; }
.copy p { color: var(--ink-2); margin-bottom: 14px; }
.copy ul { list-style: none; margin-top: 6px; }
.copy li { padding: 9px 0 9px 30px; position: relative; color: var(--ink-2); border-top: 1px solid var(--hairline); font-size: 15px; }
.copy li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand); font-weight: 700; }

/* ————— the three steps ————— */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 26px 24px 24px; position: relative;
}
.step-no { font-family: var(--display); font-style: italic; color: var(--brand); font-size: 17px; margin-bottom: 14px; }
.step h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-2); }
.step .art { height: 74px; display: flex; align-items: center; margin-bottom: 8px; color: var(--brand); }
.step .art svg { width: 58px; height: 58px; }
.steps-note { margin-top: 22px; font-size: 14px; color: var(--muted); max-width: 72ch; }

/* ————— the receipt ————— */
.receipt {
  background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 14px;
  padding: 26px 28px 20px; max-width: 470px; box-shadow: 0 26px 70px rgba(0,0,0,.5);
  font-size: 14.5px;
}
.receipt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline-strong); margin-bottom: 6px; }
.receipt-head b { font-weight: 600; font-size: 15px; }
.stamp {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--up);
  border: 1.5px solid color-mix(in srgb, var(--up) 60%, transparent); border-radius: 6px;
  padding: 4px 9px; transform: rotate(-3deg); white-space: nowrap;
}
.receipt-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px dashed var(--hairline); }
.receipt-row:first-of-type { border-top: 0; }
.receipt-row .lbl { color: var(--ink-2); }
.receipt-row .val { color: var(--ink); }
.receipt-row .ok { color: var(--up); font-weight: 700; margin-left: 8px; }
.receipt-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline-strong); display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.receipt-foot b { color: var(--up); font-weight: 600; }

/* ————— hard-stuff grid ————— */
.grid8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cell {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 18px 18px 16px; transition: border-color .2s ease, transform .2s ease;
}
.cell:hover { border-color: var(--brand-dim); transform: translateY(-2px); }
.cell b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.cell p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ————— assistant vignette ————— */
.chat { background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 14px; padding: 22px; display: grid; gap: 12px; max-width: 470px; }
.bubble { border-radius: 12px; padding: 12px 15px; font-size: 14px; line-height: 1.55; max-width: 88%; }
.bubble.user { background: var(--raised); justify-self: end; border: 1px solid var(--hairline); }
.bubble.folio { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.bubble .tool { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.chat-note { font-size: 12.5px; color: var(--muted); }

/* ————— privacy panel ————— */
.privacy {
  margin-top: 110px; border: 1px solid var(--hairline-strong); border-radius: 18px;
  background:
    radial-gradient(700px 300px at 12% -20%, rgba(201,163,92,.09), transparent 60%),
    var(--surface);
  padding: 56px 52px;
}
.privacy h2 { margin-bottom: 12px; }
.privacy .lead { color: var(--ink-2); max-width: 62ch; margin-bottom: 34px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.pillar b { display: block; font-weight: 600; margin-bottom: 7px; font-size: 15.5px; }
.pillar p { font-size: 14px; color: var(--ink-2); }
.pillar p a { color: var(--ink-2); }

/* ————— download ————— */
.dl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.dl-card { background: var(--surface); border: 1px solid var(--hairline-strong); border-radius: 16px; padding: 30px 30px 26px; }
.dl-card h3 { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.dl-card h3 .os-ico { width: 19px; height: 19px; }
.dl-req { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.dl-under { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.dl-under a { color: var(--ink-2); }

/* ————— FAQ ————— */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 34px 20px 2px; font-weight: 600; font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--display); font-size: 22px; color: var(--brand); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 2px 22px; color: var(--ink-2); font-size: 15px; max-width: 68ch; }
.faq details p + p { margin-top: -10px; }
/* Animated open/close where supported (Chrome 131+); elsewhere it snaps as before. */
@media (prefers-reduced-motion: no-preference) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    block-size: 0; overflow-y: clip;
    transition: block-size .35s cubic-bezier(.2, .7, .3, 1), content-visibility .35s allow-discrete;
  }
  .faq details[open]::details-content { block-size: auto; }
}

/* ————— thesis line ————— */
.thesis-block { padding: 96px 0 0; }
.thesis {
  font-family: var(--display); font-weight: 440; font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.3; letter-spacing: -0.01em; text-align: center;
  max-width: 30ch; margin: 0 auto;
}
.thesis em { font-style: italic; color: var(--brand); }

/* ————— comparison table ————— */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px;
  margin-top: 10px;
}
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-top: 1px dashed var(--hairline); }
.compare thead th { border-top: 0; border-bottom: 1px solid var(--hairline-strong); font-size: 15px; padding-top: 0; }
.compare thead th.folio-col { color: var(--ink); }
.compare thead .mini-mark { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-left: 7px; transform: translateY(-1px); }
.compare tbody th { font-weight: 500; color: var(--muted); width: 20%; }
.compare td { color: var(--ink-2); width: 26%; }
.compare td.folio-col { color: var(--ink); }
.compare .folio-col { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.compare tbody tr:first-child td, .compare tbody tr:first-child th { border-top: 0; }
.compare-note { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

/* ————— candor grid ————— */
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid6 .cell b::before { content: "— "; color: var(--brand-dim); }

/* ————— phone companion panel ————— */
.phone-panel {
  margin-top: 104px; border: 1px solid var(--hairline-strong); border-radius: 18px;
  background:
    radial-gradient(700px 300px at 88% -20%, rgba(201, 163, 92, 0.09), transparent 60%),
    var(--surface);
  padding: 56px 52px; display: grid; grid-template-columns: 7fr 4fr; gap: 48px; align-items: center;
}
.phone-kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.phone-panel h2 { margin-bottom: 12px; }
.phone-panel .lead { color: var(--ink-2); max-width: 56ch; margin-bottom: 12px; }
.phone-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.phone-note a { color: var(--ink-2); }
.phone-shot { margin: 0; justify-self: center; }
.phone-shot img {
  width: min(300px, 100%); border-radius: 30px; border: 1px solid var(--hairline-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .4);
}
.phone-shot figcaption { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ————— privacy footer link ————— */
.privacy-links { margin-top: 30px; font-size: 14px; color: var(--muted); }
.privacy-links a { color: var(--ink-2); }

footer { margin-top: 120px; border-top: 1px solid var(--hairline); padding: 36px 0 46px; }
.foot-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.foot-row a { color: var(--muted); text-decoration: none; }
.foot-row a:hover { color: var(--ink-2); }
.foot-row .wordmark { font-size: 18px; color: var(--ink); }
.foot-spacer { flex: 1; }

@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero-shot { margin-bottom: -60px; }
  .strip { margin-top: 108px; }
  .strip-row { grid-template-columns: 1fr 1fr; }
  .strip-cell:nth-child(3) { border-left: 0; }
  .strip-cell { border-top: 1px solid var(--hairline); }
  .strip-cell:nth-child(-n+2) { border-top: 0; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 30px; }
  .feature.flip .copy { order: 0; }
  .steps { grid-template-columns: 1fr; }
  .grid8 { grid-template-columns: 1fr 1fr; }
  .grid6 { grid-template-columns: 1fr 1fr; }
  .thesis-block { padding-top: 72px; }
  .phone-panel { grid-template-columns: 1fr; padding: 36px 28px; gap: 34px; }
  .pillars { grid-template-columns: 1fr; gap: 24px; }
  .privacy { padding: 36px 28px; }
  .dl-cards { grid-template-columns: 1fr; }
  nav.main a:not(.btn) { display: none; }
}
