/* SplitSquat — system typography & Apple marketing layout rhythm */

:root {
  color-scheme: light dark;

  /* Legal system stack: resolves to SF Pro on Apple platforms */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Semantic palette */
  --label: #1d1d1f;
  --secondary-label: #6e6e73;
  --tertiary-label: #86868b;
  --link: #0066cc;
  --link-hover: #004499;
  --separator: rgba(60, 60, 67, 0.29);
  --background: #ffffff;
  --secondary-background: #f5f5f7;
  --tertiary-background: #ebebed;
  --elevated-background: #ffffff;
  --surface-raised: #ffffff;

  /* SplitSquat brand — primary actions use our green, not system blue */
  --brand: #1a7a38;
  --brand-hover: #1f8f42;
  --brand-pressed: #156830;
  --brand-soft: rgba(26, 122, 56, 0.1);
  --brand-glow: rgba(26, 122, 56, 0.22);
  --brand-gradient: linear-gradient(135deg, #1a7a38 0%, #2d9b52 50%, #3cb371 100%);

  /* Ambient hero tones — original, not Apple product gradients */
  --hero-glow-a: rgba(26, 122, 56, 0.18);
  --hero-glow-b: rgba(45, 155, 82, 0.12);
  --hero-glow-c: rgba(100, 180, 130, 0.08);

  --warning-bg: rgba(255, 149, 0, 0.12);
  --warning-border: rgba(255, 149, 0, 0.35);
  --warning-text: #9a5200;

  --max-content: 692px;
  --max-wide: 980px;
  --max-full: 1068px;
  --nav-height: 44px;

  /* Apple marketing type scale (SF via system fonts) */
  --text-hero: clamp(40px, 6.4vw, 64px);
  --text-section: clamp(32px, 4.8vw, 48px);
  --text-spotlight: clamp(28px, 3.8vw, 40px);
  --text-lead: clamp(19px, 2.2vw, 21px);
  --text-body: 17px;
  --text-callout: 16px;
  --text-subhead: 15px;
  --text-footnote: 13px;
  --text-caption: 12px;
  --lh-tight: 1.07143;
  --lh-display: 1.08349;
  --lh-body: 1.47059;
  --lh-relaxed: 1.381;

  --section-pad-y: clamp(80px, 11vw, 132px);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --duration: 0.4s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --label: #f5f5f7;
    --secondary-label: #a1a1a6;
    --tertiary-label: #6e6e73;
    --link: #2997ff;
    --link-hover: #64b5ff;
    --separator: rgba(84, 84, 88, 0.55);
    --background: #000000;
    --secondary-background: #161618;
    --tertiary-background: #2c2c2e;
    --elevated-background: #1c1c1e;
    --surface-raised: #1c1c1e;
    --brand: #34c759;
    --brand-hover: #4cd964;
    --brand-pressed: #28a745;
    --brand-soft: rgba(52, 199, 89, 0.14);
    --brand-glow: rgba(52, 199, 89, 0.2);
    --brand-gradient: linear-gradient(135deg, #248a3d 0%, #34c759 55%, #5dd879 100%);
    --hero-glow-a: rgba(52, 199, 89, 0.14);
    --hero-glow-b: rgba(36, 138, 61, 0.1);
    --hero-glow-c: rgba(20, 80, 40, 0.2);
    --warning-bg: rgba(255, 159, 10, 0.12);
    --warning-border: rgba(255, 159, 10, 0.35);
    --warning-text: #ff9f0a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--label);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── Reveal animations (subtle — Apple pages barely animate copy) ── */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

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

.reveal-stagger .reveal:nth-child(2) { transition-delay: 70ms; }
.reveal-stagger .reveal:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger .reveal:nth-child(4) { transition-delay: 210ms; }
.reveal-stagger .reveal:nth-child(5) { transition-delay: 280ms; }
.reveal-stagger .reveal:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal-stagger .reveal { transition-delay: 0ms !important; }
}

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

/* ── Navigation ── */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

header.site-header.is-scrolled {
  background: color-mix(in srgb, var(--background) 92%, transparent);
  border-bottom-color: var(--separator);
}

.header-inner {
  max-width: var(--max-full);
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.022em;
  color: var(--label);
  text-decoration: none;
}

.logo:hover { color: var(--label); text-decoration: none; }

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.logo-mark svg { display: block; }

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: min(72vw, 720px);
}

nav::-webkit-scrollbar { display: none; }

nav a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--label);
  opacity: 0.8;
  white-space: nowrap;
  flex-shrink: 0;
}

nav a:hover {
  opacity: 1;
  text-decoration: none;
}

nav a[aria-current="page"] {
  opacity: 1;
}

.nav-cta {
  color: var(--link) !important;
  opacity: 1 !important;
}

.nav-cta:hover { color: var(--link-hover) !important; }

/* ── Layout ── */
main {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-right)) 96px max(22px, env(safe-area-inset-left));
}

main.wide { max-width: var(--max-wide); }
main.full { max-width: var(--max-full); }

.section-pad {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}

/* ── Typography helpers ── */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: -0.022em;
}

.title-3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.019em;
  margin: 0 0 6px;
}

.body {
  font-size: 17px;
  line-height: 1.47059;
  color: var(--secondary-label);
}

.footnote {
  font-size: 12px;
  line-height: 1.33337;
  color: var(--tertiary-label);
}

/* ── Hero ── */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(32px, 6vw, 64px) 0 clamp(48px, 8vw, 80px);
}

.hero-glow { display: none; }

.hero-eyebrow {
  display: block;
  font-size: var(--text-lead);
  font-weight: 400;
  letter-spacing: 0.011em;
  text-transform: none;
  color: var(--secondary-label);
  margin: 0 0 12px;
  padding: 0;
  border-radius: 0;
  background: none;
  border: none;
}

.hero h1 {
  font-size: var(--text-hero);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: -0.003em;
  margin: 0 0 16px;
  max-width: none;
}

.hero .hero-subtitle {
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  font-weight: 400;
  letter-spacing: 0.011em;
  color: var(--secondary-label);
  max-width: 28em;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-bottom: 56px;
}

/* ── Device showcase (abstract, not Apple hardware clone) ── */
.showcase {
  display: flex;
  justify-content: center;
  padding: 0 0 16px;
}

.device-frame {
  width: min(260px, 68vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  padding: 11px;
  background: #1d1d1f;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  .device-frame {
    background: #3a3a3c;
    box-shadow:
      0 1px 2px rgba(0, 0, 0, 0.2),
      0 16px 48px rgba(0, 0, 0, 0.35);
  }
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--background);
  display: flex;
  flex-direction: column;
}

.device-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--label);
}

.device-content {
  flex: 1;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ui-pill {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 4px 10px;
  border-radius: 980px;
}

.ui-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.ui-card {
  background: var(--secondary-background);
  border-radius: 14px;
  padding: 14px;
}

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

.ui-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ui-metric-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.ui-metric-unit {
  font-size: 13px;
  color: var(--secondary-label);
}

.ui-bars {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  align-items: flex-end;
  height: 40px;
}

.ui-bar {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: var(--brand-soft);
}

.ui-bar.active { background: var(--brand); }

.ui-row {
  display: flex;
  gap: 8px;
}

.ui-row .ui-card { flex: 1; }

.ui-row .ui-metric-value { font-size: 20px; }

/* ── Stat strip ── */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 56px;
  padding: 40px 0 64px;
  border-bottom: 1px solid var(--separator);
}

.stat {
  text-align: center;
  min-width: 100px;
}

.stat-value {
  display: block;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--label);
  line-height: 1.125;
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--secondary-label);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

/* ── Evidence badges ── */
.evidence-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 980px;
  vertical-align: middle;
}

.evidence-badge.strong {
  background: rgba(26, 122, 56, 0.14);
  color: var(--brand);
}

.evidence-badge.moderate {
  background: rgba(255, 149, 0, 0.14);
  color: var(--warning-text);
}

.evidence-badge.emerging {
  background: var(--tertiary-background);
  color: var(--secondary-label);
}

/* ── Tab overview grid (homepage) ── */
.tab-overview {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .tab-overview { grid-template-columns: repeat(2, 1fr); }
}

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

.tab-overview-card {
  display: block;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--secondary-background);
  border: none;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--duration) var(--ease);
}

.tab-overview-card:hover {
  background: var(--tertiary-background);
  text-decoration: none;
  color: inherit;
}

.tab-overview-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.022em;
}

.tab-overview-card p {
  font-size: var(--text-subhead);
  line-height: 1.4;
  color: var(--secondary-label);
  margin: 0;
}

.tab-overview-card .tab-overview-tag {
  display: block;
  font-size: var(--text-footnote);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--secondary-label);
  margin-bottom: 8px;
}

/* ── Science principles grid ── */
.science-grid {
  display: grid;
  gap: 14px;
}

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

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

.science-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--secondary-background);
  border: none;
}

.science-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.science-card p {
  font-size: var(--text-subhead);
  line-height: 1.45;
  color: var(--secondary-label);
  margin: 0;
}

.science-card .science-action {
  margin-top: 10px;
  font-size: var(--text-caption);
  color: var(--brand);
  font-weight: 500;
}

/* ── Siri phrase strip ── */
.siri-strip {
  padding: 56px 0;
  border-top: 1px solid var(--separator);
  text-align: center;
}

.siri-strip h2 {
  font-size: var(--text-section);
  line-height: var(--lh-display);
  font-weight: 600;
  letter-spacing: -0.003em;
  margin: 0 0 12px;
}

.siri-strip > p {
  font-size: var(--text-lead);
  color: var(--secondary-label);
  max-width: 32em;
  margin: 0 auto 28px;
}

.siri-phrases {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.siri-phrase {
  padding: 10px 18px;
  border-radius: 980px;
  background: var(--secondary-background);
  border: none;
  font-size: var(--text-subhead);
  color: var(--label);
}

/* ── Section intro (centered band headers) ── */
.section-intro {
  text-align: center;
  max-width: 36em;
  margin: 0 auto 48px;
}

.section-intro h2 {
  font-size: var(--text-section);
  line-height: var(--lh-display);
  font-weight: 600;
  letter-spacing: -0.003em;
  margin: 0 0 12px;
}

.section-intro p {
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  color: var(--secondary-label);
  margin: 0;
}

.section-band {
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--separator);
}

/* ── Food logging visual ── */
.macro-rings {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin: 12px 0;
}

.macro-ring {
  text-align: center;
}

.macro-ring strong {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.macro-ring span {
  font-size: 11px;
  color: var(--secondary-label);
}

.log-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.log-method {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 980px;
  background: var(--elevated-background);
  border: 1px solid var(--separator);
  color: var(--secondary-label);
}

/* ── Plan week visual ── */
.plan-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 12px;
}

.plan-day {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--elevated-background);
  border: 1px solid var(--separator);
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--secondary-label);
}

.plan-day.active {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--separator));
  color: var(--brand);
}

/* ── Prescription list (science page) ── */
.rx-list {
  display: grid;
  gap: 12px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.rx-item {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--secondary-background);
  border: none;
}

.rx-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.rx-item p {
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--secondary-label);
  margin: 0 0 8px;
}

.rx-dose {
  font-size: var(--text-subhead);
  font-weight: 500;
  color: var(--brand);
}

/* ── iOS capability catalog (integrations page) ── */
.capability-catalog {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding-top: 0;
}

.capability-group {
  margin-bottom: 48px;
}

.capability-group-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--separator);
}

.capability-list {
  display: grid;
  gap: 10px;
}

@media (min-width: 734px) {
  .capability-list { grid-template-columns: repeat(2, 1fr); }
}

.capability-item {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--secondary-background);
  border: none;
}

.capability-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}

.capability-item p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--secondary-label);
  margin: 0;
}

.personalization-grid {
  display: grid;
  gap: 14px;
}

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

.personalization-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--secondary-background);
  border: none;
}

.personalization-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
}

.personalization-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: var(--text-subhead);
  color: var(--secondary-label);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 22px;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  text-decoration: none;
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background-color var(--duration) var(--ease), opacity 0.15s var(--ease);
}

.button:hover { text-decoration: none; }

.button:active { opacity: 0.85; }

.button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.button-primary {
  background: var(--link);
  color: #fff;
}

.button-primary:hover {
  background: var(--link-hover);
  color: #fff;
}

.button-primary:active { background: var(--link-hover); }

.button-secondary {
  background: transparent;
  color: var(--link);
  box-shadow: inset 0 0 0 1px var(--link);
}

.button-secondary:hover {
  background: color-mix(in srgb, var(--link) 8%, transparent);
  color: var(--link);
}

/* ── Bento feature grid ── */
.bento-section {
  padding: 80px 0;
}

.bento-header {
  text-align: center;
  max-width: 36em;
  margin: 0 auto 48px;
}

.bento-header h2 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 16px;
}

.bento-header p {
  font-size: 19px;
  line-height: 1.421;
  color: var(--secondary-label);
  margin: 0;
}

.bento {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 734px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
  }

  .bento-card.span-4 { grid-column: span 4; }
  .bento-card.span-3 { grid-column: span 3; }
  .bento-card.span-2 { grid-column: span 2; }
}

.bento-card {
  background: var(--secondary-background);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.bento-card::before { display: none; }

.bento-card > * { position: relative; z-index: 1; }

.bento-tag {
  font-size: var(--text-footnote);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-label);
  margin-bottom: auto;
  padding-bottom: 24px;
}

.bento-card h3 {
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.bento-card p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--secondary-label);
  margin: 0;
  max-width: 36ch;
}

/* ── Ecosystem band ── */
.ecosystem {
  padding: 80px 0;
  border-top: 1px solid var(--separator);
}

.ecosystem-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  text-align: center;
}

.ecosystem h2 {
  font-size: var(--text-section);
  line-height: var(--lh-display);
  font-weight: 600;
  letter-spacing: -0.003em;
  margin: 0 0 12px;
}

.ecosystem > .ecosystem-inner > p {
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  color: var(--secondary-label);
  max-width: 32em;
  margin: 0 auto 40px;
}

.ecosystem-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--secondary-background);
  border: none;
  font-size: 14px;
  font-weight: 400;
  color: var(--label);
}

.pill svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
  flex-shrink: 0;
}

.ecosystem-grid {
  display: grid;
  gap: 14px;
  text-align: left;
}

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

.eco-item {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--secondary-background);
  border: none;
}

.eco-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.eco-item p {
  font-size: 15px;
  color: var(--secondary-label);
  margin: 0;
  line-height: 1.4;
}

/* ── Privacy architecture band ── */
.privacy-band {
  margin: 0 calc(-1 * max(24px, env(safe-area-inset-left)));
  padding: 72px max(24px, env(safe-area-inset-right)) 72px max(24px, env(safe-area-inset-left));
  background: var(--secondary-background);
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
}

@media (min-width: 768px) {
  .privacy-band {
    margin-left: calc((100vw - min(100vw, var(--max-wide))) / -2 + max(24px, env(safe-area-inset-left)) / 2);
    margin-right: calc((100vw - min(100vw, var(--max-wide))) / -2 + max(24px, env(safe-area-inset-right)) / 2);
    padding-left: calc((100vw - min(100vw, var(--max-wide))) / 2 + max(24px, env(safe-area-inset-left)));
    padding-right: calc((100vw - min(100vw, var(--max-wide))) / 2 + max(24px, env(safe-area-inset-right)));
  }
}

.privacy-band-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 834px) {
  .privacy-band-inner { grid-template-columns: 1fr 1fr; }
}

.privacy-band h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.privacy-band .lead {
  font-size: 19px;
  line-height: 1.45;
  color: var(--secondary-label);
  margin: 0 0 24px;
}

.privacy-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.privacy-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.4;
  color: var(--label);
}

.privacy-points .check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.privacy-points .check svg { display: block; }

/* ── Philosophy quote ── */
.philosophy {
  padding: 80px 0;
  text-align: center;
}

.philosophy blockquote {
  margin: 0 auto;
  max-width: 28em;
  font-family: var(--font);
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.125;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: var(--label);
}

.philosophy cite {
  display: block;
  margin-top: 20px;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  color: var(--secondary-label);
}

/* ── Closing CTA ── */
.cta-band {
  text-align: center;
  padding: 72px 0 48px;
  border-top: 1px solid var(--separator);
}

.cta-band h2 {
  font-size: var(--text-section);
  font-weight: 600;
  letter-spacing: -0.003em;
  line-height: var(--lh-display);
  margin: 0 0 12px;
}

.cta-band p {
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  color: var(--secondary-label);
  margin: 0 0 28px;
}

.cta-band .footnote {
  margin-top: 16px;
}

/* ── Link cards ── */
.link-section {
  padding: 48px 0 0;
  max-width: var(--max-content);
  margin: 0 auto;
}

.link-section h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tertiary-label);
  margin: 0 0 12px;
}

.card-grid {
  display: grid;
  gap: 1px;
  background: var(--separator);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--separator);
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--elevated-background);
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--duration) var(--ease);
}

.card:hover {
  background: var(--secondary-background);
  text-decoration: none;
  color: inherit;
}

.card-content h2 {
  font-size: 17px;
  font-weight: 400;
  margin: 0 0 2px;
  color: var(--label);
}

.card-content p {
  font-size: 13px;
  color: var(--secondary-label);
  margin: 0;
}

.card-chevron {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  color: var(--tertiary-label);
}

/* ── Legal pages ── */
main.legal-doc {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 48px max(24px, env(safe-area-inset-right)) 80px max(24px, env(safe-area-inset-left));
}

main.legal-doc.full {
  max-width: var(--max-wide);
}

.legal-doc h1 {
  font-size: clamp(32px, 5vw, 40px);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 8px;
}

.legal-doc .updated {
  color: var(--secondary-label);
  font-size: 15px;
  margin: 0 0 32px;
}

.legal-doc h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
}

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

.legal-doc p, .legal-doc li {
  font-size: 17px;
  line-height: 1.47059;
}

.legal-doc ul { padding-left: 1.25rem; margin: 0 0 16px; }
.legal-doc li { margin-bottom: 8px; }
.legal-doc li::marker { color: var(--secondary-label); }

.legal-doc code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--tertiary-background);
  padding: 2px 6px;
  border-radius: 4px;
}

.summary-group {
  background: var(--secondary-background);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 32px;
  border: 1px solid var(--separator);
}

.summary-group h2 {
  margin-top: 0 !important;
  font-size: 17px;
  font-weight: 600;
}

.summary-group ul { margin-bottom: 0; }

.notice {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 40px auto 0;
  max-width: var(--max-content);
  font-size: 13px;
  line-height: 1.4;
  color: var(--warning-text);
}

.notice strong { font-weight: 600; }

.contact-block {
  background: var(--secondary-background);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 40px;
  border: 1px solid var(--separator);
}

.contact-block h2 { margin-top: 0 !important; }
.contact-block .button { margin-top: 12px; }

.topic-group { margin: 32px 0; }

.topic-group > h2 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.078em;
  text-transform: uppercase;
  color: var(--secondary-label);
  margin: 0 0 8px;
  padding-left: 20px;
}

.topic-list {
  background: var(--elevated-background);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--separator);
}

.topic-item:last-child { border-bottom: none; }

.topic-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.topic-item p {
  font-size: 15px;
  color: var(--secondary-label);
  margin: 0;
}

.topic-item p + p { margin-top: 8px; }
.topic-item ul { margin: 8px 0 0; padding-left: 1.25rem; }
.topic-item li { font-size: 15px; color: var(--secondary-label); margin-bottom: 4px; }

/* ── Footer ── */
footer.site-footer {
  max-width: var(--max-full);
  margin: 0 auto;
  padding: 20px max(22px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  border-top: 1px solid var(--separator);
  background: var(--secondary-background);
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 734px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--secondary-label);
  margin: 8px 0 0;
  max-width: 28ch;
}

.footer-col h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--label);
  margin: 0 0 12px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 12px;
  color: var(--secondary-label);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--label);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--separator);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--tertiary-label);
  margin: 0;
}

/* ── App tab strip ── */
.tab-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0 0 56px;
}

.tab-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 980px;
  background: var(--secondary-background);
  border: none;
  font-size: 13px;
  font-weight: 400;
  color: var(--label);
  text-decoration: none;
  transition: background-color var(--duration) var(--ease);
}

.tab-chip:hover {
  background: var(--tertiary-background);
  text-decoration: none;
  color: var(--label);
}

.tab-chip svg {
  width: 14px;
  height: 14px;
  color: var(--brand);
  flex-shrink: 0;
}

/* ── Feature catalog ── */
.catalog {
  padding: 80px 0;
  border-top: 1px solid var(--separator);
}

.catalog-header {
  text-align: center;
  max-width: 36em;
  margin: 0 auto 56px;
}

.catalog-header h2 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 16px;
}

.catalog-header p {
  font-size: 19px;
  line-height: 1.421;
  color: var(--secondary-label);
  margin: 0;
}

.catalog-section {
  max-width: var(--max-wide);
  margin: 0 auto 56px;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.catalog-section:last-child { margin-bottom: 0; }

.catalog-section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--separator);
}

.catalog-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.catalog-icon svg { display: block; }

.catalog-section-header h3 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}

.catalog-section-header p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--secondary-label);
  margin: 0;
}

.feature-list {
  display: grid;
  gap: 10px;
}

@media (min-width: 734px) {
  .feature-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1068px) {
  .feature-list.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-item {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--secondary-background);
  border: none;
}

.feature-item h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: var(--label);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-item p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--secondary-label);
  margin: 0;
}

.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
}

.badge-pro {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: var(--brand);
}

.badge-free {
  background: var(--tertiary-background);
  color: var(--secondary-label);
}

/* ── Pro comparison ── */
.pro-section {
  padding: 80px 0;
  border-top: 1px solid var(--separator);
  background: var(--secondary-background);
}

.pro-section-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

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

.pro-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  font-weight: 600;
  margin: 0 0 12px;
}

.pro-header p {
  font-size: 19px;
  color: var(--secondary-label);
  max-width: 32em;
  margin: 0 auto;
}

.compare-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 734px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
}

.compare-col {
  border-radius: var(--radius-xl);
  border: none;
  background: var(--elevated-background);
  overflow: hidden;
}

.compare-col-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--separator);
}

.compare-col-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 4px;
}

.compare-col-header p {
  font-size: 13px;
  color: var(--secondary-label);
  margin: 0;
}

.compare-col.pro .compare-col-header {
  background: var(--secondary-background);
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.compare-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 24px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--label);
  border-bottom: 1px solid var(--separator);
}

.compare-list li:last-child { border-bottom: none; }

.compare-list .dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 7px;
}

.compare-col.free .compare-list .dot {
  background: var(--tertiary-label);
}

/* ── Platform grid (dense) ── */
.platform-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.platform-item {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--secondary-background);
  border: none;
}

.platform-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}

.platform-item p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--secondary-label);
  margin: 0;
}

/* ── Section eyebrow & inline links ── */
.section-eyebrow {
  font-size: var(--text-footnote);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-label);
  margin: 0 0 8px;
}

.link-chevron {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--link);
  text-decoration: none;
}

.link-chevron::after {
  content: " ›";
  font-size: 1.2em;
  line-height: 1;
  transition: transform var(--duration) var(--ease);
}

.link-chevron:hover {
  color: var(--link-hover);
  text-decoration: none;
}

.link-chevron:hover::after { transform: translateX(3px); }

/* ── Spotlight sections (Apple product-page rhythm) ── */
.spotlight {
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--separator);
}

.spotlight-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 834px) {
  .spotlight-inner {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .spotlight-reverse .spotlight-copy { order: 2; }
  .spotlight-reverse .spotlight-visual { order: 1; }
}

.spotlight-copy h2 {
  font-size: var(--text-spotlight);
  line-height: var(--lh-display);
  font-weight: 600;
  letter-spacing: -0.003em;
  margin: 0 0 12px;
}

.spotlight-lead {
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  color: var(--secondary-label);
  margin: 0 0 20px;
  max-width: 28em;
}

.spotlight-panel {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--secondary-background);
  border: none;
  padding: 32px 28px;
  min-height: 280px;
  overflow: hidden;
}

.spotlight-panel::before { display: none; }

.spotlight-panel > * { position: relative; z-index: 1; }

.spotlight-panel .ui-pill { margin-bottom: 12px; }

.spotlight-panel .ui-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.spotlight-highlights {
  display: grid;
  gap: 10px;
}

.spotlight-highlights li {
  font-size: var(--text-subhead);
  line-height: 1.4;
  color: var(--secondary-label);
  padding-left: 1.1em;
  position: relative;
}

.spotlight-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* Pose / form lab visual */
.pose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.pose-node {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--brand) 12%, var(--tertiary-background));
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--separator));
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
}

.pose-node.active {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--separator));
}

.pose-score {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--elevated-background);
  border: 1px solid var(--separator);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.pose-score strong {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pose-score span {
  font-size: var(--text-caption);
  color: var(--secondary-label);
}

/* Coach chat mock */
.coach-thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coach-bubble {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: var(--text-subhead);
  line-height: 1.35;
}

.coach-bubble.user {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.coach-bubble.assistant {
  align-self: flex-start;
  background: var(--elevated-background);
  border: 1px solid var(--separator);
  border-bottom-left-radius: 4px;
}

/* Platform orbit visual */
.platform-orbit {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.orbit-chip {
  padding: 14px 12px;
  border-radius: var(--radius-md);
  background: var(--elevated-background);
  border: 1px solid var(--separator);
  font-size: var(--text-caption);
  font-weight: 600;
  text-align: center;
}

.orbit-chip svg {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
  color: var(--brand);
}

/* Page hero (subpages) */
.page-hero {
  text-align: center;
  padding: 48px 0 56px;
  max-width: 36em;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: var(--text-section);
  line-height: var(--lh-display);
  font-weight: 600;
  letter-spacing: -0.003em;
  margin: 0 0 12px;
}

.page-hero .lead {
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  color: var(--secondary-label);
  margin: 0;
}

/* Requirements table */
.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body);
  margin: 24px 0;
}

.req-table th,
.req-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--separator);
  vertical-align: top;
}

.req-table th {
  font-weight: 600;
  width: 38%;
  padding-right: 24px;
  color: var(--label);
}

.req-table td { color: var(--secondary-label); }

.req-table tr:last-child th,
.req-table tr:last-child td { border-bottom: none; }

/* Features page intro band */
.features-intro {
  text-align: center;
  padding: 0 0 48px;
  max-width: 36em;
  margin: 0 auto;
}

.features-intro h1 {
  font-size: var(--text-section);
  line-height: var(--lh-display);
  margin: 0 0 16px;
}

.features-intro p {
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  color: var(--secondary-label);
  margin: 0;
}

/* ── Bento feature grid (Apple product-page tiles) ── */
.bento-band {
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--separator);
}

.bento-band .section-intro {
  text-align: center;
  max-width: 28em;
  margin: 0 auto 48px;
}

.bento-band .section-intro h2 {
  font-size: var(--text-section);
  line-height: var(--lh-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 12px;
}

.bento-band .section-intro p {
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  color: var(--secondary-label);
  margin: 0;
}

.bento-grid {
  display: grid;
  gap: 12px;
  max-width: var(--max-wide);
  margin: 0 auto;
}

@media (min-width: 734px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }

  .bento-tile.span-2 { grid-column: span 2; }
  .bento-tile.tall { grid-row: span 2; }
}

.bento-tile {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--secondary-background);
  border: none;
  padding: 32px 28px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-tile::before { display: none; }

.bento-eyebrow {
  font-size: var(--text-footnote);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-label);
  margin: 0 0 8px;
}

.bento-tile h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.16667;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 8px;
}

.bento-tile p {
  font-size: var(--text-subhead);
  line-height: 1.4;
  color: var(--secondary-label);
  margin: 0;
  max-width: 28em;
}

.bento-visual {
  margin-bottom: auto;
  padding-bottom: 20px;
}

/* ── Three-step onboarding band ── */
.steps-band {
  padding: var(--section-pad-y) 0;
  background: var(--secondary-background);
  border-top: 1px solid var(--separator);
  border-bottom: 1px solid var(--separator);
}

.steps-band .section-intro {
  text-align: center;
  max-width: 32em;
  margin: 0 auto 48px;
}

.steps-band .section-intro h2 {
  font-size: var(--text-section);
  line-height: var(--lh-display);
  font-weight: 600;
  margin: 0 0 12px;
}

.steps-band .section-intro p {
  font-size: var(--text-lead);
  color: var(--secondary-label);
  margin: 0;
}

.steps-grid {
  display: grid;
  gap: 24px;
  max-width: var(--max-wide);
  margin: 0 auto;
}

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

.step-card {
  text-align: center;
  padding: 0 12px;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
}

.step-card p {
  font-size: var(--text-subhead);
  line-height: 1.45;
  color: var(--secondary-label);
  margin: 0;
}

/* ── Progress / chart mock visuals ── */
.trend-chart-mock {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
  margin-top: 8px;
}

.trend-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--brand) 25%, var(--tertiary-background));
  min-height: 12px;
}

.trend-bar.active {
  background: var(--brand);
}

.sleep-stages {
  display: flex;
  gap: 4px;
  height: 48px;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.sleep-stage {
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--secondary-label);
  background: var(--tertiary-background);
}

.sleep-stage.deep { flex: 2; background: color-mix(in srgb, var(--brand) 30%, var(--tertiary-background)); }
.sleep-stage.rem { flex: 1.5; background: color-mix(in srgb, var(--brand) 18%, var(--tertiary-background)); }
.sleep-stage.core { flex: 3; }

.energy-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 56px;
  margin-top: 8px;
}

.energy-wave span {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: color-mix(in srgb, var(--brand) 20%, var(--tertiary-background));
}

.energy-wave span.peak { background: var(--brand); }

/* ── Apple Watch page ── */
.watch-hero {
  text-align: center;
  padding: clamp(32px, 6vw, 64px) 0 var(--section-pad-y);
  position: relative;
}

.watch-hero h1 {
  font-size: var(--text-hero);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: -0.003em;
  margin: 0 0 12px;
}

.watch-hero .hero-subtitle {
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  color: var(--secondary-label);
  max-width: 28em;
  margin: 0 auto 32px;
}

.watch-showcase {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.watch-frame {
  width: 160px;
  height: 196px;
  border-radius: 36px;
  background: #1c1c1e;
  border: 3px solid color-mix(in srgb, var(--label) 15%, transparent);
  padding: 12px 8px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

@media (prefers-color-scheme: dark) {
  .watch-frame {
    border-color: color-mix(in srgb, var(--label) 25%, transparent);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  }
}

.watch-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  font-size: 11px;
  color: #f5f5f7;
}

.watch-screen .watch-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.watch-screen .watch-value {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.watch-screen .watch-detail {
  font-size: 9px;
  color: #a1a1a6;
  margin-top: 4px;
}

.watch-gauge {
  height: 6px;
  border-radius: 3px;
  background: #2c2c2e;
  margin-top: 10px;
  overflow: hidden;
}

.watch-gauge-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--brand);
}

.watch-rest {
  margin-top: auto;
  padding: 8px;
  border-radius: 10px;
  background: #1c1c1e;
  text-align: center;
}

.watch-rest strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
}

.double-tap-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  border-radius: 980px;
  background: var(--brand-soft);
  font-size: var(--text-subhead);
  font-weight: 500;
  color: var(--label);
}

.complication-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.complication {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--elevated-background);
  border: 1px solid var(--separator);
  font-size: var(--text-caption);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

/* ── Apple-style showcase section types ── */

/* Dark cinematic band (Apple product dark sections) */
.showcase-dark {
  position: relative;
  padding: var(--section-pad-y) max(24px, env(safe-area-inset-right)) var(--section-pad-y) max(24px, env(safe-area-inset-left));
  background: #000;
  color: #f5f5f7;
  overflow: hidden;
}

.showcase-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none;
}

.showcase-dark-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-wide);
  margin: 0 auto;
}

.showcase-dark .section-eyebrow { color: var(--brand); }

.showcase-dark h2 {
  font-size: var(--text-section);
  line-height: var(--lh-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 0 0 16px;
  max-width: 14em;
}

.showcase-dark .lead {
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  color: #a1a1a6;
  margin: 0 0 32px;
  max-width: 32em;
}

.showcase-dark-grid {
  display: grid;
  gap: 12px;
}

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

.showcase-dark-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: none;
}

.showcase-dark-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.showcase-dark-card p {
  font-size: var(--text-subhead);
  line-height: 1.4;
  color: #a1a1a6;
  margin: 0;
}

/* Icon highlights row (Apple "highlights" strip) */
.feature-icons {
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--separator);
}

.feature-icons-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
}

.feature-icons .section-intro { margin-bottom: 40px; }

.feature-icons-row {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 734px) {
  .feature-icons-row { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1068px) {
  .feature-icons-row.cols-6 { grid-template-columns: repeat(6, 1fr); }
  .feature-icons-row.cols-4 { grid-template-columns: repeat(4, 1fr); }
}

.feature-icon-item {
  text-align: center;
  padding: 0 8px;
}

.feature-icon-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.feature-icon-mark svg {
  width: 24px;
  height: 24px;
}

.feature-icon-item h3 {
  font-size: var(--text-subhead);
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.feature-icon-item p {
  font-size: var(--text-caption);
  line-height: 1.35;
  color: var(--secondary-label);
  margin: 0;
}

/* Horizontal scroll cards (Apple carousel) */
.scroll-band {
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--separator);
  overflow: hidden;
}

.scroll-band-header {
  max-width: var(--max-wide);
  margin: 0 auto 32px;
  padding: 0 max(24px, env(safe-area-inset-left)) 0 max(24px, env(safe-area-inset-right));
}

.scroll-band-header h2 {
  font-size: var(--text-section);
  line-height: var(--lh-display);
  font-weight: 600;
  margin: 0 0 8px;
}

.scroll-band-header p {
  font-size: var(--text-lead);
  color: var(--secondary-label);
  margin: 0;
  max-width: 28em;
}

.scroll-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px max(24px, env(safe-area-inset-right)) 16px max(24px, env(safe-area-inset-left));
  scrollbar-width: none;
}

.scroll-track::-webkit-scrollbar { display: none; }

.scroll-card {
  flex: 0 0 min(300px, 78vw);
  scroll-snap-align: start;
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  background: var(--secondary-background);
  border: none;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.scroll-card-tag {
  font-size: var(--text-footnote);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-label);
  margin-bottom: auto;
  padding-bottom: 20px;
}

.scroll-card h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.scroll-card p {
  font-size: var(--text-subhead);
  line-height: 1.4;
  color: var(--secondary-label);
  margin: 0;
}

.scroll-card .badge { margin-left: 6px; vertical-align: middle; }

/* Large callout statement */
.callout-band {
  padding: clamp(64px, 12vw, 140px) max(24px, env(safe-area-inset-left));
  text-align: center;
  border-top: 1px solid var(--separator);
}

.callout-band blockquote {
  font-family: var(--font);
  font-size: clamp(28px, 4vw, 40px);
  line-height: var(--lh-display);
  font-weight: 600;
  letter-spacing: -0.003em;
  margin: 0 auto;
  max-width: 18em;
  color: var(--label);
}

.callout-band cite {
  display: block;
  margin-top: 20px;
  font-size: var(--text-subhead);
  font-style: normal;
  color: var(--secondary-label);
}

/* Service grid (Apple services / support tiles) */
.service-band {
  padding: var(--section-pad-y) 0;
  background: var(--secondary-background);
  border-top: 1px solid var(--separator);
}

.service-grid {
  display: grid;
  gap: 14px;
  max-width: var(--max-wide);
  margin: 0 auto;
}

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

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

.service-tile {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--elevated-background);
  border: none;
}

.service-tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.service-tile-icon svg {
  width: 20px;
  height: 20px;
}

.service-tile h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
}

.service-tile p {
  font-size: var(--text-subhead);
  line-height: 1.45;
  color: var(--secondary-label);
  margin: 0;
}

/* Pro feature grid (paywall mirror) */
.pro-feature-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 734px) {
  .pro-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

.pro-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--secondary-background);
  border: none;
}

.pro-feature-item .icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}

.pro-feature-item .icon svg {
  width: 16px;
  height: 16px;
}

.pro-feature-item h4 {
  font-size: var(--text-subhead);
  font-weight: 600;
  margin: 0 0 2px;
}

.pro-feature-item p {
  font-size: var(--text-caption);
  line-height: 1.4;
  color: var(--secondary-label);
  margin: 0;
}

/* Stacked media rows (alternating feature rows) */
.media-rows {
  padding: var(--section-pad-y) 0;
  border-top: 1px solid var(--separator);
}

.media-row {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 48px max(24px, env(safe-area-inset-left)) 48px max(24px, env(safe-area-inset-right));
  display: grid;
  gap: 32px;
  align-items: center;
  border-bottom: 1px solid var(--separator);
}

.media-row:last-child { border-bottom: none; }

@media (min-width: 834px) {
  .media-row {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .media-row.reverse .media-copy { order: 2; }
  .media-row.reverse .media-visual { order: 1; }
}

.media-copy h2 {
  font-size: var(--text-spotlight);
  line-height: var(--lh-display);
  font-weight: 600;
  margin: 0 0 12px;
}

.media-copy p {
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  color: var(--secondary-label);
  margin: 0 0 16px;
}

.media-visual .spotlight-panel { min-height: 240px; }

/* Link hub cards row */
.hub-cards {
  display: grid;
  gap: 12px;
  max-width: var(--max-wide);
  margin: 0 auto;
}

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

@media (min-width: 1068px) {
  .hub-cards { grid-template-columns: repeat(4, 1fr); }
}

.hub-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--secondary-background);
  border: none;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--duration) var(--ease);
  min-height: 160px;
}

.hub-card:hover {
  background: var(--tertiary-background);
  text-decoration: none;
  color: inherit;
}

.hub-card-tag {
  font-size: var(--text-footnote);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-label);
  margin-bottom: auto;
  padding-bottom: 16px;
}

.hub-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin: 0 0 6px;
}

.hub-card p {
  font-size: var(--text-caption);
  line-height: 1.4;
  color: var(--secondary-label);
  margin: 0;
}
