:root {
  --page: #f1f2f4;
  --card: #ffffff;
  --ink: #121212;
  --night: #160f08;
  --panel: #0a0a0b;
  --muted: rgba(0, 0, 0, 0.6);
  --hairline: #e4e6ea;
  --accent: #00786a;
  --teal: #19b7a5;
  --teal-light: #2fd4c0;
  --sand: #dcb884;
  --pill-ink: #160f08;
  --glow: 0 8px 28px rgba(25, 183, 165, 0.45);
  --on-dark: #ffffff;
  --on-dark-dim: rgba(255, 255, 255, 0.72);
  --dark-hairline: rgba(255, 255, 255, 0.16);
  --display: "Roboto Condensed", "Arial Narrow", "Inter", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-card: 18px;
  --r-panel: 28px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--page);
}

.container {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
}

h1 {
  font-size: clamp(2.9rem, 7.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
}

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

/* Kickers */
.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.kicker-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--dark-hairline);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--on-dark-dim);
  margin-bottom: 2rem;
}

.kicker-chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(25, 183, 165, 0.9);
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--teal) 100%);
  color: var(--pill-ink);
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  padding: 1.05rem 2.1rem;
  border-radius: 999px;
  box-shadow: var(--glow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(25, 183, 165, 0.55);
}

.btn:active {
  transform: translateY(0);
}

.btn-small {
  padding: 0.55rem 1.15rem;
  font-size: 0.9375rem;
  box-shadow: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
  box-shadow: inset 0 0 0 1px var(--dark-hairline);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

/* Header */
.site-header {
  background: var(--night);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.logo-lockup {
  height: 2.75rem;
  width: auto;
  display: block;
}

.site-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.site-header nav a {
  white-space: nowrap;
}

.site-header nav a:not(.btn) {
  color: var(--on-dark-dim);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.site-header nav a:not(.btn):hover {
  color: var(--on-dark);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-lede {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 2rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--night);
  background-image: radial-gradient(78% 64% at 50% 40%, rgba(8, 6, 3, 0.35), rgba(22, 15, 8, 0) 80%);
  color: var(--on-dark);
  padding: 6.5rem 0 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.aurora {
  position: absolute;
  inset: -20% -10% 0;
  z-index: 0;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}

.aurora .a1 {
  width: 48vw;
  height: 48vw;
  left: -10vw;
  top: -8vw;
  background: radial-gradient(circle at 30% 30%, #19b7a5, transparent 62%);
  animation: drift1 22s ease-in-out infinite alternate;
}

.aurora .a2 {
  width: 42vw;
  height: 42vw;
  right: -8vw;
  top: 6vw;
  background: radial-gradient(circle at 60% 40%, #dcb884, transparent 60%);
  animation: drift2 26s ease-in-out infinite alternate;
}

@keyframes drift1 {
  to {
    transform: translate(6vw, 5vw);
  }
}

@keyframes drift2 {
  to {
    transform: translate(-5vw, 7vw);
  }
}

.hero h1 {
  max-width: 50rem;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: clamp(1.125rem, 1.7vw, 1.3125rem);
  color: var(--on-dark-dim);
  max-width: 42rem;
}

.cta-note {
  color: var(--on-dark-dim);
  font-size: 0.9375rem;
  margin-top: 1rem;
}

/* Stat band (bottom of hero) */
.stat-band {
  list-style: none;
  padding: 0;
  margin: 4.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--dark-hairline);
}

.stat-band li {
  padding: 2.5rem 1.75rem 3rem;
  border-left: 1px solid var(--dark-hairline);
}

.stat-band li:first-child {
  border-left: none;
  padding-left: 0;
}

.stat-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.stat-label {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: var(--on-dark-dim);
  max-width: 16rem;
}

/* Cards */
.card-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card-grid li {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 1.75rem;
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 2px 4px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card-grid li:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px #d3d8dd,
    0 10px 24px rgba(0, 0, 0, 0.08);
}

.card-grid li p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Steps — numbered because the process is a sequence */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2.5rem;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.steps li p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.founding-note {
  font-size: 0.9375rem;
  max-width: 42rem;
  margin: -1rem 0 2rem;
  padding: 0.625rem 1rem;
  border-left: 3px solid var(--sand);
  background: rgba(220, 184, 132, 0.12);
}

/* Diagnostic panel — the signature element */
.panel {
  margin-top: 2.5rem;
  background: var(--panel);
  color: var(--on-dark);
  border-radius: var(--r-panel);
  padding: clamp(2rem, 4.5vw, 3.5rem);
  box-shadow: 0 30px 80px rgba(10, 10, 12, 0.35);
}

.panel-kicker {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-dark-dim);
  margin-bottom: 1.25rem;
}

.panel h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.panel-lede {
  color: var(--on-dark-dim);
  max-width: 34rem;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 1.375rem;
  margin-top: 1.875rem;
  padding: 1.25rem 1.5rem;
  border-radius: 15px;
  max-width: 34rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.price-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(2.4rem, 3.5vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.price-note {
  color: var(--on-dark-dim);
  font-size: 0.9375rem;
}

.callout {
  margin-top: 1.875rem;
  padding: 1.25rem 1.5rem;
  max-width: 34rem;
  border-left: 4px solid var(--sand);
  background: linear-gradient(90deg, rgba(220, 184, 132, 0.28), rgba(220, 184, 132, 0));
  font-size: 0.9375rem;
}

.panel .cta-row {
  margin-top: 2rem;
}

/* Tier cards under the panel */
.tiers {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.price {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.price span {
  font-family: var(--body);
  font-style: normal;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 400;
}

.timeline {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

/* About */
.prose {
  max-width: 44rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}

.prose p {
  margin-bottom: 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.faq-list {
  max-width: 46rem;
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow:
    inset 0 0 0 1px var(--hairline),
    0 2px 4px rgba(0, 0, 0, 0.06);
  padding: 0 1.5rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.125rem 2rem 1.125rem 0;
  position: relative;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--accent);
}

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

.faq-list details p {
  color: var(--muted);
  font-size: 0.9375rem;
  padding-bottom: 1.25rem;
  max-width: 40rem;
}

/* Final CTA */
.final-cta {
  background: var(--night);
  color: var(--on-dark);
  text-align: center;
}

.final-cta p {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--on-dark-dim);
}

.final-cta .cta-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 0.375rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.logo-icon {
  height: 2rem;
  width: auto;
  flex-shrink: 0;
}

/* Legal pages (privacy.html, terms.html) */
.legal {
  padding: 4rem 0 5rem;
}

.legal .container {
  max-width: 44rem;
}

.legal h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.legal h2 {
  font-size: 1.375rem;
  margin: 2.25rem 0 0.625rem;
}

.legal p {
  margin-bottom: 1rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.375rem;
}

.legal li {
  margin-bottom: 0.375rem;
}

/* Hero entrance — one-time staggered rise on load */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .kicker-chip,
.hero h1,
.hero .lede,
.hero .cta-row,
.hero .cta-note,
.hero .stat-band {
  animation: rise-in 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero h1 {
  animation-delay: 0.08s;
}

.hero .lede {
  animation-delay: 0.16s;
}

.hero .cta-row {
  animation-delay: 0.24s;
}

.hero .cta-note {
  animation-delay: 0.3s;
}

.hero .stat-band {
  animation-delay: 0.4s;
}

/* Scroll reveals — progressive enhancement, Chromium-only for now */
@supports (animation-timeline: view()) {
  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .card-grid li,
  .steps li,
  .panel,
  .prose,
  .faq-list,
  .final-cta .container {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}

/* Motion opt-out */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .aurora i,
  .hero .kicker-chip,
  .hero h1,
  .hero .lede,
  .hero .cta-row,
  .hero .cta-note,
  .hero .stat-band,
  .card-grid li,
  .steps li,
  .panel,
  .prose,
  .faq-list,
  .final-cta .container {
    animation: none;
  }

  .btn,
  .card-grid li,
  .site-header nav a:not(.btn) {
    transition: none;
  }
}

/* Mobile */
@media (max-width: 40rem) {
  section {
    padding: 3.25rem 0;
  }

  .hero {
    padding-top: 4rem;
  }

  .stat-band {
    grid-template-columns: 1fr;
    margin-top: 3rem;
  }

  .stat-band li {
    border-left: none;
    border-top: 1px solid var(--dark-hairline);
    padding: 1.5rem 0;
  }

  .stat-band li:first-child {
    border-top: none;
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
  }

  .site-header nav {
    gap: 0.75rem 1rem;
  }

  .logo-lockup {
    height: 2.25rem;
  }
}
