/* DraftGuard Landing Page */

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

:root {
  --navy: #0F172A;
  --navy-mid: #1E293B;
  --blue: #2563EB;
  --blue-bright: #3B82F6;
  --blue-light: #EFF6FF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Avoid orphan words on big headings (modern browsers; harmless elsewhere) */
h1, h2, h3 { text-wrap: balance; }

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

/* ─── Animations ─────────────────────────────────────────────────────────── */

/* Content is VISIBLE by default. The .fade-in-armed class is added by JS
   right before the IntersectionObserver starts watching the element — that's
   what hides it so it can fade in on scroll. If JS doesn't run (CSP issue,
   error, observer never fires, etc.) the page still renders fully instead
   of staying blank. */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.fade-in-armed {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Nav ────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

.btn-cta-small {
  background: var(--blue);
  color: white;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn-cta-small:hover { background: #1D4ED8; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(59,130,246,0.18), transparent 65%),
    linear-gradient(180deg, var(--navy) 0%, #111A2E 60%, #0F1B33 100%);
  padding: 112px 0 96px;
  text-align: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.78);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin: 0 auto 14px;
  line-height: 1.65;
  letter-spacing: -0.005em;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: white;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 10px 30px -8px rgba(37, 99, 235, 0.55),
    0 4px 12px -4px rgba(37, 99, 235, 0.35);
}

.btn-cta:hover {
  background: #1D4ED8;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 14px 36px -8px rgba(37, 99, 235, 0.65),
    0 6px 16px -4px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,0.7);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  color: white;
  border-color: rgba(255,255,255,0.3);
}

/* ─── Browser mockup ──────────────────────────────────────────────────────── */

.hero-mockup {
  max-width: 720px;
  margin: 0 auto;
}

.mockup-browser {
  background: #1A2540;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.07);
  text-align: left;
}

.mockup-toolbar {
  background: #253352;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.mockup-url {
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-family: monospace;
  flex: 1;
}

.mockup-bar {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: white;
  font-weight: 500;
}

.mockup-bar span { flex: 1; }

.mockup-restore {
  background: white;
  color: #2563EB;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: default;
}

.mockup-dismiss {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: default;
}

.mockup-form {
  padding: 20px;
  background: #F8FAFC;
}

.mockup-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.mockup-field { display: flex; flex-direction: column; gap: 4px; }
.mockup-field.full { margin-bottom: 0; }

.mockup-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mockup-input, .mockup-textarea {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
  color: #1E293B;
}

.mockup-textarea {
  height: 60px;
  overflow: hidden;
  font-size: 12px;
  color: #475569;
}

.mockup-input.restored, .mockup-textarea.restored {
  border-color: #10B981;
  background: #ECFDF5;
}

/* ─── Sections ────────────────────────────────────────────────────────────── */

.section-white { background: white;   padding: 120px 0; }
.section-alt   { background: #FAFBFC; padding: 120px 0; }
.section-dark  { background: var(--navy); padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 64px; max-width: 720px; margin-left: auto; margin-right: auto; }

.section-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* ─── Card system — shared visual language for problem/step/feature/audience cards ── */

.problem-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-grid { margin-bottom: 44px; }

.problem-card,
.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 24px -10px rgba(15,23,42,0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.problem-card:hover,
.feature-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 14px 36px -10px rgba(15,23,42,0.12);
}

.problem-icon { font-size: 30px; margin-bottom: 16px; }
.problem-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.problem-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

.problem-cta {
  text-align: center;
  font-size: 18px;
  color: var(--text);
}

/* ─── Steps ───────────────────────────────────────────────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 36px 28px;
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 24px -10px rgba(15,23,42,0.08);
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--blue);
  color: white;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 18px -6px rgba(37,99,235,0.55);
}

.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.step-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

/* ─── Features ────────────────────────────────────────────────────────────── */

.feature-icon { font-size: 28px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

/* ─── Stats ───────────────────────────────────────────────────────────────── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ─── Pricing ─────────────────────────────────────────────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 30px;
  box-shadow:
    0 1px 2px rgba(15,23,42,0.04),
    0 8px 24px -10px rgba(15,23,42,0.08);
  position: relative;
}

.pricing-pro {
  border-color: #BFDBFE;
  background: var(--blue-light);
}

.pricing-badge {
  display: inline-block;
  background: var(--blue);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-annual { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }

/* Small italic line directly under the founding-pro price, signaling that
   this price is time-limited. Sits between the price and the features list. */
.pricing-founding-note {
  font-size: 12.5px;
  font-style: italic;
  color: var(--blue);
  margin-top: 6px;
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text);
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.pricing-btn:hover { background: #1D4ED8; }
.pricing-btn-disabled { background: #CBD5E1; color: #94A3B8; cursor: not-allowed; }
.pricing-btn-disabled:hover { background: #CBD5E1; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */

.faq-container { max-width: 760px; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover { border-color: #CBD5E1; }
.faq-item[open] {
  border-color: #BFDBFE;
  box-shadow: 0 4px 14px -8px rgba(37,99,235,0.18);
}

.faq-item summary {
  padding: 20px 22px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  letter-spacing: -0.01em;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 300;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 18px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── CTA section ──────────────────────────────────────────────────────────── */

.section-cta { text-align: center; }
.cta-title { font-size: clamp(28px, 5vw, 52px); font-weight: 800; color: white; letter-spacing: -0.02em; margin-bottom: 16px; }
.cta-sub { font-size: 17px; color: rgba(255,255,255,0.65); margin-bottom: 36px; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  background: var(--navy-mid);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .problem-grid, .steps-grid, .features-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .mockup-field-row { grid-template-columns: 1fr; }
}
