:root {
  /* iOS-inspired system palette */
  --bg-primary: #FFFFFF;
  --bg-grouped: #F2F2F7;           /* systemGroupedBackground */
  --bg-secondary-grouped: #FFFFFF;  /* secondarySystemGroupedBackground */
  --bg-tertiary-fill: rgba(120, 120, 128, 0.08); /* tertiarySystemFill */
  --bg-quaternary-fill: rgba(120, 120, 128, 0.04);

  --label-primary: #000000;
  --label-secondary: rgba(60, 60, 67, 0.6);   /* secondaryLabel */
  --label-tertiary: rgba(60, 60, 67, 0.3);     /* tertiaryLabel */
  --label-quaternary: rgba(60, 60, 67, 0.18);

  --separator: rgba(60, 60, 67, 0.06);         /* separator */
  --separator-opaque: #C6C6C8;

  /* System colors */
  --system-green: #34C759;
  --system-gray5: #E5E5EA;

  /* Brand accent — rose-to-purple */
  --accent-rose: #E8736C;
  --accent-plum: #8B5CF6;
  --accent-lavender: #C4B5FD;
  --accent-rose-soft: rgba(232, 115, 108, 0.12);
  --accent-plum-soft: rgba(139, 92, 246, 0.08);

  --gradient-brand: linear-gradient(135deg, #E8736C 0%, #D97ACF 50%, #8B5CF6 100%);
  --gradient-hero: linear-gradient(160deg, #FEF0EE 0%, #F5EDFB 40%, #EEEAFB 70%, #F2F2F7 100%);
  --gradient-cta-bottom: linear-gradient(160deg, #FEF0EE 0%, #F3EAFB 50%, #EDE8FB 100%);

  --radius-card: 16px;
  --radius-pill: 100px;
  --radius-button: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, SF Pro Display, SF Pro Text, system-ui, sans-serif;
  color: var(--label-primary);
  background: var(--bg-primary);
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: 'cv11' 1, 'ss01' 1;
}

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 24px;
  background: var(--gradient-hero);
  position: relative;
}

.hero-content {
  max-width: 600px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
}

.hero-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 22.5%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.hero-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--label-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--label-primary);
  margin-bottom: 20px;
}

h1 em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--label-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 36px;
  letter-spacing: -0.01em;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 32px;
  background: var(--gradient-brand);
  color: white;
  border-radius: var(--radius-button);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.cta-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--label-tertiary);
  font-weight: 500;
}

/* ========== HERO CARD STACK ========== */
.hero-cards {
  position: relative;
  width: 320px;
  max-width: 100%;
  height: 110px;
  margin-bottom: 40px;
}

.hero-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06),
              0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform, opacity;
}

/* Stack positions: front, middle, back, hidden */
.hero-card[data-pos="0"] {
  transform: translateY(0) scale(1);
  opacity: 1;
  z-index: 3;
}

.hero-card[data-pos="1"] {
  transform: translateY(8px) scale(0.97);
  opacity: 0.6;
  z-index: 2;
}

.hero-card[data-pos="2"] {
  transform: translateY(16px) scale(0.94);
  opacity: 0.3;
  z-index: 1;
}

/* Cards not in the visible stack */
.hero-card[data-pos="exit"] {
  transform: translateX(-40px) scale(0.95);
  opacity: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-card[data-pos="enter"] {
  transform: translateY(20px) scale(0.91);
  opacity: 0;
  z-index: 0;
  transition: none;
}

.hero-card-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-grouped);
  border-radius: 10px;
}

.hero-card-body {
  flex: 1;
  min-width: 0;
}

.hero-card-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--label-primary);
  letter-spacing: -0.01em;
  margin-bottom: 1px;
}

.hero-card-detail {
  font-size: 13px;
  color: var(--label-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.hero-card-metric {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.hero-card-metric-value {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-card-metric-unit {
  font-size: 12px;
  color: var(--label-tertiary);
  font-weight: 500;
}

/* ========== SECTION SHARED ========== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-rose);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--label-primary);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 1rem;
  color: var(--label-secondary);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* ========== THE GAP ========== */
.gap-section {
  padding: 88px 24px;
  background: var(--label-primary);
  overflow: hidden;
}

.gap-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.gap-copy {
  flex: 1;
  min-width: 0;
}

.gap-copy p {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.01em;
  text-align: left;
}

.gap-copy strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.gap-highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Scrolling biomarker tiles */
.bio-scroll {
  flex-shrink: 0;
  width: 180px;
  height: 260px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 75%, transparent 100%);
}

.bio-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: bioScroll 50s linear infinite;
}

@keyframes bioScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.bio-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  flex-shrink: 0;
}

.bio-name {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.01em;
}

.bio-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

.bio-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.bio-dot.bio-in {
  background: #5AC8FA;
  box-shadow: 0 0 6px rgba(90, 200, 250, 0.4);
}

.bio-dot.bio-out {
  background: #FF9F0A;
  box-shadow: 0 0 6px rgba(255, 159, 10, 0.4);
}

.bio-dot.bio-optimal {
  background: #30D158;
  box-shadow: 0 0 6px rgba(48, 209, 88, 0.4);
}

.bio-val {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: -0.01em;
}

.bio-val-out {
  color: #FF9F0A;
}

.bio-val-optimal {
  color: #30D158;
}

/* Gap section mobile: stack vertically */
@media (max-width: 640px) {
  .gap-inner {
    flex-direction: column;
    gap: 32px;
  }
  .bio-scroll {
    width: 100%;
    height: 160px;
  }
  .bio-scroll-track {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    animation: bioScrollH 25s linear infinite;
  }
  .bio-tile {
    min-width: 150px;
  }
  .bio-scroll {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    height: auto;
  }
  @keyframes bioScrollH {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .gap-copy p {
    text-align: center;
  }
}

/* ========== YOUR DECK ========== */
.deck-section {
  padding: 88px 24px;
  background: var(--bg-grouped);
  text-align: center;
}

.deck-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
  margin: 0 auto;
}

.habit-card {
  background: var(--bg-secondary-grouped);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 0.5px 0 0 rgba(0,0,0,0.04),
              0 1px 3px rgba(0,0,0,0.04);
}

.habit-card:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.06),
              0 6px 20px rgba(0,0,0,0.08);
}

.habit-emoji {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-grouped);
  border-radius: 10px;
}

.habit-info {
  flex: 1;
  min-width: 0;
}

.habit-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--label-primary);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.habit-detail {
  font-size: 13px;
  color: var(--label-secondary);
  line-height: 1.45;
}

.habit-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.habit-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tag-active {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
}

.tag-graduated {
  background: rgba(52, 199, 89, 0.12);
  color: var(--system-green);
}

.habit-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--system-gray5);
  border-radius: 2px;
  overflow: hidden;
}

.habit-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--gradient-brand);
  transition: width 1s ease;
}

.graduated-card {
  opacity: 0.55;
}

.deck-caption {
  margin-top: 24px;
  font-size: 13px;
  color: var(--label-tertiary);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== HOW IT WORKS ========== */
.how-section {
  padding: 88px 24px;
  background: var(--bg-primary);
}

.how-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
  text-align: left;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px 16px;
  align-items: start;
}

.step-visual {
  grid-column: 1 / -1;
  max-width: 220px;
  margin-bottom: 4px;
}

.step-number {
  grid-column: 1;
  grid-row: 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.step-content {
  grid-column: 2;
  grid-row: 2;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--label-primary);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.step-content p {
  font-size: 14px;
  color: var(--label-secondary);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* ========== STEP VISUALS ========== */
.sv-card {
  background: var(--bg-grouped);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06),
              0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
  height: 140px;
  position: relative;
}

.sv-card-header {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--label-tertiary);
  margin-bottom: 10px;
}

/* Step 1: Intake Form */
.sv-intake-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sv-intake-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.sv-intake-row.sv-visible {
  opacity: 1;
  transform: translateY(0);
}

.sv-intake-q {
  font-size: 11px;
  color: var(--label-secondary);
  letter-spacing: -0.01em;
}

.sv-intake-a {
  font-size: 11px;
  font-weight: 600;
  color: var(--label-primary);
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.sv-intake-row.sv-answered .sv-intake-a {
  opacity: 1;
  transform: translateX(0);
}

/* Step 2: Focus Plan */
.sv-plan .sv-card {
  min-height: 120px;
}

.sv-plan-loading,
.sv-plan-status,
.sv-plan-result {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 16px;
  bottom: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sv-plan[data-phase="loading"] .sv-plan-loading { opacity: 1; }
.sv-plan[data-phase="status"] .sv-plan-status { opacity: 1; }
.sv-plan[data-phase="result"] .sv-plan-result { opacity: 1; }

.sv-shimmer-line {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--bg-grouped) 25%,
    rgba(120, 120, 128, 0.12) 50%,
    var(--bg-grouped) 75%
  );
  background-size: 200% 100%;
  animation: svShimmer 1.5s ease-in-out infinite;
  margin-bottom: 10px;
}

.sv-shimmer-w80 { width: 80%; }
.sv-shimmer-w60 { width: 60%; }
.sv-shimmer-w90 { width: 90%; }

@keyframes svShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.sv-plan-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
}

.sv-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-rose);
  animation: svPulse 1s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes svPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.sv-status-text {
  font-size: 11px;
  color: var(--label-secondary);
  letter-spacing: -0.01em;
}

.sv-plan-result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

.sv-plan-result-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--label-tertiary);
}

.sv-plan-result-focus {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sv-plan-result-count {
  font-size: 12px;
  color: var(--label-secondary);
  font-weight: 500;
}

/* Step 3: Mini Deck */
.sv-deck-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sv-deck-habit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--bg-grouped);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.sv-deck-habit.sv-visible {
  opacity: 1;
  transform: translateY(0);
}

.sv-deck-emoji {
  font-size: 14px;
  line-height: 1;
}

.sv-deck-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--label-primary);
  letter-spacing: -0.01em;
}

/* ========== PROOF CAROUSEL ========== */
.proof-section {
  padding: 88px 0;
  background: var(--bg-grouped);
  text-align: center;
  overflow: hidden;
}

.proof-header {
  padding: 0 24px;
  margin-bottom: 40px;
}

.proof-header h2 {
  margin-bottom: 8px;
}

.proof-header p {
  font-size: 15px;
  color: var(--label-secondary);
  letter-spacing: -0.01em;
}

.proof-track-wrapper {
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.proof-track {
  display: flex;
  gap: 16px;
  padding: 4px 24px 4px;
  animation: proofScroll 40s linear infinite;
  width: max-content;
}

.proof-track:hover {
  animation-play-state: paused;
}

@keyframes proofScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.proof-card {
  flex-shrink: 0;
  width: 320px;
  background: var(--bg-secondary-grouped);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: left;
  box-shadow: 0 0.5px 0 0 rgba(0,0,0,0.04),
              0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proof-card-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.proof-card-stat .pc-number {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.proof-card-stat .pc-label {
  font-size: 13px;
  color: var(--label-tertiary);
  font-weight: 500;
}

.proof-card-quote {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--label-secondary);
  letter-spacing: -0.01em;
  flex: 1;
}

.proof-card-person {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  border-top: 0.5px solid var(--separator);
}

.proof-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  font-weight: 600;
  flex-shrink: 0;
}

.proof-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.proof-person-info {
  display: flex;
  flex-direction: column;
}

.proof-person-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--label-primary);
  letter-spacing: -0.01em;
}

.proof-person-detail {
  font-size: 12px;
  color: var(--label-tertiary);
  font-weight: 500;
}

.proof-card-habit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--accent-rose-soft);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-rose);
  letter-spacing: -0.01em;
  align-self: flex-start;
}

/* ========== FAMILY ========== */
.family-section {
  padding: 88px 24px;
  background: var(--bg-primary);
  text-align: left;
  overflow: hidden;
}

.family-header {
  max-width: 480px;
  margin: 0 0 40px max(24px, calc((100vw - 1080px) / 2));
}

.family-sub {
  font-size: 15px;
  color: var(--label-secondary);
  line-height: 1.6;
  letter-spacing: -0.01em;
}

.family-section h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin-bottom: 10px;
}

/* Family profile cards — horizontal scroll */
.family-profiles {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 6px max(24px, calc((100vw - 1080px) / 2)) 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.family-profiles::-webkit-scrollbar {
  display: none;
}

.fp-card {
  flex-shrink: 0;
  width: 200px;
  height: 300px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.fp-card-you {
  outline: 2.5px solid var(--accent-rose);
  outline-offset: 2px;
  box-shadow: 0 4px 20px rgba(232, 115, 108, 0.15), 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Photo background */
.fp-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-color: var(--bg-grouped);
}

/* Gradient overlay for text legibility */
.fp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 25%,
    rgba(0, 0, 0, 0.1) 45%,
    rgba(0, 0, 0, 0.5) 70%,
    rgba(0, 0, 0, 0.8) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

/* Top area — badges */
.fp-top {
  display: flex;
  justify-content: flex-start;
}

.fp-you-badge {
  background: var(--accent-rose);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Bottom area — info */
.fp-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fp-identity {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fp-name {
  font-size: 16px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}

.fp-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Progress dots */
.fp-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-progress-dots {
  display: flex;
  gap: 4px;
}

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

.fp-dot.fp-done {
  background: var(--system-green);
  box-shadow: 0 0 4px rgba(52, 199, 89, 0.4);
}

.fp-dot.fp-pending {
  background: rgba(255, 255, 255, 0.3);
}

.fp-progress-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Mini habit card stack */
.fp-habit-stack {
  width: 100%;
  height: 30px;
  position: relative;
}

.fp-habit {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fp-habit.fp-habit-active {
  opacity: 1;
  transform: translateY(0);
}

.fp-habit-emoji {
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}

.fp-habit-name {
  font-size: 11px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-habit-alldone {
  background: rgba(52, 199, 89, 0.2);
}

.fp-habit-alldone .fp-habit-emoji {
  color: var(--system-green);
  font-weight: 700;
}

.fp-habit-alldone .fp-habit-name {
  color: rgba(255, 255, 255, 0.95);
}

/* ========== CTA BOTTOM ========== */
.cta-section {
  padding: 88px 24px;
  background: var(--gradient-cta-bottom);
  text-align: center;
}

.cta-inner {
  max-width: 480px;
  margin: 0 auto;
}

.cta-section h2 {
  margin-bottom: 40px;
}

.cta-bottom-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--label-tertiary);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 24px;
  background: #1C1C1E;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: -0.01em;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

.fade-in-d1 { transition-delay: 0.08s; }
.fade-in-d2 { transition-delay: 0.16s; }
.fade-in-d3 { transition-delay: 0.24s; }
.fade-in-d4 { transition-delay: 0.32s; }
.fade-in-d5 { transition-delay: 0.40s; }

/* ========== RESPONSIVE ========== */
@media (min-width: 640px) {
  .hero { padding: 100px 32px; }
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
  }
  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .step-visual {
    max-width: 220px;
    width: 100%;
    margin-bottom: 4px;
  }
  .step-content { text-align: center; }
}

@media (max-width: 380px) {
  h1 { font-size: 2rem; }
  .habit-card { padding: 14px 16px; gap: 12px; }
  .habit-emoji { width: 36px; height: 36px; font-size: 20px; }
  .proof-card { width: 280px; padding: 20px; }
  .step-visual { max-width: 200px; }
  .sv-intake-q, .sv-intake-a, .sv-status-text, .sv-deck-name { font-size: 10px; }
  .sv-card { padding: 12px 14px; height: 130px; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .proof-track,
  .bio-scroll-track {
    animation: none;
  }
  .cta-primary:hover {
    transform: none;
  }
  .hero-card {
    transition: none;
  }
  .sv-intake-row,
  .sv-deck-habit {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sv-intake-a {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .sv-plan-loading,
  .sv-plan-status,
  .sv-plan-result {
    transition: none;
  }
  .sv-shimmer-line {
    animation: none;
    background: var(--bg-grouped);
  }
  .sv-status-dot {
    animation: none;
    opacity: 1;
  }
  .fp-habit {
    transition: none;
  }
}
