:root {
  --bg: #f3f0ea;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: #fffaf2;
  --panel-dark: #122033;
  --panel-dark-soft: #1b2d45;
  --text: #1d2430;
  --muted: #5d6777;
  --line: rgba(18, 32, 51, 0.12);
  --accent: #b93a2f;
  --accent-deep: #8b241b;
  --accent-soft: rgba(185, 58, 47, 0.12);
  --success: #0f8d68;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(18, 32, 51, 0.10);
  --shadow-sm: 0 8px 24px rgba(18, 32, 51, 0.08);
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(185, 58, 47, 0.10), transparent 22rem),
    radial-gradient(circle at 80% 8%, rgba(15, 141, 104, 0.08), transparent 16rem),
    linear-gradient(180deg, #faf7f2 0%, var(--bg) 42%, #ece6dc 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.section {
  margin-top: 5rem;
}

.section-copy {
  max-width: 44rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  max-width: 13ch;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  max-width: 16ch;
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

p {
  margin: 0;
}

.lead,
.muted,
.section-copy p,
.card p,
.proof-card p,
.faq-item p,
.waitlist-copy p,
.footer-note {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ─── Header ─── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(243, 240, 234, 0.72);
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-bottom: 1px solid rgba(18, 32, 51, 0.06);
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.header-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.72);
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ─── Buttons ─── */
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease, border-color 200ms ease;
  cursor: pointer;
}

.button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff8f4;
  box-shadow: 0 12px 28px rgba(137, 36, 27, 0.22);
}

.button-secondary {
  background: rgba(255, 250, 242, 0.7);
  border-color: var(--line);
  color: var(--text);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(137, 36, 27, 0.30);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* ─── Hero ─── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 2.5rem;
  min-height: calc(100vh - 4rem);
}

.hero-copy .lead {
  max-width: 38rem;
  margin-top: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 2rem;
}

.hero-actions .button {
  min-width: 14rem;
}

.hero-helper {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.proof-strip .pill {
  font-weight: 600;
  font-size: 0.8rem;
}

/* ─── Hero Panel ─── */
.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.85), transparent 20rem),
    linear-gradient(145deg, rgba(255, 248, 242, 0.6), rgba(18, 32, 51, 0.08)),
    #e8dfd2;
  box-shadow: var(--shadow);
  min-height: 32rem;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
}

.hero-panel::before {
  width: 16rem;
  height: 16rem;
  top: -4rem;
  right: -4rem;
  background: rgba(185, 58, 47, 0.10);
}

.hero-panel::after {
  width: 10rem;
  height: 10rem;
  left: -2rem;
  bottom: -2rem;
  background: rgba(15, 141, 104, 0.10);
}

.panel-stack {
  position: relative;
  display: grid;
  gap: 1rem;
  z-index: 1;
}

/* ─── Shared Card Styles ─── */
.panel-card,
.card,
.proof-card,
.faq-item,
.waitlist-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.card:hover,
.proof-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.panel-card {
  padding: 1.35rem;
  background: rgba(255, 250, 242, 0.8);
}

.panel-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.panel-card p:last-child {
  margin-top: 0.5rem;
}

/* ─── Stat Row ─── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 5rem;
}

.card,
.proof-card,
.faq-item {
  padding: 1.5rem;
}

.card h3 {
  margin-top: 0.3rem;
}

.card p:last-child {
  margin-top: 0.5rem;
}

/* ─── Grids ─── */
.problem-grid,
.benefit-grid,
.proof-grid,
.faq-grid,
.waitlist-shell {
  display: grid;
  gap: 1rem;
}

.problem-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  margin-top: 1.6rem;
}

.problem-card {
  background: #fff3f1;
  border-color: rgba(185, 58, 47, 0.18);
}

.solution-card {
  background: linear-gradient(145deg, var(--panel-dark) 0%, var(--panel-dark-soft) 100%);
  color: #f6f7fb;
}

.solution-card:hover {
  transform: none;
}

.solution-card p,
.solution-card li {
  color: rgba(246, 247, 251, 0.86);
}

.solution-card ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.solution-card li {
  margin-top: 0.3rem;
}

.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.proof-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

/* ─── Steps ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.step-number {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

/* ─── Waitlist Form ─── */
.waitlist-shell {
  grid-template-columns: 0.95fr 1.05fr;
  margin-top: 1.6rem;
  overflow: hidden;
}

.waitlist-copy,
.waitlist-form-wrap {
  padding: 2rem;
}

.waitlist-copy {
  background: linear-gradient(160deg, var(--panel-dark) 0%, var(--panel-dark-soft) 100%);
  color: #f7f8fb;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.waitlist-copy p,
.waitlist-copy li {
  color: rgba(247, 248, 251, 0.84);
}

.waitlist-copy ul {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.waitlist-copy li {
  margin-top: 0.3rem;
}

.scarcity-box {
  margin-top: 1.3rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(185, 58, 47, 0.16);
  color: #fff5f2;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.5;
}

.waitlist-form-wrap {
  background: rgba(255, 250, 242, 0.92);
}

/* ─── Form ─── */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  min-height: 3rem;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-note,
.checkbox-group {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.checkbox-group input {
  margin-top: 0.25rem;
  accent-color: var(--accent);
}

.checkbox-group a {
  color: var(--accent);
  text-decoration: underline;
}

.success-msg {
  display: none;
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 12px;
  background: rgba(15, 141, 104, 0.12);
  color: var(--success);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ─── FAQ ─── */
.faq-grid {
  margin-top: 1.6rem;
}

.faq-item {
  margin-top: 0.6rem;
  transition: background 200ms ease;
}

.faq-item[open] {
  background: var(--surface-strong);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

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

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

.faq-item p {
  margin-top: 0.8rem;
}

/* ─── Footer ─── */
footer {
  margin-top: 5rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links a {
  transition: color 180ms ease;
}

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

.footer-note {
  max-width: 54rem;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.88rem;
}

/* ─── Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

.delay-1 {
  transition-delay: 80ms;
}

.delay-2 {
  transition-delay: 160ms;
}

/* ─── Loading Spinner ─── */
.button .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 600ms linear infinite;
  margin-right: 0.5rem;
}

.button.is-loading .spinner {
  display: inline-block;
}

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

/* ─── Responsive: Tablet ─── */
@media (max-width: 980px) {
  .hero,
  .problem-grid,
  .waitlist-shell {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .proof-grid,
  .steps,
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-panel {
    min-height: auto;
  }

  h1 {
    max-width: none;
  }

  h2 {
    max-width: none;
  }
}

/* ─── Responsive: Mobile ─── */
@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 1.5rem);
  }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    background: transparent;
    border-bottom: none;
    margin: 0;
    padding: 1rem 0;
  }

  .header-meta {
    justify-content: flex-start;
  }

  .hero {
    padding: 1.5rem 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-secondary {
    width: 100%;
    justify-content: center;
  }

  .section {
    margin-top: 3.5rem;
  }

  .benefit-grid,
  .proof-grid,
  .steps,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .waitlist-copy,
  .waitlist-form-wrap {
    padding: 1.5rem;
  }

  .card,
  .proof-card,
  .faq-item {
    padding: 1.2rem;
  }

  .panel-card strong {
    font-size: 1.5rem;
  }

  .proof-strip {
    gap: 0.5rem;
  }

  .proof-strip .pill {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
}

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

  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
