/* ==========================================================================
   KegelTrainerPro — premium marketing site
   Brand system ported from the Kegel Trainer app (by SmartTract)
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Core surfaces (from app KegelBrandColors) */
  --bg: #080b0a;
  --bg-deep: #06090a;
  --surface: #11150f;
  --surface-2: #161b16;

  /* Brand accents (exact app values) */
  --mint: #b9f56a;
  --mint-soft: #d6ff9b;
  --blue: #6ab7ff;
  --coral: #ff8d6a;
  --violet: #c694ff;

  /* Text */
  --text: #f4f8ee;
  --text-soft: #d7ddd2;
  --muted: #a8b0a9;
  --ink: #0a0f08;

  /* Lines + effects */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(185, 245, 106, 0.22);
  --glass: rgba(20, 26, 22, 0.55);
  --glass-strong: rgba(24, 30, 26, 0.82);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.32);
  --grad-brand: linear-gradient(96deg, var(--mint) 0%, #cfffb0 28%, var(--blue) 78%, var(--violet));

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --max: 1200px;

  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  line-height: 1.62;
  background: var(--bg);
  overflow-x: hidden;
}

/* ---- Animated aurora background (mirrors the app scaffold) -------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1410 0%, #0a0d14 60%, #06090a 100%);
}

.aurora span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.aurora .blob-mint {
  top: -8%;
  left: -6%;
  width: 46vw;
  height: 46vw;
  background: var(--mint);
  animation: drift-a 22s ease-in-out infinite;
}

.aurora .blob-violet {
  top: 18%;
  right: -10%;
  width: 42vw;
  height: 42vw;
  background: var(--violet);
  opacity: 0.42;
  animation: drift-b 26s ease-in-out infinite;
}

.aurora .blob-blue {
  bottom: -14%;
  left: 28%;
  width: 44vw;
  height: 44vw;
  background: var(--blue);
  opacity: 0.4;
  animation: drift-c 30s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50% { transform: translate3d(-7vw, 8vh, 0) scale(0.92); }
}

@keyframes drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(5vw, -6vh, 0) scale(1.1); }
}

/* fine grid overlay */
body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 70%);
}

/* vignette to keep text crisp over aurora */
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, rgba(4, 7, 6, 0.66) 100%);
}

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

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

::selection {
  background: rgba(185, 245, 106, 0.28);
  color: #fff;
}

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

.section-shell {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--mint);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mint), var(--blue));
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 28px, calc(var(--max) + 36px));
  margin: 14px auto 0;
  padding: 10px 14px 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(10, 14, 12, 0.62);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(185, 245, 106, 0.3), 0 0 26px rgba(185, 245, 106, 0.32);
}

.brand-name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name b {
  font-weight: 850;
}

.brand-name small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 650;
  transition: background 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: rgba(185, 245, 106, 0.1);
  color: var(--text);
}

.nav-links .nav-cta {
  margin-left: 6px;
  padding: 10px 18px;
  color: var(--ink);
  font-weight: 800;
  background: var(--grad-brand);
  box-shadow: 0 12px 28px rgba(120, 200, 120, 0.22);
}

.nav-links .nav-cta:hover {
  background: var(--grad-brand);
  filter: brightness(1.05);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(16, 22, 18, 0.85);
  color: var(--text);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 10px;
  background: var(--text);
  transition: transform 200ms ease, opacity 200ms ease;
}

.site-header.is-open .menu-button span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .menu-button span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  min-height: 60px;
  padding: 11px 22px 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(12, 16, 14, 0.7);
  color: var(--text);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
  border-color: rgba(185, 245, 106, 0.4);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.36);
}

.store-button svg {
  width: 26px;
  height: 26px;
  flex: none;
  fill: currentColor;
}

.store-button span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-button small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.store-button strong {
  font-size: 1.12rem;
  font-weight: 800;
}

.store-button.is-soon {
  cursor: default;
}

.store-button.is-soon::after {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(185, 245, 106, 0.14);
  color: var(--mint);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  content: "Soon";
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--mint);
}

.btn-text::after {
  content: "→";
  transition: transform 180ms ease;
}

.btn-text:hover::after {
  transform: translateX(4px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 7vw, 90px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(14, 19, 16, 0.7);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-badge b {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(185, 245, 106, 0.16);
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.hero h1 .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  max-width: 600px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-rating .stars {
  color: var(--mint);
  font-size: 1rem;
  letter-spacing: 2px;
}

.hero-rating b {
  color: var(--text);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  gap: 12px;
  margin: 0;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(8px);
}

.hero-metrics dt {
  margin-bottom: 4px;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-metrics dt.c-mint { color: var(--mint); }
.hero-metrics dt.c-blue { color: var(--blue); }
.hero-metrics dt.c-violet { color: var(--violet); }

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Phone visual */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 168px);
  align-items: center;
  gap: clamp(14px, 2.4vw, 26px);
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: -6% 2% -4% 6%;
  z-index: -1;
  content: "";
  border-radius: 40px;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(185, 245, 106, 0.18), transparent 70%),
    radial-gradient(55% 50% at 80% 80%, rgba(106, 183, 255, 0.18), transparent 70%);
}

.phone-frame {
  position: relative;
  justify-self: end;
  width: min(100%, 340px);
  aspect-ratio: 1080 / 2340;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 38px;
  background: linear-gradient(160deg, #1a1f1c, #0a0d0b);
  box-shadow: var(--shadow);
}

.phone-frame::before {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 2;
  width: 34%;
  height: 18px;
  content: "";
  border-radius: 0 0 12px 12px;
  background: #05080699;
  transform: translateX(-50%);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  object-fit: cover;
}

.hero-preview-stack {
  display: grid;
  gap: 16px;
  justify-self: start;
}

.preview-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: var(--shadow-soft);
}

.preview-card img {
  width: 100%;
  aspect-ratio: 9 / 11;
  object-fit: cover;
  object-position: top center;
}

.preview-card figcaption {
  padding: 9px 12px 11px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   Trust marquee
   ========================================================================== */
.trust-band {
  overflow: hidden;
  margin-top: 8px;
  border-block: 1px solid var(--line);
  background: rgba(9, 13, 11, 0.66);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.trust-track {
  display: flex;
  width: max-content;
  gap: 56px;
  padding: 22px 28px;
  animation: marquee 30s linear infinite;
}

.trust-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.trust-track span::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--mint);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Section headings
   ========================================================================== */
.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.routine-copy h2,
.cta-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-heading p,
.routine-copy p,
.cta-copy p {
  color: var(--text-soft);
  font-size: 1.06rem;
}

.feature-section,
.routine-section,
.faq-section,
.cta-section {
  padding: clamp(72px, 10vw, 130px) 0;
}

/* ==========================================================================
   Feature grid
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  transition: transform 220ms ease, border-color 220ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.feature-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: auto;
  place-items: center;
  border-radius: 15px;
  color: var(--ink);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-icon-mint { background: linear-gradient(145deg, var(--mint), #8fdb6a); }
.feature-icon-blue { background: linear-gradient(145deg, var(--blue), #bfe2ff); }
.feature-icon-violet { background: linear-gradient(145deg, var(--violet), #e3ccff); }
.feature-icon-coral { background: linear-gradient(145deg, var(--coral), #ffc3a8); }

.feature-card h3 {
  margin: 28px 0 10px;
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

/* ==========================================================================
   Showcase (real app screens)
   ========================================================================== */
.showcase {
  padding: clamp(72px, 10vw, 124px) 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(106, 183, 255, 0.06), transparent 46%);
}

.screen-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.screen-strip figure {
  margin: 0;
  transition: transform 220ms ease;
}

.screen-strip figure:hover {
  transform: translateY(-6px);
}

.screen-strip img {
  width: 100%;
  aspect-ratio: 1080 / 2340;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  object-fit: cover;
  object-position: top center;
  box-shadow: var(--shadow);
}

.screen-strip figcaption {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.screen-strip figcaption small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* ==========================================================================
   Routine / insights panel
   ========================================================================== */
.routine-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

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

.check-list li {
  position: relative;
  padding-left: 36px;
  color: var(--text-soft);
}

.check-list li::before {
  position: absolute;
  top: 0.1em;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 900;
  content: "\2713";
}

.routine-panel {
  padding: clamp(22px, 3.4vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 12% 8%, rgba(185, 245, 106, 0.12), transparent 60%),
    radial-gradient(70% 60% at 90% 92%, rgba(106, 183, 255, 0.12), transparent 60%),
    var(--glass-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.panel-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(198, 148, 255, 0.16);
  color: var(--violet);
  font-size: 0.74rem;
  font-weight: 800;
}

.signal-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.signal-row b {
  font-size: 1.9rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.signal-row b small {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  margin-bottom: 26px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--blue));
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.signal-grid div {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.signal-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.signal-grid b {
  display: block;
  margin-top: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.c-mint { color: var(--mint); }
.c-blue { color: var(--blue); }
.c-violet { color: var(--violet); }
.c-coral { color: var(--coral); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.faq-item {
  padding: 4px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  transition: border-color 180ms ease;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0;
  font-size: 1.04rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary::after {
  flex: none;
  color: var(--mint);
  font-size: 1.4rem;
  font-weight: 400;
  content: "+";
  transition: transform 200ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

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

/* ==========================================================================
   CTA / download
   ========================================================================== */
.cta-section .cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(32px, 5vw, 60px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(185, 245, 106, 0.14), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(198, 148, 255, 0.12), transparent 55%),
    var(--glass-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.cta-copy {
  max-width: 640px;
}

.cta-copy h2 {
  margin-bottom: 12px;
}

.cta-copy p {
  margin: 0;
}

.cta-actions {
  display: grid;
  gap: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 9, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 36px;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 56px 0 32px;
}

.footer-brand p {
  max-width: 320px;
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-store {
  display: flex;
  gap: 10px;
}

.footer-store a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(16, 22, 18, 0.7);
  color: var(--text-soft);
  transition: border-color 160ms ease, color 160ms ease;
}

.footer-store a:hover {
  border-color: var(--line-strong);
  color: var(--mint);
}

.footer-store svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-col h4 {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 11px;
  color: var(--text-soft);
  font-size: 0.95rem;
  transition: color 160ms ease;
}

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

.footer-bottom {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 22px 0 36px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0 0 8px;
  color: #7d857e;
  font-size: 0.84rem;
}

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-page {
  padding-bottom: 40px;
}

.legal-hero {
  padding: clamp(56px, 9vw, 104px) 0 30px;
}

.legal-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.legal-hero p {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.12rem;
}

.updated-date {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(185, 245, 106, 0.08);
  color: var(--mint);
  font-size: 0.84rem;
  font-weight: 800;
}

.legal-shell {
  width: min(100% - 40px, 900px);
  margin: 0 auto clamp(64px, 9vw, 110px);
}

.legal-card {
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 40px 0 12px;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--text-soft);
}

.legal-card a {
  color: var(--mint);
  font-weight: 700;
}

.legal-card ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.legal-card .callout {
  margin: 20px 0;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(185, 245, 106, 0.06);
}

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

/* ==========================================================================
   404
   ========================================================================== */
.not-found {
  display: grid;
  min-height: 80vh;
  width: min(100% - 40px, 680px);
  margin: 0 auto;
  place-content: center;
  gap: 18px;
  text-align: center;
}

.not-found .brand {
  justify-content: center;
  margin-bottom: 8px;
}

.not-found h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.not-found p {
  color: var(--text-soft);
}

.primary-link {
  display: inline-flex;
  justify-self: center;
  min-height: 48px;
  align-items: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--grad-brand);
  color: var(--ink);
  font-weight: 800;
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span,
  .trust-track {
    animation: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

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

  .screen-strip {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 220px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
  }

  .screen-strip figure {
    scroll-snap-align: start;
  }

  .routine-section {
    grid-template-columns: 1fr;
  }

  .cta-section .cta-card {
    grid-template-columns: 1fr;
  }

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(9, 13, 11, 0.97);
    backdrop-filter: blur(20px);
  }

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

  .nav-links a {
    text-align: center;
  }

  .nav-links .nav-cta {
    margin: 4px 0 0;
  }

  .menu-button {
    display: block;
  }

  .hero-actions,
  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr;
  }

  .store-button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .hero-metrics div {
    padding: 14px 12px;
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .hero-preview-stack {
    display: none;
  }

  .phone-frame {
    justify-self: center;
    width: min(80%, 300px);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 420px) {
  .brand-name b { font-size: 0.95rem; }
  .hero-metrics dt { font-size: 1.4rem; }
  .legal-card { border-radius: 18px; }
}
