/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand colors */
  --black: #000000;
  --white: #FFFFFF;
  --blue: #0A84FF;
  --coral: #E67E5B;
  --teal: #14B8A6;
  --amber: #F59E0B;
  --red: #F97066;
  --purple: #8B5CF6;

  /* Neutrals */
  --text-primary: #000000;
  --text-secondary: #86868B;
  --text-tertiary: #AEAEB2;
  --bg: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --bg-tertiary: #EDEDF0;
  --surface: #F5F5F7;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.1);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ls-tight: -0.03em;
  --ls-normal: -0.01em;

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

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 100px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg);
  letter-spacing: var(--ls-normal);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
strong { font-weight: 600; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-lg);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: var(--ls-normal);
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); }

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 14px 28px;
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--bg-tertiary); }

.btn-lg { padding: 16px 36px; font-size: 17px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  color: var(--white);
  transition: color 0.3s ease;
}
.nav.scrolled .nav-logo { color: var(--black); }

.nav-links {
  display: flex;
  gap: var(--s-xl);
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a { color: var(--text-secondary); }
.nav.scrolled .nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  padding: 8px 20px;
  border-radius: var(--r-full);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.25); }
.nav.scrolled .nav-cta {
  color: var(--white);
  background: var(--black);
}
.nav.scrolled .nav-cta:hover { background: #1a1a1a; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, #000000 0%, #0a0a0a 40%, #111111 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(10, 132, 255, 0.08) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(20, 184, 166, 0.06) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-lg);
  flex: 1;
}

.hero-headline {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: var(--s-lg);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--s-2xl);
  max-width: 440px;
}

.hero-sub strong { color: rgba(255, 255, 255, 0.85); font-weight: 500; }

.hero-cta-group { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.hero-trial {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  padding-left: 4px;
}

/* Phone mockup */
.hero-phone {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.phone-frame {
  width: 280px;
  height: 570px;
  background: #1C1C1E;
  border-radius: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 30px;
}

.phone-status-bar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  padding: 10px 20px 0;
}

.phone-status-icons { display: flex; gap: 4px; align-items: center; }

.phone-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 16px 0;
  overflow: hidden;
}

/* ── App Mockup: Greeting ─────────────────────────────────── */
.app-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.app-greeting-text {
  font-size: 13px;
  color: #86868B;
  font-weight: 400;
  line-height: 1.2;
}

.app-greeting-name {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.app-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DBEAFE, #93C5FD);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #1E40AF;
}

/* ── App Mockup: Score Section ────────────────────────────── */
.app-score-section {
  text-align: center;
  padding: 16px 0 12px;
}

.app-score-eyebrow {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #AEAEB2;
  margin-bottom: 2px;
}

.app-score-number {
  font-size: 52px;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.app-score-sub {
  font-size: 11px;
  color: #AEAEB2;
}

.app-score-change {
  color: #14B8A6;
  font-weight: 600;
}

/* ── App Mockup: Metric Rings ────────────────────────────── */
.app-metrics-row {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 0 14px;
}

.app-metric-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.app-metric-ring svg {
  width: 36px;
  height: 36px;
}

.app-metric-val {
  font-size: 11px;
  font-weight: 700;
  color: #000;
  line-height: 1;
}

.app-metric-label {
  font-size: 8px;
  color: #AEAEB2;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── App Mockup: Routine Section ─────────────────────────── */
.app-routine-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.app-section-header {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #AEAEB2;
  margin-bottom: 8px;
}

.app-routine-card {
  background: #F5F5F7;
  border-radius: 12px;
  padding: 10px 12px;
}

.app-routine-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.app-routine-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.app-dot-am {
  background: linear-gradient(135deg, #F59E0B, #FBBF24);
}

.app-routine-title {
  font-size: 13px;
  font-weight: 600;
  color: #000;
  flex: 1;
}

.app-routine-count {
  font-size: 11px;
  color: #AEAEB2;
  font-weight: 500;
}

.app-routine-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #D1D1D6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-check.checked {
  background: #14B8A6;
  border-color: #14B8A6;
}

.app-check svg {
  width: 10px;
  height: 10px;
}

.app-step-name {
  font-size: 12px;
  color: #000;
  font-weight: 400;
}

.app-step-name.done {
  color: #AEAEB2;
  text-decoration: line-through;
}

/* ── App Mockup: Tab Bar ─────────────────────────────────── */
.app-tab-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 8px 8px 14px;
  background: #FFFFFF;
  border-top: 1px solid #EDEDF0;
}

.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: #AEAEB2;
  font-weight: 500;
}

.app-tab svg { display: block; }

.app-tab-active {
  color: #0A84FF;
}

.app-tab-scan {
  position: relative;
  top: -8px;
}

.app-scan-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.app-scan-btn svg {
  width: 18px;
  height: 18px;
}

/* ── Trust Bar ───────────────────────────────────────────────── */
.trust-bar {
  padding: var(--s-2xl) 0;
  border-bottom: 1px solid var(--border);
}

.trust-label {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: var(--s-md);
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-xl);
  flex-wrap: wrap;
}

.trust-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: var(--ls-normal);
}

.trust-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

/* ── Section Shared ──────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: var(--s-3xl); }

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  margin-bottom: var(--s-md);
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: rgba(10, 132, 255, 0.08);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  margin-bottom: var(--s-md);
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── How It Works ────────────────────────────────────────────── */
.how-it-works {
  padding: var(--s-4xl) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-lg);
}

.step-card {
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--bg-tertiary);
  line-height: 1;
  margin-bottom: var(--s-lg);
  letter-spacing: -0.02em;
}

.step-icon {
  width: 56px;
  height: 56px;
  background: rgba(10, 132, 255, 0.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-md);
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--s-sm);
  letter-spacing: var(--ls-tight);
}

.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Features ────────────────────────────────────────────────── */
.features {
  padding: var(--s-4xl) 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-lg);
}

.feature-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.feature-card-large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-xl);
  align-items: center;
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-md);
}

.feature-icon-blue { background: rgba(10, 132, 255, 0.1); color: var(--blue); }
.feature-icon-teal { background: rgba(20, 184, 166, 0.1); color: var(--teal); }
.feature-icon-coral { background: rgba(230, 126, 91, 0.1); color: var(--coral); }
.feature-icon-amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.feature-icon-purple { background: rgba(139, 92, 246, 0.1); color: var(--purple); }

.feature-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--s-sm);
  letter-spacing: var(--ls-tight);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Score grid demo */
.score-grid-demo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
}

.score-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.score-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex-shrink: 0;
}

.score-item strong {
  margin-left: auto;
  color: var(--text-primary);
  font-size: 15px;
}

/* ── Journey ─────────────────────────────────────────────────── */
.journey {
  padding: var(--s-3xl) 0 var(--s-4xl);
}

.journey-card {
  background: linear-gradient(135deg, #000000 0%, #111111 100%);
  border-radius: var(--r-2xl);
  padding: var(--s-3xl) var(--s-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.journey-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(10, 132, 255, 0.1) 0%, transparent 60%);
}

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

.journey-card .section-tag {
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.journey-headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  color: var(--white);
  margin-bottom: var(--s-md);
}

.journey-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin: 0 auto var(--s-2xl);
  line-height: 1.5;
}

.journey-scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-xl);
}

.journey-score { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.journey-score-num {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.journey-score-num sup { font-size: 28px; }

.journey-score-before { color: var(--amber); }
.journey-score-after { color: var(--teal); }

.journey-score-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.journey-arrow { color: rgba(255, 255, 255, 0.3); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq {
  padding: var(--s-3xl) 0 var(--s-4xl);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-lg) 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  letter-spacing: var(--ls-tight);
  transition: color 0.2s ease;
}

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

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: var(--s-md);
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-question:hover { color: var(--blue); }

.faq-answer {
  padding-bottom: var(--s-lg);
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 640px;
}

/* ── Coming Soon CTA ─────────────────────────────────────────── */
.coming-soon {
  padding: var(--s-4xl) 0;
}

.coming-soon-card {
  background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  border-radius: var(--r-2xl);
  padding: var(--s-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.coming-soon-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(10, 132, 255, 0.08) 0%, transparent 50%);
}

.coming-soon-mark {
  margin: 0 auto var(--s-lg);
  position: relative;
  z-index: 1;
}

.coming-soon-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-sm);
  position: relative;
  z-index: 1;
}

.coming-soon-card p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--s-xl);
  position: relative;
  z-index: 1;
}

.coming-soon-form {
  position: relative;
  z-index: 1;
}

.waitlist-input-group {
  display: flex;
  gap: var(--s-sm);
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}

.waitlist-input {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.waitlist-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.waitlist-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.waitlist-btn {
  padding: 14px 24px;
  flex-shrink: 0;
}

.waitlist-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3) !important;
  margin-top: var(--s-md) !important;
  margin-bottom: 0 !important;
}

/* ── Legal Pages ─────────────────────────────────────────────── */
.legal-page {
  padding: 100px 0 var(--s-3xl);
}

.legal-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  margin-bottom: var(--s-sm);
}

.legal-updated {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: var(--s-2xl);
}

.legal-page section {
  margin-bottom: var(--s-xl);
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  margin-bottom: var(--s-md);
}

.legal-page h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--s-md);
  margin-bottom: var(--s-sm);
}

.legal-page p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--s-md);
  max-width: 720px;
}

.legal-page ul {
  list-style: disc;
  padding-left: var(--s-lg);
  margin-bottom: var(--s-md);
  max-width: 720px;
}

.legal-page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--s-xs);
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  padding: var(--s-3xl) 0 var(--s-xl);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3xl);
  margin-bottom: var(--s-2xl);
}

.footer-brand { max-width: 280px; }
.footer-brand p {
  margin-top: var(--s-md);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-links { display: flex; gap: var(--s-3xl); }

.footer-col { display: flex; flex-direction: column; gap: var(--s-sm); }

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: var(--s-xs);
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: var(--s-xl);
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── Why Derma AI ────────────────────────────────────────────── */
.why-derma {
  padding: var(--s-4xl) 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-xl);
}

.why-item {
  padding: var(--s-xl);
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.why-item h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-sm);
}

.why-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Blog Listing ───────────────────────────────────────────── */
.blog-listing {
  padding: var(--s-4xl) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-xl);
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-img {
  height: 200px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card-img svg {
  width: 48px;
  height: 48px;
  color: var(--text-tertiary);
}

.blog-card-body {
  padding: var(--s-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: var(--s-sm);
}

.blog-card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.08);
  padding: 3px 8px;
  border-radius: var(--r-sm);
}

.blog-card-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-sm);
  line-height: 1.3;
}

.blog-card-title a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.blog-card-title a:hover {
  color: var(--blue);
}

.blog-card-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--s-md);
  flex: 1;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.blog-card-link:hover {
  gap: 10px;
}

/* ── Blog Post / Article ────────────────────────────────────── */
.article-page {
  padding: 100px 0 var(--s-3xl);
}

.article-header {
  max-width: 720px;
  margin: 0 auto var(--s-2xl);
}

.article-header .section-tag {
  margin-bottom: var(--s-sm);
}

.article-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--s-md);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  font-size: 14px;
  color: var(--text-tertiary);
}

.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  margin-top: var(--s-2xl);
  margin-bottom: var(--s-md);
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--s-xl);
  margin-bottom: var(--s-sm);
}

.article-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--s-md);
}

.article-content ul,
.article-content ol {
  list-style: disc;
  padding-left: var(--s-lg);
  margin-bottom: var(--s-md);
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--s-xs);
}

.article-content strong {
  color: var(--text-primary);
}

.article-content blockquote {
  border-left: 3px solid var(--blue);
  padding: var(--s-md) var(--s-lg);
  margin: var(--s-xl) 0;
  background: var(--bg-secondary);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.article-content blockquote p {
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 0;
}

.article-cta {
  max-width: 720px;
  margin: var(--s-2xl) auto 0;
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
  text-align: center;
}

.article-cta h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--s-sm);
}

.article-cta p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--s-md);
}

/* ── Content Pages (ingredient, concern, routine) ───────────── */
.content-page {
  padding: 100px 0 var(--s-3xl);
}

.content-hero {
  text-align: center;
  padding-bottom: var(--s-2xl);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-2xl);
}

.content-hero .section-tag {
  margin-bottom: var(--s-sm);
}

.content-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  margin-bottom: var(--s-md);
  line-height: 1.15;
}

.content-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.content-body {
  max-width: 720px;
  margin: 0 auto;
}

.content-body h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  margin-top: var(--s-2xl);
  margin-bottom: var(--s-md);
}

.content-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--s-xl);
  margin-bottom: var(--s-sm);
}

.content-body p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--s-md);
}

.content-body ul,
.content-body ol {
  list-style: disc;
  padding-left: var(--s-lg);
  margin-bottom: var(--s-md);
}

.content-body ol {
  list-style: decimal;
}

.content-body li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--s-xs);
}

.content-body strong {
  color: var(--text-primary);
}

.info-card {
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
  margin: var(--s-xl) 0;
}

.info-card h3 {
  margin-top: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-md);
  margin: var(--s-xl) 0;
}

.info-grid-item {
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
}

.info-grid-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--s-xs);
}

.info-grid-item p {
  font-size: 14px;
  margin-bottom: 0;
}

.content-cta {
  margin-top: var(--s-2xl);
  background: linear-gradient(135deg, #000000 0%, #111111 100%);
  border-radius: var(--r-2xl);
  padding: var(--s-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.content-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(10, 132, 255, 0.08) 0%, transparent 50%);
}

.content-cta h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--s-sm);
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.content-cta p {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--s-lg);
  position: relative;
  z-index: 1;
}

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

/* Related pages grid */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
  margin: var(--s-xl) 0;
}

.related-card {
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.related-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--s-xs);
}

.related-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── Skin Quiz ──────────────────────────────────────────────── */
.quiz-page {
  padding: 100px 0 var(--s-3xl);
}

.quiz-container {
  max-width: 640px;
  margin: 0 auto;
}

.quiz-progress {
  display: flex;
  gap: 4px;
  margin-bottom: var(--s-xl);
}

.quiz-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.quiz-progress-bar.active {
  background: var(--blue);
}

.quiz-question {
  margin-bottom: var(--s-2xl);
}

.quiz-question h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-lg);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-md) var(--s-lg);
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text-primary);
  text-align: left;
  width: 100%;
}

.quiz-option:hover {
  border-color: var(--border-strong);
  background: var(--white);
}

.quiz-option.selected {
  border-color: var(--blue);
  background: rgba(10, 132, 255, 0.04);
}

.quiz-option-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.quiz-option.selected .quiz-option-dot {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: inset 0 0 0 3px var(--white);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--s-md);
}

.quiz-result {
  text-align: center;
  padding: var(--s-2xl) 0;
}

.quiz-result h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-md);
}

.quiz-result-type {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.08);
  padding: 6px 16px;
  border-radius: var(--r-full);
  margin-bottom: var(--s-lg);
}

.quiz-result p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto var(--s-lg);
}

.quiz-result-links {
  display: flex;
  gap: var(--s-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--s-xl);
}

.quiz-result-link {
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  padding: var(--s-md) var(--s-lg);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.quiz-result-link:hover {
  background: var(--bg-tertiary);
}

/* ── 404 Page ───────────────────────────────────────────────── */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px var(--s-lg);
}

.error-content h1 {
  font-size: 96px;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  color: var(--bg-tertiary);
  line-height: 1;
  margin-bottom: var(--s-md);
}

.error-content h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-sm);
}

.error-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--s-xl);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.error-links {
  display: flex;
  gap: var(--s-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page hero banner (for subpages) ────────────────────────── */
.page-hero {
  background: linear-gradient(170deg, #000000 0%, #0a0a0a 40%, #111111 100%);
  padding: 120px 0 var(--s-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(10, 132, 255, 0.06) 0%, transparent 60%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  color: var(--white);
  margin-bottom: var(--s-md);
  line-height: 1.15;
}

.page-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  padding: var(--s-md) 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ── Reveal Animations ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Selection & Focus ───────────────────────────────────────── */
::selection {
  background: rgba(10, 132, 255, 0.15);
  color: var(--text-primary);
}

/* ── Branded Gradients & Patterns ───────────────────────────── */
.section-gradient-blue {
  background: linear-gradient(180deg, rgba(10, 132, 255, 0.03) 0%, var(--bg) 100%);
}

.section-gradient-teal {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.03) 0%, var(--bg) 100%);
}

.section-dot-pattern {
  position: relative;
}

.section-dot-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
}

/* Branded divider */
.branded-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--teal), transparent);
  opacity: 0.2;
  border: none;
}

/* ── Section Tag Variants (colored pills) ───────────────────── */
.section-tag-teal {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.08);
}

.section-tag-coral {
  color: var(--coral);
  background: rgba(230, 126, 91, 0.08);
}

.section-tag-amber {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
}

.section-tag-purple {
  color: var(--purple);
  background: rgba(139, 92, 246, 0.08);
}

/* ── Hero Gradient Text ─────────────────────────────────────── */
.hero-headline {
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient text for light sections */
.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, #1a3a5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Score Ring Component ────────────────────────────────────── */
.score-ring {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  --score: 0;
  --ring-color: var(--teal);
  background: conic-gradient(
    var(--ring-color) calc(var(--score) * 3.6deg),
    var(--bg-tertiary) calc(var(--score) * 3.6deg)
  );
}

.score-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--bg);
  border-radius: 50%;
}

.score-ring-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.score-ring-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.score-ring-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Score ring sizes */
.score-ring-sm {
  width: 56px;
  height: 56px;
}

.score-ring-sm::before { inset: 5px; }

.score-ring-sm .score-ring-value {
  font-size: 14px;
}

.score-ring-sm .score-ring-label {
  font-size: 7px;
  margin-top: 0;
}

.score-ring-lg {
  width: 160px;
  height: 160px;
}

.score-ring-lg::before { inset: 12px; }

.score-ring-lg .score-ring-value {
  font-size: 44px;
}

.score-ring-lg .score-ring-label {
  font-size: 12px;
}

/* Score ring on dark backgrounds */
.score-ring-dark::before {
  background: #111111;
}

.score-ring-dark .score-ring-value {
  color: var(--white);
}

.score-ring-dark .score-ring-label {
  color: rgba(255, 255, 255, 0.4);
}

/* Score ring animation */
@keyframes scoreRingFill {
  from { --score: 0; }
}

.score-ring-animated {
  animation: scoreRingFill 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* @property for animating CSS custom property */
@property --score {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

/* ── Category Bar Component ─────────────────────────────────── */
.category-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-bar-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  min-width: 90px;
  text-align: right;
}

.category-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.23, 1, 0.32, 1);
  min-width: 4px;
}

.category-bar-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 32px;
}

/* Color variants */
.bar-coral { background: var(--coral); }
.bar-amber { background: var(--amber); }
.bar-teal { background: var(--teal); }

/* ── Stat Counter Cards ─────────────────────────────────────── */
.stat-bar {
  padding: var(--s-3xl) 0;
  border-bottom: 1px solid var(--border);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-lg);
}

.stat-card {
  text-align: center;
  padding: var(--s-xl);
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: var(--s-sm);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ── Score Ring Demo Grid ───────────────────────────────────── */
.score-rings-demo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
}

.score-ring-demo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: var(--s-md);
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
}

.score-ring-demo-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

/* ── Card Hover Accent ──────────────────────────────────────── */
.feature-card {
  border-left: 3px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  border-left-color: var(--blue);
}

.why-item {
  border-left: 3px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-item:hover {
  border-left-color: var(--teal);
}

/* ── Footer Gradient Top ────────────────────────────────────── */
.footer {
  border-top: none;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10, 132, 255, 0.2), rgba(20, 184, 166, 0.2), transparent);
}

/* ── Blog Card Colored Borders ──────────────────────────────── */
.blog-card {
  border-left: 3px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.blog-card-tag-guide {
  color: var(--blue);
  background: rgba(10, 132, 255, 0.08);
}

.blog-card-tag-beginner {
  color: var(--teal);
  background: rgba(20, 184, 166, 0.08);
}

.blog-card-tag-repair {
  color: var(--coral);
  background: rgba(230, 126, 91, 0.08);
}

.blog-card-tag-comparison {
  color: var(--amber);
  background: rgba(245, 158, 11, 0.08);
}

.blog-card[data-tag="guide"] { border-left-color: var(--blue); }
.blog-card[data-tag="beginner"] { border-left-color: var(--teal); }
.blog-card[data-tag="repair"] { border-left-color: var(--coral); }
.blog-card[data-tag="comparison"] { border-left-color: var(--amber); }

/* ── Content Page Accents ───────────────────────────────────── */
.content-accent-teal .breadcrumb {
  border-bottom: 2px solid var(--teal);
  padding-bottom: var(--s-sm);
}

.content-accent-coral .breadcrumb {
  border-bottom: 2px solid var(--coral);
  padding-bottom: var(--s-sm);
}

.content-accent-amber .breadcrumb {
  border-bottom: 2px solid var(--amber);
  padding-bottom: var(--s-sm);
}

.content-accent-blue .breadcrumb {
  border-bottom: 2px solid var(--blue);
  padding-bottom: var(--s-sm);
}

/* ── Quiz Redesign Styles ───────────────────────────────────── */
.quiz-hero {
  text-align: center;
  margin-bottom: var(--s-2xl);
}

.quiz-hero h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-sm);
}

.quiz-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* Progress bar with labels */
.quiz-progress-enhanced {
  display: flex;
  gap: 2px;
  margin-bottom: var(--s-xl);
  position: relative;
}

.quiz-progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.quiz-progress-step-bar {
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  transition: background 0.4s ease;
}

.quiz-progress-step.active .quiz-progress-step-bar,
.quiz-progress-step.completed .quiz-progress-step-bar {
  background: var(--blue);
}

.quiz-progress-step-label {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.3s ease;
  text-align: center;
  line-height: 1.2;
}

.quiz-progress-step.active .quiz-progress-step-label {
  color: var(--blue);
  font-weight: 600;
}

.quiz-progress-step.completed .quiz-progress-step-label {
  color: var(--text-secondary);
}

/* Quiz question with icon */
.quiz-question-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--s-lg);
}

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

.quiz-question-icon-coral { background: rgba(230, 126, 91, 0.1); color: var(--coral); }
.quiz-question-icon-teal { background: rgba(20, 184, 166, 0.1); color: var(--teal); }
.quiz-question-icon-blue { background: rgba(10, 132, 255, 0.1); color: var(--blue); }
.quiz-question-icon-amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); }
.quiz-question-icon-purple { background: rgba(139, 92, 246, 0.1); color: var(--purple); }
.quiz-question-icon-red { background: rgba(249, 112, 102, 0.1); color: var(--red); }

/* Question transition */
.quiz-question-animated {
  animation: quizSlideIn 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Quiz option focus */
.quiz-option:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── Quiz Results Page ──────────────────────────────────────── */
.quiz-results {
  padding: var(--s-xl) 0;
  animation: quizSlideIn 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.quiz-results-header {
  text-align: center;
  margin-bottom: var(--s-2xl);
}

.quiz-results-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-sm);
}

.quiz-results-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Score overview */
.quiz-score-overview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2xl);
  margin-bottom: var(--s-2xl);
  padding: var(--s-xl);
  background: var(--bg-secondary);
  border-radius: var(--r-xl);
}

.quiz-score-details {
  text-align: left;
}

.quiz-score-details h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-xs);
}

.quiz-score-details p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 280px;
}

/* Category bars list */
.quiz-categories {
  margin-bottom: var(--s-2xl);
}

.quiz-categories h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-md);
}

.quiz-categories-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}

/* Top concerns */
.quiz-concerns {
  margin-bottom: var(--s-2xl);
}

.quiz-concerns h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-md);
}

.quiz-concerns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
}

.quiz-concern-card {
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  border-left: 3px solid var(--coral);
}

.quiz-concern-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--s-xs);
}

.quiz-concern-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Recommendations */
.quiz-recommendations {
  margin-bottom: var(--s-2xl);
}

.quiz-recommendations h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--s-md);
}

.quiz-rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-md);
}

.quiz-rec-card {
  background: var(--bg-secondary);
  border-radius: var(--r-lg);
  padding: var(--s-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quiz-rec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.quiz-rec-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--s-xs);
}

.quiz-rec-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--s-sm);
}

.quiz-rec-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Quiz CTA */
.quiz-cta {
  background: linear-gradient(135deg, #000000 0%, #111111 100%);
  border-radius: var(--r-2xl);
  padding: var(--s-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quiz-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(10, 132, 255, 0.08) 0%, transparent 50%);
}

.quiz-cta h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--s-sm);
  position: relative;
  z-index: 1;
}

.quiz-cta p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  margin-bottom: var(--s-lg);
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

.quiz-cta-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35) !important;
  margin-top: var(--s-md) !important;
  margin-bottom: 0 !important;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-phone { right: 4%; }
  .phone-frame { width: 240px; height: 490px; }
  .app-score-number { font-size: 42px; }
  .app-metric-ring svg { width: 30px; height: 30px; }
  .app-greeting-name { font-size: 17px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    min-height: auto;
  }

  .hero-content { padding-bottom: 0; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta-group { align-items: center; }

  .hero-phone {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-top: var(--s-2xl);
  }

  .phone-frame { width: 220px; height: 450px; margin: 0 auto; }
  .app-score-number { font-size: 36px; }
  .app-metric-ring svg { width: 28px; height: 28px; }
  .app-greeting-name { font-size: 16px; }
  .app-step-name { font-size: 11px; }
  .app-routine-title { font-size: 12px; }

  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-template-columns: 1fr; }

  .trust-logos { gap: var(--s-md); }
  .trust-divider { display: none; }

  .journey-scores { gap: var(--s-md); }
  .journey-score-num { font-size: 44px; }

  .footer-top { flex-direction: column; gap: var(--s-xl); }
  .footer-links { gap: var(--s-xl); }

  .waitlist-input-group { flex-direction: column; }

  .score-grid-demo { grid-template-columns: 1fr; }

  .why-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  /* New components */
  .stat-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 36px; }
  .score-rings-demo { grid-template-columns: repeat(3, 1fr); gap: var(--s-sm); }
  .score-ring-demo-item { padding: var(--s-sm); }

  .quiz-score-overview {
    flex-direction: column;
    text-align: center;
    gap: var(--s-lg);
  }
  .quiz-score-details { text-align: center; }
  .quiz-score-details p { max-width: none; }
  .quiz-concerns-grid { grid-template-columns: 1fr; }
  .quiz-rec-grid { grid-template-columns: 1fr; }
  .quiz-progress-step-label { font-size: 7px; }
  .category-bar-label { min-width: 70px; font-size: 12px; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .section-title { font-size: 28px; }
  .journey-card { padding: var(--s-xl); }
  .coming-soon-card { padding: var(--s-xl); }
  .waitlist-input-group { flex-direction: column; }
  .waitlist-btn { width: 100%; }
  .footer-links { flex-wrap: wrap; }

  .score-ring-lg { width: 120px; height: 120px; }
  .score-ring-lg::before { inset: 8px; }
  .score-ring-lg .score-ring-value { font-size: 32px; }
  .score-rings-demo { grid-template-columns: repeat(3, 1fr); }
  .score-ring-sm { width: 44px; height: 44px; }
  .score-ring-sm .score-ring-value { font-size: 12px; }

  .quiz-cta { padding: var(--s-xl); }
  .quiz-progress-step-label { display: none; }
  .quiz-question-header h2 { font-size: 20px; }
}
