:root {
  --night: #0a0a0e;
  --night-2: #101018;
  --surface: #16161f;
  --surface-2: #1c1c28;
  --card: #1a1a24;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.4);
  --move: #fa124f;
  --exercise: #91e829;
  --stand: #1cd9e3;
  --button: #0b56cd;
  --button-hover: #1466e8;
  --accent: #3b82ff;
  --steps: #338cfa;
  --workouts: #a05cfb;
  --phone-bg: #f2f2f7;
  --phone-card: #ffffff;
  --phone-ink: #1c1c1e;
  --phone-muted: #8e8e93;
  --radius: 22px;
  --max: 1120px;
  --nav-h: 72px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--night);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 70% 12%, rgba(28, 217, 227, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 36% at 18% 8%, rgba(250, 18, 79, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(145, 232, 41, 0.06), transparent 50%);
}

.site {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: saturate(140%) blur(18px);
  background: rgba(10, 10, 14, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 14, 0.86);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--button);
  color: white !important;
  font-weight: 600;
  font-size: 0.88rem;
}

.nav-cta:hover {
  background: var(--button-hover);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  margin-inline: auto;
  position: relative;
  transition: transform 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

/* Hero */

.hero {
  padding: 56px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--exercise), var(--stand), var(--move));
}

.hero h1 {
  margin: 16px 0 0;
  font-size: clamp(2.4rem, 5vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.034em;
  font-weight: 800;
}

.word-fitness { color: var(--exercise); }
.word-screentime { color: var(--move); }

.lede {
  margin: 18px 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 700;
  border: 0;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--button);
  color: white;
}

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.store-note {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.86rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.hero-art {
  position: absolute;
  inset: auto auto 0 -18%;
  width: 92%;
  max-width: none;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
  mask-image: radial-gradient(ellipse 68% 72% at 48% 48%, #000 42%, transparent 78%);
}

.phone {
  position: absolute;
  top: 10px;
  right: 2%;
  width: 292px;
  padding: 11px;
  border-radius: 42px;
  background: linear-gradient(180deg, #3a3a44, #14141a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 30px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(5deg);
}

.phone-screen {
  background: var(--phone-bg);
  color: var(--phone-ink);
  border-radius: 32px;
  overflow: hidden;
  min-height: 560px;
  padding: 10px 14px 18px;
}

.island {
  width: 92px;
  height: 24px;
  margin: 4px auto 10px;
  border-radius: 999px;
  background: #0a0a0e;
}

.phone-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 6px 4px 12px;
}

.phone-card {
  background: var(--phone-card);
  border-radius: 18px;
  padding: 14px 14px 16px;
  box-shadow: 0 8px 24px rgba(15, 15, 20, 0.06);
}

.phone-card + .phone-card {
  margin-top: 12px;
}

.phone-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--phone-muted);
  margin-bottom: 8px;
}

.phone-card-head span {
  color: var(--accent);
  font-weight: 650;
}

.rings {
  display: block;
  width: 168px;
  height: 168px;
  margin: 8px auto 10px;
}

.ring-track { opacity: 0.18; }
.ring-fill {
  transform-origin: center;
  transform: rotate(-90deg);
  stroke-linecap: round;
  stroke-dasharray: var(--circ);
  stroke-dashoffset: var(--circ);
}

.phone.is-in .ring-fill {
  animation: ring-draw 1.2s ease-out forwards;
}

.phone.is-in .ring-fill.move { animation-delay: 0.1s; }
.phone.is-in .ring-fill.exercise { animation-delay: 0.22s; }
.phone.is-in .ring-fill.stand { animation-delay: 0.34s; }

@keyframes ring-draw {
  to { stroke-dashoffset: calc(var(--circ) * (1 - var(--progress))); }
}

.phone-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  text-align: center;
}

.phone-stats strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: -0.03em;
}

.phone-stats small {
  color: var(--phone-muted);
  font-size: 0.68rem;
}

.stat-c { color: var(--steps); }
.stat-m { color: var(--move); }
.stat-e { color: var(--exercise); }
.stat-s { color: var(--stand); }

.balance {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.balance em {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--phone-muted);
  margin-left: 4px;
}

.bar {
  height: 5px;
  margin: 10px 0 12px;
  border-radius: 999px;
  background: #e5e5ea;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: inherit;
  background: var(--accent);
}

.phone-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  font-size: 0.74rem;
}

.phone-row small {
  display: block;
  color: var(--phone-muted);
}

.phone-row b { font-weight: 700; }
.phone-row .plus { color: #34c759; }

.unlock {
  display: grid;
  place-items: center;
  width: 100%;
  margin-top: 14px;
  border-radius: 12px;
  min-height: 40px;
  background: var(--button);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Sections */

section {
  padding: 88px 0;
}

.section-kicker {
  color: var(--stand);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  font-weight: 800;
}

.section-copy {
  margin: 14px 0 0;
  max-width: 38rem;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.step {
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  min-height: 100%;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--button);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 16px 0 18px;
  border-radius: 16px;
}

.step-icon.rings-icon {
  display: grid;
  place-items: center;
  background: #111118;
  box-shadow: inset 0 0 0 1px var(--line);
}

.step-icon.rings-icon svg {
  width: 38px;
  height: 38px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.features {
  background:
    linear-gradient(180deg, transparent, rgba(22, 22, 31, 0.65) 12%, rgba(22, 22, 31, 0.65) 88%, transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.feature {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature-glyph {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 16px;
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

/* Estimator */

.estimator-shell {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 40px;
  align-items: stretch;
}

.sliders,
.estimate-total {
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.sliders {
  padding: 8px 8px 8px;
}

.slider-row {
  display: grid;
  grid-template-columns: 148px 1fr 86px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.slider-row:last-child {
  border-bottom: 0;
}

.slider-row label {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.slider-row label small {
  display: block;
  font-weight: 500;
  color: var(--faint);
  font-size: 0.75rem;
  margin-top: 2px;
}

.slider-row output {
  text-align: right;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--stand);
  outline-offset: 3px;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
  accent-color: var(--accent);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.estimate-total {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 80% 0%, rgba(28, 217, 227, 0.12), transparent 40%),
    var(--surface);
}

.estimate-total p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.big-time {
  margin: 18px 0 8px;
  font-size: clamp(3rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.breakdown div {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.breakdown small {
  display: block;
  color: var(--faint);
  font-size: 0.72rem;
}

.breakdown b {
  font-variant-numeric: tabular-nums;
}

.privacy-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.privacy-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.privacy-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  color: var(--muted);
}

.privacy-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--exercise);
  box-shadow: 0 0 0 4px rgba(145, 232, 41, 0.12);
}

.cta-band {
  text-align: center;
  padding: 72px 28px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(11, 86, 205, 0.22), transparent 55%),
    var(--surface);
}

.cta-band h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.cta-band p {
  margin: 12px auto 0;
  max-width: 34rem;
  color: var(--muted);
}

.cta-band .hero-actions {
  justify-content: center;
}

.footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.footer nav {
  display: flex;
  gap: 20px;
}

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

/* Inner pages */

.page {
  padding: 48px 0 96px;
}

.page h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.045em;
}

.page .lede { margin-bottom: 36px; }

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 36px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.15rem;
}

.prose a {
  color: var(--stand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px 18px;
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
}

.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

.not-found {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .estimator-shell,
  .privacy-band,
  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 640px;
  }

  .phone {
    right: 50%;
    transform: translateX(50%) rotate(3deg);
    width: 270px;
  }

  .hero-art {
    inset: auto auto 6% -8%;
    width: 86%;
    opacity: 0.9;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: #0a0a0e;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 12px;
    justify-content: center;
  }

  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .slider-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label value"
      "range range";
  }

  .slider-row label { grid-area: label; }
  .slider-row output { grid-area: value; }
  .slider-row input { grid-area: range; }

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

  section { padding: 64px 0; }

  .hero { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .phone.is-in .ring-fill {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: calc(var(--circ) * (1 - var(--progress)));
  }
}
