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

/* Screen-reader only (visually hidden but accessible) */
.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;
}

:root {
  --bg:        #0b0f1a;   /* deep navy */
  --bg-card:   #131929;   /* slightly lighter navy */
  --text:      #e8eaf0;   /* off-white — contrast vs bg: ~14.8:1 ✓ (WCAG AAA) */
  --text-muted:#8892a4;   /* muted slate — contrast vs bg: ~5.65:1 ✓ (WCAG AA) */
  --accent:    #f0b429;   /* amber/gold */
  --accent-h:  #f5c842;   /* lighter amber for hover */
  --border:    #1e2638;
  --radius:    8px;
  --font:      system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout ─── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Shared button ─── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s;
  min-height: 44px; /* touch target — WCAG 2.5.5 */
  line-height: 1.4;
}
.btn-primary {
  background: var(--accent);
  color: #0b0f1a;
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── Hero ─── */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
  text-align: center;
  /* subtle radial gradient lifts the flat navy */
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(240,180,41,.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(30,38,56,.8) 0%, transparent 60%),
    var(--bg);
  position: relative;
}

/* amber accent divider between hero and features */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

/* ─── Eyebrow — premium feel ─── */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;  /* wider spacing = more premium */
  font-size: .8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero h1 {
  /* starts at 1.8rem on narrow (375px) for clean wrapping */
  font-size: clamp(1.8rem, 5vw, 3.25rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: var(--text);
}
.subheadline {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* ─── Sections ─── */
section { padding: 5rem 0; }
section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
}

/* ─── Features section heading alignment ─── */
.features h2, .mockup-section h2 {
  text-align: center;
}

/* ─── Features ─── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  /* ensure no horizontal overflow on narrow viewports */
  min-width: 0;
}
.feature-icon { font-size: 1.5rem; flex-shrink: 0; }
.feature-list div { min-width: 0; }  /* flex child needs this to allow text wrapping */
.feature-list strong { display: block; margin-bottom: .25rem; color: var(--text); }
.feature-list p { color: var(--text-muted); font-size: .9rem; }

/* inline CTA at end of features */
.features-cta-wrap {
  margin-top: 2.5rem;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(240,180,41,.04);
}
.features-cta {
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: .01em;
  transition: opacity .15s;
}
.features-cta:hover { opacity: .8; }
.features-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ─── Email Mockup ─── */
.email-card {
  background: #1a2035;
  border: 1px solid #2a3650;
  border-radius: 12px;
  padding: 2rem;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 12px 48px rgba(0,0,0,.5);
  font-size: .875rem;
  color: var(--text);
}
.email-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.email-logo {
  width: 36px; height: 36px;
  background: var(--accent);
  color: #0b0f1a;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; flex-shrink: 0;
}
.email-from { font-weight: 700; color: var(--text); }
.email-subject { color: var(--text-muted); font-size: .8rem; }
.email-card hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.email-section { margin-bottom: 1.5rem; }
.email-section:last-of-type { margin-bottom: 0; }
.email-label { font-size: .75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.email-item-title { font-weight: 600; color: var(--text); margin-bottom: .2rem; }
.email-item-desc { color: var(--text-muted); font-size: .8rem; line-height: 1.5; }
.email-footer { text-align: center; font-size: .7rem; color: var(--text-muted); opacity: .6; margin-top: 1.5rem; }

/* ─── Mockup section separation ─── */
.mockup-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ─── Signup ─── */
.signup { text-align: center; }
.signup p { color: var(--text-muted); margin-bottom: 1rem; }
.signup-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 400px;
  margin: 0 auto;
}
.signup-form input {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  width: 100%;
  min-height: 44px; /* touch target parity with buttons */
}
.signup-form input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
@media (min-width: 480px) {
  .signup-form { flex-direction: row; }
  .signup-form input { flex: 1; }
}

/* trust line under form */
.trust-note {
  margin-top: .75rem;
  font-size: .85rem;
  color: var(--text-muted);
  opacity: 1;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .875rem;
}

/* ─── Signup extras ─── */
.price-note {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: .01em;
}
.signup .body-copy {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.social-proof {
  margin-top: 1.25rem;
  font-size: .875rem;
  color: var(--text-muted);
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  opacity: .85;
  line-height: 1.6;
}

/* ─── Mobile: narrow viewport polish ─── */
@media (max-width: 420px) {
  .hero { padding: 3.5rem 0; min-height: 60vh; }
  .hero h1 { font-size: 1.65rem; }
  .subheadline { font-size: 1rem; }
  section { padding: 3.5rem 0; }
  .email-card { padding: 1.25rem; }
  .features-cta-wrap { padding: 1rem; }
}

/* ─── Accessibility ─── */
