/* Muscle & Meal Notes — the website.
   The app's "command center" look: near-black, a fine grid, neon glow. Two sides, like the app:
   Nutrition in cyan, Fitness in electric blue with orange. Anything inside [data-side] takes that
   side's colours through the --accent variables. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  --bg: #05070d;
  --bg-raised: #0a0f19;
  --card: #0c1320;
  --card-hi: #101a2b;
  --border: rgba(160, 190, 255, 0.1);
  --border-hi: rgba(160, 190, 255, 0.2);
  --text: #e8f1ff;
  --dim: #a2b1c9;
  --faint: #6c7b94;

  --cyan: #22e5ff;
  --blue: #2f7bff;
  --orange: #ff7a1a;
  --purple: #8b5cf6;
  --magenta: #ff3dcb;
  --good: #3cffa0;
  --warn: #ffb547;

  /* The side that's showing (nutrition by default). */
  --accent: var(--cyan);
  --accent-2: var(--cyan);
  --accent-soft: rgba(34, 229, 255, 0.12);
  --glow: rgba(34, 229, 255, 0.32);
  --on-accent: #021018;

  --display: 'Orbitron', 'Chakra Petch', system-ui, sans-serif;
  --hud: 'Chakra Petch', system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 18px;
  --max: 1180px;
  --gutter: 16px;
}

[data-side='nutrition'] {
  --accent: var(--cyan);
  --accent-2: var(--cyan);
  --accent-soft: rgba(34, 229, 255, 0.12);
  --glow: rgba(34, 229, 255, 0.32);
  --on-accent: #021018;
}

[data-side='fitness'] {
  --accent: var(--blue);
  --accent-2: var(--orange);
  --accent-soft: rgba(47, 123, 255, 0.14);
  --glow: rgba(47, 123, 255, 0.4);
  --on-accent: #ffffff;
}

/* ── Base ───────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* The app's background: a faint grid with a glow from the top. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(34, 229, 255, 0.08), transparent 60%),
    radial-gradient(1200px 600px at 85% -5%, rgba(47, 123, 255, 0.1), transparent 60%),
    linear-gradient(rgba(160, 190, 255, 0.035) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(160, 190, 255, 0.035) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--bg);
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.5px;
}

h3 {
  font-family: var(--hud);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.3px;
}

p {
  margin: 0 0 1em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.overline {
  font-family: var(--hud);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.lead {
  color: var(--dim);
  font-size: 1.12rem;
  max-width: 640px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin-bottom: 14px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--cyan);
  color: #021018;
  padding: 8px 12px;
  border-radius: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--hud);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand .amp {
  color: var(--cyan);
}

.brand .amp + span {
  color: var(--text);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-family: var(--hud);
  font-size: 0.85rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

.nav a.btn,
.nav a.btn:hover {
  color: #021018;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border-hi);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 38px;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ── Buttons, badges ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--hud);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 0.88rem;
  text-decoration: none;
  border-radius: 12px;
  padding: 13px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--accent-2);
  color: var(--on-accent);
  box-shadow: 0 0 28px var(--glow);
}

[data-side='nutrition'] .btn-primary,
.btn-primary {
  color: #021018;
}

[data-side='fitness'] .btn-primary {
  color: #160800;
}

.btn-ghost {
  border-color: var(--border-hi);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.78rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-hi);
  background: rgba(12, 19, 32, 0.85);
  color: var(--text);
  text-decoration: none;
  min-width: 190px;
}

.store svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store small {
  display: block;
  font-family: var(--hud);
  font-size: 0.68rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--warn);
}

.store strong {
  display: block;
  font-family: var(--hud);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  white-space: nowrap;
}

.pro {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--hud);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #d9ccff;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.55);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  vertical-align: middle;
}

.pro::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

.tag {
  display: inline-block;
  font-family: var(--hud);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 11px;
  border: 1px solid currentColor;
}

.tag-nutrition {
  color: var(--cyan);
}

.tag-fitness {
  color: var(--blue);
}

.tag-both {
  color: var(--text);
  border-color: transparent;
  background:
    linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(90deg, var(--cyan), var(--blue), var(--orange)) border-box;
  border: 1px solid transparent;
}

/* ── Phone frame ────────────────────────────────────────────────────────── */

.phone {
  --w: 270px;
  width: var(--w);
  aspect-ratio: 600 / 1304;
  margin: 0;
  padding: calc(var(--w) * 0.035);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(150deg, #222c3f, #0b0f18 45%, #161d2b);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 40px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 70px -10px var(--glow);
  position: relative;
  flex: none;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--w) * 0.13);
  background: #05070d;
}

.phone-sm {
  --w: 210px;
}

/* ── Hero: split in two ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: clamp(640px, calc(100vh - 64px), 920px);
  min-height: clamp(640px, calc(100svh - 64px), 920px);
  display: grid;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-half {
  position: absolute;
  inset: 0;
}

.hero-half.nutrition {
  clip-path: polygon(0 0, 60% 0, 40% 100%, 0 100%);
  background:
    radial-gradient(700px 520px at 18% 45%, rgba(34, 229, 255, 0.22), transparent 70%),
    linear-gradient(rgba(34, 229, 255, 0.07) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(34, 229, 255, 0.07) 1px, transparent 1px) 0 0 / 34px 34px,
    #041016;
}

.hero-half.fitness {
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%);
  background:
    radial-gradient(700px 520px at 82% 45%, rgba(47, 123, 255, 0.26), transparent 70%),
    radial-gradient(420px 320px at 92% 92%, rgba(255, 122, 26, 0.16), transparent 70%),
    linear-gradient(rgba(47, 123, 255, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, rgba(47, 123, 255, 0.08) 1px, transparent 1px) 0 0 / 34px 34px,
    #050a1a;
}

/* The seam where the two sides meet: a glowing line from cyan to blue to orange, drawn on the
   same diagonal as the halves' edge whatever the screen's shape. */
.hero-seam {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(34, 229, 255, 0.75)) drop-shadow(0 0 22px rgba(47, 123, 255, 0.5));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px) 1fr;
  align-items: center;
  gap: 12px;
  padding: 56px var(--gutter) 64px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-side .phone {
  --w: min(270px, 22vw);
}

.hero-side.nutrition .phone {
  --glow: rgba(34, 229, 255, 0.45);
  transform: rotate(-7deg) translateY(10px);
}

.hero-side.fitness .phone {
  --glow: rgba(47, 123, 255, 0.5);
  transform: rotate(7deg) translateY(10px);
}

.side-label {
  font-family: var(--hud);
  text-align: center;
}

.side-label b {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.side-label span {
  color: var(--dim);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.hero-side.nutrition .side-label b {
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(34, 229, 255, 0.55);
}

.hero-side.fitness .side-label b {
  color: var(--blue);
  text-shadow: 0 0 22px rgba(47, 123, 255, 0.6);
}

.hero-copy {
  text-align: center;
  padding: 28px 22px;
  border-radius: 22px;
  background: rgba(5, 7, 13, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
}

.hero-copy img.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 40px rgba(139, 92, 246, 0.35);
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  margin-bottom: 18px;
}

.hero-copy h1 .one {
  background: linear-gradient(90deg, var(--cyan), var(--blue) 60%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .lead {
  margin: 0 auto 26px;
  font-size: 1.08rem;
}

.hero-copy .store-row {
  justify-content: center;
  margin-bottom: 14px;
}

.hero-copy .see-how {
  font-family: var(--hud);
  font-size: 0.85rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}

.hero-copy .see-how:hover {
  color: var(--text);
}

/* ── The loop ───────────────────────────────────────────────────────────── */

.loop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  position: relative;
  counter-reset: step;
}

.loop::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--orange), var(--cyan));
  opacity: 0.4;
}

.loop-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
}

.loop-step .num {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.05rem;
  background: var(--card-hi);
  border: 1px solid var(--border-hi);
  margin-bottom: 14px;
  color: var(--text);
}

.loop-step h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.loop-step .pair {
  display: grid;
  gap: 8px;
}

.loop-step .pair p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--dim);
  padding-left: 12px;
  border-left: 2px solid;
}

.loop-step .pair p.n {
  border-color: var(--cyan);
}

.loop-step .pair p.f {
  border-color: var(--blue);
}

.loop-step .pair b {
  color: var(--text);
  font-weight: 600;
}

/* ── Feature tour: the switch ───────────────────────────────────────────── */

.tour {
  transition: background-color 0.4s ease;
}

.tour::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(900px 500px at 70% 30%, var(--accent-soft), transparent 70%);
  transition: background 0.5s ease;
}

.tour-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.tour-head .section-head {
  margin-bottom: 0;
}

.switch-bar {
  position: sticky;
  top: 76px;
  z-index: 20;
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
  pointer-events: none;
}

/* The app's ModeSwitch, wide: two halves, each in its side's colour. */
.mode-switch {
  pointer-events: auto;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  border: 1px solid var(--border-hi);
  background: rgba(10, 15, 25, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mode-switch button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hud);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--faint);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 22px;
  cursor: pointer;
  transition:
    color 0.25s,
    background 0.25s,
    border-color 0.25s;
}

.mode-switch button svg {
  width: 19px;
  height: 19px;
}

.mode-switch button[data-choose='nutrition'][aria-pressed='true'] {
  color: var(--cyan);
  background: rgba(34, 229, 255, 0.14);
  border-color: rgba(34, 229, 255, 0.55);
  box-shadow: 0 0 22px rgba(34, 229, 255, 0.25);
}

.mode-switch button[data-choose='fitness'][aria-pressed='true'] {
  color: var(--blue);
  background: rgba(47, 123, 255, 0.16);
  border-color: rgba(47, 123, 255, 0.6);
  box-shadow: 0 0 22px rgba(47, 123, 255, 0.3);
}

.tour-panel {
  display: none;
}

.tour-panel.is-active {
  display: block;
  animation: panel-in 0.45s ease both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* A colour sweep across the section when you flip the switch. */
.tour .sweep {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  background: linear-gradient(100deg, transparent 0%, var(--accent-soft) 45%, var(--glow) 50%, var(--accent-soft) 55%, transparent 100%);
  transform: translateX(-110%);
  opacity: 0;
}

.tour .sweep.go {
  animation: sweep 0.7s ease;
}

@keyframes sweep {
  0% {
    transform: translateX(-110%);
    opacity: 1;
  }
  100% {
    transform: translateX(110%);
    opacity: 0;
  }
}

.tour-intro {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.tour-intro h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 10px;
  color: var(--accent);
  text-shadow: 0 0 26px var(--glow);
}

.tour-intro p {
  color: var(--dim);
  margin: 0;
}

.tour-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

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

.feature {
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 16px;
  align-items: start;
  transition:
    border-color 0.2s,
    background 0.2s,
    transform 0.2s;
}

.feature:hover {
  border-color: var(--border-hi);
}

.feature.is-active {
  background: linear-gradient(90deg, var(--accent-soft), var(--card) 70%);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.feature .ico {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  color: var(--accent);
}

.feature .ico svg {
  width: 20px;
  height: 20px;
}

.feature h4 {
  margin: 0;
  font-family: var(--hud);
  font-weight: 600;
  font-size: 1.08rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.feature p {
  margin: 0;
  color: var(--dim);
  font-size: 0.95rem;
}

.feature .inline-phone {
  display: none;
}

.stage {
  position: sticky;
  top: 150px;
  display: flex;
  justify-content: center;
}

.stage .phone {
  --w: 300px;
}

.stage .phone img {
  position: absolute;
  inset: calc(var(--w) * 0.035);
  width: calc(100% - var(--w) * 0.07);
  height: calc(100% - var(--w) * 0.07);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.stage .phone img.is-active {
  opacity: 1;
}

/* ── Where the two sides meet ───────────────────────────────────────────── */

.meet-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: center;
}

.stream {
  display: grid;
  gap: 14px;
}

.stream-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  position: relative;
}

.stream.nutrition .stream-item {
  border-left: 3px solid var(--cyan);
}

.stream.fitness .stream-item {
  border-right: 3px solid var(--blue);
  text-align: right;
}

.stream-item h4 {
  margin: 0 0 4px;
  font-family: var(--hud);
  font-weight: 600;
  font-size: 1.02rem;
}

.stream-item p {
  margin: 0;
  color: var(--dim);
  font-size: 0.93rem;
}

.stream-item .pro {
  margin-top: 8px;
}

.stream-label {
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.stream.nutrition .stream-label {
  color: var(--cyan);
}

.stream.fitness .stream-label {
  color: var(--blue);
  text-align: right;
}

.meet-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.meet-phone .phone {
  --w: 290px;
  --glow: rgba(139, 92, 246, 0.45);
}

.meet-phone::before,
.meet-phone::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 2px;
}

.meet-phone::before {
  right: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.meet-phone::after {
  left: 100%;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.meet-caption {
  text-align: center;
  font-family: var(--hud);
  color: var(--dim);
  font-size: 0.92rem;
}

/* ── Cards (privacy, use cases, plans) ──────────────────────────────────── */

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 12px 0 6px;
}

.card p {
  color: var(--dim);
  margin: 0;
  font-size: 0.95rem;
}

.card .ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--card-hi);
  border: 1px solid var(--border-hi);
  color: var(--good);
}

.card .ico svg {
  width: 21px;
  height: 21px;
}

a.card {
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s;
  display: flex;
  flex-direction: column;
}

a.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
}

.case-card .thumb {
  display: flex;
  justify-content: center;
  margin: 4px 0 18px;
  height: 180px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}

.case-card .thumb .phone {
  --w: 170px;
}

.case-card .tag {
  align-self: flex-start;
}

.case-card .more {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--hud);
  font-size: 0.82rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text);
}

/* Free vs Pro */
.plan-card {
  padding: 28px;
}

.plan-card h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.plan-card > p {
  margin-bottom: 18px;
}

.plan-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.plan-card li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  color: var(--text);
  font-size: 0.97rem;
}

.plan-card li span {
  color: var(--dim);
}

.plan-card li::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(60, 255, 160, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233cffa0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.plan-card.is-pro {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.1), var(--card) 55%);
}

.plan-card.is-pro li::before {
  background: rgba(139, 92, 246, 0.18)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b69cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  font-family: var(--hud);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  color: var(--dim);
  margin: 0 0 16px;
}

/* Final call */
.cta {
  text-align: center;
  border-radius: 28px;
  padding: 56px 24px;
  border: 1px solid var(--border-hi);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(34, 229, 255, 0.16), transparent 70%),
    radial-gradient(600px 300px at 85% 100%, rgba(47, 123, 255, 0.2), transparent 70%),
    var(--bg-raised);
}

.cta h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  margin-bottom: 12px;
}

.cta .lead {
  margin: 0 auto 26px;
}

.cta .store-row {
  justify-content: center;
}

/* ── Use cases page ─────────────────────────────────────────────────────── */

.page-hero {
  padding: 72px 0 40px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  margin-bottom: 14px;
}

.case-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.case-nav a {
  font-family: var(--hud);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  padding: 8px 16px;
  background: var(--card);
}

.case {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.case-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 36px;
}

.case-head h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
}

.case-head .lead {
  margin: 0;
}

.steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(205px, 1fr);
  gap: 22px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scroll-snap-type: x mandatory;
  counter-reset: step;
}

.step {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step .phone {
  --w: 200px;
  margin: 0 auto;
}

.step-text {
  counter-increment: step;
}

.step-text h3 {
  position: relative;
  padding-left: 36px;
  min-height: 26px;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 6px;
}

.step-text h3 .pro {
  margin-left: 4px;
}

.step-text h3::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -1px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.8rem;
  color: var(--on-accent);
  background: var(--accent-2);
}

[data-side='nutrition'] .step-text h3::before {
  color: #021018;
}

.step-text p {
  color: var(--dim);
  font-size: 0.94rem;
  margin: 0;
}

.case.both .step-text h3::before {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #021018;
}

/* ── Text pages (privacy, support) ──────────────────────────────────────── */

.prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px var(--gutter) 24px;
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 8px;
}

.prose h2 {
  font-family: var(--hud);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--cyan);
  margin: 36px 0 8px;
  letter-spacing: 0.3px;
}

.prose h3 {
  margin: 0 0 6px;
}

.prose .updated {
  color: var(--faint);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin: 4px 0;
}

.prose .card {
  margin: 14px 0;
}

.prose .card.highlight {
  border-color: rgba(34, 229, 255, 0.45);
}

.prose .card p:last-child {
  margin-bottom: 0;
}

.prose .card p {
  color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 36px 0 44px;
  color: var(--faint);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer a {
  color: var(--dim);
  text-decoration: none;
}

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

/* ── Scroll reveal ──────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .tour-panel.is-active,
  .tour .sweep.go {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* ── Narrower screens ───────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 30px 8px;
  }

  .hero-copy {
    grid-column: 1 / -1;
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-side .phone {
    --w: min(230px, 38vw);
  }

  .loop {
    grid-template-columns: repeat(2, 1fr);
  }

  .loop::before {
    display: none;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .meet-phone {
    order: -1;
  }

  .meet-phone::before,
  .meet-phone::after {
    display: none;
  }

  .stream.fitness .stream-item,
  .stream.fitness .stream-label {
    text-align: left;
  }

  .stream.fitness .stream-item {
    border-right: 1px solid var(--border);
    border-left: 3px solid var(--blue);
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(5, 7, 13, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 16px;
  }

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

  .nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
  }

  .nav .btn {
    margin-top: 12px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .tour-body {
    grid-template-columns: 1fr;
  }

  .stage {
    display: none;
  }

  .feature {
    cursor: default;
    grid-template-columns: 40px 1fr;
  }

  .feature .inline-phone {
    display: flex;
    justify-content: center;
    grid-column: 1 / -1;
    margin-top: 16px;
  }

  .feature .inline-phone .phone {
    --w: min(250px, 66vw);
  }

  .feature.is-active {
    background: var(--card);
    border-color: var(--border);
  }

  .section {
    padding: 72px 0;
  }

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

  .steps {
    grid-auto-columns: min(78%, 280px);
  }

  .step .phone {
    --w: min(230px, 60vw);
  }
}

@media (max-width: 560px) {
  .grid-4,
  .loop {
    grid-template-columns: 1fr;
  }

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

  .hero-copy {
    padding: 22px 16px;
  }

  .side-label span {
    display: none;
  }

  .store {
    min-width: 0;
    flex: 1 1 150px;
    padding: 10px 12px;
    gap: 10px;
  }

  .store strong {
    font-size: 0.98rem;
  }

  .mode-switch button {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .brand {
    font-size: 0.98rem;
  }
}
