/* ==========================================================================
   Trexure — institutional fintech landing
   Palette: violet #8E44AD · gold #D4AF37 · aubergine ink #1A1025 · paper #F7F9FB
   Type:    Fraunces (display) · Hanken Grotesk (body) · JetBrains Mono (hash)
   ========================================================================== */

:root {
  --ink:        #1A1025;
  --ink-2:      #2A1B3D;
  --ink-soft:   rgba(26, 16, 37, 0.62);
  --ink-mute:   rgba(26, 16, 37, 0.48);
  --violet:     #8E44AD;
  --violet-deep:#6C2A8C;
  --violet-soft:rgba(142, 68, 173, 0.10);
  --gold:       #D4AF37;
  --gold-soft:  #E8C766;
  --gold-line:  rgba(212, 175, 55, 0.40);
  --paper:      #F7F9FB;
  --paper-2:    #FFFFFF;
  --paper-warm: #F2EFF4;
  --line:       rgba(26, 16, 37, 0.10);
  --line-2:     rgba(26, 16, 37, 0.06);

  --ff-display: "Fraunces", "Georgia", serif;
  --ff-body:    "Hanken Grotesk", system-ui, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1320px;
  --gut: clamp(20px, 5vw, 64px);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-1: 0 1px 2px rgba(26,16,37,0.04), 0 8px 24px -12px rgba(26,16,37,0.12);
  --shadow-2: 0 2px 4px rgba(26,16,37,0.05), 0 24px 48px -20px rgba(26,16,37,0.22);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--violet); color: #fff; }

/* paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.06 0 0 0 0 0.14 0 0 0 0.035 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); position: relative; z-index: 2; }
.section { padding: clamp(72px, 10vw, 132px) 0; position: relative; z-index: 2; }
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
h1, h2, h3 { font-family: var(--ff-display); font-weight: 460; line-height: 1.04; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 7vw, 84px); font-variation-settings: "opsz" 144, "SOFT" 30; }
h2 { font-size: clamp(30px, 4.4vw, 52px); font-variation-settings: "opsz" 96; }
h3 { font-size: clamp(20px, 2vw, 24px); font-variation-settings: "opsz" 36; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-soft); max-width: 46ch; }
.mono { font-family: var(--ff-mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-body); font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  white-space: nowrap;
}
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { background: var(--violet-deep); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: var(--ink); font-weight: 700;
  box-shadow: 0 1px 1px rgba(212,175,55,0.5), 0 14px 30px -14px rgba(212,175,55,0.6);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn-dark-ghost { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.22); }
.btn-dark-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247, 249, 251, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-2);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 11px;
  background: var(--paper-2); padding: 6px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-1);
}
/* logo.png is a transparent RGBA PNG (no baked-in background), shown as-is
   on a light chip. The mark is a dark aubergine shield, so it still needs the
   light chip behind it to read — especially on the dark footer, where the
   chip is explicitly set to --paper (see .footer .brand-mark below). */
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-family: var(--ff-display); font-weight: 520; font-size: 21px; letter-spacing: -0.01em; }
.brand-name .dot { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  transition: color .25s var(--ease); position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(120px, 16vh, 172px); padding-bottom: clamp(48px, 6vw, 80px); position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 .accent { font-style: italic; color: var(--violet); font-variation-settings: "opsz" 144, "SOFT" 100; }
.hero h1 .goldbar { color: var(--gold); }
.hero-sub { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust {
  margin-top: 30px; display: flex; align-items: center; gap: 14px;
  font-size: 13.5px; color: var(--ink-mute);
}
.hero-trust .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(212,175,55,0.6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(212,175,55,0.5)} 70%{box-shadow:0 0 0 10px rgba(212,175,55,0)} 100%{box-shadow:0 0 0 0 rgba(212,175,55,0)} }

/* hero visual: cover image (up to 80% of viewport height, native ratio) */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-img {
  display: block;
  width: 100%;
  height: 50vh;
  object-fit: cover;
  object-position: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
}
/* ---------- section heading ---------- */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head .lead { max-width: 52ch; }

/* ---------- features ---------- */
.features { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat {
  position: relative; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px 24px 26px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  overflow: hidden;
}
.feat::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: transparent; }
.feat:hover::before { transform: scaleX(1); }
.feat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--violet-soft); color: var(--violet);
  border: 1px solid rgba(142,68,173,0.18);
}
.feat-icon svg { width: 24px; height: 24px; }
.feat h3 { margin-bottom: 10px; }
.feat p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.feat .num { position: absolute; top: 24px; right: 24px; font-family: var(--ff-mono); font-size: 12px; color: var(--ink-mute); }

/* ---------- reports ---------- */
.reports { background: var(--paper-2); border-top: 1px solid var(--line-2); }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.report-grid .feat { display: flex; flex-direction: column; }
.report-grid .feat p { flex: 1 1 auto; }
.fmts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.fmt {
  font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 999px;
  background: var(--violet-soft); color: var(--violet);
  border: 1px solid rgba(142, 68, 173, 0.18);
}

/* ---------- lifecycle strip ---------- */
.life { background: var(--paper-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.life-grid::before {
  content: ""; position: absolute; top: 38px; left: 8%; right: 8%; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
  z-index: 0;
}
.life-step { position: relative; padding: 0 18px; text-align: left; z-index: 1; }
.life-dot {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 22px;
  font-family: var(--ff-display); font-size: 26px; color: var(--violet);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.life-step:hover .life-dot { transform: scale(1.06); border-color: var(--gold); box-shadow: 0 0 0 6px var(--violet-soft); }
.life-step h3 { font-size: 18px; margin-bottom: 8px; }
.life-step p { font-size: 13.5px; color: var(--ink-soft); }
.life-tag { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; }

/* ---------- product showcase (dark aubergine) ---------- */
.showcase { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.showcase::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(142,68,173,0.30), transparent 60%),
    radial-gradient(50% 70% at 5% 100%, rgba(212,175,55,0.18), transparent 60%);
}
.showcase .wrap { position: relative; z-index: 2; }
.showcase h2, .showcase h3 { color: var(--paper); }
.showcase .eyebrow { color: var(--gold-soft); }
.showcase .lead { color: rgba(247,249,251,0.7); }
.showcase .sec-head { margin-bottom: 0; }

/* ---------- demo carousel (dark) ---------- */
.demo { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.demo::before {
  content: ""; position: absolute; inset: 0; opacity: 0.4;
  background:
    radial-gradient(55% 70% at 12% 8%, rgba(142,68,173,0.30), transparent 60%),
    radial-gradient(50% 70% at 95% 100%, rgba(212,175,55,0.16), transparent 60%);
}
.demo .wrap { position: relative; z-index: 2; }
.demo h2, .demo h3 { color: var(--paper); }
.demo .eyebrow { color: var(--gold-soft); }
.demo .lead { color: rgba(247,249,251,0.7); }

.demo-carousel { max-width: 960px; margin: 0 auto; }
.demo-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 30px; }
.demo-tab {
  font-family: var(--ff-body); font-size: 14px; font-weight: 600;
  color: rgba(247,249,251,0.60);
  background: transparent; border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 9px 18px;
  transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.demo-tab:hover { color: var(--paper); border-color: rgba(255,255,255,0.4); }
.demo-tab.is-active {
  color: var(--ink); border-color: transparent;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
}

.demo-stage { display: flex; align-items: center; gap: 18px; }
.demo-arrow {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  color: var(--paper); display: grid; place-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.demo-arrow svg { width: 20px; height: 20px; }
.demo-arrow:hover { background: rgba(255,255,255,0.12); border-color: var(--gold); color: var(--gold-soft); }

.demo-track { flex: 1; min-width: 0; }
.demo-slide { display: none; }
.demo-slide.is-active { display: block; animation: demoFade .5s var(--ease); }
@keyframes demoFade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.demo-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg);
  overflow: hidden; border: 1px solid rgba(255,255,255,0.10);
  background: #0C0714; box-shadow: var(--shadow-2);
}
.demo-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.demo-play {
  position: absolute; inset: 0; margin: auto;
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(26,16,37,0.55); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.30); color: var(--paper);
  display: grid; place-items: center;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.demo-play svg { width: 30px; height: 30px; margin-left: 4px; }
.demo-frame:hover .demo-play { transform: scale(1.06); background: rgba(142,68,173,0.72); border-color: var(--gold); }

.demo-cap { text-align: center; margin-top: 26px; }
.demo-cap h3 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 10px; }
.demo-cap p { font-size: 15.5px; color: rgba(247,249,251,0.70); max-width: 62ch; margin: 0 auto; }

/* ---------- contact ---------- */
.contact { background: var(--paper); }
.contact-card {
  background: var(--ink); color: var(--paper); border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px); text-align: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-2);
}
.contact-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 120% at 50% -20%, rgba(142,68,173,0.35), transparent 60%),
    radial-gradient(40% 80% at 100% 120%, rgba(212,175,55,0.22), transparent 60%);
}
.contact-card > * { position: relative; z-index: 2; }
.contact-card h2 { color: var(--paper); }
.contact-card .eyebrow { color: var(--gold-soft); justify-content: center; }
.contact-card .eyebrow::before { background: var(--gold); }
.contact-card p { color: rgba(247,249,251,0.72); margin: 18px auto 0; max-width: 50ch; }
.contact-email {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-display); font-weight: 480; font-variation-settings: "opsz" 60;
  font-size: clamp(26px, 4vw, 42px); color: var(--paper);
  margin: 32px 0 36px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.contact-email:hover { color: var(--gold); border-color: var(--gold); }
.contact-email .at { color: var(--gold); }
.contact-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: rgba(247,249,251,0.6); padding: clamp(56px, 7vw, 88px) 0 32px; position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.10); }
.footer .brand-mark { background: var(--paper); }
.footer .brand-mark img { filter: none; }
.footer-brand .brand-name { color: var(--paper); }
.footer-tag { margin-top: 18px; font-size: 14px; max-width: 30ch; color: rgba(247,249,251,0.5); }
.footer-col h4 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 18px; font-weight: 500; }
.footer-col a { display: block; font-size: 14.5px; color: rgba(247,249,251,0.62); padding: 7px 0; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: 13px; color: rgba(247,249,251,0.42); }
.footer-bottom a { color: rgba(247,249,251,0.42); transition: color .25s var(--ease); }
.footer-bottom a:hover { color: var(--gold-soft); }
.footer-bottom .sep { color: rgba(247,249,251,0.25); margin: 0 8px; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 460px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-2); padding: 20px 22px;
  transform: translateY(140%); opacity: 0;
  transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cookie.show { transform: translateY(0); opacity: 1; }
.cookie .ck-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; margin-bottom: 12px; }
.cookie h4 { font-family: var(--ff-display); font-weight: 520; font-size: 18px; margin: 0 0 6px; }
.cookie p { font-size: 13.5px; color: var(--ink-soft); }
.cookie p a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-actions button { flex: 1; padding: 11px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1px solid var(--line); transition: all .3s var(--ease); }
.cookie-accept { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cookie-accept:hover { background: var(--violet-deep); border-color: var(--violet-deep); }
.cookie-decline { background: var(--paper-2); color: var(--ink-soft); }
.cookie-decline:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- legal pages ---------- */
.legal { padding-top: 132px; }
.legal-hero { padding: 24px 0 56px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.legal-hero .meta { margin-top: 16px; font-family: var(--ff-mono); font-size: 13px; color: var(--ink-mute); display: flex; gap: 20px; flex-wrap: wrap; }
.legal-hero .meta a { color: var(--violet); }
.legal-body { display: grid; grid-template-columns: 240px 1fr; gap: clamp(40px, 5vw, 80px); padding: 56px 0 96px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc h5 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 14px; }
.toc a { display: block; font-size: 14px; color: var(--ink-soft); padding: 7px 0 7px 14px; border-left: 1px solid var(--line); transition: color .25s var(--ease), border-color .25s var(--ease); }
.toc a:hover, .toc a.active { color: var(--ink); border-left-color: var(--gold); }
/* min-width:0 overrides a grid item's `auto` minimum, which would otherwise let
   a wide <pre> stretch the track past the viewport instead of scrolling itself. */
.prose { max-width: 68ch; min-width: 0; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 48px 0 14px; font-variation-settings: "opsz" 48; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .n { font-family: var(--ff-mono); font-size: 14px; color: var(--gold); vertical-align: super; margin-right: 10px; font-weight: 500; }
.prose p { font-size: 16px; color: var(--ink-soft); margin: 0 0 16px; }
.prose ul { margin: 0 0 18px; padding: 0; list-style: none; }
.prose li { font-size: 16px; color: var(--ink-soft); padding: 7px 0 7px 26px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 17px; width: 14px; height: 1px; background: var(--gold); }
.prose li strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.prose .callout {
  background: var(--paper-warm); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: var(--r-sm); padding: 18px 22px; margin: 28px 0; font-size: 15px; color: var(--ink-soft);
}
.prose .callout strong { color: var(--ink); }

/* code — docs.html. Blocks scroll inside themselves so a long curl line can
   never push the page into a horizontal scroll on mobile. */
.prose code {
  font-family: var(--ff-mono); font-size: 0.88em; color: var(--violet-deep);
  background: var(--violet-soft); border-radius: 5px; padding: 2px 6px;
  overflow-wrap: break-word;
}
.prose pre {
  background: var(--ink); border-radius: var(--r-sm); padding: 20px 22px;
  margin: 0 0 22px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.prose pre code {
  color: rgba(247, 249, 251, 0.88); background: none; padding: 0;
  font-size: 13.5px; line-height: 1.7; white-space: pre; overflow-wrap: normal;
}
.prose img { margin: 8px 0 24px; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { width: 100%; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; align-items: start; }
  .hero-visual { max-width: 640px; }
  .sec-head { grid-template-columns: 1fr; gap: 20px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: repeat(2, 1fr); }
  .life-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .life-grid::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .legal-body { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; height: auto;
    background: var(--paper-2); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 8px var(--gut) 20px;
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    transition: transform .4s var(--ease), opacity .4s var(--ease);
    box-shadow: var(--shadow-2);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line-2); }
  .nav-links a::after { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .life-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .demo-stage { gap: 8px; }
  .demo-arrow { width: 38px; height: 38px; }
  .demo-arrow svg { width: 17px; height: 17px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}