/* Public marketing site — separate from the app's stylesheet so the two can
   evolve independently. */

:root {
  --bg: #0a0f1e;
  --bg-2: #0e1528;
  --card: #131c33;
  --border: #24304e;
  --text: #e9eef8;
  --muted: #93a1bf;
  --brand: #5b8cff;
  --brand-2: #9a6bff;
  --pass: #2fbf71;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5rem; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ---- nav ---- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  /* Anchor for the mobile dropdown panel. */
  --nav-h: 66px;
  background: rgba(10, 15, 30, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { position: relative; display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 750; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .mark { flex: none; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 550; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.3rem; border-radius: 10px; font-weight: 650; font-size: .95rem;
  border: 1px solid var(--border); color: var(--text); background: var(--card);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--brand); }
.btn.primary { background: linear-gradient(135deg, var(--brand), #4a7ce8); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn.sm { padding: .5rem 1rem; font-size: .88rem; }

/* ---- hero ---- */
.hero { padding: 84px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -220px 0 auto 50%; transform: translateX(-50%);
  width: 1000px; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(91,140,255,.20), transparent 72%);
}
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem;
  padding: .35rem .85rem; border-radius: 99px; font-size: .8rem; font-weight: 650;
  background: rgba(91,140,255,.12); border: 1px solid rgba(91,140,255,.32); color: #b9ccff;
}
.hero p.lead { font-size: 1.16rem; color: var(--muted); max-width: 620px; margin: 1.1rem auto 2rem; }
.cta-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.reassure { margin-top: 1.1rem; font-size: .86rem; color: var(--muted); }

/* ---- verdict demo ---- */
.demo {
  margin: 56px auto 0; max-width: 680px; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.demo-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #2b3550; }
.demo-body { padding: 1.3rem 1.4rem; }

/* Slides share one grid cell so the card sizes to the tallest and never jumps. */
.demo-slides { display: grid; }
.demo-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .45s ease; }
.demo-slide.on { opacity: 1; visibility: visible; }
.model-tag { font-size: .82rem; margin-left: auto; }
.demo-dots { display: flex; gap: .4rem; justify-content: center; padding: 0 0 1rem; }
.demo-dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%;
  border: 0; background: #33406a; cursor: pointer; transition: background .25s, width .25s;
}
.demo-dots button.on { background: var(--brand); width: 20px; border-radius: 99px; }
@media (prefers-reduced-motion: reduce) { .demo-slide { transition: none; } }
.verdict-row { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; }
.pill { padding: .3rem .7rem; border-radius: 7px; font-weight: 800; font-size: .78rem; letter-spacing: .04em; }
.pill.fail { background: rgba(244,82,95,.16); color: #ff8b95; border: 1px solid rgba(244,82,95,.4); }
.finding-demo { border-left: 3px solid #f5a623; background: rgba(255,255,255,.028); border-radius: 0 9px 9px 0; padding: .8rem 1rem; margin-bottom: .7rem; font-size: .9rem; }
.finding-demo .r { font-weight: 700; font-size: .82rem; color: #ffce7a; }
.finding-demo q { display: block; font-style: italic; color: #c6d1e6; margin: .35rem 0; }
.finding-demo .fx { color: var(--pass); font-size: .84rem; }

/* ---- sections ---- */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 20px; }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* Fixed 2-up so the four model cards form a tidy 2x2 rather than orphaning one. */
.grid.models { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid.models { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card .ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.2rem; margin-bottom: 14px;
  background: rgba(91,140,255,.13); border: 1px solid rgba(91,140,255,.26);
}
.card p { margin: 0; color: var(--muted); font-size: .94rem; }

.step { display: flex; gap: 16px; }
.step .n {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 750; font-size: .92rem; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}

.rules { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rule {
  padding: .5rem 1rem; border-radius: 99px; font-size: .88rem;
  background: var(--card); border: 1px solid var(--border); color: var(--muted);
}
.rule.live {
  display: inline-block; padding: .15rem .6rem; margin-left: .4rem; vertical-align: middle;
  font-size: .66rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(47,191,113,.14); border-color: rgba(47,191,113,.4); color: #5fd598;
}

/* ---- pricing ---- */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); align-items: stretch; }
.plan {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: .6rem; position: relative;
}
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset, 0 18px 40px rgba(91,140,255,.13); }
.plan .tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .7rem; font-weight: 750;
  padding: .2rem .7rem; border-radius: 99px; letter-spacing: .04em;
}
.plan .name { font-weight: 700; font-size: 1.05rem; }
.plan .price { font-size: 2.1rem; font-weight: 750; line-height: 1.1; }
.plan .per { font-size: .82rem; color: var(--muted); }
.plan ul { list-style: none; margin: .6rem 0 0; padding: 0; font-size: .91rem; color: var(--muted); }
.plan li { padding: .3rem 0 .3rem 1.4rem; position: relative; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--pass); font-weight: 700; }
.plan li.no { opacity: .5; }
.plan li.no::before { content: '—'; color: var(--muted); }
.plan .btn { margin-top: auto; width: 100%; }

/* ---- faq ---- */
details {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 10px;
}
details summary { cursor: pointer; font-weight: 650; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { margin: .8rem 0 0; color: var(--muted); font-size: .94rem; }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: .89rem; }
.foot-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }

.cta-band { text-align: center; }
.cta-band .card { background: linear-gradient(135deg, rgba(91,140,255,.12), rgba(154,107,255,.1)); border-color: rgba(91,140,255,.3); padding: 46px 26px; }

/* ---- mobile nav ---- */
.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle:hover { border-color: var(--brand); }

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 8px 16px 18px;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .45);
    /* Collapsed rather than display:none so it can animate, and stays out of
       the tab order while closed. */
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden;
    transition: max-height .26s ease, opacity .2s ease, visibility .2s;
  }
  .nav-links a {
    padding: 13px 4px; font-size: 1rem; color: var(--text);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.btn { margin-top: 12px; padding: 13px; justify-content: center; }

  body.nav-open .nav-links {
    max-height: 78vh; overflow-y: auto; opacity: 1; visibility: visible;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  section { padding: 52px 0; }
  .hero { padding: 56px 0 44px; }
  h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .cta-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links, .nav-toggle span { transition: none; }
}
