/* ============================================================
   FinSociety marketing site — shared stylesheet
   BUILD FS-SITE-2026-09-30q
   Dark-first, light toggle (shares the fs_theme key with the app).
   ============================================================ */

/* ---------- Design tokens (desktop-app parity) ---------- */
:root {
  --bg: #0b0d12;
  --panel: #12151c;
  --card: #171a22;
  --card-hi: #1d222c;
  --border: #2a2f3a;
  --border-hi: #3a4152;
  --text: #f3f4f6;
  --muted: #9aa3b2;
  --primary: #3b82f6;
  --primary-deep: #1d4ed8;
  --primary-soft: rgba(59, 130, 246, .14);
  --teal: #2dd4bf;
  --gold: #d9a441;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-3: 0 24px 64px rgba(0, 0, 0, .55);
  --glow: 0 8px 28px rgba(59, 130, 246, .35);
  --nav-h: 64px;
}

html.light {
  --bg: #eef2f7;
  --panel: #ffffff;
  --card: #ffffff;
  --card-hi: #f6f8fb;
  --border: #d7dee8;
  --border-hi: #c3ccd9;
  --text: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, .10);
  --shadow-1: 0 1px 2px rgba(16, 24, 40, .08);
  --shadow-2: 0 10px 30px rgba(16, 24, 40, .10);
  --shadow-3: 0 24px 64px rgba(16, 24, 40, .14);
  --glow: 0 8px 28px rgba(37, 99, 235, .25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.5px; margin: 0 0 12px; }
p { margin: 0 0 14px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
section.block { padding: 84px 0; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}
.lead { color: var(--muted); font-size: 17px; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Announcement banner ---------- */
#announceBar {
  display: none;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 10px 18px;
  text-align: center;
}
#announceBar.show { display: block; }
#announceBar strong { margin-right: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 22px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 2px; margin-left: 6px; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 600;
  padding: 8px 13px; border-radius: 9px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  cursor: pointer; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .12s, border-color .15s;
}
.icon-btn:hover { transform: translateY(-1px); border-color: var(--border-hi); }
#navToggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--primary-deep), var(--primary)); color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 320px at 18% 12%, rgba(59, 130, 246, .16), transparent 70%),
    radial-gradient(520px 300px at 85% 20%, rgba(45, 212, 191, .10), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: 18px; margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* 3D app mockup */
.hero-visual { perspective: 1500px; position: relative; min-height: 420px; }
.app-window {
  background: var(--panel);
  border: 1px solid var(--border-hi);
  border-radius: 18px;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  transform: rotateX(7deg) rotateY(-11deg);
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
  will-change: transform;
}
.app-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--card);
}
.app-chrome .dot { width: 11px; height: 11px; border-radius: 50%; }
.app-chrome .t { margin-left: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.app-body { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.app-side { border-right: 1px solid var(--border); padding: 14px 10px; display: flex; flex-direction: column; gap: 6px; }
.app-side .snav { font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.app-side .snav.on { background: var(--primary-soft); color: var(--primary); }
.app-main { padding: 16px; }
.app-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.app-metric { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.app-metric .l { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.app-metric .v { font-size: 20px; font-weight: 800; }
.app-chart { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin-bottom: 12px; }
.app-bars { display: flex; flex-direction: column; gap: 8px; }
.app-bar-row { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); font-weight: 600; }
.app-bar-row .track { flex: 1; height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; }
.app-bar-row .fill { height: 100%; border-radius: 4px; }

.float-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px; font-weight: 800;
  box-shadow: var(--shadow-2);
  transform: translateZ(70px);
  animation: floaty 5s ease-in-out infinite;
  white-space: nowrap;
}
.chip-1 { top: 6%; right: 2%; color: var(--ok); animation-delay: 0s; }
.chip-2 { bottom: 22%; right: -2%; color: var(--gold); animation-delay: 1.6s; }
.chip-3 { bottom: 4%; left: 4%; color: var(--primary); animation-delay: 3.2s; }
@keyframes floaty { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 64px;
}
.stat {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  text-align: center; box-shadow: var(--shadow-1);
}
.stat .n { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat .d { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* ---------- Cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-1);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: var(--shadow-2); }
.card .ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card ul.tick { list-style: none; margin: 16px 0 0; padding: 0; }
.card ul.tick li { color: var(--muted); font-size: 14px; padding: 5px 0 5px 26px; position: relative; }
.card ul.tick li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 14px; height: 8px;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

/* Track cards */
.track-card { position: relative; overflow: hidden; }
.track-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
}
.track-card.cat::after { background: linear-gradient(90deg, var(--gold), var(--teal)); }
.track-tag {
  display: inline-block; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 5px 12px; border-radius: 20px;
  background: var(--primary-soft); color: var(--primary);
  margin-bottom: 14px;
}
.track-card.cat .track-tag { background: rgba(217, 164, 65, .14); color: var(--gold); }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; text-align: center; }
.price-card.pop { border-color: var(--primary); box-shadow: var(--glow); position: relative; }
.pop-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: #fff; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 5px 16px; border-radius: 20px; white-space: nowrap;
}
.price-card .pname { font-size: 17px; font-weight: 800; }
.price-card .amount { font-size: 40px; font-weight: 800; margin: 10px 0 2px; }
.price-card .per { color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.price-card ul.tick { text-align: left; margin-bottom: 22px; }
.price-card .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 26px; }

/* ---------- Community ---------- */
.comm-card { display: flex; flex-direction: column; gap: 12px; }
.comm-card .row { display: flex; align-items: center; gap: 14px; }
.comm-ico {
  width: 52px; height: 52px; border-radius: 15px; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff;
  font-weight: 800;
}
.comm-card h3 { margin: 0; font-size: 17px; }
.comm-card .sub { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px;
}
.faq summary { font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--primary); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }

/* ---------- Download ---------- */
.dl-box {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  box-shadow: var(--shadow-2);
}
.dl-meta { display: flex; gap: 26px; flex-wrap: wrap; margin: 18px 0 24px; }
.dl-meta .m .k { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.dl-meta .m .v { font-size: 15px; font-weight: 700; }
.dl-actions { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }
.checksum {
  margin-top: 20px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  font-size: 12.5px; color: var(--muted);
}
.checksum code { display: block; margin-top: 6px; font-size: 12px; color: var(--text); word-break: break-all; user-select: all; }

/* ---------- Get Access ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 34px 0; }
.step { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.step .n {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 800;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 12px;
}
.step h4 { margin: 0 0 6px; font-size: 15px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); }
.track-tabs { display: flex; gap: 10px; margin: 26px 0 18px; }
.track-tab {
  flex: 1; padding: 16px; border-radius: 14px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--border);
  color: var(--muted); font-weight: 800; font-size: 15px;
  transition: all .15s;
}
.track-tab.on { border-color: var(--primary); color: var(--text); background: var(--primary-soft); }
.form-frame {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-2);
}
.form-frame iframe { width: 100%; height: 900px; border: 0; display: block; background: #fff; }
.form-note { color: var(--muted); font-size: 13px; margin-top: 14px; text-align: center; }
.form-note a { color: var(--primary); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--panel);
  margin-top: 40px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px; padding: 52px 0 34px;
}
.foot-brand p { color: var(--muted); font-size: 13.5px; max-width: 300px; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status-dot .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); animation: pulse 2s infinite; }
.status-dot.ok .dot { background: var(--ok); animation: none; }
.status-dot.down .dot { background: var(--danger); animation: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.legal-fine { font-size: 11.5px; color: var(--muted); opacity: .8; }

/* ---------- Reveal on scroll ----------
   Hidden state is gated on html.js (added by the inline head script):
   with JS disabled — or if fs-site.js fails to load — content is never
   stuck at opacity 0. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; margin-top: 10px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dl-box { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section.block { padding: 60px 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  #navToggle { display: inline-flex; }
  .nav-links.mobile-open {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; background: var(--panel);
    border-bottom: 1px solid var(--border); padding: 10px 18px 16px;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .chip-2 { right: 0; }
  .hero { padding: 60px 0 50px; }
  .form-frame iframe { height: 1100px; }
}
@media (prefers-reduced-motion: reduce) {
  .float-chip { animation: none; }
  /* Must beat the html.js-gated hiding rules (same specificity, later source)
     so reduced-motion users get instantly-visible, never-shifted content. */
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 26px; margin: 38px 0 12px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal p strong, .legal li strong { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .updated { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.page-head { padding: 70px 0 10px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }

/* ---------- Changelog ---------- */
.clog { max-width: 760px; margin: 0 auto; }
.clog-entry {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 30px; margin-bottom: 18px;
}
.clog-entry .ver {
  display: inline-block; font-weight: 800; font-size: 15px;
  background: var(--primary-soft); color: var(--primary);
  padding: 4px 14px; border-radius: 20px; margin-bottom: 4px;
}
.clog-entry .date { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.clog-entry ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14.5px; }
.clog-entry li { margin-bottom: 6px; }
.clog-tag {
  display: inline-block; font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; padding: 3px 10px; border-radius: 12px; margin-left: 10px;
  background: rgba(217, 164, 65, .14); color: var(--gold); vertical-align: 2px;
}
.clog-tag.new { background: rgba(34, 197, 94, .12); color: var(--ok); }

/* ---------- Demo quiz ---------- */
.quiz-box {
  max-width: 720px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-2);
}
.quiz-prog { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.quiz-q { font-size: 18px; font-weight: 600; line-height: 1.6; margin-bottom: 20px; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  text-align: left; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; font-size: 15px; color: var(--text);
  cursor: pointer; transition: border-color .15s, transform .12s;
  font-family: inherit;
}
.quiz-opt:hover:not(:disabled) { border-color: var(--primary); transform: translateY(-1px); }
.quiz-opt:disabled { cursor: default; opacity: .85; }
.quiz-opt.right { border-color: var(--ok); background: rgba(34, 197, 94, .10); }
.quiz-opt.wrong { border-color: var(--danger); background: rgba(239, 68, 68, .08); }
.quiz-expl {
  display: none; margin-top: 18px; padding: 16px 18px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--border);
  font-size: 14px; color: var(--muted); line-height: 1.6;
}
.quiz-expl.show { display: block; }
.quiz-expl strong { color: var(--text); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 24px; }
.quiz-score { text-align: center; padding: 20px 0; }
.quiz-score .big { font-size: 52px; font-weight: 800; color: var(--primary); }
.quiz-note {
  max-width: 720px; margin: 22px auto 0; text-align: center;
  font-size: 13px; color: var(--muted);
}

/* ============================================================
   PREMIUM UPGRADE LAYER
   BUILD FS-SITE-2026-09-30e
   Aurora background, film grain, glassmorphism, 3D depth,
   premium type, micro-interactions. Append-only: every rule
   below refines the base stylesheet above.
   ============================================================ */

/* ---------- Typography: Sora display + Inter body ---------- */
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
h1, h2, h3, .brand, .btn, .stat .n, .price-card .amount {
  font-family: "Sora", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
h1, h2 { letter-spacing: -.03em; }
.block h2 { font-size: clamp(26px, 3.4vw, 38px); }
.lead { font-size: 18px; }

/* ---------- Aurora background + film grain ---------- */
body {
  background:
    radial-gradient(1100px 520px at 12% -4%, rgba(59, 130, 246, .14), transparent 60%),
    radial-gradient(900px 480px at 88% 6%, rgba(45, 212, 191, .10), transparent 60%),
    radial-gradient(820px 460px at 50% 108%, rgba(139, 92, 246, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}
html.light body::after { opacity: .025; }

/* ---------- Nav: deeper glass + scrolled state ---------- */
.nav {
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transition: box-shadow .25s, background .25s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
}
.brand img { box-shadow: 0 4px 14px rgba(59, 130, 246, .35); }

/* ---------- Buttons: shine sweep + layered glow ---------- */
.btn { position: relative; overflow: hidden; }
.btn-primary {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow: 0 10px 30px rgba(37, 99, 235, .45),
              inset 0 1px 0 rgba(255, 255, 255, .35),
              inset 0 -2px 6px rgba(0, 0, 0, .22);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 55%; left: -80%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .55s ease; pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(37, 99, 235, .55),
              inset 0 1px 0 rgba(255, 255, 255, .4),
              inset 0 -2px 6px rgba(0, 0, 0, .22);
}
.btn-primary:hover::after { left: 135%; }
.btn-ghost {
  background: color-mix(in srgb, var(--card) 62%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

/* ---------- Eyebrow: glowing pill ---------- */
.eyebrow {
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
  background: var(--primary-soft);
  padding: 7px 18px; border-radius: 999px; letter-spacing: 2.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 22px rgba(59, 130, 246, .18);
}

/* ---------- Hero: grid texture + aurora orbs ---------- */
.hero::before {
  background:
    radial-gradient(640px 340px at 16% 10%, rgba(59, 130, 246, .20), transparent 70%),
    radial-gradient(560px 320px at 86% 18%, rgba(45, 212, 191, .13), transparent 70%),
    linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px);
  background-size: auto, auto, 54px 54px, 54px 54px;
  -webkit-mask-image: radial-gradient(78% 68% at 50% 34%, #000 25%, transparent 100%);
  mask-image: radial-gradient(78% 68% at 50% 34%, #000 25%, transparent 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: .5; pointer-events: none; z-index: 0;
  animation: orbDrift 16s ease-in-out infinite;
}
.orb-a { width: 480px; height: 480px; left: -150px; top: -130px;
  background: radial-gradient(circle, rgba(59, 130, 246, .5), transparent 70%); }
.orb-b { width: 430px; height: 430px; right: -130px; top: 4%;
  background: radial-gradient(circle, rgba(45, 212, 191, .38), transparent 70%); animation-delay: -5s; }
.orb-c { width: 380px; height: 380px; left: 36%; bottom: -170px;
  background: radial-gradient(circle, rgba(139, 92, 246, .30), transparent 70%); animation-delay: -10s; }
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(44px, -32px) scale(1.08); }
}
html.light .orb { opacity: .32; }

/* ---------- Hero visual: depth stack + glow ---------- */
.hero-visual::before {
  content: ""; position: absolute; inset: 6% -8% -6% -8%; z-index: 0;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .30), rgba(45, 212, 191, .12), transparent 72%);
  filter: blur(46px); pointer-events: none;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 13% -2% 1% 7%; z-index: 0;
  border-radius: 22px;
  transform: rotateX(7deg) rotateY(-11deg) translateZ(-70px);
  background: linear-gradient(135deg, rgba(59, 130, 246, .28), rgba(45, 212, 191, .10));
  filter: blur(3px); opacity: .55; pointer-events: none;
}
.app-window {
  position: relative; z-index: 1;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, rgba(147, 197, 253, .6), rgba(255, 255, 255, .14) 38%, rgba(45, 212, 191, .45)) border-box;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .6), 0 0 70px rgba(59, 130, 246, .20),
              inset 0 1px 0 rgba(255, 255, 255, .09);
}
.app-chrome { background: color-mix(in srgb, var(--card) 70%, transparent); }
.app-metric {
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.app-bar-row .fill { position: relative; }
.app-bar-row .fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .5) 50%, transparent 58%);
  transform: translateX(-110%); animation: barShine 3.4s ease-in-out infinite; pointer-events: none;
}
@keyframes barShine { 55%, 100% { transform: translateX(110%); } }
.float-chip {
  background: color-mix(in srgb, var(--card) 68%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .10),
              0 0 26px rgba(59, 130, 246, .14);
}
html.light .float-chip { background: rgba(255, 255, 255, .82); }

/* ---------- Glass cards with gradient borders ---------- */
.card, .stat, .step, .faq details, .clog-entry, .quiz-box, .form-frame, .track-tab, .dl-box {
  border: 1px solid transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--panel) 90%, transparent),
                    color-mix(in srgb, var(--panel) 90%, transparent)) padding-box,
    linear-gradient(140deg, rgba(148, 163, 184, .38), rgba(148, 163, 184, .08) 32%, rgba(59, 130, 246, .30)) border-box;
  box-shadow: 0 22px 54px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.card { position: relative; }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 72px rgba(0, 0, 0, .52), 0 0 44px rgba(59, 130, 246, .14),
              inset 0 1px 0 rgba(255, 255, 255, .09);
  border-color: transparent;
}
.card .ico {
  background: linear-gradient(135deg, var(--primary-soft), rgba(45, 212, 191, .14));
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 0 8px 20px rgba(59, 130, 246, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.stat .n {
  background: linear-gradient(120deg, #93c5fd, #2dd4bf);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 14px rgba(59, 130, 246, .35));
}
.step .n {
  box-shadow: 0 8px 20px rgba(59, 130, 246, .25), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.track-tab.on {
  box-shadow: 0 0 0 1px var(--primary), 0 14px 34px rgba(37, 99, 235, .28),
              inset 0 1px 0 rgba(255, 255, 255, .08);
}
.faq details[open] { border-color: transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--panel) 92%, transparent),
                    color-mix(in srgb, var(--panel) 92%, transparent)) padding-box,
    linear-gradient(140deg, rgba(59, 130, 246, .55), rgba(148, 163, 184, .12) 45%, rgba(45, 212, 191, .35)) border-box;
}
.price-card.pop {
  background:
    linear-gradient(color-mix(in srgb, var(--panel) 90%, transparent),
                    color-mix(in srgb, var(--panel) 90%, transparent)) padding-box,
    linear-gradient(150deg, rgba(96, 165, 250, .7), rgba(45, 212, 191, .4), rgba(96, 165, 250, .25)) border-box;
  box-shadow: 0 26px 64px rgba(0, 0, 0, .5), 0 0 54px rgba(59, 130, 246, .22),
              inset 0 1px 0 rgba(255, 255, 255, .09);
}
.pop-badge { box-shadow: 0 10px 26px rgba(37, 99, 235, .5); }

/* ---------- Page heads: aurora wash (CSS-only) ---------- */
.page-head { position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 260px at 20% 0%, rgba(59, 130, 246, .16), transparent 70%),
    radial-gradient(480px 240px at 82% 10%, rgba(45, 212, 191, .11), transparent 70%);
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
}
.page-head .wrap { position: relative; z-index: 1; }

/* ---------- Footer: gradient hairline ---------- */
footer {
  border: 0; border-top: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(90deg, transparent, rgba(59, 130, 246, .45), rgba(45, 212, 191, .35), transparent) border-box;
}

/* ---------- Scrollbar / selection / focus ---------- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--border-hi), var(--primary-deep));
  border-radius: 8px; border: 2px solid var(--bg);
}
::selection { background: rgba(59, 130, 246, .42); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

/* ---------- Reveal: add a soft scale for depth (JS-gated, see above) ---------- */
html.js .reveal { transform: translateY(28px) scale(.985); }
html.js .reveal.in { transform: none; }

/* ---------- Reduced motion: silence the new layer ---------- */
@media (prefers-reduced-motion: reduce) {
  .orb, .app-bar-row .fill::after { animation: none; }
  .btn-primary::after { display: none; }
  .hero-visual::after { display: none; }
}

/* ---------- Light theme: keep the glow restrained ---------- */
html.light .app-window {
  box-shadow: 0 30px 70px rgba(16, 24, 40, .20), 0 0 54px rgba(37, 99, 235, .14),
              inset 0 1px 0 rgba(255, 255, 255, .6);
}
html.light .card, html.light .stat, html.light .step, html.light .faq details,
html.light .clog-entry, html.light .quiz-box, html.light .form-frame,
html.light .track-tab, html.light .dl-box {
  box-shadow: 0 18px 44px rgba(16, 24, 40, .10), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.comm-ico svg { display: block; width: 28px; height: 28px; }

/* ============================================================
   PROFESSIONAL RESTRAINT LAYER
   BUILD FS-SITE-2026-09-30e
   Research-backed (2026 SaaS): quieter ambient decoration,
   hairline cards, intentional accents only, bento features,
   download band. Overrides the 30b premium layer above.
   ============================================================ */

/* ---------- Calmer ambient: decoration supports, never shouts ---------- */
.orb { opacity: .26; filter: blur(120px); animation-duration: 26s; }
html.light .orb { opacity: .2; }
body {
  background:
    radial-gradient(900px 440px at 12% -4%, rgba(59, 130, 246, .08), transparent 60%),
    radial-gradient(760px 400px at 88% 6%, rgba(45, 212, 191, .06), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.hero-visual::before { opacity: .65; }
.float-chip { box-shadow: 0 20px 48px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .10); }

/* ---------- Quiet hairline cards; accent only where it means something ---------- */
.card, .stat, .step, .faq details, .clog-entry, .quiz-box, .form-frame, .track-tab, .dl-box {
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: 0 20px 46px rgba(0, 0, 0, .40), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.price-card.pop {
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--primary) 55%, transparent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .42), 0 0 36px rgba(59, 130, 246, .16),
              inset 0 1px 0 rgba(255, 255, 255, .07);
}
.track-card::after { box-shadow: 0 0 18px rgba(59, 130, 246, .45); }
.track-card.cat::after { box-shadow: 0 0 18px rgba(217, 164, 65, .4); }

/* ---------- Buttons: confident, no gimmicks ---------- */
.btn-primary::after { display: none; }
.btn-primary {
  box-shadow: 0 8px 22px rgba(37, 99, 235, .35), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.btn-primary:hover {
  box-shadow: 0 12px 30px rgba(37, 99, 235, .45), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-lg { padding: 17px 38px; font-size: 16.5px; border-radius: 14px; }
.eyebrow { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }

/* ---------- Bento features grid ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-lg { grid-column: span 2; }
.bento .card { display: flex; flex-direction: column; }
.bento-lg .ico { width: 54px; height: 54px; border-radius: 15px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-lg { grid-column: span 1; }
}

/* ---------- Download band ---------- */
.dl-band {
  position: relative; overflow: hidden;
  border: 1px solid transparent; border-radius: 26px;
  padding: 68px 48px; text-align: center;
  background:
    linear-gradient(color-mix(in srgb, var(--panel) 94%, transparent),
                    color-mix(in srgb, var(--panel) 94%, transparent)) padding-box,
    linear-gradient(135deg, rgba(96, 165, 250, .5), rgba(255, 255, 255, .10) 40%, rgba(45, 212, 191, .40)) border-box;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.dl-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 210px at 50% 0%, rgba(59, 130, 246, .14), transparent 70%);
}
.dl-band > * { position: relative; z-index: 1; }
.dl-band h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 14px 0 12px; }
.dl-band .lead { margin-left: auto; margin-right: auto; }
.dl-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.dl-meta {
  display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px; color: var(--muted); font-size: 13px; font-weight: 600;
}
.dl-meta span { display: inline-flex; align-items: center; gap: 8px; }
.dl-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.dl-fine { margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.dl-fine a { color: var(--primary); }
html.light .dl-band {
  box-shadow: 0 26px 60px rgba(16, 24, 40, .14), inset 0 1px 0 rgba(255, 255, 255, .7);
}

/* ---------- Footer support email: visible + copyable ---------- */
.foot-col .mail { word-break: break-all; font-weight: 600; }

/* ============================================================
   MOBILE REFINEMENT LAYER
   BUILD FS-SITE-2026-09-30f
   Every phone + small laptop audit fix. The base stylesheet
   above was desktop-first: the hero 3D mockup kept its tilt
   and fixed 150px sidebar on phones, the nav crowded at 360px,
   footer stayed 2-column, cards kept 30px padding, and CTA
   buttons stayed auto-width. This layer fixes all of that.
   Append-only: overrides only, no base rules touched.
   ============================================================ */

/* ---------- Small-laptop / large-tablet (<=960px) ---------- */
@media (max-width: 960px) {
  /* Flatten the hero mockup: no 3D tilt, no sidebar, content breathes */
  .hero-visual { min-height: 0; perspective: none; }
  .app-window { transform: none; }
  .hero-visual::after { display: none; }
  .app-body { grid-template-columns: 1fr; min-height: 0; }
  .app-side { display: none; }
  .app-main { padding: 14px; }
}

/* ---------- Phones (<=640px) ---------- */
@media (max-width: 640px) {
  /* Tighter gutters everywhere */
  .wrap { padding: 0 16px; }
  .nav-inner { padding: 0 14px; gap: 10px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }

  /* Hero type scales down gracefully */
  .hero h1 { font-size: clamp(30px, 9vw, 38px); }
  .hero .lead { font-size: 16px; }

  /* CTA buttons go full-width and thumb-sized */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .btn { min-height: 48px; }

  /* Cards lose their desktop padding */
  .card { padding: 22px; }
  section.block { padding: 52px 0; }

  /* App mockup: compact metrics, smaller bar labels */
  .app-metrics { gap: 8px; }
  .app-metric { padding: 8px 10px; }
  .app-metric .v { font-size: 17px; }
  .app-bar-row > span:first-child { width: 86px !important; flex: 0 0 auto; }

  /* Float chips stay inside the viewport */
  .float-chip { font-size: 12px; padding: 8px 12px; }
  .chip-1 { top: 2%; right: 2%; }
  .chip-2 { right: 2%; bottom: 26%; }
  .chip-3 { bottom: 2%; left: 2%; }

  /* Download band: comfortable on narrow screens */
  .dl-band { padding: 44px 20px; border-radius: 20px; }
  .dl-actions { flex-direction: column; align-items: stretch; }
  .dl-actions .btn-lg { width: 100%; }

  /* Track tabs stack instead of squeezing */
  .track-tabs { flex-direction: column; }

  /* Footer goes single column */
  .foot-grid { grid-template-columns: 1fr; gap: 26px; padding: 40px 0 28px; }

  /* Page heads breathe less */
  .page-head { padding: 48px 0 6px; }

  /* Announcement bar stays readable */
  #announceBar { font-size: 13px; padding: 10px 14px; }
}

/* ---------- Very small phones (<=400px) ---------- */
@media (max-width: 400px) {
  .hero h1 { font-size: 30px; }
  .block h2 { font-size: 25px; }
  .app-metric .l { font-size: 8px; }
  .app-metric .v { font-size: 15px; }
  .stat .n { font-size: 27px; }
  .price-card .amount { font-size: 34px; }
}

/* ============================================================
   BUILD FS-SITE-2026-09-30j — screenshots, comparison, changelog
   ============================================================ */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.shot {
  margin: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: transform .25s ease, border-color .25s ease;
}
.shot:hover { transform: translateY(-4px); border-color: var(--border-hi); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--border); }
.shot figcaption { padding: 14px 16px; font-size: 13.5px; color: var(--muted); }

.compare-wrap { margin-top: 44px; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--card-hi); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare thead th.us { color: var(--primary); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.us { background: var(--primary-soft); }
.compare-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.compare-note a { color: var(--primary); }

.changelog { margin-top: 44px; display: grid; gap: 14px; max-width: 820px; margin-left: auto; margin-right: auto; }
.cl-item {
  display: flex; gap: 18px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px;
}
.cl-tag {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .05em;
  color: var(--teal); background: rgba(45, 212, 191, .12);
  border: 1px solid rgba(45, 212, 191, .35); border-radius: 999px; padding: 5px 12px;
  white-space: nowrap;
}
.cl-item div { font-size: 15px; color: var(--muted); }
.cl-item strong { color: var(--text); }

@media (max-width: 900px) {
  .shots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .shots { grid-template-columns: 1fr; }
  .cl-item { flex-direction: column; gap: 10px; }
}

/* ============================================================
   BUILD FS-SITE-2026-09-30k — contained 3D hero, lightbox, guard
   ============================================================ */

/* ---------- Hero: keep 3D inside its own box, never the page ---------- */
.hero { overflow: clip; }
.hero-stage {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(7deg) rotateY(-11deg);
  transition: transform .3s ease-out;
  will-change: transform;
}
.app-window { transform: none; }
/* chips: safe insets, none may hang off the stage */
.chip-1 { top: 4%; right: 5%; }
.chip-2 { top: 44%; right: 8%; }
.chip-3 { bottom: 6%; left: 7%; }
.hero-visual { padding: 12px 8px 20px; }

/* ---------- Screenshots: click affordance ---------- */
.shot { cursor: zoom-in; }
.shot img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.shot:hover img { transform: scale(1.035); }
.shot:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(3, 5, 9, .93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s ease, visibility .28s ease;
  padding: 5vmin;
}
.lightbox.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lb-fig { margin: 0; max-width: min(1120px, 94vw); text-align: center; }
.lb-fig img {
  display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain;
  border-radius: 14px; border: 1px solid var(--border-hi);
  box-shadow: 0 40px 110px rgba(0,0,0,.7), 0 0 60px rgba(59,130,246,.18);
  background: #0b0d12;
}
.lb-fig figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.lb-btn {
  position: absolute; z-index: 301;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border-hi); cursor: pointer;
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--text); font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.lb-btn:hover { transform: scale(1.08); border-color: var(--primary); background: var(--primary-soft); }
.lb-close { top: 22px; right: 26px; }
.lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }

/* ---------- Comparison: highlighted column edge ---------- */
.compare td.us:first-child, .compare th.us { box-shadow: inset 0 0 0 999px var(--primary-soft); }

/* ---------- Accessibility ---------- */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .shot img, .hero-stage, .float-chip, .lightbox { transition: none !important; animation: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-btn { width: 40px; height: 40px; font-size: 20px; }
  .lb-close { top: 14px; right: 14px; }
  .chip-2 { top: 40%; }
  .float-chip { font-size: 11.5px; padding: 8px 12px; }
}

/* ============================================================
   BUILD FS-SITE-2026-09-30n — premium comparison card
   ============================================================ */
.compare-card {
  margin-top: 52px;
  border-radius: 22px;
  overflow-x: auto;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(140deg, rgba(59,130,246,.55), rgba(45,212,191,.30) 45%, rgba(59,130,246,.10)) border-box;
  box-shadow: 0 34px 90px rgba(0,0,0,.55), 0 0 70px rgba(59,130,246,.13),
              inset 0 1px 0 rgba(255,255,255,.08);
}
.compare {
  width: 100%; min-width: 600px;
  border-collapse: separate; border-spacing: 0;
  background: transparent; border: none; border-radius: 0;
  font-size: 15px; overflow: visible;
}
.compare th, .compare td { padding: 17px 22px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th {
  background: color-mix(in srgb, var(--card) 55%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--muted); font-weight: 800; vertical-align: bottom;
}
.compare thead th.cmp-feat span { opacity: .75; }
.compare thead th.us {
  background: linear-gradient(135deg, rgba(59,130,246,.92), rgba(45,212,191,.85));
  color: #fff; text-transform: none; letter-spacing: 0; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.compare thead th.them-head { text-align: center; }
.rec-pill {
  display: inline-block; margin-bottom: 8px; padding: 4px 12px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
}
.us-name { display: block; font-size: 19px; font-weight: 800; letter-spacing: .01em; }
.compare tbody td { vertical-align: middle; }
.compare tbody td:first-child { color: var(--muted); font-weight: 600; font-size: 14px; }
.compare tbody tr { transition: background .2s ease; }
.compare tbody tr:hover td { background: color-mix(in srgb, var(--card) 45%, transparent); }
.compare tbody tr:hover td.us { background: linear-gradient(180deg, rgba(59,130,246,.22), rgba(45,212,191,.12)); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare td.us {
  background: linear-gradient(180deg, rgba(59,130,246,.16), rgba(45,212,191,.08));
  box-shadow: inset 2px 0 0 rgba(59,130,246,.55), inset -2px 0 0 rgba(59,130,246,.25);
  font-weight: 600; text-align: left;
}
.compare td.them { color: var(--muted); text-align: center; }
.compare thead th.us { box-shadow: inset 2px 0 0 rgba(255,255,255,.35), inset -2px 0 0 rgba(255,255,255,.18), inset 0 1px 0 rgba(255,255,255,.25); }
span.tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; margin-right: 10px;
  background: rgba(52,211,153,.16); color: #34d399;
  border: 1px solid rgba(52,211,153,.45);
  font-size: 12px; font-weight: 800; vertical-align: -4px;
  box-shadow: 0 0 14px rgba(52,211,153,.25);
}
.price-pop {
  font-size: 21px; font-weight: 800; letter-spacing: -.01em;
  background: linear-gradient(120deg, #93c5fd, #5eead4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-pop small, .compare td.them small { font-size: 12px; font-weight: 600; }
.compare-note { margin-top: 18px; font-size: 13px; color: var(--muted); text-align: center; }
html.light .compare thead th.us { color: #fff; }
html.light .compare td.us { background: linear-gradient(180deg, rgba(59,130,246,.12), rgba(45,212,191,.06)); }
@media (max-width: 700px) {
  .compare th, .compare td { padding: 13px 14px; font-size: 13.5px; }
  .us-name { font-size: 16px; }
  .price-pop { font-size: 18px; }
}

/* ============================================================
   BUILD FS-SITE-2026-09-30n — mobile hero: flat window, no stray chips
   The desktop 3D tilt lives on .hero-stage; on small screens it
   skewed the mockup and clipped its edge, and the floating chips
   hung off the window. Phones get a straight, full-width card.
   ============================================================ */
@media (max-width: 960px) {
  .hero-stage { transform: none !important; transition: none; will-change: auto; }
}
@media (max-width: 640px) {
  /* Chips are desktop delight — on phones they collide with the
     window, and the window already shows score/verdict/percentile. */
  .float-chip { display: none; }
  .hero-visual { min-height: 0; padding: 4px 0 0; }
  .app-window { border-radius: 16px; }
  .app-main { padding: 12px; }
  .app-metrics { gap: 8px; }
  .app-metric { padding: 8px 10px; }
  .app-metric .v { font-size: 18px; }
  .app-chrome .t { font-size: 11.5px; }
  .app-chart { margin-bottom: 0; }
}

/* ============================================================
   BUILD FS-SITE-2026-09-30n — mobile perf + lightbox controls
   Audit 30-Sep-2026: (1) iOS Safari mangles
   background-attachment:fixed, so the aurora scrolls on phones;
   (2) the film-grain overlay is a full-screen repaint layer that
   even sits above the lightbox (z 2000 vs 300) — dropped on
   phones; (3) the three 400px+ blurred orbs animate forever,
   a real GPU/battery cost on mobile — frozen on phones;
   (4) lightbox prev/next overlay the image edges on narrow
   screens — docked to the screen edges, off the image;
   (5) -webkit-tap-highlight-color kills the grey tap flash.
   Desktop is untouched.
   ============================================================ */
* { -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) {
  body { background-attachment: scroll; }
  body::after { display: none; }
  .orb { animation: none; opacity: .18; filter: blur(100px); }
  html.light .orb { opacity: .14; }
  .lightbox { padding: 3vmin; }
  .lb-btn {
    width: 42px; height: 42px; font-size: 20px;
    background: rgba(10, 13, 18, .72); border-color: var(--border);
  }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; }
  .lb-fig figcaption { font-size: 13px; padding: 0 54px; }
}

/* ============================================================
   BUILD FS-SITE-2026-09-30o — enterprise polish
   (1) .bento-wide: the last bento card spans the full row as a
       horizontal strip instead of sitting orphaned in a 3-col grid.
   (2) scroll-margin for in-page anchors (#how) below the sticky nav.
   ============================================================ */
.bento .card.bento-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  text-align: left;
}
.bento-wide .ico { margin-bottom: 0; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 15px; }
.bento-wide-body h3 { margin-top: 0; }
.bento-wide-body p { max-width: 70ch; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }
@media (max-width: 640px) {
  .bento-wide { gap: 16px; }
  .bento-wide .ico { width: 46px; height: 46px; }
}

/* ============================================================
   BUILD FS-SITE-2026-09-30q — order wizard (get-access.html)
   Plan > UPI pay > details > confirmation. Reuses .btn/.card
   tokens; all wizard classes are wiz- / plan- / qr- / field- prefixed.
   ============================================================ */
.wizard {
  max-width: 780px;
  margin: 34px auto 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-1);
}
.wiz-steps {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
}
.wiz-step {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 6px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
}
.wiz-n {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  background: var(--border);
  color: var(--text);
  flex: 0 0 auto;
}
.wiz-step.on { color: var(--text); border-color: var(--primary); }
.wiz-step.on .wiz-n { background: var(--primary); color: #fff; }
.wiz-step.done .wiz-n { background: var(--ok); color: #fff; }
.wiz-panel { display: none; }
.wiz-panel.on { display: block; }
.wiz-panel h3 { margin: 0 0 14px; font-size: 19px; }
.muted { color: var(--muted); font-size: 14.5px; }
.muted-sm { color: var(--muted); font-size: 12.5px; font-weight: 400; }

.plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.plan-card {
  text-align: left;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .15s ease, transform .15s ease;
}
.plan-card:hover { transform: translateY(-2px); }
.plan-card.on { border-color: var(--primary); background: var(--primary-soft); }
.plan-name { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 700; }
.plan-sub { color: var(--muted); font-size: 13.5px; }
.plan-price { font-size: 19px; font-weight: 700; margin-top: 4px; }
.plan-price span { font-size: 12.5px; font-weight: 400; color: var(--muted); }

.level-picks { display: flex; gap: 12px; flex-wrap: wrap; }
.level-pick {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  user-select: none;
}
.level-pick input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.level-pick.on { border-color: var(--primary); background: var(--primary-soft); }

.order-summary {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  background: var(--card);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14.5px;
  padding: 4px 0;
}
.sum-row strong { white-space: nowrap; }
.sum-total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; font-size: 16px; }

.qr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.qr-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.qr-card img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
}
.qr-id {
  margin: 12px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.qr-id code { word-break: break-all; }
.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}
.link-btn:hover { text-decoration: underline; }
.warn-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--warn);
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 10px;
  padding: 10px 14px;
}

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 7px; }
.field input {
  width: 100%;
  box-sizing: border-box;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 12px 15px;
}
.field input:focus { outline: none; border-color: var(--primary); }
.field input::placeholder { color: var(--muted); opacity: .7; }
.field-err { color: var(--danger); font-size: 13px; margin: 6px 0 0; min-height: 0; }
.field-err:not(:empty) { min-height: 18px; }
.form-err { font-size: 14px; font-weight: 600; margin: 4px 0 14px; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.btn-row .btn:disabled { opacity: .6; cursor: wait; transform: none; }

.confirm-box { text-align: center; padding: 12px 6px; }
.confirm-ico {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .14);
  border: 2px solid var(--ok);
  color: var(--ok);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-box h3 { font-size: 22px; }
.confirm-box code {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 15px;
  user-select: all;
}
.confirm-steps { text-align: left; max-width: 520px; margin: 18px auto; padding-left: 22px; }
.confirm-steps li { margin-bottom: 9px; font-size: 14.5px; color: var(--text); }
.confirm-steps li::marker { color: var(--primary); font-weight: 700; }

@media (max-width: 640px) {
  .wizard { padding: 20px 16px; }
  .plan-cards { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .wiz-step { font-size: 12px; padding: 8px 4px; }
  .btn-row { flex-direction: column-reverse; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}
