/* ZayneSoft site styles — plain CSS, no build step needed. */
:root {
  --ink: #262628;
  --text: #575757;
  --muted: #8a8a8e;
  --bg: #ffffff;
  color-scheme: light;
  --soft: #f5f5f6;
  --line: #e7e7ea;
  --footer: #1a1d21;
  --radius: 20px;
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.02em; }
p { margin: 0 0 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); color: var(--ink); padding: 8px 12px; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 0.6; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--on-ink); text-decoration: none;
  font: 500 15px/1 var(--font);
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn-lg { padding: 20px 40px; font-size: 16px; }
.btn-light { background: var(--soft); color: var(--ink); }
.btn-light:hover { background: var(--line); }
.btn .arrow { font-size: 18px; line-height: 0; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 700; max-width: 900px; margin: 0 auto 20px; }
.hero .lead { font-size: 18px; margin-bottom: 36px; }
.hero-img { margin: 0 auto 40px; width: 100%; max-width: 860px; }

.statement { font-size: clamp(20px, 2.4vw, 26px); font-weight: 500; line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; }
.intro p { font-size: 18px; color: var(--ink); }

.wide-img { border-radius: var(--radius); overflow: hidden; }
.wide-img img { width: 100%; height: auto; }

.feature-list { list-style: none; padding: 0; margin: 20px 0; }
.feature-list li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

.check-list { list-style: none; padding: 0; margin: 16px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: #1f9d55; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(26px, 3vw, 36px); }
.split .media img { border-radius: var(--radius); width: 100%; height: auto; }
.split .media.framed { background: var(--soft); border-radius: var(--radius); padding: 24px; }

.distributors { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 760px; margin: 0 auto 40px; }
.distributors img { width: 100%; height: auto; }

/* Stats */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--ink); margin-bottom: 16px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--soft); border-radius: var(--radius); padding: 28px; }
.stat .icon { width: 40px; height: 40px; border-radius: 12px; background: var(--card); display: grid; place-items: center; margin-bottom: 18px; color: var(--ink); }
.stat .icon svg { width: 20px; height: 20px; }
.stat h3 { font-size: 20px; margin-bottom: 8px; }
.stat p { margin: 0; font-size: 15px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--card); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; margin: 0; }

/* Videos page */
.video-block { margin-bottom: 72px; }
.video-block h2 { font-size: clamp(18px, 2vw, 22px); text-align: center; max-width: 820px; margin: 0 auto 24px; }
.video-frame { border-radius: var(--radius); overflow: hidden; background: #000; max-width: 1000px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.video-frame video { width: 100%; height: auto; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-grid h1 { font-size: clamp(32px, 4vw, 44px); }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; }
.info-list li { display: flex; align-items: flex-start; gap: 14px; background: var(--soft); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; color: var(--ink); }
.info-list svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.card { background: var(--soft); border-radius: var(--radius); padding: 32px; }
.card h2 { font-size: 22px; margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: var(--ink); font-weight: 500; }
.field input, .field textarea {
  font: 15px var(--font); color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-grid .btn { grid-column: 1 / -1; width: 100%; border-radius: 10px; }
.notice { border-radius: 12px; padding: 14px 16px; margin-top: 18px; font-size: 15px; }
.notice.ok { background: var(--ok-bg); color: var(--ok-text); }
.notice.err { background: var(--err-bg); color: var(--err-text); }

/* Legal / document pages */
.doc { padding: 56px 0 80px; }
.doc .kicker { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); }
.doc h2 { font-size: 22px; margin-top: 40px; }
.doc h3 { font-size: 18px; margin-top: 28px; }
.doc p, .doc li { color: var(--doc-text); }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc .tabs { display: flex; gap: 8px; margin: 20px 0 8px; flex-wrap: wrap; }
.doc .tabs a { text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 14px; }
.doc .tabs a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.doc .summary { background: var(--soft); border-radius: 16px; padding: 20px 24px; margin: 24px 0; }
.doc .summary ul { margin: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); background: var(--soft); }
.doc code { font-size: 13px; background: var(--soft); padding: 2px 6px; border-radius: 6px; color: var(--ink); word-break: break-word; }
.doc a { color: var(--ink); }
.doc .toc { columns: 2; column-gap: 32px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #c9cbd1; padding: 56px 0 32px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-brand img { width: 56px; height: 56px; border-radius: 6px; background: #fff; }
.footer-brand p { margin: 0; color: #fff; font-size: 15px; }
.footer-links { list-style: none; padding: 0 0 0 32px; margin: 0; border-left: 1px solid #3a3e45; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 56px; font-size: 14px; color: #9a9da5; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  section { padding: 52px 0; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
  .stats { grid-template-columns: 1fr; }
  .doc .toc { columns: 1; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
  .nav-links .mobile-cta { display: block; }
}
@media (min-width: 861px) { .nav-links .mobile-cta { display: none; } }
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 24px 18px; }
  .footer-links { padding-left: 0; border-left: 0; }
  .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* =====================================================================
   Unified additions: Products menu, product bar, product pages and the
   Mail Buddy pages. Everything uses the same tokens as the rest of the
   ZayneSoft site, so every page looks like one site.
   ===================================================================== */
:root {
  --ink-2: var(--text);
  --surface: var(--card);
  --sunk: var(--soft);
  --good: #1f9d55;
  --good-soft: #e8f6ee;
  --badge: #ff3b30;
  --chrome: #ececee;
  --shadow: 0 24px 50px -24px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .06);
  --card: #ffffff;
  --on-ink: #ffffff;
  --btn-hover: #000000;
  --header-bg: rgba(255, 255, 255, .92);
  --doc-text: #3b3b3e;
  --ok-bg: #e8f6ee;
  --ok-text: #14532d;
  --err-bg: #fdecec;
  --err-text: #7f1d1d;
  --cta-bg: #1a1d21;
  --tag-bad-bg: #fdecec;
  --tag-bad-text: #7f1d1d;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text); }
.small { font-size: 14.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header: Products mega menu ---------- */
.nav-links > li { display: flex; align-items: center; height: 72px; position: relative; }
.has-sub > a { display: inline-flex; align-items: center; }
.nav-links a { white-space: nowrap; }
.sub-toggle { background: none; border: 0; padding: 6px 2px 6px 6px; cursor: pointer; color: var(--ink); display: inline-flex; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .15s ease; }
.has-sub.open .sub-toggle svg { transform: rotate(180deg); }
.submenu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-28%);
  width: min(780px, 92vw); background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .12); padding: 22px; z-index: 60;
  grid-template-columns: 1.15fr 1fr 1fr; gap: 24px; text-align: left;
}
.has-sub:hover .submenu, .has-sub.open .submenu, .has-sub:focus-within .submenu { display: grid; }
.sm-col ul { list-style: none; margin: 0; padding: 0; }
.sm-title { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.sm-title img { width: 28px; height: 28px; border-radius: 7px; background: #fff; padding: 2px; }
.sm-col small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin: -4px 0 10px; }
.nav-links .submenu a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 10px; font-size: 14.5px; opacity: 1; }
.nav-links .submenu a:hover { background: var(--soft); opacity: 1; }
.nav-links .submenu .sm-title { padding: 0; margin: 0 0 10px; }
.nav-links .submenu .sm-title:hover { background: none; }

/* ---------- Product bar (sub-navigation on product pages) ---------- */
.productbar { position: sticky; top: 72px; z-index: 40; background: var(--header-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.productbar .container { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.pb-brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; margin-right: 6px; }
.pb-brand img { width: 30px; height: 30px; border-radius: 8px; }
.productbar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1; }
.productbar nav a { white-space: nowrap; text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--ink); background: var(--soft); }
.productbar nav a:hover { background: var(--line); }
.productbar nav a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }
.productbar .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- Product cards (home + Products page) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: var(--soft); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.product-card .pc-icon { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.product-card .pc-icon img { width: 36px; height: 36px; object-fit: contain; }
.product-card h3 { font-size: 22px; margin: 0; }
.product-card p { margin: 0; font-size: 15.5px; }
.product-card .check-list { margin: 0; font-size: 15px; }
.product-card .pc-links { margin-top: auto; padding-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.product-card .pc-links .btn { padding: 12px 20px; font-size: 14.5px; white-space: nowrap; }
.product-card .tagline { color: var(--muted); font-size: 13.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.mini-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.mini-links a { font-size: 13.5px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--ink); }
.mini-links a:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-cards .fcard { background: var(--soft); border-radius: 16px; padding: 22px; }
.feature-cards .fcard h3 { font-size: 18px; margin-bottom: 8px; }
.feature-cards .fcard p { margin: 0; font-size: 15px; }
.cta-band { background: var(--cta-bg); color: #c9cbd1; border-radius: 24px; padding: clamp(30px, 5vw, 56px); display: grid; gap: 16px; justify-items: start; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(26px, 3.2vw, 38px); }
.cta-band p { margin: 0; color: #c9cbd1; max-width: 60ch; }
.cta-band .btn { background: #fff; color: #1a1d21; }
.cta-band .btn:hover { background: #e7e7ea; }
.cta-band .btn.outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #5a5e66; }
.cta-band .btn.outline:hover { background: rgba(255, 255, 255, .08); }
.cta-band .btn-row { justify-content: flex-start; }

/* =====================================================================
   Mail Buddy pages (scoped under .mb)
   ===================================================================== */
.mb .eyebrow, .legal .eyebrow { justify-self: start; }
.mb .sechead .eyebrow, .mb .hero .eyebrow { justify-self: center; }
.mb .eyebrow { font-size: 14px; font-family: var(--font); text-transform: none; letter-spacing: 0; background: var(--card); margin-bottom: 0; }
.mb section.band { padding: 72px 0; }
.mb section.band.alt { background: var(--soft); }
.mb .hero { text-align: center; padding: 56px 24px 40px; max-width: var(--max); margin: 0 auto; display: grid; gap: 40px; }
.mb .hero .copy { display: grid; gap: 20px; justify-items: center; max-width: 820px; margin: 0 auto; }
.mb .hero h1 { margin: 0 auto; }
.mb .hero .lede { margin: 0 auto; }
.mb .lede { font-size: 18px; color: var(--text); max-width: 64ch; }
.mb .platforms { font-size: 14px; color: var(--muted); }
.mb p { max-width: 64ch; }
.mb .btnrow { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.mb .btn svg { width: 18px; height: 18px; flex: none; }
.mb .btn.ghost { background: var(--soft); color: var(--ink); }
.mb .btn.ghost:hover { background: var(--line); }
.mb .band.alt .btn.ghost { background: var(--card); }
.mb .btn.small { padding: 10px 18px; font-size: 14px; }
.mb .sechead { display: grid; gap: 14px; text-align: center; max-width: 760px; margin: 0 auto 40px; justify-items: center; }
.mb .sechead h2 { font-size: clamp(28px, 3.6vw, 44px); margin: 0; }
.mb .sechead p { margin: 0 auto; }
.mb h2 { font-size: clamp(26px, 3.2vw, 38px); }
.mb h3 { font-size: 20px; }
.mb a { color: var(--ink); }
.mb a.btn { color: var(--on-ink); }
.mb a.btn.ghost { color: var(--ink); }

/* app window frame around screenshots */
.mb .window { border-radius: 14px; background: var(--chrome); box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.mb .window .bar { height: 30px; display: flex; align-items: center; gap: 7px; padding-left: 13px; }
.mb .window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.mb .window .bar i:nth-child(2) { background: #febc2e; }
.mb .window .bar i:nth-child(3) { background: #28c840; }
.mb .window .bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.mb .window img { width: 100%; }
.mb .hero > .window { max-width: 1000px; margin: 0 auto; }

/* phone vs browser vs Mail Buddy */
.mb .compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.mb .cmp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.mb .cmp.win { border-color: var(--ink); box-shadow: 0 0 0 3px var(--line); }
.mb .cmp h3 { margin: 0; }
.mb .cmp ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text); font-size: 15.5px; }
.mb .tag { justify-self: start; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--soft); color: var(--text); }
.mb .tag.good { background: var(--good-soft); color: var(--ok-text); }
.mb .tag.bad { background: var(--tag-bad-bg); color: var(--tag-bad-text); }
.mb .mini { min-height: 150px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); padding: 12px; display: grid; gap: 7px; align-content: start; overflow: hidden; }
.mb .mini .row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); background: var(--card); border-radius: 8px; padding: 6px 9px; border: 1px solid var(--line); min-width: 0; }
.mb .mini .row b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
.mb .mini .dot { width: 18px; height: 18px; border-radius: 6px; flex: none; display: grid; place-items: center; font: 700 10px/1 var(--font); color: #fff; }
.mb .mini .n { margin-left: auto; font: 700 11px/1 var(--font); color: #fff; background: var(--badge); border-radius: 9px; padding: 3px 6px; }
.mb .tabs { display: flex; gap: 4px; min-width: 0; }
.mb .tabs span { flex: 1 1 0; min-width: 0; font-size: 11.5px; background: var(--card); border: 1px solid var(--line); border-radius: 7px 7px 0 0; padding: 6px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.mb .tabs span.on { color: var(--ink); font-weight: 600; }
.mb .pane { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 8px 8px; padding: 10px; font-size: 12.5px; color: var(--text); line-height: 1.5; }

/* feature rows: text beside its screenshot */
.mb .feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.mb .feature + .feature { margin-top: clamp(56px, 8vw, 88px); }
.mb .feature.flip .text { order: 2; }
.mb .feature .text { display: grid; gap: 16px; min-width: 0; }
.mb .feature .text h2, .mb .feature .text h3 { margin: 0; }
.mb .feature .text h3 { font-size: clamp(24px, 2.6vw, 32px); }
.mb .ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mb .ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.mb .ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }

/* card grids */
.mb .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mb .card { background: var(--soft); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; align-content: start; border: 0; }
.mb .band.alt .card { background: var(--card); }
.mb .card h3 { margin: 0; font-size: 19px; }
.mb .card p { margin: 0; font-size: 15.5px; }
.mb .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card); color: var(--ink); box-shadow: none; border: 1px solid var(--line); }
.mb .band.alt .ico { background: var(--soft); }
.mb .ico svg { width: 20px; height: 20px; }
.mb .promise { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

/* data flow */
.mb .flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.mb .node { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-align: center; display: grid; gap: 4px; }
.mb .node b { font-size: 18px; color: var(--ink); }
.mb .node span { font-size: 13.5px; color: var(--text); }
.mb .node.x { border-style: dashed; background: transparent; }
.mb .node.x b { text-decoration: line-through; color: var(--muted); }
.mb .arrow { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; display: grid; gap: 4px; justify-items: center; }
.mb .arrow svg { width: 44px; height: 14px; }

/* table of facts */
.mb .tablewrap, .legal .tablewrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.mb .facts { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.mb .facts th, .mb .facts td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mb .facts th { font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); background: var(--soft); }
.mb .facts td:first-child { font-weight: 600; width: 28%; color: var(--ink); }
.mb .facts tr:last-child td { border-bottom: 0; }

/* download */
.mb .dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.mb .dlcard { background: var(--soft); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.mb .dlcard ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--ink); font-size: 15.5px; }
.mb .dlcard .btn { justify-self: start; }
.mb .os { display: flex; align-items: center; gap: 12px; }
.mb .os h2 { margin: 0; }
.mb .os svg { width: 30px; height: 30px; color: var(--ink); }
.mb .req { font-size: 13.5px; color: var(--muted); }
.mb kbd { font: 600 12.5px/1 var(--font); padding: 3px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--card); }

/* call to action strip */
.mb .cta { background: var(--cta-bg); color: #c9cbd1; border-radius: 24px; padding: clamp(30px, 5vw, 56px); display: grid; gap: 16px; justify-items: start; }
.mb .cta h2 { color: #fff; margin: 0; }
.mb .cta p { color: #c9cbd1; margin: 0; }
.mb .cta a.btn { background: #fff; color: #1a1d21; }
.mb .cta a.btn:hover { background: var(--soft); }

/* setup guide */
.mb .selectable { user-select: all; font-weight: 600; color: var(--ink); }
.mb .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(36px, 6vw, 64px); }
.mb .step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 52px); align-items: center; padding-top: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); }
.mb .step:first-child { border-top: 0; padding-top: 0; }
.mb .step > .text:only-child { grid-column: 1 / -1; max-width: 760px; }
.mb .step .text { display: grid; gap: 12px; min-width: 0; }
.mb .step .text h3 { margin: 0; font-size: 26px; }
.mb .stepno { justify-self: start; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--on-ink); background: var(--ink); padding: 7px 12px; border-radius: 999px; }
.mb .shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); }
.mb .shot.narrow { max-width: 460px; justify-self: center; }
.mb .callout { background: var(--soft); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 8px; align-self: center; }
.mb .callout b { font-size: 18px; color: var(--ink); }
.mb .callout p { margin: 0; font-size: 15.5px; }

/* =====================================================================
   Legal pages with a contents list (Mail Buddy privacy / terms)
   ===================================================================== */
.legal { padding: 48px 0 80px; }
.legal .head { display: grid; gap: 12px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal .head h1 { margin: 0; font-size: clamp(32px, 4.4vw, 46px); }
.legal .dates { display: flex; flex-wrap: wrap; gap: 4px 22px; color: var(--muted); font-size: 14px; }
.legal .layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-top: 34px; align-items: start; }
.legal .toc { position: sticky; top: 150px; display: grid; gap: 6px; font-size: 14px; }
.legal .toc b { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.legal .toc a { color: var(--text); text-decoration: none; line-height: 1.35; }
.legal .toc a:hover { color: var(--ink); text-decoration: underline; }
.legal article { display: grid; gap: 16px; min-width: 0; max-width: 72ch; }
.legal article section { display: grid; gap: 12px; scroll-margin-top: 150px; padding: 0; }
.legal article h2 { font-size: 24px; margin: 18px 0 0; padding: 0; }
.legal article h3 { font-size: 18px; margin: 6px 0 0; }
.legal article p, .legal article li { color: var(--doc-text); margin: 0; }
.legal article ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal article a { color: var(--ink); }
.legal .summary { background: var(--soft); border-radius: 16px; padding: 22px 26px; }
.legal .summary h2 { margin-top: 0; }
.legal .summary ul { list-style: none; padding: 0; gap: 10px; }
.legal .summary li { position: relative; padding-left: 28px; }
.legal .summary li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--good); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.legal .summary li span { color: var(--doc-text); }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--doc-text); }
.legal th { color: var(--ink); background: var(--soft); }
.legal tr:last-child td { border-bottom: 0; }
.legal code { font-size: 13px; background: var(--soft); padding: 2px 6px; border-radius: 6px; color: var(--ink); word-break: break-word; }
.legal p.limited { background: var(--soft); border-radius: 14px; padding: 16px 20px; }

/* ---------- Footer: richer, same look ---------- */
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-cols h4 { color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a { color: #c9cbd1; text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.footer-cols .footer-brand { align-items: flex-start; flex-direction: column; gap: 16px; }
.footer-note { margin-top: 28px; font-size: 13px; color: #8d9098; max-width: 80ch; }

/* ---------- Responsive additions ---------- */
@media (max-width: 900px) {
  .mb .compare, .mb .grid, .mb .dl, .mb .promise, .product-grid, .feature-cards { grid-template-columns: minmax(0, 1fr); }
  .mb .feature, .mb .feature.flip, .mb .step { grid-template-columns: minmax(0, 1fr); }
  .mb .feature.flip .text { order: 0; }
  .mb .flow { grid-template-columns: minmax(0, 1fr); }
  .mb .arrow svg { transform: rotate(90deg); }
  .legal .layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .legal .toc { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) and (max-width: 1080px) { .mb .grid, .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .nav-links > li { display: block; height: auto; }
  .sub-toggle { display: none; }
  .submenu, .has-sub:hover .submenu { display: block; position: static; transform: none; width: auto; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
  .sm-col { margin-bottom: 8px; }
  .sm-col small { display: none; }
  .nav-links .submenu a { padding: 8px 0; margin: 0; font-size: 16px; }
  .nav-links .submenu .sm-title { margin-bottom: 2px; font-size: 16px; }
  .sm-title img { display: none; }
  .productbar { position: static; }
  .nav-links { max-height: calc(100vh - 72px); overflow-y: auto; }
}
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } .mb .hero { padding-left: 16px; padding-right: 16px; } .wrap { padding: 0 16px; } }

/* =====================================================================
   Dark theme. The theme is set on <html data-theme="light|dark"> by the
   toggle in the header; it starts from the visitor's system setting.
   ===================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f2f3;
  --text: #b8bac0;
  --muted: #8d9097;
  --bg: #0f1114;
  --soft: #1a1d22;
  --line: #2b2f36;
  --footer: #0a0b0d;
  --card: #161a1f;
  --on-ink: #111214;
  --btn-hover: #ffffff;
  --header-bg: rgba(15, 17, 20, 0.9);
  --doc-text: #c6c8ce;
  --ok-bg: #12301f;
  --ok-text: #a7f0c3;
  --err-bg: #3a1618;
  --err-text: #ffb4b4;
  --cta-bg: #1a1d22;
  --chrome: #23262c;
  --good-soft: #12301f;
  --tag-bad-bg: #3a1618;
  --tag-bad-text: #ffb4b4;
  --shadow: 0 24px 50px -24px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --ink: #f2f2f3;
    --text: #b8bac0;
    --muted: #8d9097;
    --bg: #0f1114;
    --soft: #1a1d22;
    --line: #2b2f36;
    --footer: #0a0b0d;
    --card: #161a1f;
    --on-ink: #111214;
    --btn-hover: #ffffff;
    --header-bg: rgba(15, 17, 20, 0.9);
    --doc-text: #c6c8ce;
    --ok-bg: #12301f;
    --ok-text: #a7f0c3;
    --err-bg: #3a1618;
    --err-text: #ffb4b4;
    --cta-bg: #1a1d22;
    --chrome: #23262c;
    --good-soft: #12301f;
    --tag-bad-bg: #3a1618;
    --tag-bad-text: #ffb4b4;
    --shadow: 0 24px 50px -24px rgba(0, 0, 0, .8), 0 2px 6px rgba(0, 0, 0, .5);
  }
}
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .brand .logo-light { display: none; }
  :root:not([data-theme]) .brand .logo-dark { display: block; }
}
:root[data-theme="dark"] .hero-img, :root[data-theme="dark"] .wide-img img { border-radius: var(--radius); }
:root[data-theme="dark"] .video-frame { box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
:root[data-theme="dark"] .submenu { box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
:root[data-theme="dark"] .mb .window img, :root[data-theme="dark"] .mb .shot img { opacity: .94; }
:root[data-theme="dark"] .site-header.scrolled { border-bottom-color: var(--line); }

/* ---------- Theme toggle (top of every page) ---------- */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.theme-toggle:hover { background: var(--soft); transform: translateY(-1px); }
.theme-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: none; }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle { transition: none; } }
