: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.72);   /* secondaryLabel — bumped for web contrast */
  --label-tertiary: rgba(60, 60, 67, 0.44);     /* tertiaryLabel — bumped for web contrast */
  --label-quaternary: rgba(60, 60, 67, 0.24);

  --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: space-between;
  position: absolute;
  top: 32px;
  left: 24px;
  right: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.hero-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-brand-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-brand-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--label-secondary);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.hero-brand-links a:hover {
  color: var(--label-primary);
}

@media (max-width: 520px) {
  .hero-brand-links {
    display: none;
  }
  .hero-brand {
    justify-content: center;
  }
}

.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.6);
  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 14s 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: none;
  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);
}

/* ========== VOICE CHECK-IN ========== */
.voice-section {
  padding: 88px 24px;
  background: var(--bg-primary);
}

.voice-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

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

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

.voice-visual {
  flex-shrink: 0;
  width: 260px;
}

.voice-card {
  background: var(--bg-grouped);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06),
              0 4px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.voice-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 32px;
}

.voice-wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--gradient-brand);
  animation: voiceWave 1.2s ease-in-out infinite;
}

.voice-wave-bar:nth-child(1)  { height: 8px;  animation-delay: 0s; }
.voice-wave-bar:nth-child(2)  { height: 16px; animation-delay: 0.1s; }
.voice-wave-bar:nth-child(3)  { height: 24px; animation-delay: 0.2s; }
.voice-wave-bar:nth-child(4)  { height: 12px; animation-delay: 0.3s; }
.voice-wave-bar:nth-child(5)  { height: 28px; animation-delay: 0.15s; }
.voice-wave-bar:nth-child(6)  { height: 18px; animation-delay: 0.25s; }
.voice-wave-bar:nth-child(7)  { height: 10px; animation-delay: 0.35s; }
.voice-wave-bar:nth-child(8)  { height: 22px; animation-delay: 0.05s; }
.voice-wave-bar:nth-child(9)  { height: 14px; animation-delay: 0.2s; }
.voice-wave-bar:nth-child(10) { height: 26px; animation-delay: 0.3s; }
.voice-wave-bar:nth-child(11) { height: 10px; animation-delay: 0.1s; }
.voice-wave-bar:nth-child(12) { height: 6px;  animation-delay: 0.25s; }

@keyframes voiceWave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.voice-transcript {
  font-size: 13px;
  color: var(--label-secondary);
  font-style: italic;
  text-align: center;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.voice-matches {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.voice-match {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-secondary-grouped);
  border-radius: 8px;
}

.voice-match-check {
  font-size: 11px;
  font-weight: 700;
  color: var(--system-green);
  flex-shrink: 0;
}

.voice-match-emoji {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

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

@media (max-width: 640px) {
  .voice-inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .voice-visual {
    width: 100%;
    max-width: 280px;
  }
}

/* ========== PLAN EVOLVES ========== */
.evolves-section {
  padding: 88px 24px;
  background: var(--bg-primary);
}

.evolves-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

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

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

.evolves-visual {
  flex-shrink: 0;
  width: 280px;
}

.evolves-card {
  background: var(--bg-grouped);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06),
              0 4px 16px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.evolves-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

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

.evolves-card-week {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-rose);
  letter-spacing: -0.01em;
}

.evolves-card-insight {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--accent-plum-soft);
  border-radius: 8px;
}

.evolves-insight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-plum);
  flex-shrink: 0;
  margin-top: 4px;
}

.evolves-insight-text {
  font-size: 11px;
  color: var(--label-secondary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.evolves-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.evolves-suggestion {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-secondary-grouped);
  border-radius: 8px;
}

.evolves-suggestion-emoji {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.evolves-suggestion-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

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

.evolves-suggestion-reason {
  font-size: 10px;
  color: var(--label-tertiary);
  letter-spacing: -0.01em;
}

.evolves-suggestion-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
  flex-shrink: 0;
}

.evolves-suggestion-check {
  font-size: 11px;
  font-weight: 700;
  color: var(--system-green);
  flex-shrink: 0;
}

.evolves-suggestion-graduated {
  opacity: 0.55;
}

@media (max-width: 640px) {
  .evolves-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 32px;
  }
  .evolves-visual {
    width: 100%;
    max-width: 300px;
  }
}

/* ========== FAMILY FEATURES ========== */
.family-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 40px auto 0;
  padding: 0 max(0px, calc((100vw - 1080px) / 2));
}

.family-feature {
  background: var(--bg-grouped);
  border-radius: var(--radius-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.family-feature-icon {
  font-size: 24px;
  line-height: 1;
}

.family-feature-body strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--label-primary);
  margin-bottom: 4px;
}

.family-feature-body p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--label-secondary);
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .family-features {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
}

/* ========== 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: 20px 24px;
  background: #1C1C1E;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: -0.01em;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-credit {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

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

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

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}

/* ========== LEGAL PAGES ========== */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
  border-bottom: 1px solid var(--separator);
  width: 100%;
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--label-primary);
}

.legal-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
}

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

.legal-brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal-content {
  flex: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  width: 100%;
}

.legal-content h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--label-secondary);
  margin-bottom: 32px;
}

.legal-content h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--label-primary);
}

.legal-content ul {
  margin-bottom: 12px;
  padding-left: 20px;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 6px;
  color: var(--label-primary);
}

.legal-content a {
  color: var(--accent-plum);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 28px 0 36px;
}

.legal-highlight {
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-card);
  background: var(--bg-grouped);
}

.legal-highlight-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.legal-highlight-icon--device {
  background: linear-gradient(135deg, #34C759 0%, #30D158 50%, #63E6BE 100%);
}

.legal-highlight-icon--ai {
  background: linear-gradient(135deg, #E8736C 0%, #D97ACF 50%, #8B5CF6 100%);
}

.legal-highlight-icon--minimal {
  background: linear-gradient(135deg, #FF9F0A 0%, #F59E0B 50%, #FBBF24 100%);
}

.legal-highlight-icon--anthropic {
  background: linear-gradient(135deg, #5B9BD5 0%, #7C6FD4 50%, #8B5CF6 100%);
}

.legal-highlight-body strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.legal-highlight-body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--label-secondary);
  margin-bottom: 0;
}

.legal-divider {
  border: none;
  border-top: 1px solid var(--separator-opaque);
  margin: 48px 0;
}

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

/* Nav */
.hiw-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hiw-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--label-primary);
}

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

.hiw-nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hiw-nav-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hiw-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hiw-nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--label-secondary);
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.hiw-nav-links a:hover {
  color: var(--label-primary);
}

.hiw-nav-links a.hiw-nav-active {
  color: var(--label-primary);
  font-weight: 600;
}

@media (max-width: 520px) {
  .hiw-nav-links { display: none; }
  .hiw-nav { justify-content: center; }
}

/* Hero */
.hiw-hero {
  padding: 32px 0 80px;
  background: var(--gradient-hero);
  text-align: center;
}

.hiw-hero-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 60px 24px 0;
}

.hiw-hero h1 {
  margin-bottom: 16px;
}

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

/* Shared section styles */
.hiw-section {
  padding: 80px 24px;
}

.hiw-section-alt {
  background: var(--bg-grouped);
}

.hiw-section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hiw-section-header {
  text-align: center;
  margin-bottom: 40px;
}

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

/* Two-column layout */
.hiw-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.hiw-col-text p {
  font-size: 15px;
  color: var(--label-secondary);
  line-height: 1.65;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.hiw-col-text p:last-child {
  margin-bottom: 0;
}

.hiw-detail-card {
  background: var(--bg-secondary-grouped);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 0.5px 0 0 rgba(0,0,0,0.04),
              0 1px 3px rgba(0,0,0,0.04);
}

.hiw-section-alt .hiw-detail-card {
  background: var(--bg-primary);
}

.hiw-detail-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--label-tertiary);
  margin-bottom: 12px;
}

.hiw-detail-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hiw-detail-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--label-primary);
  letter-spacing: -0.01em;
}

.hiw-detail-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

@media (max-width: 640px) {
  .hiw-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Milestones (dark section) */
.hiw-section-dark {
  background: var(--label-primary);
  padding: 80px 24px;
}

.hiw-h2-light {
  color: white;
}

.hiw-label-light {
  color: var(--accent-lavender);
}

.hiw-sub-light {
  color: rgba(255, 255, 255, 0.6);
}

.hiw-milestones {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 560px;
  margin: 0 auto;
}

.hiw-milestone {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.hiw-milestone-bloom {
  background: rgba(255, 255, 255, 0.08);
  outline: 1px solid rgba(255, 255, 255, 0.1);
}

.hiw-milestone-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-milestone-body {
  flex: 1;
  min-width: 0;
}

.hiw-milestone-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.hiw-milestone-name {
  font-size: 15px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
}

.hiw-milestone-count {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.hiw-milestone-body p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.hiw-milestone-badge {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(196, 181, 253, 0.15);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-lavender);
  letter-spacing: -0.01em;
}

.hiw-milestone-note {
  text-align: center;
  margin-top: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.hiw-milestone-note p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

/* Weekly rhythm blocks */
.hiw-rhythm {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hiw-rhythm-block {
  padding: 28px 0;
  border-bottom: 0.5px solid var(--separator);
}

.hiw-rhythm-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hiw-rhythm-block:first-child {
  padding-top: 0;
}

.hiw-rhythm-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-rose);
  margin-bottom: 6px;
}

.hiw-rhythm-block h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--label-primary);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hiw-rhythm-block p {
  font-size: 15px;
  color: var(--label-secondary);
  line-height: 1.6;
  letter-spacing: -0.01em;
  max-width: 600px;
}

/* Compounds horizontal scroll carousel */
.hiw-section-compound {
  background: var(--bg-primary);
  padding: 80px 24px 80px;
}

.hiw-compound-scroll-wrapper {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 0 24px 20px;
  margin: 0 -24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hiw-compound-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.hiw-compound-scroll {
  display: flex;
  gap: 0;
  width: max-content;
  padding-left: max(24px, calc((100vw - 680px) / 2));
  padding-right: 48px;
  position: relative;
}

.hiw-compound-scroll::before {
  content: '';
  position: absolute;
  top: 6px;
  left: max(24px, calc((100vw - 680px) / 2));
  right: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--accent-rose), var(--accent-plum));
  border-radius: 1px;
}

.hiw-compound-card {
  flex-shrink: 0;
  width: 260px;
  padding: 28px 24px 24px 0;
  position: relative;
}

.hiw-compound-card:last-child {
  padding-right: 0;
}

.hiw-compound-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-rose);
  position: absolute;
  top: 1px;
  left: 0;
}

.hiw-compound-card:nth-child(2) .hiw-compound-dot { border-color: #D07AA0; }
.hiw-compound-card:nth-child(3) .hiw-compound-dot { border-color: #B87CC8; }
.hiw-compound-card:nth-child(4) .hiw-compound-dot { border-color: #A07CE0; }
.hiw-compound-card:nth-child(5) .hiw-compound-dot { border-color: var(--accent-plum); }

.hiw-compound-time {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-rose);
  margin-bottom: 8px;
  margin-top: 20px;
}

.hiw-compound-card:nth-child(2) .hiw-compound-time { color: #D07AA0; }
.hiw-compound-card:nth-child(3) .hiw-compound-time { color: #B87CC8; }
.hiw-compound-card:nth-child(4) .hiw-compound-time { color: #A07CE0; }
.hiw-compound-card:nth-child(5) .hiw-compound-time { color: var(--accent-plum); }

.hiw-compound-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--label-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.hiw-compound-card p {
  font-size: 13px;
  color: var(--label-secondary);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

@media (max-width: 640px) {
  .hiw-compound-card {
    width: 220px;
  }
}

/* ========== ABOUT PAGE ========== */
.about-hero {
  background: var(--gradient-hero);
  padding: 48px 24px 80px;
  text-align: center;
}

.about-hero-content {
  max-width: 600px;
  margin: 0 auto;
  padding-top: 40px;
}

.about-hero-japanese {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--label-tertiary);
}

.about-hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.about-hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--label-secondary);
  letter-spacing: -0.01em;
  max-width: 520px;
  margin: 0 auto;
}

/* About sections */
.about-section {
  padding: 80px 24px;
}

.about-section-alt {
  background: var(--bg-grouped);
}

.about-section-dark {
  background: var(--label-primary);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.about-dark-inner {
  position: relative;
  z-index: 2;
}

/* Stacking bar chart animation */
.about-stacking-chart {
  position: relative;
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 0 10%;
  margin-bottom: 40px;
}

.about-bar {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Organic width variation */
.about-bar-1  { width: 28px; }
.about-bar-2  { width: 34px; }
.about-bar-3  { width: 30px; }
.about-bar-4  { width: 38px; }
.about-bar-5  { width: 32px; }
.about-bar-6  { width: 42px; }
.about-bar-7  { width: 36px; }
.about-bar-8  { width: 44px; }
.about-bar-9  { width: 38px; }
.about-bar-10 { width: 46px; }

.about-bar-1  { transition-delay: 0.1s; }
.about-bar-2  { transition-delay: 0.2s; }
.about-bar-3  { transition-delay: 0.3s; }
.about-bar-4  { transition-delay: 0.4s; }
.about-bar-5  { transition-delay: 0.5s; }
.about-bar-6  { transition-delay: 0.6s; }
.about-bar-7  { transition-delay: 0.7s; }
.about-bar-8  { transition-delay: 0.8s; }
.about-bar-9  { transition-delay: 0.9s; }
.about-bar-10 { transition-delay: 1.0s; }

/* Break the perfect staircase — roots push deeper as the plant grows */
.layers-visible .about-bar { opacity: 1; transform: translateY(0); }
.layers-visible .about-bar-1  { transform: translateY(0px) scaleY(1.1); }
.layers-visible .about-bar-2  { transform: translateY(2px) scaleY(0.9); }
.layers-visible .about-bar-3  { transform: translateY(4px) scaleY(1.05); }
.layers-visible .about-bar-4  { transform: translateY(5px) scaleY(0.85); }
.layers-visible .about-bar-5  { transform: translateY(8px) scaleY(1.0); }
.layers-visible .about-bar-6  { transform: translateY(12px) scaleY(0.95); }
.layers-visible .about-bar-7  { transform: translateY(16px) scaleY(1.08); }
.layers-visible .about-bar-8  { transform: translateY(20px) scaleY(0.92); }
.layers-visible .about-bar-9  { transform: translateY(24px) scaleY(1.04); }
.layers-visible .about-bar-10 { transform: translateY(28px) scaleY(1.0); }

/* Root tendrils — thin wisps extending below each bar */
.about-bar::after {
  content: '';
  display: block;
  width: 3px;
  height: 0;
  margin: 1px auto 0;
  border-radius: 0 0 3px 3px;
  background: rgba(70, 50, 35, 0.45);
  transition: height 0.8s ease 0.3s;
}
.layers-visible .about-bar-3::after  { height: 6px; }
.layers-visible .about-bar-4::after  { height: 8px; }
.layers-visible .about-bar-5::after  { height: 12px; width: 3px; }
.layers-visible .about-bar-6::after  { height: 16px; width: 2px; }
.layers-visible .about-bar-7::after  { height: 22px; width: 2px; }
.layers-visible .about-bar-8::after  { height: 28px; width: 2px; }
.layers-visible .about-bar-9::after  { height: 34px; width: 2px; }
.layers-visible .about-bar-10::after { height: 40px; width: 2px; }

.about-bar-segment {
  width: 100%;
  border-radius: 6px;
}

/* Earthy palette: deep roots → soil → clay → amber → moss → sage */
/* Root layers (s1–s2): dark, tapered, grow deeper on taller bars */
.about-bar-segment.s1  { height: 14px; background: rgba(70, 50, 35, 0.80); border-radius: 4px 4px 8px 8px; }
.about-bar-segment.s2  { height: 11px; background: rgba(95, 65, 45, 0.68); border-radius: 4px 4px 6px 6px; }
/* Soil layers (s3–s4) */
.about-bar-segment.s3  { height: 16px; background: rgba(140, 95, 60, 0.55); }
.about-bar-segment.s4  { height: 10px; background: rgba(175, 120, 70, 0.48); }
/* Clay → amber (s5–s6) */
.about-bar-segment.s5  { height: 15px; background: rgba(195, 150, 75, 0.44); }
.about-bar-segment.s6  { height: 11px; background: rgba(180, 165, 85, 0.40); }
/* Growth layers: moss → sage (s7–s10) */
.about-bar-segment.s7  { height: 17px; background: rgba(145, 160, 90, 0.36); }
.about-bar-segment.s8  { height: 10px; background: rgba(115, 150, 95, 0.32); }
.about-bar-segment.s9  { height: 14px; background: rgba(100, 145, 105, 0.28); }
.about-bar-segment.s10 { height: 12px; background: rgba(90, 140, 115, 0.24); }

/* Roots grow deeper as the plant grows taller */
.about-bar-5 .s1, .about-bar-6 .s1   { height: 20px; }
.about-bar-7 .s1, .about-bar-8 .s1   { height: 26px; }
.about-bar-9 .s1                      { height: 32px; }
.about-bar-10 .s1                     { height: 38px; }
.about-bar-6 .s2, .about-bar-7 .s2   { height: 16px; }
.about-bar-8 .s2, .about-bar-9 .s2   { height: 20px; }
.about-bar-10 .s2                     { height: 24px; }

@media (prefers-reduced-motion: reduce) {
  .about-bar {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .about-stacking-chart {
    height: 140px;
    gap: 4px;
    padding: 0 6%;
    margin-bottom: 28px;
  }
  .about-bar-1  { width: 20px; }
  .about-bar-2  { width: 24px; }
  .about-bar-3  { width: 22px; }
  .about-bar-4  { width: 27px; }
  .about-bar-5  { width: 23px; }
  .about-bar-6  { width: 30px; }
  .about-bar-7  { width: 26px; }
  .about-bar-8  { width: 31px; }
  .about-bar-9  { width: 27px; }
  .about-bar-10 { width: 33px; }
}

.about-section-inner {
  max-width: 680px;
  margin: 0 auto;
}

.about-section-header {
  margin-bottom: 32px;
}

.about-section-header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Origin story */
.about-story {
  max-width: 680px;
}

.about-story p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(60, 60, 67, 0.82);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.about-story p:last-of-type {
  margin-bottom: 24px;
}

.about-story a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--label-quaternary);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.about-story a:hover {
  text-decoration-color: var(--accent-plum);
}

.about-story-sign {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--label-primary);
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.about-founder-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Beliefs */
.about-beliefs {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-belief {
  padding: 24px 0;
  border-bottom: 0.5px solid var(--separator);
}

.about-belief:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-belief:first-child {
  padding-top: 0;
}

.about-belief h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--label-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.about-belief p {
  font-size: 15px;
  color: var(--label-secondary);
  line-height: 1.6;
  letter-spacing: -0.01em;
  max-width: 600px;
}

/* Dark narrative section */
.about-section-dark .about-section-header {
  text-align: center;
}

.about-name-body {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.01em;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Enchant */
.about-enchant {
  max-width: 600px;
}

.about-enchant p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--label-secondary);
  letter-spacing: -0.01em;
}

.about-enchant a {
  color: var(--accent-plum);
  text-decoration: none;
  font-weight: 500;
}

.about-enchant a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .about-hero h1 {
    font-size: 32px;
  }

  .about-hero-japanese {
    font-size: 36px;
  }

  .about-section-header h2 {
    font-size: 24px;
  }
}

/* ========== 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: none; }
  .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;
  }
  .voice-wave-bar {
    animation: none;
    transform: scaleY(0.7);
  }
}
