/* AdaptaFit — adaptafit.app
   One stylesheet for every page. Mobile first; no frameworks. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2?v=1dc044f482") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/inter-tight-latin.woff2?v=35babd4308") format("woff2");
}

:root {
  color-scheme: dark;

  /* colour */
  --bg: #030304;
  --bg-raise: #09090b;
  --surface: #111114;
  --surface-2: #18181c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f5f7;
  --text-2: #a8a8ae;   /* 8.6:1 on --bg */
  --text-3: #8b8b92;   /* 5.8:1 on --bg */
  --accent: #f0692b;   /* sampled from the app icon; 6.4:1 on --bg */
  --accent-hi: #ff7f45;
  --accent-ink: #160800;
  --teal: #296c83;     /* the icon's runner */
  --teal-hi: #63b6d1;  /* 8.9:1 on --bg */
  --warm-bg: #0a0705;

  /* type */
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --gutter: clamp(20px, 5vw, 56px);
  --wrap: 1200px;
  --section-y: clamp(80px, 8.5vw, 128px);

  /* shape + motion */
  --r-s: 12px; --r-m: 20px; --r-l: 28px; --r-xl: 36px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: var(--s4);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #000;
  font-weight: 600;
  font-size: 15px;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  color: var(--accent);
  margin-bottom: var(--s4);
}
.eyebrow--teal { color: var(--teal-hi); }
.display {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.display .line { display: block; }
.h2 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.024em;
  text-wrap: balance;
}
.muted { color: var(--text-3); }
.lead {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 40em;
  text-wrap: pretty;
}
.body { color: var(--text-2); text-wrap: pretty; }
.body + .body { margin-top: var(--s4); }
.body strong, .lead strong { color: var(--text); font-weight: 600; }
.fine { font-size: 14px; line-height: 1.55; color: var(--text-3); text-wrap: pretty; }
.fine a, .body a, .lead a, .faq-a a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(240, 105, 43, 0.6);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s;
}
.fine a:hover, .body a:hover, .lead a:hover, .faq-a a:hover { text-decoration-color: var(--accent); }

/* ---------- buttons + badge ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.28); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn--sm { height: 34px; padding: 0 16px; font-size: 14px; }
.btn:active { transform: scale(0.98); }

.badge {
  display: inline-block;
  flex: none;
  border-radius: 12px;
  line-height: 0;
}
/* Apple's badge is shown as supplied: no shadow, glow, lift or recolour. */
.badge img { width: auto; height: 54px; }
.badge:focus-visible { outline-offset: 4px; border-radius: 12px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(3, 3, 4, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(3, 3, 4, 0.82); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.nav-inner > .btn { order: 2; }
.nav-menu { order: 3; }
@media (min-width: 600px) { .nav-inner { gap: var(--s5); } }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.nav-links { display: none; gap: 22px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-2);
  padding-block: 8px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .nav-wide { display: none; }
@media (min-width: 640px) {
  .nav-links { display: flex; }
  .nav-menu { display: none; }
}
@media (min-width: 1024px) {
  .nav-links { gap: 28px; }
  .nav-links .nav-wide { display: inline; }
}
.nav-menu { position: relative; margin-right: -4px; }
.nav-menu summary {
  list-style: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-icon, .nav-menu-icon::before, .nav-menu-icon::after {
  display: block;
  width: 18px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-menu-icon { position: relative; }
.nav-menu-icon::before, .nav-menu-icon::after { content: ""; position: absolute; left: 0; }
.nav-menu-icon::before { top: -6px; }
.nav-menu-icon::after { top: 6px; }
.nav-menu[open] .nav-menu-icon { background: transparent; }
.nav-menu[open] .nav-menu-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-menu[open] .nav-menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
.nav-menu:not([open]) .nav-menu-panel { display: none; }
.nav-menu-panel {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(var(--nav-h) + 6px);
  display: grid;
  padding: 8px;
  border-radius: var(--r-m);
  border: 1px solid var(--line-strong);
  background: #111114;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 100vmax rgba(0, 0, 0, 0.45);
}
.nav-menu-panel a {
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
}
.nav-menu-panel a + a { border-top: 1px solid var(--line); border-radius: 0; }
.nav-menu-panel a:hover { background: rgba(255, 255, 255, 0.04); }

/* ---------- device: iPhone (CSS bezel) ---------- */
.phone {
  --pw: 300px;
  position: relative;
  flex: none;
  width: var(--pw);
  padding: calc(var(--pw) * 0.032);
  border-radius: calc(var(--pw) * 0.16);
  background:
    linear-gradient(155deg, #55555c 0%, #26262b 14%, #1a1a1e 46%, #2a2a30 74%, #4b4b52 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.03),
    0 60px 120px -40px rgba(0, 0, 0, 0.95),
    0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.phone::before { /* the black glass bezel inside the metal band */
  content: "";
  position: absolute;
  inset: calc(var(--pw) * 0.011);
  border-radius: calc(var(--pw) * 0.149);
  background: #000;
}
.phone-hw { position: absolute; inset: 0; pointer-events: none; }
.phone-hw::before, .phone-hw::after {
  content: "";
  position: absolute;
  width: calc(var(--pw) * 0.012);
  border-radius: 2px;
  background: linear-gradient(90deg, #2e2e33, #4a4a51);
}
.phone-hw::before { /* action + volume */
  left: calc(var(--pw) * -0.01);
  top: 17%;
  height: 4.4%;
  box-shadow:
    0 calc(var(--pw) * 0.17) 0 0 #3a3a40,
    0 calc(var(--pw) * 0.33) 0 0 #3a3a40;
  border-radius: 2px 0 0 2px;
}
.phone-hw::after { /* side button */
  right: calc(var(--pw) * -0.01);
  top: 25%;
  height: 12%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #4a4a51, #2e2e33);
}
.screen {
  position: relative;
  z-index: 1;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--pw) * 0.128);
  overflow: hidden;
  background: #0a0c12;
  isolation: isolate;
}
.screen > img, .screen > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.screen::after { /* faint glass reflection */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0) 32%);
  border-radius: inherit;
}
.screen video { transition: opacity 0.35s var(--ease); }
/* The hero clip loops back to its first frame, so it fades through that frame. */
.screen--poster { background: #0a0c12 url("assets/img/clipA-hero-poster.webp?v=ed15830658") center / cover no-repeat; }
.screen video.is-fading { opacity: 0; }

.video-toggle {
  position: absolute;
  z-index: 5;
  right: calc(var(--pw) * -0.02);
  bottom: calc(var(--pw) * -0.02);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(24, 24, 28, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}
.video-toggle:hover { background: rgba(44, 44, 50, 0.95); transform: scale(1.05); }
.video-toggle svg { width: 14px; height: 14px; }
.video-toggle .i-play { display: none; }
.video-toggle[data-playing="false"] .i-play { display: block; }
.video-toggle[data-playing="false"] .i-pause { display: none; }
.no-js .video-toggle, .video-toggle[hidden] { display: none; }

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section-y); position: relative; overflow-x: clip; }
.section--tight-top { padding-top: calc(var(--section-y) * 0.5); }
.section-head { max-width: 860px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; text-wrap: balance; }
.hero-copy .lead, .closing .lead { text-wrap: balance; }
.section-head .lead { margin-top: var(--s5); }
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(36px, 5vw, 72px);
  overflow: clip;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(44% 34% at 50% 72%, rgba(240, 105, 43, 0.22), transparent 70%),
    radial-gradient(36% 30% at 26% 82%, rgba(41, 108, 131, 0.24), transparent 70%),
    radial-gradient(30% 26% at 76% 84%, rgba(240, 105, 43, 0.10), transparent 70%);
}
.hero-grid { position: relative; }
.hero-copy { position: relative; text-align: center; }
.hero-copy .lead { margin: var(--s5) auto 0; max-width: 37em; }
.accent-line {
  color: var(--accent);
  background: linear-gradient(92deg, #ff8a4c 0%, #f0692b 45%, #e0552a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-cta {
  margin-top: var(--s6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s3) var(--s5);
}
.hero-cta-note { font-size: 15px; color: var(--text-2); text-align: left; line-height: 1.4; }
.hero-cta-note strong { display: block; color: var(--text); font-weight: 600; }
.hero-meta {
  margin-top: var(--s5);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.01em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
}
.hero-meta span { white-space: nowrap; }
.hero-meta span + span::before { content: "·"; margin: 0 10px; color: #5c5c63; }
.hero-more {
  display: none;
  margin-top: var(--s5);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  align-items: center;
  gap: 8px;
}
.hero-more::after {
  content: "";
  width: 7px; height: 7px;
  border-right: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s var(--ease);
}
.hero-more:hover::after { transform: translateY(1px) rotate(45deg); }
@media (max-width: 559px) {
  .hero-meta span + span::before { margin: 0 8px; }
  .hero-meta .meta-ipad { display: none; }
  .hero-cta { flex-direction: column; gap: var(--s3); }
  .hero-cta-note { font-size: 15px; text-align: center; }
  .hero-stage .phone--side .screen > img { filter: brightness(0.45) saturate(0.85); }
}
/* Too narrow for one line: stack the items, so no line starts with a separator. */
@media (max-width: 379px) {
  .hero-meta { flex-direction: column; align-items: center; }
  .hero-meta span + span::before { content: none; }
}

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: clamp(36px, 4.5vw, 56px);
  padding-bottom: clamp(56px, 8vw, 120px);
}
.hero-stage .phone--hero { --pw: min(236px, 62vw); z-index: 2; }
.hero-stage .phone--side {
  --pw: min(188px, 49vw);
  margin-top: 64px;
  z-index: 1;
}
.hero-stage .phone--side .screen > img { filter: brightness(0.62) saturate(0.9); }
.hero-stage .phone--left { margin-right: calc(var(--pw) * -0.36); }
.hero-stage .phone--right { margin-left: calc(var(--pw) * -0.36); }
.hero-stage::after { /* phones settle into the page */
  content: "";
  position: absolute;
  left: -50vw; right: -50vw; bottom: 0;
  height: 34%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(3, 3, 4, 0), var(--bg) 88%);
}
.hero-stage .video-toggle { z-index: 6; }
@media (min-width: 720px) {
  .hero-stage .phone--hero { --pw: 280px; }
  .hero-stage .phone--side { --pw: 232px; margin-top: 88px; }
  .hero-stage .phone--left { margin-right: 24px; }
  .hero-stage .phone--right { margin-left: 24px; }
}

/* Desktop: copy on the left, phones on the right, sized so the whole
   front phone fits a 768px-tall laptop screen. */
@media (min-width: 1024px) {
  .hero { padding-top: 0; }
  .hero-grid {
    --pw-hero: clamp(232px, min(calc((100vh - var(--nav-h) - 84px) / 2.1), 23.5vw), 330px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: center;
    gap: clamp(24px, 3vw, 56px);
    min-height: min(calc(100vh - var(--nav-h)), 900px);
    padding-block: 28px 40px;
  }
  .hero-copy { text-align: left; }
  .hero-copy .display { font-size: clamp(48px, min(5.4vw, 9.4vh), 84px); }
  .hero-copy .lead { margin-inline: 0; max-width: 31em; font-size: clamp(18px, 1.4vw, 20px); }
  .hero-copy .hero-cta { justify-content: flex-start; }
  .hero-copy .hero-meta { justify-content: flex-start; }
  .hero-more { display: inline-flex; }
  .hero-stage {
    margin-top: 0;
    padding-bottom: 0;
    align-items: center;
  }
  .hero-stage::after { display: none; }
  .hero-stage .phone--hero { --pw: var(--pw-hero); }
  .hero-stage .phone--side { --pw: calc(var(--pw-hero) * 0.8); margin-top: 0; }
  .hero-stage .phone--left { margin-right: calc(var(--pw) * -0.5); transform: translateY(6%); }
  .hero-stage .phone--right { margin-left: calc(var(--pw) * -0.5); transform: translateY(-6%); }
  .hero-stage .phone--side .screen > img { filter: brightness(0.55) saturate(0.85); }
  .hero-glow {
    background:
      radial-gradient(34% 46% at 74% 52%, rgba(240, 105, 43, 0.2), transparent 70%),
      radial-gradient(30% 40% at 60% 80%, rgba(41, 108, 131, 0.26), transparent 70%),
      radial-gradient(30% 40% at 10% 20%, rgba(41, 108, 131, 0.10), transparent 70%);
  }
}

/* ---------- proof strip ---------- */
.proof { position: relative; padding-block: var(--s6) var(--s4); }
.proof-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-list li {
  padding: var(--s5) var(--s4) var(--s5) 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
}
.proof-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
.proof-list li:nth-child(even) { padding-left: var(--s4); border-left: 1px solid var(--line); }
.proof-list b {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 900px) {
  .proof-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proof-list li { padding: var(--s6) var(--s5); border-top: 0 !important; }
  .proof-list li:first-child { padding-left: 0; }
  .proof-list li + li { border-left: 1px solid var(--line); padding-left: var(--s5); }
}

/* ---------- the loop ---------- */
.section--loop { padding-top: calc(var(--section-y) * 0.7); }
.loop-grid {
  display: grid;
  gap: var(--s7);
  align-items: center;
  margin-top: var(--s7);
}
.loop-steps { display: grid; gap: var(--s5); counter-reset: loop; }
.loop-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px var(--s4);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.loop-step::before {
  counter-increment: loop;
  content: counter(loop);
  grid-row: span 2;
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  border: 1px solid rgba(240, 105, 43, 0.45);
  background: rgba(240, 105, 43, 0.08);
}
.loop-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.018em;
  line-height: 1.3;
}
.loop-step p { color: var(--text-2); }
.loop-figure { position: relative; max-width: 640px; width: 100%; margin-inline: auto; }
.loop-figure svg { width: 100%; height: auto; overflow: visible; }
.loop-orbit { transform-origin: 360px 270px; animation: orbit 14s linear infinite; }
@media (max-width: 560px) { .loop-sub { display: none; } }
@keyframes orbit { to { transform: rotate(360deg); } }
.js .loop-figure:not(.is-onscreen) .loop-orbit { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .loop-orbit { animation: none; } }
@media (min-width: 960px) {
  .loop-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: var(--s8); margin-top: var(--s6); }
  .loop-step h3 { font-size: 23px; }
  .loop-figure { max-width: 720px; margin-right: -24px; }
}

/* ---------- chapters (sticky phone) ---------- */
.chapters { padding-bottom: calc(var(--section-y) * 0.6); }
.chapters-grid { display: grid; }
.chapters-steps > .section-head { margin-bottom: var(--s5); }
.step { padding-block: var(--s7); border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--text-3);
  margin-bottom: var(--s3);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.4s var(--ease);
}
.step-kicker b {
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step .h3 { margin-bottom: var(--s4); transition: color 0.4s var(--ease); }
.step .body { max-width: 34em; }
.ticks { margin-top: var(--s5); display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.5em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}
.quote-card {
  margin-top: var(--s5);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-m);
  background: var(--surface);
  border: 1px solid var(--line);
  max-width: 30em;
}
.quote-card p { font-size: 15px; color: var(--text-2); }
.quote-card .q { color: var(--text); font-weight: 500; }
.quote-card .a { margin-top: var(--s2); display: flex; gap: 8px; align-items: flex-start; }
.quote-card .a::before {
  content: "";
  flex: none;
  margin-top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #2fb35a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.inline-shot {
  margin-top: var(--s5);
  max-width: 400px;
  border-radius: var(--r-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0c12;
}
.inline-shot figcaption { padding: 10px 16px 14px; font-size: 13px; color: var(--text-3); }
.spec-row { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: 8px; max-width: 34em; }
.spec-row li {
  font-size: 14px;
  line-height: 1.3;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-2);
}
.step-media { margin-top: var(--s6); display: flex; justify-content: center; position: relative; }
.step-media .phone { --pw: min(264px, 70vw); }
.chapters-stage { display: none; }
/* Describes the step's screen for screen readers when the decorative sticky
   phone replaces .step-media (desktop with JS, motion allowed). */
.step-desc { display: none; }

@media (min-width: 960px) {
  .js .chapters-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--s9);
  }
  .js .step {
    min-height: max(520px, min(76vh, 760px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: var(--s9);
    border-top: 0;
  }
  .js .step-media { display: none; }
  .js .step-desc {
    display: block;
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .js .chapters-steps { padding-bottom: 14vh; }
  .js .step:not(.is-active) .h3 { color: var(--text-3); }
  .js .step:not(.is-active) .step-kicker b { color: var(--text-3); }
  .js .chapters-stage { display: block; position: relative; }
  .stage-sticky {
    --pw: clamp(260px, calc((100vh - 150px) / 2.1), 340px);
    position: sticky;
    top: max(calc(var(--nav-h) + 24px), calc(50vh - var(--pw) * 1.05 + 20px));
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--s6);
  }
  .stage-sticky .phone { --pw: inherit; }
  .stage-glow {
    position: absolute;
    inset: -10% -8%;
    z-index: -1;
    background: radial-gradient(50% 40% at 50% 50%, rgba(240, 105, 43, 0.16), transparent 70%);
    pointer-events: none;
  }
  .layer { opacity: 0; transition: opacity 0.6s var(--ease); }
  .layer.is-active { opacity: 1; }
  .stage-dots { display: grid; gap: 12px; }
  .stage-dots li {
    width: 6px; height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
    transition: height 0.4s var(--ease), background-color 0.4s var(--ease);
  }
  .stage-dots li.is-active { height: 22px; background: var(--accent); }
  .stage-toggle { opacity: 0; animation: toggle-in 0.4s var(--ease) 0.2s forwards; }
}
@keyframes toggle-in { to { opacity: 1; } }
@media (min-width: 960px) and (prefers-reduced-motion: reduce) {
  /* static fallback: every step keeps its own still */
  .js .chapters-grid { grid-template-columns: 1fr; }
  .js .chapters-steps { padding-bottom: 0; }
  .js .chapters-stage { display: none; }
  .js .step {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--s9);
    align-items: center;
    padding-block: var(--s8);
    border-top: 1px solid var(--line);
  }
  .js .step:first-child { border-top: 0; }
  .js .step > .step-media { display: flex; margin-top: 0; }
  .js .step-desc { display: none; }
  .js .step-media .phone { --pw: 300px; }
  .js .step:not(.is-active) .h3 { color: var(--text); }
  .js .step:not(.is-active) .step-kicker b { color: var(--accent); }
}

/* ---------- nutrition ---------- */
.section--warm {
  background:
    radial-gradient(50% 30% at 85% 0%, rgba(240, 105, 43, 0.10), transparent 70%),
    radial-gradient(40% 30% at 0% 70%, rgba(41, 108, 131, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--warm-bg) 10%, var(--warm-bg) 90%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nutri-grid { display: grid; gap: var(--s7); margin-top: var(--s8); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s5); }
.chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--text);
}
.panel {
  border-radius: var(--r-l);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--line);
  padding: clamp(24px, 3.4vw, 40px);
}
.panel + .panel { margin-top: var(--s4); }
.panel-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.018em;
  line-height: 1.3;
  margin-bottom: var(--s3);
  text-wrap: balance;
}
.nutri-panels .panel { container-type: inline-size; }
.calc-row {
  margin-top: var(--s5);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@container (min-width: 460px) {
  .calc-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.calc-row li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}
.calc-row b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--text); }
.calc-row span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.35; color: var(--text-3); }
.calc-row li:last-child { border-color: rgba(99, 182, 209, 0.35); background: rgba(41, 108, 131, 0.12); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  margin-block: var(--s6) var(--s5);
}
.stat { border-top: 1px solid var(--line-strong); padding-top: var(--s4); }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--text-2); }
.energy-fig { position: relative; }
.energy-fig::before {
  content: "";
  position: absolute;
  inset: 8% 0 -6%;
  z-index: -1;
  background:
    radial-gradient(50% 50% at 40% 60%, rgba(47, 179, 90, 0.14), transparent 70%),
    radial-gradient(40% 40% at 70% 40%, rgba(240, 105, 43, 0.14), transparent 70%);
  filter: blur(10px);
}
.energy-card {
  border-radius: 6.6% / 6.85%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.energy-fig figcaption { margin-top: var(--s5); max-width: 36em; }
.energy-fig figcaption .panel-title { margin-bottom: var(--s2); }
@media (min-width: 960px) {
  .nutri-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: var(--s9); }
}

/* measured maintenance */
.measure {
  margin-top: var(--s8);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s7);
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(41, 108, 131, 0.22), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
}
.measure > * { min-width: 0; }
.measure .eyebrow { margin-bottom: var(--s3); }
.measure .h3 { margin-bottom: var(--s4); }
.measure-copy .body { max-width: 30em; }
@media (min-width: 1024px) {
  .measure { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s8); align-items: center; }
}
.wchart {
  padding: clamp(18px, 2.4vw, 28px);
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: rgba(3, 3, 4, 0.55);
}
.wchart-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); }
.wchart-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.wchart-unit { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.wchart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--text-2); }
.wchart-legend li { display: inline-flex; align-items: center; gap: 7px; }
.wchart-legend i { flex: none; display: block; }
.lg-dot { width: 10px; height: 10px; border-radius: 50%; background: #3aa0c8; }
.lg-line { width: 18px; height: 2.5px; border-radius: 2px; background: #e8622a; }
.lg-sq { width: 10px; height: 10px; border-radius: 2px; background: rgba(245, 245, 247, 0.6); }
.lg-sq--off { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(245, 245, 247, 0.45); }
.wchart-body {
  margin-top: var(--s4);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 10px;
  align-items: center;
}
.wchart-y { position: relative; align-self: stretch; }
.wchart-y span {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  font-size: 12px;
  line-height: 1;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.wchart-y .y183 { top: 10.53%; }
.wchart-y .y182 { top: 36.84%; }
.wchart-y .y181 { top: 63.16%; }
.wchart-y .y180 { top: 89.47%; }
.wchart-plot svg { display: block; width: 100%; height: auto; aspect-ratio: 560 / 152; min-height: 150px; overflow: visible; }
.wc-grid line { stroke: rgba(255, 255, 255, 0.09); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wc-trend { fill: none; stroke: #e8622a; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* Dots are zero-length round-capped strokes, so they stay round when the plot stretches. */
.wc-dots path { fill: none; stroke: #3aa0c8; stroke-width: 10; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke 0.15s; }
.wc-dots path:hover { stroke: #7cc6e0; }
.wchart-days-label { font-size: 12px; color: var(--text-3); text-align: right; line-height: 1; }
.wchart-days { display: grid; grid-template-columns: repeat(28, minmax(0, 1fr)); gap: 2px; }
.wchart-days i { display: block; height: 12px; border-radius: 2px; background: rgba(245, 245, 247, 0.6); }
.wchart-days i.off { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(245, 245, 247, 0.45); }
.wchart-x { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; font-size: 12px; color: var(--text-3); }
.readouts {
  margin: var(--s5) 0 0;
  display: grid;
  gap: 8px;
}
.readouts > div {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px var(--s3);
}
.readouts dt { font-size: 13px; color: var(--text-2); flex: 1 1 0; } /* the label wraps first; the value drops below it only when the label's longest word won't fit */
.readouts dd { margin: 0; font-family: var(--font-display); font-weight: 650; font-size: 22px; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.readouts small { font-family: var(--font-body); font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--text-2); }
.readouts .readout-res { border-color: rgba(99, 182, 209, 0.45); background: rgba(41, 108, 131, 0.16); }
.wchart > .fine { margin-top: var(--s4); }
@media (max-width: 359px) { /* 320px: room for the week labels on one line */
  .measure { padding-inline: 18px; }
  .wchart { padding-inline: 12px; }
  .wchart-x { white-space: nowrap; font-size: 11px; letter-spacing: -0.01em; }
}
@media (min-width: 600px) {
  .readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .readouts > div { display: block; }
  .readouts dd { margin-top: 4px; }
  /* three narrow cards: the unit gets its own line, so the value always fits */
  .readouts small { display: block; margin-top: 2px; }
}

/* ---------- progress ---------- */
.progress-grid { display: grid; gap: var(--s8); align-items: center; }
.progress-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: var(--s4);
}
.progress-phones .phone { --pw: min(232px, 58vw); }
.progress-phones .phone--back {
  --pw: min(196px, 48vw);
  margin-top: 56px;
  margin-left: calc(var(--pw) * -0.3);
  z-index: 0;
}
.progress-phones .phone--front { z-index: 1; }
.progress-phones .phone--back .screen > img { filter: brightness(0.7); }
.metric-list {
  margin-top: var(--s6);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.metric-list li {
  padding: var(--s4) var(--s4) var(--s4) 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-2);
}
.metric-list li b { display: block; color: var(--text); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
@media (min-width: 960px) {
  .progress-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s9); }
  .progress-phones { order: -1; } /* copy comes first in the markup; the phones sit left on desktop */
  .progress-phones .phone { --pw: 300px; }
  .progress-phones .phone--back { --pw: 252px; margin-top: 96px; margin-left: -64px; }
}

/* ---------- yours (bento) ---------- */
.bento { display: grid; gap: var(--s4); margin-top: var(--s8); }
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 70%);
  padding: clamp(28px, 3.6vw, 48px);
}
.tile .h3 { margin-bottom: var(--s3); }
.tile .body { max-width: 30em; }
.tile--privacy {
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(41, 108, 131, 0.35), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface) 70%);
}
.tile-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  margin-bottom: var(--s6);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.tile-icon svg { width: 24px; height: 24px; }
.facts-row {
  margin-top: var(--s6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.facts-row li { padding: var(--s4) var(--s3) 0 0; font-size: 14px; line-height: 1.4; color: var(--text-2); }
@media (max-width: 599px) {
  .facts-row { grid-template-columns: 1fr; }
  .facts-row li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .facts-row li:last-child { border-bottom: 0; padding-bottom: 0; }
  .facts-row li b { font-size: 17px; margin: 0; white-space: nowrap; }
}
.facts-row li b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 4px;
}
.tokens { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s6); }
.token {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(240, 105, 43, 0.1);
  border: 1px solid rgba(240, 105, 43, 0.35);
  color: #ffb08a;
}
.token--quiet { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); font-family: var(--font-body); }
@media (min-width: 900px) {
  .bento { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; }
  .tile--privacy { grid-row: span 2; display: flex; flex-direction: column; }
  .tile--privacy .facts-row { margin-top: auto; }
  .tile--privacy .h3 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; }
  .tile--privacy .body { font-size: 18px; }
  .tile--privacy .body:last-of-type { margin-bottom: var(--s8); }
}

/* ---------- watch ---------- */
.watch-row {
  margin: var(--s8) auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s7) var(--s4);
}
/* an odd last frame centres under the two above it */
.watch-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.watch-item { text-align: center; }
.watch-item h3 {
  margin-top: var(--s5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.012em;
  line-height: 1.3;
}
.watch-item p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--text-2); max-width: 22em; margin-inline: auto; }
.watch {
  --ww: min(150px, 38vw);
  position: relative;
  width: var(--ww);
  margin-inline: auto;
  padding-block: calc(var(--ww) * 0.38);
}
.watch::before, .watch::after { /* the band, fading out */
  content: "";
  position: absolute;
  left: 50%;
  width: 64%;
  height: calc(var(--ww) * 0.46);
  transform: translateX(-50%);
  background: linear-gradient(90deg, #0d0d10, #1c1c20 30%, #222227 50%, #1c1c20 70%, #0d0d10);
}
.watch::before { top: calc(var(--ww) * 0.04); border-radius: 14px 14px 0 0; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.watch::after { bottom: calc(var(--ww) * 0.04); border-radius: 0 0 14px 14px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.watch-case {
  position: relative;
  z-index: 1;
  padding: calc(var(--ww) * 0.075);
  border-radius: calc(var(--ww) * 0.27);
  background: linear-gradient(150deg, #5a5a61, #26262b 22%, #1b1b1f 55%, #3e3e45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 30px 60px -24px rgba(0, 0, 0, 0.9);
}
.watch-case::before { /* digital crown */
  content: "";
  position: absolute;
  right: calc(var(--ww) * -0.045);
  top: 22%;
  width: calc(var(--ww) * 0.06);
  height: 18%;
  border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(180deg, #55555c 0 2px, #2a2a2f 2px 4px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.watch-case::after { /* side button */
  content: "";
  position: absolute;
  right: calc(var(--ww) * -0.025);
  top: 52%;
  width: calc(var(--ww) * 0.035);
  height: 20%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #3a3a40, #26262b);
}
.watch-screen {
  aspect-ratio: 416 / 496;
  border-radius: calc(var(--ww) * 0.2);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 calc(var(--ww) * 0.03) #000;
}
.watch-screen img { width: 100%; height: 100%; object-fit: cover; }
.watch-note {
  margin: var(--s8) auto 0;
  max-width: 820px;
  padding: var(--s5) var(--s6);
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--surface);
  text-align: center;
}
.watch-note p { font-size: 15px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.watch-note strong { color: var(--text); font-weight: 600; }
@media (min-width: 900px) {
  .watch-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
  .watch-item:last-child:nth-child(odd) { grid-column: auto; }
  .watch { --ww: 196px; }
}

/* ---------- pricing ---------- */
.pricing { text-align: center; }
.section--glow {
  background:
    radial-gradient(40% 36% at 50% 46%, rgba(240, 105, 43, 0.12), transparent 70%),
    radial-gradient(30% 30% at 20% 20%, rgba(41, 108, 131, 0.12), transparent 70%);
  border-top: 1px solid var(--line);
}
.plans {
  margin: var(--s8) auto 0;
  max-width: 880px;
  display: grid;
  gap: var(--s4);
  text-align: left;
}
.plan {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: clamp(28px, 3.4vw, 40px);
}
.plan--yearly {
  border-color: rgba(240, 105, 43, 0.5);
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(240, 105, 43, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.plan-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text-2); }
.plan-price {
  margin-top: var(--s3);
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
}
.plan-price b { font-size: clamp(44px, 5vw, 60px); font-weight: 650; letter-spacing: -0.028em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 17px; color: var(--text-2); }
.plan-sub { margin-top: var(--s3); font-size: 15px; color: var(--text-2); }
.plan-flag {
  position: absolute;
  top: clamp(28px, 3.4vw, 40px);
  right: clamp(28px, 3.4vw, 40px);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent);
}
.includes-title {
  margin: var(--s7) auto 0;
  max-width: 880px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-2);
}
.includes {
  margin: var(--s4) auto 0;
  max-width: 880px;
  display: grid;
  gap: 12px var(--s6);
  text-align: left;
}
.includes li { position: relative; padding-left: 28px; color: var(--text); font-size: 16px; }
.includes li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.45em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg) translateY(-1px);
}
.pricing-cta { margin-top: var(--s7); display: flex; flex-direction: column; align-items: center; gap: var(--s4); }
.pricing .fine { max-width: 640px; margin-inline: auto; }
@media (min-width: 720px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .includes { grid-template-columns: 1fr 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list { margin: var(--s7) auto 0; max-width: 860px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s5) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 21px);
  letter-spacing: -0.015em;
  line-height: 1.3;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: #fff; }
.faq-item summary:focus-visible { outline-offset: 6px; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--text), var(--text)) center / 11px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 11px no-repeat;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background-color: rgba(255, 255, 255, 0.06); }
.faq-a { padding: 0 var(--s8) var(--s5) 0; color: var(--text-2); }
.faq-a p + p { margin-top: var(--s3); }
@media (max-width: 600px) { .faq-a { padding-right: 0; } }

/* ---------- closing ---------- */
.closing { text-align: center; overflow: clip; }
.closing-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(40% 50% at 50% 30%, rgba(240, 105, 43, 0.18), transparent 70%);
}
.closing .wrap { position: relative; }
.closing-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto var(--s6);
  border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 24px 60px -20px rgba(240, 105, 43, 0.45);
}
.closing .lead { margin: var(--s5) auto 0; }
.closing .hero-cta { margin-top: var(--s6); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: var(--s8) var(--s7); font-size: 14px; color: var(--text-3); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s5); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); }
.footer-links a { color: var(--text-2); transition: color 0.2s; padding-block: 4px; }
.footer-links a:hover { color: var(--text); }
.footer-legal { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); display: grid; gap: var(--s2); font-size: 12.5px; line-height: 1.55; }
.footer-legal a { color: var(--text-2); }
.footer-legal a:hover { color: var(--text); }

/* ---------- support + 404 ---------- */
.page-hero { padding-block: clamp(64px, 9vw, 120px) var(--s5); position: relative; overflow: clip; }
.page-hero .glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 60% at 20% 0%, rgba(240, 105, 43, 0.14), transparent 70%),
              radial-gradient(40% 60% at 90% 10%, rgba(41, 108, 131, 0.2), transparent 70%);
}
.page-hero .wrap { position: relative; }
.page-hero .lead { margin-top: var(--s5); }
.contact {
  display: grid;
  gap: var(--s5);
  align-items: center;
  margin-top: var(--s7);
}
.contact .panel-title { margin-bottom: 4px; }
.contact-email { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.02em; word-break: break-word; }
.contact-email:hover { color: var(--accent-hi); }
@media (min-width: 720px) { .contact { grid-template-columns: 1fr auto; } }
.support-grid { display: grid; gap: var(--s3); margin-top: var(--s4); }
@media (min-width: 600px) { .support-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .support-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.support-cta { margin-top: var(--s8); display: grid; gap: var(--s5); align-items: center; }
.support-cta .panel-title { margin-bottom: 4px; }
@media (min-width: 720px) { .support-cta { grid-template-columns: 1fr auto; } }
.link-card {
  display: block;
  border-radius: var(--r-l);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: var(--s5);
  transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--ease);
}
.link-card:hover { border-color: var(--line-strong); background: var(--surface-2); transform: translateY(-2px); }
.link-card b { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.015em; }
.link-card b::after { content: "\2197"; color: var(--accent); font-size: 16px; }
.link-card span { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.faq-group-title { margin-top: var(--s8); font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.018em; color: var(--text); scroll-margin-top: calc(var(--nav-h) + 24px); }
.faq-group-title span { color: var(--accent); margin-right: 10px; font-size: 0.7em; font-variant-numeric: tabular-nums; vertical-align: 0.12em; }
.faq-group-title:first-child { margin-top: 0; }
.faq-group-title + .faq-list { margin-top: var(--s4); margin-left: 0; max-width: none; }
.support-layout { display: grid; gap: var(--s6); }
.topic-nav { display: none; }
@media (min-width: 960px) {
  .support-layout { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s9); align-items: start; }
  .topic-nav { display: block; position: sticky; top: calc(var(--nav-h) + 32px); }
  .topic-nav p { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; color: var(--text-3); margin-bottom: var(--s3); }
  .topic-nav ul { display: grid; gap: 2px; border-left: 1px solid var(--line); }
  .topic-nav a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 15px; color: var(--text-2); transition: color 0.2s, border-color 0.2s; }
  .topic-nav a:hover { color: var(--text); border-left-color: var(--accent); }
}
.notfound { position: relative; overflow: clip; min-height: 70vh; display: grid; place-items: center; text-align: center; padding-block: var(--s9); }
.notfound > .wrap { position: relative; }
.notfound-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(36% 40% at 50% 40%, rgba(240, 105, 43, 0.16), transparent 70%),
              radial-gradient(30% 40% at 30% 70%, rgba(41, 108, 131, 0.18), transparent 70%);
}
.notfound .code { font-family: var(--font-display); font-weight: 650; font-size: 15px; color: var(--accent); margin-bottom: var(--s4); }
.notfound .lead { margin: var(--s5) auto 0; }
.notfound .hero-cta { margin-top: var(--s6); }
