:root {
  --bg: #fdf8f6;
  --fg: #1c1b1b;
  --fg-muted: #6f5a52;
  --brand: #442a22;
  --brand-hover: #2c160e;
  --surface: #f7f3f1;
  --rule: #e5e2e0;
  --error: #ba1a1a;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --store-badge-width: 180px;
  --store-badge-height: 60px;
}

html {
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
}

.font-display {
  font-family: var(--font-display);
}
.fg-muted {
  color: var(--fg-muted);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--brand);
  margin: 0;
}

.feature-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--brand);
  margin: 0;
}

@media (min-width: 768px) {
  .feature-h2 {
    font-size: 2rem;
  }
}

/* Waitlist form */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.waitlist-form input[type='email'] {
  font: inherit;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--fg);
}
.waitlist-form input[type='email']:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.waitlist-form button {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.7rem 1.1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: white;
  cursor: pointer;
}
.waitlist-form button:hover {
  background: var(--brand-hover);
}
.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .waitlist-form {
    flex-direction: row;
  }
  .waitlist-form input[type='email'] {
    flex: 1;
  }
}

.waitlist-status[data-state='error'] {
  color: var(--error);
}
.waitlist-status[data-state='success'] {
  color: var(--brand);
}

.store-cta {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: min(100%, calc(var(--store-badge-width) * 2 + 1rem));
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc((100% - 1rem) / 2);
  max-width: var(--store-badge-width);
  height: var(--store-badge-height);
  border-radius: 0.75rem;
  overflow: hidden;
}

.store-badge-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.store-badge {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
}

.store-badge-copy {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.feature-card {
  /* Soft brand-tinted halo behind the screenshot area (right column) */
  background:
    radial-gradient(ellipse at 85% 50%, rgba(68, 42, 34, 0.07), transparent 60%), var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 140px;
  align-items: center;
}
.feature-card img {
  width: 100%;
  height: auto;
  max-width: 140px;
  justify-self: end;
  /* Matches modern iOS screen corner radius */
  border-radius: 1.5rem;
  /* Layered shadow: short tight + long soft for grounded depth */
  box-shadow:
    0 4px 8px -2px rgba(68, 42, 34, 0.12),
    0 18px 36px -8px rgba(68, 42, 34, 0.2);
}
@media (min-width: 768px) {
  .feature-card {
    grid-template-columns: 1fr 200px;
    padding: 2.5rem;
    gap: 2rem;
  }
  .feature-card img {
    max-width: 200px;
    border-radius: 1.75rem;
    box-shadow:
      0 8px 12px -4px rgba(68, 42, 34, 0.14),
      0 28px 56px -12px rgba(68, 42, 34, 0.24);
  }
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.draft-banner {
  background: #fff4d6;
  border: 1px solid #d4c38a;
  color: #5c4300;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin: 0 0 2rem 0;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}
.prose h2 {
  margin-bottom: 0.75rem;
}
.prose h3 {
  color: var(--brand);
}
.prose a {
  color: var(--brand);
  text-decoration: underline;
}
.prose strong {
  color: var(--fg);
}
.prose code {
  background: var(--surface);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.925em;
}

.answer-card,
.section-card,
.cta-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}

.answer-card {
  padding: 1.25rem;
  border-left: 4px solid var(--brand);
}

.section-card {
  padding: 1.5rem;
}

.cta-card {
  padding: 2rem;
  background:
    radial-gradient(ellipse at 85% 30%, rgba(68, 42, 34, 0.08), transparent 55%), var(--surface);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.stat-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.55);
}

.timeline-list {
  counter-reset: training-step;
  list-style: none;
  padding: 0;
}

.timeline-list li {
  counter-increment: training-step;
  position: relative;
  padding-left: 3rem;
}

.timeline-list li::before {
  content: counter(training-step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
}

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

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

.faq-list summary {
  cursor: pointer;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.faq-list p {
  margin-top: 0.75rem;
}

.text-link {
  color: var(--brand);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .section-card {
    padding: 2rem;
  }

  .stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
