/* ============================================================
   Jayde — marketing site
   Design tokens mirror the real app (src/index.css):
   bone background · Spectral serif display · Geist sans · jade
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Surfaces — warm bone */
  --bone:        oklch(0.917 0.015 89);
  --bone-card:   oklch(0.952 0.010 89);
  --bone-sunk:   oklch(0.892 0.012 89);
  --ink:         oklch(0.133 0.009 95);
  --ink-soft:    oklch(0.270 0.010 95);
  --muted:       oklch(0.490 0.016 95);
  --border:      oklch(0.867 0.014 89);
  --border-soft: oklch(0.890 0.012 89);

  /* Jade */
  --jade:        oklch(0.408 0.082 162);
  --jade-700:    oklch(0.468 0.077 162);
  --jade-800:    oklch(0.408 0.082 162);
  --jade-900:    oklch(0.320 0.065 162);
  --jade-950:    oklch(0.225 0.050 162);
  --jade-tint:   oklch(0.878 0.022 162);
  --jade-tint-2: oklch(0.930 0.018 162);

  /* Accents */
  --celadon:     oklch(0.800 0.027 190);
  --vermillion:  oklch(0.487 0.190 30);
  --saffron:     oklch(0.745 0.130 80);

  /* Gem dot palette (matches in-app stone colours) */
  --g-sapphire:  #2f6fd0;
  --g-ruby:      #c5413a;
  --g-emerald:   #1f9d57;
  --g-paraiba:   #1fb6c9;
  --g-tsavorite: #3fae5a;
  --g-spinel:    #d9534f;
  --g-tanzanite: #6a4fb3;
  --g-padpara:   #e07a3f;
  --g-topaz:     #e0a92e;
  --g-opal:      #b06fb3;

  --radius:      0.625rem;
  --radius-lg:   1.05rem;
  --maxw:        1120px;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans:  'Geist', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  font-feature-settings: 'cv01','ss01';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--jade-tint); color: var(--jade-950); }

/* ── Layout helpers ── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 7rem 0; }
.center { text-align: center; }

/* Editorial display headings — Spectral, lowercase */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.06;
  color: var(--ink);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--jade-700);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jade); }

.lead {
  color: var(--muted);
  font-size: 1.05rem; line-height: 1.7;
  max-width: 46ch;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 500;
  padding: 0.72rem 1.35rem; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .15s ease;
}
.btn-primary { background: var(--jade); color: var(--bone); }
.btn-primary:hover { background: var(--jade-900); transform: translateY(-1px); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--jade); }
.btn-outline { border-color: var(--border); color: var(--ink-soft); background: var(--bone-card); }
.btn-outline:hover { border-color: var(--jade); color: var(--jade); transform: translateY(-1px); }
.btn-bone { background: var(--bone); color: var(--jade-950); font-weight: 600; }
.btn-bone:hover { background: #fff; transform: translateY(-1px); }
.btn-outline-bone { border-color: rgba(241,234,217,0.28); color: rgba(241,234,217,0.85); }
.btn-outline-bone:hover { border-color: rgba(241,234,217,0.6); color: #fff; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklch, var(--bone) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.wordmark {
  font-family: var(--serif);
  font-weight: 500; font-size: 1.18rem;
  letter-spacing: 0.34em; text-transform: uppercase;
  padding-left: 0.1em; color: var(--ink);
}
.nav-right { display: flex; align-items: center; gap: 0.4rem; }
.nav-link { font-size: 0.9rem; color: var(--muted); padding: 0.5rem 0.8rem; transition: color .18s; }
.nav-link:hover { color: var(--jade); }

/* ── Hero ── */
.hero { position: relative; padding: 5.5rem 0 4rem; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 50% -8%, color-mix(in oklch, var(--jade-tint) 55%, transparent), transparent 70%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center;
}
.hero-h1 { font-size: clamp(2.6rem, 5.2vw, 4.3rem); margin: 1.3rem 0 1.3rem; }
.hero-h1 .ital { font-style: italic; color: var(--jade); }
.hero-ctas { display: flex; align-items: center; gap: 0.7rem; margin: 2rem 0 1.4rem; flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 1.4rem;
  font-size: 0.8rem; color: var(--muted);
}
.hero-trust span { display: flex; align-items: center; gap: 0.45rem; }
.hero-trust .tick { color: var(--jade); }

/* Browser frame */
.frame {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--bone-card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset,
              0 30px 60px -25px rgba(34,40,30,0.35),
              0 12px 24px -18px rgba(34,40,30,0.25);
}
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 0.7rem 0.95rem; background: var(--bone-sunk);
  border-bottom: 1px solid var(--border);
}
.frame-bar .d { width: 11px; height: 11px; border-radius: 50%; }
.frame-bar .d.r { background: #e0726a; }
.frame-bar .d.y { background: var(--saffron); }
.frame-bar .d.g { background: var(--jade-700); }
.frame-url {
  margin-left: 0.6rem; font-size: 0.72rem; color: var(--muted);
  font-family: var(--sans);
}
.frame img { width: 100%; height: auto; display: block; }
.hero-frame { transform: perspective(1600px) rotateY(-3deg) rotateX(1.5deg); }

/* ── Value props ── */
.values-head { max-width: 38rem; margin: 0 auto 3rem; }
.values-head .display { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0.9rem 0; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.vcard {
  background: var(--bone-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.9rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.vcard:hover { transform: translateY(-3px); border-color: var(--jade-tint); box-shadow: 0 18px 40px -28px rgba(34,40,30,0.4); }
.vicon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--jade-tint-2); color: var(--jade);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.vicon svg { width: 20px; height: 20px; }
.vcard h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
.vcard p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }

/* ── Value props (alternating) ── */
.vp-alt { background: var(--bone-sunk); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.vp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.vp-alt .vp-copy { order: 2; }
.vp-alt .vp-visual { order: 1; }
.vp-title { font-size: clamp(2rem, 4vw, 3rem); margin: 1.1rem 0 1.3rem; }
.vp-feat { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.7rem; }
.vp-feat li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; color: var(--ink-soft); }
.vp-feat .gd { width: 9px; height: 9px; border-radius: 50%; flex: none; }

/* Proof panels (no screenshots) */
.proof {
  background: var(--bone-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.2rem;
  box-shadow: 0 24px 50px -34px rgba(34,40,30,0.4);
}
.proof-metric { text-align: left; margin-bottom: 1.6rem; }
.proof-num { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 7vw, 4.4rem); line-height: 1; color: var(--jade); letter-spacing: -0.02em; }
.proof-cap { font-size: 0.9rem; color: var(--muted); }
.proof-compare { display: grid; gap: 0.6rem; }
.pc-row { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); }
.pc-before { background: var(--bone-sunk); }
.pc-before .pc-val { text-decoration: line-through; text-decoration-color: var(--vermillion); text-decoration-thickness: 1px; }
.pc-after { background: var(--jade-tint-2); border-color: var(--jade-tint); }
.pc-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pc-after .pc-label { color: var(--jade-700); }
.pc-val { font-size: 0.92rem; color: var(--ink-soft); }
.proof-foot { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; color: var(--jade); font-size: 1.05rem; }

.proof-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.2rem; }
.ptile { background: var(--bone-sunk); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.ptile-l { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.ptile-v { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; color: var(--ink); line-height: 1; display: flex; align-items: baseline; gap: 0.5rem; }
.ptile-up { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; color: var(--jade); }
.proof-chart { background: var(--bone-sunk); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.proof-chart-l { display: block; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.bars { display: flex; align-items: flex-end; gap: 0.6rem; height: 96px; }
.bar { flex: 1; background: oklch(0.68 0.052 162); border-radius: 4px 4px 0 0; position: relative; min-height: 8px; }
.bar.hi { background: var(--jade); }
.bar i { position: absolute; bottom: -1.35rem; left: 0; right: 0; text-align: center; font-style: normal; font-size: 0.58rem; color: var(--muted); white-space: nowrap; }
.proof-chart { padding-bottom: 2.3rem; }

/* ── Problem ── */
.prob-head { max-width: 44rem; margin: 0 auto 3rem; }
.prob-head .display { font-size: clamp(2rem, 3.6vw, 2.9rem); margin: 0.9rem 0; }
.prob-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--border);
  gap: 1px;
}
.pcard { background: var(--bone-card); padding: 1.9rem 1.7rem; transition: background .18s ease; }
.pcard:hover { background: var(--bone); }
.picon { width: 34px; height: 34px; border-radius: 9px; background: var(--jade-tint-2); color: var(--jade); display: grid; place-items: center; margin-bottom: 1rem; }
.picon svg { width: 17px; height: 17px; }
.pcard h4 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.4rem; }
.pcard p { font-size: 0.86rem; color: var(--muted); line-height: 1.6; }

/* ── Founder ── */
.founder-box {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--bone-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 3.2rem 2.6rem;
}
.founder-box .display { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0.9rem 0 1.6rem; }
.founder-box p { color: var(--muted); font-size: 1.05rem; line-height: 1.85; max-width: 52ch; margin: 0 auto 1rem; }
.founder-box p:last-of-type { font-family: var(--serif); font-style: italic; color: var(--jade); font-size: 1.2rem; }

/* ── CTA ── */
.cta {
  background: var(--jade-950); color: var(--bone);
  text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--celadon) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.cta .display { font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--bone); position: relative; }
.cta p { color: rgba(241,234,217,0.78); max-width: 40ch; margin: 1rem auto 2.2rem; position: relative; }
.cta-btns { display: flex; justify-content: center; gap: 0.7rem; position: relative; flex-wrap: wrap; }

/* ── Footer ── */
footer { background: var(--ink); color: rgba(241,234,217,0.6); }
.foot-inner { display: flex; align-items: center; justify-content: space-between; padding: 2rem 0; flex-wrap: wrap; gap: 1.2rem; }
.foot-inner .wordmark { color: var(--bone); }
.foot-links { display: flex; gap: 1.6rem; }
.foot-links a { font-size: 0.85rem; color: rgba(241,234,217,0.6); transition: color .18s; }
.foot-links a:hover { color: var(--bone); }
.foot-copy { font-size: 0.78rem; color: rgba(241,234,217,0.4); }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Legal pages (Privacy / Terms) ── */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.legal-head { padding: 4.5rem 0 2.4rem; border-bottom: 1px solid var(--border); margin-bottom: 2.6rem; }
.legal-head .eyebrow { margin-bottom: 1rem; }
.legal-head .display { font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin-bottom: 0.7rem; }
.legal-head .updated { font-size: 0.85rem; color: var(--muted); }
.legal { padding-bottom: 5.5rem; color: var(--ink-soft); font-size: 0.97rem; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--ink); margin: 2.6rem 0 0.8rem; letter-spacing: -0.01em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.02rem; font-weight: 600; color: var(--ink); margin: 1.6rem 0 0.5rem; }
.legal p { margin-bottom: 1rem; line-height: 1.75; }
.legal ul { margin: 0 0 1.1rem 1.25rem; }
.legal li { margin-bottom: 0.5rem; line-height: 1.7; }
.legal a { color: var(--jade); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--jade-900); }
.legal .note {
  background: var(--bone-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1.4rem;
  font-size: 0.88rem; color: var(--muted);
}
.legal address { font-style: normal; }

/* ── Responsive ── */
@media (max-width: 940px) {
  .section { padding: 5rem 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-frame { transform: none; }
  .cards-3 { grid-template-columns: 1fr; }
  .prob-grid { grid-template-columns: 1fr; }
  .vp-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .vp-copy, .vp-alt .vp-copy { order: 1; }
  .vp-visual, .vp-alt .vp-visual { order: 2; }
}
@media (max-width: 620px) {
  .nav-link.hide-sm { display: none; }
  .hero-h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .wordmark { letter-spacing: 0.24em; font-size: 1.05rem; }
}
