/* DoorFill landing page styles — no frameworks, no external assets */

:root {
  --brand: #12314e;        /* deep navy */
  --brand-door: #1d7a5f;   /* emerald door panel */
  --accent: #e8a33d;       /* warm amber */
  --accent-strong: #c98420;
  --bg: #f7f9fb;
  --bg-alt: #eef2f6;
  --surface: #ffffff;
  --text: #1c2733;
  --text-muted: #55606c;
  --border: #dbe2e9;
  --success: #1d7a5f;
  --error: #b3383d;
  --shadow: 0 1px 3px rgba(18, 49, 78, 0.08), 0 8px 24px rgba(18, 49, 78, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #6fa8d6;
    --brand-door: #34a583;
    --accent: #e8a33d;
    --accent-strong: #f0b45a;
    --bg: #0f161e;
    --bg-alt: #131c26;
    --surface: #1a2531;
    --text: #e6ecf2;
    --text-muted: #9aa7b4;
    --border: #2b3948;
    --success: #48b892;
    --error: #e07a7e;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 { line-height: 1.2; }

h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); text-align: center; }

.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0.75rem auto 0;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  padding: 0.6rem 1.25rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #24190a;
}

.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--text-muted); }

.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.btn-lg { padding: 0.8rem 1.75rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */

.hero {
  padding: 5.5rem 0 5rem;
  background:
    radial-gradient(60rem 30rem at 80% -20%, color-mix(in srgb, var(--brand-door) 14%, transparent), transparent),
    radial-gradient(50rem 25rem at 10% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent);
}

.hero-inner { text-align: center; max-width: 46rem; }

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  letter-spacing: -0.02em;
}

.subhead {
  margin: 1.25rem auto 0;
  max-width: 38rem;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Cards, steps, features ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.step { position: relative; }

.step-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
}

.step-icon, .feature-icon {
  width: 2rem;
  height: 2rem;
  color: var(--brand-door);
  margin-bottom: 0.9rem;
}

.step h3, .feature h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p, .feature p { font-size: 0.95rem; color: var(--text-muted); }

.grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }

.features { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 760px) {
  .steps, .features { grid-template-columns: 1fr; }
}

/* ---------- Pricing ---------- */

.pricing {
  grid-template-columns: repeat(2, minmax(0, 20rem));
  justify-content: center;
}

@media (max-width: 640px) {
  .pricing { grid-template-columns: 1fr; }
}

.price-card { text-align: center; position: relative; }

.price-featured { border-color: var(--accent); }

.badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #24190a;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
}

.price { margin: 0.75rem 0 1rem; }
.amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; }
.per { color: var(--text-muted); }

.price-list {
  list-style: none;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-list li { padding: 0.3rem 0; }

.trial-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  margin-top: 0.75rem;
  padding: 0 1.25rem;
}

#faq h2 { margin-bottom: 1.5rem; }

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

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  padding-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Waitlist form ---------- */

.waitlist { text-align: center; }

#waitlist-form { margin-top: 2rem; }

.form-row {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

#waitlist-email {
  flex: 1 1 16rem;
  max-width: 24rem;
  font: inherit;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
}

#waitlist-email:focus {
  outline: 2px solid var(--brand-door);
  outline-offset: 1px;
  border-color: transparent;
}

.form-message {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.form-message.success { color: var(--success); }
.form-message.error { color: var(--error); }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer a { color: inherit; }
.footer a:hover { color: var(--text); }

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
