/* ══════════════════════════════════════════════════════════
   EtsyBoost waitlist landing page — styles
   Palette: indigo (primary) / slate (neutrals) / amber (warm accent)
   Flat colors only — no gradients.
   ══════════════════════════════════════════════════════════ */

:root {
  --indigo-700: #4338ca;
  --indigo-600: #4f46e5;
  --indigo-500: #6366f1;
  --indigo-50:  #eef2ff;
  --slate-900:  #0f172a;
  --slate-700:  #334155;
  --slate-600:  #475569;
  --slate-500:  #64748b;
  --slate-200:  #e2e8f0;
  --slate-100:  #f1f5f9;
  --slate-50:   #f8fafc;
  --amber-500:  #f59e0b;
  --amber-100:  #fef3c7;
  --amber-800:  #92400e;
  --white:      #ffffff;
  --radius:     14px;
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md:  0 6px 20px -6px rgba(15, 23, 42, 0.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--slate-600);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--slate-900); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; margin-bottom: 0.6rem; }
h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.5rem; }
p  { margin-bottom: 0.75rem; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.6rem; border-radius: 10px;
  text-decoration: none; text-align: center;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--indigo-600); color: var(--white); }
.btn-primary:hover { background: var(--indigo-700); }
.btn-accent { background: var(--amber-500); color: var(--slate-900); }
.btn-accent:hover { background: #e8930a; }
.btn-sm { padding: 0.6rem 1.15rem; font-size: 0.92rem; }
.btn-block { display: block; width: 100%; margin-top: 1.1rem; }

/* ── Sticky nav ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.2s ease;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; color: var(--slate-900); text-decoration: none; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--indigo-600); color: var(--white);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--slate-600); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--slate-900); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--slate-900); border-radius: 2px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 96px 0 88px; text-align: center; background: var(--white); }
.hero-inner { max-width: 780px; margin: 0 auto; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-100); color: var(--amber-800);
  font-weight: 700; font-size: 0.85rem;
  padding: 0.45rem 1rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber-500); }
.hero h1 { margin-bottom: 1.1rem; }
.hero .sub { font-size: 1.18rem; color: var(--slate-600); max-width: 660px; margin: 0 auto 1.8rem; }

/* ── Email capture form ──────────────────────────────────── */
.waitlist-form {
  display: flex; gap: 10px; max-width: 480px; margin: 0 auto;
  flex-wrap: wrap;
}
.waitlist-form input[type="email"] {
  flex: 1 1 220px; font-family: var(--font); font-size: 1rem;
  padding: 0.85rem 1.1rem; border: 1.5px solid var(--slate-200);
  border-radius: 10px; background: var(--white); color: var(--slate-900);
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.waitlist-form input[type="email"]:focus {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}
.waitlist-form-dark input[type="email"] { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.08); color: #fff; }
.waitlist-form-dark input[type="email"]::placeholder { color: rgba(255,255,255,0.55); }
.waitlist-form-dark input[type="email"]:focus { border-color: var(--amber-500); box-shadow: 0 0 0 3px rgba(245,158,11,0.25); }
.form-note { flex-basis: 100%; font-size: 0.85rem; min-height: 1.2em; margin: 0.35rem 0 0; }
.form-note.error { color: #dc2626; }
.form-note.dev-warning { color: var(--amber-800); background: var(--amber-100); border-radius: 8px; padding: 0.5rem 0.8rem; }
.form-note.success { color: #15803d; font-weight: 600; }
.waitlist-form-dark .form-note.success { color: #86efac; }
.waitlist-form-dark .form-note.error { color: #fca5a5; }
.form-success {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; color: #15803d;
  background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 10px; padding: 1rem 1.4rem; max-width: 480px; margin: 0 auto;
}
.waitlist-form-dark .form-success { background: rgba(134,239,172,0.12); border-color: rgba(134,239,172,0.4); color: #86efac; }
.microcopy { font-size: 0.88rem; color: var(--slate-500); margin-top: 0.7rem; }
.trust-line { margin-top: 1.1rem; font-size: 0.95rem; font-weight: 600; color: var(--slate-700); }
.check { color: #16a34a; font-weight: 800; margin-right: 2px; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 84px 0; scroll-margin-top: 68px; }
.section-alt { background: var(--slate-50); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--indigo-700); margin-bottom: 0.7rem;
}
.section-sub { font-size: 1.1rem; max-width: 640px; margin-bottom: 2.4rem; }
.section h2 + .section-sub { margin-top: 0; }

/* ── Cards ───────────────────────────────────────────────── */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius); padding: 1.7rem;
  box-shadow: var(--shadow-sm);
}
.card p:last-child { margin-bottom: 0; }
.problem-close {
  margin-top: 2.2rem; text-align: center;
  font-size: 1.15rem; font-weight: 700; color: var(--slate-900);
}

/* ── Features grid ───────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--indigo-50); color: var(--indigo-600);
  margin-bottom: 1rem;
}

/* ── Steps ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--white);
  border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--slate-900); color: var(--white);
  font-weight: 800; font-size: 1rem; margin-bottom: 1rem;
}
.step p:last-child { margin-bottom: 0; }

/* ── Pricing ─────────────────────────────────────────────── */
.price-card {
  max-width: 520px; margin: 0 auto;
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: 18px; padding: 2.4rem; box-shadow: var(--shadow-md);
  text-align: center;
}
.price-name { font-weight: 700; color: var(--slate-900); font-size: 1.05rem; }
.price { margin: 0.6rem 0 1.2rem; }
.price-amount { font-size: 3.4rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.03em; }
.price-per { font-size: 1.1rem; color: var(--slate-500); font-weight: 600; }
.price-list { list-style: none; text-align: left; margin: 0 auto 1.4rem; max-width: 380px; }
.price-list li { padding: 0.45rem 0; font-size: 0.98rem; color: var(--slate-700); }
.founders {
  background: var(--amber-100); border-radius: 12px;
  padding: 1rem 1.2rem; margin-bottom: 0.4rem;
}
.founders p { margin: 0; color: var(--amber-800); font-size: 0.95rem; }
.price-fine { font-size: 0.82rem; color: var(--slate-500); margin-top: 0.9rem; margin-bottom: 0; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--slate-200); }
.faq-item:first-child { border-top: 1px solid var(--slate-200); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 1.05rem; font-weight: 700;
  color: var(--slate-900); text-align: left; padding: 1.25rem 0.25rem;
}
.faq-q:hover { color: var(--indigo-700); }
.faq-icon { font-size: 1.4rem; font-weight: 400; color: var(--indigo-600); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 0.25rem 1.35rem; margin: 0; }

/* ── Final CTA ───────────────────────────────────────────── */
.cta-section { background: var(--slate-900); }
.cta-inner { text-align: center; }
.cta-section h2 { color: var(--white); }
.cta-sub { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 1.8rem; }
.microcopy-dark { color: #94a3b8; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--slate-200); padding: 44px 0 28px; background: var(--white); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand p { font-size: 0.92rem; color: var(--slate-500); margin: 0.6rem 0 0; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--slate-600); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.footer-links a:hover { color: var(--slate-900); }
.footer-fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--slate-100); }
.footer-fine p { font-size: 0.82rem; color: var(--slate-500); margin: 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .cards-3, .features-grid, .steps { grid-template-columns: 1fr 1fr; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--slate-200); padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--slate-100); }
  .nav-toggle { display: flex; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
}

@media (max-width: 600px) {
  .cards-3, .features-grid, .steps { grid-template-columns: 1fr; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
  .nav-actions .btn { display: none; }
  .price-card { padding: 1.8rem 1.3rem; }
}
