/* ==========================================================================
   GainMacro — Shared Stylesheet
   Aesthetic: "Performance Readout" — a HUD-inspired command-center feel
   for athletes who track every number. Angular glass panels, electric-green
   instrumentation glow, monospace data readouts, filmic grain.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Outfit:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #0a0a0f;
  --bg-raised: #101018;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f6f4;
  --text-dim: rgba(244, 246, 244, 0.66);
  --text-faint: rgba(244, 246, 244, 0.4);
  --accent: #00ff87;
  --accent-dim: rgba(0, 255, 135, 0.5);
  --accent-glow: rgba(0, 255, 135, 0.18);
  --accent-ink: #04140d;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Space Mono', monospace;

  --container: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---- Atmosphere: grain + gradient mesh -----------------------------------
   A fixed-position layered backdrop sits behind all content: a slowly
   drifting radial-glow mesh for depth, plus an SVG-noise grain overlay so
   the near-black surfaces never feel flat or "rendered". -------------------*/

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 42% at 18% 20%, rgba(0, 255, 135, 0.13), transparent 60%),
    radial-gradient(46% 50% at 82% 12%, rgba(0, 200, 255, 0.07), transparent 65%),
    radial-gradient(50% 55% at 50% 100%, rgba(0, 255, 135, 0.08), transparent 70%);
  filter: blur(40px);
  animation: meshDrift 28s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.02); }
}

.grain {
  position: fixed;
  inset: -100px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Layout helpers ------------------------------------------------------*/
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-glow);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-top: 0.6rem;
}

.section-head p {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 52ch;
}

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

/* ---- Buttons --------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(0, 255, 135, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -8px rgba(0, 255, 135, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ---- Navigation -----------------------------------------------------------*/
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.logo-mark {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 16px 2px var(--accent-glow);
}

.logo .accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.4rem, 3vw, 2.4rem);
}

.nav-links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px 1px var(--accent-glow);
  transition: right 0.32s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  right: 0;
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  right: 0;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta .btn {
  padding: 0.7em 1.5em;
  font-size: 0.85rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.3s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem clamp(1.25rem, 6vw, 2rem) 1.5rem;
    background: rgba(8, 8, 12, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    display: none;
  }
}

/* ---- Glass surfaces -------------------------------------------------------
   Cards use a single clipped corner (a recurring "instrument panel" motif)
   plus backdrop blur, soft inner highlight and a hover-triggered glow ring. */
.glass {
  background: linear-gradient(155deg, var(--surface), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 60px -30px rgba(0, 0, 0, 0.7);
  position: relative;
}

.glass--cut {
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  border-radius: 4px;
}

.glass--cut::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, transparent 50%, var(--border) 50.5%);
  pointer-events: none;
}

/* ---- Hero ------------------------------------------------------------------*/
.hero {
  padding-block: clamp(5rem, 13vw, 9rem) clamp(3rem, 8vw, 6rem);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  text-transform: uppercase;
}

.hero-copy h1 .line {
  display: block;
  overflow: hidden;
}

.hero-copy h1 .line span {
  display: inline-block;
  animation: riseIn 0.9s var(--ease) backwards;
}

.hero-copy h1 .line:nth-child(1) span { animation-delay: 0.05s; }
.hero-copy h1 .line:nth-child(2) span { animation-delay: 0.16s; color: var(--accent); }
.hero-copy h1 .line:nth-child(3) span { animation-delay: 0.27s; }

@keyframes riseIn {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.hero-copy .eyebrow {
  margin-bottom: 1.4rem;
}

.hero-copy p.lede {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 50ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.4rem;
}

.hero-stats {
  display: flex;
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: 3.2rem;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--accent);
}

.hero-stats div span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---- Phone mockup ----------------------------------------------------------*/
.phone-stage {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone {
  width: min(290px, 78vw);
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(165deg, #14151b, #0b0c10);
  border: 1px solid var(--border-strong);
  border-radius: 46px;
  padding: 14px;
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 90px -10px var(--accent-glow);
  transform: rotate3d(0.4, -1, 0, 16deg);
  animation: floatPhone 7s ease-in-out infinite;
  position: relative;
}

@keyframes floatPhone {
  0%, 100% { transform: rotate3d(0.4, -1, 0, 16deg) translateY(0); }
  50%      { transform: rotate3d(0.4, -1, 0, 13deg) translateY(-18px); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(180deg, #0d1410 0%, #0a0a0f 60%);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  translate: -50% 0;
  width: 84px;
  height: 22px;
  background: #050507;
  border-radius: 14px;
  z-index: 3;
}

.phone-ui {
  padding: 52px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.phone-ring {
  width: 118px;
  height: 118px;
  margin-inline: auto;
  border-radius: 50%;
  background:
    conic-gradient(var(--accent) 0deg 252deg, rgba(255, 255, 255, 0.08) 252deg 360deg);
  display: grid;
  place-items: center;
  animation: ringSpin 9s linear infinite;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.phone-ring::after {
  content: '2,140';
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #0b0c10;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text);
  animation: ringSpin 9s linear infinite reverse;
}

.phone-bars {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: auto;
}

.phone-bars .bar {
  height: 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.phone-bars .bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  box-shadow: 0 0 10px var(--accent-glow);
  animation: fillBar 2.4s var(--ease) forwards;
  animation-delay: 0.6s;
}

.phone-bars .bar:nth-child(2) i { background: #5fe0ff; animation-delay: 0.8s; }
.phone-bars .bar:nth-child(3) i { animation-delay: 1s; }

@keyframes fillBar {
  from { width: 0; }
}

.phone-bars .bar:nth-child(1) i { width: 82%; }
.phone-bars .bar:nth-child(2) i { width: 64%; }
.phone-bars .bar:nth-child(3) i { width: 91%; }

.phone-chip {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  background: rgba(0, 255, 135, 0.06);
}

/* ---- Feature cards ---------------------------------------------------------*/
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.feature-card {
  padding: 2.1rem 1.9rem;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s var(--ease);
}

.feature-card:hover {
  transform: translateY(-7px);
  border-color: var(--accent-dim);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 36px 70px -30px rgba(0, 0, 0, 0.75),
    0 0 60px -16px var(--accent-glow);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.4rem;
  border-radius: 14px;
  background: rgba(0, 255, 135, 0.08);
  border: 1px solid var(--border);
  margin-bottom: 1.4rem;
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}

.feature-card:hover .feature-icon {
  transform: scale(1.08) rotate(-6deg);
  background: rgba(0, 255, 135, 0.16);
}

.feature-card h3 {
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  text-transform: none;
}

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

@media (max-width: 920px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stage { order: -1; }
}

/* ---- Pricing ---------------------------------------------------------------*/
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.price-card:hover {
  transform: translateY(-6px);
}

.price-card--featured {
  border-color: var(--accent-dim);
  background: linear-gradient(160deg, rgba(0, 255, 135, 0.09), var(--surface) 55%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 90px -30px rgba(0, 255, 135, 0.16);
}

@media (min-width: 760px) {
  .price-card--featured {
    transform: scale(1.045);
  }
  .price-card--featured:hover {
    transform: scale(1.045) translateY(-6px);
  }
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  box-shadow: 0 8px 28px -6px rgba(0, 255, 135, 0.6);
  white-space: nowrap;
}

.price-name {
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text-faint);
}

.price-card--featured .price-name {
  color: var(--accent);
}

.price-amount {
  margin-top: 0.7rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 2.9rem);
  font-weight: 800;
}

.price-amount span {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-faint);
  letter-spacing: 0;
}

.price-tagline {
  margin-top: 0.9rem;
  color: var(--text-dim);
  font-size: 0.96rem;
  min-height: 3.2em;
}

.price-list {
  margin-top: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.price-list li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.price-list li strong {
  color: var(--text);
  font-weight: 500;
}

.price-list li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 0.5em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: 0 0 8px 1px var(--accent-glow);
}

.price-list li.divider {
  margin-top: 0.2rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.price-list li.divider::before {
  display: none;
}

.price-card .btn {
  margin-top: 2rem;
}

.pricing-footnote {
  margin-top: 3rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.pricing-footnote small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .price-card--featured,
  .price-card--featured:hover { transform: none; }
}

/* ---- Support: sub-tabs ------------------------------------------------------*/
.subtabs {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.4rem;
  margin-bottom: 2.6rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  flex-wrap: wrap;
}

.subtab-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65em 1.5em;
  border-radius: 999px;
  color: var(--text-dim);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.subtab-btn.is-active {
  color: var(--accent-ink);
  background: var(--accent);
}

.subtab-panel {
  display: none;
}

.subtab-panel.is-active {
  display: block;
  animation: panelIn 0.5s var(--ease);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- FAQ accordion -----------------------------------------------------------*/
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 760px;
}

.faq-item {
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}

.faq-item.is-open {
  border-color: var(--accent-dim);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 1.7rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
}

.faq-q .faq-index {
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-right: 0.9rem;
}

.faq-icon {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.faq-icon::before {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  translate: 0 -50%;
}

.faq-icon::after {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  translate: -50% 0;
}

.faq-item.is-open .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}

.faq-a-inner {
  padding: 0 1.7rem 1.6rem 1.7rem;
  color: var(--text-dim);
  font-size: 0.97rem;
  max-width: 64ch;
}

/* ---- Legal copy (privacy / terms) --------------------------------------------*/
.legal {
  max-width: 760px;
}

.legal h3 {
  font-size: 1.2rem;
  margin-top: 2.2rem;
  margin-bottom: 0.7rem;
  text-transform: none;
  color: var(--accent);
}

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

.legal p, .legal li {
  color: var(--text-dim);
  font-size: 0.97rem;
  margin-bottom: 0.85rem;
}

.legal ul {
  padding-left: 1.4rem;
}

.legal li {
  list-style: none;
  position: relative;
  padding-left: 1.3rem;
}

.legal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.legal .updated {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4em 1.1em;
}

/* ---- CTA band ------------------------------------------------------------*/
.cta-band {
  padding: clamp(2.6rem, 7vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 50% 100%, var(--accent-glow), transparent 70%);
  opacity: 0.6;
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
}

.cta-band p {
  margin-top: 0.9rem;
  color: var(--text-dim);
  max-width: 56ch;
  margin-inline: auto;
}

.cta-band .hero-cta {
  justify-content: center;
  margin-top: 2rem;
}

/* ---- Footer ----------------------------------------------------------------*/
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.6rem;
  margin-top: clamp(3rem, 8vw, 5rem);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.footer-inner .logo {
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  font-size: 0.88rem;
  color: var(--text-faint);
}

.footer-links a {
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* ---- Page entrance fade ----------------------------------------------------*/
body {
  animation: pageFade 0.6s var(--ease);
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Scrollbar (webkit) -----------------------------------------------------*/
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-dim);
}
