/* InboxLean — clean, trustworthy, mobile-first */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --brand: #0d9488;
  --brand-dark: #0f766e;
  --brand-soft: #ccfbf1;
  --accent: #0369a1;
  --warn-bg: #fff7ed;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 0; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 1.15rem; color: var(--ink);
  text-decoration: none;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(145deg, var(--brand), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 0.85rem; font-weight: 800;
}
.nav-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: 0.45rem 0.9rem; border-radius: 8px; font-weight: 600;
}
.nav-cta:hover { background: var(--brand-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.75rem 1.25rem; border-radius: 10px;
  font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
  text-decoration: none; transition: background 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary {
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: #cbd5e1; color: var(--ink); }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.05rem; }

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--brand-soft), transparent),
    var(--bg);
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--brand-soft);
  padding: 0.3rem 0.65rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 1.15rem; color: var(--muted); margin: 0 0 1.75rem; max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.25rem; }
.hero-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow);
}
.hero-card h3 { margin: 0 0 1rem; font-size: 1rem; color: var(--muted); font-weight: 600; }
.digest-item {
  display: flex; gap: 0.75rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.digest-item:last-child { border-bottom: none; }
.digest-dot {
  width: 8px; height: 8px; border-radius: 50%; margin-top: 0.45rem; flex-shrink: 0;
  background: var(--brand);
}
.digest-dot.amber { background: #f59e0b; }
.digest-dot.slate { background: #94a3b8; }
.digest-item strong { display: block; font-weight: 600; }
.digest-item span { color: var(--muted); font-size: 0.85rem; }

/* Sections */
section { padding: 3.5rem 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 36rem; margin-bottom: 2rem; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.5rem; letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Steps */
.steps {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem;
}
.step-num {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
  margin-bottom: 0.85rem;
}
.step h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Features */
.features {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem;
}
.section-alt .feature { background: var(--surface); }
.feature h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.compare {
  width: 100%; border-collapse: collapse; background: var(--surface);
  font-size: 0.95rem; min-width: 560px;
}
table.compare th, table.compare td {
  padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line);
}
table.compare th { background: #f1f5f9; font-weight: 600; }
table.compare tr:last-child td { border-bottom: none; }
table.compare .highlight { background: #f0fdfa; font-weight: 600; }
.yes { color: var(--brand-dark); font-weight: 600; }
.no { color: #94a3b8; }
.partial { color: #b45309; }

/* Pricing */
.pricing {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 720px;
}
.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.75rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), var(--shadow);
}
.price-badge {
  align-self: flex-start; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--brand-soft); color: var(--brand-dark);
  padding: 0.25rem 0.55rem; border-radius: 999px; margin-bottom: 0.75rem;
}
.price-card h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.price-amt { font-size: 2.25rem; font-weight: 750; letter-spacing: -0.03em; margin: 0.5rem 0; }
.price-amt span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul {
  list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1;
}
.price-card li {
  padding: 0.4rem 0 0.4rem 1.4rem; position: relative; color: var(--muted); font-size: 0.95rem;
}
.price-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brand-dark); font-weight: 700;
}

/* FAQ */
.faq { max-width: 720px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 0.65rem;
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.25rem; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.95rem; }

/* Waitlist */
.waitlist-box {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 2rem; box-shadow: var(--shadow);
  max-width: 520px;
}
.waitlist-box h2 { margin: 0 0 0.4rem; }
.waitlist-box > p { margin: 0 0 1.25rem; color: var(--muted); }
.form-row { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 520px) {
  .form-row.inline { flex-direction: row; }
  .form-row.inline input[type="email"] { flex: 1; }
}
label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
input[type="email"], input[type="text"], select, textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--brand-soft); border-color: var(--brand);
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-msg { margin-top: 0.85rem; font-size: 0.95rem; min-height: 1.4em; }
.form-msg.ok { color: var(--brand-dark); }
.form-msg.err { color: #b91c1c; }
.form-fine { margin-top: 0.75rem; font-size: 0.8rem; color: var(--muted); }

/* Legal / inner pages */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.page-hero h1 { margin: 0 0 0.4rem; font-size: clamp(1.75rem, 3vw, 2.25rem); }
.page-hero p { margin: 0; color: var(--muted); }
.prose {
  padding: 2.5rem 0 4rem; max-width: 720px;
}
.prose h2 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; font-size: 1.05rem; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.25rem; }
.prose a { word-break: break-word; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 2.5rem 0 2rem; margin-top: 2rem;
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 2rem;
}
.footer-grid h4 { margin: 0 0 0.65rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.footer-grid a { display: block; color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 0.2rem 0; }
.footer-grid a:hover { color: var(--brand-dark); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--muted);
}

/* Utility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Early access / waitlist banner (QA-008) */
.beta-banner {
  background: var(--warn-bg);
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 0;
  text-align: center;
}
.beta-banner a { color: #9a3412; font-weight: 700; }
.site-header { top: 0; }
.footer-address { display: block; width: 100%; margin-top: 0.35rem; }
