/* ==========================================================================
   FRC UnBaked — styles.css
   Design system: "whatever the AI picked first"
   Colors: purple → indigo → pink gradient (industry standard for AI startups)
   ========================================================================== */

:root {
  --bg: #07070c;
  --bg-2: #0d0d16;
  --text: #ececf4;
  --muted: #9d9db8;
  --faint: #6b6b88;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --purple: #a855f7;
  --indigo: #6366f1;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --green: #34d399;
  --red: #f87171;
  --amber: #fbbf24;
  --grad: linear-gradient(135deg, #a855f7 0%, #6366f1 45%, #ec4899 100%);
  --grad-text: linear-gradient(90deg, #c084fc 0%, #818cf8 40%, #f472b6 80%);
  --radius: 20px;
  --radius-sm: 12px;
  --glow: 0 0 0 1px rgba(168, 85, 247, 0.35), 0 10px 40px -10px rgba(168, 85, 247, 0.7);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { 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.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
sup { font-size: 0.6em; color: var(--faint); }
code { font-family: var(--mono); font-size: 0.9em; background: rgba(255,255,255,.06); padding: .1em .4em; border-radius: 6px; }
::selection { background: rgba(168, 85, 247, 0.45); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--purple); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--mono); }
.fineprint { font-size: 0.75rem; color: var(--faint); margin-top: 0.75rem; }
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- ✨ Background effects ✨ ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; animation: float 18s ease-in-out infinite; }
.b1 { width: 520px; height: 520px; background: #7c3aed; top: -160px; left: -120px; }
.b2 { width: 460px; height: 460px; background: #db2777; top: 10%; right: -160px; animation-delay: -6s; opacity: .32; }
.b3 { width: 420px; height: 420px; background: #0891b2; bottom: -180px; left: 30%; animation-delay: -12s; opacity: .25; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.08); }
  66% { transform: translate(-40px, 70px) scale(0.95); }
}

/* ---------- Announcement bar ---------- */
.announce {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 48px; font-size: .875rem;
  background: linear-gradient(90deg, rgba(168,85,247,.18), rgba(99,102,241,.18), rgba(236,72,153,.18));
  border-bottom: 1px solid var(--border);
}
.announce-link { font-weight: 600; color: #d8b4fe; }
.announce-link:hover { color: #fff; }
.announce-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: 0; font-size: 1.25rem; cursor: pointer; color: var(--muted); }

/* ---------- Pills & buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid var(--border); color: var(--text);
  white-space: nowrap;
}
.pill-tiny { font-size: .625rem; padding: 1px 7px; }
.pill-grad { background: var(--grad); border: 0; color: #fff; }
.pill-green { background: rgba(52,211,153,.15); border-color: rgba(52,211,153,.4); color: #6ee7b7; }
.pill-red { background: rgba(248,113,113,.15); border-color: rgba(248,113,113,.5); color: #fca5a5; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow); background-size: 150% 150%; }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(236,72,153,.5), 0 14px 50px -8px rgba(236,72,153,.75); background-position: 100% 50%; }
.btn-ghost { background: rgba(255,255,255,.05); border-color: var(--border-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.btn-danger { background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.5); color: #fca5a5; }
.btn-danger:hover { background: rgba(248,113,113,.22); }
.btn-link { background: none; color: var(--faint); padding-inline: 8px; }
.btn-link:hover { color: var(--muted); transform: none; text-decoration: underline; }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.04);
  cursor: pointer; font-size: 1rem; transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.1); }

/* ---------- Glass cards w/ spotlight hover (the "magic card") ---------- */
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 24px;
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -200%), rgba(168,85,247,.16), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before { opacity: 1; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,7,12,.6); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; white-space: nowrap; flex: none; }
@media (max-width: 1120px) { .nav .logo .pill { display: none; } }
.logo-mark { font-size: 1.4rem; filter: drop-shadow(0 0 12px rgba(236,72,153,.6)); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: .925rem; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

/* ---------- Reveal on scroll (on literally everything) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 64px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px;
  padding: 5px 14px 5px 6px; border-radius: 999px; font-size: .875rem; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  transition: border-color .2s, color .2s;
}
.hero-badge:hover { border-color: rgba(168,85,247,.6); color: var(--text); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.hero-sub { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--text); font-weight: 600; margin-top: 18px; }
.rotator { display: inline-block; color: var(--cyan); transition: opacity .3s, transform .3s, filter .3s; }
.rotator.out { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
.hero-desc { color: var(--muted); font-size: 1.05rem; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .85rem; }

.hero-visual { position: relative; perspective: 1200px; }
.mockup { padding: 0; overflow: hidden; transform: rotateY(-12deg) rotateX(6deg); box-shadow: 0 40px 120px -30px rgba(168,85,247,.55); transition: transform .6s ease; }
.hero-visual:hover .mockup { transform: rotateY(-4deg) rotateX(2deg); }
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.03); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.mockup-bar i:nth-child(2) { background: #fbbf24; }
.mockup-bar i:nth-child(3) { background: #34d399; }
.mockup-bar span { margin-left: 10px; font-size: .7rem; color: var(--faint); font-family: var(--mono); }
.mockup-body { display: grid; grid-template-columns: 56px 1fr; min-height: 300px; }
.mockup-side { border-right: 1px solid var(--border); padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.mockup-side b { height: 30px; border-radius: 8px; background: rgba(255,255,255,.06); }
.mockup-side b:first-child { background: var(--grad); }
.mockup-main { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.mockup-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mockup-kpis div { padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.mockup-kpis small { display: block; font-size: .65rem; color: var(--faint); }
.mockup-kpis strong { font-size: 1.15rem; }
.mockup-chart { flex: 1; display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--border); min-height: 160px; }
.mockup-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--grad); opacity: .85; animation: grow 1.4s cubic-bezier(.2,.7,.2,1) both; }
.mockup-chart span:nth-child(odd) { animation-delay: .15s; }
@keyframes grow { from { height: 4%; } }
.float-chip {
  position: absolute; padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(20,20,32,.85); border: 1px solid var(--border-strong); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); animation: bob 5s ease-in-out infinite;
}
.c1 { top: -18px; right: 8%; }
.c2 { bottom: 18%; left: -28px; animation-delay: -1.6s; }
.c3 { bottom: -16px; right: 14%; animation-delay: -3.2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Logo marquee ---------- */
.logos { padding-top: 24px; padding-bottom: 24px; }
.logos-title { text-align: center; color: var(--faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 30s linear infinite; padding: 12px 0; }
.marquee-track span { color: var(--muted); font-weight: 700; font-size: 1.1rem; white-space: nowrap; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-top: 96px; padding-bottom: 32px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: #d8b4fe;
  background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.35);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 28px 16px; }
.stat-num { display: block; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ---------- Bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  text-align: left; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column; align-items: flex-start;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(168,85,247,.45); background: var(--card-hover); }
.feature.wide { grid-column: span 2; }
.feature h3 { font-size: 1.1rem; margin-top: 14px; }
.feature p { color: var(--muted); font-size: .925rem; margin: 0; }
.feature-icon {
  display: grid; place-items: center; width: 46px; height: 46px; font-size: 1.4rem; border-radius: 12px;
  background: linear-gradient(135deg, rgba(168,85,247,.25), rgba(236,72,153,.2)); border: 1px solid rgba(168,85,247,.35);
}
.feature-tag { position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--grad); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-num { font-family: var(--mono); font-size: .85rem; color: var(--purple); font-weight: 700; }
.step h3 { margin-top: 10px; font-size: 1.3rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials { columns: 3 280px; column-gap: 16px; }
.quote { break-inside: avoid; margin: 0 0 16px; }
.stars { color: var(--amber); letter-spacing: 2px; font-size: .9rem; }
.quote blockquote { margin: 10px 0 18px; font-size: 1.02rem; }
.quote figcaption { display: flex; gap: 12px; align-items: center; }
.quote figcaption small { display: block; color: var(--faint); font-size: .8rem; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--grad); font-weight: 700; font-size: .85rem; }
.avatar.sm { width: 34px; height: 34px; }

/* ---------- Pricing ---------- */
.billing-toggle { display: flex; width: max-content; margin: 0 auto 32px; padding: 4px; gap: 4px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.billing-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.billing-toggle button.active { background: rgba(255,255,255,.1); color: var(--text); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px 28px; }
.plan.popular { border-color: rgba(168,85,247,.6); box-shadow: var(--glow); background: linear-gradient(180deg, rgba(168,85,247,.12), rgba(255,255,255,.03)); }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 999px; background: var(--grad); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.plan h3 { font-size: 1.3rem; }
.plan-desc { color: var(--muted); font-size: .9rem; min-height: 3em; }
.plan-price { margin: 8px 0 20px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; }
.plan-price .per { color: var(--muted); font-size: .9rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; display: grid; gap: 10px; align-content: start; }
.plan-features li { padding-left: 28px; position: relative; color: var(--muted); }
.plan-features li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; background: rgba(52,211,153,.15); color: var(--green); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary { padding: 20px 24px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--purple); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }
.truth { color: #6ee7b7; }
.truth a { text-decoration: underline; }

/* ---------- CTA ---------- */
.cta-box { text-align: center; padding: 64px 32px; background: radial-gradient(ellipse at top, rgba(168,85,247,.25), transparent 60%), var(--card); border-color: rgba(168,85,247,.35); }
.cta-box h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.cta-box > p { color: var(--muted); font-size: 1.1rem; }
.waitlist { display: flex; gap: 10px; max-width: 480px; margin: 24px auto 0; }
.waitlist .input { flex: 1; }

/* ---------- Footer ---------- */
.footer { margin-top: 120px; border-top: 1px solid var(--border); padding: 64px 0 32px; background: rgba(0,0,0,.25); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 32px; }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 14px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a:not(.logo) { color: var(--muted); font-size: .925rem; display: inline-flex; align-items: center; gap: 6px; }
.footer-grid a:not(.logo):hover { color: var(--text); }
.footer-brand p { max-width: 300px; margin-top: 12px; }
.socials { display: flex; gap: 8px; }
.compliance { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 24px; }
.compliance span { font-size: .78rem; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--faint); }
.footer-bottom .honest a { text-decoration: underline; }

/* ---------- App pages ---------- */
.page { padding-top: 56px; }
.page-head { text-align: center; margin-bottom: 32px; }
.page-head.left { text-align: left; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; }
.page-head p { color: var(--muted); font-size: 1.05rem; }
.form-card { padding: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide, .field.full { grid-column: 1 / -1; }
.field fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.label, .field legend { font-size: .875rem; font-weight: 600; color: var(--text); padding: 0; margin-bottom: 6px; }
.req { color: var(--pink); }
.opt { color: var(--faint); font-weight: 400; }
.hint { font-size: .78rem; color: var(--faint); }
.input {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong); color: var(--text);
  font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: rgba(255,255,255,.28); }
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(168,85,247,.2); background: rgba(255,255,255,.06); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
select.input option { background: #14141f; color: var(--text); }
textarea.input { resize: vertical; min-height: 96px; }
input[type="color"].input { padding: 4px; height: 46px; cursor: pointer; }
input[type="date"].input, input[type="time"].input { color-scheme: dark; }
.signature { font-family: "Brush Script MT", "Segoe Script", "Snell Roundhand", cursive; font-size: 1.4rem; }

.choice-group { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(255,255,255,.03);
  font-size: .9rem; transition: border-color .2s, background .2s;
}
.choice:hover { border-color: rgba(255,255,255,.3); }
.choice input { accent-color: var(--purple); margin: 0; }
.choice:has(input:checked) { border-color: var(--purple); background: rgba(168,85,247,.14); }
.choice:has(input:focus-visible) { outline: 2px solid var(--purple); outline-offset: 2px; }
.choice-group.stack { flex-direction: column; }
.choice-group.stack .choice { width: 100%; }
.choice-group.scale .choice { flex: 1; justify-content: center; min-width: 44px; padding-inline: 6px; }

.range-wrap { display: flex; align-items: center; gap: 14px; }
.range-wrap input[type="range"] { flex: 1; accent-color: var(--purple); height: 6px; }
.range-val { min-width: 64px; text-align: center; font-weight: 700; font-size: .85rem; padding: 5px 10px; border-radius: 10px; background: rgba(168,85,247,.15); border: 1px solid rgba(168,85,247,.35); font-variant-numeric: tabular-nums; }

.counter { font-size: .78rem; color: var(--faint); display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.counter.ok { color: var(--green); }

.dropzone {
  display: grid; place-items: center; gap: 6px; padding: 32px 20px; text-align: center; cursor: pointer;
  border: 2px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted);
  background: rgba(255,255,255,.02); transition: border-color .2s, background .2s; font: inherit;
}
.dropzone:hover { border-color: var(--purple); background: rgba(168,85,247,.06); }
.dropzone strong { color: var(--text); }
.dropzone-icon { font-size: 2rem; }

.tos-box { max-height: 220px; overflow-y: auto; padding: 18px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(0,0,0,.25); font-size: .85rem; color: var(--muted); }
.tos-box h4 { color: var(--text); margin: 14px 0 6px; font-size: .9rem; }
.tos-box h4:first-child { margin-top: 0; }
.tos-box .tos-end { color: #6ee7b7; border-top: 1px dashed var(--border-strong); padding-top: 12px; margin-top: 14px; }
.tos-hint { font-size: .78rem; color: var(--amber); }
.tos-hint.ok { color: var(--green); }

.field.error .input, .field.error .choice, .field.error .tos-box { border-color: var(--red); }
.err { color: var(--red); font-size: .8rem; font-weight: 500; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- Wizard ---------- */
.wizard-progress { margin-bottom: 28px; }
.wizard-progress-top { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.progress-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--grad); border-radius: inherit; transition: width .5s cubic-bezier(.2,.7,.2,1); box-shadow: 0 0 16px rgba(236,72,153,.6); }
.wizard-step h2 { font-size: 1.6rem; font-weight: 800; }
.wizard-step > p { color: var(--muted); margin-bottom: 24px; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.wizard-nav .btn-link { margin-right: auto; }

.success { text-align: center; padding: 48px 32px; }
.success-icon { font-size: 4rem; animation: pop .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop { from { transform: scale(0); } }
.success h2 { font-size: 2rem; font-weight: 800; }
.success p { color: var(--muted); }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 24px 0 8px; }
.truth-note { max-width: 560px; margin: 24px auto 0; padding: 14px 18px; border-radius: 12px; background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.25); color: #a7f3d0; font-size: .82rem; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.dash-head h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin: 0 0 4px; }
.dash-head p { margin: 0; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi-label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: .78rem; color: var(--faint); }
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.span-2 { grid-column: span 2; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { font-size: 1.05rem; margin: 0; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--green); font-weight: 600; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
#perfChart { width: 100%; height: 220px; }
.chart-x { display: flex; justify-content: space-between; color: var(--faint); font-size: .75rem; margin-top: 8px; }
.insight-card { display: flex; flex-direction: column; }
.insight { font-size: 1.1rem; font-weight: 500; flex: 1; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(168,85,247,.12), rgba(236,72,153,.08)); border: 1px solid rgba(168,85,247,.25); transition: opacity .25s; }
.insight-card .btn { align-self: flex-start; margin-top: 14px; }
.skeleton-list { display: grid; gap: 10px; margin-bottom: 12px; }
.skeleton { height: 44px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.04) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton.short { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.leaderboard li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.03); font-size: .92rem; }
.leaderboard li.you { border: 1px dashed rgba(168,85,247,.6); background: rgba(168,85,247,.08); }
.quick { display: grid; gap: 8px; }
.quick-btn { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255,255,255,.03); font-weight: 500; transition: background .2s, border-color .2s, transform .2s; }
.quick-btn:hover { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.4); transform: translateX(4px); }

/* ---------- Scouting ---------- */
.scout-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mini-stat { padding: 16px 18px; }
.mini-stat small { display: block; color: var(--faint); font-size: .75rem; }
.mini-stat strong { font-size: 1.4rem; }
.form-section-title { grid-column: 1 / -1; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--purple); font-weight: 700; margin: 10px 0 -6px; padding-top: 14px; border-top: 1px solid var(--border); }
.form-section-title:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* ---------- Team / danger ---------- */
.danger-zone { margin-top: 20px; border-color: rgba(248,113,113,.35); }
.danger-zone h2 { font-size: 1.1rem; color: #fca5a5; }
.danger-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.danger-row p { margin: 0; }

/* ---------- Admin ---------- */
.warn-banner { padding: 14px 18px; border-radius: 14px; margin-bottom: 28px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.45); color: #fde68a; font-size: .92rem; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; margin: 0 -8px 12px; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; }
table.data th { text-align: left; font-weight: 600; color: var(--faint); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 12px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data tr:hover td { background: rgba(255,255,255,.03); }
.sql-card { margin-top: 16px; display: grid; gap: 12px; }
.sql-card .btn { justify-self: start; }

/* ---------- Privacy ---------- */
.prose p { color: var(--muted); font-size: 1.02rem; }
.truth-box { margin-top: 32px; border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.06); }
.truth-box h2 { font-size: 1.3rem; color: #6ee7b7; }
.truth-box ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.truth-box li { color: var(--text); }

/* ---------- 404 ---------- */
.not-found { padding-top: 96px; }
.nf-code { font-size: clamp(6rem, 18vw, 11rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 80; max-width: 420px; padding: 20px;
  background: rgba(16,16,26,.92); box-shadow: 0 20px 60px -15px rgba(0,0,0,.8);
  animation: slideUp .5s cubic-bezier(.2,.7,.2,1) both;
}
.cookie p { font-size: .875rem; color: var(--muted); }
.cookie p strong { color: var(--text); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } }

/* ---------- Debug pill ---------- */
.debug-pill {
  position: fixed; right: 92px; bottom: 30px; z-index: 70; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: .7rem; font-weight: 700;
  background: #facc15; color: #111; border: 0; box-shadow: 0 6px 20px -6px rgba(250,204,21,.6);
}
.debug-panel {
  position: fixed; right: 92px; bottom: 66px; z-index: 70; width: min(380px, calc(100vw - 40px));
  background: #0b0b0b; border: 1px solid #facc15; border-radius: 12px; padding: 14px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.9);
}
.debug-panel pre { margin: 0; font-family: var(--mono); font-size: .72rem; color: #a3e635; white-space: pre-wrap; }

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 75; width: 58px; height: 58px; border-radius: 50%;
  border: 0; cursor: pointer; font-size: 1.5rem; background: var(--grad); box-shadow: var(--glow);
  transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.08) rotate(-6deg); }
.chat-badge { position: absolute; top: -2px; right: -2px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.chat-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 76; width: min(380px, calc(100vw - 40px)); height: min(540px, calc(100vh - 130px));
  padding: 0; display: flex; flex-direction: column; overflow: hidden;
  background: rgba(14,14,24,.95); box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), var(--glow);
  animation: slideUp .3s cubic-bezier(.2,.7,.2,1) both;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(168,85,247,.15), rgba(236,72,153,.1)); }
.chat-head > div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.chat-head small { color: var(--muted); font-size: .75rem; display: inline-flex; align-items: center; gap: 6px; }
.chat-head .live-dot { width: 6px; height: 6px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
.msg.bot { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--grad); border-bottom-right-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chip { border: 1px solid rgba(168,85,247,.45); background: rgba(168,85,247,.1); color: #e9d5ff; padding: 5px 11px; border-radius: 999px; font-size: .78rem; cursor: pointer; }
.chip:hover { background: rgba(168,85,247,.2); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chat-input .input { padding: 9px 12px; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); animation: fade .2s both; }
.modal { width: min(520px, 100%); padding: 32px; background: rgba(18,18,30,.97); box-shadow: 0 40px 100px -20px rgba(0,0,0,.9), var(--glow); animation: popIn .3s cubic-bezier(.2,1.2,.4,1) both; }
.modal h2 { font-size: 1.4rem; padding-right: 32px; }
.modal p { color: var(--muted); }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.modal .toggle-list { display: grid; gap: 8px; margin: 8px 0 12px; }
.modal .toggle-list label { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--border); font-size: .9rem; }
.modal .toggle-list input { accent-color: var(--purple); width: 18px; height: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes popIn { from { transform: scale(.92) translateY(10px); opacity: 0; } }

/* ---------- Loading overlay ---------- */
.loading-overlay { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; background: rgba(5,5,10,.75); backdrop-filter: blur(10px); }
.loading-box { width: min(420px, calc(100vw - 40px)); text-align: center; padding: 36px 28px; background: rgba(18,18,30,.95); }
.loading-box p { font-weight: 600; min-height: 3em; display: grid; place-items: center; margin: 18px 0 14px; }
.loading-box small { display: block; margin-top: 8px; color: var(--faint); font-variant-numeric: tabular-nums; }
.spinner { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; border: 4px solid rgba(255,255,255,.1); border-top-color: var(--purple); border-right-color: var(--pink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toasts ---------- */
.toasts { position: fixed; top: 84px; right: 20px; z-index: 120; display: grid; gap: 10px; width: min(360px, calc(100vw - 40px)); pointer-events: none; }
.toast {
  pointer-events: auto; padding: 14px 16px; border-radius: 14px; display: grid; gap: 2px;
  background: rgba(20,20,32,.96); border: 1px solid var(--border-strong); box-shadow: 0 20px 40px -12px rgba(0,0,0,.8);
  border-left: 3px solid var(--purple); animation: toastIn .35s cubic-bezier(.2,1.2,.4,1) both;
}
.toast strong { font-size: .92rem; }
.toast span { font-size: .8rem; color: var(--muted); }
.toast.out { animation: toastOut .35s ease forwards; }
@keyframes toastIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes toastOut { to { transform: translateX(30px); opacity: 0; } }

/* ---------- Confetti ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 130; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--drift, 0), 110vh) rotate(var(--rot, 720deg)); } }

/* ---------- Adaptive AI Validation™ (progressive rule checklist) ---------- */
section[id] { scroll-margin-top: 90px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.rules { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: .78rem; line-height: 1.4; }
.rules:empty { display: none; }
.rules li { display: flex; gap: 6px; align-items: baseline; border-radius: 6px; }
.rules li::before { flex: none; font-weight: 800; }
.rules li.ok { color: #6ee7b7; }
.rules li.ok::before { content: "✓"; }
.rules li.bad { color: #fca5a5; }
.rules li.bad::before { content: "✗"; }
.rules li.new { animation: ruleIn .7s cubic-bezier(.2,1.2,.4,1); }
@keyframes ruleIn { 0% { transform: translateX(-10px); opacity: 0; background: rgba(248,113,113,.3); } 100% { transform: none; opacity: 1; background: transparent; } }
.field.valid .input { border-color: rgba(52,211,153,.55); }
.field.check .choice { width: 100%; }
.input.invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(248,113,113,.15); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.modal-list { padding-left: 20px; color: var(--muted); display: grid; gap: 6px; margin: 0 0 1em; }
.modal .err { margin: 8px 0 0; }
.modal .input { margin-top: 4px; }

/* ---------- UnCAPTCHA™ ---------- */
.captcha { width: 100%; max-width: 340px; padding: 12px; border-radius: 14px; border: 1px solid var(--border-strong); background: rgba(0,0,0,.3); }
.captcha-head { display: flex; flex-direction: column; padding: 10px 12px; margin-bottom: 10px; border-radius: 10px; background: var(--indigo); color: #fff; line-height: 1.3; }
.captcha-head small { opacity: .85; font-size: .75rem; }
.captcha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.captcha-tile { aspect-ratio: 1; font-size: 1.8rem; border-radius: 8px; border: 2px solid transparent; background: rgba(255,255,255,.06); cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.captcha-tile:hover { background: rgba(255,255,255,.1); }
.captcha-tile[aria-pressed="true"] { border-color: var(--cyan); background: rgba(34,211,238,.15); transform: scale(.92); }
.captcha-grid.done { opacity: .45; pointer-events: none; }
.captcha-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.captcha-status { margin: 8px 0 0; min-height: 1em; }

/* UnCAPTCHA™ Enterprise (onboarding Step 9 of 8) */
.captcha.mega { max-width: 480px; }
.mega-done { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; font-size: .82rem; color: #6ee7b7; }
.mega-done:empty { display: none; }
.mega-stage { display: grid; gap: 12px; }
.mega-q { margin: 0; font-weight: 600; font-size: .95rem; }
.mega-word {
  display: flex; justify-content: center; gap: 6px; padding: 18px 12px; border-radius: 10px; user-select: none; -webkit-user-select: none;
  font: 800 2rem/1 var(--mono);
  background: repeating-linear-gradient(-35deg, rgba(255,255,255,.06) 0 5px, transparent 5px 11px), rgba(0,0,0,.4);
}
.mega-word span { display: inline-block; text-shadow: 2px 2px 0 rgba(0,0,0,.7), -1px 0 0 rgba(255,255,255,.25); }
.mega-row { display: flex; gap: 8px; }
.mega-row .input { flex: 1; min-width: 0; }
.mega-track { position: relative; height: 14px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.mega-fill { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: var(--grad); }
.mega-zone { position: absolute; top: 0; bottom: 0; background: rgba(52,211,153,.55); box-shadow: inset 0 0 0 1px #34d399; }
.mega-hold { justify-self: start; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; font-variant-numeric: tabular-nums; }
.mega-align { position: relative; height: 56px; margin: 0 28px; border-bottom: 2px dashed var(--border-strong); }
.mega-ghost, .mega-piece { position: absolute; top: 50%; width: 56px; height: 24px; border-radius: 7px; transform: translate(-50%, -50%); }
.mega-ghost { border: 2px dashed var(--green); background: rgba(52,211,153,.08); }
.mega-piece { background: linear-gradient(#ef4444, #b91c1c); box-shadow: 0 4px 14px rgba(239,68,68,.45); }
.mega-range { width: 100%; accent-color: var(--purple); }
.mega-read { margin: 0; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.mega-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.mega-final { margin: 0; font-weight: 700; color: #6ee7b7; }
.mega-status { margin: 10px 0 0; min-height: 1em; }

/* ---------- Compare & team ---------- */
.compare { max-width: 760px; margin: 0 auto; padding: 8px; overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 13px 18px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .us { background: rgba(168,85,247,.09); }
.compare thead .us { color: #e9d5ff; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.member { text-align: center; padding: 32px 24px; }
.member .avatar { width: 72px; height: 72px; font-size: 2rem; margin: 0 auto 14px; }
.member h3 { margin-bottom: 4px; }
.member small { display: block; color: #c084fc; font-weight: 600; margin-bottom: 10px; }
.member p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Footer pages (pages.js) ---------- */
.container.wide { max-width: 1400px; }
.head-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.sub-head { font-size: 1.5rem; margin: 48px 0 18px; }
.empty { text-align: center; color: var(--muted); padding: 48px 24px; }

/* Blog index */
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 28px; }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; transition: transform .2s, border-color .2s; }
.post-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.post-card.featured { display: grid; grid-template-columns: 1.1fr 1fr; }
.post-card.featured h3 { font-size: 1.6rem; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.post-card-body h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.post-card-body p { font-size: .92rem; margin: 0 0 12px; }
.post-cover { display: grid; place-items: center; aspect-ratio: 16 / 9; font-size: 3.5rem; }
.post-card.featured .post-cover { aspect-ratio: auto; min-height: 260px; font-size: 5rem; }
.post-cover.hero { border-radius: var(--radius); font-size: 6rem; margin: 24px 0; aspect-ratio: 21 / 9; }
.cv1 { background: linear-gradient(135deg, #a855f7, #6366f1 55%, #ec4899); }
.cv2 { background: linear-gradient(135deg, #f472b6, #fb923c); }
.cv3 { background: linear-gradient(135deg, #22d3ee, #6366f1); }
.cv4 { background: linear-gradient(135deg, #f87171, #7c2d12); }
.cv5 { background: linear-gradient(135deg, #34d399, #0e7490); }
.cv6 { background: linear-gradient(135deg, #818cf8, #1e1b4b); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-meta { display: flex; align-items: center; gap: 8px; margin-top: auto; color: var(--faint); font-size: .8rem; }
.avatar.xs { width: 24px; height: 24px; font-size: .75rem; }
.blog-sub { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; margin-top: 48px; padding: 32px; }
.blog-sub h2 { font-size: 1.35rem; }
.blog-sub p { margin: 0; }
.blog-sub .waitlist { margin: 0; max-width: none; }
.blog-sub .err { margin: 8px 0 0; }

/* Blog post */
.back-link { display: inline-block; color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.back-link:hover { color: var(--text); }
.post-title { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.035em; margin-top: 14px; }
.post-byline { display: flex; align-items: center; gap: 12px; }
.post-byline small { display: block; color: var(--faint); }
.toc { padding: 18px 22px; margin-bottom: 28px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }
.post-body h2 { font-size: 1.5rem; margin-top: 1.6em; }
.post-body ul, .post-body ol { color: var(--muted); padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1.2em; }
.post-body strong { color: var(--text); }
.post-body blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--purple); font-size: 1.2rem; font-style: italic; color: var(--text); }
.callout { padding: 14px 18px; border-radius: 14px; margin-bottom: 1.2em; background: rgba(168,85,247,.1); border: 1px solid rgba(168,85,247,.4); }
.fake-img { margin: 1.5em 0; }
.fake-img-box { display: grid; place-items: center; aspect-ratio: 16 / 7; border-radius: var(--radius-sm); border: 2px dashed var(--border-strong); background: rgba(255,255,255,.03); font-size: 3rem; opacity: .6; }
.fake-img figcaption { color: var(--faint); font-size: .85rem; margin-top: 8px; text-align: center; }
.post-cta { margin-top: 1.5em; }
.post-actions { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; margin: 32px 0; border-block: 1px solid var(--border); }
.post-actions > div { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.comments, .related { margin-top: 40px; }
.related .blog-grid { margin-top: 0; }

/* Changelog */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 20px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--purple), var(--pink), transparent); }
.release::after { content: ""; position: absolute; left: -28px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--bg); }
.release-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.release-head code { font-size: 1rem; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.release-head time { color: var(--faint); font-size: .85rem; }
.changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.changes li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); }
.changes strong { color: var(--text); }
.tag { flex: none; min-width: 88px; text-align: center; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; }
.tag-new { background: rgba(168,85,247,.18); color: #d8b4fe; }
.tag-improved { background: rgba(99,102,241,.2); color: #a5b4fc; }
.tag-fixed { background: rgba(52,211,153,.15); color: #6ee7b7; }
.tag-removed { background: rgba(248,113,113,.15); color: #fca5a5; }
.tag-security { background: rgba(251,191,36,.15); color: #fde68a; }
.tag-planned { background: rgba(34,211,238,.15); color: #67e8f9; }
.tag-idea { background: rgba(251,191,36,.15); color: #fde68a; }
.release-head .when { color: var(--faint); font-size: .85rem; }
.release.upcoming { border-style: dashed; background: rgba(168,85,247,.05); }
.release.upcoming::after { background: var(--bg); border: 2px dashed var(--purple); }
.release.idea::after { background: var(--amber); }
.cl-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: -8px 0 32px; }
.cl-stat { padding: 14px; display: grid; gap: 2px; text-align: center; }
.cl-stat-icon { font-size: 1.3rem; }
.cl-stat strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.cl-stat small { color: var(--faint); font-size: .74rem; line-height: 1.3; }

/* Roadmap */
.roadmap { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.rm-col { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius); background: rgba(255,255,255,.02); border: 1px solid var(--border); }
.rm-col.never { border-style: dashed; opacity: .8; }
.rm-col-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding: 2px 4px 4px; }
.rm-col-head .count { font-size: .75rem; color: var(--faint); background: rgba(255,255,255,.06); padding: 1px 8px; border-radius: 999px; }
.rm-item { padding: 16px; }
.rm-item h3 { font-size: 1rem; margin-bottom: 4px; }
.rm-item p { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.rm-progress { display: grid; gap: 4px; margin-bottom: 12px; }
.rm-progress small { color: var(--faint); font-size: .75rem; }
.rm-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.vote { border: 1px solid var(--border-strong); background: rgba(255,255,255,.04); border-radius: 10px; padding: 4px 10px; font-size: .82rem; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.vote:hover { border-color: var(--purple); background: rgba(168,85,247,.12); }
.vote.closed { opacity: .5; cursor: not-allowed; }

/* Careers */
.values { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk h3 { font-size: 1.05rem; margin: 12px 0 4px; }
.perk p { margin: 0; font-size: .92rem; }
.jobs { display: grid; gap: 12px; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.job h3 { font-size: 1.1rem; margin-bottom: 4px; }
.job p { font-size: .92rem; margin-bottom: 10px; }
.job-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.job .btn { flex: none; }
.apply-card { margin-top: 48px; scroll-margin-top: 96px; }
.apply-card > h2 { font-size: 1.5rem; }

@media (max-width: 900px) {
  .blog-grid, .perks { grid-template-columns: 1fr 1fr; }
  .cl-stats { grid-template-columns: repeat(3, 1fr); }
  .post-card.featured, .blog-sub { grid-template-columns: 1fr; }
  .post-card.featured .post-cover { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .blog-grid, .perks { grid-template-columns: 1fr; }
  .cl-stats { grid-template-columns: 1fr 1fr; }
  .post-cover.hero { font-size: 4rem; aspect-ratio: 16 / 9; }
  .job { flex-direction: column; align-items: stretch; }
  .blog-sub { padding: 22px; }
  .tag { min-width: 0; }
  .changes li { flex-direction: column; gap: 4px; }
}

/* ---------- Responsive ("mobile-first") ---------- */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .hero-visual { max-width: 560px; margin: 24px auto 0; width: 100%; }
  .stats, .kpis { grid-template-columns: repeat(2, 1fr); }
  .steps, .pricing, .team-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 2px;
    padding: 12px 24px 20px; background: rgba(7,7,12,.97); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-grid; }
  .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .bento, .form-grid, .scout-stats { grid-template-columns: 1fr; }
  .feature.wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .waitlist { flex-direction: column; }
  .form-card { padding: 22px; }
  .wizard-nav { flex-wrap: wrap; }
  .wizard-nav .btn-link { order: 3; width: 100%; margin: 0; }
  .nav-actions .btn-primary { display: none; }
  .debug-pill { right: auto; left: 12px; bottom: 12px; }
  .debug-panel { right: auto; left: 12px; bottom: 48px; }
  .cookie { left: 12px; right: 12px; bottom: 84px; max-width: none; }
  .float-chip.c2 { left: 0; }
  .announce { padding-inline: 16px 40px; }
}

/* Respecting reduced motion is the one best practice we kept. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; gap: 16px 32px; }
}
