/* Public marketing homepage. Light, clean SaaS look, matches the app accent. */
:root {
  --ink: #16181d;
  --ink-soft: #4a4f5a;
  --ink-dim: #6b7280;
  --ink-faint: #5f6c78;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --border: #e6e7eb;
  --accent: #6d5ef8;
  --accent-dark: #5a48e8;
  --accent-soft: #efecff;
  --green: #0f7a37;
  --dark: #14151a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,0.04), 0 12px 32px -12px rgba(16,24,40,0.14);
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.logo .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), #9b8cff); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-anchors { display: contents; }
.nav-links a.link { padding: 8px 12px; text-decoration: none; color: var(--ink-soft); font-size: 14px; font-weight: 500; border-radius: 8px; }
.nav-links a.link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-toggle { display: none; margin-left: auto; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: #fff; font-size: 17px; cursor: pointer; align-items: center; justify-content: center; }
.btn { display: inline-block; text-decoration: none; border-radius: 9px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 12px 22px; font-size: 15px; }

/* ---- Hero ---- */
.hero { padding: 72px 0 56px; background: radial-gradient(900px 420px at 50% -60px, var(--accent-soft) 0%, #fff 60%); }
.hero-inner { max-width: 780px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 5px 12px; border-radius: 999px; }
h1.hero-title { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.02em; margin: 18px 0 14px; text-wrap: balance; }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 620px; margin: 0 auto 26px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--ink-faint); margin-top: 14px; }

/* ---- Inbox mock ---- */
.mock { max-width: 900px; margin: 44px auto 0; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; background: #fff; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--dark); }
.mock-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3b44; }
.mock-bar .title { margin-left: 10px; color: #cfd0d8; font-size: 12px; }
.mock-body { display: grid; grid-template-columns: 240px 1fr; min-height: 260px; }
.mock-list { border-right: 1px solid var(--border); background: #fafafb; }
.mock-row { display: flex; gap: 9px; padding: 11px 13px; border-bottom: 1px solid #f0f0f2; align-items: flex-start; }
.mock-row.active { background: #efecff; }
.mock-av { width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mock-line { height: 8px; border-radius: 4px; background: #e4e5ea; }
.mock-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.mock-reader { padding: 16px 18px; }
.mock-bubble { border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; margin-bottom: 10px; font-size: 12.5px; color: var(--ink-soft); }
.mock-bubble.us { background: #f8f7ff; border-color: #e3ddff; }
.mock-suggest { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #fff; background: var(--accent); padding: 6px 12px; border-radius: 8px; }

/* ---- Sections ---- */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -0.01em; margin: 0 0 10px; text-wrap: balance; }
.section-head p { color: var(--ink-dim); font-size: 16px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.feature h3 { font-size: 16px; margin: 0 0 6px; }
.feature p { font-size: 14px; color: var(--ink-dim); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 4px 6px; }
.step .n { counter-increment: step; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.step .n::before { content: counter(step); }
.step h3 { font-size: 15.5px; margin: 0 0 5px; }
.step p { font-size: 14px; color: var(--ink-dim); margin: 0; }

/* ---- Pricing ---- */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 720px; margin: 0 auto; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan .plan-name { font-size: 14px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.04em; }
.plan .price { font-size: 30px; font-weight: 800; margin: 8px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--ink-faint); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 20px; }
.plan li { font-size: 14px; color: var(--ink-soft); padding: 6px 0 6px 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pricing-note { text-align: center; color: var(--ink-faint); font-size: 13px; margin-top: 18px; }

/* ---- FAQ ---- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 10px; padding: 4px 16px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 600; font-size: 15px; padding: 12px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { font-size: 14px; color: var(--ink-dim); margin: 0 0 14px; }

/* ---- CTA + footer ---- */
.cta-band { text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 8px; }
.cta-band p { color: var(--ink-dim); margin: 0 0 22px; }
footer.foot { border-top: 1px solid var(--border); padding: 28px 0; color: var(--ink-faint); font-size: 13px; }
.foot-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--ink-dim); text-decoration: none; margin-left: 16px; }
.foot a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-list { display: none; }

  /* Features/How it works/Pricing/FAQ move into a hamburger dropdown instead
     of just disappearing; Log in / Sign up stay inline in the bar. */
  .nav-toggle { display: flex; order: 1; }
  .nav-links { margin-left: 0; order: 2; }
  .nav-anchors {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 22px 14px; box-shadow: var(--shadow);
  }
  .nav-anchors.open { display: flex; }
  .nav-anchors a.link { padding: 11px 6px; }

  /* Logged-in state adds Account + Open inbox next to the hamburger, which
     is too tight for "ManyReach Inbox" + both buttons on one line — trim the
     wordmark and button padding so nothing wraps mid-word. */
  .nav-inner { gap: 8px; }
  .nav-links { gap: 6px; }
  .nav-links .btn { padding: 8px 10px; font-size: 13px; white-space: nowrap; }
}

@media (max-width: 420px) {
  .logo .logo-text { display: none; }
}
