:root {
  --bg: #f6f4f8;
  --bg-elevated: #ffffff;
  --ink: #261c3f;
  --ink-muted: #5c5270;
  --ink-faint: #8a8198;
  --accent: #f76b30;
  --accent-2: #fe0271;
  --accent-soft: #ffe8df;
  --accent-ink: #ffffff;
  --line: rgba(38, 28, 63, 0.12);
  --hero-ink: #ffffff;
  --hero-muted: rgba(255, 255, 255, 0.78);
  --font-display: "Alpino", system-ui, sans-serif;
  --font-body: "Alpino", system-ui, sans-serif;
  --font-mono: "Alpino", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 2.5rem));
  --narrow: min(720px, calc(100% - 2.5rem));
  --radius: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3,
.brand,
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.75rem);
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  max-width: 22ch;
}

h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.wrap.narrow {
  width: var(--narrow);
}

.muted {
  color: var(--ink-muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero .eyebrow {
  color: #f76b30;
}

.section-intro {
  color: var(--ink-muted);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.footnote {
  font-size: 0.92rem;
  color: var(--ink-faint);
  margin: 1.25rem 0 1.5rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: transparent;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.site-header .brand {
  font-size: 1.35rem;
  margin: 0;
  text-decoration: none;
  color: var(--hero-ink);
}

.site-header.is-solid {
  background: rgba(246, 244, 248, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-logo {
  height: 1.15em;
  width: auto;
  display: block;
}

.site-header.is-solid .brand {
  color: var(--ink);
}

.site-header.is-solid .nav a {
  color: var(--ink-muted);
}

.site-header.is-solid .nav-toggle {
  color: var(--ink);
  border-color: var(--line);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--hero-muted);
}

.nav a:hover {
  color: var(--hero-ink);
}

.site-header.is-solid .nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: transparent;
  color: var(--hero-ink);
  border: 1px solid rgba(244, 247, 243, 0.35);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  inset: 3.5rem 1rem auto;
  z-index: 39;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease,
    color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn-sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
}

.btn-primary,
.hero .btn-primary {
  background: linear-gradient(100deg, #f76b30 0%, #fe0271 100%);
  color: #fff;
}

.btn-primary:hover,
.hero .btn-primary:hover {
  background: linear-gradient(100deg, #ff7d45 0%, #ff2d88 100%);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.hero .btn-ghost {
  border-color: rgba(244, 247, 243, 0.4);
  color: var(--hero-ink);
}

.btn-ghost:hover {
  border-color: var(--ink-muted);
  color: var(--ink);
}

.hero .btn-ghost:hover {
  border-color: var(--hero-ink);
  color: var(--hero-ink);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Hero — one composition, full-bleed media */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 0 4rem;
  overflow: hidden;
  color: var(--hero-ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #261c3f;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 600ms ease;
}

.hero-media.has-webgl .hero-canvas {
  opacity: 1;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 55% at 72% 30%, rgba(254, 2, 113, 0.28), transparent 55%),
    radial-gradient(50% 40% at 18% 70%, rgba(247, 107, 48, 0.22), transparent 50%),
    linear-gradient(160deg, #1c1430 0%, #261c3f 55%, #321a3a 100%);
  opacity: 1;
}

.hero-media.has-webgl .hero-fallback {
  opacity: 0;
  pointer-events: none;
}

.hero-scrub {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(38, 28, 63, 0.2) 0%, rgba(38, 28, 63, 0.35) 40%, #f6f4f8 100%),
    linear-gradient(90deg, rgba(38, 28, 63, 0.55) 0%, rgba(38, 28, 63, 0.12) 55%, transparent 78%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  margin-inline: auto;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.28em;
  font-size: clamp(3rem, 8vw, 5.5rem);
  margin-bottom: 0.15rem;
  color: var(--hero-ink);
}

.brand-mark .brand-logo {
  height: 0.82em;
}

.hero .eyebrow {
  margin-top: 0;
}

.lede {
  max-width: 38ch;
  color: var(--hero-muted);
  font-size: 1.12rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 {
  animation-delay: 90ms;
}
.delay-2 {
  animation-delay: 160ms;
}
.delay-3 {
  animation-delay: 240ms;
}
.delay-4 {
  animation-delay: 320ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Sections */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.section.problem,
.section.final-cta {
  background: var(--bg-elevated);
}

.pain-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: pain;
}

.pain-list li {
  counter-increment: pain;
  position: relative;
  padding: 1.25rem 0 1.25rem 3.2rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 1.15rem;
}

.pain-list li::before {
  content: counter(pain, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
}

.split {
  display: grid;
  gap: 2.5rem;
}

.feature-list,
.fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li,
.fit-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
}

.feature-list li:last-child,
.fit-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 2rem 0 2rem;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step-num {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
  padding-top: 0.2rem;
}

.steps p {
  color: var(--ink-muted);
  margin: 0;
}

/* Pod picker — interaction container */
.pod-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.pod-tab {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.pod-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pod-panel {
  min-height: 7.5rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
}

.pod-panel.is-active {
  animation: panel-in 320ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pod-panel[hidden] {
  display: none;
}

@keyframes panel-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.price {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.price span,
.price-inline span {
  font-size: 1.85rem;
  color: var(--ink);
  font-weight: 500;
}

.price-inline {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  margin: 1.25rem 0 1.5rem;
}

.table-scroll {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.98rem;
}

th,
td {
  text-align: left;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
  background: var(--accent-soft);
}

tbody th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  width: 22%;
}

td {
  color: var(--ink-muted);
}

tbody tr td:last-child {
  color: var(--accent);
  font-weight: 600;
}

.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  float: right;
  font-family: var(--font-mono);
  color: var(--accent);
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
}

.final-cta {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(254, 2, 113, 0.1), transparent 60%),
    var(--bg-elevated);
}

.config-hint {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.config-hint code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.95rem;
  background: #efeaf4;
}

.site-footer .brand {
  color: var(--ink);
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer-links a {
  text-decoration: none;
}

@media (min-width: 820px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .split {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .steps li {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .hero {
    align-items: center;
    padding-top: 7rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .pod-panel.is-active {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .hero-canvas {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
