/* =========================================================
   Apple Health — Bevel.health-inspired Design
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,700&display=swap');

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

:root {
  --white: #ffffff;
  --light: #f6f6f8;
  --lighter: #f0f0f4;
  --dark: #0d0d14;
  --darker: #060609;
  --text: #111118;
  --muted: #6b6b80;
  --border: rgba(0, 0, 0, 0.07);
  --shadow: 0 2px 24px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Playfair Display', Georgia, serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 6.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
}

h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.0625rem;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-label--light {
  color: rgba(255, 255, 255, 0.45);
}

.section-center {
  text-align: center;
  margin-bottom: 56px;
}

.section-center .section-label {
  display: block;
}

.section-center p {
  max-width: 480px;
  margin: 12px auto 0;
}

/* ─── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 660px;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 10px 16px 10px 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  flex: 0 0 auto;
}

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
}

.nav-center a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-center a:visited {
  color: var(--muted);
}

.nav-center a:hover,
.nav-center a:visited:hover {
  color: var(--text);
}

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: white;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: opacity var(--transition);
}

.nav-download:hover {
  opacity: 0.85;
}

/* ─── HERO / WORLD MAP ─────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--lighter);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 120px;
}

#worldMap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.hero-overlay-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 36px;
  color: rgba(230, 235, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

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

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--text);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-download:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-download--large {
  background: var(--text);
  color: white;
  padding: 18px 36px;
  font-size: 17px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  transition: background var(--transition), color var(--transition);
}

.btn-ghost:hover {
  background: white;
  color: var(--text);
}

/* Floating metric chips */
.hero-metric-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hmc {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px) saturate(180%);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--shadow);
  animation: floatCard 7s ease-in-out infinite;
}

.hmc--2 {
  animation-delay: 1.5s;
}

.hmc--3 {
  animation-delay: 3s;
}

.hmc--4 {
  animation-delay: 4.5s;
}

.hmc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hmc-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.hmc-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-left: 2px;
}

.hmc-val span {
  font-size: 11px;
  font-weight: 400;
  color: rgba(180, 200, 255, 0.6);
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-7px);
  }
}

.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #f6f6f8);
  pointer-events: none;
  z-index: 5;
}

/* Map title overlay */
.hero-map-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  text-align: center;
  pointer-events: none;
}

.hero-map-title h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.01em;
}

.hero-map-title h2 em {
  font-style: italic;
  opacity: 0.85;
}



.hero-content {
  position: relative;
  z-index: 2;
  margin-bottom: 48px;
  max-width: 700px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.hero h1 {
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 32px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--text);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-download:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-download--large {
  padding: 18px 36px;
  font-size: 17px;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 1000px;
  border-radius: 24px 24px 0 0;
  overflow: visible;
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--lighter) 0%, transparent 40%);
  border-radius: 24px 24px 0 0;
}

/* Floating hero cards */
.float-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 140px;
  z-index: 3;
  animation: floatCard 6s ease-in-out infinite;
}

.float-card--tl {
  top: 60px;
  left: -20px;
  animation-delay: 0s;
}

.float-card--tr {
  top: 40px;
  right: -20px;
  animation-delay: 1.5s;
}

.float-card--bl {
  bottom: 120px;
  left: -10px;
  animation-delay: 3s;
}

.float-card--br {
  bottom: 140px;
  right: -10px;
  animation-delay: 4.5s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.fc-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.fc-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
}

.fc-val span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.fc-status {
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.fc-status.good {
  color: #34C759;
}

.fc-bar {
  height: 4px;
  background: var(--lighter);
  border-radius: 2px;
  margin-top: 8px;
}

.fc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF375F, #FF9500);
  border-radius: 2px;
}

/* ─── FEATURE SECTIONS ─────────────────────────────────── */
.feature-section {
  padding: 100px 0;
  overflow: hidden;
}

.bg-light {
  background: var(--lighter);
}

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

.bg-dark {
  background: var(--dark);
}

.fs-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.fs-wrap--flip {
  flex-direction: row-reverse;
}

.fs-text {
  flex: 0 0 360px;
}

.fs-text h2 {
  margin-bottom: 16px;
}

.fs-text p {
  margin-bottom: 32px;
}

.fs-text--light h2 {
  color: white;
}

.fs-text--light p {
  color: rgba(255, 255, 255, 0.6);
}

.fs-phone-wrap {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}

/* Phone Frame */
.phone-mockup-wrap {
  position: relative;
  z-index: 2;
}

.phone-frame {
  width: 260px;
  border-radius: 36px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  position: relative;
}

.phone-frame--dark {
  background: #1c1c22;
  border-color: rgba(255, 255, 255, 0.1);
}

.pf-notch {
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pf-screen {
  padding: 16px 16px 20px;
}

.pf-screen--dark {
  background: #1c1c22;
}

.pf-header {
  margin-bottom: 16px;
}

.pf-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.pf-title--light {
  color: white;
}

.pf-date {
  font-size: 11px;
  color: var(--muted);
}

/* Recovery Ring */
.recovery-ring-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.ring-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.ring-pct {
  font-size: 1.4rem;
  font-weight: 800;
  color: #34C759;
}

.ring-label {
  font-size: 10px;
  color: var(--muted);
}

.pf-metrics-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pf-metric {
  flex: 1;
  background: var(--lighter);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}

.pf-m-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.pf-m-unit {
  font-size: 10px;
  color: var(--muted);
}

.pf-m-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.pf-m-sub {
  font-size: 10px;
  font-weight: 600;
  margin-top: 2px;
}

.pf-insight {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #d1fae5;
  font-size: 11px;
  color: #065f46;
  line-height: 1.5;
}

.pf-insight-title {
  font-weight: 700;
  margin-bottom: 3px;
}

/* Nutrition score */
.nutrition-score-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.pf-goal-row {
  margin-bottom: 8px;
}

.pf-goal-label {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pf-goal-bar {
  height: 5px;
  background: var(--lighter);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 3px;
}

.pf-goal-fill {
  height: 100%;
  border-radius: 3px;
}

.pf-goal-note {
  font-size: 10px;
  color: var(--muted);
}

.pf-goal-right {
  font-weight: 600;
}

/* Sleep */
.sleep-score-circle {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.sleep-stages {
  margin-bottom: 12px;
}

.stage-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stage-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.stage-bar {
  height: 100%;
  border-radius: 3px;
}

.stage-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.pf-tip {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Floating metric cards near phone */
.metric-float {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 130px;
  z-index: 3;
  animation: floatCard 7s ease-in-out infinite;
}

.metric-float.mf-dark {
  background: #2a2a34;
  border-color: rgba(255, 255, 255, 0.1);
}

.mf-tl {
  top: 20px;
  left: -30px;
  animation-delay: 0s;
}

.mf-tr {
  top: 20px;
  right: -30px;
  animation-delay: 2s;
}

.mf-bl {
  bottom: 60px;
  left: -30px;
  animation-delay: 4s;
}

.mf-br {
  bottom: 60px;
  right: -30px;
  animation-delay: 6s;
}

.mf-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}

.metric-float.mf-dark .mf-header {
  color: rgba(255, 255, 255, 0.5);
}

.mf-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.metric-float.mf-dark .mf-value {
  color: white;
}

.mf-value small {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 500;
}

.mf-tag {
  font-size: 10px;
  font-weight: 600;
  margin-top: 4px;
}

.mf-tag.good {
  color: #34C759;
}

.mf-tag.warn {
  color: #FF9500;
}

.mf-meta {
  font-size: 11px;
  color: var(--muted);
}

.mf-chart {
  width: 100%;
  height: 28px;
  display: block;
  margin-top: 6px;
}

.macros-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.macro {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.macro small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
}

/* Sleep stats in text column */
.sleep-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.ss-val {
  font-size: 2rem;
  font-weight: 800;
  color: white;
}

.ss-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* ─── FITNESS GRID ──────────────────────────────────────── */
.fitness-section {
  padding: 100px 0;
  background: var(--white);
}

.fitness-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.fg-card {
  background: var(--lighter);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid transparent;
}

.fg-card:hover {
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.fg-card--accent {
  background: var(--dark);
}

.fg-card--accent h3 {
  color: white;
}

.fg-card--accent p {
  color: rgba(255, 255, 255, 0.55);
}

.fg-card--wide {
  grid-column: span 2;
}

.fg-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.fg-card h3 {
  margin-bottom: 8px;
}

.fg-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── DAILY LIFE ─────────────────────────────────────────── */
.daily-life {
  padding: 100px 0;
  background: var(--lighter);
}

.dl-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}

.dl-heading h2 {
  margin-bottom: 14px;
}

.dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.dl-item {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
}

.dl-item-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.dl-item h4 {
  margin-bottom: 7px;
}

.dl-item p {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ─── TESTIMONIALS ──────────────────────────────────────── */
.testimonials {
  padding: 100px 0;
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tcard {
  background: var(--lighter);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.tcard:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.tcard--featured {
  background: var(--dark);
}

.tcard--featured p {
  color: rgba(255, 255, 255, 0.7);
}

.tcard--featured .tcard-stars {
  color: #FFD60A;
}

.tcard--featured .tcard-author {
  color: rgba(255, 255, 255, 0.5);
}

.tcard-stars {
  color: #FFD60A;
  font-size: 14px;
  margin-bottom: 12px;
}

.tcard p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.tcard-author {
  font-size: 12px;
  color: var(--muted);
}

/* ─── CTA ─────────────────────────────────────────────────── */
.cta-section {
  padding: 120px 0;
  background: var(--lighter);
  text-align: center;
}

.cta-inner h2 {
  margin-bottom: 14px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-inner>p {
  margin-bottom: 32px;
}

.cta-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--lighter);
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  /* prevent any child from causing horizontal scroll */
}

.footer-top {
  display: flex;
  gap: 80px;
}

.footer-brand {
  flex: 0 0 320px;
  min-width: 0;
}

.footer-def {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  color: var(--muted);
  transition: color var(--transition);
  display: flex;
}

.footer-socials a:hover {
  color: var(--text);
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--transition);
}

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

/* ─── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .fs-wrap {
    flex-direction: column !important;
    gap: 48px;
    text-align: center;
  }

  .fs-text {
    flex: none;
  }

  .fs-text p {
    margin: 0 auto 32px;
    max-width: 480px;
  }

  .fitness-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fg-card--wide {
    grid-column: span 2;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .dl-inner {
    grid-template-columns: 1fr;
  }

  .dl-heading {
    text-align: center;
  }

  .footer-top {
    flex-direction: column;
    gap: 36px;
  }

  .footer-links {
    gap: 24px 40px;
  }
}

/* ── Hamburger button (hidden on desktop) ─────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}

.nav-hamburger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.22s;
}

/* Open state — animate to × */
.nav--open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav--open .nav-hamburger span:nth-child(2) {
  opacity: 0;
}

.nav--open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 600px) {
  .nav {
    max-width: calc(100% - 24px);
  }

  /* Show hamburger, hide links + download by default */
  .nav-hamburger {
    display: flex;
  }

  .nav-center {
    display: none;
  }

  .nav-download {
    display: none;
  }

  /* When open — unfold pill into vertical menu */
  .nav--open .nav-pill {
    flex-wrap: wrap;
    border-radius: 22px;
    gap: 0;
  }

  .nav--open .nav-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 2px;
    padding: 8px 4px 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    order: 3;
  }

  .nav--open .nav-center a {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 10px;
    width: 100%;
  }

  .nav--open .nav-center a:hover {
    background: rgba(0, 0, 0, 0.04);
  }

  .nav--open .nav-download {
    display: inline-flex;
    width: calc(100% - 8px);
    justify-content: center;
    margin: 4px 4px 8px;
    order: 4;
  }
}

@media (max-width: 400px) {
  .nav-dl-text {
    display: none;
  }

  .nav-download {
    padding: 8px 10px;
  }

  .hero {
    padding-top: 100px;
  }

  .float-card--tl,
  .float-card--tr,
  .float-card--bl,
  .float-card--br {
    display: none;
  }

  .metric-float {
    display: none;
  }

  .fitness-grid {
    grid-template-columns: 1fr;
  }

  .fg-card--wide {
    grid-column: span 1;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .dl-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 24px 32px;
  }

  .footer-col {
    flex: 0 0 calc(50% - 16px);
    /* 2-column grid on mobile */
    min-width: 0;
  }

  .sleep-stats {
    gap: 20px;
  }
}

/* ═══════════════════════════════════════════════════════════
   FRAGMENTED HERO — bento grid
   ═══════════════════════════════════════════════════════════ */
.fragmented-section {
  padding: 100px 0 80px;
  background: #fafaf9;
}

/* ── Header ──────────────────────────────────────────────── */
.fg-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.fg-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #111;
}

.fg-sub {
  font-size: 15px;
  color: rgba(17, 17, 17, 0.55);
  line-height: 1.7;
  padding-top: 8px;
}

/* ── Bento grid ──────────────────────────────────────────── */
.fg-bento {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

/* ── Base card ───────────────────────────────────────────── */
.fg-card {
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

/* ── Card colour variants ────────────────────────────────── */
.fg-card--cream {
  background: #fdf6ec;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.fg-card--voice {
  background: #f5f5f3;
  border: 1px solid rgba(0, 0, 0, 0.05);
  align-items: center;
  justify-content: center;
}

.fg-card--pink {
  background: linear-gradient(140deg, #fdf2f8 0%, #fce7f3 100%);
  border: 1px solid rgba(244, 114, 182, 0.12);
}

.fg-card--data {
  background: #f0f9f4;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.fg-card--peach {
  background: linear-gradient(140deg, #fff7ed 0%, #fde8d0 100%);
  border: 1px solid rgba(251, 146, 60, 0.12);
}

/* ── Grid placement ──────────────────────────────────────── */
.fg-card--tall {
  grid-row: span 2;
}

.fg-card--wide {
  grid-column: span 2;
}

/* ── Card typography ─────────────────────────────────────── */
.fg-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.35);
}

.fg-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #111;
}

.fg-italic {
  font-style: italic;
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.fg-card-desc {
  font-size: 13.5px;
  color: rgba(17, 17, 17, 0.55);
  line-height: 1.6;
  margin-top: auto;
}

/* ── Avatars ─────────────────────────────────────────────── */
.fg-avatars {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.fg-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  opacity: 0.85;
}

/* ── Voice bars ──────────────────────────────────────────── */
.fg-voice-bars {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 48px;
  margin: 8px 0;
}

.fg-voice-bars span {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: rgba(17, 17, 17, 0.2);
  animation: voicePulse 1.4s ease-in-out infinite;
}

.fg-voice-bars span:nth-child(1) {
  height: 20%;
  animation-delay: 0s;
}

.fg-voice-bars span:nth-child(2) {
  height: 60%;
  animation-delay: 0.15s;
}

.fg-voice-bars span:nth-child(3) {
  height: 90%;
  animation-delay: 0.3s;
}

.fg-voice-bars span:nth-child(4) {
  height: 50%;
  animation-delay: 0.45s;
}

.fg-voice-bars span:nth-child(5) {
  height: 25%;
  animation-delay: 0.6s;
}

@keyframes voicePulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.4;
  }

  50% {
    transform: scaleY(1.8);
    opacity: 1;
  }
}

/* ── Bolt icon ───────────────────────────────────────────── */
.fg-bolt {
  font-size: 28px;
  line-height: 1;
}

/* ── Trend arrow ─────────────────────────────────────────── */
.fg-trend {
  font-size: 28px;
  color: #22c55e;
  line-height: 1;
}

/* ── Tags inside card ────────────────────────────────────── */
.fg-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fg-card-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.07);
  color: rgba(17, 17, 17, 0.6);
  letter-spacing: 0.02em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .fg-header {
    grid-template-columns: 1fr;
  }

  .fg-bento {
    grid-template-columns: 1fr 1fr;
  }

  .fg-card--tall {
    grid-row: auto;
  }

  .fg-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .fg-bento {
    grid-template-columns: 1fr;
  }

  .fg-card--wide {
    grid-column: auto;
  }
}

/* ── Fragmented-as-hero tweaks ──────────────────────────────── */
/* When the bento section is the first thing on the page,
   give it generous top padding (below the fixed nav) and a
   clean white background so it reads as the opening hero. */
.fragmented-hero {
  padding-top: 140px;
  /* clear the fixed nav */
  padding-bottom: 100px;
  background: #ffffff;
  /* clean white for hero feel */
}

/* Boost the main heading size at hero scale */
.fragmented-hero .fg-title {
  font-size: clamp(3rem, 5.5vw, 4.8rem);
}

/* Slightly larger sub-text at hero scale */
.fragmented-hero .fg-sub {
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════
   THREE ROLES SECTION
   ═══════════════════════════════════════════════════════════ */
.roles-section {
  padding: 88px 0 96px;
  background: #ffffff;
}

/* ── Eyebrow ─────────────────────────────────────────────── */
.roles-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.roles-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: #a78bfa;
  /* indigo accent — matches existing palette */
  flex-shrink: 0;
}

.roles-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
}

/* ── Main heading ────────────────────────────────────────── */
.roles-heading {
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #111;
  margin-bottom: 56px;
}

.roles-heading em {
  font-style: italic;
  font-weight: 800;
}

/* ── Grid ────────────────────────────────────────────────── */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  overflow: hidden;
}

.roles-card {
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Vertical dividers between cards */
.roles-card+.roles-card {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

/* ── Number ──────────────────────────────────────────────── */
.roles-num {
  font-size: 13px;
  font-weight: 700;
  color: rgba(17, 17, 17, 0.18);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* ── Role title ──────────────────────────────────────────── */
.roles-role {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

/* ── Description ─────────────────────────────────────────── */
.roles-desc {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(17, 17, 17, 0.52);
  flex: 1;
}

/* ── CTAs ────────────────────────────────────────────────── */
.roles-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 10px;
  transition: opacity 0.15s;
}

.roles-cta:hover {
  opacity: 0.7;
}

.roles-cta--green {
  color: #16a34a;
}

.roles-cta--amber {
  color: #d97706;
}

.roles-cta--indigo {
  color: #7c3aed;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 760px) {
  .roles-grid {
    grid-template-columns: 1fr;
    border-radius: 16px;
  }

  .roles-card+.roles-card {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
}

/* ── Journey transition (Index → Features → System → Framework) ─── */
.transition-section {
  padding: 64px 0 72px;
  background: var(--white);
}

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

.transition-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.transition-line {
  font-family: var(--font);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 20px;
}

.transition-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  background: var(--dark);
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 9999px;
  transition: opacity var(--transition);
}

.transition-link:hover {
  opacity: 0.85;
}