/* Mailbox Magic — marketing site styles.
   Design language inspired by Designmodo: bold geometric type, generous
   whitespace, pastel color-block sections, deep-ink text + dark high-contrast
   CTAs, colorful solid icon tiles, restrained rounding, soft shadows.
   No framework; one display font (preconnected) for fast Core Web Vitals. */
:root {
  /* ink + neutrals */
  --ink: #17152a;        /* near-black deep plum: text + dark CTAs */
  --ink-2: #322e4d;
  --muted: #56536e;
  --soft: #8b88a3;
  --line: #ece9f4;
  --bg: #ffffff;
  --bg-soft: #faf9fd;

  /* brand + pastels (the color-block palette) */
  --accent: #5a46f0;
  --accent-ink: #4434c9;
  --accent-weak: #efebff;
  --mint: #d7f3cf;   --mint-ink: #1c7a47;
  --lav:  #e3e6ff;
  --peach:#ffe6cd;
  --sky:  #d2eef1;
  --rose: #ffdfeb;
  --emerald: #16a34a;
  --danger: #e11d48;

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 30px;
  --shadow-sm: 0 1px 2px rgba(23, 21, 42, 0.04), 0 2px 6px rgba(23, 21, 42, 0.05);
  --shadow-md: 0 14px 38px rgba(23, 21, 42, 0.09);
  --shadow-lg: 0 30px 70px rgba(23, 21, 42, 0.14);
  --maxw: 1140px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;

  /* back-compat aliases (used by stats.html inline styles) */
  --border: var(--line);
  --bg-alt: var(--bg-soft);
  --accent-2: #a855f7;
  --radius: var(--r);
  --fg: var(--ink);
  --success: var(--emerald);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 0.4em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, #6a4cff, #a855f7 90%);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 6px 16px rgba(106, 76, 255, 0.35);
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff !important;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid var(--ink); cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn:hover { background: #000; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--bg-soft); border-color: #ddd8ea; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-lg::after { content: "→"; font-weight: 700; transition: transform .14s ease; }
.btn-lg:hover::after { transform: translateX(3px); }

/* per-browser install buttons */
.browsers { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; margin-top: 18px; }
.browsers-lead { color: var(--soft); font-weight: 700; font-size: 14px; }
.bbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  color: #fff !important; border: none; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.bbtn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; filter: brightness(1.06); }
.bbtn svg { width: 18px; height: 18px; }

/* ---- hero ---- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 96px 0 56px;
  background:
    radial-gradient(720px 320px at 18% -8%, var(--lav), transparent 60%),
    radial-gradient(680px 320px at 86% 6%, var(--peach), transparent 60%),
    radial-gradient(900px 420px at 50% 120%, var(--mint), transparent 55%);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink-2); font-weight: 700; font-size: 13px; letter-spacing: .01em;
  padding: 7px 15px; border-radius: 999px; margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--emerald); box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.hero h1 { max-width: 14ch; margin-left: auto; margin-right: auto; }
.hero h1 .grad {
  background: linear-gradient(120deg, #6a4cff, #c026d3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--muted); max-width: 640px; margin: 22px auto 30px; }
.hero-cta { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 14px; color: var(--soft); }
.hero .note strong { color: var(--ink); }
.providers { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-radius: 999px; padding: 8px 17px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }

/* ---- hero product mock (CSS only, no image weight) ---- */
.mock {
  max-width: 600px; margin: 52px auto 0; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 15px 18px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-bar i { width: 11px; height: 11px; border-radius: 999px; background: #e3def0; display: inline-block; }
.mock-bar i:nth-child(1) { background: #ff6b6b; } .mock-bar i:nth-child(2) { background: #ffd43b; } .mock-bar i:nth-child(3) { background: #51cf66; }
.mock-bar span { margin-left: 10px; font-weight: 700; font-size: 13px; color: var(--muted); }
.mock-row { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.mock-row:last-child { border-bottom: 0; }
.mock-check { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--accent); flex: none; position: relative; }
.mock-row.on .mock-check { background: var(--accent); }
.mock-row.on .mock-check::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 800; position: absolute; inset: 0; display: grid; place-items: center; }
.mock-av { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 15px; }
.mock-main { flex: 1; min-width: 0; }
.mock-name { font-weight: 700; font-size: 14.5px; }
.mock-sub { color: var(--soft); font-size: 12.5px; }
.mock-count { font-weight: 800; color: var(--ink); font-size: 14px; }
.mock-tag { font-size: 11px; font-weight: 700; color: var(--mint-ink); background: var(--mint); padding: 3px 9px; border-radius: 999px; }

/* ---- sections ---- */
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-mint { background: linear-gradient(180deg, #f1fbee, #ffffff); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .kicker { color: var(--accent-ink); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; }
.section-head h2 { margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* ---- feature grid ---- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .ico {
  width: 56px; height: 56px; border-radius: 16px; font-size: 24px;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: var(--lav); color: var(--accent-ink);
}
.grid .card:nth-child(6n+1) .ico { background: var(--lav); }
.grid .card:nth-child(6n+2) .ico { background: var(--mint); }
.grid .card:nth-child(6n+3) .ico { background: var(--peach); }
.grid .card:nth-child(6n+4) .ico { background: var(--sky); }
.grid .card:nth-child(6n+5) .ico { background: var(--rose); }
.grid .card:nth-child(6n+6) .ico { background: var(--accent-weak); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }

/* ---- steps ---- */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow-sm); }
.step .num {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, #6a4cff, #a855f7); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 16px;
  box-shadow: 0 8px 18px rgba(106,76,255,.3);
}

/* ---- comparison table ---- */
.table-wrap { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow-md); }
table.cmp { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; min-width: 640px; }
table.cmp th, table.cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
table.cmp thead th { background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; border-bottom: 0; }
table.cmp thead th.us { background: linear-gradient(135deg, #6a4cff, #8b5cf6); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td.center, table.cmp th.center { text-align: center; }
table.cmp .yes { color: var(--emerald); font-weight: 800; }
table.cmp .no { color: var(--danger); font-weight: 700; }
table.cmp .feat { font-weight: 700; color: var(--ink-2); }
table.cmp td.us { background: #f6f3ff; font-weight: 800; color: var(--ink); }

/* ---- pricing ---- */
.price-card {
  max-width: 460px; margin: 0 auto; text-align: center; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 44px 40px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.price-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: linear-gradient(90deg, #6a4cff, #c026d3, #16a34a);
}
.price { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.price-card ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; }
.price-card li { padding: 9px 0 9px 32px; position: relative; color: var(--ink-2); font-weight: 500; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; top: 9px; color: var(--emerald); font-weight: 800;
  background: var(--mint); width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 12px;
}

/* ---- FAQ ---- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 4px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent-ink); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---- CTA band ---- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; border-radius: var(--r-lg);
  padding: 64px 28px; color: #fff; background: var(--ink);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 12% 0%, rgba(106,76,255,.55), transparent 60%),
              radial-gradient(600px 300px at 88% 110%, rgba(192,38,211,.45), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); font-size: 1.12rem; max-width: 560px; margin: 0 auto 26px; }
.cta-band .btn { background: #fff; color: var(--ink) !important; border-color: #fff; }
.cta-band .btn:hover { background: #f3f1ff; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--soft); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-weight: 600; }

/* ---- legal / form pages ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 22px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.45rem; margin-top: 1.7em; }
.doc p, .doc li { color: var(--muted); }
.doc .updated { color: var(--soft); font-size: 14px; }
.doc code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; }

.form { max-width: 580px; margin: 0 auto; }
.form label { display: block; font-weight: 700; margin: 18px 0 7px; color: var(--ink-2); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-weak); }
.form textarea { min-height: 150px; resize: vertical; }
.form .row { display: flex; gap: 16px; }
.form .row > * { flex: 1; }
@media (max-width: 520px) { .form .row { flex-direction: column; gap: 0; } }
#formMsg { margin-top: 16px; font-weight: 700; }
#formMsg.ok { color: var(--emerald); }
#formMsg.err { color: var(--danger); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; box-shadow: var(--shadow-md); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
