/* ========================================================================
   ELAPS — Modern landing page stylesheet
   ======================================================================== */

/* ----- Animated CSS custom properties (modern @property) ----- */
@property --aurora-1 { syntax: '<color>'; inherits: false; initial-value: #FFCE85; }
@property --aurora-2 { syntax: '<color>'; inherits: false; initial-value: #14213D; }
@property --grad-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@property --shimmer-x { syntax: '<percentage>'; inherits: false; initial-value: -100%; }

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ----- Tokens ----- */
:root {
  /* Color system */
  --bg-dark: #08101F;
  --bg-dark-2: #0E1830;
  --bg-navy: #14213D;
  --bg-light: #FAF8F3;
  --bg-light-2: #F2EFE7;

  --text-on-dark: #F4FAFF;
  --text-on-dark-muted: rgba(244, 250, 255, 0.62);
  --text-on-dark-faint: rgba(244, 250, 255, 0.38);

  --text-on-light: #14213D;
  --text-on-light-muted: #4F646F;
  --text-on-light-faint: #8A9499;

  --accent: #FFCE85;
  --accent-bright: #FFD89E;
  --accent-pressed: #E5B26B;
  --accent-soft: rgba(255, 206, 133, 0.16);

  --border-on-dark: rgba(255, 255, 255, 0.08);
  --border-on-dark-strong: rgba(255, 255, 255, 0.16);
  --border-on-light: rgba(20, 33, 61, 0.08);
  --border-on-light-strong: rgba(20, 33, 61, 0.16);

  /* Layout */
  --max-width: 1200px;
  --gutter-mobile: 24px;
  --gutter-desktop: 48px;

  /* Type scale */
  --display-xxl: clamp(48px, 8.5vw, 128px);
  --display-xl:  clamp(40px, 6vw, 88px);
  --display-l:   clamp(32px, 4.5vw, 64px);
  --display-m:   clamp(28px, 3.5vw, 44px);
  --display-s:   clamp(22px, 2.4vw, 32px);
  --title-l: 22px;
  --title-m: 18px;
  --title-s: 16px;
  --body-l: 18px;
  --body-m: 16px;
  --body-s: 14px;
  --caption: 13px;
  --eyebrow: 12px;

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

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--gutter-desktop); }
}

/* ----- Section base ----- */
.section {
  position: relative;
  padding-block: clamp(80px, 12vw, 160px);
}
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--darker { background: var(--bg-dark-2); color: var(--text-on-dark); }
.section--light { background: var(--bg-light); color: var(--text-on-light); }

/* Section dividers (subtle hairlines) */
.section--dark + .section--dark { border-top: 1px solid var(--border-on-dark); }
.section--light + .section--light { border-top: 1px solid var(--border-on-light); }

/* Smooth dark→light transitions */
.section--dark + .section--light,
.section--darker + .section--light {
  border-top: none;
  background-image: linear-gradient(to bottom, var(--bg-dark) 0, var(--bg-light) 1px);
}

/* ----- Eyebrow & section label ----- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.section--light .eyebrow { color: var(--text-on-light-muted); }
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

/* ----- Display type ----- */
.display-xxl,
.display-xl,
.display-l,
.display-m,
.display-s {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.display-xxl { font-size: var(--display-xxl); letter-spacing: -0.045em; line-height: 0.9; }
.display-xl  { font-size: var(--display-xl);  letter-spacing: -0.04em;  line-height: 0.94; }
.display-l   { font-size: var(--display-l);   letter-spacing: -0.035em; line-height: 1.02; }
.display-m   { font-size: var(--display-m);   letter-spacing: -0.025em; line-height: 1.08; }
.display-s   { font-size: var(--display-s);   letter-spacing: -0.02em;  line-height: 1.18; }

.lead {
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.5;
  font-weight: 400;
  color: var(--text-on-dark-muted);
  max-width: 56ch;
}
.section--light .lead { color: var(--text-on-light-muted); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding-inline: 28px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 200ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 240ms var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #0A0F1F;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 28px -10px rgba(255, 206, 133, 0.6);
}
.btn--primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 14px 40px -10px rgba(255, 206, 133, 0.55);
}
.btn--primary:active { transform: translateY(0); background: var(--accent-pressed); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-on-dark);
  border: 1px solid var(--border-on-dark-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.section--light .btn--ghost {
  background: rgba(20, 33, 61, 0.04);
  color: var(--text-on-light);
  border-color: var(--border-on-light-strong);
}
.section--light .btn--ghost:hover { background: rgba(20, 33, 61, 0.08); }

.btn--small { height: 40px; padding-inline: 18px; font-size: 14px; }
.btn-icon { width: 16px; height: 16px; }

/* ----- Sticky nav ----- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-block: 14px;
  transition: background 240ms var(--ease-out), backdrop-filter 240ms var(--ease-out), border-color 240ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(8, 16, 31, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border-on-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.nav__mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-pressed) 100%);
  color: var(--bg-navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  transition: color 180ms var(--ease-out);
}
.nav__links a:hover { color: var(--text-on-dark); }
.nav__cta-mobile { display: inline-flex; }
.nav__cta-desktop { display: none; }
@media (min-width: 880px) {
  .nav__links { display: inline-flex; }
  .nav__cta-mobile { display: none; }
  .nav__cta-desktop { display: inline-flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-block: 120px 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(255, 206, 133, 0.12), transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 100%, rgba(20, 33, 61, 0.6), transparent 70%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
}
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content {
  display: grid;
  gap: 32px;
  max-width: 920px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-on-dark);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  width: fit-content;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.hero__title {
  font-weight: 700;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(180deg, var(--accent-bright) 0%, var(--accent-pressed) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { max-width: 60ch; }
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.hero__meta {
  display: flex;
  gap: 8px 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-on-dark-faint);
  margin-top: 4px;
}
.hero__meta-item { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta-item::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--text-on-dark-faint);
}
.hero__meta-item:first-child::before { display: none; }

/* ===== Mechanic section (3 phones) ===== */
.mechanic { position: relative; }
.mechanic__header {
  display: grid;
  gap: 20px;
  max-width: 720px;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.phones-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
}
@media (min-width: 880px) {
  .phones-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}
.phone-block { display: grid; gap: 24px; justify-items: center; }
.phone-block__caption {
  text-align: center;
  display: grid;
  gap: 8px;
}
.phone-block__caption-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
}
.phone-block__caption-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* iPhone mockup (CSS only) */
.phone {
  position: relative;
  width: 240px;
  aspect-ratio: 1 / 2.07;
  border-radius: 44px;
  background: linear-gradient(150deg, #1A1A1F 0%, #0B0B0E 100%);
  padding: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 60px 120px -40px rgba(255, 206, 133, 0.08);
}
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--bg-navy);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px 16px 18px;
}
.phone__notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}
.phone__statusbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.phone__statusbar-icons { display: flex; gap: 4px; align-items: center; opacity: 0.95; }
.phone__statusbar-icons svg { width: 12px; height: 12px; }
.phone__friction {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding-block: 12px;
}
.phone__app-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(140deg, #FF7A59 0%, #DC4C84 55%, #8E47C0 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 22px -10px rgba(220, 76, 132, 0.4);
}
.phone__app-icon svg {
  width: 26px;
  height: 26px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}
.phone__app-icon--tt {
  background: linear-gradient(140deg, #1A1A1F 0%, #24222C 50%, #4A1F35 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 22px -10px rgba(254, 44, 85, 0.45);
}
.phone__app-icon--reddit {
  background: linear-gradient(140deg, #FF7A1A 0%, #FF4500 55%, #C9341A 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 22px -10px rgba(255, 69, 0, 0.45);
}
.phone__sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  letter-spacing: -0.01em;
}
.phone__count {
  font-family: 'Inter', sans-serif;
  font-feature-settings: 'tnum';
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.phone__time {
  font-size: 10px;
  color: var(--text-on-dark-faint);
  margin-top: 4px;
}
.phone__bottom {
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}
.phone__cancel {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  font-weight: 500;
}
.phone__home {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
}

/* Mechanic footer note */
.mechanic__note {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  gap: 8px;
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
}
.mechanic__note p { color: var(--text-on-dark-muted); font-size: 17px; line-height: 1.55; }

/* ===== Curve section ===== */
.curve { position: relative; }
.curve__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}
@media (min-width: 1000px) {
  .curve__grid { grid-template-columns: 0.85fr 1.15fr; gap: 80px; }
}
.curve__copy { display: grid; gap: 24px; max-width: 480px; }
.curve__chart-wrap {
  position: relative;
  background: var(--bg-light-2);
  border-radius: 24px;
  padding: 32px 28px 24px;
  border: 1px solid var(--border-on-light);
}
@media (min-width: 1000px) {
  .curve__chart-wrap { padding: 48px 44px 36px; }
}
.curve__chart { width: 100%; height: auto; }
.curve__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-on-light-muted);
}
.curve__legend-item { display: inline-flex; align-items: center; gap: 8px; }
.curve__legend-dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 206, 133, 0.18);
}
.curve__legend-line {
  width: 18px; height: 2px;
  background: var(--bg-navy);
  border-radius: 999px;
}

/* ===== Pillars (three things) ===== */
.pillars__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: clamp(48px, 6vw, 72px);
}
@media (min-width: 880px) {
  .pillars__grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.pillar {
  background: #fff;
  border: 1px solid var(--border-on-light);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  gap: 16px;
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: var(--border-on-light-strong);
  box-shadow: 0 18px 40px -24px rgba(20, 33, 61, 0.18);
}
.pillar__num {
  font-family: 'Inter', monospace;
  font-feature-settings: 'tnum';
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent-pressed);
  text-transform: uppercase;
}
.pillar__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.pillar__body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-on-light-muted);
}

/* ===== Pricing ===== */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 72px);
  max-width: 880px;
  margin-inline: auto;
}
@media (min-width: 720px) {
  .pricing__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.price {
  background: #fff;
  border: 1px solid var(--border-on-light);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  gap: 24px;
}
.price--featured {
  background: var(--bg-navy);
  color: var(--text-on-dark);
  border-color: var(--bg-navy);
  position: relative;
  overflow: hidden;
}
.price--featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255, 206, 133, 0.18), transparent 60%);
  pointer-events: none;
}
.price__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.price__name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
}
.price--featured .price__name { color: var(--accent); }
.price__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-bright);
  padding: 4px 10px;
  border-radius: 999px;
}
.price__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price__amount-num {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.price__amount-unit {
  font-size: 16px;
  color: var(--text-on-light-muted);
}
.price--featured .price__amount-unit { color: var(--text-on-dark-muted); }
.price__amount-or {
  display: block;
  font-size: 13px;
  color: var(--text-on-light-faint);
  margin-top: 6px;
}
.price--featured .price__amount-or { color: var(--text-on-dark-muted); }
.price__list { display: grid; gap: 12px; }
.price__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}
.price__list li svg {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  color: var(--accent);
}
.price--featured .price__list li svg { color: var(--accent); }
.price--standard .price__list li svg { color: var(--text-on-light-faint); }
.price__cta { width: 100%; }
.price--standard .price__cta {
  background: rgba(20, 33, 61, 0.06);
  color: var(--text-on-light);
  border: 1px solid var(--border-on-light-strong);
  height: 52px;
  border-radius: 999px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms var(--ease-out);
}
.price--standard .price__cta:hover { background: rgba(20, 33, 61, 0.1); }
.pricing__footnote {
  text-align: center;
  font-size: 13px;
  color: var(--text-on-light-faint);
  margin-top: 32px;
}

/* ===== FAQ ===== */
.faq__list {
  margin-top: clamp(40px, 5vw, 64px);
  max-width: 820px;
  margin-inline: auto;
  border-top: 1px solid var(--border-on-light);
}
.faq__item {
  border-bottom: 1px solid var(--border-on-light);
}
.faq__question {
  width: 100%;
  text-align: left;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-on-light);
  transition: color 180ms var(--ease-out);
}
.faq__question:hover { color: var(--accent-pressed); }
.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 999px;
  transition: transform 280ms var(--ease-out);
}
.faq__icon::before {
  top: 50%; left: 0; right: 0;
  height: 2px;
  transform: translateY(-50%);
}
.faq__icon::after {
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  transform: translateX(-50%);
}
.faq__item[data-open="true"] .faq__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}
.faq__item[data-open="true"] .faq__answer { grid-template-rows: 1fr; }
.faq__answer-inner {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-light-muted);
  max-width: 64ch;
}
.faq__item[data-open="true"] .faq__answer-inner { padding-bottom: 28px; }

/* ===== Final CTA ===== */
.final {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.final__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(255, 206, 133, 0.14), transparent 60%),
    var(--bg-dark);
}
.final__inner {
  display: grid;
  gap: 32px;
  justify-items: center;
  max-width: 820px;
  margin-inline: auto;
}
.final__title { font-weight: 700; }
.final__lead { color: var(--text-on-dark-muted); }
.final__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.final__meta {
  font-size: 13px;
  color: var(--text-on-dark-faint);
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-top: 1px solid var(--border-on-dark);
  padding-block: 64px 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 720px) {
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr; gap: 64px; }
}
.footer__brand-block { display: grid; gap: 16px; max-width: 360px; }
.footer__brand-tagline { color: var(--text-on-dark-muted); font-size: 15px; line-height: 1.55; }
.footer__col-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-dark-faint);
  margin-bottom: 16px;
}
.footer__col-list { display: grid; gap: 12px; }
.footer__col-list a {
  font-size: 15px;
  color: var(--text-on-dark-muted);
  transition: color 180ms var(--ease-out);
}
.footer__col-list a:hover { color: var(--text-on-dark); }
.footer__bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-on-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-on-dark-faint);
}

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== Legal pages (privacy/terms/support) ===== */
.legal {
  padding-block: 140px 100px;
  background: var(--bg-light);
  color: var(--text-on-light);
  min-height: 100vh;
}
.legal__inner {
  max-width: 780px;
  margin-inline: auto;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-light-muted);
  margin-bottom: 32px;
  transition: color 180ms var(--ease-out);
}
.legal__back:hover { color: var(--accent-pressed); }
.legal__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-on-light-muted);
  margin-bottom: 16px;
}
.legal__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 16px;
}
.legal__updated {
  color: var(--text-on-light-faint);
  font-size: 14px;
  margin-bottom: 56px;
}
.legal__content { display: grid; gap: 28px; }
.legal__content h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 16px;
}
.legal__content h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.legal__content p,
.legal__content li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-on-light-muted);
}
.legal__content ul {
  display: grid;
  gap: 8px;
  padding-left: 0;
}
.legal__content ul li {
  position: relative;
  padding-left: 22px;
}
.legal__content ul li::before {
  content: '';
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.legal__content a {
  color: var(--accent-pressed);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal__content strong {
  color: var(--text-on-light);
  font-weight: 600;
}

/* Support page Q&A list */
.support__list { display: grid; gap: 0; margin-top: 16px; }
.support__list .faq__item { border-bottom: 1px solid var(--border-on-light); }
.support__list .faq__item:first-child { border-top: 1px solid var(--border-on-light); }

.support__contact {
  margin-top: 64px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border-on-light);
  border-radius: 20px;
  display: grid;
  gap: 16px;
}
.support__contact h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.support__contact p { font-size: 15px; color: var(--text-on-light-muted); line-height: 1.55; }
.support__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-navy);
  color: var(--text-on-dark);
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  width: fit-content;
  transition: transform 180ms var(--ease-out);
}
.support__email:hover { transform: translateY(-1px); color: var(--accent); }

/* =========================================================================
   MODERN EFFECTS LAYER
   Cursor spotlight, aurora, magnetic buttons, 3D tilts, scroll-draw SVG,
   marquee, animated gradients, shimmer, glows, live countdowns
   ========================================================================= */

/* ----- Hero cursor spotlight + aurora ----- */
.hero {
  --mouse-x: 50%;
  --mouse-y: 35%;
}
.hero__spotlight {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 206, 133, 0.18),
    transparent 50%
  );
  transition: opacity 400ms var(--ease-out);
  opacity: 0;
}
.hero:hover .hero__spotlight { opacity: 1; }

.hero__aurora {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 80%;
  z-index: -2;
  pointer-events: none;
  filter: blur(110px) saturate(120%);
  opacity: 0.32;
  background:
    radial-gradient(38% 46% at 25% 55%, var(--aurora-1) 0%, transparent 60%),
    radial-gradient(32% 40% at 72% 38%, #3F5D8A 0%, transparent 65%),
    radial-gradient(42% 48% at 52% 82%, var(--aurora-2) 0%, transparent 70%);
  animation: auroraDrift 22s var(--ease-in-out) infinite;
}
@keyframes auroraDrift {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
    --aurora-1: #FFCE85;
    --aurora-2: #14213D;
  }
  33% {
    transform: translate3d(-3%, 2%, 0) scale(1.05);
    --aurora-1: #E5B26B;
    --aurora-2: #1C2A4A;
  }
  66% {
    transform: translate3d(3%, -2%, 0) scale(1.08);
    --aurora-1: #FFD89E;
    --aurora-2: #243355;
  }
}

/* ----- Animated gradient text on hero "boring." ----- */
.hero__title em {
  background: linear-gradient(
    var(--grad-angle, 180deg),
    #FFD89E 0%,
    #FFCE85 40%,
    #E5B26B 70%,
    #FFCE85 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 8s var(--ease-in-out) infinite, gradAngle 12s linear infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
}
@keyframes gradAngle {
  0%   { --grad-angle: 180deg; }
  100% { --grad-angle: 540deg; }
}

/* ----- Hero badge: pulsing live dot ----- */
.hero__badge-dot {
  animation: livePulse 2s var(--ease-in-out) infinite;
}
@keyframes livePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 206, 133, 0.6), 0 0 12px var(--accent);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 206, 133, 0), 0 0 20px var(--accent);
    transform: scale(1.1);
  }
}

/* ----- Magnetic button ----- */
.btn--magnetic {
  --mx: 0;
  --my: 0;
  transform: translate(var(--mx), var(--my));
  transition: transform 280ms var(--ease-out), background 200ms var(--ease-out), box-shadow 240ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn--magnetic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 65%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: var(--shimmer-x, -100%) 0;
  transition: --shimmer-x 800ms var(--ease-out);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.btn--magnetic:hover::before {
  --shimmer-x: 200%;
}

/* ----- Marquee strip ----- */
.marquee {
  position: relative;
  background: var(--bg-dark-2);
  border-block: 1px solid var(--border-on-dark);
  overflow: hidden;
  padding-block: 20px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
  will-change: transform;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-on-dark-muted);
  white-space: nowrap;
}
.marquee__item span:nth-child(2) {
  color: var(--text-on-dark);
  font-weight: 600;
}
.marquee__dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
}
@keyframes marqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ----- Phone mockup live effects ----- */
.phone {
  transition: transform 600ms var(--ease-out);
  will-change: transform;
  animation: phoneFloat 6s var(--ease-in-out) infinite;
}
.phone-block:nth-child(2) .phone { animation-delay: 1.5s; }
.phone-block:nth-child(3) .phone { animation-delay: 3s; }
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.phone-block:hover .phone {
  animation-play-state: paused;
  transform: translateY(-12px) scale(1.02);
}
.phone__count {
  display: inline-block;
}

/* ----- Curve SVG draw on scroll ----- */
.curve__chart path[stroke="#14213D"] {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1800ms var(--ease-out);
}
.curve__chart-wrap.is-visible .curve__chart path[stroke="#14213D"] {
  stroke-dashoffset: 0;
}
.curve__chart circle {
  transform-origin: center;
  transform: scale(0);
  transition: transform 480ms var(--ease-out);
}
.curve__chart-wrap.is-visible .curve__chart circle {
  transform: scale(1);
}
.curve__chart-wrap.is-visible .curve__chart circle:nth-of-type(1) { transition-delay: 600ms; }
.curve__chart-wrap.is-visible .curve__chart circle:nth-of-type(2) { transition-delay: 800ms; }
.curve__chart-wrap.is-visible .curve__chart circle:nth-of-type(3) { transition-delay: 1000ms; }
.curve__chart-wrap.is-visible .curve__chart circle:nth-of-type(4) { transition-delay: 1200ms; }
.curve__chart-wrap.is-visible .curve__chart circle:nth-of-type(5) { transition-delay: 1400ms; }
.curve__chart-wrap.is-visible .curve__chart circle:nth-of-type(6) { transition-delay: 1600ms; }

/* Pulsing curve dots after they appear */
.curve__chart-wrap.is-visible .curve__chart circle {
  animation: dotPulse 2.6s var(--ease-in-out) infinite 2s;
}
@keyframes dotPulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 206, 133, 0)); }
  50% { filter: drop-shadow(0 0 6px rgba(255, 206, 133, 0.7)); }
}

/* ----- 3D tilt cards ----- */
.tilt {
  --rx: 0deg;
  --ry: 0deg;
  --tg: 0;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
  position: relative;
}
.tilt::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    300px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 206, 133, calc(0.14 * var(--tg))),
    transparent 55%
  );
  transition: opacity 240ms var(--ease-out);
  opacity: var(--tg, 0);
  mix-blend-mode: plus-lighter;
}

/* ----- Pricing featured card subtle glow accent ----- */
.price--featured > * { position: relative; z-index: 1; }

/* ----- Shimmer on price tag ----- */
.price__tag {
  position: relative;
  overflow: hidden;
}
.price__tag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 60%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: -100% 0;
  animation: shimmerSweep 3.2s ease-in-out infinite;
}
@keyframes shimmerSweep {
  0%, 100% { background-position: -100% 0; }
  60% { background-position: 200% 0; }
}

/* ----- Final CTA aurora ----- */
.final__glow {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255, 206, 133, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 30% 30%, rgba(74, 111, 165, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(255, 206, 133, 0.12), transparent 60%),
    var(--bg-dark);
  animation: finalGlow 14s var(--ease-in-out) infinite;
}
@keyframes finalGlow {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.05) rotate(2deg); }
}

/* ----- Stat strip (counters) ----- */
.stats {
  background: var(--bg-dark-2);
  border-top: 1px solid var(--border-on-dark);
  padding-block: clamp(56px, 7vw, 96px);
}
.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 720px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}
.stat {
  display: grid;
  gap: 12px;
  border-left: 1px solid var(--border-on-dark);
  padding-left: 24px;
}
@media (max-width: 719px) {
  .stat { border-left: 0; border-top: 1px solid var(--border-on-dark); padding-left: 0; padding-top: 24px; }
  .stat:first-child { border-top: 0; padding-top: 0; }
}
.stat__num {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-feature-settings: 'tnum';
  background: linear-gradient(180deg, #FFD89E 0%, #E5B26B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-muted);
  text-transform: uppercase;
}
.stat__sub {
  font-size: 15px;
  color: var(--text-on-dark-faint);
  line-height: 1.5;
  max-width: 28ch;
}

/* ----- Section transition mask (fade between sections) ----- */
.section--dark + .section--light::before,
.section--darker + .section--light::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(8, 16, 31, 0.4), transparent);
  pointer-events: none;
}

/* ----- Subtle grain overlay (premium feel) ----- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Smooth scroll snap for the phone row on mobile ----- */
@media (max-width: 879px) {
  .phones-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 24px;
    padding-inline: 4px;
    margin-inline: -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .phones-row::-webkit-scrollbar { display: none; }
  .phone-block {
    scroll-snap-align: center;
    flex: 0 0 auto;
    width: min(280px, 80vw);
  }
}

/* ----- Reduced motion overrides for new effects ----- */
@media (prefers-reduced-motion: reduce) {
  .hero__aurora,
  .hero__title em,
  .hero__badge-dot,
  .marquee__track,
  .phone,
  .phone__count::after,
  .price__tag::before,
  .price--featured::after,
  .final__glow,
  .curve__chart circle {
    animation: none !important;
  }
  .curve__chart path[stroke="#14213D"] { stroke-dashoffset: 0 !important; }
  .curve__chart circle { transform: scale(1) !important; }
  .marquee__track { transform: none !important; }
  .btn--magnetic { transform: none !important; }
}
