/* Layout and structure only. Visual styling comes in the design pass. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 var(--space-3); }
p { margin: 0 0 var(--space-3); }
a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-3); }
.narrow { max-width: var(--container-narrow); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--space-3); top: var(--space-3); z-index: 100; background: var(--color-bg); padding: var(--space-2); }

.placeholder {
  display: grid; place-items: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text-muted);
}
.placeholder-phone { aspect-ratio: 9 / 18; max-width: 300px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button-primary { background: var(--color-primary); color: var(--color-primary-text); }
.button-ghost { border-color: var(--color-border); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  height: var(--header-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--space-4); }
.logo { font-weight: 800; font-size: var(--text-lg); text-decoration: none; }
.nav { display: flex; gap: var(--space-4); margin-left: auto; }
.nav a { text-decoration: none; color: var(--color-text-muted); }

/* ---------- Sections ---------- */
.section { padding: var(--space-7) 0; }
.section-alt { background: var(--color-surface); }
.section-title { font-size: var(--text-2xl); text-align: center; margin-bottom: var(--space-5); }

/* Hero */
.hero { padding: var(--space-6) 0 var(--space-7); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-6); align-items: center; }
.eyebrow { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.hero h1 { font-size: var(--text-3xl); }
.lead { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 32ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

/* How it works */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.step { text-align: center; }
.step-number {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; margin-bottom: var(--space-3);
  border-radius: 50%; border: 1px solid var(--color-border); font-weight: 700;
}

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.feature { padding: var(--space-4); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); }

/* Waitlist */
.cta-inner { text-align: center; max-width: var(--container-narrow); }
.cta h2 { font-size: var(--text-2xl); }
.waitlist-form { display: flex; gap: var(--space-2); max-width: 440px; margin: var(--space-4) auto 0; }
.waitlist-form input {
  flex: 1; min-width: 0;
  padding: var(--space-2) var(--space-3);
  font: inherit; color: inherit; background: var(--color-bg);
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
}
.form-message { min-height: 1.6em; margin-top: var(--space-3); color: var(--color-text-muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--color-border); padding: var(--space-3) 0; }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { margin: var(--space-2) 0 0; color: var(--color-text-muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding: var(--space-5) 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.footer-inner nav { display: flex; gap: var(--space-4); margin-left: auto; }
.footer-inner small { color: var(--color-text-muted); width: 100%; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .section { padding: var(--space-6) 0; }
  .waitlist-form { flex-direction: column; }
}

/* Logo mark next to the wordmark */
.logo { display: inline-flex; align-items: center; gap: var(--space-2); }
.logo img { width: 32px; height: 32px; }
