/* ==========================================================================
   CardioSurf — marketing + legal site styles
   Palette mirrors the app's design tokens (src/theme.ts): near-black base,
   lime primary, with violet / cyan / pink / orange accents.

   NOTE: privacy.html, terms.html and support.html share this stylesheet.
   Every class they rely on is defined here — do not remove selectors.
   ========================================================================== */

:root {
  /* Surfaces */
  --ink: #07070B;
  --ink-2: #0C0C13;
  --bg: #07070B;              /* legacy alias */
  --bg-elevated: #0E0E17;
  --surface: #14141D;
  --surface-2: #1C1C28;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Light section (used for rhythm/contrast) */
  --bone: #F2F2EC;
  --bone-2: #E6E6DE;
  --ink-on-bone: #0B0B10;

  /* Text */
  --text: #F6F6F8;
  --text-dim: #A6A6B6;
  --text-faint: #71717F;

  /* Accents */
  --lime: #C6FF3D;
  --lime-deep: #93EA00;
  --violet: #8B5CFF;
  --pink: #FF5CAA;
  --cyan: #45E0FF;
  --orange: #FF8A3D;

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --pill: 999px;

  --max: 1180px;
  --gutter: 22px;

  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, "Segoe UI Emoji", sans-serif;

  /* Uniform aspect ratio for every in-page phone mockup screen */
  --phone-ar: 1000 / 1460;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }

/* height:auto keeps the intrinsic ratio when CSS overrides only the width
   (the width/height attributes on <img> would otherwise squash it). */
img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

::selection { background: var(--lime); color: #07070B; }

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 11, 0.6);
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(7, 7, 11, 0.88);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.24rem;
  flex: none;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--border-strong), 0 6px 18px rgba(198, 255, 61, 0.14);
}
.brand .accent { color: var(--lime); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  padding: 9px 14px;
  border-radius: var(--pill);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-links a.active { color: var(--lime); background: rgba(198, 255, 61, 0.11); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block; position: relative;
  width: 18px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  padding: 15px 28px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
              background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--lime);
  color: #07070B;
  box-shadow: 0 10px 30px rgba(198, 255, 61, 0.22);
}
.btn-primary:hover { background: #D3FF62; box-shadow: 0 16px 42px rgba(198, 255, 61, 0.34); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-appstore { background: #FFFFFF; color: #07070B; }
.btn-appstore svg { width: 22px; height: 22px; }

.btn-sm { padding: 11px 20px; font-size: 0.94rem; }

/* Apple-style App Store badge, hand-built (no external image) */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 20px 11px 18px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #fff;
  line-height: 1;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
              border-color 0.2s var(--ease);
}
.appstore-badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}
.appstore-badge svg { width: 26px; height: 26px; flex: none; fill: #fff; }
.appstore-badge .ab-text { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.appstore-badge .ab-sm {
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.03em;
  text-transform: uppercase; opacity: 0.92;
}
.appstore-badge .ab-lg { font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em; }

/* Light-surface variant */
.on-bone .appstore-badge { background: #000; border-color: rgba(0, 0, 0, 0.2); }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 56px 0; position: relative; }
.section-lg { padding: 128px 0; position: relative; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; margin-right: 0; text-align: left; }
.section-head h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 16px;
}
.section-head p {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
  margin: 0;
  line-height: 1.5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--lime);
  background: rgba(198, 255, 61, 0.09);
  border: 1px solid rgba(198, 255, 61, 0.26);
  padding: 8px 16px;
  border-radius: var(--pill);
  margin: 0 0 22px;
}
.eyebrow.dot::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(198, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 61, 0); }
}

/* Text accents */
.lime { color: var(--lime); }
.italic { font-style: italic; }
.grad {
  background: linear-gradient(104deg, var(--lime) 10%, var(--cyan) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* Marker underline that draws in on reveal */
.mark {
  position: relative;
  display: inline-block;
  color: var(--lime);
}
.mark::after {
  content: "";
  position: absolute;
  left: -1%; bottom: 0.02em;
  width: 102%; height: 0.14em;
  background: var(--lime);
  border-radius: var(--pill);
  opacity: 0.32;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s 0.25s var(--ease);
}
.is-revealed .mark::after, .reveal.is-revealed .mark::after { transform: scaleX(1); }

/* ==========================================================================
   Ambient background art
   ========================================================================== */
.aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
}
.aurora::before {
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  top: -22%; right: -12%;
  background: radial-gradient(circle, rgba(198, 255, 61, 0.3), transparent 68%);
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora::after {
  width: 56vw; height: 56vw; max-width: 680px; max-height: 680px;
  bottom: -26%; left: -14%;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.34), transparent 68%);
  animation: drift 27s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, 6%, 0) scale(1.14); }
}

/* Faint dot grid */
.grid-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 78%);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 8vw, 104px) 0 clamp(64px, 8vw, 110px);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(28px, 4.4vw, 60px);
  align-items: center;
}
.hero h1 {
  /* Capped so "the controller." always holds a single line in this column,
     including on the system-font fallback. */
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  margin: 0 0 24px;
  letter-spacing: -0.05em;
}
.hero h1 .line { display: block; }
.hero .lead {
  font-size: clamp(1.1rem, 2.1vw, 1.36rem);
  color: var(--text-dim);
  max-width: 30ch;
  margin: 0 0 34px;
  line-height: 1.5;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 26px 0 0;
  color: var(--text-faint);
  font-size: 0.92rem;
  font-weight: 500;
}
.hero-note svg { width: 16px; height: 16px; flex: none; color: var(--lime); }

/* ==========================================================================
   Phone mockup (CSS device frame around a real app screenshot)
   ========================================================================== */
.phone {
  position: relative;
  width: 100%;
  max-width: 336px;
  margin: 0 auto;
  padding: 11px;
  border-radius: 52px;
  background: linear-gradient(158deg, #33333E 0%, #14141B 34%, #0B0B11 62%, #2C2C36 100%);
  box-shadow:
    0 2px 2px rgba(255, 255, 255, 0.14) inset,
    0 -1px 2px rgba(255, 255, 255, 0.07) inset,
    0 40px 90px -20px rgba(0, 0, 0, 0.85),
    0 10px 34px rgba(0, 0, 0, 0.6);
}
.phone::before { /* side button hint */
  content: "";
  position: absolute;
  right: -2px; top: 27%;
  width: 3px; height: 62px;
  border-radius: 3px;
  background: linear-gradient(180deg, #3A3A46, #1B1B23);
}
.phone-screen {
  position: relative;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
  /* Each instance passes its screenshot's own ratio via --ar so no app UI
     gets cropped; --phone-ar is only the fallback. */
  aspect-ratio: var(--ar, var(--phone-ar));
}
/* picture is inline by default, which would leave the img without a definite
   block to size its 100% height against. */
.phone-screen picture {
  display: block;
  width: 100%;
  height: 100%;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.phone-glow {
  position: absolute;
  inset: -14% -18%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(198, 255, 61, 0.3), transparent 72%);
  filter: blur(46px);
  pointer-events: none;
}

.hero-art { position: relative; }
.hero-art .phone { animation: bob 7s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50%      { transform: translateY(-16px) rotate(-1.2deg); }
}

/* Floating "move" pills around the hero phone */
.move-pill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--pill);
  background: rgba(16, 16, 22, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  animation: bob-pill 5.5s ease-in-out infinite;
}
.move-pill svg { width: 17px; height: 17px; color: var(--lime); flex: none; }
.move-pill.p1 { top: 2%;  left: -12%;  animation-delay: 0s; }
.move-pill.p2 { top: 41%; right: -13%; animation-delay: 1.1s; }
.move-pill.p3 { bottom: 14%; left: -9%; animation-delay: 2.2s; }
@keyframes bob-pill {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-11px); }
}

/* ==========================================================================
   Marquee ticker
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(198, 255, 61, 0.045);
  padding: 20px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  flex: none;
}
.marquee-group span {
  font-size: clamp(0.86rem, 1.6vw, 1.02rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.marquee-group i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime); flex: none;
}
@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   Light ("bone") section
   ========================================================================== */
.on-bone {
  background: var(--bone);
  color: var(--ink-on-bone);
}
.on-bone h1, .on-bone h2, .on-bone h3 { color: var(--ink-on-bone); }
.on-bone .section-head p { color: rgba(11, 11, 16, 0.66); }
.on-bone .eyebrow {
  color: #3D6300;
  background: rgba(120, 180, 0, 0.14);
  border-color: rgba(120, 180, 0, 0.34);
}
.on-bone a { color: #2F5A00; }

/* Angled edges so the light band reads as a deliberate "cut" */
.slant-top { clip-path: polygon(0 3.2vw, 100% 0, 100% 100%, 0 100%); margin-top: -1px; }
.slant-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.2vw), 0 100%); }
.slant-both {
  clip-path: polygon(0 3.2vw, 100% 0, 100% calc(100% - 3.2vw), 0 100%);
  padding-top: calc(96px + 3.2vw);
  padding-bottom: calc(96px + 3.2vw);
}

/* ==========================================================================
   Steps ("How it works")
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.step {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px 28px;
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--pill);
  background: var(--lime);
  color: #07070B;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--text-dim); font-size: 0.98rem; }

/* Light-section step cards with SVG art */
.on-bone .step {
  background: #fff;
  border: 1px solid rgba(11, 11, 16, 0.1);
  box-shadow: 0 2px 0 rgba(11, 11, 16, 0.05), 0 22px 50px -28px rgba(11, 11, 16, 0.35);
  padding: 0;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.on-bone .step:hover {
  transform: translateY(-6px);
  box-shadow: 0 2px 0 rgba(11, 11, 16, 0.05), 0 34px 64px -26px rgba(11, 11, 16, 0.42);
}
.step-art {
  position: relative;
  aspect-ratio: 16 / 11;
  background: linear-gradient(168deg, #16161F 0%, #0C0C13 100%);
  overflow: hidden;
}
.step-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.step-body { padding: 26px 26px 30px; }
.on-bone .step-body p { color: rgba(11, 11, 16, 0.66); font-size: 1rem; }
.step-index {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4F7C00;
  margin-bottom: 12px;
}
.step-index b {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--lime); color: #07070B; font-size: 0.82rem;
}
.on-bone .step-body h3 { font-size: 1.42rem; margin: 0 0 10px; letter-spacing: -0.035em; }

/* ==========================================================================
   Split feature rows (copy + phone)
   ========================================================================== */
.split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
}
.split.reverse .split-media { order: -1; }
.split h2 { font-size: clamp(1.95rem, 4.4vw, 3.05rem); margin: 0 0 18px; }
.split p.lead {
  color: var(--text-dim);
  font-size: clamp(1.04rem, 1.8vw, 1.18rem);
  margin: 0 0 26px;
  line-height: 1.58;
}
.split-media { position: relative; }

/* Two phones, overlapped */
.phone-pair {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 26px;
}
.phone-pair .phone { max-width: 268px; }
.phone-pair .phone:first-child { transform: rotate(-4deg) translateX(9%); z-index: 1; }
.phone-pair .phone:last-child {
  transform: rotate(4deg) translateX(-9%) translateY(30px);
  margin-left: -22%;
}

/* ==========================================================================
   Chips / stat lists
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}
.chip svg { width: 15px; height: 15px; flex: none; color: var(--lime); }
.chip .tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--pill);
}
.tag.beginner { background: rgba(198, 255, 61, 0.16); color: var(--lime); }
.tag.intermediate { background: rgba(69, 224, 255, 0.16); color: var(--cyan); }
.tag.hard { background: rgba(255, 138, 61, 0.18); color: var(--orange); }

/* Icon bullet list */
.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 14px; }
.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.5;
}
.ticks li strong { color: var(--text); font-weight: 700; }
.ticks li > svg {
  width: 22px; height: 22px; flex: none; margin-top: 2px;
  color: var(--lime);
}

/* ==========================================================================
   Privacy diagram
   ========================================================================== */
.privacy {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 82% 12%, rgba(198, 255, 61, 0.11), transparent 62%),
    radial-gradient(60% 80% at 10% 92%, rgba(139, 92, 255, 0.13), transparent 62%),
    var(--ink-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.privacy-diagram {
  position: relative;
  background: rgba(10, 10, 15, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.flow-node { text-align: center; }
.flow-node .glyph {
  width: 66px; height: 66px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.flow-node .glyph svg { width: 30px; height: 30px; color: var(--lime); }
.flow-node b { display: block; font-size: 0.95rem; letter-spacing: -0.02em; }
.flow-node span { display: block; color: var(--text-faint); font-size: 0.8rem; }
.flow-arrow { color: var(--text-faint); }
.flow-arrow svg { width: 26px; height: 14px; }

.no-cloud {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 92, 170, 0.07);
  border: 1px dashed rgba(255, 92, 170, 0.4);
}
.no-cloud svg { width: 30px; height: 30px; flex: none; color: var(--pink); }
.no-cloud p { margin: 0; font-size: 0.95rem; color: var(--text-dim); }
.no-cloud strong { color: var(--text); }

/* ==========================================================================
   Feature cards
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(60% 60% at 50% 0%, rgba(198, 255, 61, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.card:hover::after { opacity: 1; }
.card .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  font-size: 25px;
  margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.icon.lime { background: rgba(198, 255, 61, 0.13); color: var(--lime); }
.icon.violet { background: rgba(139, 92, 255, 0.16); color: var(--violet); }
.icon.cyan { background: rgba(69, 224, 255, 0.14); color: var(--cyan); }
.icon.pink { background: rgba(255, 92, 170, 0.14); color: var(--pink); }
.icon.orange { background: rgba(255, 138, 61, 0.14); color: var(--orange); }
.card h3 { margin: 0 0 9px; font-size: 1.22rem; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.99rem; }

/* ==========================================================================
   Pro / subscription
   ========================================================================== */
.pro-card {
  position: relative;
  overflow: hidden;
  max-width: 620px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  padding: 44px 38px;
  background: linear-gradient(172deg, var(--surface-2), var(--surface) 62%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.95);
}
.pro-card::before {
  content: "";
  position: absolute;
  inset: -60% -20% auto -20%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(198, 255, 61, 0.2), transparent 72%);
  filter: blur(40px);
  pointer-events: none;
}
.pro-card > * { position: relative; }
.pro-card h3 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); margin: 0 0 10px; }
.pro-card .pro-sub { color: var(--text-dim); margin: 0 0 28px; }
.plan-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 28px; }
.plan {
  flex: 1 1 150px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.plan b { display: block; font-size: 1.08rem; letter-spacing: -0.02em; }
.plan span { display: block; color: var(--text-faint); font-size: 0.88rem; }
.plan.featured { border-color: rgba(198, 255, 61, 0.42); background: rgba(198, 255, 61, 0.07); }
.pro-note { color: var(--text-faint); font-size: 0.86rem; margin: 18px 0 0; }

/* ==========================================================================
   Credibility strip
   ========================================================================== */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.fact {
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.fact svg { width: 26px; height: 26px; margin: 0 auto 14px; color: var(--lime); }
.fact b { display: block; font-size: 1.02rem; letter-spacing: -0.02em; margin-bottom: 5px; }
.fact span { color: var(--text-faint); font-size: 0.88rem; line-height: 1.45; display: block; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 84px) clamp(24px, 5vw, 56px);
  text-align: center;
  background:
    radial-gradient(90% 130% at 50% -10%, rgba(198, 255, 61, 0.2), transparent 62%),
    radial-gradient(70% 100% at 12% 110%, rgba(139, 92, 255, 0.24), transparent 62%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
}
.cta-band h2 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); margin: 0 0 16px; }
.cta-band p {
  color: var(--text-dim);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  margin: 0 auto 32px;
  max-width: 46ch;
}
.cta-band .hero-cta { justify-content: center; }
.cta-fox {
  width: 168px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.6));
  animation: bob 6s ease-in-out infinite;
}

/* ==========================================================================
   FAQ (shared with support.html)
   ========================================================================== */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 22px;
  margin: 12px 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.faq details:hover { border-color: var(--border-strong); }
.faq details[open] { border-color: rgba(198, 255, 61, 0.32); background: var(--bg-elevated); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--lime);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s var(--ease);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; color: var(--text-dim); }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Legal / prose pages
   ========================================================================== */
.page-hero {
  padding: 64px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.prose { max-width: 780px; margin: 0 auto; padding: 8px 0 48px; }
.prose h1 { font-size: clamp(2.1rem, 4.6vw, 2.9rem); margin: 0 0 10px; }
.prose h2 { font-size: 1.32rem; margin: 42px 0 10px; letter-spacing: -0.025em; }
.prose h3 { font-size: 1.08rem; margin: 26px 0 6px; }
.prose p, .prose li { color: var(--text); }
.prose .updated { color: var(--text-dim); font-size: 0.95rem; margin: 0; }
.prose .lead { font-size: 1.12rem; color: var(--text-dim); }
.prose ul { padding-left: 22px; }
.prose li { margin: 7px 0; }
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--lime);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 22px 0;
}
.callout.warn { border-left-color: var(--orange); }
.callout.warn strong { color: var(--orange); }
.muted { color: var(--text-dim); }

/* ==========================================================================
   Contact form (support.html)
   ========================================================================== */
.contact-wrap {
  max-width: 660px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: var(--text);
}
.field input,
.field textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.16);
}
.field textarea { resize: vertical; min-height: 130px; }
/* Honeypot: hidden from humans, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.success {
  background: rgba(198, 255, 61, 0.12);
  border: 1px solid rgba(198, 255, 61, 0.4);
  color: var(--lime);
}
.form-status.error {
  background: rgba(255, 92, 170, 0.12);
  border: 1px solid rgba(255, 92, 170, 0.4);
  color: var(--pink);
}
.contact-wrap .btn-primary { width: 100%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--ink-2);
  padding: 64px 0 44px;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px 28px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.footer-about p {
  color: var(--text-dim);
  font-size: 0.96rem;
  margin: 16px 0 20px;
  max-width: 34ch;
}
.footer-col h4 {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-dim); font-weight: 500; font-size: 0.96rem; }
.footer-col a:hover { color: var(--text); text-decoration: none; }

/* Legacy footer layout (privacy/terms/support) */
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.footer-brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--text-dim); font-weight: 600; font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-legal {
  color: var(--text-faint);
  font-size: 0.86rem;
  margin-top: 26px;
  max-width: 76ch;
  line-height: 1.55;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Gated on .js so that a script failure can never leave content invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.is-revealed { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1000px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  html { scroll-padding-top: 76px; }
  .nav { height: 64px; }
  .nav-toggle { display: inline-flex; }

  /* Collapsed mobile menu */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: rgba(9, 9, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s var(--ease), opacity 0.28s var(--ease), visibility 0.28s;
  }
  .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 13px 14px; font-size: 1.02rem; border-radius: 12px; }
  .nav-right .appstore-badge { display: none; }

  .section { padding: 72px 0; }
  .section-lg { padding: 84px 0; }
  .slant-both { padding-top: calc(72px + 4vw); padding-bottom: calc(72px + 4vw); }
  .section-head { margin-bottom: 42px; }

  /* Stacked hero: headline and CTA come first so the pitch is what you land on,
     with the product shot directly under it. */
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 12px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero .lead { max-width: 38ch; }
  .hero-cta { justify-content: center; }
  .hero-art { margin-top: 48px; }
  .hero-art .phone { max-width: 272px; }
  .move-pill { font-size: 0.8rem; padding: 8px 13px; }
  .move-pill.p1 { top: 6%; left: -4%; }
  .move-pill.p2 { top: 44%; right: -4%; }
  .move-pill.p3 { bottom: 12%; left: -2%; }

  .split { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .split.reverse .split-media { order: 0; }
  .split .ticks li { text-align: left; }
  .split .chips { justify-content: center; }
  .split-copy { display: flex; flex-direction: column; align-items: center; }
  .split p.lead { max-width: 46ch; }

  .steps { grid-template-columns: 1fr; gap: 20px; }
  .flow { grid-template-columns: 1fr; gap: 18px; }
  .flow-arrow { transform: rotate(90deg); margin: 0 auto; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  :root { --gutter: 18px; }
  .brand { font-size: 1.12rem; }
  .brand img { width: 32px; height: 32px; }
  .hero h1 { letter-spacing: -0.04em; }
  .btn { padding: 14px 22px; font-size: 0.96rem; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
  .hero-cta .btn, .hero-cta .appstore-badge { width: 100%; }
  .appstore-badge { justify-content: center; }
  /* Not enough room beside a phone this size — the pills would sit on top of
     the gameplay art instead of framing it. */
  .move-pill { display: none; }
  /* At full width the phone nearly fills the screen, so the halo has to pull in
     or it pushes past the viewport edge. */
  .phone-glow { inset: -9% -5%; }
  .card-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-wrap { padding: 26px 20px; }
  .pro-card { padding: 32px 24px; }
  .privacy-diagram { padding: 24px 20px; }
  .phone-pair { flex-direction: column; align-items: center; gap: 22px; padding-top: 0; }
  .phone-pair .phone:first-child,
  .phone-pair .phone:last-child { transform: none; margin-left: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .marquee-group { gap: 22px; padding-right: 22px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .mark::after { transform: scaleX(1); }
}
