/* ═══════════════════════════════════════════════════════════════
   QuietType Landing Page — Style
   Brand: dark face, copper accent, Instrument Serif + Satoshi
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Brand dark */
  --bg:       #0E0F12;
  --surface:  #17191E;
  --surface2: #1E2128;
  --ink:      #E8E6E3;
  --muted:    #8B8A86;
  --line:     rgba(232, 230, 227, 0.08);
  --copper:   #C4784A;
  --copper-glow: rgba(196, 120, 74, 0.15);

  /* Type */
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;
  --sp-4xl: 96px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Layout */
  --max-w: 960px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.6;
}

a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

/* ── Section Titles ─────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--sp-2xl);
  color: var(--ink);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  padding: var(--sp-4xl) 0 var(--sp-3xl);
  text-align: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}

.hero__tagline {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}

.hero__sub {
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 480px;
  margin: 0 auto var(--sp-xl);
  line-height: 1.7;
}

.hero__trust {
  margin-top: var(--sp-lg);
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ── Waitlist Form ──────────────────────────────────────────── */
.waitlist-form {
  max-width: 440px;
  margin: 0 auto;
}

.waitlist-form__row {
  display: flex;
  gap: var(--sp-sm);
}

.waitlist-form__input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}
.waitlist-form__input:focus {
  border-color: var(--copper);
}
.waitlist-form__input::placeholder {
  color: var(--muted);
}

.waitlist-form__btn {
  padding: 12px 24px;
  background: var(--copper);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s ease-out, opacity 0.2s;
}
.waitlist-form__btn:hover { opacity: 0.9; }
.waitlist-form__btn:active { transform: scale(0.97); }
.waitlist-form__btn:disabled { opacity: 0.6; cursor: wait; }

/* Honeypot field: visually removed, still in the DOM for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Inline success message (JS-enhanced submit) */
.waitlist-form__success {
  color: var(--copper);
  font-size: 1rem;
  font-weight: 500;
  padding: var(--sp-md) 0;
}

/* Audience segment */
.waitlist-form__segment {
  border: none;
  margin-top: var(--sp-md);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm) var(--sp-md);
  align-items: center;
}
.waitlist-form__segment-label {
  font-size: 0.75rem;
  color: var(--muted);
  width: 100%;
  margin-bottom: 2px;
}
.waitlist-form__segment label {
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.waitlist-form__segment input[type="radio"] {
  accent-color: var(--copper);
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.how {
  padding: var(--sp-4xl) 0;
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-xl);
  margin-bottom: var(--sp-3xl);
}

.step {
  text-align: center;
}

.step__num {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--sp-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.875rem;
  color: var(--copper);
  font-weight: 500;
}

.step__text {
  font-size: 0.9375rem;
  color: var(--ink);
}

/* HUD capsule mock (CSS only) */
.hud-mock {
  display: flex;
  justify-content: center;
}

.hud-mock__capsule {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: rgba(23, 25, 30, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.hud-mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hud-mock__bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}
.hud-mock__bars span {
  width: 2px;
  background: var(--copper);
  border-radius: 1px;
  animation: bar 0.8s ease-in-out infinite alternate;
}
.hud-mock__bars span:nth-child(1) { height: 6px; animation-delay: 0s; }
.hud-mock__bars span:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.hud-mock__bars span:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.hud-mock__bars span:nth-child(4) { height: 10px; animation-delay: 0.3s; }
.hud-mock__bars span:nth-child(5) { height: 7px; animation-delay: 0.4s; }

@keyframes bar {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.hud-mock__text {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── DIFFERENTIATION ────────────────────────────────────────── */
.diff {
  padding: var(--sp-4xl) 0;
  border-top: 1px solid var(--line);
}

.diff__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-xl);
}

.diff__card {
  padding: var(--sp-xl);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.diff__heading {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: var(--sp-sm);
  color: var(--ink);
}

.diff__card p {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--copper-glow);
  color: var(--copper);
  vertical-align: middle;
  margin-left: 6px;
}

/* ── PRICING ────────────────────────────────────────────────── */
.pricing {
  padding: var(--sp-4xl) 0;
  border-top: 1px solid var(--line);
}

.pricing__philosophy {
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-top: calc(var(--sp-2xl) * -1 + var(--sp-md));
  margin-bottom: var(--sp-2xl);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-xl);
  max-width: 680px;
  margin: 0 auto;
}

.pricing__card {
  padding: var(--sp-xl) var(--sp-xl) var(--sp-lg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing__card--pro {
  border-color: var(--copper);
}

.pricing__badge {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--copper);
  margin-bottom: var(--sp-sm);
  font-weight: 500;
}

.pricing__plan {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  margin-bottom: var(--sp-sm);
}

.pricing__price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--sp-lg);
}
.pricing__price-note {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
}

.pricing__features {
  list-style: none;
  margin-bottom: var(--sp-xl);
  flex: 1;
}
.pricing__features li {
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.pricing__features li:last-child { border-bottom: none; }
.pricing__features li::before {
  content: "✓ ";
  color: var(--copper);
}

.pricing__cta {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--copper);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: transform 0.1s ease-out, opacity 0.2s;
}
.pricing__cta:hover { opacity: 0.9; text-decoration: none; }
.pricing__cta:active { transform: scale(0.97); }

.pricing__future-price {
  text-align: center;
  margin-top: var(--sp-sm);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq {
  padding: var(--sp-4xl) 0;
  border-top: 1px solid var(--line);
}

.faq__list {
  max-width: 640px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-lg) 0;
}

.faq__item summary {
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "+";
  display: inline-block;
  width: 20px;
  color: var(--copper);
  font-weight: 400;
}
.faq__item[open] summary::before { content: "−"; }

.faq__item p {
  margin-top: var(--sp-sm);
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ── CTA Bottom ─────────────────────────────────────────────── */
.cta-bottom {
  padding: var(--sp-3xl) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  padding: var(--sp-2xl) 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Scroll fade-in (CSS only, optional) ────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .diff__card,
  .pricing__card,
  .faq__item {
    animation: fadeUp 0.5s ease both;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: var(--sp-3xl) 0 var(--sp-2xl); }

  .waitlist-form__row {
    flex-direction: column;
  }

  .waitlist-form__btn {
    width: 100%;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }

  .diff__grid {
    grid-template-columns: 1fr;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 var(--sp-md);
  }
}

@media (max-width: 380px) {
  .hero__title {
    font-size: 2rem;
  }
  .waitlist-form__segment label {
    font-size: 0.75rem;
  }
}
