/* =========================================================
   Crowvex — design system
   Light, warm, premium. Stripe / Notion / Attio inspired.
   ========================================================= */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Base palette — LIGHT */
  --bg-primary: #FAFAF9;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F4F4F2;
  --bg-glass: rgba(255, 255, 255, 0.7);

  /* Text */
  --text-primary: #0A0A0A;
  --text-secondary: #525252;
  --text-tertiary: #A1A1AA;

  /* Borders */
  --border-subtle: rgba(10, 10, 10, 0.06);
  --border-default: rgba(10, 10, 10, 0.1);
  --border-strong: rgba(10, 10, 10, 0.15);

  /* Brand blue */
  --blue-500: #2547D0;
  --blue-400: #3B5BDB;
  --blue-glow: rgba(37, 71, 208, 0.15);

  /* Money — emerald (RESERVED) */
  --emerald-500: #059669;
  --emerald-400: #10B981;
  --emerald-glow: rgba(5, 150, 105, 0.15);

  /* Cost — red (RESERVED) */
  --red-500: #DC2626;
  --red-glow: rgba(220, 38, 38, 0.12);

  /* Gradient meshes */
  --gradient-blue-mesh: radial-gradient(circle at 30% 20%, rgba(37, 71, 208, 0.08) 0%, transparent 50%);
  --gradient-emerald-glow: radial-gradient(circle at 70% 80%, rgba(5, 150, 105, 0.05) 0%, transparent 50%);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 12px 32px rgba(10, 10, 10, 0.08);
  --shadow-xl: 0 24px 48px rgba(10, 10, 10, 0.10);

  /* Easing */
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* Lenis handles smoothness */
  background: var(--bg-primary);
}
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

::selection { background: var(--blue-500); color: #fff; }

/* ── Type scale ─────────────────────────────────────────── */
.font-serif   { font-family: 'Newsreader', Georgia, serif; font-feature-settings: "ss01"; }
.font-sans    { font-family: 'Inter', system-ui, sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; }

.h-hero {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}
.h-section {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.h-sub {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.t-body {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.t-small {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.t-caption {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.italic-em {
  font-style: italic;
  font-weight: 400;
}

/* ── Layout primitives ──────────────────────────────────── */
.container-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container-page { padding: 0 2rem; }
}
@media (min-width: 1100px) {
  .container-page { padding: 0 2.5rem; }
}

section { position: relative; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: background-color 300ms ease, backdrop-filter 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border-subtle);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.nav-logo img { height: 28px; width: auto; }
.nav-links {
  display: none;
  gap: 2rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.nav-links a {
  position: relative;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out-quint);
}
.nav-links a:hover::after { transform: scaleX(1); }
@media (min-width: 880px) { .nav-links { display: flex; } }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 200ms var(--ease-out-quint),
              box-shadow 240ms ease,
              background-color 200ms ease,
              border-color 200ms ease,
              color 200ms ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset,
              0 6px 14px -4px var(--blue-glow);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.18) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-out-quint);
  pointer-events: none;
}
.btn-primary:hover {
  background: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset,
              0 14px 28px -8px var(--blue-glow),
              0 4px 12px -2px rgba(37, 71, 208, 0.18);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:active { transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
  background: rgba(37, 71, 208, 0.04);
  transform: translateY(-1px);
}

.btn-sm { padding: 0.55rem 0.95rem; font-size: 0.875rem; border-radius: 8px; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; border-radius: 12px; }

/* ── Tag chip ───────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-default);
  background: var(--bg-elevated);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.tag .tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 71, 208, 0.18);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 0 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  z-index: -3;
  pointer-events: none;
}
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(37, 71, 208, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 82% 70%, rgba(5, 150, 105, 0.04) 0%, transparent 50%);
}
.hero-mouse-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 71, 208, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: -2;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 600ms ease;
}
.hero-mouse-glow.is-active { opacity: 1; }

/* ─── Hero 3D crow ──────────────────────────────────────── */
.hero-crow {
  position: absolute;
  right: 3vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(420px, 44vw, 580px);
  height: clamp(460px, 50vw, 620px);
  z-index: 10;                /* sit above the gradient mesh + hero text bg layers */
  opacity: 0;
  pointer-events: none;       /* parallax listens on .hero itself */
  will-change: opacity, transform;
}
/* Emerald ground glow — sits underneath the floating crow */
.hero-crow::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 78%;
  height: 64px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(13, 22, 40, 0.15), transparent 65%);
  filter: blur(28px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: crow-glow-pulse 4.2s ease-in-out infinite;
}
@keyframes crow-glow-pulse {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(0.94); }
  50%      { opacity: 0.95; transform: translateX(-50%) scale(1.06); }
}
.hero-crow canvas {
  position: absolute !important;
  inset: 0 !important;
  z-index: 10 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  /* Re-enable pointer events on the canvas only so OrbitControls
     receives drag input; the .hero-crow container itself stays
     pointer-events: none so its emerald halo doesn't block hovers
     on hero text/CTAs that may sit underneath it. */
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
}
.hero-crow.is-grabbing canvas {
  cursor: grabbing;
}

/* Mobile: stack crow below the text, centered */
@media (max-width: 880px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 7rem 0 4rem;
  }
  .hero-crow {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(86vw, 340px);
    height: clamp(280px, 80vw, 360px);
    margin: 2.5rem auto 0;
    align-self: center;
  }
}

.hero-inner {
  position: relative;
  max-width: 880px;
}
.hero h1 {
  margin-top: 1.25rem;
}
.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-sub {
  margin-top: 1.5rem;
  max-width: 620px;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}
.hero-cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-cta-row-solo {
  justify-content: center;
}
.hero-cta-row-solo + .hero-fineprint {
  text-align: center;
}
.hero-fineprint {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}
.hero-fineprint .dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* word-stagger reveal */
.reveal-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.reveal-word > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  will-change: transform, opacity;
}

/* the special "profit" / "knowing" treatment */
.word-accent {
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
  transition: color 600ms var(--ease-out-quint);
  will-change: transform, color;
}
.word-accent.is-lit {
  color: var(--emerald-500);
}

/* hero scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0;
  animation: scrollCueIn 800ms var(--ease-out-quint) 2200ms forwards;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--text-tertiary), transparent);
  animation: scrollLine 1.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollCueIn {
  to { opacity: 0.7; }
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 0.9; }
}

/* ── Integrations trust bar ─────────────────────────────── */
/* Sits between the hero and the problem section. Bordered top
   and bottom with the subtle divider colour, centred copy with
   three partner logos that desaturate at rest and brighten on
   hover. Padding uses .section-pad so the vertical rhythm
   matches every other section on the page. */
.integrations {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  background: var(--bg-primary);
}
.integrations-inner {
  max-width: 720px;
  margin: 0 auto;
}
.integrations-eyebrow {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
}
.integrations-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.integration-logo {
  display: block;
  max-height: 38px;
  width: auto;
  filter: grayscale(1) opacity(0.45);
  transition: filter 200ms ease;
  cursor: default;
}
.integration-logo:hover {
  filter: grayscale(0) opacity(0.85);
}
/* The fineprint reads as a full sentence rather than a label,
   so we keep the t-caption size/colour but drop the uppercasing
   and tighter letter-spacing so it stays comfortably readable. */
.integrations-fineprint {
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text-tertiary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .integrations-logos { gap: 2rem; }
  .integration-logo { max-height: 22px; }
}

/* ── Stats bar ──────────────────────────────────────────── */
.stats {
  padding: 5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.4), transparent 40%),
    var(--bg-primary);
  position: relative;
  z-index: 1;
}
.stats-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
}
@media (min-width: 960px) {
  .stats-row { grid-template-columns: repeat(4, 1fr); gap: 0; }
}

.stat {
  position: relative;
  text-align: center;
  padding: 0.5rem 1.25rem;
}
@media (min-width: 960px) {
  .stat + .stat::before {
    content: "";
    position: absolute;
    left: 0; top: 18%;
    width: 1px;
    height: 64%;
    background: linear-gradient(to bottom, transparent, var(--border-default), transparent);
  }
}
.stat-num {
  display: inline-flex;
  align-items: baseline;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-feature-settings: "tnum" 1;
}
.stat-prefix {
  color: var(--text-tertiary);
  font-size: 0.62em;
  margin-right: 0.05em;
  transform: translateY(-0.18em);
  display: inline-block;
}
.stat[data-stat-money] .stat-prefix {
  color: var(--emerald-500);
  font-size: 0.7em;
  transform: translateY(-0.12em);
}
.stat[data-stat-money] .stat-value {
  color: var(--emerald-500);
}
.stat-caption {
  margin-top: 0.85rem;
  color: var(--text-tertiary);
}
.stat-pulse {
  position: absolute;
  inset: -10% 10%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, var(--blue-glow), transparent 60%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}
.stat[data-stat-money] .stat-pulse {
  background: radial-gradient(ellipse at center, var(--emerald-glow), transparent 60%);
}

/* ── Section primitives ─────────────────────────────────── */
.section-pad {
  padding: 7rem 0;
}
@media (max-width: 720px) {
  .section-pad { padding: 5rem 0; }
}
.section-header {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-eyebrow {
  margin-bottom: 1rem;
  color: var(--blue-500);
}
.section-headline {
  margin-bottom: 1.25rem;
}
.section-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

/* ── Compare cards ──────────────────────────────────────── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 880px) {
  .compare-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.compare-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-md);
  transition: transform 320ms var(--ease-out-quint),
              box-shadow 320ms var(--ease-out-quint),
              border-color 240ms ease;
  overflow: hidden;
}
.compare-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--border-default);
}
.compare-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
  transition: filter 320ms ease;
}
.compare-without .compare-stripe {
  background: linear-gradient(90deg, var(--red-500), #f87171);
}
.compare-with .compare-stripe {
  background: linear-gradient(90deg, var(--emerald-500), var(--emerald-400));
}
.compare-card:hover .compare-stripe {
  filter: saturate(1.2) brightness(1.05);
}
.compare-head {
  margin-bottom: 1.5rem;
}
.compare-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.85rem;
}
.compare-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.compare-dot-red {
  background: var(--red-500);
  box-shadow: 0 0 0 4px var(--red-glow);
}
.compare-dot-emerald {
  background: var(--emerald-500);
  box-shadow: 0 0 0 4px var(--emerald-glow);
}
.compare-head h3 {
  color: var(--text-primary);
}
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-subtle);
}
.compare-list li {
  position: relative;
  padding: 0.95rem 0 0.95rem 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.compare-list li:last-child { border-bottom: 0; }
.compare-list li::before {
  position: absolute;
  left: 0; top: 1.05rem;
  font-size: 0.875rem;
  line-height: 1;
  font-weight: 500;
}
.compare-without .compare-list li::before {
  content: "×";
  color: var(--red-500);
  font-size: 1.05rem;
  top: 0.95rem;
  font-weight: 600;
}
.compare-with .compare-list li::before {
  content: "✓";
  color: var(--emerald-500);
  font-size: 0.95rem;
}

/* ── Dashboard showpiece ────────────────────────────────── */
.dashboard-section {
  position: relative;
  background:
    radial-gradient(circle at 15% 30%, rgba(37, 71, 208, 0.04), transparent 55%),
    radial-gradient(circle at 85% 70%, rgba(5, 150, 105, 0.035), transparent 55%),
    var(--bg-primary);
}

.dash-mock {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    var(--shadow-xl),
    0 60px 120px -40px rgba(37, 71, 208, 0.18);
  overflow: hidden;
  transform-origin: center 30%;
  will-change: transform, opacity;
}

/* window chrome */
.dash-chrome {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(to bottom, #f7f7f5, #f0f0ee);
  border-bottom: 1px solid var(--border-subtle);
}
.dash-dots { display: flex; gap: 0.4rem; }
.dash-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(10,10,10,0.12);
  display: inline-block;
}
.dash-dots span:nth-child(1) { background: #ff5f57; }
.dash-dots span:nth-child(2) { background: #febc2e; }
.dash-dots span:nth-child(3) { background: #28c840; }
.dash-url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  max-width: 320px;
  margin: 0 auto;
}
.dash-chrome-spacer { width: 50px; }

/* body grid */
.dash-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 540px;
}
@media (max-width: 800px) {
  .dash-body { grid-template-columns: 1fr; }
}

/* sidebar */
.dash-side {
  border-right: 1px solid var(--border-subtle);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, #fafaf9, #fbfbfa);
}
@media (max-width: 800px) {
  .dash-side { display: none; }
}
.dash-side-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary);
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.dash-side-brand img { height: 18px; width: auto; }
.dash-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 0.25rem;
  flex: 1;
}
.dash-side-nav a {
  position: relative;
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: 7px;
  cursor: default;
}
.dash-side-nav a.is-active {
  background: rgba(37, 71, 208, 0.06);
  color: var(--blue-500);
  font-weight: 500;
}
.dash-side-nav .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 71, 208, 0.18);
}
.dash-side-footer { margin-top: auto; padding-top: 1rem; }
.dash-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-elevated);
}
.dash-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px var(--emerald-glow);
  animation: dash-pulse 2s ease-in-out infinite;
}
@keyframes dash-pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--emerald-glow); }
  50% { box-shadow: 0 0 0 5px rgba(5,150,105,0.10); }
}

/* main panel */
.dash-main { padding: 1.5rem 1.5rem 1.75rem; }
@media (max-width: 600px) { .dash-main { padding: 1.25rem 1rem 1.5rem; } }
.dash-main-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.dash-pretitle {
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
}
.dash-title {
  font-family: 'Newsreader', serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--text-primary);
}
.dash-range {
  display: inline-flex;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2px;
  background: var(--bg-subtle);
}
.dash-range button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  padding: 0.3rem 0.55rem;
  color: var(--text-tertiary);
  border-radius: 6px;
  cursor: default;
}
.dash-range button.is-active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* stat cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 700px) { .dash-stats { grid-template-columns: 1fr 1fr; } }
.dash-stat {
  position: relative;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--bg-elevated);
  will-change: transform, opacity;
}
.dash-stat.is-emphasis {
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.05), rgba(5, 150, 105, 0.0));
  border-color: rgba(5, 150, 105, 0.15);
}
.dash-stat-label {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-bottom: 0.4rem;
}
.dash-stat-value {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.dash-stat.is-emphasis .dash-stat-value { color: var(--emerald-500); }
.dash-stat-trend {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  font-family: 'JetBrains Mono', monospace;
}
.dash-trend-up   { color: var(--emerald-500); }
.dash-trend-flat { color: var(--text-tertiary); }
.dash-trend-down { color: var(--red-500); }

/* chart */
.dash-chart {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.1rem 0.85rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), var(--bg-elevated));
}
.dash-chart-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.5rem;
}
.dash-chart-label {
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  margin-bottom: 0.15rem;
}
.dash-chart-figure {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--emerald-500);
  letter-spacing: -0.01em;
}
.dash-chart-key {
  display: inline-flex; gap: 0.85rem;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
}
.dash-chart-key .key { display: inline-flex; align-items: center; gap: 0.35rem; }
.dash-chart-key .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.key-profit .dot { background: var(--emerald-500); }
.key-cost .dot   { background: rgba(10,10,10,0.25); }

.dash-chart-svg {
  width: 100%;
  height: 180px;
  display: block;
  overflow: visible;
}
.dash-chart-line {
  /* stroke-dasharray + dashoffset set by JS at scroll-in */
}
.dash-chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  padding: 0 0.15rem;
}

/* orders */
.dash-orders {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.dash-orders-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}
.dash-orders-title { display: inline-flex; align-items: center; gap: 0.5rem; }
.dash-orders-pill {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  padding: 0.18rem 0.45rem;
  background: var(--emerald-glow);
  color: var(--emerald-500);
  border-radius: 999px;
  font-weight: 500;
}
.dash-orders-link {
  font-size: 0.75rem;
  color: var(--blue-500);
  cursor: default;
}
.dash-orders-table { display: flex; flex-direction: column; }
.dash-orders-row {
  display: grid;
  grid-template-columns: 0.7fr 1.6fr 0.9fr 1fr 1fr 1fr 0.7fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  will-change: transform, opacity;
}
.dash-orders-row:last-child { border-bottom: 0; }
.dash-orders-thead {
  background: var(--bg-subtle);
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}
.dash-orders-row .ar { text-align: right; }
.dash-cost   { color: var(--red-500); }
.dash-profit { color: var(--emerald-500); font-weight: 500; }
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  padding: 0.18rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 500;
}
.badge-printful { color: #1f7a3d; border-color: rgba(31, 122, 61, 0.18); background: rgba(31,122,61,0.06); }
.badge-printify { color: #6b3aa1; border-color: rgba(107, 58, 161, 0.18); background: rgba(107,58,161,0.06); }
@media (max-width: 800px) {
  .dash-orders-row { grid-template-columns: 0.6fr 1.4fr 1fr 1fr; }
  .dash-orders-row > div:nth-child(3),
  .dash-orders-row > div:nth-child(7) { display: none; }
}

/* ── Features grid ──────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px)  { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

@property --feature-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.feature-card {
  position: relative;
  border-radius: 16px;
  padding: 1px;            /* room for the rotating border */
  background: var(--border-subtle);
  isolation: isolate;
  transition: transform 380ms var(--ease-out-quint),
              box-shadow 380ms var(--ease-out-quint);
  will-change: transform, opacity;
}
.feature-card:hover {
  transform: translateY(-4px);
}
.feature-card-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-elevated);
  border-radius: 15px;
  padding: 1.5rem 1.4rem 1.5rem;
  min-height: 180px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 380ms var(--ease-out-quint);
}
.feature-card:hover .feature-card-inner {
  box-shadow: var(--shadow-lg);
}

/* Rotating conic-gradient border, only active on hover */
.feature-card-shine {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: conic-gradient(
    from var(--feature-angle),
    rgba(37, 71, 208, 0) 0deg,
    rgba(37, 71, 208, 0.55) 70deg,
    rgba(5, 150, 105, 0.55) 130deg,
    rgba(37, 71, 208, 0) 220deg,
    rgba(37, 71, 208, 0) 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 280ms var(--ease-out-quint);
  pointer-events: none;
  z-index: 0;
}
.feature-card:hover .feature-card-shine {
  opacity: 1;
  animation: feature-spin 4s linear infinite;
}
@keyframes feature-spin {
  to { --feature-angle: 360deg; }
}

/* Fallback: browsers without @property animate via static gradient (still pretty) */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .feature-card-shine { display: none; }
}

.feature-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  transition: color 220ms ease, background-color 220ms ease, transform 280ms var(--ease-out-quint);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card:hover .feature-icon {
  color: var(--blue-500);
  background: rgba(37, 71, 208, 0.08);
  transform: scale(1.03) rotate(-2deg);
}
.feature-title {
  font-family: 'Newsreader', serif;
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.feature-body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ── Setup steps ────────────────────────────────────────── */
.setup {
  background:
    radial-gradient(circle at 50% 0%, rgba(37, 71, 208, 0.04), transparent 50%),
    var(--bg-subtle);
}
.setup-track {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

/* Connecting line — desktop horizontal */
.setup-line {
  position: absolute;
  top: 28px; /* aligned to center of step circle (56px / 2) */
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
}
.setup-line-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue-500), var(--emerald-500));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
@media (max-width: 800px) {
  .setup-line { display: none; }
}

.setup-steps {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 800px) {
  .setup-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.setup-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  will-change: transform, opacity;
}
@media (min-width: 800px) {
  .setup-step { align-items: center; text-align: center; }
}

.setup-step-num {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm), 0 0 0 6px var(--bg-subtle);
  z-index: 1;
}
.setup-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--blue-500);
  opacity: 0;
  pointer-events: none;
}
.setup-step-body {
  flex: 1;
}
@media (min-width: 800px) {
  .setup-step-body { max-width: 280px; }
}
.setup-step-title {
  font-family: 'Newsreader', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.setup-step-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}
.setup-step-meta {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--bg-elevated);
}
.setup-step-meta-emerald {
  color: var(--emerald-500);
  border-color: rgba(5, 150, 105, 0.18);
  background: rgba(5, 150, 105, 0.04);
}

/* ── Receipt / cost breakdown ───────────────────────────── */
.breakdown {
  background:
    radial-gradient(circle at 80% 20%, rgba(5, 150, 105, 0.04), transparent 55%),
    var(--bg-primary);
}
.receipt {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.receipt::before {
  /* perforated top edge for receipt feel */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background:
    radial-gradient(circle at 6px 0, var(--bg-primary) 4px, transparent 4.5px) 0 0 / 12px 6px repeat-x;
  pointer-events: none;
}
.receipt-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px dashed var(--border-default);
}
.receipt-head-l {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.receipt-order {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.receipt-head-r {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}
@media (max-width: 480px) {
  .receipt-head { padding: 1.25rem 1.25rem 0.85rem; }
  .receipt-head-r { width: 100%; font-size: 0.6875rem; }
  .receipt-block { padding: 0.85rem 1.25rem 1.1rem; }
  .receipt-profit { padding: 1.25rem; }
}

.receipt-block {
  padding: 1rem 1.5rem 1.25rem;
  border-bottom: 1px dashed var(--border-default);
}
.receipt-block:last-of-type { border-bottom: 0; }
.receipt-block-label {
  margin-bottom: 0.65rem;
  color: var(--text-tertiary);
}
.receipt-block-label-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.receipt-meta {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--emerald-500);
  background: rgba(5, 150, 105, 0.06);
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-weight: 500;
  text-transform: none;
}
.receipt-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  will-change: transform, opacity;
}
.receipt-label {
  flex: 1;
  display: inline-flex; align-items: center; gap: 0.55rem;
  flex-wrap: wrap;
}
.receipt-source { display: inline-flex; }
.receipt-source-text {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.receipt-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-feature-settings: "tnum" 1;
}
.receipt-neg { color: var(--red-500); }
.receipt-subtotal {
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-weight: 500;
  color: var(--text-primary);
}
.receipt-subtotal .receipt-label { color: var(--text-primary); }

/* Profit row */
.receipt-profit {
  position: relative;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(180deg, rgba(5, 150, 105, 0.07), rgba(5, 150, 105, 0.02));
  border-top: 1px solid rgba(5, 150, 105, 0.18);
  overflow: hidden;
  will-change: transform, opacity;
}
.receipt-profit-glow {
  position: absolute;
  inset: -40% -10%;
  background: radial-gradient(ellipse at center, var(--emerald-glow), transparent 60%);
  opacity: 0;
  pointer-events: none;
}
.receipt-profit-label {
  color: var(--emerald-500);
  margin-bottom: 0.2rem;
}
.receipt-profit-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.receipt-profit-value {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  color: var(--emerald-500);
  letter-spacing: -0.025em;
  z-index: 1;
}

/* ── Pricing ────────────────────────────────────────────── */
.pricing {
  background: var(--bg-subtle);
  position: relative;
}
.price-card-wrap {
  display: flex;
  justify-content: center;
}
.price-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.75rem;
  box-shadow:
    var(--shadow-xl),
    0 40px 80px -20px rgba(37, 71, 208, 0.14);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.price-card-glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 220px;
  background: radial-gradient(ellipse at center top, rgba(37, 71, 208, 0.10), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.price-tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: rgba(37, 71, 208, 0.06);
  border: 1px solid rgba(37, 71, 208, 0.16);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.price-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 71, 208, 0.2);
}
.price-amount {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}
.price-currency {
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: 0.6rem;
}
.price-value {
  font-size: clamp(3.5rem, 8vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  display: inline-block;
}
.price-cycle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0.75rem;
  text-align: left;
}
.price-cycle-top {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.price-cycle-bot {
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-top: 0.05rem;
}

.price-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
  margin: 0.5rem -0.5rem 1.4rem;
}

.price-features {
  list-style: none; padding: 0; margin: 0 0 1.6rem;
  text-align: left;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.price-features li {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.price-check {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.10);
  color: var(--emerald-500);
}

.price-cta {
  width: 100%;
  position: relative;
  animation: price-cta-pulse 4s ease-in-out infinite;
}
@keyframes price-cta-pulse {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(255,255,255,0.18) inset,
      0 6px 14px -4px var(--blue-glow);
  }
  50% {
    box-shadow:
      0 1px 0 rgba(255,255,255,0.18) inset,
      0 16px 36px -10px rgba(37, 71, 208, 0.35),
      0 0 0 6px rgba(37, 71, 208, 0.06);
  }
}

.price-launch-note {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--blue-500);
}
.price-launch-note .dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  margin: 0 0.5rem;
  opacity: 0.5;
}
.price-fineprint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}
.price-fineprint .dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* ── FAQ accordion ──────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 240ms ease, box-shadow 240ms ease;
  will-change: transform, opacity;
}
.faq-item:hover {
  border-color: var(--border-default);
}
.faq-item[open] {
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-family: 'Newsreader', serif;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.005em;
  transition: color 200ms ease;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::marker { content: ""; }

.faq-item:hover .faq-summary { color: var(--blue-500); }

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq-icon-bar {
  position: absolute;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform 240ms var(--ease-out-quint), background-color 200ms ease;
}
.faq-icon-h {
  left: 0; top: 8px;
  width: 18px; height: 2px;
}
.faq-icon-v {
  left: 8px; top: 0;
  width: 2px; height: 18px;
}
.faq-item[open] .faq-icon-v {
  transform: rotate(90deg);
}
.faq-item[open] .faq-icon-bar {
  background: var(--blue-500);
}

.faq-content {
  /* Height transition handled in JS via wrapper element */
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.faq-content p { margin: 0; }

/* ── Closing hero ───────────────────────────────────────── */
.closing {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}
.closing-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 75%);
  z-index: -2;
  pointer-events: none;
}
.closing-mesh {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 50%, rgba(5, 150, 105, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 70% 50%, rgba(37, 71, 208, 0.05) 0%, transparent 50%);
}
.closing-inner {
  max-width: 880px;
  margin: 0 auto;
}
.closing-h {
  margin: 0 auto;
}
.closing-cta-row {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.closing-fineprint {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}
.closing-fineprint .dot {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Pulsing emerald glow behind the lit "knowing" */
.word-accent.is-lit-pulse {
  position: relative;
}
.word-accent.is-lit-pulse::before {
  content: "";
  position: absolute;
  inset: -22% -10%;
  background: radial-gradient(ellipse at center, rgba(5, 150, 105, 0.18), transparent 65%);
  z-index: -1;
  border-radius: 999px;
  animation: word-glow-pulse 3.4s ease-in-out infinite;
}
@keyframes word-glow-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.95); }
  50%      { opacity: 0.85; transform: scale(1.05); }
}

/* ── Legal / prose pages ────────────────────────────────── */
.legal-page {
  padding: 9rem 0 6rem;
  background: var(--bg-primary);
}
.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.legal-head {
  margin-bottom: 3rem;
}
.legal-head .t-caption {
  margin-bottom: 0.85rem;
}
.legal-head h1 {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.legal-meta {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.prose h2 {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 2.75rem 0 0.75rem;
  scroll-margin-top: 6rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 1.85rem 0 0.4rem;
}
.prose p {
  margin: 0 0 1.1rem;
}
.prose a {
  color: var(--blue-500);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 240ms var(--ease-out-quint);
}
.prose a:hover {
  background-size: 100% 1px;
}
.prose ul {
  margin: 0 0 1.1rem;
  padding: 0 0 0 1.25rem;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding-left: 0.4rem;
  margin-bottom: 0.5rem;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 0.7rem;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-tertiary);
}
.prose strong {
  color: var(--text-primary);
  font-weight: 500;
}
.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  background: var(--bg-subtle);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  color: var(--text-primary);
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border-subtle);
  margin: 2.5rem 0;
}

/* ── Blog index ─────────────────────────────────────────── */
.blog-index {
  padding: 9rem 0 7rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.blog-index::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(37, 71, 208, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(5, 150, 105, 0.035) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}
.blog-index-inner {
  max-width: 720px;
  margin: 0 auto;
}
.blog-index-tag {
  margin-bottom: 1.5rem;
}
.blog-index-h {
  margin-bottom: 1.25rem;
}
.blog-index-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-bottom: 2.25rem;
}
.blog-index-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}
.blog-index-fineprint {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}
.blog-index-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
  margin: 0 0 2.75rem;
}
.blog-index-roadmap {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.5rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.blog-index-roadmap-label {
  color: var(--blue-500);
  margin-bottom: 1rem;
}
.blog-index-roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.blog-index-roadmap-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.blog-index-roadmap-tick {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-strong);
}

/* Article card — used on the blog index to list published posts */
.blog-article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.article-card {
  display: block;
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 280ms var(--ease-out-quint),
              box-shadow 320ms ease,
              border-color 240ms ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-default);
}
.article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}
.article-card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-500);
  background: rgba(37, 71, 208, 0.06);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}
.article-card-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.5;
}
.article-card-date,
.article-card-read {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}
.article-card-title {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.22;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.article-card-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}
.article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color 200ms ease;
}
.article-card-arrow {
  display: inline-block;
  transition: transform 240ms var(--ease-out-quint);
}
.article-card:hover .article-card-link {
  color: var(--blue-500);
}
.article-card:hover .article-card-arrow {
  transform: translateX(3px);
}

/* Article shell (placeholder) */
.blog-article {
  padding: 9rem 0 7rem;
  background: var(--bg-primary);
}
.blog-article-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.blog-article-placeholder {
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

/* ── Support page ───────────────────────────────────────── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 760px) {
  .support-grid { grid-template-columns: 1fr 1fr; }
}

.support-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}
.support-card-eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.support-card h2 {
  font-family: 'Newsreader', serif;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.support-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  line-height: 1.6;
}
.support-email-row {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.5rem 0.5rem 0.5rem 0.85rem;
}
.support-email-addr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9375rem;
  color: var(--text-primary);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-copy-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  white-space: nowrap;
}
.support-copy-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-500);
}
.support-copy-btn.is-copied {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--emerald-500);
}

/* Contact form */
.support-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.support-form label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
}
.support-form .field { position: relative; }
.support-form input,
.support-form textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 200ms ease, box-shadow 240ms ease;
  font-family: 'Inter', sans-serif;
}
.support-form input:focus,
.support-form textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(37, 71, 208, 0.10);
  animation: support-focus-breathe 2.4s ease-in-out infinite;
}
@keyframes support-focus-breathe {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 71, 208, 0.10); }
  50%      { box-shadow: 0 0 0 6px rgba(37, 71, 208, 0.06); }
}
.support-form textarea {
  resize: vertical;
  min-height: 110px;
}
.support-form button[type="submit"] {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: transform 320ms var(--ease-out-quint), opacity 240ms ease;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
}

.support-mini-faq {
  margin-top: 4rem;
}
.support-mini-faq h2 {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* ── Footer (shared shell) ──────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0 2rem;
  background: var(--bg-primary);
}
.footer-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Newsreader', serif;
  font-weight: 500;
  color: var(--text-primary);
}
.footer-logo img { height: 22px; width: auto; }
.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-meta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}
@media (min-width: 720px) {
  .footer-row {
    flex-direction: row;
    align-items: center;
  }
}

/* ── Waitlist modal ─────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 240ms var(--ease-out-quint), visibility 0s linear 240ms;
}
.waitlist-modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 240ms var(--ease-out-quint), visibility 0s linear 0s;
}

.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.waitlist-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow:
    var(--shadow-xl),
    0 30px 80px -20px rgba(10, 10, 10, 0.30);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 360ms var(--ease-out-quint), opacity 240ms ease;
  text-align: center;
}
.waitlist-modal.is-open .waitlist-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
@media (max-width: 520px) {
  .waitlist-card { padding: 2rem 1.5rem; }
}

.waitlist-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-tertiary);
  background: transparent;
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease;
}
.waitlist-close:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}
.waitlist-close:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.waitlist-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.waitlist-sub {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.waitlist-input {
  width: 100%;
  height: 48px;
  padding: 0 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: border-color 200ms ease, box-shadow 240ms ease;
}
.waitlist-input::placeholder {
  color: var(--text-tertiary);
}
.waitlist-input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(37, 71, 208, 0.10);
}
.waitlist-input.is-invalid {
  border-color: var(--red-500);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.waitlist-error {
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  color: var(--red-500);
  text-align: left;
}

.waitlist-submit {
  width: 100%;
  margin-top: 0.85rem;
  height: 48px;
}
.waitlist-submit[aria-busy="true"] {
  opacity: 0.85;
  pointer-events: none;
}

.waitlist-direct {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-align: center;
}
.waitlist-direct a {
  color: var(--blue-500);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(37, 71, 208, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 200ms ease;
}
.waitlist-direct a:hover {
  text-decoration-color: var(--blue-500);
}

/* Success state */
.waitlist-success {
  padding: 0.5rem 0;
}
.waitlist-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.10);
  color: var(--emerald-500);
  animation: waitlist-success-pop 480ms var(--ease-out-quint);
}
@keyframes waitlist-success-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Lock body scroll while modal open */
body.waitlist-open {
  overflow: hidden;
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-word > span { transform: none; opacity: 1; }
  .word-accent { color: var(--emerald-500); }
}
