/* StellarScope — dark theme.
   Landing-page classes (hero-*, feature-card, step-*, cta-panel, preview-card, reveal-*)
   are ported near-verbatim from the original Next.js build's custom-style.css, so the
   PHP landing page matches the original's look/animation. App-page classes (auth-wrap,
   dash-grid, stat-card, etc.) are new — the original had no logged-in app UI. */

:root {
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Syne', system-ui, sans-serif;
  --bg: #0d0a17;
  --fg: #f5f3fb;
  --card: #16111f;
  --card-border: rgba(255,255,255,0.08);
  --muted: #8f8aa3;
  --brand: #7c3aed;
  --brand-soft: rgba(124,58,237,0.15);
  --cta: #c2410c;
  --cta-hover: #9a3412;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  background: #0d0a17;
  background-color: oklch(0.06 0.015 270);
  color: var(--fg);
  font-family: var(--font-body);
  margin: 0;
  line-height: 1.6;
  position: relative;
}

/* Subtle grain texture overlay — ported from custom-style.css */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, .font-display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }

a { color: inherit; }

.container, .container-page { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

header.site-header {
  position: sticky; top: 0; z-index: 20;
  background: oklch(0.06 0.015 270 / 80%);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid oklch(1 0 0 / 6%);
}
header.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; }
.logo { font-family: var(--font-display); font-size: 1.4rem; text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; font-size: 0.9rem; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
/* The CTA button is more specific-loser to `.nav-links a` above, which greyed its
   text — restore the button's own white in both states. */
.nav-links a.btn-cta, .nav-links a.btn-cta:hover { color: oklch(0.98 0.003 60); }

/* Mobile menu toggle — hidden on desktop, line-icon hamburger on mobile */
.nav-toggle {
  display: none; background: none; border: none; padding: 0.35rem;
  color: var(--fg); cursor: pointer; line-height: 0; -webkit-tap-highlight-color: transparent;
}
.nav-toggle-line { transition: transform 0.25s ease, opacity 0.2s ease; transform-origin: center; }
.nav-toggle[aria-expanded="true"] .nav-toggle-top { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-mid { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bot { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  /* Keep the wordmark + close (X) above the full-screen overlay so X stays tappable */
  .site-header .logo, .nav-toggle { position: relative; z-index: 16; }
  .nav-links {
    /* Sized to the viewport explicitly (not inset:0): the header's backdrop-filter
       makes it the containing block for fixed children, so inset:0 would clamp to
       the header, not the screen. */
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 15;
    flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
    background: oklch(0.06 0.015 270);
    padding: 5rem 1.5rem 2rem; font-size: 1.5rem;
    overflow-y: auto;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.75rem 1.5rem; color: var(--fg); }
  .nav-links a.btn-cta { margin-top: 1rem; justify-content: center; font-size: 1rem; }
}
/* Lock background scroll while the full-screen mobile menu is open */
body.nav-open { overflow: hidden; }

/* ── Hero — fluid ink canvas, particles, word-reveal (ported) ─────────── */
.hero-section { position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center; }
.hero-fluid { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-fluid canvas { width: 100%; height: 100%; display: block; }

.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 60vh;
  background: radial-gradient(ellipse at center, oklch(0.4 0.28 290 / 0.18) 0%, oklch(0.55 0.22 270 / 0.08) 40%, transparent 70%);
  pointer-events: none; z-index: 1; filter: blur(60px);
  animation: glow-pulse 8s ease-in-out infinite alternate;
}
@keyframes glow-pulse { from { opacity: 0.7; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-50%) scale(1.05); } }

.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-particles span {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: oklch(0.6 0.25 280 / 0.5);
  animation: float-particle linear infinite; will-change: transform;
}
@keyframes float-particle {
  0% { transform: translateY(0vh) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-110vh) scale(0.5); opacity: 0; }
}

.hero-content { position: relative; z-index: 10; }
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: oklch(0.97 0.005 270); font-weight: 400;
}
.hero-word { display: inline-block; overflow: hidden; vertical-align: bottom; margin-right: 0.25em; }
.hero-word-inner { display: inline-block; transform: translateY(110%); }
.hero-accent { font-family: var(--font-display); font-style: italic; color: oklch(0.97 0.005 270); }
.hero-highlight { color: oklch(0.6 0.22 35); font-weight: 700; font-style: normal; }

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 2rem;
  background: oklch(0.55 0.22 35); color: oklch(0.98 0.003 60);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; border-radius: 0.5rem; border: none;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  box-shadow: 0 0 0 1px oklch(0.55 0.22 35 / 0.3), 0 4px 24px oklch(0.45 0.22 35 / 0.35);
}
.btn-cta:hover { background: oklch(0.5 0.24 35); transform: translateY(-2px); box-shadow: 0 0 0 1px oklch(0.5 0.24 35 / 0.4), 0 8px 32px oklch(0.45 0.22 35 / 0.45); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.875rem 1.75rem;
  background: transparent; color: oklch(0.75 0.015 270);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  border: 1px solid oklch(1 0 0 / 15%); border-radius: 0.5rem; cursor: pointer; text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-ghost:hover { border-color: oklch(1 0 0 / 30%); color: oklch(0.95 0.006 270); transform: translateY(-1px); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.9rem; border-radius: 10px; font-weight: 700; font-size: 0.92rem; letter-spacing: 0.02em; text-decoration: none; border: none; cursor: pointer; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; position: relative; z-index: 1; }
.section-eyebrow, .eyebrow-badge {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.9rem;
  border: 1px solid oklch(0.55 0.22 270 / 0.35); border-radius: 999px;
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: oklch(0.6 0.22 280);
  background: oklch(0.55 0.22 270 / 0.08);
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

/* ── Feature cards — glass morphism (ported) ──────────────────────────── */
.feature-card, .card {
  background: oklch(0.09 0.012 270 / 60%); border: 1px solid oklch(1 0 0 / 8%);
  border-radius: 1rem; padding: 2rem 1.75rem; backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, oklch(0.55 0.22 290 / 0.4) 50%, transparent 100%);
  opacity: 0; transition: opacity 0.3s ease;
}
.feature-card:hover, .card:hover { border-color: oklch(0.55 0.22 290 / 25%); transform: translateY(-4px); box-shadow: 0 20px 60px oklch(0.05 0.05 270 / 0.6), 0 0 40px oklch(0.5 0.22 290 / 0.08); }
.feature-card:hover::before { opacity: 1; }
.card h3 { font-size: 1.3rem; margin: 0.75rem 0 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.feature-icon, .icon-badge {
  width: 48px; height: 48px; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, oklch(0.5 0.25 285) 0%, oklch(0.4 0.28 270) 100%);
  color: oklch(0.98 0.005 280); margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px oklch(0.45 0.22 285 / 0.35);
}

/* ── Steps ──────────────────────────────────────────────────────────── */
.step-item { position: relative; }
.step-number { font-family: var(--font-display); font-size: clamp(3rem, 5vw, 4.5rem); font-weight: 400; color: oklch(0.3 0.02 270 / 0.4); line-height: 1; letter-spacing: -0.02em; }

/* ── Pricing ────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 760px; margin: 0 auto; }
.price-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 2rem; }
.price-card.highlight { border: 1px solid oklch(0.60 0.22 35 / 0.5); }
.price-card .price { font-family: var(--font-display); font-size: 2.6rem; margin: 0.5rem 0; }
.price-card ul { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--muted); font-size: 0.9rem; }
.price-card li { padding: 0.3rem 0; border-top: 1px solid var(--card-border); }
.price-card li:first-child { border-top: none; }

/* ── CTA panel (ported) ────────────────────────────────────────────────── */
.cta-panel {
  position: relative; overflow: hidden; background: oklch(0.09 0.012 270);
  border: 1px solid oklch(1 0 0 / 10%); border-radius: 1.5rem;
  padding: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 5rem);
}
.cta-panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, oklch(0.55 0.22 35) 0%, oklch(0.55 0.22 285) 50%, oklch(0.4 0.25 300) 100%);
  opacity: 0.8;
}
.cta-panel-glow {
  position: absolute; bottom: -30%; left: 50%; transform: translateX(-50%);
  width: 60vw; height: 40vh;
  background: radial-gradient(ellipse at center, oklch(0.5 0.22 35 / 0.12) 0%, transparent 65%);
  pointer-events: none; filter: blur(40px);
}

/* ── Scroll reveal (JS adds .is-visible, replaces GSAP ScrollTrigger) ── */
.reveal-item, .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1); }
.reveal-item.is-visible, .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(.16,1,.3,1), transform 0.6s cubic-bezier(.16,1,.3,1); }
/* Base visible rule covers ANY number of children (grids with 4+ items were
   previously left invisible); nth-child rules below only add stagger delays. */
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger.is-visible > *:nth-child(9) { transition-delay: 640ms; }

.section-divider { height: 1px; background: linear-gradient(90deg, transparent 0%, oklch(0.55 0.22 270 / 0.25) 20%, oklch(0.55 0.22 270 / 0.25) 80%, transparent 100%); border: none; margin: 0; }

footer.site-footer { background: oklch(0.05 0.01 270); border-top: 1px solid oklch(1 0 0 / 6%); padding: 2.5rem 0; color: var(--muted); font-size: 0.85rem; position: relative; z-index: 1; }

.preview-card {
  background: oklch(0.09 0.012 270 / 85%); border: 1px solid oklch(1 0 0 / 12%); border-radius: 1.25rem;
  padding: 1.5rem; backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px oklch(0.05 0.04 270 / 0.6), 0 0 60px oklch(0.5 0.22 285 / 0.06);
}
.preview-card-inner-glow { position: relative; }
.preview-card-inner-glow::before {
  content: ""; position: absolute; inset: -2px; border-radius: 1.35rem;
  background: conic-gradient(from 0deg, oklch(0.55 0.22 290), oklch(0.45 0.22 270), transparent);
  opacity: 0.3; filter: blur(8px); z-index: -1;
}

.text-gradient-heading {
  background: linear-gradient(135deg, oklch(0.97 0.005 270) 0%, oklch(0.8 0.015 280) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

@media (max-width: 768px) {
  .hero-section { min-height: 80vh; }
  .hero-highlight { display: block; }
  .feature-card { padding: 1.5rem 1.25rem; }
  .hero-fluid canvas { display: none; }
  .hero-section::after {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(ellipse at 30% 60%, oklch(0.45 0.28 285 / 0.15) 0%, transparent 55%),
      radial-gradient(ellipse at 80% 30%, oklch(0.35 0.25 270 / 0.1) 0%, transparent 45%),
      radial-gradient(ellipse at 50% 80%, oklch(0.4 0.22 35 / 0.06) 0%, transparent 50%);
    z-index: 0;
  }
}

/* ── App pages (login/dashboard/settings) — not part of the original marketing page ── */
.auth-wrap { max-width: 420px; margin: 4rem auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.auth-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 2rem; }
label { display: block; font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0.35rem; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 0.7rem 0.85rem; background: #0d0a17; border: 1px solid var(--card-border);
  border-radius: 8px; color: var(--fg); font-size: 0.95rem; font-family: inherit;
}
textarea { resize: vertical; min-height: 80px; }
.field-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.form-actions { margin-top: 1.5rem; }
.alert { padding: 0.85rem 1rem; border-radius: 8px; font-size: 0.88rem; margin-bottom: 1rem; }
.alert-error { background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.35); color: #fca5a5; }
.alert-success { background: rgba(22,163,74,0.12); border: 1px solid rgba(22,163,74,0.35); color: #86efac; }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 800px) { .dash-grid { grid-template-columns: 1fr; } .pricing-grid { grid-template-columns: 1fr; } }
.briefing-box { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 2rem; font-family: Georgia, serif; line-height: 1.75; }
.briefing-box p { margin-bottom: 1rem; }
.addon-box { background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: 8px; padding: 1rem 1.25rem; margin-top: 1.5rem; }

/* ── Settings tabs (added 2026-07-03, Basic/Advanced split) ── */
.tab-bar { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--card-border); margin-bottom: 1.5rem; }
.tab-btn {
  background: none; border: none; color: var(--muted); font-family: inherit; font-size: 0.95rem;
  padding: 0.75rem 1.1rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.active { color: var(--fg); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.char-count { font-size: 0.75rem; color: var(--muted); text-align: right; margin-top: 0.25rem; }
.char-count.near-limit { color: #fca5a5; }
.addon-box .addon-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #a78bfa; font-weight: 700; }
.stat-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.stat-card .label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card .value { font-size: 1.4rem; margin-top: 0.25rem; }

/* ══════════════════════════════════════════════════════════════════════
   2026-07-02 redesign — landing page components + app-side polish
   ══════════════════════════════════════════════════════════════════════ */

/* ── Hero device mockup (phone showing the briefing email) ───────────── */
.device-phone {
  width: min(320px, 82vw);
  border-radius: 2.6rem;
  padding: 0.6rem;
  background: linear-gradient(160deg, oklch(0.22 0.03 275), oklch(0.10 0.02 270));
  border: 1px solid oklch(1 0 0 / 16%);
  box-shadow: 0 30px 90px oklch(0.05 0.04 270 / 0.7), 0 0 90px oklch(0.5 0.22 285 / 0.16);
  animation: phone-float 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes phone-float {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50% { transform: rotate(-2.5deg) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) { .device-phone { animation: none; transform: rotate(-2.5deg); } }
.device-screen {
  position: relative;
  border-radius: 2.05rem;
  overflow: hidden;
  background: #faf9f7;
  height: 540px;
}
.device-screen::after { /* soft fade so truncated email content ends gracefully */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  background: linear-gradient(180deg, rgba(250,249,247,0) 0%, #faf9f7 85%);
  pointer-events: none;
}
@media (max-width: 900px) { .device-screen { height: 470px; } }

.email-mini { padding: 1.15rem 1.15rem 0; font-family: Georgia, 'Times New Roman', serif; color: #332f3f; }
.email-mini-appbar { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.7rem; font-family: var(--font-body); }
.email-mini-dot { width: 8px; height: 8px; border-radius: 50%; background: #7c3aed; }
.email-mini h4 { font-family: Georgia, serif; font-size: 1.02rem; margin: 0; color: #191622; font-weight: 700; letter-spacing: -0.01em; }
.email-mini-meta { font-size: 0.62rem; color: #8b8698; margin: 0.2rem 0 0.75rem; }
.email-mini p { font-size: 0.72rem; line-height: 1.6; color: #3f3b4d; margin: 0 0 0.65rem; }
.email-mini-section { font-size: 0.58rem; letter-spacing: 0.09em; text-transform: uppercase; color: #8b8698; margin: 0.85rem 0 0.4rem; font-family: var(--font-body); font-weight: 600; }
.email-mini-nudge { background: #f1ecfd; border-left: 3px solid #7c3aed; border-radius: 6px; padding: 0.65rem 0.75rem; font-size: 0.7rem; line-height: 1.55; color: #3f3b4d; }
.email-mini-nudge-label { color: #6d28d9; font-weight: 700; font-size: 0.58rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--font-body); }

/* ── Full sample email in a mail-window frame ────────────────────────── */
.email-window {
  max-width: 760px; margin: 0 auto; border-radius: 1rem; overflow: hidden;
  border: 1px solid oklch(1 0 0 / 12%);
  box-shadow: 0 30px 90px oklch(0.05 0.04 270 / 0.65), 0 0 60px oklch(0.5 0.22 285 / 0.08);
}
.email-window-bar { display: flex; align-items: center; gap: 0.45rem; background: oklch(0.13 0.015 270); padding: 0.8rem 1.1rem; border-bottom: 1px solid oklch(1 0 0 / 8%); }
.email-window-bar > span { width: 10px; height: 10px; border-radius: 50%; background: oklch(0.32 0.02 270); flex-shrink: 0; }
.email-window-subject { margin-left: 0.75rem; font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.email-window-body { background: #faf9f7; padding: clamp(1.5rem, 4.5vw, 3rem); font-family: Georgia, 'Times New Roman', serif; color: #332f3f; }
.email-window-body h4 { font-family: Georgia, serif; font-size: 1.5rem; margin: 0 0 0.3rem; color: #191622; font-weight: 700; letter-spacing: -0.01em; }
.email-meta { font-size: 0.85rem; color: #8b8698; margin-bottom: 1.4rem; }
.email-window-body p { font-size: 0.95rem; line-height: 1.75; margin: 0 0 1.1rem; }
.email-section-label { font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: #8b8698; margin: 1.6rem 0 0.5rem; font-family: var(--font-body); font-weight: 600; }
.email-nudge { background: #f1ecfd; border-left: 4px solid #7c3aed; border-radius: 8px; padding: 1.1rem 1.3rem; margin-top: 1.5rem; }
.email-nudge-label { color: #6d28d9; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: 0.4rem; }
.email-nudge p { margin: 0; }
.email-footer { border-top: 1px solid #e5e1ee; margin-top: 2rem; padding-top: 1rem; font-size: 0.78rem; color: #8b8698; }

/* ── Nine-signal grid ────────────────────────────────────────────────── */
.signal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.signal-chip {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1.1rem 1.2rem; border: 1px solid oklch(1 0 0 / 8%); border-radius: 0.9rem;
  background: oklch(0.09 0.012 270 / 60%);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.signal-chip:hover { border-color: oklch(0.55 0.22 290 / 30%); transform: translateY(-3px); }
.signal-chip svg { color: oklch(0.65 0.18 285); flex-shrink: 0; margin-top: 0.15rem; }
.signal-chip strong { display: block; font-size: 0.95rem; color: oklch(0.9 0.008 270); font-weight: 600; }
.signal-chip span { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ── Add-on cards ────────────────────────────────────────────────────── */
.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.addon-card {
  background: oklch(0.09 0.012 270 / 60%); border: 1px solid oklch(1 0 0 / 8%);
  border-radius: 1rem; padding: 1.6rem 1.5rem; position: relative; overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.addon-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, oklch(0.55 0.22 285 / 0), oklch(0.55 0.22 285 / 0.55), oklch(0.55 0.22 285 / 0));
  opacity: 0.6;
}
.addon-card:hover { border-color: oklch(0.55 0.22 290 / 30%); transform: translateY(-3px); }
.addon-card h3 { font-size: 1.02rem; margin: 0 0 0.5rem; font-family: var(--font-body); font-weight: 700; color: oklch(0.9 0.008 270); }
.addon-card p { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.6; }
.quote-attr { font-size: 0.78rem; color: var(--muted); margin-top: 0.75rem; }

/* ── App-side polish: stat cards ─────────────────────────────────────── */
.stat-card { position: relative; overflow: hidden; transition: border-color 0.25s ease; }
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, oklch(0.55 0.22 290 / 0.45), transparent);
}
.stat-card:hover { border-color: oklch(0.55 0.22 290 / 25%); }
.stat-card .label { display: flex; align-items: center; gap: 0.45rem; }
.stat-card .label svg { color: oklch(0.65 0.18 285); }
.dash-sub { color: var(--muted); font-size: 0.9rem; margin-top: -0.5rem; }

/* ── App-side polish: settings tabs as a segmented pill ──────────────── */
.tab-bar {
  border: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border);
  border-radius: 999px; padding: 0.3rem; width: fit-content; gap: 0.25rem;
  background: oklch(0.09 0.012 270 / 60%);
}
.tab-btn { border-radius: 999px; padding: 0.55rem 1.4rem; border-bottom: none; margin-bottom: 0; }
.tab-btn.active {
  background: var(--brand-soft); color: var(--fg); border-bottom: none;
  box-shadow: inset 0 0 0 1px oklch(0.55 0.22 285 / 0.5);
}

/* ── App-side polish: selectable choice cards (add-on radios) ────────── */
.choice-list { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
label.choice-card {
  display: flex; gap: 0.6rem; align-items: flex-start;
  padding: 0.75rem 0.9rem; border: 1px solid var(--card-border); border-radius: 10px;
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease;
  margin: 0; font-weight: 400; color: var(--fg); font-size: 0.92rem;
}
label.choice-card:hover { border-color: oklch(0.55 0.22 290 / 35%); }
label.choice-card:has(input:checked) { border-color: oklch(0.55 0.22 285 / 0.7); background: var(--brand-soft); }
label.choice-card input { width: auto; margin-top: 0.25rem; accent-color: var(--brand); }

/* ── App-side polish: card headers with icon badges ──────────────────── */
.card-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.35rem; }
.card-head .icon-badge { width: 34px; height: 34px; border-radius: 9px; margin: 0; flex-shrink: 0; }
.card-head .icon-badge svg { width: 17px; height: 17px; }
.card-head h3 { margin: 0; }

/* ── Onboarding wizard ───────────────────────────────────────────────── */
.wizard-steps { display: flex; gap: 0.5rem; margin: 1.25rem 0 0.75rem; }
.wizard-dot { flex: 1; height: 3px; border-radius: 99px; background: oklch(0.25 0.02 270); transition: background 0.35s ease; }
.wizard-dot.active { background: linear-gradient(90deg, oklch(0.55 0.22 285), oklch(0.6 0.2 300)); }
.wizard-step-label { font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; color: oklch(0.6 0.18 285); font-weight: 700; margin-bottom: 0.25rem; }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: wizard-in 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes wizard-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.wizard-nav { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.wizard-nav .btn-ghost { padding: 0.75rem 1.4rem; font-size: 0.85rem; }

/* First-briefing "calibrating" overlay (shown while the form posts) */
.calibrate-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: oklch(0.06 0.015 270 / 0.97);
  display: none; align-items: center; justify-content: center; flex-direction: column;
  gap: 1.4rem; text-align: center; padding: 2rem;
}
.calibrate-overlay.active { display: flex; }
.calibrate-scope { position: relative; width: 72px; height: 72px; }
.calibrate-scope .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid oklch(0.55 0.22 285 / 0.35); border-top-color: oklch(0.72 0.18 285);
  animation: scope-spin 1.1s linear infinite;
}
.calibrate-scope svg { position: absolute; inset: 0; margin: auto; color: oklch(0.72 0.18 285); animation: scope-pulse 1.8s ease-in-out infinite; }
@keyframes scope-spin { to { transform: rotate(360deg); } }
@keyframes scope-pulse { 0%, 100% { opacity: 0.5; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.05); } }
.calibrate-title { font-family: var(--font-display); font-size: 1.7rem; color: oklch(0.97 0.004 270); }
.calibrate-msg { color: var(--muted); font-size: 0.92rem; min-height: 1.5em; transition: opacity 0.3s ease; }

/* Faux "more" link inside the hero email mockup — pure curiosity bait, not a real link */
.email-mini-more { color: #2563eb; text-decoration: underline; cursor: pointer; font-family: inherit; }

/* ── Accordion cards (settings + FAQ, 2026-07-02) ─────────────────────── */
.acc-card .acc-head { cursor: pointer; display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0; user-select: none; -webkit-tap-highlight-color: transparent; }
.acc-card .acc-head h3 { margin: 0; flex: 1; }
.acc-chevron { flex-shrink: 0; color: var(--muted); transition: transform 0.25s ease; }
.acc-card.open .acc-chevron { transform: rotate(180deg); }
.acc-body { display: none; padding-top: 0.75rem; }
.acc-card.open .acc-body { display: block; }
.acc-card:hover { border-color: oklch(0.55 0.22 290 / 25%); }

/* ── Scope calibration meter (dashboard, 2026-07-02) ──────────────────── */
.calib-bar { height: 6px; border-radius: 99px; background: oklch(0.22 0.02 270); margin-top: 0.6rem; overflow: hidden; }
.calib-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, oklch(0.5 0.22 285), oklch(0.65 0.18 300)); transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
