/* ============================================================
   KRIKDEX — shared design system
   Hybrid: dark regal hero + warm-paper light app sections
   Type: Fraunces (display) · Hanken Grotesk (body) · Spline Sans Mono (labels)
   ============================================================ */

:root {
  /* dark / ink */
  --ink:        #0A0B0E;
  --ink-800:    #101219;
  --ink-700:    #171A23;
  --ink-600:    #20242F;
  --line-d:     rgba(255,255,255,.12);
  --line-d-soft:rgba(255,255,255,.06);
  --on-dark:    #ECEAE2;
  --on-dark-mut:rgba(236,234,226,.60);

  /* light / paper */
  --ivory:      #F4F0E8;
  --ivory-2:    #FBF8F1;
  --card:       #FFFDF8;
  --line-l:     rgba(17,19,24,.10);
  --line-l-soft:rgba(17,19,24,.06);
  --on-light:   #20201B;
  --on-light-mut:#67645A;

  /* accent — antique gold */
  --gold:       #C8A24B;
  --gold-hi:    #E7CD85;
  --gold-deep:  #97742B;

  /* per-app */
  --scripts:      #1E6FB2;
  --scripts-deep: #0E2C49;
  --scripts-tint: #E8F1F9;
  --stockman:     #3F9F52;
  --stockman-deep:#16324F;
  --stockman-tint:#E9F4EA;
  --labs:         #1E948C;
  --labs-deep:    #0E3B37;
  --labs-tint:    #E4F2F0;

  /* shape + motion */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 26px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --shadow-gold: 0 18px 40px -18px rgba(150,116,43,.55), 0 4px 14px -6px rgba(10,11,14,.4);
  --shadow-card: 0 1px 0 rgba(255,255,255,.7) inset, 0 26px 50px -28px rgba(20,22,30,.45), 0 8px 22px -16px rgba(20,22,30,.30);
  --maxw: 1180px;
}

/* ---------- reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--on-light);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- grain overlay ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1000; pointer-events: none;
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.section { padding-block: clamp(64px, 9vw, 132px); }
.center { text-align: center; }

/* ---------- type ---------- */
.display {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h1,h2,h3 { font-family: "Fraunces", Georgia, serif; font-optical-sizing: auto; font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; }
.eyebrow {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .28em;
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before { content:""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.lede { font-size: clamp(1.06rem, 1.4vw, 1.22rem); line-height: 1.65; color: var(--on-light-mut); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 14px 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .96rem; letter-spacing: -.01em;
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn .arr { transition: transform .4s var(--ease-spring); }
.btn:hover .arr { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.985); }

.btn-gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #2A2008; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 24px 50px -18px rgba(150,116,43,.7), 0 6px 16px -6px rgba(10,11,14,.5); }

.btn-ghost-d { color: var(--on-dark); border: 1px solid var(--line-d); }
.btn-ghost-d:hover { transform: translateY(-2px); border-color: rgba(231,205,133,.6); background: rgba(231,205,133,.06); }

.btn-ink { background: var(--on-light); color: var(--ivory-2); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(20,22,30,.5); }

.btn-ghost-l { color: var(--on-light); border: 1px solid var(--line-l); }
.btn-ghost-l:hover { transform: translateY(-2px); border-color: var(--on-light); }

/* ---------- crest treatments ---------- */
/* opaque white-bg crest -> ivory silhouette on dark via invert + screen */
.crest-ivory { filter: invert(1); mix-blend-mode: screen; }
/* small mark in nav/footer */
.mark { display: inline-flex; align-items: center; gap: 12px; font-family: "Fraunces", serif; font-weight: 600; letter-spacing: -.02em; }
.mark img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; }

/* ---------- header / nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px,4vw,40px);
  transition: background-color .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav .mark { color: var(--on-dark); font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px; border-radius: var(--r-pill); font-size: .92rem; font-weight: 500;
  color: var(--on-dark-mut);
  transition: color .25s var(--ease), background-color .25s var(--ease);
}
.nav-links a:hover { color: var(--on-dark); background: rgba(255,255,255,.06); }
.nav-links .nav-cta { color: var(--ink); background: var(--gold); margin-left: 8px; }
.nav-links .nav-cta:hover { background: var(--gold-hi); color: var(--ink); }
.nav.scrolled {
  background: rgba(10,11,14,.78); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-d-soft); padding-top: 12px; padding-bottom: 12px;
}
/* light variant (legal/product sub-heroes use dark nav too, kept consistent) */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-d); align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 18px; height: 1.5px; background: var(--on-dark); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span::before, .nav-toggle span::after { content:""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--on-dark); transition: transform .3s var(--ease); }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero (dark) ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--on-dark);
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 8%, rgba(231,205,133,.16), transparent 60%),
    radial-gradient(80% 70% at 78% 110%, rgba(30,111,178,.16), transparent 60%),
    radial-gradient(70% 60% at 10% 90%, rgba(31,148,140,.12), transparent 55%);
}
.hero-bg::after { /* fine grid / vignette */
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, transparent 70%, var(--ink) 100%);
}
.hero-inner { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding-block: 140px 90px; }
.hero-crest { width: clamp(118px, 16vw, 196px); margin: 0 auto 30px; }
.hero h1 { font-size: clamp(3.4rem, 12vw, 9rem); font-weight: 600; letter-spacing: -.045em; }
.hero h1 .amp { color: var(--gold); font-style: italic; font-weight: 400; }
.hero .sub { max-width: 620px; margin: 22px auto 0; color: var(--on-dark-mut); font-size: clamp(1.05rem,1.6vw,1.25rem); line-height: 1.65; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero-tags { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 56px; color: var(--on-dark-mut); font-family: "Spline Sans Mono", monospace; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-tags span { display: inline-flex; align-items: center; gap: 9px; }
.hero-tags span::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-eyebrow { color: var(--gold); margin-bottom: 26px; }
.hero-eyebrow::before { display: none; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--on-dark-mut); font-family: "Spline Sans Mono", monospace; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-hint::after { content:""; width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { 0%{transform:scaleY(.2);transform-origin:top;opacity:.3} 50%{transform:scaleY(1);opacity:1} 100%{transform:scaleY(.2);transform-origin:bottom;opacity:.3} }

/* ---------- light sections ---------- */
.light { background: var(--ivory); color: var(--on-light); position: relative; }
.light-2 { background: var(--ivory-2); }
.section-head { max-width: 680px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.section-head .lede { margin-top: 18px; }

/* ---------- app showcase rows ---------- */
.app-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px,5vw,80px); align-items: center; }
.app-row + .app-row { margin-top: clamp(56px, 8vw, 120px); }
.app-row.flip .app-media { order: 2; }
.app-icon { width: clamp(92px,12vw,128px); height: clamp(92px,12vw,128px); border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-copy .eyebrow { color: var(--app, var(--gold)); margin-bottom: 18px; }
.app-copy h3 { font-size: clamp(1.9rem,3.6vw,2.9rem); }
.app-copy .one { font-size: 1.05rem; color: var(--on-light-mut); margin-top: 14px; max-width: 46ch; }
.feat-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 13px; }
.feat-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .99rem; }
.feat-list .chk { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--app, var(--gold)) 15%, transparent); color: var(--app, var(--gold)); }
.feat-list .chk svg { width: 14px; height: 14px; }
.app-link { display: inline-flex; align-items: center; gap: .55em; font-weight: 600; color: var(--app, var(--gold)); }
.app-link .arr { transition: transform .4s var(--ease-spring); }
.app-link:hover .arr { transform: translateX(4px); }

/* app media card */
.app-media { position: relative; }
.app-stage {
  position: relative; border-radius: var(--r-lg); padding: clamp(28px,4vw,52px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(22px,3vw,32px); min-height: 320px;
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--app) 16%, transparent), transparent 70%),
    var(--card);
  border: 1px solid var(--line-l); box-shadow: var(--shadow-card); overflow: hidden;
}
.app-stage::before { content:""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 120%, color-mix(in srgb, var(--app) 22%, transparent), transparent 70%); }
.app-stage .big-icon { display: block; width: clamp(150px,22vw,210px); height: clamp(150px,22vw,210px); border-radius: 36px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--app) 55%, #0a0b0e); position: relative; z-index: 1; transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease); }
.app-stage .big-icon img { width: 100%; height: 100%; object-fit: cover; }
/* clickable logo → app page */
a.big-icon { cursor: pointer; }
a.big-icon:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 44px 70px -22px color-mix(in srgb, var(--app) 60%, #0a0b0e); }
a.big-icon:active { transform: translateY(-1px) scale(1.01); }
a.big-icon:focus-visible { outline: 2px solid var(--app, var(--gold)); outline-offset: 6px; }

/* store buttons */
.store-row { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.store-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--r-pill); font-weight: 600; font-size: .82rem; letter-spacing: -.01em; text-decoration: none; color: var(--app, var(--gold)); background: color-mix(in srgb, var(--app) 11%, #fff); border: 1px solid color-mix(in srgb, var(--app) 24%, var(--line-l)); box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--app) 55%, #0a0b0e); transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease), background-color .3s var(--ease); }
.store-btn .store-ic { width: 15px; height: 15px; flex: none; }
.store-btn:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--app) 17%, #fff); box-shadow: 0 14px 26px -12px color-mix(in srgb, var(--app) 62%, #0a0b0e); }
.store-btn:active { transform: translateY(0) scale(.97); }
.store-btn:focus-visible { outline: 2px solid var(--app, var(--gold)); outline-offset: 3px; }
.store-soon { font-family: "Spline Sans Mono", monospace; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-light-mut); padding: 9px 16px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--app) 7%, #fff); border: 1px dashed color-mix(in srgb, var(--app) 38%, var(--line-l)); }

/* ---------- cards grid (generic) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line-l); border-radius: var(--r-md);
  padding: 30px; box-shadow: var(--shadow-card);
  transition: transform .45s var(--ease-spring), box-shadow .45s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 38px 64px -30px rgba(20,22,30,.5); border-color: var(--line-l); }
.card h4 { font-family: "Fraunces", serif; font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--on-light-mut); font-size: .96rem; }
.card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold-deep); }
.card .ic svg { width: 23px; height: 23px; }

/* ---------- privacy / promise band ---------- */
.band { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.band::before { content:""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 50% -10%, rgba(231,205,133,.14), transparent 60%); }
.band .eyebrow { color: var(--gold); }
.band h2 { font-size: clamp(1.9rem,4vw,3rem); }
.band p { color: var(--on-dark-mut); }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-top: 1px solid var(--line-l); }
.faq-item:last-child { border-bottom: 1px solid var(--line-l); }
.faq-q {
  width: 100%; text-align: left; display: flex; gap: 20px; align-items: flex-start; justify-content: space-between;
  padding: 24px 4px; font-family: "Fraunces", serif; font-size: clamp(1.05rem,1.8vw,1.3rem); font-weight: 600; letter-spacing: -.02em;
  transition: color .25s var(--ease);
}
.faq-q:hover { color: var(--gold-deep); }
.faq-ic { flex: none; width: 26px; height: 26px; position: relative; margin-top: 4px; }
.faq-ic::before, .faq-ic::after { content:""; position: absolute; background: var(--gold-deep); border-radius: 2px; transition: transform .4s var(--ease-spring), opacity .3s; }
.faq-ic::before { top: 12px; left: 4px; width: 18px; height: 2px; }
.faq-ic::after { top: 4px; left: 12px; width: 2px; height: 18px; }
.faq-item.open .faq-ic::after { transform: scaleY(0); opacity: 0; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 4px 26px; color: var(--on-light-mut); font-size: 1rem; }
.faq-a p + p { padding-top: 0; margin-top: -8px; }
.faq-a a { color: var(--scripts); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--on-dark); padding-block: clamp(56px,8vw,96px) 40px; position: relative; isolation: isolate; }
.footer::before { content:""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 100% at 100% 0%, rgba(30,111,178,.10), transparent 60%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .mark { color: var(--on-dark); font-size: 1.25rem; margin-bottom: 16px; }
.footer .about { color: var(--on-dark-mut); font-size: .95rem; max-width: 34ch; }
.footer h5 { font-family: "Spline Sans Mono", monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); margin-bottom: 16px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer ul a { color: var(--on-dark-mut); font-size: .94rem; transition: color .25s var(--ease), transform .25s var(--ease); display: inline-block; }
.footer ul a:hover { color: var(--on-dark); transform: translateX(3px); }
.footer-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line-d-soft); color: var(--on-dark-mut); font-size: .84rem; }
.footer-base .legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.stagger.in > *:nth-child(2){ transition-delay: .08s; }
.stagger.in > *:nth-child(3){ transition-delay: .16s; }
.stagger.in > *:nth-child(4){ transition-delay: .24s; }
.stagger.in > *:nth-child(5){ transition-delay: .32s; }

/* hero load-in (no JS dependency) */
.hero [data-in] { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; }
.hero [data-in="1"]{ animation-delay: .05s; }
.hero [data-in="2"]{ animation-delay: .18s; }
.hero [data-in="3"]{ animation-delay: .32s; }
.hero [data-in="4"]{ animation-delay: .46s; }
.hero [data-in="5"]{ animation-delay: .60s; }
.hero [data-in="6"]{ animation-delay: .76s; }
@keyframes rise { to { opacity: 1; transform: none; } }

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

/* ---------- sub-hero (product / legal pages) ---------- */
.subhero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; isolation: isolate; padding-top: 130px; }
.subhero::before { content:""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 18% 0%, color-mix(in srgb, var(--app, var(--gold)) 22%, transparent), transparent 60%); }
.subhero .breadcrumb { font-family: "Spline Sans Mono", monospace; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-mut); display: flex; gap: 10px; align-items: center; }
.subhero .breadcrumb a:hover { color: var(--gold); }
.subhero h1 { font-size: clamp(2.6rem,6vw,4.6rem); margin-top: 22px; }
.subhero .one { color: var(--on-dark-mut); max-width: 60ch; margin-top: 18px; font-size: 1.12rem; }
.subhero-head { display: flex; align-items: center; gap: 26px; }
.subhero .app-icon { box-shadow: 0 26px 50px -22px color-mix(in srgb, var(--app) 60%, #000); }

/* ---------- product page bits ---------- */
.subhero-inner { padding-block: clamp(20px,4vw,40px) clamp(56px,8vw,96px); }
.subhero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.subhero .tagrow { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--on-dark-mut); font-family: "Spline Sans Mono", monospace; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.subhero .tagrow span { display: inline-flex; align-items: center; gap: 8px; }
.subhero .tagrow span::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--app, var(--gold)); }
.btn-app { background: linear-gradient(180deg, color-mix(in srgb, var(--app) 86%, white), var(--app)); color: #fff; box-shadow: 0 18px 38px -18px color-mix(in srgb, var(--app) 70%, #000); }
.btn-app:hover { transform: translateY(-2px); box-shadow: 0 24px 46px -18px color-mix(in srgb, var(--app) 80%, #000); }

.overview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items: start; }
.overview .lede { font-size: clamp(1.2rem,2vw,1.5rem); line-height: 1.5; color: var(--on-light); font-family: "Fraunces", serif; font-weight: 500; letter-spacing: -.02em; }
.overview .body p { color: var(--on-light-mut); margin-bottom: 16px; }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--app, var(--gold)) 12%, transparent); color: color-mix(in srgb, var(--app, var(--gold)) 75%, black); font-size: .8rem; font-weight: 600; }

.faq-cta { text-align: center; margin-top: 48px; }
.legal-strip { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: center; }
.legal-strip a { padding: 12px 22px; border-radius: var(--r-pill); border: 1px solid var(--line-l); font-weight: 600; font-size: .94rem; transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease); }
.legal-strip a:hover { transform: translateY(-2px); border-color: var(--on-light); }

/* ---------- legal / prose ---------- */
.prose { max-width: 760px; margin-inline: auto; }
.prose .meta { font-family: "Spline Sans Mono", monospace; font-size: .8rem; letter-spacing: .08em; color: var(--on-light-mut); text-transform: uppercase; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line-l); }
.prose h2 { font-size: clamp(1.3rem,2.4vw,1.7rem); margin: 44px 0 14px; letter-spacing: -.02em; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose p { color: #3a382f; margin-bottom: 16px; line-height: 1.75; }
.prose ul { margin: 0 0 18px; padding-left: 22px; color: #3a382f; }
.prose li { margin-bottom: 8px; line-height: 1.7; }
.prose a { color: var(--scripts); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.prose strong { color: var(--on-light); }
.toc { background: var(--ivory-2); border: 1px solid var(--line-l); border-radius: var(--r-md); padding: 26px 30px; margin: 8px 0 44px; }
.toc h4 { font-family: "Spline Sans Mono", monospace; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; font-weight: 500; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 36px; }
.toc li { margin-bottom: 7px; font-size: .92rem; }
.toc a { color: var(--on-light); text-decoration: none; }
.toc a:hover { color: var(--gold-deep); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .app-row { grid-template-columns: 1fr; gap: 28px; }
  /* keep copy above the logo when stacked (matches the non-flip rows) */
  .app-row.flip .app-media { order: 2; }
  .grid-3 { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(82vw,340px); flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; padding: 80px 26px; background: rgba(12,13,17,.96); backdrop-filter: blur(18px); border-left: 1px solid var(--line-d); transform: translateX(105%); transition: transform .5s var(--ease); }
  .nav.open .nav-links { transform: none; }
  .nav-links a { font-size: 1.1rem; padding: 12px 16px; }
  .nav-links .nav-cta { text-align: center; margin-left: 0; margin-top: 8px; }
  .nav-toggle { display: inline-flex; z-index: 1; }
  .subhero-head { flex-direction: column; align-items: flex-start; gap: 18px; }
}
