/* ============================================================
   OATH — Marketing Website Styles
   Design tokens mirror constants/theme.ts from the app
   ============================================================ */

/* ─── Google Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,800;1,700;1,800&display=swap');

/* ─── Custom Properties ─── */
:root {
  /* Colors (from app theme.ts) */
  --bg:            #0A0E0D;
  --surface:       #141A17;
  --border:        #1C2420;
  --primary:       #F7E7CE;
  --secondary:     #A89F91;
  --muted:         #5C5A55;
  --success:       #2D5F4C;
  --success-light: #3A7D63;
  --flame:         #E8764B;
  --flame-light:   #F09060;
  --ember:         #D4874D;
  --gold-light:    #FFF5E6;
  --white:         #FAFAFA;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --sp-xs:  4px;
  --sp-sm:  8px;
  --sp-md:  16px;
  --sp-lg:  24px;
  --sp-xl:  32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
  --sp-4xl: 96px;
  --sp-5xl: 128px;

  /* Radius */
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 999px;

  /* Motion */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 200ms;
  --dur-base: 350ms;
  --dur-slow: 600ms;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
::selection { background: var(--flame); color: var(--bg); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--border); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: var(--r-pill); }

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

/* ─── Typography ─── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
}
.label-caps {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.body-lg {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  color: var(--secondary);
}
.body-md {
  font-size: 16px;
  line-height: 1.65;
  color: var(--secondary);
}

em { font-style: italic; color: var(--flame); }

/* ─── Scroll animations ─── */
.fade-in, .fade-in-left, .fade-in-right {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-expo),
              transform var(--dur-slow) var(--ease-expo);
}
.fade-in       { transform: translateY(28px); }
.fade-in-left  { transform: translateX(-36px); }
.fade-in-right { transform: translateX(36px); }
.fade-in.is-visible,
.fade-in-left.is-visible,
.fade-in-right.is-visible {
  opacity: 1;
  transform: none;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--dur-base) var(--ease-expo);
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(247,231,206,0.2);
}
.btn--flame {
  background: var(--flame);
  color: var(--bg);
}
.btn--flame:hover {
  background: var(--flame-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(232,118,75,0.3);
}
.btn--ghost {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn--nav {
  background: var(--flame);
  color: var(--bg);
  padding: 8px 18px;
  font-size: 13px;
}
.btn--nav:hover {
  background: var(--flame-light);
  transform: translateY(-1px);
}
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--full { width: 100%; justify-content: center; }
.btn__icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ─── Section headers ─── */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-4xl);
}
.section-header .label-caps {
  margin-bottom: var(--sp-md);
  display: block;
}
.section-header .display-lg {
  margin-bottom: var(--sp-lg);
}
.section-header .body-lg {
  max-width: 560px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  transition: background var(--dur-base) var(--ease-in-out),
              border-color var(--dur-base) var(--ease-in-out),
              backdrop-filter var(--dur-base) var(--ease-in-out);
  border-bottom: 1px solid transparent;
}
.nav.nav--scrolled {
  background: rgba(10,14,13,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__flame-icon {
  width: 22px;
  height: 22px;
}
.nav__wordmark {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--primary);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  transition: color var(--dur-fast);
}
.nav__link:hover { color: var(--primary); }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--sp-4xl) 0 var(--sp-3xl);
}
.hero__ambient {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}
.hero__ambient--flame {
  width: 700px;
  height: 500px;
  right: -100px;
  top: 10%;
  background: radial-gradient(ellipse, rgba(232,118,75,0.09) 0%, transparent 70%);
}
.hero__ambient--green {
  width: 500px;
  height: 400px;
  left: -100px;
  bottom: 10%;
  background: radial-gradient(ellipse, rgba(45,95,76,0.12) 0%, transparent 70%);
}
.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4xl);
  align-items: center;
}
.hero__copy {
  max-width: 560px;
}
.hero__eyebrow {
  margin-bottom: var(--sp-lg);
  display: block;
}
.hero__headline {
  margin-bottom: var(--sp-lg);
}
.hero__sub {
  margin-bottom: var(--sp-xl);
  max-width: 440px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}
.hero__social-proof {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}
.hero__proof-text {
  font-size: 13px;
  color: var(--muted);
}

/* Avatar stack */
.avatar-stack {
  display: flex;
}
.avatar-stack__item {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  margin-left: -8px;
}
.avatar-stack__item:first-child { margin-left: 0; }

/* Phone mockup */
.hero__mockup {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-stack {
  position: relative;
  width: 280px;
  height: 560px;
}
.phone {
  position: absolute;
  border-radius: 40px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(255,255,255,0.07),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  background: var(--surface);
}
.phone--primary {
  width: 260px;
  height: 520px;
  left: 10px;
  top: 20px;
  z-index: 2;
  transform: rotate(-2deg);
  animation: float-primary 5s ease-in-out infinite alternate;
}
.phone--secondary {
  width: 240px;
  height: 480px;
  right: -20px;
  top: 0;
  z-index: 1;
  transform: rotate(4deg);
  opacity: 0.55;
  animation: float-secondary 6.5s ease-in-out infinite alternate;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.phone__gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--surface) 0%, var(--success) 40%, var(--flame) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone__logo {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--primary);
  opacity: 0.9;
}

@keyframes float-primary {
  0%   { transform: rotate(-2deg) translateY(0); }
  100% { transform: rotate(-2deg) translateY(-12px); }
}
@keyframes float-secondary {
  0%   { transform: rotate(4deg) translateY(-6px); }
  100% { transform: rotate(4deg) translateY(8px); }
}

/* Floating badges */
.hero__badge {
  position: absolute;
  background: rgba(20,26,23,0.92);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 10px 16px;
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.badge--streak {
  top: 30px;
  left: -40px;
  animation: float-badge-1 4s ease-in-out infinite alternate;
}
.badge--kept {
  bottom: 60px;
  right: -30px;
  animation: float-badge-2 5.5s ease-in-out infinite alternate;
}
@keyframes float-badge-1 {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}
@keyframes float-badge-2 {
  0%   { transform: translateY(-4px); }
  100% { transform: translateY(6px); }
}
.badge__flame { font-size: 22px; }
.badge__number {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--flame);
  line-height: 1;
}
.badge__label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.badge--kept .badge__icon {
  width: 18px;
  height: 18px;
  color: var(--success-light);
}
.badge--kept span {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-cue__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scroll-cue 2s ease-in-out infinite;
}
@keyframes scroll-cue {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.2); }
}

/* ═══════════════════════════════════════
   STATS BAR
═══════════════════════════════════════ */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-3xl) 0;
}
.stats-bar__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-lg);
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
}
.stat-item {
  text-align: center;
}
.stat-item__number {
  color: var(--flame);
  margin-bottom: var(--sp-xs);
}
.stat-item__label {
  font-size: 14px;
  color: var(--secondary);
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   FEATURE PILLS
═══════════════════════════════════════ */
.feature-pills {
  padding: var(--sp-2xl) 0;
  border-bottom: 1px solid var(--border);
}
.feature-pills__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}
.feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  transition: border-color var(--dur-base) var(--ease-expo),
              transform var(--dur-base) var(--ease-expo);
}
.feature-pill:hover {
  border-color: rgba(232,118,75,0.35);
  transform: translateY(-2px);
}
.feature-pill__icon {
  width: 18px;
  height: 18px;
  color: var(--flame);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.feature-pill__icon svg { width: 18px; height: 18px; }
.feature-pill__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  white-space: nowrap;
}

/* ═══════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════ */
.how-it-works {
  padding: var(--sp-5xl) 0;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5xl);
}
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4xl);
  align-items: center;
}
.step--reverse .step__content { order: 2; }
.step--reverse .step__visual  { order: 1; }

.step__number {
  display: inline-block;
  margin-bottom: var(--sp-md);
  color: var(--flame);
}
.step__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  margin-bottom: var(--sp-md);
  line-height: 1.1;
}
.step__body {
  margin-bottom: var(--sp-xl);
}
.step__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}
.chip--flame {
  border-color: rgba(232,118,75,0.4);
  color: var(--flame);
  background: rgba(232,118,75,0.06);
}
.chip svg { width: 14px; height: 14px; }

.step__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.step__phone-frame {
  width: 240px;
  height: 480px;
  border-radius: 36px;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 32px 64px rgba(0,0,0,0.6),
    0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
.step__phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.step__phone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step:nth-child(1) .step__phone-placeholder {
  background: linear-gradient(160deg, #141A17 0%, #1C3828 60%, #2D5F4C 100%);
}
.step:nth-child(2) .step__phone-placeholder {
  background: linear-gradient(160deg, #141A17 0%, #2B1A10 60%, #E8764B22 100%);
}
.step:nth-child(3) .step__phone-placeholder {
  background: linear-gradient(160deg, #141A17 0%, #1A1800 60%, #33280020 100%);
}

/* ═══════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════ */
.features {
  padding: var(--sp-5xl) 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(20,26,23,0.4) 100%);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-expo),
              transform var(--dur-base) var(--ease-expo),
              box-shadow var(--dur-base) var(--ease-expo);
  position: relative;
}
.feature-card:hover {
  border-color: rgba(232,118,75,0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.feature-card--wide {
  grid-column: span 2;
}
.feature-card--full {
  grid-column: span 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  background: linear-gradient(135deg, rgba(51,43,0,0.4) 0%, rgba(45,95,76,0.2) 100%);
  border-color: rgba(58,125,99,0.3);
}
.feature-card--full:hover {
  border-color: rgba(58,125,99,0.6);
}
.feature-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(232,118,75,0.1);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-lg);
  color: var(--flame);
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card__icon--green {
  background: rgba(45,95,76,0.2);
  color: var(--success-light);
}
.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: var(--sp-sm);
  line-height: 1.3;
}
.feature-card__body {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.65;
}
.feature-card--full .feature-card__icon { margin-bottom: 0; }
.feature-card--full .feature-card__content {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}
.feature-card--full .feature-card__cta { flex-shrink: 0; }

/* CSS Flame icon (3 layers) */
.flame-icon {
  position: relative;
  width: 26px;
  height: 26px;
}
.flame-layer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50% 50% 30% 30% / 60% 60% 40% 40%;
}
.flame-layer--outer {
  width: 22px;
  height: 26px;
  background: var(--flame);
  animation: flicker 1.8s ease-in-out infinite alternate;
}
.flame-layer--mid {
  width: 16px;
  height: 20px;
  background: var(--ember);
  animation: flicker 1.3s 0.2s ease-in-out infinite alternate;
}
.flame-layer--inner {
  width: 8px;
  height: 12px;
  background: #FFD666;
  animation: flicker 0.9s 0.4s ease-in-out infinite alternate;
}
@keyframes flicker {
  0%   { transform: translateX(-50%) scaleY(1) scaleX(1); }
  33%  { transform: translateX(-50%) scaleY(1.08) scaleX(0.93); }
  66%  { transform: translateX(-50%) scaleY(0.95) scaleX(1.05); }
  100% { transform: translateX(-50%) scaleY(1.04) scaleX(0.97); }
}

/* ═══════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════ */
.testimonials-section {
  padding: var(--sp-5xl) 0;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  justify-content: center;
  margin-bottom: var(--sp-3xl);
}
.rating-row__stars {
  color: var(--flame);
  font-size: 20px;
  letter-spacing: 2px;
}
.rating-row__text {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
}
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-4xl);
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  transition: border-color var(--dur-base);
}
.testimonial:hover { border-color: rgba(247,231,206,0.15); }
.testimonial__quote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--primary);
  margin-bottom: var(--sp-lg);
  font-style: italic;
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.testimonial__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.testimonial__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.testimonial__streak {
  font-size: 12px;
  color: var(--muted);
}

/* Marquee strip */
.marquee-section {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--sp-lg);
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-item {
  width: 180px;
  height: 360px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.marquee-placeholder {
  width: 100%;
  height: 100%;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════
   PRICING
═══════════════════════════════════════ */
.pricing {
  padding: var(--sp-5xl) 0;
}
.pricing__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-3xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 4px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.toggle-btn {
  padding: 8px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all var(--dur-fast) var(--ease-in-out);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.toggle-btn--active {
  background: var(--bg);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.toggle-badge {
  background: var(--success);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: var(--r-pill);
}
.pricing__cards {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--sp-lg);
  max-width: 820px;
  margin: 0 auto var(--sp-3xl);
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--sp-xl);
  position: relative;
  transition: transform var(--dur-base) var(--ease-expo);
}
.pricing-card:hover { transform: translateY(-2px); }
.pricing-card--pro {
  border-color: rgba(232,118,75,0.5);
  box-shadow: 0 0 60px rgba(232,118,75,0.08);
}
.pricing-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,118,75,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--flame);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.pricing-card__header {
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border);
}
.pricing-card__tier {
  margin-bottom: var(--sp-md);
}
.pricing-card__price {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--sp-xs);
}
.pricing-card__per {
  font-size: 13px;
  color: var(--muted);
}
.pricing-card__trial {
  font-size: 13px;
  color: var(--success-light);
  font-weight: 500;
  margin-top: var(--sp-sm);
}
.pricing-card__features {
  margin-bottom: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.feat {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.5;
}
.feat__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.feat--check .feat__icon { color: var(--success-light); }
.feat--cross .feat__icon { color: var(--muted); }
.feat--gold { color: var(--primary); }
.feat--gold .feat__icon { color: var(--flame); }
.pricing-card__legal {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: var(--sp-md);
}

/* FAQ */
.pricing__faq {
  max-width: 640px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  padding: var(--sp-lg) 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: color var(--dur-fast);
}
.faq-item summary:hover { color: var(--flame); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  transition: transform var(--dur-base) var(--ease-expo), color var(--dur-fast);
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--flame);
}
.faq-item p {
  padding-bottom: var(--sp-lg);
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   FINAL CTA
═══════════════════════════════════════ */
.final-cta {
  padding: var(--sp-5xl) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(20,26,23,0.5) 100%);
}
.final-cta__inner {
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
}
.final-cta__flame {
  margin: 0 auto var(--sp-xl);
  width: 56px;
  height: 56px;
  position: relative;
}
.final-cta__flame .flame-layer--outer { width: 48px; height: 56px; }
.final-cta__flame .flame-layer--mid  { width: 34px; height: 42px; }
.final-cta__flame .flame-layer--inner { width: 18px; height: 26px; }
.final-cta .display-xl { margin-bottom: var(--sp-lg); }
.final-cta .body-lg { margin-bottom: var(--sp-xl); }
.final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-md);
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-4xl) 0 var(--sp-xl);
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4xl);
  margin-bottom: var(--sp-3xl);
  padding-bottom: var(--sp-3xl);
  border-bottom: 1px solid var(--border);
}
.footer__tagline {
  font-size: 14px;
  color: var(--muted);
  margin: var(--sp-md) 0 var(--sp-xl);
  line-height: 1.6;
}
.footer__appstore {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: border-color var(--dur-fast);
}
.footer__appstore:hover { border-color: var(--primary); }
.footer__appstore svg { width: 18px; height: 18px; }
.footer__links {
  display: flex;
  gap: var(--sp-4xl);
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.footer__col-title { margin-bottom: var(--sp-xs); }
.footer__col a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--dur-fast);
}
.footer__col a:hover { color: var(--primary); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-md);
  font-size: 13px;
  color: var(--muted);
}

/* ═══════════════════════════════════════
   LEGAL PAGES (privacy.html, tos.html)
═══════════════════════════════════════ */
.legal-page {
  padding: var(--sp-4xl) 0 var(--sp-5xl);
}
.legal-page__header {
  margin-bottom: var(--sp-4xl);
  padding-bottom: var(--sp-3xl);
  border-bottom: 1px solid var(--border);
}
.legal-page__header h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  margin-bottom: var(--sp-md);
}
.legal-page__updated {
  font-size: 14px;
  color: var(--muted);
}
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--primary);
  margin-top: var(--sp-4xl);
  margin-bottom: var(--sp-lg);
}
.legal-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
}
.legal-content p {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
}
.legal-content ul, .legal-content ol {
  padding-left: var(--sp-xl);
  margin-bottom: var(--sp-lg);
}
.legal-content li {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-sm);
  list-style: disc;
}
.legal-content ol li { list-style: decimal; }
.legal-content a {
  color: var(--flame);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--flame-light); }
.legal-content strong { color: var(--primary); font-weight: 600; }
.legal-content .legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--sp-xl);
  font-size: 14px;
}
.legal-content .legal-table th {
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  padding: var(--sp-sm) var(--sp-md);
  text-align: left;
  border: 1px solid var(--border);
}
.legal-content .legal-table td {
  color: var(--secondary);
  padding: var(--sp-sm) var(--sp-md);
  border: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  margin-bottom: var(--sp-3xl);
}
.legal-toc h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-md);
}
.legal-toc ol {
  padding-left: var(--sp-lg);
  margin: 0;
}
.legal-toc li {
  margin-bottom: 6px;
  list-style: decimal;
}
.legal-toc a {
  font-size: 14px;
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.legal-toc a:hover { color: var(--flame); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--wide { grid-column: span 2; }
  .feature-card--full {
    grid-column: span 2;
    flex-direction: column;
    align-items: flex-start;
  }
  .testimonials { grid-template-columns: 1fr; gap: var(--sp-md); }
}

@media (max-width: 768px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__sub { max-width: 100%; margin: 0 auto var(--sp-xl); }
  .hero__ctas { justify-content: center; }
  .hero__social-proof { justify-content: center; }
  .hero__mockup { margin-top: var(--sp-3xl); }
  .phone-stack { width: 220px; height: 440px; }
  .phone--primary { width: 210px; height: 420px; left: 5px; top: 10px; }
  .phone--secondary { display: none; }
  .badge--streak { left: -10px; }
  .badge--kept { right: -10px; }

  .stats-bar__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
    text-align: center;
  }
  .stat-divider { display: none; }

  .step {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }
  .step--reverse .step__content { order: unset; }
  .step--reverse .step__visual  { order: unset; }
  .step__visual { order: -1; }

  .features__grid {
    grid-template-columns: 1fr;
  }
  .feature-card--wide,
  .feature-card--full { grid-column: span 1; }

  .pricing__cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  .pricing-card--pro { order: -1; }

  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--sp-3xl);
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  .nav__link { display: none; }

  .testimonials { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .btn--ghost { width: auto; }
  .footer__links { flex-direction: column; gap: var(--sp-xl); }
}

/* ─── Pricing: shared features list ─── */
.pricing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md) var(--sp-xl);
  max-width: 820px;
  margin: 0 auto var(--sp-3xl);
  list-style: none;
  padding: 0;
}
.pricing-feat {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 14px;
  color: var(--secondary);
}
.pricing-feat svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--success-light);
}

/* ─── Pricing: two equal plan cards ─── */
.pricing__cards--plans {
  grid-template-columns: 1fr 1fr;
  max-width: 620px;
}
.pricing-card__note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
  margin-top: var(--sp-md);
}

/* ─── Pricing: App Store CTA below cards ─── */
.pricing__appstore-cta {
  text-align: center;
  margin-top: var(--sp-3xl);
  margin-bottom: var(--sp-md);
}
.pricing__note {
  margin-top: var(--sp-md);
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .pricing-features { grid-template-columns: 1fr 1fr; }
  .pricing__cards--plans { grid-template-columns: 1fr; max-width: 360px; }
  .pricing-card--pro { order: -1; }
}
@media (max-width: 480px) {
  .pricing-features { grid-template-columns: 1fr; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in-left, .fade-in-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .phone--primary, .phone--secondary,
  .hero__badge, .scroll-cue__line,
  .flame-layer, .marquee-track {
    animation: none !important;
  }
}
