/* ============================================================
   repline - marketing site
   Matches the app: dark glass, aurora teal, plasma indigo.
   Tokens lifted from mobile/src/constants/theme.ts
   ============================================================ */

:root {
  --bg: #05070c;
  --bg-top: #0e2236;
  --bg-mid: #070c18;
  --bg-card: rgba(255, 255, 255, 0.045);
  --bg-card-hi: rgba(255, 255, 255, 0.075);
  --ink: #eaf2f7;
  --ink-dim: #8997a6;
  --ink-faint: #5c6b7a;
  --teal: #34e5bd;
  --teal-bright: #5bf2d0;
  --teal-dim: rgba(52, 229, 189, 0.16);
  --teal-glow: rgba(52, 229, 189, 0.35);
  --indigo: #6b7cff;
  --indigo-bright: #93a0ff;
  --amber: #f2b45b;
  --red: #ff6b6b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --font-sans: "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --nav-h: 72px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(52, 229, 189, 0.28); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

/* --- grain overlay ------------------------------------------------ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.45;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- typography helpers ------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--teal);
  opacity: 0.6;
}

.display {
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.mono { font-family: var(--font-mono); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 7, 12, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  /* The 30px logo + 21px text only made a 34px-tall tap target. The nav is a 72px
     centered flex row, so raising this to the 44px touch minimum moves nothing. */
  min-height: 44px;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.brand span { transform: translateY(-1px); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 130;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 7, 12, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 32px;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 10px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.45s;
}
.mobile-menu.is-open a { transform: none; opacity: 1; }
.mobile-menu a:nth-child(2) { transition-delay: 0.04s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.08s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.12s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.16s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.2s; }

/* ============================================================
   BUTTONS  (app style: teal fill, dark text, radius 20, 54px)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: var(--r-lg);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-solid {
  background: var(--teal);
  color: #05070c;
}
.btn-solid:hover {
  background: var(--teal-bright);
  transform: translateY(-2px);
  box-shadow: 0 10px 38px -8px var(--teal-glow);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: rgba(52, 229, 189, 0.45);
  background: var(--teal-dim);
  transform: translateY(-2px);
}
.btn-sm { padding: 11px 20px; font-size: 14px; border-radius: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 60px;
  background:
    linear-gradient(160deg, var(--bg-top) 0%, var(--bg-mid) 45%, #03050a 100%);
}
.hero::after {
  /* top teal wash, like the app's GradientBackground */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 400px;
  background: linear-gradient(180deg, rgba(52, 229, 189, 0.10), rgba(52, 229, 189, 0));
  pointer-events: none;
  z-index: 0;
}
#terrain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero::before {
  /* vignettes so type sits on calm ground */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 85% 55% at 22% 42%, rgba(5, 7, 12, 0.82), transparent 68%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.55), transparent 32%),
    linear-gradient(0deg, rgba(5, 7, 12, 0.9), transparent 36%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
}
.hero-eyebrow {
  margin-bottom: 28px;
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.1s forwards;
}
.hero h1 {
  font-size: clamp(44px, 7.6vw, 100px);
  margin-bottom: 30px;
}
.hero h1 .l1, .hero h1 .l2, .hero h1 .l3 {
  display: block;
  opacity: 0;
  animation: rise 1s var(--ease-out) forwards;
}
.hero h1 .l1 { animation-delay: 0.18s; }
.hero h1 .l2 { animation-delay: 0.3s; color: var(--ink-faint); }
.hero h1 .l3 {
  animation-delay: 0.42s;
  color: var(--teal);
  text-shadow: 0 0 44px var(--teal-glow);
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-dim);
  max-width: 56ch;
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.54s forwards;
}
.hero-sub strong { color: var(--ink); font-weight: 700; }
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.66s forwards;
}
.hero-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.78s forwards;
}
.hero-note b { color: var(--ink-dim); font-weight: 500; }

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

/* --- ticker ------------------------------------------------------- */
.ticker {
  position: relative;
  z-index: 3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 12, 24, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 13px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 28px;
  white-space: nowrap;
  border-right: 1px solid var(--line);
}
.ticker span em { font-style: normal; color: var(--teal); }
.ticker span i { font-style: normal; color: var(--indigo-bright); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS - shared
   ============================================================ */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.wrap-narrow { width: min(860px, 100% - 48px); margin: 0 auto; }

.section-head { margin-bottom: clamp(48px, 6vw, 76px); max-width: 780px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 18px; }
.section-head p { font-size: 18px; color: var(--ink-dim); max-width: 58ch; }
.section-head h2 .dim { color: var(--ink-faint); }

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   PROBLEM
   ============================================================ */
.problem { border-top: 1px solid var(--line); }
.problem-statement {
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: var(--ink-faint);
  max-width: 24ch;
  text-wrap: balance;
}
.problem-statement em { font-style: normal; color: var(--ink); }
.problem-statement .hl { color: var(--teal); }
.problem-grid {
  margin-top: clamp(56px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.problem-cell { background: #070b13; padding: 34px 30px 38px; }
.problem-cell .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--indigo-bright);
  letter-spacing: 0.18em;
  display: block;
  margin-bottom: 18px;
}
.problem-cell h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.problem-cell p { font-size: 15.5px; color: var(--ink-dim); }
.problem-cell p b { color: var(--ink); font-weight: 600; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #070c18 0%, var(--bg) 100%);
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 36px 32px 34px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s;
}
.step:hover {
  border-color: var(--line-strong);
  background: var(--bg-card-hi);
  transform: translateY(-4px);
}
.step::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--step-glow, var(--teal)), transparent);
  opacity: 0.55;
}
.step .step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--step-glow, var(--teal));
  display: block;
  margin-bottom: 22px;
}
.step h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.step p { font-size: 15.5px; color: var(--ink-dim); }
.step .step-viz {
  margin-top: 28px;
  height: 92px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(3, 5, 10, 0.55);
  overflow: hidden;
}
.step .step-viz svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   PRESCRIPTION (the engine's voice)
   ============================================================ */
.rx { border-top: 1px solid var(--line); overflow: hidden; }
.rx-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 6vw, 90px);
  align-items: center;
}
.rx-card {
  position: relative;
  border: 1px solid rgba(107, 124, 255, 0.28);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 120% 70% at 20% -10%, rgba(107, 124, 255, 0.12), transparent 55%),
    linear-gradient(165deg, #0c1526 0%, #080d18 60%, #060a12 100%);
  padding: 30px 30px 26px;
  box-shadow:
    0 30px 80px -30px rgba(0, 0, 0, 0.85),
    0 0 70px -24px rgba(107, 124, 255, 0.35);
  transform: perspective(1200px) rotateY(4deg) rotateX(2deg);
}
.rx-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.rx-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo-bright);
  border: 1px solid rgba(107, 124, 255, 0.35);
  background: rgba(107, 124, 255, 0.1);
  padding: 6px 12px;
  border-radius: 999px;
}
.rx-card-head time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
}
.rx-finding { font-size: 17px; line-height: 1.55; margin-bottom: 20px; }
.rx-finding strong { color: var(--teal); font-weight: 700; }
.rx-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.rx-stat {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 12px 10px;
  background: rgba(3, 5, 10, 0.5);
}
.rx-stat .v {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  display: block;
}
.rx-stat .v.down { color: var(--red); }
.rx-stat .v.up { color: var(--teal); }
.rx-stat .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.rx-plan { border-top: 1px solid var(--line); padding-top: 20px; }
.rx-plan h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}
.rx-plan ul { list-style: none; display: grid; gap: 10px; }
.rx-plan li {
  font-size: 14.5px;
  color: var(--ink-dim);
  padding-left: 22px;
  position: relative;
}
.rx-plan li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-family: var(--font-mono);
}
.rx-plan li b { color: var(--ink); font-weight: 600; }
.rx-why {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(107, 124, 255, 0.08);
  border: 1px solid rgba(107, 124, 255, 0.2);
  font-size: 13.5px;
  color: var(--ink-dim);
}
.rx-why b { color: var(--indigo-bright); font-weight: 600; }
.rx-success {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.rx-success b { color: var(--teal); font-weight: 500; }
.rx-disclaim {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0.8;
}

.rx-copy .eyebrow { margin-bottom: 20px; }
.rx-copy h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 20px; }
.rx-copy > p { font-size: 17.5px; color: var(--ink-dim); margin-bottom: 32px; max-width: 50ch; }
.rx-points { list-style: none; display: grid; gap: 20px; }
.rx-points li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
}
.rx-points .pt-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(52, 229, 189, 0.3);
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.rx-points .pt-ico svg { width: 17px; height: 17px; }
.rx-points h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.rx-points p { font-size: 14.5px; color: var(--ink-dim); }

/* ============================================================
   APP SCREENS - CSS phones
   ============================================================ */
.screens {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(14, 34, 54, 0.7), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(20px, 3vw, 44px);
  perspective: 1600px;
  padding: 20px 0 10px;
}
.phone {
  width: clamp(230px, 24vw, 280px);
  flex-shrink: 0;
  border-radius: 44px;
  border: 1px solid rgba(150, 180, 200, 0.18);
  background: #0a121c;
  padding: 10px;
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 0.8s var(--ease-out);
}
.phone-l { transform: rotateY(16deg) rotateX(4deg) translateY(20px); }
.phone-c { transform: translateY(-14px) scale(1.04); z-index: 2; }
.phone-r { transform: rotateY(-16deg) rotateX(4deg) translateY(20px); }
.phones:hover .phone-l { transform: rotateY(9deg) rotateX(2deg) translateY(14px); }
.phones:hover .phone-r { transform: rotateY(-9deg) rotateX(2deg) translateY(14px); }
.phone-screen {
  border-radius: 36px;
  background: linear-gradient(165deg, #0d1d2e 0%, #070c16 55%, #04070d 100%);
  border: 1px solid rgba(150, 180, 200, 0.1);
  overflow: hidden;
  aspect-ratio: 9 / 19;
  padding: 30px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 16px;
  border-radius: 999px;
  background: #02040a;
  z-index: 2;
}
/* --- faithful app-screen mockups (built from the app's real UI) --- */
.p-head { display: flex; justify-content: space-between; align-items: flex-start; }
.p-greet {
  display: block;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.p-greet.lc { text-transform: none; letter-spacing: 0; font-weight: 500; }
.p-welcome { display: block; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.p-iconbtn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.p-iconbtn svg { width: 11px; height: 11px; }
.p-iconbtn.sq { border-radius: 7px; }
.p-tagline {
  font-size: 15.5px;
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.p-tagline em { font-style: normal; font-weight: 500; color: var(--teal); }
.p-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  padding: 8px 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.p-card.slim { padding: 7px 9px; gap: 3px; }
.p-chiprow { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.p-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--teal-dim);
  border-radius: 999px;
  padding: 2.5px 7px;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}
.p-dot { width: 4px; height: 4px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.p-dot.teal { background: var(--teal); }
.p-dot.indigo { background: var(--indigo); }
.p-meta { font-size: 7.5px; color: var(--ink-dim); white-space: nowrap; }
.p-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8.5px;
  color: var(--ink-dim);
  padding: 3px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.p-row b { color: var(--ink); font-weight: 600; }
.p-btn {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  font-size: 8px;
  font-weight: 800;
  color: #05070c;
  background: var(--teal);
  border-radius: 999px;
  padding: 6px 0;
}
.p-btn svg { width: 8px; height: 8px; }
.p-k {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.p-verdict { font-size: 7.5px; font-weight: 700; }
.p-verdict.teal { color: var(--teal); }
.p-track {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.p-track i { display: block; height: 100%; border-radius: 99px; background: var(--teal); }
.p-headline { font-size: 8px; font-weight: 500; color: var(--ink); }
.p-phase {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 7px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.p-bwrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; }
.p-bwval { font-size: 16px; font-weight: 500; color: var(--ink); line-height: 1.1; }
.p-bwval small { font-size: 7.5px; color: var(--ink-dim); font-weight: 400; }
.p-bwdelta { display: block; font-size: 7px; color: var(--indigo); }
.p-spark { width: 54px; height: 26px; flex-shrink: 0; }
.p-tabbar {
  margin-top: auto;
  align-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(8, 14, 24, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
}
.p-tab {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--ink-dim);
  padding: 4px 7px;
  font-size: 7px;
  font-weight: 600;
}
.p-tab svg { width: 10px; height: 10px; }
.p-tab.active {
  background: var(--teal);
  color: #05070c;
  border-radius: 999px;
  padding: 4px 9px;
  box-shadow: 0 0 10px var(--teal-glow);
}
.p-days { display: flex; gap: 4px; }
.p-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 0 3px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 8px;
  font-weight: 600;
  color: var(--ink);
}
.p-day b { font-size: 6px; font-weight: 700; color: var(--ink-dim); }
.p-day i { width: 3.5px; height: 3.5px; border-radius: 50%; background: transparent; }
.p-day i.on { background: var(--teal); }
.p-day.sel { background: var(--teal); border-color: transparent; color: #05070c; }
.p-day.sel b { color: rgba(5, 7, 12, 0.65); }
.p-day.sel i.on { background: #05070c; }
.p-exhead { display: flex; align-items: center; gap: 5px; }
.p-exhead b { font-size: 9px; font-weight: 700; color: var(--ink); }
.p-minichip {
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border-radius: 999px;
  padding: 1.5px 5px;
}
.p-exsub { font-size: 7px; color: var(--ink-dim); }
.p-cols, .p-set {
  display: grid;
  grid-template-columns: 0.5fr 1.1fr 1fr 1.1fr;
  gap: 4px;
  align-items: center;
}
.p-cols {
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 4px;
}
.p-cols .c { text-align: center; }
.p-set {
  background: rgba(255, 255, 255, 0.025);
  border-radius: 7px;
  padding: 3px 4px;
}
.p-set.drop { background: rgba(107, 124, 255, 0.06); }
.p-set .n { font-family: var(--font-mono); font-size: 7px; color: var(--ink-dim); text-align: center; }
.p-set .box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  font-size: 7.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 2px 0;
}
.p-set .type {
  font-size: 6px;
  font-weight: 600;
  text-align: center;
  border: 1px solid;
  border-radius: 4px;
  padding: 2px 0;
}
.p-set .type.work { color: var(--indigo); border-color: rgba(107, 124, 255, 0.4); }
.p-set .type.top { color: var(--teal); border-color: rgba(52, 229, 189, 0.4); }
.p-set .type.dropc { color: var(--indigo); border-color: transparent; }
.p-addset {
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  text-align: center;
  font-size: 7px;
  font-weight: 500;
  color: var(--ink-dim);
  padding: 3px 0;
}
.p-addex {
  background: rgba(52, 229, 189, 0.08);
  border: 1px solid var(--teal-dim);
  color: var(--teal);
  border-radius: 999px;
  text-align: center;
  font-size: 8px;
  font-weight: 600;
  padding: 5px 0;
}
.p-blocks { display: flex; gap: 4px; }
.p-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 64px;
  border-radius: 8px;
  padding: 5px 7px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  font-size: 7.5px;
  font-weight: 600;
  color: var(--ink);
}
.p-block b {
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.p-block.sel { background: var(--teal-dim); border-color: rgba(52, 229, 189, 0.5); }
.p-block.sel b { color: var(--teal); }
.p-blockhead { display: flex; flex-direction: column; gap: 1px; }
.p-goal { font-size: 7.5px; font-weight: 600; color: var(--teal); }
.p-subline { font-size: 6.5px; color: var(--ink-dim); }
.p-seclabel {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.p-sechead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1px;
}
.p-explore { display: flex; gap: 4px; }
.p-explore div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 7px;
  font-size: 7.5px;
  font-weight: 600;
  color: var(--ink);
}
.p-explore b {
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.p-dayhead { display: flex; align-items: center; gap: 5px; }
.p-dayhead b { font-size: 8.5px; font-weight: 600; color: var(--ink); }
.p-dayhead.rest b { color: var(--ink-dim); }
.p-dayk {
  font-size: 5.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.p-edit {
  margin-left: auto;
  font-size: 6.5px;
  font-weight: 600;
  color: var(--teal);
  border: 1px solid rgba(52, 229, 189, 0.4);
  border-radius: 999px;
  padding: 1px 6px;
}
.p-edit.indigo { color: var(--indigo); border-color: rgba(107, 124, 255, 0.4); }
.p-digest { font-size: 7px; color: var(--ink-dim); }
.screens-caption {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
}
.screens-caption span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.screens-caption span b { color: var(--ink-dim); font-weight: 500; }
.screens-note {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0.75;
}

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features { border-top: 1px solid var(--line); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-card);
  padding: 30px 28px 32px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s;
}
.feature:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  background: var(--bg-card-hi);
}
.feature-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(52, 229, 189, 0.3);
  background: var(--teal-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  margin-bottom: 20px;
}
.feature-ico svg { width: 20px; height: 20px; }
.feature.violet .feature-ico {
  border-color: rgba(107, 124, 255, 0.35);
  background: rgba(107, 124, 255, 0.1);
  color: var(--indigo-bright);
}
.feature h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 14.5px; color: var(--ink-dim); }
.feature .tag {
  position: absolute;
  top: 26px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-bright);
  border: 1px solid rgba(107, 124, 255, 0.3);
  padding: 4px 9px;
  border-radius: 99px;
}

/* ============================================================
   PRIVACY BAND
   ============================================================ */
.privacy-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 90% at 50% 120%, rgba(52, 229, 189, 0.08), transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, #070c16 100%);
}
.privacy-inner { text-align: center; max-width: 740px; margin: 0 auto; }
.privacy-inner .eyebrow { justify-content: center; margin-bottom: 22px; }
.privacy-inner .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--teal);
  opacity: 0.6;
}
.privacy-inner h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 18px; }
.privacy-inner > p { font-size: 17.5px; color: var(--ink-dim); margin-bottom: 36px; }
.privacy-inner > p b { color: var(--ink); font-weight: 700; }
.privacy-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.privacy-chips span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  background: rgba(5, 7, 12, 0.5);
}
.privacy-chips b { color: var(--teal); font-weight: 500; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { border-top: 1px solid var(--line); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 26px;
  align-items: stretch;
  max-width: 1000px;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 38px 36px 40px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}
.plan-pro {
  position: relative;
  border-color: rgba(52, 229, 189, 0.4);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(52, 229, 189, 0.12), transparent 60%),
    linear-gradient(180deg, #0b1622, #080e18);
  box-shadow: 0 30px 90px -40px rgba(52, 229, 189, 0.3);
}
.plan-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.plan-pro .plan-name { color: var(--teal); }
.plan-trial-chip {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #05070c;
  background: var(--teal);
  border-radius: 99px;
  padding: 4px 10px;
  font-weight: 800;
}
.plan-price {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.plan-price small {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0;
}
.plan-alt {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 28px;
}
.plan-alt b { color: var(--ink-dim); font-weight: 500; }
.plan ul { list-style: none; display: grid; gap: 12px; margin-bottom: 34px; }
.plan li {
  font-size: 15px;
  color: var(--ink-dim);
  padding-left: 26px;
  position: relative;
}
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.plan li b { color: var(--ink); font-weight: 700; }
.plan .btn { margin-top: auto; }
.pricing-note {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--ink-faint);
  max-width: 72ch;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--line); background: linear-gradient(180deg, #070c16, var(--bg)); }
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  font-size: 18.5px;
  font-weight: 700;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--teal-bright); }
.faq-item summary .faq-x {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.faq-item[open] summary .faq-x { transform: rotate(45deg); }
.faq-item .faq-a {
  padding: 0 0 28px;
  max-width: 66ch;
  color: var(--ink-dim);
  font-size: 15.5px;
}
.faq-item .faq-a a { color: var(--teal); }
.faq-item .faq-a a:hover { text-decoration: underline; }
.faq-item .faq-a b { color: var(--ink); font-weight: 600; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final {
  position: relative;
  border-top: 1px solid var(--line);
  padding: clamp(110px, 14vw, 180px) 0;
  overflow: hidden;
  text-align: center;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 50% 100%, rgba(52, 229, 189, 0.13), transparent 65%),
    radial-gradient(ellipse 40% 50% at 80% 90%, rgba(107, 124, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.cta-final .wrap { position: relative; }
.cta-final h2 { font-size: clamp(40px, 6.4vw, 84px); margin-bottom: 22px; }
.cta-final h2 .dim { color: var(--ink-faint); }
.cta-final > .wrap > p {
  font-size: 18px;
  color: var(--ink-dim);
  margin-bottom: 40px;
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-final .hero-ctas { justify-content: center; animation: none; opacity: 1; }
.cta-final .hero-note { animation: none; opacity: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 64px 0 44px; background: #04060a; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-faint);
  max-width: 30ch;
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { font-size: 14.5px; color: var(--ink-dim); transition: color 0.2s; }
.footer ul a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.footer-bottom svg { opacity: 0.9; }

/* ============================================================
   DOC PAGES (privacy / terms / support / delete-account)
   ============================================================ */
.doc-hero {
  padding: calc(var(--nav-h) + clamp(60px, 9vw, 110px)) 0 clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 90% at 85% -20%, rgba(107, 124, 255, 0.09), transparent 60%),
    radial-gradient(ellipse 50% 70% at 8% 0%, rgba(52, 229, 189, 0.07), transparent 60%),
    linear-gradient(160deg, #0a1826 0%, var(--bg-mid) 50%, var(--bg) 100%);
}
.doc-hero .eyebrow { margin-bottom: 20px; }
.doc-hero h1 { font-size: clamp(38px, 6vw, 64px); margin-bottom: 16px; }
.doc-hero .doc-meta { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.doc-hero .doc-meta b { color: var(--ink-dim); font-weight: 500; }
.doc-body { padding: clamp(48px, 7vw, 80px) 0 clamp(90px, 10vw, 130px); }
.doc-body .lede { font-size: 19px; color: var(--ink-dim); margin-bottom: 40px; max-width: 62ch; }
.doc-body .lede b { color: var(--ink); font-weight: 700; }
.doc-body h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 52px 0 16px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.doc-body h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.doc-body h2 .snum {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  font-weight: 500;
  margin-right: 12px;
  letter-spacing: 0.06em;
}
.doc-body h3 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
.doc-body p { color: var(--ink-dim); margin-bottom: 16px; max-width: 70ch; }
.doc-body p b, .doc-body li b { color: var(--ink); font-weight: 600; }
.doc-body ul, .doc-body ol { margin: 0 0 18px 22px; color: var(--ink-dim); display: grid; gap: 8px; }
.doc-body li { max-width: 66ch; }
.doc-body a { color: var(--teal); }
.doc-body a:hover { text-decoration: underline; }
/* Bare URLs (apps.apple.com/account/subscriptions) are one unbreakable token wider than a
   320px viewport, and an unbreakable token sets its grid/flex item's min-content width.
   `anywhere` (not break-word) is what shrinks that min-content size. */
.doc-body a, .doc-body code { overflow-wrap: anywhere; }
.doc-callout {
  border: 1px solid rgba(52, 229, 189, 0.3);
  border-radius: var(--r-lg);
  background: rgba(52, 229, 189, 0.06);
  padding: 22px 26px;
  margin: 28px 0;
  max-width: 70ch;
}
.doc-callout.violet {
  border-color: rgba(107, 124, 255, 0.3);
  background: rgba(107, 124, 255, 0.07);
}
.doc-callout p { margin: 0; font-size: 15px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 14.5px; }
.doc-body th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-strong);
}
.doc-body td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  vertical-align: top;
}
.doc-body td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 10px 0 30px;
}
.support-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  background: var(--bg-card);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
  min-width: 0; /* grid items default to min-width:auto and refuse to shrink below content */
}
.support-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.support-card h3 { font-size: 18px; margin: 0 0 8px; }
.support-card p { font-size: 14.5px; margin-bottom: 14px; }
.support-card .mono-link { font-family: var(--font-mono); font-size: 14px; color: var(--teal); }
.support-card .mono-link:hover { text-decoration: underline; }

.steps-list {
  counter-reset: step;
  list-style: none;
  margin: 24px 0 32px 0 !important;
  display: grid;
  gap: 14px;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 18px 22px 18px 64px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-card);
  max-width: 70ch;
}
.steps-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 19px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .rx-layout { grid-template-columns: 1fr; }
  .rx-card { transform: none; max-width: 560px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phones { flex-wrap: wrap; align-items: center; }
  .phone-l, .phone-r { transform: rotateY(0) translateY(0); }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .burger { display: block; }
  .how-steps, .problem-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .phone-l, .phone-r { display: none; }
  .phone-c { transform: none; }
  .phone { width: min(300px, 78vw); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .rx-data { gap: 8px; }
  .rx-card { padding: 24px 20px 20px; }
  .hero-ctas .btn { width: 100%; }
  .cta-final .hero-ctas .btn { width: 100%; }
}

/* ============================================================
   MOTION SAFETY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
  .hero-eyebrow, .hero h1 .l1, .hero h1 .l2, .hero h1 .l3,
  .hero-sub, .hero-ctas, .hero-note { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
