/* JFD One – promo page. Palette is the brand sheet's: bronze grounds, house golds, cream type. */
:root {
  --ground: #0E0803;
  --ground-2: #160E05;
  --bronze-dark: #2A1907;
  --bronze: #664514;
  --bronze-warm: #A57A2C;
  --gold-light: #F1D889;
  --gold: #D9AE55;
  --gold-deep: #A87A2C;
  --cream: #FFF7E8;
  --text: #EBDDBF;
  --muted: #B9A67F;
  --line: rgba(241, 216, 137, .16);
  --line-strong: rgba(241, 216, 137, .32);
  --serif: "Newsreader", "Sitka Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* the brand's bronze light, kept low: top-right glow over a near-black bronze */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 70% at 88% 0%, rgba(165, 122, 44, .34), rgba(165, 122, 44, 0) 62%),
    radial-gradient(70% 60% at 0% 100%, rgba(102, 69, 20, .28), rgba(102, 69, 20, 0) 60%),
    linear-gradient(180deg, #160E05 0%, #0E0803 60%);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

/* ── the live backdrop: a field of gold points in perspective ───────────── */
#field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.6s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, transparent 18%, #000 62%);
          mask-image: linear-gradient(180deg, transparent 18%, #000 62%);
}
.field-ready #field { opacity: 1; }
.drag-hint { display: none; }
@media (pointer: fine) and (min-width: 901px) { .drag-hint { display: inline; } }
.is-grabbing, .is-grabbing * { cursor: grabbing !important; user-select: none; }

/* ── the 3D stage ───────────────────────────────────────────────────────── */
#stage {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none;   /* in front of the page: the phone passes over the words, never under them */
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.gl-ready #stage { opacity: 1; }
main, .footer { position: relative; z-index: 1; }

/* rides just above the phone (placed by app.js), under the page content */
.demo-note {
  position: fixed; left: 0; top: 0; z-index: 2; margin: 0;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  color: var(--muted); opacity: 0; transition: opacity .5s;
  pointer-events: none; will-change: transform;
}
.dock { display: none; }
.gl-ready .demo-note { opacity: .75; }
.gl-ready.phone-hidden .demo-note { opacity: 0; }

/* ── type ───────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--cream); letter-spacing: -.015em; }
h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: 1; letter-spacing: -.025em; }
h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.06; }
h3 { font-size: clamp(26px, 2.9vw, 40px); line-height: 1.1; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--text); max-width: 34em; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.dim { color: var(--muted); }

/* ── risk bar and nav ───────────────────────────────────────────────────── */
.riskbar {
  position: relative; z-index: 3;
  padding: 9px var(--pad);
  font-size: 12.5px; line-height: 1.4; text-align: center;
  color: #D8C7A3; background: rgba(8, 5, 2, .7);
  border-bottom: 1px solid var(--line);
}
.riskbar strong { color: var(--cream); font-weight: 600; }

.nav {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--pad);
  background: rgba(14, 8, 3, .62);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(14, 8, 3, .82); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 22.400%; box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.brand span { white-space: nowrap; font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--cream); letter-spacing: -.01em; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--text);
  opacity: .82; transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--gold-light); }
.nav-cta { display: flex; gap: 10px; }
.lang-pick { display: flex; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; }
.lang-pick a { padding: 0 10px; height: 32px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-decoration: none; color: var(--text); transition: background .2s, color .2s; }
.lang-pick a + a { border-left: 1px solid var(--line); }
.lang-pick a:hover { color: var(--gold-light); }
.lang-pick a[aria-current="page"] { color: #2B1D05; background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep)); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 3px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, background .2s;
}
.btn-gold {
  color: #2B1D05;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  box-shadow: 0 8px 24px rgba(168, 122, 44, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(168, 122, 44, .4), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { color: var(--cream); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); }

/* ── reveal on scroll ───────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }
.reveal:nth-child(5) { transition-delay: .28s; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - 104px);
  display: flex; align-items: center;
  padding: 48px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.hero-copy > * + * { margin-top: 26px; }
.hero-copy h1 { margin-top: 20px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px !important; }
.store {
  display: inline-flex; align-items: center; gap: 14px;
  min-width: 200px; height: 62px; padding: 0 22px 0 18px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: linear-gradient(180deg, rgba(241, 216, 137, .09), rgba(241, 216, 137, .02));
  color: var(--cream); text-decoration: none; line-height: 1.15;
  transition: border-color .2s, transform .2s var(--ease), background .2s;
}
.store-logo { width: 28px; height: 28px; flex: none; }
.store[data-store="ios"] .store-logo { margin-top: -3px; }
.store-text { display: flex; flex-direction: column; }
.store small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.store b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--cream); letter-spacing: -.01em; }
.store:hover { border-color: var(--gold); transform: translateY(-2px); background: linear-gradient(180deg, rgba(241, 216, 137, .16), rgba(241, 216, 137, .04)); }

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13.5px; color: var(--muted); }
.hero-meta li { position: relative; padding-left: 16px; }
.hero-meta li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; margin-left: -13px;
  border: 1px solid var(--line-strong); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--gold); animation: cue 2.200s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ── at a glance ────────────────────────────────────────────────────────── */
.glance { min-height: 100vh; padding: 14vh 0 10vh; display: flex; align-items: center; }
.glance-body { width: min(56%, 680px); }
.section-head > * + * { margin-top: 18px; }
.glance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 44px; margin-top: 7vh; }
.glance-gap { display: none; }
.point { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.point .num { display: block; font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: .12em; }
.point h3 { font-size: clamp(22px, 2vw, 27px); margin-top: 8px; }
.point p { margin-top: 10px; font-size: 16px; color: var(--text); }

/* ── chapters and steps ─────────────────────────────────────────────────── */
.chapter { padding: 8vh 0 0; }
.chapter-intro, .step { width: min(46%, 540px); }
.chapter--flip .chapter-intro, .chapter--flip .step { margin-left: auto; }
.chapter-intro { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.chapter-intro > * + * { margin-top: 22px; }
.step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; }
.step > * + * { margin-top: 18px; }
.step p { font-size: clamp(17px, 1.3vw, 19px); max-width: 30em; }
.count { font-family: var(--serif); font-size: 17px; color: var(--gold); letter-spacing: .08em; }
.count i { font-style: normal; color: var(--muted); }
.count::after { content: ""; display: block; width: 44px; height: 2px; margin-top: 16px; border-radius: 2px; background: linear-gradient(90deg, var(--gold-light), var(--gold-deep)); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px !important; }
.tags li { padding: 7px 13px; font-size: 13px; color: var(--text); border: 1px solid var(--line); border-radius: 999px; background: rgba(241, 216, 137, .04); }

/* still screens: only when WebGL is unavailable */
.shot { display: none; width: min(300px, 78%); margin-top: 30px !important; border-radius: 30px; border: 6px solid #1c1208; outline: 1px solid var(--gold-deep); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.no-webgl .shot { display: block; }

/* ── solid sections (the phone has left the stage) ──────────────────────── */
.solid { padding: clamp(84px, 13vh, 150px) 0; }
.security { margin-top: 10vh; background: linear-gradient(180deg, rgba(14, 8, 3, 0), rgba(14, 8, 3, .9) 16%); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card { padding: 34px 30px 38px; background: #120B04; transition: background .3s; }
.card:hover { background: #1A1107; }
.card svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.400; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 23px; margin-top: 20px; }
.card p { margin-top: 10px; font-size: 15.5px; color: var(--text); }
.langs { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
.lang-list { margin-top: 14px; font-family: var(--serif); font-size: clamp(19px, 1.8vw, 25px); line-height: 1.5; color: var(--cream); }
.lang-list .dim { font-family: var(--sans); font-size: 14px; }

.regulation { background: rgba(14, 8, 3, .9); }
.reg-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.reg-grid h2 + .lede { margin-top: 22px; }
.reg-grid .eyebrow + h2 { margin-top: 18px; }
.text-link { display: inline-block; margin-top: 28px; font-size: 15px; font-weight: 600; color: var(--gold-light); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color .2s; }
.text-link::after { content: " →"; }
.text-link:hover { border-color: var(--gold); }
.facts {
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: linear-gradient(35deg, rgba(42, 25, 7, .9), rgba(102, 69, 20, .55) 60%, rgba(165, 122, 44, .4));
}
.facts > div { padding: 26px 30px; }
.facts > div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); }
.facts dd { margin-top: 6px; font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; color: var(--cream); }

.faq { background: linear-gradient(180deg, rgba(14, 8, 3, .9) 70%, rgba(14, 8, 3, 0)); padding-bottom: 20vh; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.200fr); gap: clamp(32px, 6vw, 96px); }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; padding: 24px 44px 24px 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(20px, 1.800vw, 25px); color: var(--cream);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 1.500px solid var(--gold); border-bottom: 1.500px solid var(--gold);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(5px) rotate(-135deg); }
.faq-list details p { padding: 0 44px 26px 0; max-width: 38em; }

/* ── get the app ────────────────────────────────────────────────────────── */
.get { min-height: 100vh; display: flex; align-items: center; padding: 10vh 0; }
.get-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.get-copy > * + * { margin-top: 24px; }
.wordmark { width: 170px; height: auto; }
.start { margin-top: 44px !important; border-top: 1px solid var(--line); max-width: 34em; }
.start li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.start b { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.footer { padding: 56px 0 64px; background: #0A0602; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer nav a { font-size: 14px; color: var(--text); text-decoration: none; opacity: .85; }
.footer nav a:hover { color: var(--gold-light); opacity: 1; }
.legal { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal p { font-size: 12.5px; line-height: 1.65; color: #A8966F; max-width: 92ch; }
.legal p + p { margin-top: 12px; }
.legal strong { color: var(--text); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 3px; }

/* ── narrow screens: the phone sits above, the words on a panel below ───── */
@media (max-width: 900px) {
  body { font-size: 16px; }
  #stage, .demo-note { z-index: 0; }   /* narrow: the panels slide over the phone */
  .nav-links { display: none; }
  .nav { gap: 12px; }
  .lang-pick { margin-left: auto; }
  .nav-cta { margin-left: 0; }
  .nav .btn-gold { padding: 0 14px; }
  .nav .btn-ghost { display: none; }

  .hero { align-items: flex-start; min-height: 0; padding: 32px 0 6svh; }
  .dock { display: block; height: 64svh; margin-top: 36px; }
  .no-webgl .dock { display: none; }
  .hero-meta { display: none; }
  .store small { font-size: 10px; letter-spacing: .04em; white-space: nowrap; }
  .hero-grid, .get-grid, .reg-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy > * + * { margin-top: 20px; }
  .stores { margin-top: 26px !important; }
  .store { min-width: 0; flex: 1 1 150px; height: 58px; padding: 0 14px; gap: 11px; }
  .store-logo { width: 24px; height: 24px; }
  .store b { font-size: 18px; white-space: nowrap; }
  .store { padding: 0 12px; gap: 9px; }
  .scroll-cue { display: none; }

  .panel, .point {
    padding: 24px 22px 26px;
    background: rgba(18, 11, 4, .88);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid var(--line); border-radius: 10px;
  }
  .glance { min-height: 0; padding: 8vh 0 4vh; display: block; }
  .glance-body { width: 100%; }
  .glance-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 28px; }

  .chapter { padding-top: 0; }
  .chapter-intro, .step { width: 100%; min-height: 0; margin-top: 64svh; justify-content: flex-start; }
  .chapter-intro { margin-top: 58svh; }
  .chapter .wrap { padding-bottom: 6svh; }
  .tags { margin-top: 18px !important; }
  .no-webgl .chapter-intro, .no-webgl .step { margin-top: 28px; }
  .no-webgl .glance-gap { display: none; }

  .security { margin-top: 30svh; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 26px 22px 28px; }

  .get { align-items: flex-start; min-height: 0; padding: 6vh 0 8svh; }
  .demo-note { font-size: 9.5px; }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { gap: 16px; }
  .nav-links { gap: 18px; }
  .nav .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

@media (max-width: 430px) {
  .nav { padding-left: 14px; padding-right: 14px; gap: 8px; }
  .nav .brand span { display: none; }
  .nav .btn-gold { padding: 0 11px; font-size: 13px; }
  .lang-pick { flex: none; }
  .lang-pick a { padding: 0 8px; }
}
