:root {
  /* skn.coach design tokens (light) */
  color-scheme: light;

  /* Static colors (do not flip in dark mode) */
  --static-white: #ffffff;
  --static-black: #101114;

  --brand-lavender: #c9b8ff;
  --brand-pink: #f5b7f8;
  --brand-blue: #6f8cff;
  --brand-blue-dark: #3f58d6;
  --brand-aqua: #a9f1e6;

  --neutral-1000: #101114;
  --neutral-900: #1c1f24;
  --neutral-700: #4c5563;
  --neutral-500: #a3a8b3;
  --neutral-200: #ececec;
  --neutral-50: #f8f8fa;
  --white: #ffffff;

  --shadow-soft: 0px 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0px 8px 20px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0px 0px 40px rgba(201, 184, 255, 0.5);
  --shadow-phone: 0px 24px 48px rgba(0, 0, 0, 0.15), 0px 8px 16px rgba(0, 0, 0, 0.08);

  /* Glass surfaces (semantic; used for translucent UI) */
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-soft: rgba(0, 0, 0, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 40px;
  --space-4xl: 64px;
  --space-5xl: 80px;

  --max-width: 1120px;
  --gutter: clamp(20px, 5vw, 24px);
  --font:
    'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';

  --bg: var(--white);
  --surface: var(--neutral-50);
  --text: var(--neutral-1000);
  --muted: var(--neutral-700);
  --subtle: var(--neutral-500);
  --border: var(--neutral-200);

  --gradient-primary: linear-gradient(135deg,
      var(--brand-lavender) 0%,
      var(--brand-pink) 40%,
      var(--brand-blue) 100%);
  --gradient-glow: radial-gradient(ellipse 80% 60% at 50% 0%,
      rgba(229, 217, 255, 0.8) 0%,
      rgba(253, 234, 255, 0.5) 30%,
      rgba(255, 255, 255, 0) 70%);
  --gradient-hero: linear-gradient(180deg,
      rgba(229, 217, 255, 0.4) 0%,
      rgba(253, 234, 255, 0.2) 40%,
      rgba(255, 255, 255, 1) 100%);

  font-family: var(--font);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================== LAYOUT ==================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: calc(var(--gutter) + env(safe-area-inset-left));
  padding-right: calc(var(--gutter) + env(safe-area-inset-right));
}

.section {
  padding: var(--space-5xl) 0;
}

.section-title {
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--neutral-900);
  margin: 0 0 var(--space-md);
  text-align: center;
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

/* ==================== HEADER ==================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(236, 236, 236, 0.7);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md) calc(var(--gutter) + env(safe-area-inset-right)) var(--space-md) calc(var(--gutter) + env(safe-area-inset-left));
  height: 60px;
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand-mark {
  font-size: 20px;
  line-height: 28px;
  font-family:
    Impact, Haettenschweiler, 'Arial Narrow', 'Roboto Condensed', ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, 'Noto Sans';
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--neutral-900);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  font-weight: 500;
  transition: color 150ms ease;
}

.nav-link:hover {
  color: var(--neutral-900);
}

.nav-cta {
  display: none;
}

/* Hide non-essential nav links on mobile - show only Insights + CTA */
@media (max-width: 640px) {
  .nav {
    gap: var(--space-sm);
  }

  /* Hide Features, How it works, FAQ on mobile (keep Insights visible) */
  .nav-link:not(:first-child) {
    display: none;
  }

  /* Show CTA button on mobile too */
  .nav-cta {
    display: inline-flex;
    font-size: 13px;
    padding: 8px 14px;
  }
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  background: transparent;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--static-white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  box-shadow: var(--shadow-medium), var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(248, 248, 250, 0.8);
  border-color: var(--border);
  color: var(--neutral-900);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
  line-height: 20px;
  border-radius: var(--radius-lg);
}

/* Store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 20px;
  background: var(--static-black);
  color: var(--static-white);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.store-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.store-btn-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-btn-small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
}

.store-btn-name {
  font-size: 14px;
  font-weight: 600;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  justify-content: center;
}

/* ==================== HERO ==================== */

.hero {
  position: relative;
  padding: var(--space-4xl) 0 var(--space-5xl);
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 900px) {
  .hero-content {
    text-align: left;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--brand-blue-dark);
  margin: 0 0 var(--space-lg);
  font-weight: 600;
  background: rgba(111, 140, 255, 0.1);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
}

.hero h1 {
  font-size: clamp(36px, 7vw, 56px);
  line-height: 1.08;
  margin: 0 0 var(--space-lg);
  letter-spacing: -0.03em;
  color: var(--neutral-900);
  font-weight: 700;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
}

.hero-summary {
  max-width: 520px;
  margin: var(--space-lg) auto 0;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.hero-summary-title {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.82);
}

.hero-summary-list {
  margin: var(--space-sm) 0 0;
  padding-left: 18px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  line-height: 1.65;
}

.hero-summary-list li+li {
  margin-top: 6px;
}

.hero-checklist {
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.hero-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.hero-checklist svg {
  margin-top: 2px;
  color: var(--brand-blue-dark);
  flex: 0 0 auto;
}

@media (min-width: 900px) {
  .hero .lede {
    margin: 0;
  }

  .hero-summary {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-xl) 0 var(--space-lg);
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-cta {
    justify-content: flex-start;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  color: var(--subtle);
  font-size: 13px;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-badges {
    justify-content: flex-start;
  }
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--brand-aqua);
}

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

.hero-card {
  position: relative;
  width: clamp(260px, 82vw, 340px);
  border-radius: var(--radius-xl);
  padding: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) padding-box,
    var(--gradient-primary) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-phone);
}

.hero-card-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-xl) - 10px);
}

/* Hero demo visual (two images: routine + mascot overlay) */
.hero-demo-visual {
  position: relative;
  width: clamp(280px, 82vw, 380px);
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  transition: transform 160ms ease, filter 160ms ease;
}

.hero-demo-visual:hover {
  transform: translateY(-2px);
}

.hero-demo-visual:active {
  transform: translateY(0);
}

.hero-demo-visual:focus-visible {
  outline: 3px solid rgba(111, 140, 255, 0.5);
  outline-offset: 6px;
}

.hero-routine-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 18px 34px rgba(16, 17, 20, 0.14));
}

.hero-mascot-img {
  position: absolute;
  left: 50%;
  bottom: -10%;
  transform: translateX(-50%) scale(1.02);
  width: min(118%, 440px);
  height: auto;
  filter: drop-shadow(0 22px 38px rgba(16, 17, 20, 0.16));
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* Demo dialog */
.demo-dialog {
  width: min(92vw, 420px);
  border: 0;
  padding: 0;
  background: transparent;
}

.demo-dialog::backdrop {
  background: rgba(16, 17, 20, 0.55);
  backdrop-filter: blur(10px);
}

.demo-dialog-inner {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: var(--radius-xl);
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 28px 64px rgba(16, 17, 20, 0.25);
}

.demo-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.demo-dialog-close:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  background: var(--white);
}

.demo-dialog-title {
  margin: 2px 48px 6px 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.demo-dialog-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.demo-video-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback styling for browsers without <dialog> support */
.demo-dialog[open] {
  margin: auto;
}

.is-modal-open {
  overflow: hidden;
}

.phone-mockup {
  position: relative;
  width: 280px;
  max-width: 100%;
}

.phone-frame {
  position: relative;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-phone);
}

.phone-screen {
  border-radius: 34px;
  overflow: hidden;
  background: var(--neutral-900);
  aspect-ratio: 9 / 19.5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

/* Floating glow behind phone */
.phone-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  height: 420px;
  background: radial-gradient(circle,
      rgba(201, 184, 255, 0.4) 0%,
      rgba(245, 183, 248, 0.2) 40%,
      rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 900px) {
  .hero-visual {
    justify-content: flex-end;
  }

  .hero-card {
    width: clamp(300px, 30vw, 380px);
  }

  .hero-demo-visual {
    width: clamp(320px, 32vw, 420px);
  }

  .phone-mockup {
    width: 320px;
  }
}

/* ==================== FEATURES ==================== */

.features {
  background: var(--surface);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4xl);
}

.feature-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 768px) {
  .feature-item {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }

  .feature-item:nth-child(even) .feature-visual {
    order: -1;
  }
}

.feature-content h3 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--neutral-900);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}

.feature-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 var(--space-lg);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.feature-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--brand-aqua);
  margin-top: 2px;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-screenshot {
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-medium);
}

/* ==================== HOW IT WORKS ==================== */

.how-it-works {
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-2xl);
}

.step-card {
  text-align: center;
  padding: var(--space-2xl);
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  display: block;
  text-decoration: none;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  color: var(--static-white);
  font-size: 20px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
}

.step-number svg {
  width: 22px;
  height: 22px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--neutral-900);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.01em;
}

.step-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ==================== TRUST ==================== */

.trust {
  background: var(--surface);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.trust-card {
  text-align: center;
  padding: var(--space-xl);
}

.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.trust-icon svg {
  width: 28px;
  height: 28px;
  color: var(--brand-blue);
}

.trust-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--neutral-900);
  margin: 0 0 var(--space-xs);
}

.trust-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* ==================== REVIEWS ==================== */

.reviews {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.reviews::before {
  content: '';
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: min(980px, 120vw);
  height: 620px;
  background: var(--gradient-glow);
  pointer-events: none;
  z-index: 0;
}

.reviews-head {
  position: relative;
  z-index: 1;
  text-align: center;
}

.reviews-eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.reviews-carousel {
  position: relative;
  z-index: 1;
  margin-top: var(--space-3xl);
}

.reviews-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.reviews-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 40px;
  width: 44px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--neutral-900);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.reviews-btn:hover {
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.92);
}

.reviews-btn:active {
  transform: scale(0.98);
}

.reviews-btn:focus-visible {
  outline: 3px solid rgba(111, 140, 255, 0.35);
  outline-offset: 2px;
}

.reviews-viewport {
  position: relative;
}

.reviews-viewport::before,
.reviews-viewport::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  pointer-events: none;
  z-index: 2;
}

.reviews-viewport::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.reviews-viewport::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.reviews-grid {
  display: flex;
  gap: var(--space-lg);
  margin: 0;
  padding: var(--space-sm) 0 var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding: 0;
}

.reviews-grid::-webkit-scrollbar {
  display: none;
}

.review-card {
  min-width: min(520px, 86vw);
  scroll-snap-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)) padding-box,
    var(--gradient-primary) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-medium);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition:
    box-shadow 220ms ease,
    transform 150ms ease;
}

.review-card:hover {
  box-shadow: var(--shadow-phone);
  transform: translateY(-2px);
}

.review-card:active {
  transform: translateY(-1px);
}

.review-quote {
  margin: 0;
  color: var(--neutral-900);
  font-size: 15.5px;
  line-height: 1.7;
  position: relative;
  padding-top: var(--space-md);
}

.review-quote::before {
  content: '“';
  position: absolute;
  top: -6px;
  left: -2px;
  font-size: 44px;
  line-height: 1;
  color: rgba(111, 140, 255, 0.32);
}

.review-quote p {
  margin: 0;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: auto;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: var(--static-white);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.03em;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(63, 88, 214, 0.18);
}

.review-name {
  display: block;
  font-weight: 600;
  color: var(--neutral-900);
  font-size: 14px;
  line-height: 1.4;
}

.review-source {
  display: block;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
}

@media (min-width: 768px) {
  .reviews-controls {
    justify-content: flex-end;
  }

  .reviews-viewport::before,
  .reviews-viewport::after {
    width: 56px;
  }

  .reviews-grid {
    margin: 0;
    padding: 0;
    scroll-padding: 0;
  }
}

/* ==================== FAQ ==================== */

.faq {
  background: var(--white);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 200ms ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-soft);
}

.faq-summary {
  cursor: pointer;
  padding: var(--space-lg) var(--space-xl);
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  color: var(--neutral-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 20px;
  color: var(--subtle);
  font-weight: 500;
  transition: transform 200ms ease;
}

.faq-item[open] .faq-summary::after {
  content: '−';
}

.faq-body {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

/* ==================== CTA SECTION ==================== */

.cta-section {
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(201, 184, 255, 0.5) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--neutral-900);
  margin: 0 0 var(--space-md);
  letter-spacing: -0.02em;
}

.cta-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 auto var(--space-xl);
  max-width: 480px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

/* ==================== FOOTER ==================== */

.site-footer {
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-900);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 150ms ease;
}

.footer-link:hover {
  color: var(--neutral-900);
}

.footer-note {
  color: var(--subtle);
  font-size: 13px;
  text-align: center;
  width: 100%;
  margin-top: var(--space-lg);
}

@media (min-width: 768px) {
  .footer-note {
    text-align: right;
    width: auto;
    margin-top: 0;
  }
}

/* ==================== UTILITIES ==================== */

.text-link {
  color: var(--brand-blue-dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms ease;
}

.text-link:hover {
  color: var(--brand-blue);
}

.dot {
  color: var(--subtle);
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== LEGAL PAGES ==================== */

.legal-top {
  padding: var(--space-3xl) 0 var(--space-lg);
}

.legal-title {
  margin: var(--space-sm) 0 0;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.03em;
}

.legal-meta {
  margin: var(--space-sm) 0 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 18px;
}

.legal {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.legal-card h2 {
  margin: 0 0 var(--space-md);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--neutral-900);
}

.legal-card p {
  margin: 0 0 var(--space-md);
  color: var(--muted);
  line-height: 1.7;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  padding-left: 20px;
}

.legal-footer {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--muted);
  font-size: 14px;
}

.legal-dot {
  color: var(--subtle);
}

.legal-muted {
  color: var(--subtle);
}

/* Support page */
.support-hero {
  margin-bottom: var(--space-xl);
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.support-hero::before {
  content: none;
}

.support-badges {
  gap: var(--space-md);
}

.support-badges .hero-badge svg {
  color: var(--brand-aqua);
  flex: 0 0 auto;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  padding-bottom: var(--space-2xl);
}

.support-card {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.support-card h2 {
  margin: 0 0 var(--space-sm);
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: var(--neutral-900);
}

.support-card p {
  margin: 0 0 var(--space-md);
  color: var(--muted);
  line-height: 1.7;
}

.support-faq {
  padding-bottom: var(--space-3xl);
}

.support-section-title {
  margin: 0 0 var(--space-md);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--neutral-900);
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 640px) {
  .nav {
    gap: var(--space-md);
  }

  .hero {
    padding: var(--space-3xl) 0 var(--space-4xl);
  }

  .section {
    padding: var(--space-4xl) 0;
  }

  .faq-summary {
    padding: var(--space-md) var(--space-lg);
    font-size: 15px;
  }

  .faq-body {
    padding: 0 var(--space-lg) var(--space-md);
  }

  .store-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .store-btn {
    justify-content: center;
  }
}

/* ==================== DARK MODE ==================== */

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    /* Keep static colors stable across modes */
    --static-white: #ffffff;
    --static-black: #101114;

    --brand-lavender: #afa0ff;
    --brand-pink: #f0a8f5;
    --brand-blue: #8ea1ff;
    --brand-blue-dark: #5a73e8;
    --brand-aqua: #89e7d7;

    --neutral-1000: #f3f3f7;
    --neutral-900: #e6e6eb;
    --neutral-700: #bfc2c9;
    --neutral-500: #8d9199;
    --neutral-200: #3a3d41;
    --neutral-50: #1a1c20;
    --white: #0e0f11;

    --bg: var(--white);
    --surface: var(--neutral-50);
    --text: var(--neutral-1000);
    --muted: var(--neutral-700);
    --subtle: var(--neutral-500);
    --border: var(--neutral-200);

    --gradient-primary: linear-gradient(135deg,
        var(--brand-lavender) 0%,
        var(--brand-pink) 40%,
        var(--brand-blue) 100%);
    --gradient-glow: radial-gradient(ellipse 80% 60% at 50% 0%,
        rgba(175, 160, 255, 0.3) 0%,
        rgba(240, 168, 245, 0.15) 30%,
        rgba(14, 15, 17, 0) 70%);
    --gradient-hero: linear-gradient(180deg,
        rgba(175, 160, 255, 0.15) 0%,
        rgba(240, 168, 245, 0.08) 40%,
        rgba(14, 15, 17, 1) 100%);

    --shadow-glow: 0px 0px 40px rgba(175, 160, 255, 0.4);
    --shadow-phone: 0px 24px 48px rgba(0, 0, 0, 0.4), 0px 8px 16px rgba(0, 0, 0, 0.3);

    --glass: rgba(30, 32, 36, 0.85);
    --glass-strong: rgba(45, 48, 54, 0.95);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-border-soft: rgba(255, 255, 255, 0.1);
  }

  .site-header {
    background: rgba(14, 15, 17, 0.85);
    border-bottom-color: rgba(58, 61, 65, 0.7);
  }

  .phone-frame {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
  }

  .step-card,
  .trust-icon,
  .faq-item,
  .legal-card,
  .support-card {
    background: var(--surface);
    border-color: var(--border);
  }

  .btn-ghost {
    background: rgba(26, 28, 32, 0.8);
    border-color: var(--border);
  }

  .store-btn {
    background: var(--static-black);
  }

  /* Review cards - ensure text is readable on dark backgrounds */
  .review-card {
    background:
      linear-gradient(rgba(30, 32, 36, 0.95), rgba(30, 32, 36, 0.95)) padding-box,
      var(--gradient-primary) border-box;
  }

  .review-quote {
    color: var(--neutral-900);
  }

  .review-quote::before {
    color: rgba(175, 160, 255, 0.4);
  }

  .review-name {
    color: var(--neutral-900);
  }

  .review-source {
    color: var(--subtle);
  }

  /* Reviews viewport gradient masks */
  .reviews-viewport::before {
    background: linear-gradient(90deg, rgba(14, 15, 17, 1), rgba(14, 15, 17, 0));
  }

  .reviews-viewport::after {
    background: linear-gradient(270deg, rgba(14, 15, 17, 1), rgba(14, 15, 17, 0));
  }

  /* Reviews button */
  .reviews-btn {
    background: rgba(30, 32, 36, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--neutral-900);
  }

  .reviews-btn:hover {
    background: rgba(45, 48, 54, 0.95);
  }

  /* Hero summary card */
  .hero-summary {
    background: rgba(30, 32, 36, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
  }

  .hero-summary-title {
    color: var(--neutral-900);
  }

  .hero-summary-list {
    color: var(--muted);
  }

  .hero-checklist {
    color: var(--muted);
  }

  /* Hero card */
  .hero-card {
    background:
      linear-gradient(rgba(30, 32, 36, 0.92), rgba(30, 32, 36, 0.92)) padding-box,
      var(--gradient-primary) border-box;
  }
}

/* ==================== HUB PAGES ==================== */

/* Hub CTA Banner - Top & Bottom */
.hub-cta-banner {
  position: relative;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  margin: var(--space-2xl) 0;
  text-align: center;
  overflow: hidden;
}

.hub-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hub-cta-banner h3 {
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 700;
  color: var(--static-white);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.02em;
  position: relative;
}

.hub-cta-banner p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 var(--space-xl);
  line-height: 1.6;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.hub-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  position: relative;
}

.hub-cta-buttons .btn {
  background: var(--static-white);
  color: var(--static-black);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

.hub-cta-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.hub-cta-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--static-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.hub-cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Hub Diagnostic Section */
.hub-diagnostic {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  border: 1px solid var(--border);
}

.hub-diagnostic-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue-dark);
  margin: 0 0 var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hub-diagnostic-title svg {
  width: 18px;
  height: 18px;
}

.hub-diagnostic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hub-diagnostic-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 150ms ease;
}

.hub-diagnostic-item:hover {
  border-color: var(--brand-lavender);
  box-shadow: var(--shadow-soft);
}

.hub-diagnostic-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hub-diagnostic-icon svg {
  width: 20px;
  height: 20px;
  color: var(--static-white);
}

.hub-diagnostic-content strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 4px;
}

.hub-diagnostic-content span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Hub Path Grid - Choose Your Path */
.hub-path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin: var(--space-xl) 0 var(--space-2xl);
}

@media (min-width: 640px) {
  .hub-path-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hub-path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  background: var(--white);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--border);
  transition: all 200ms ease;
  overflow: hidden;
}

.hub-path-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  padding: 2px;
  background: var(--gradient-primary);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.hub-path-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium), var(--shadow-glow);
}

.hub-path-card:hover::before {
  opacity: 1;
}

.hub-path-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.hub-path-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand-blue-dark);
}

.hub-path-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--neutral-900);
  margin: 0 0 var(--space-sm);
  line-height: 1.35;
}

.hub-path-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.hub-path-arrow {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 200ms ease;
}

.hub-path-card:hover .hub-path-arrow {
  opacity: 1;
  transform: translateX(0);
}

.hub-path-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--brand-blue-dark);
}

/* Hub Routine Section */
.hub-routine {
  margin: var(--space-2xl) 0;
}

.hub-routine-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .hub-routine-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hub-routine-panel {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 1px solid var(--border);
}

.hub-routine-panel.am {
  border-top: 4px solid var(--brand-blue);
}

.hub-routine-panel.pm {
  border-top: 4px solid var(--brand-lavender);
}

.hub-routine-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hub-routine-header svg {
  width: 24px;
  height: 24px;
}

.hub-routine-panel.am .hub-routine-header svg {
  color: var(--brand-blue);
}

.hub-routine-panel.pm .hub-routine-header svg {
  color: var(--brand-lavender);
}

.hub-routine-header span {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--neutral-900);
}

.hub-routine-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.hub-routine-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}

.hub-routine-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hub-routine-step::before {
  content: counter(step);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
  color: var(--static-white);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hub-routine-step-content {
  flex: 1;
}

.hub-routine-step-content strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 2px;
}

.hub-routine-step-content span {
  font-size: 13px;
  color: var(--muted);
}

/* Hub Mistakes Section */
.hub-mistakes {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.06) 0%, rgba(255, 107, 107, 0.02) 100%);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.hub-mistakes-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d63031;
  margin: 0 0 var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hub-mistakes-title svg {
  width: 18px;
  height: 18px;
}

.hub-mistakes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hub-mistakes-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: 15px;
  line-height: 1.6;
  color: var(--neutral-900);
}

.hub-mistakes-item::before {
  content: '✕';
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 107, 107, 0.15);
  color: #d63031;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Hub Derm Warning Section */
.hub-derm-warning {
  background: linear-gradient(135deg, rgba(111, 140, 255, 0.08) 0%, rgba(201, 184, 255, 0.06) 100%);
  border: 1px solid rgba(111, 140, 255, 0.25);
  border-left: 4px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.hub-derm-warning-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hub-derm-warning-header svg {
  width: 22px;
  height: 22px;
  color: var(--brand-blue);
}

.hub-derm-warning-header span {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-blue-dark);
}

.hub-derm-warning-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hub-derm-warning-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 15px;
  line-height: 1.6;
  color: var(--neutral-900);
}

.hub-derm-warning-item::before {
  content: '→';
  color: var(--brand-blue);
  font-weight: 600;
  flex-shrink: 0;
}

/* Prose overrides for hub pages */
.prose .hub-cta-banner,
.prose .hub-diagnostic,
.prose .hub-path-grid,
.prose .hub-routine,
.prose .hub-mistakes,
.prose .hub-derm-warning {
  max-width: none;
  margin-left: calc(-1 * var(--space-lg));
  margin-right: calc(-1 * var(--space-lg));
}

@media (min-width: 768px) {

  .prose .hub-cta-banner,
  .prose .hub-diagnostic,
  .prose .hub-path-grid,
  .prose .hub-routine,
  .prose .hub-mistakes,
  .prose .hub-derm-warning {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ==================== ROSACEA HUB THEME ==================== */
/* Calming sage green + dusty rose palette for rosacea-specific styling */

.hub-rosacea {
  --rosacea-sage: #7a9e7e;
  --rosacea-sage-light: #c8d5ca;
  --rosacea-sage-pale: #e8f0e9;
  --rosacea-rose: #c9a5a5;
  --rosacea-rose-light: #f5e6e6;
  --rosacea-cream: #faf8f5;
  --rosacea-text: #4a5548;
  --rosacea-text-dark: #2d3a30;
  --rosacea-gradient: linear-gradient(135deg,
      var(--rosacea-sage-light) 0%,
      var(--rosacea-rose-light) 60%,
      var(--rosacea-cream) 100%);
  --rosacea-gradient-soft: linear-gradient(180deg,
      rgba(200, 213, 202, 0.3) 0%,
      rgba(245, 230, 230, 0.2) 50%,
      rgba(255, 255, 255, 0) 100%);
}

/* Rosacea Hero Section */
.hub-rosacea-hero {
  position: relative;
  margin: 0 calc(-1 * var(--gutter)) var(--space-2xl);
  padding: var(--space-3xl) var(--gutter);
  background: var(--rosacea-cream);
  overflow: hidden;
}

.hub-rosacea-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--rosacea-gradient-soft);
  pointer-events: none;
}

.hub-rosacea-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hub-rosacea-hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hub-rosacea-hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(122, 158, 126, 0.15);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--rosacea-sage);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hub-rosacea-hero-tagline svg {
  width: 16px;
  height: 16px;
}

.hub-rosacea-hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--rosacea-text-dark);
  margin: 0 0 var(--space-lg);
}

.hub-rosacea-hero-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--rosacea-text);
  margin: 0;
}

/* Rosacea CTA Banner Override */
.hub-rosacea .hub-cta-banner {
  background: var(--rosacea-gradient);
}

.hub-rosacea .hub-cta-banner h3 {
  color: var(--rosacea-text-dark);
}

.hub-rosacea .hub-cta-banner p {
  color: var(--rosacea-text);
}

.hub-rosacea .hub-cta-buttons .btn {
  background: var(--rosacea-sage);
  color: var(--static-white);
}

.hub-rosacea .hub-cta-buttons .btn:hover {
  background: #6a8e6e;
}

.hub-rosacea .hub-cta-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.6);
  color: var(--rosacea-text-dark);
  border: 1px solid rgba(122, 158, 126, 0.3);
}

.hub-rosacea .hub-cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.85);
}

/* Rosacea Diagnostic Override */
.hub-rosacea .hub-diagnostic {
  background: var(--rosacea-cream);
  border-color: var(--rosacea-sage-light);
}

.hub-rosacea .hub-diagnostic-title {
  color: var(--rosacea-sage);
}

.hub-rosacea .hub-diagnostic-icon {
  background: linear-gradient(135deg, var(--rosacea-sage) 0%, var(--rosacea-rose) 100%);
}

.hub-rosacea .hub-diagnostic-item {
  background: var(--static-white);
  border-color: var(--rosacea-sage-light);
}

.hub-rosacea .hub-diagnostic-item:hover {
  border-color: var(--rosacea-sage);
}

/* Rosacea Path Cards Override */
.hub-rosacea .hub-path-icon {
  background: var(--rosacea-sage-pale);
}

.hub-rosacea .hub-path-icon svg {
  color: var(--rosacea-sage);
}

.hub-rosacea .hub-path-card::before {
  background: linear-gradient(135deg, var(--rosacea-sage) 0%, var(--rosacea-rose) 100%);
}

.hub-rosacea .hub-path-card:hover {
  box-shadow: var(--shadow-medium), 0 0 40px rgba(122, 158, 126, 0.3);
}

.hub-rosacea .hub-path-arrow {
  background: var(--rosacea-sage-pale);
}

.hub-rosacea .hub-path-arrow svg {
  color: var(--rosacea-sage);
}

/* Rosacea Routine Override */
.hub-rosacea .hub-routine-panel {
  background: var(--rosacea-cream);
  border-color: var(--rosacea-sage-light);
}

.hub-rosacea .hub-routine-panel.am {
  border-top-color: var(--rosacea-sage);
}

.hub-rosacea .hub-routine-panel.pm {
  border-top-color: var(--rosacea-rose);
}

.hub-rosacea .hub-routine-panel.am .hub-routine-header svg {
  color: var(--rosacea-sage);
}

.hub-rosacea .hub-routine-panel.pm .hub-routine-header svg {
  color: var(--rosacea-rose);
}

.hub-rosacea .hub-routine-step::before {
  background: linear-gradient(135deg, var(--rosacea-sage) 0%, var(--rosacea-rose) 100%);
}

/* Rosacea Ingredients Section */
.hub-ingredients-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
  padding: var(--space-xl);
  background: var(--rosacea-cream);
  border-radius: var(--radius-xl);
  border: 1px solid var(--rosacea-sage-light);
}

@media (min-width: 768px) {
  .hub-ingredients-section {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.hub-ingredients-image {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hub-ingredients-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--rosacea-text-dark);
  margin: 0 0 var(--space-md);
}

.hub-ingredients-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--rosacea-text);
  margin: 0 0 var(--space-lg);
}

.hub-ingredients-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.hub-ingredients-list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--static-white);
  border: 1px solid var(--rosacea-sage-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--rosacea-text);
}

.hub-ingredients-list li::before {
  content: '✓';
  color: var(--rosacea-sage);
  font-weight: 700;
}

/* Routine Visual Enhancement */
.hub-routine-visual {
  display: flex;
  justify-content: center;
  margin: var(--space-lg) 0;
}

.hub-routine-visual img {
  max-width: 320px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

/* Rosacea Derm Warning Override */
.hub-rosacea .hub-derm-warning {
  background: linear-gradient(135deg, rgba(122, 158, 126, 0.08) 0%, rgba(201, 165, 165, 0.06) 100%);
  border-color: rgba(122, 158, 126, 0.25);
  border-left-color: var(--rosacea-sage);
}

.hub-rosacea .hub-derm-warning-header svg {
  color: var(--rosacea-sage);
}

.hub-rosacea .hub-derm-warning-header span {
  color: var(--rosacea-sage);
}

.hub-rosacea .hub-derm-warning-item::before {
  color: var(--rosacea-sage);
}

/* Rosacea Mistakes Override */
.hub-rosacea .hub-mistakes {
  background: linear-gradient(135deg, rgba(201, 165, 165, 0.12) 0%, rgba(201, 165, 165, 0.04) 100%);
  border-color: rgba(201, 165, 165, 0.4);
}

.hub-rosacea .hub-mistakes-title {
  color: #a86c6c;
}

.hub-rosacea .hub-mistakes-item::before {
  background: rgba(201, 165, 165, 0.25);
  color: #a86c6c;
}

/* Prose overrides for rosacea sections */
.prose .hub-rosacea-hero,
.prose .hub-ingredients-section {
  max-width: none;
}

@media (max-width: 767px) {
  .hub-rosacea-hero {
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }

  .prose .hub-ingredients-section {
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
  }
}