/* ============================================================
   Magic Mirror — Marketing Site Stylesheet
   Aesthetic: Luxury Editorial Fashion
   Fonts: Playfair Display (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand palette */
  --coral:       #FF8370;
  --mulberry:    #C64B8C;
  --teal:        #006D77;
  --mint:        #98D7C2;
  --periwinkle:  #CCCCFF;
  --dark:        #1A1A2E;
  --white:       #FFFFFF;

  /* Neutrals */
  --gray-50:   #FAFAFA;
  --gray-100:  #F4F4F8;
  --gray-200:  #E6E6F0;
  --gray-300:  #CDCDE0;
  --gray-400:  #9999B8;
  --gray-500:  #666680;
  --gray-700:  #33334A;

  /* Gradients */
  --g-hero:       linear-gradient(140deg, #FF8370 0%, #C64B8C 52%, #006D77 100%);
  --g-primary:    linear-gradient(135deg, #FF8370, #C64B8C);
  --g-subtle:     linear-gradient(180deg, #fff 0%, #faf0f7 100%);
  --g-teal-mint:  linear-gradient(135deg, #006D77, #98D7C2);
  --g-text:       linear-gradient(135deg, #FF8370 0%, #C64B8C 70%);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing (8px base) */
  --s1:  0.5rem;   /* 8 */
  --s2:  1rem;     /* 16 */
  --s3:  1.5rem;   /* 24 */
  --s4:  2rem;     /* 32 */
  --s5:  2.5rem;   /* 40 */
  --s6:  3rem;     /* 48 */
  --s8:  4rem;     /* 64 */
  --s12: 6rem;     /* 96 */
  --s16: 8rem;     /* 128 */
  --s20: 10rem;    /* 160 */

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Shadows */
  --sh-sm:     0 2px 8px rgba(26,26,46,0.06);
  --sh-md:     0 8px 24px rgba(26,26,46,0.10);
  --sh-lg:     0 20px 60px rgba(26,26,46,0.14);
  --sh-coral:  0 8px 32px rgba(255,131,112,0.35);
  --sh-card:   0 4px 20px rgba(198,75,140,0.08), 0 1px 4px rgba(26,26,46,0.04);

  /* Layout */
  --container:  1180px;
  --nav-h:      72px;

  /* Motion */
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.55, 0, 1, 0.45);
  --t:           260ms var(--ease);
  --t-slow:      520ms var(--ease);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ===== UTILITIES ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s3);
}

.section {
  padding: var(--s16) 0;
}

.section--alt {
  background: var(--gray-50);
}

.section--dark {
  background: var(--dark);
  color: var(--white);
}

/* Gradient text utility */
.text-gradient {
  background: var(--g-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--s2);
}

/* Scroll animation base */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.animate-on-scroll:nth-child(6) { transition-delay: 400ms; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: var(--t);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--g-primary);
  color: var(--white);
  box-shadow: var(--sh-coral);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,131,112,0.45);
}
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}

.btn--outline {
  background: transparent;
  color: var(--coral);
  border: 1.5px solid var(--coral);
}
.btn--outline:hover {
  background: var(--coral);
  color: var(--white);
}

.btn--dark {
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--sh-md);
}
.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
}

/* Store badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.625rem 1.25rem;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: var(--t);
  border: 1px solid rgba(255,255,255,0.08);
}
.store-badge:hover {
  background: var(--gray-700);
  transform: translateY(-2px);
}
.store-badge svg { flex-shrink: 0; }
.store-badge-text small { display: block; font-size: 0.6875rem; font-weight: 400; opacity: 0.7; margin-bottom: 1px; }
.store-badge-text strong { font-weight: 700; font-size: 0.9375rem; }

/* Badge / pill label */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255,131,112,0.10);
  color: var(--coral);
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255,131,112,0.20);
}
.badge--white {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.18);
}

/* ===== NAVIGATION ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--t), box-shadow var(--t);
}

.site-nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(26,26,46,0.06);
}

.site-nav.nav-hero {
  /* On hero — starts transparent */
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s3);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.01em;
  transition: color var(--t);
}

.site-nav:not(.scrolled) .nav-logo-text,
.site-nav:not(.scrolled) .nav-link {
  color: var(--white);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--s3);
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  letter-spacing: 0.01em;
  transition: color var(--t);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--coral);
  transition: width var(--t);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover { color: var(--coral); }
.nav-link.active { color: var(--coral); }

.nav-cta {
  display: none;
}

.nav-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t);
}

.site-nav.scrolled .nav-toggle span {
  background: var(--dark);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--sh-lg);
  padding: var(--s3) var(--s3) var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  transform: translateY(-110%);
  transition: transform var(--t-slow);
  z-index: 999;
}

.nav-drawer.open {
  transform: translateY(0);
}

.nav-drawer .nav-link {
  color: var(--dark);
  font-size: 1.0625rem;
  padding: var(--s1) 0;
  border-bottom: 1px solid var(--gray-100);
}

.nav-drawer .btn {
  margin-top: var(--s2);
  justify-content: center;
  background: var(--g-primary);
  color: var(--white);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: var(--s12) 0 var(--s4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  margin-bottom: var(--s8);
}

.footer-brand .nav-logo { margin-bottom: var(--s3); }
.footer-brand .nav-logo-text { color: var(--white); }

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: var(--s4);
}

.footer-social {
  display: flex;
  gap: var(--s2);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: var(--t);
  border: 1px solid rgba(255,255,255,0.06);
}

.social-link:hover {
  background: var(--coral);
  color: var(--white);
  border-color: transparent;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--s3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--t);
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--s4);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  align-items: center;
  text-align: center;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--g-hero);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Noise texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.35;
}

/* Decorative gradient orb */
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s12) var(--s3) var(--s16);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  align-items: center;
}

.hero-text .badge--white {
  margin-bottom: var(--s3);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: var(--s3);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  display: block;
  opacity: 0.9;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: var(--s5);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}

.trust-dot {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-wrapper {
  position: relative;
  width: 280px;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  background: linear-gradient(160deg, #23234a, #1a1a2e);
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.04),
    0 50px 100px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  animation: phoneFloat 6s ease-in-out infinite;
  margin: 0 auto;
}

/* Dynamic island */
.phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  background: #0a0a1a;
  border-radius: 14px;
  z-index: 5;
}

.phone-screen {
  padding: 56px 16px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
  margin-bottom: 4px;
}

.phone-appname {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.02em;
}

.phone-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--g-primary);
}

/* Score ring */
.score-ring-wrap {
  display: flex;
  justify-content: center;
  margin: 4px 0;
}

.score-ring {
  width: 104px;
  height: 104px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-ring-svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 7;
}

.score-ring-fill {
  fill: none;
  stroke: url(#scoreGrad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 1.2s var(--ease);
}

.score-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.score-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.score-max {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* Analysis bars */
.analysis-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar-label {
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  width: 52px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), var(--mulberry));
}

.bar-pct {
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  width: 22px;
  text-align: right;
  flex-shrink: 0;
}

/* Style tag chips */
.style-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.style-chip {
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.08);
}

.style-chip.highlight {
  background: rgba(255,131,112,0.15);
  color: var(--coral);
  border-color: rgba(255,131,112,0.20);
}

/* Floating pills */
.feature-pill {
  position: absolute;
  padding: 9px 14px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.pill-score {
  background: var(--white);
  color: var(--dark);
  top: 70px;
  right: -60px;
  animation: pillFloat1 4.5s ease-in-out infinite;
}

.pill-saved {
  background: var(--g-primary);
  color: var(--white);
  bottom: 160px;
  right: -50px;
  animation: pillFloat2 5s ease-in-out infinite;
}

.pill-style {
  background: var(--dark);
  color: var(--mint);
  border: 1px solid rgba(152,215,194,0.3);
  bottom: 100px;
  left: -40px;
  animation: pillFloat3 5.5s ease-in-out infinite;
}

/* ===== FEATURES ===== */
.features {
  padding: var(--s16) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--s12);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s2);
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s3);
}

.feature-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s4);
  box-shadow: var(--sh-card);
  border: 1px solid var(--gray-100);
  transition: transform var(--t), box-shadow var(--t);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(198,75,140,0.12), 0 4px 12px rgba(26,26,46,0.06);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s3);
  flex-shrink: 0;
}

.feature-icon--coral    { background: linear-gradient(135deg, rgba(255,131,112,0.12), rgba(255,131,112,0.04)); color: var(--coral); }
.feature-icon--mulberry { background: linear-gradient(135deg, rgba(198,75,140,0.12), rgba(198,75,140,0.04)); color: var(--mulberry); }
.feature-icon--teal     { background: linear-gradient(135deg, rgba(0,109,119,0.12), rgba(0,109,119,0.04));   color: var(--teal); }
.feature-icon--mint     { background: linear-gradient(135deg, rgba(152,215,194,0.18), rgba(152,215,194,0.06)); color: #007e60; }
.feature-icon--periwinkle { background: linear-gradient(135deg, rgba(204,204,255,0.25), rgba(204,204,255,0.08)); color: #5555cc; }
.feature-icon--premium  { background: linear-gradient(135deg, #FF8370, #C64B8C); color: var(--white); }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--s1);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: var(--s16) 0;
  background: var(--gray-50);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  max-width: 900px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: var(--r-full);
  background: var(--g-primary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-coral);
}

.step-content {}

.step-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--s1);
  letter-spacing: -0.015em;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
  padding: var(--s12) 0;
  background: linear-gradient(135deg, rgba(204,204,255,0.18), rgba(152,215,194,0.12));
  border-top: 1px solid rgba(204,204,255,0.3);
  border-bottom: 1px solid rgba(204,204,255,0.3);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.stat-item {}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--g-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--s1);
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ===== PRICING ===== */
.pricing {
  padding: var(--s16) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  border-radius: var(--r-xl);
  padding: var(--s6) var(--s5);
  background: var(--white);
  box-shadow: var(--sh-card);
  border: 1.5px solid var(--gray-200);
  position: relative;
}

.pricing-card--premium {
  background: linear-gradient(160deg, #fff 0%, #fff8fc 100%);
  border-color: transparent;
  box-shadow:
    0 0 0 1.5px var(--coral),
    0 20px 60px rgba(198,75,140,0.14),
    0 4px 12px rgba(255,131,112,0.10);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--g-primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: var(--r-full);
  box-shadow: var(--sh-coral);
  white-space: nowrap;
}

.pricing-tier {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--s2);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--s1);
}

.pricing-price sup {
  font-size: 1.25rem;
  vertical-align: top;
  margin-top: 6px;
  font-weight: 700;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--gray-400);
  margin-bottom: var(--s5);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s5);
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--gray-700);
}

.pricing-check {
  width: 20px;
  height: 20px;
  border-radius: var(--r-full);
  background: rgba(255,131,112,0.10);
  color: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-feature--muted .pricing-check {
  background: var(--gray-100);
  color: var(--gray-300);
}
.pricing-feature--muted { color: var(--gray-400); }

.pricing-cta {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 0.875rem;
}

.pricing-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: var(--s4);
}

/* ===== DOWNLOAD CTA ===== */
.download-cta {
  padding: var(--s16) 0;
  background: var(--dark);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,131,112,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.download-cta .section-title {
  color: var(--white);
  margin-bottom: var(--s3);
}

.download-cta .section-subtitle {
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--s6);
}

.download-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--g-hero);
  padding: calc(var(--nav-h) + var(--s12)) var(--s3) var(--s12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: var(--s2);
}

.page-hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  font-weight: 300;
}

/* ===== CONTACT PAGE ===== */
.contact-section {
  padding: var(--s12) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  align-items: start;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s6);
  box-shadow: var(--sh-card);
  border: 1px solid var(--gray-100);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--s5);
  letter-spacing: -0.02em;
}

.form-group {
  margin-bottom: var(--s4);
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,131,112,0.12);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

.form-error {
  display: none;
  font-size: 0.8125rem;
  color: var(--mulberry);
  margin-top: 5px;
  font-weight: 500;
}

.form-group.has-error .form-input,
.form-group.has-error .form-textarea {
  border-color: var(--mulberry);
}

.form-group.has-error .form-error {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 0.9375rem;
  font-size: 1rem;
  justify-content: center;
  background: var(--g-primary);
  color: var(--white);
  border-radius: var(--r-full);
  box-shadow: var(--sh-coral);
  transition: var(--t);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255,131,112,0.45);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--s8) var(--s4);
}

.form-success.visible { display: block; }
.form-success.visible + form { display: none; }

.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(152,215,194,0.2), rgba(0,109,119,0.1));
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s3);
  color: var(--teal);
}

.success-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--s2);
}

.success-body { color: var(--gray-500); line-height: 1.7; }

/* Contact info cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.info-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s4);
  box-shadow: var(--sh-card);
  border: 1px solid var(--gray-100);
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon--teal { background: linear-gradient(135deg, rgba(0,109,119,0.12), rgba(0,109,119,0.04)); color: var(--teal); }
.info-icon--coral { background: rgba(255,131,112,0.1); color: var(--coral); }
.info-icon--mulberry { background: rgba(198,75,140,0.1); color: var(--mulberry); }

.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.info-value {
  font-size: 0.9375rem;
  color: var(--dark);
  font-weight: 500;
}

.info-value a { color: var(--coral); }
.info-value a:hover { text-decoration: underline; }

.info-note {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 3px;
  line-height: 1.5;
}

/* ===== LEGAL PAGES ===== */
.legal-section {
  padding: var(--s12) 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8);
  align-items: start;
}

/* TOC */
.legal-toc {
  background: var(--gray-50);
  border-radius: var(--r-lg);
  padding: var(--s4);
  border: 1px solid var(--gray-200);
}

.legal-toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--s3);
}

.legal-toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc-list a {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: var(--t);
  line-height: 1.4;
}

.legal-toc-list a:hover {
  background: var(--white);
  color: var(--coral);
}

/* Legal content */
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.015em;
  margin: var(--s8) 0 var(--s3);
  padding-left: var(--s3);
  border-left: 3px solid var(--coral);
}

.legal-content h2:first-of-type {
  margin-top: 0;
}

.legal-content h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--dark);
  margin: var(--s4) 0 var(--s2);
}

.legal-content p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--s3);
}

.legal-content ul {
  margin: var(--s2) 0 var(--s4) var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}

.legal-content ul li {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  position: relative;
  padding-left: var(--s3);
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

.legal-content a {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s3) 0;
  font-size: 0.875rem;
}

.legal-content th {
  text-align: left;
  padding: 10px 12px;
  background: var(--gray-50);
  font-weight: 600;
  color: var(--dark);
  border-bottom: 2px solid var(--gray-200);
}

.legal-content td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-600);
  vertical-align: top;
}

.last-updated {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--gray-400);
  background: var(--gray-100);
  border-radius: var(--r-full);
  padding: 4px 12px;
  margin-bottom: var(--s6);
}

/* ===== KEYFRAMES ===== */
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px) rotate(0.5deg); }
  50%       { transform: translateY(-16px) rotate(-0.5deg); }
}

@keyframes pillFloat1 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

@keyframes pillFloat2 {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(10px); }
}

@keyframes pillFloat3 {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50%       { transform: translateY(-6px) rotate(1deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta   { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none; }

  .hero-inner      { grid-template-columns: 1fr 1fr; gap: var(--s12); padding: var(--s16) var(--s3); }
  .hero-visual     { justify-content: flex-end; }
  .phone-wrapper   { width: 340px; }
  .pill-score      { right: -80px; }
  .pill-saved      { right: -70px; }
  .pill-style      { left: -60px; }

  .steps-grid     { grid-template-columns: repeat(3, 1fr); }
  .step           { flex-direction: column; text-align: center; }
  .step-num       { margin: 0 auto var(--s3); }

  .pricing-grid   { grid-template-columns: repeat(2, 1fr); }
  .contact-grid   { grid-template-columns: 3fr 2fr; }

  .footer-grid    { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom  { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }

  .legal-grid {
    grid-template-columns: 240px 1fr;
  }

  .legal-toc {
    position: sticky;
    top: calc(var(--nav-h) + var(--s4));
  }
}

@media (min-width: 1280px) {
  .hero-inner { padding: var(--s20) var(--s3); }
}
