:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --border: #e2e8f0;
  --critical: #dc2626;
  --critical-bg: #fef2f2;
  --high: #ea580c;
  --high-bg: #fff7ed;
  --medium: #ca8a04;
  --medium-bg: #fefce8;
  --low: #16a34a;
  --low-bg: #f0fdf4;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  line-height: 1.6;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.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;
}

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px;
}

.site-header .logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--ink);
}

.site-header .nav-cta {
  background: var(--accent);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
}

.site-header .nav-cta:hover {
  background: var(--accent-deep);
  color: white;
}

/* PLATFORM LOGOS */
.platform-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

.platform-logo {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* HERO */
.hero { margin-bottom: 72px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 12px;
}

h1 {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

h1 em {
  font-style: italic;
  color: var(--critical);
}

.lede {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.capture {
  display: flex;
  gap: 8px;
  margin: 32px 0 8px;
  flex-wrap: wrap;
}

.capture input[type="email"] {
  flex: 1 1 260px;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  background: var(--bg);
  color: var(--ink);
}

.capture input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.capture button {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.capture button:hover { background: var(--accent-deep); }

.fineprint {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

section { margin-bottom: 64px; }

h2 {
  font-size: 28px;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

/* EMAIL MOCKUP */
.email-mockup {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.email-header-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}

.email-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.email-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.email-dots span:first-child { background: #ff5f57; }
.email-dots span:nth-child(2) { background: #ffbd2e; }
.email-dots span:nth-child(3) { background: #28c840; }

.email-subject-line {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.email-body {
  padding: 24px 20px;
}

.email-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.email-item:last-of-type {
  border-bottom: none;
}

.email-item strong {
  font-size: 14px;
  margin-left: 8px;
}

.email-item p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* FOUNDER */
.founder {
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.founder p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.founder a {
  color: var(--accent);
  text-decoration: none;
}

.founder a:hover {
  text-decoration: underline;
}

/* EXIT INTENT POPUP */
.exit-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exit-popup-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.exit-popup-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.exit-popup-content h2 {
  font-size: 28px;
  margin: 0 0 8px;
}

.exit-popup-content p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.exit-popup-content .capture {
  justify-content: center;
}

.exit-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1;
}

.exit-popup-close:hover {
  color: var(--ink);
}

/* DIGEST PREVIEW */
.digest-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.digest-item {
  padding: 16px 20px;
  border-radius: 10px;
  border-left: 4px solid;
}

.digest-item.critical { background: var(--critical-bg); border-color: var(--critical); }
.digest-item.high { background: var(--high-bg); border-color: var(--high); }
.digest-item.medium { background: var(--medium-bg); border-color: var(--medium); }
.digest-item.low { background: var(--low-bg); border-color: var(--low); }

.severity-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  color: white;
  margin-right: 8px;
}

.severity-badge.critical { background: var(--critical); }
.severity-badge.high { background: var(--high); }
.severity-badge.medium { background: var(--medium); }
.severity-badge.low { background: var(--low); }

.platform-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}

.digest-summary {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.preview-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 16px;
  text-align: center;
}

/* PLATFORM CARDS */
.platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.platform-card {
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.platform-card h3 {
  font-size: 20px;
  margin: 0 0 4px;
}

.platform-stat {
  font-size: 14px;
  font-weight: 600;
  color: var(--critical);
  margin: 0 0 12px;
}

.platform-card ul {
  padding-left: 18px;
  margin: 0;
}

.platform-card li {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  line-height: 1.45;
}

/* HOW IT WORKS */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin-top: 2px;
}

.step strong {
  display: block;
  font-size: 17px;
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* MID CTA */
.cta-mid, .cta-final {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-soft);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.cta-mid h2, .cta-final h2 {
  font-size: 26px;
}

.cta-mid p, .cta-final p {
  color: var(--ink-soft);
}

.cta-mid .capture, .cta-final .capture {
  justify-content: center;
}

/* AUDIENCE GRID */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.audience-card {
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.audience-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}

.audience-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* BLOG LINKS */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.blog-card {
  display: block;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s;
}

.blog-card:hover {
  border-color: var(--accent);
}

.blog-card .platform-tag {
  display: inline-block;
  margin-bottom: 8px;
}

.blog-card strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
  line-height: 1.35;
}

.blog-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* FAQ */
details {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}

details p {
  margin: 12px 0 4px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* FOOTER */
footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-soft);
}

footer p { margin: 4px 0; }

/* MOBILE */
@media (max-width: 600px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  main { padding: 40px 16px 60px; }
  .platform-cards { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .cta-mid, .cta-final { padding: 32px 16px; }
  .cta-mid h2, .cta-final h2 { font-size: 22px; }
  .site-header { padding: 16px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .site-header nav { gap: 0; }
}
