/* ════════════════════════════════════════════════════════════
   CIYANU — Landing Page Styles
   ════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  --bg:          #080808;
  --surface:     #111111;
  --card:        #141414;
  --card-2:      #1A1A1A;
  --border:      rgba(255,255,255,0.06);
  --border-hover:rgba(255,255,255,0.12);
  --text:        #FFFFFF;
  --text-2:      #8E8E93;
  --text-3:      #3A3A3C;
  --accent:      #34C759;
  --accent-dim:  rgba(52,199,89,0.10);
  --accent-glow: rgba(52,199,89,0.18);
  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --r-xl:        24px;
  --r-lg:        18px;
  --r-md:        12px;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-optical-sizing: auto;
  line-height: 1.6;
  overflow-x: hidden;
  /* Dot-grid texture */
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 28px 28px;
}

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

/* ─── Grain overlay ─── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Typography helpers ─── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
  text-wrap: balance;
}

.section-body {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  padding: 13px 26px;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
}

/* Shine sweep on the CTA */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -80%;
  width: 60%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.5s ease infinite;
}

@keyframes btn-shine {
  0%   { left: -80%; }
  55%, 100% { left: 130%; }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(52,199,89,0.38);
}
.btn-primary:active { transform: translateY(0); }

.btn-full {
  width: 100%;
  justify-content: center;
  border-radius: var(--r-md);
  padding: 16px 24px;
  font-size: 16px;
}

/* ─── Eyebrow badge ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(52,199,89,0.22);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2.2s ease infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.45; transform:scale(.8); }
}

/* ─── Animations ─── */
/* js-ready class added by script so animations only hide elements when JS is running */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.js-ready .reveal-delay {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s var(--ease-out) .18s, transform .75s var(--ease-out) .18s;
}
.js-ready .reveal-d1 { transition-delay: .1s; }
.js-ready .reveal-d2 { transition-delay: .2s; }
.js-ready .reveal-d3 { transition-delay: .3s; }
/* When js-ready is NOT on html, everything is visible by default */
.reveal.in-view,
.reveal-delay.in-view { opacity:1; transform:translateY(0); }

/* Float card subtle bob */
.float-anim { animation: float-bob 4s ease-in-out infinite; }
.float-anim-delay { animation: float-bob 4.6s ease-in-out infinite 0.6s; }

@keyframes float-bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* ─── Spinner ─── */
.btn-spinner { animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ══════════════════════════════
   SITE NAV
══════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 14px 0;
  transition: background .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(8,8,8,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-wordmark {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-cta {
  padding: 9px 20px;
  font-size: 13px;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 80px 0 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.g1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(52,199,89,.22), transparent 70%);
  top: -120px; left: 50%;
  transform: translateX(-30%);
}
.g2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(10,132,255,.14), transparent 70%);
  top: 30%; right: -80px;
}
.g3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(191,90,242,.10), transparent 70%);
  bottom: 0; left: -40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 72px;
  position: relative;
  z-index: 1;
}

/* Hero copy */
.hero-h1 {
  font-size: clamp(46px, 6vw, 82px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 22px;
  text-wrap: balance;
}

.h1-em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

.hero-body {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

.proof-faces {
  display: flex;
}
.pf {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pf:first-child { margin-left: 0; }

.proof-label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.proof-label strong { color: var(--text); }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 580px;
}

/* ─── Float cards ─── */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(20,20,20,0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-lg);
  padding: 12px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 0.5px rgba(255,255,255,0.05) inset;
  z-index: 10;
}

.fc-top {
  top: 60px;
  left: -24px;
}

.fc-bottom {
  bottom: 100px;
  right: -20px;
}

.fc-ring-wrap {
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fc-ring-wrap svg { position: absolute; top: 0; left: 0; }
.fc-grade-letter {
  position: relative;
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  z-index: 1;
}

.fc-emoji { font-size: 22px; flex-shrink: 0; }

.fc-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.fc-text strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.fc-text span {
  font-size: 11px;
  color: var(--text-2);
}

/* ─── Phone mockup ─── */
.phone-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  width: 268px;
  height: 556px;
  background: #121212;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 48px 96px rgba(0,0,0,0.75),
    0 24px 48px rgba(0,0,0,0.5);
}

.phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 32px;
  background: #000;
  border-radius: 100px;
  z-index: 5;
}

.phone-screen {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
  border-radius: 48px;
}

/* ─── Slideshow ─── */
.phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.65s ease;
  border-radius: 48px;
}

.phone-slide.active { opacity: 1; }

/* (light-theme phone UI replaced by real screenshot slideshow) */

/* Phone glow */
.phone-glow {
  width: 180px; height: 24px;
  background: radial-gradient(ellipse, rgba(52,199,89,.3) 0%, transparent 70%);
  margin-top: -6px;
  filter: blur(10px);
}

/* Hero scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-3);
  z-index: 2;
  animation: scroll-bounce 2.4s ease infinite;
}
@keyframes scroll-bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════
   FEATURES / BENTO
══════════════════════════════ */
.features {
  padding: 128px 0;
  position: relative;
}

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

/* Bento grid: 3 cols
   Fitness: col 1-2, row 1
   Nutrition: col 3, row 1
   Sleep: col 1, row 2
   Wellbeing: col 2-3, row 2 */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bc-fitness   { grid-column: 1 / 3; grid-row: 1; }
.bc-nutrition { grid-column: 3;     grid-row: 1; }
.bc-sleep     { grid-column: 1;     grid-row: 2; }
.bc-wellbeing { grid-column: 2 / 4; grid-row: 2; }

.bento-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s ease, transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

/* Top edge gradient shimmer on hover */
.bento-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.bento-card:hover::before { opacity: 1; }
.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}

.bc-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.bc-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.bc-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 20%, transparent);
  padding: 3px 10px;
  border-radius: 100px;
}

.bc-h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.bc-p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 340px;
}

.bc-visual { margin-top: auto; padding-top: 20px; }

/* bc stat */
.bc-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 12px;
}
.bs-num  { font-size: 28px; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.bs-unit { font-size: 13px; color: var(--text-2); font-weight: 500; }

/* ─── Workout log ─── */
.workout-log {
  background: var(--card-2);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.wl-header {
  display: grid;
  grid-template-columns: 1fr 100px 56px;
  gap: 8px;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

.wl-row {
  display: grid;
  grid-template-columns: 1fr 100px 56px;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  transition: background .15s ease;
}
.wl-row:last-child { border-bottom: none; }
.wl-row:hover { background: rgba(255,255,255,0.03); }

.wl-name { font-size: 12px; font-weight: 600; }

.wl-sets { display: flex; gap: 4px; }
.ws {
  width: 20px; height: 20px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
  background: var(--card);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.ws:hover:not(.done) { border-color: rgba(255,255,255,0.18); color: var(--text-2); transform: scale(1.12); }
.ws:active { transform: scale(0.88) !important; }
.ws.done {
  background: rgba(52,199,89,0.12);
  color: var(--accent);
  border-color: rgba(52,199,89,0.2);
}
.ws.done:hover { background: rgba(52,199,89,0.06); border-color: rgba(52,199,89,0.12); transform: scale(1.12); }

.wl-load { font-size: 12px; font-weight: 600; color: var(--text-2); }

/* ─── Macro rings ─── */
.macro-rings {
  display: flex;
  gap: 16px;
  align-items: center;
}
.macro-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.mi-label { text-align: center; }
.mi-label strong { display: block; font-size: 14px; font-weight: 800; letter-spacing: -0.02em; }
.mi-label span   { font-size: 10px; color: var(--text-2); font-weight: 500; }

/* ─── Sleep timeline ─── */
.sleep-timeline {
  display: flex;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  gap: 3px;
}
.st-seg {
  border-radius: 6px;
  cursor: default;
  transition: filter .18s ease, transform .18s ease;
}
.st-seg:hover { filter: brightness(1.4); transform: scaleY(1.08); }
.sleep-legend {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.sl-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--text-2);
  font-weight: 500;
}
.sl-item i {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.sleep-stats {
  display: flex;
  gap: 20px;
  margin-top: 12px;
}
.sleep-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.sleep-stat strong { font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.sleep-stat span   { font-size: 11px; color: var(--text-2); font-weight: 500; }

/* ─── Wellbeing: mood ─── */
.mood-section { margin-bottom: 16px; }

.mood-week-label {
  display: block;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.mood-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mood-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card-2);
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.mood-chip:hover { transform: scale(1.08); }
.mood-chip:active { transform: scale(0.94); }
.mood-chip span { color: var(--text-2); }
.mood-great  { border-color: rgba(52,199,89,.25);  background: rgba(52,199,89,.07); }
.mood-good   { border-color: rgba(10,132,255,.2);  background: rgba(10,132,255,.06); }
.mood-ok     { border-color: rgba(255,159,10,.2);  background: rgba(255,159,10,.06); }
.mood-today  {
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  border-style: dashed;
  color: var(--text-2);
}
.mood-great.mood-picked  { border-color: rgba(52,199,89,.55);  background: rgba(52,199,89,.16); box-shadow: 0 0 10px rgba(52,199,89,.18); }
.mood-good.mood-picked   { border-color: rgba(10,132,255,.45); background: rgba(10,132,255,.14); box-shadow: 0 0 10px rgba(10,132,255,.15); }
.mood-ok.mood-picked     { border-color: rgba(255,159,10,.45); background: rgba(255,159,10,.14); box-shadow: 0 0 10px rgba(255,159,10,.15); }

/* Hydration */
.hy-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.hy-label { font-size: 12px; font-weight: 600; color: var(--text-2); margin-right: auto; }
.hy-value { font-size: 13px; font-weight: 700; }
.hy-target { color: var(--text-2); font-weight: 500; }

.hy-add-btn {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font);
  color: #0A84FF;
  background: rgba(10,132,255,0.10);
  border: 1px solid rgba(10,132,255,0.22);
  border-radius: 100px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
  white-space: nowrap;
}
.hy-add-btn:hover { background: rgba(10,132,255,0.18); transform: scale(1.05); }
.hy-add-btn:active { transform: scale(0.95); }
.hy-add-btn:disabled {
  color: var(--accent); background: rgba(52,199,89,0.10);
  border-color: rgba(52,199,89,0.22); cursor: default; transform: none;
}

.hy-track {
  height: 8px;
  background: var(--card-2);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hy-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(10,132,255,.7), #0A84FF);
  border-radius: 100px;
  transition: width .4s var(--ease-out);
}

/* Sleep tooltip */
.sleep-tooltip {
  position: fixed;
  z-index: 10000;
  background: rgba(28,28,30,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .15s ease, transform .15s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
}
.sleep-tooltip.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════
   HEALTH SCORE
══════════════════════════════ */
.score-sec {
  padding: 128px 0;
  position: relative;
  overflow: hidden;
}

.score-bg-letter {
  position: absolute;
  font-size: clamp(320px, 40vw, 560px);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(52,199,89,0.028);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  z-index: 0;
}

.score-top-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(52,199,89,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.score-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 1;
}

/* Rings */
.score-rings-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.score-rings-wrap {
  position: relative;
  width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}

.rings-svg {
  position: absolute;
  top: 0; left: 0;
  filter: drop-shadow(0 0 40px rgba(52,199,89,0.08));
}

.score-ring {
  /* initial dashoffset set per-ring in the SVG attribute = dasharray (fully hidden) */
  transition: stroke-dashoffset 1.6s var(--ease-out);
}

.rings-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  /* Dark disc that sits cleanly inside the innermost ring */
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

.rc-grade {
  font-size: 44px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.05em;
  line-height: 1;
}
.rc-label {
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.rings-legend {
  display: flex;
  gap: 18px 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.rl-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.rl-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Grade scale */
.grade-scale {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.gs-row {
  display: grid;
  grid-template-columns: 40px 1fr 80px;
  align-items: center;
  gap: 12px;
}
.gs-letter {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-align: center;
}
.gs-track {
  height: 7px;
  background: var(--card);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.gs-fill {
  height: 100%;
  width: var(--w);
  background: var(--c);
  border-radius: 100px;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}
.gs-fill.in-view { opacity: 1; }
.gs-label {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}

/* ══════════════════════════════
   WAITLIST
══════════════════════════════ */
.waitlist {
  padding: 128px 0;
  position: relative;
  overflow: hidden;
}

.wl-glow {
  position: absolute;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 480px;
  background: radial-gradient(ellipse, rgba(52,199,89,0.10) 0%, transparent 70%);
  pointer-events: none;
}

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

.wl-heading {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 18px;
  text-wrap: balance;
}

.wl-body {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 28px;
}

.wl-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(52,199,89,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 36px;
}
.wl-counter strong { font-weight: 800; }
.wl-counter-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s ease infinite;
}

/* Form */
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  position: relative;
}

/* Top gradient border on form card */
.wl-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.wlf-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.wlf-group--device { min-width: 120px; }

.wlf-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.wlf-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wlf-group input {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.wlf-group input::placeholder { color: var(--text-3); }
.wlf-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

/* Device select */
.wlf-select-wrap {
  position: relative;
}
.wlf-select {
  appearance: none;
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 36px 13px 16px;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 500;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.wlf-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.wlf-select option { background: #1c1c1e; }
.wlf-select-chevron {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Success */
.wl-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  text-align: center;
}
.wls-check {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(52,199,89,0.12);
  border: 1px solid rgba(52,199,89,0.25);
  display: flex; align-items: center; justify-content: center;
}
.wl-success h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.wl-success p {
  font-size: 15px;
  color: var(--text-2);
  max-width: 380px;
  line-height: 1.6;
}

/* ══════════════════════════════
   FAQ
══════════════════════════════ */
.faq-sec {
  padding: 128px 0;
  position: relative;
}
.faq-inner {
  max-width: 680px;
  margin: 0 auto;
}
.faq-list {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background .2s ease;
}
.faq-item:last-child { border-bottom: none; }
.faq-item[open] { background: rgba(255,255,255,0.02); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '';
  width: 18px; height: 18px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 6.75L9 11.25l4.5-4.5' stroke='%238E8E93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform .25s var(--ease-out);
}
.faq-item[open] .faq-q::after { transform: rotate(180deg); }
.faq-item[open] .faq-q { color: var(--accent); }

.faq-a {
  padding: 0 28px 22px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-wordmark {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.fw-accent { color: var(--accent); }

.footer-tag {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 4px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.footer-social a:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-3);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { transition: color .2s ease; }
.footer-legal a:hover { color: var(--text-2); }

.footer-contact { font-size: 14px; color: var(--text-3); }
.footer-email { color: var(--text-2); transition: color .2s ease; }
.footer-email:hover { color: var(--text); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; min-height: 420px; }
  .hero-body { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bc-fitness   { grid-column: 1 / 3; grid-row: 1; }
  .bc-nutrition { grid-column: 1;     grid-row: 2; }
  .bc-sleep     { grid-column: 2;     grid-row: 2; }
  .bc-wellbeing { grid-column: 1 / 3; grid-row: 3; }

  .score-layout {
    grid-template-columns: 1fr;
    gap: 52px;
    text-align: center;
  }
  .score-content .section-h2   { text-align: center; }
  .score-content .section-body { text-align: center; margin: 0 auto; }
  .gs-row { grid-template-columns: 36px 1fr 72px; }
}

@media (max-width: 640px) {
  /* Container tighter on phones */
  .container { padding: 0 20px; }

  /* Hero */
  .hero { padding: 56px 0 40px; }
  .hero-grid { gap: 36px; }
  .hero-h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero-body { font-size: 16px; margin-bottom: 28px; }
  .hero-visual { min-height: 320px; }
  .hero-actions { gap: 12px; }

  /* Phone mockup smaller */
  .phone-frame { width: 220px; height: 456px; }
  .phone-screen { border-radius: 38px; }
  .phone-slide  { border-radius: 38px; }

  /* Float cards — keep inside safe area */
  .fc-top    { top: 16px; left: 0; }
  .fc-bottom { bottom: 48px; right: 0; }

  /* Section spacing */
  .features, .score-sec, .waitlist { padding: 72px 0; }
  .section-intro { margin-bottom: 40px; }

  /* Bento */
  .bento-grid { grid-template-columns: 1fr; gap: 12px; }
  .bc-fitness, .bc-nutrition, .bc-sleep, .bc-wellbeing { grid-column: 1; grid-row: auto; }
  .bento-card { padding: 24px 20px; }

  /* Form */
  .wl-form { padding: 24px 20px; gap: 12px; }
  .wlf-row { grid-template-columns: 1fr; }
  /* Bigger touch targets for inputs */
  .wlf-group input,
  .wlf-select { padding: 14px 16px; font-size: 16px; } /* 16px prevents iOS zoom */
  .btn-full { padding: 18px 24px; font-size: 16px; }

  /* Nav */
  .site-nav { padding: 10px 0; }
  .nav-cta  { padding: 8px 16px; font-size: 12px; }
  .nav-wordmark { font-size: 18px; }

  /* FAQ */
  .faq-sec { padding: 72px 0; }
  .faq-q   { padding: 18px 20px; font-size: 15px; }
  .faq-a   { padding: 0 20px 18px; }

  /* Footer */
  .footer-top    { flex-direction: column; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Mood chips */
  .mood-row  { gap: 4px; }
  .mood-chip { padding: 5px 10px; font-size: 11px; }

  /* Score grade scale */
  .gs-row { grid-template-columns: 28px 1fr 56px; }

  .br-desk { display: none; }
}

@media (max-width: 400px) {
  .phone-frame { width: 200px; height: 414px; }
  .app-ring-wrap { width: 120px; height: 120px; }
  .proof-faces { display: none; }
  .fc-top, .fc-bottom { display: none; } /* hide float cards on very small screens */
}

/* ─── iOS safe area ─── */
@supports (padding: max(0px)) {
  .hero   { padding-top: max(56px, env(safe-area-inset-top) + 40px); }
  .footer { padding-bottom: max(40px, env(safe-area-inset-bottom) + 24px); }
}

/* ─── Custom scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2C2C2E; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3A3A3C; }

/* ─── Selection ─── */
::selection { background: rgba(52,199,89,0.25); color: var(--text); }
