/* ===== Mail Bender — mailbender.net =====
   Redesign 2026: warm-neutral dark, green accent, blue stripped from the chrome
   (the product imagery brings the color). Bold, modern, calm — not gamer. */

:root {
  --bg:        #131419;   /* warm near-black */
  --bg-elev:   #181a20;   /* elevated bands (nav, footer) */
  --bg-card:   #1c1e25;   /* cards */
  --bg-card-2: #232732;   /* hover / nested */
  --border:    #2a2d37;   /* hairlines */
  --border-lt: #3a3e4a;
  --text:      #f3f5f9;   /* crisp near-white */
  --text-mut:  #a6adba;
  --text-dim:  #6d7480;

  /* single vivid accent = green (actions + highlights) */
  --accent:    #34d27f;
  --accent-br: #54e596;
  --accent-dk: #169257;
  --ink:       #06241a;   /* text on the green */

  /* kept for product-tone touches + back-compat; used sparingly, never as chrome */
  --green:     #34d27f;
  --amber:     #ffb454;
  --red:       #ff6f6f;
  --blue:      #6f86c9;   /* muted slate — rare, not electric */

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --sans-head: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --radius: 12px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* soft top glow so the page doesn't read as flat black — neutral, not blue */
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(1100px 520px at 50% -160px, rgba(52,210,127,.07), transparent 70%),
    var(--bg);
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-br); }

::selection { background: rgba(52,210,127,.28); color: #fff; }

/* ---------- Top header — big centered logo over the nav, textured Elgato purple ---------- */
nav.top {
  position: relative; overflow: hidden;
  background:
    radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.6px) 0 0 / 22px 22px,
    repeating-linear-gradient(115deg, rgba(255,255,255,.045) 0 2px, transparent 2px 13px),
    radial-gradient(135% 105% at 50% -45%, rgba(184,138,255,.55), transparent 60%),
    linear-gradient(180deg, #6d28d9 0%, #4c1d95 56%, #36116e 100%);
  border-bottom: 1px solid rgba(0,0,0,.5);
  box-shadow: 0 3px 22px rgba(40,12,82,.55);
}
/* low-opacity action-icon sprites floating behind the logo + nav */
nav.top::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .13;
  background-repeat: no-repeat;
  background-image:
    url(/assets/icons/reply.png), url(/assets/icons/archive.png),
    url(/assets/icons/flag_for_today.png), url(/assets/icons/accept.png),
    url(/assets/icons/search.png), url(/assets/icons/snooze.png),
    url(/assets/icons/forward.png), url(/assets/icons/new_mail.png),
    url(/assets/icons/reply_all.png), url(/assets/icons/move.png);
  background-size: 84px, 70px, 58px, 64px, 76px, 56px, 68px, 62px, 66px, 54px;
  background-position:
    3% 24%, 11% 82%, 20% 32%, 29% 88%, 41% 16%,
    60% 86%, 71% 22%, 81% 82%, 90% 30%, 97% 70%;
}
nav.top .inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 1.4rem .5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0 1.5rem;
}
/* pull the nav row up tight under the logo (the logo PNG carries its own bottom margin) */
nav.top .navlinks, nav.top .nav-cta { margin-top: -1rem; }
/* row 1: the logo only — "Mail Bender" text hidden (font-size:0) */
nav.top .brand {
  flex-basis: 100%; display: flex; justify-content: center; align-items: center;
  font-size: 0; gap: 0; margin: 0; padding: 0;
}
nav.top .brand img {
  height: 200px; width: auto; border-radius: 0;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.55));
}
/* row 2: nav links + CTA, centered under the logo */
nav.top .navlinks { display: flex; gap: 1.7rem; align-items: center; }
nav.top .navlinks a {
  color: rgba(255,255,255,.84); font-size: 1rem; font-weight: 700;
  letter-spacing: -.01em; padding: .2rem 0; position: relative;
  white-space: nowrap; flex: none; text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
nav.top .navlinks a:hover { color: #fff; }
nav.top .navlinks a.active { color: #fff; }
nav.top .navlinks a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.45rem; height: 2px;
  background: #fff; border-radius: 2px;
}
nav.top .spacer { display: none; }
nav.top .nav-cta { display: flex; gap: .6rem; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .62rem 1.15rem; border-radius: 10px;
  font-family: var(--sans); font-size: .92rem; font-weight: 700;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, filter .15s;
  white-space: nowrap; letter-spacing: -.01em;
}
.btn.primary { background: var(--accent); color: var(--ink); }
.btn.primary:hover { background: var(--accent-br); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border-lt); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent-br); }
.btn.pdf { background: rgba(52,210,127,.1); color: var(--accent-br); border-color: rgba(52,210,127,.45); font-weight: 700; }
.btn.pdf:hover { background: rgba(52,210,127,.16); border-color: var(--accent); transform: translateY(-1px); }
.btn.cyan { background: var(--accent); color: var(--ink); }     /* back-compat (tour page) */
.btn.cyan:hover { background: var(--accent-br); transform: translateY(-1px); }
.btn.big { padding: .92rem 1.7rem; font-size: 1.02rem; border-radius: 12px; }

/* ---------- Split manual button (Read | Download PDF ↓) ---------- */
.split-btn {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--accent); border-radius: 14px; overflow: hidden;
  background: rgba(52,210,127,.08);
  box-shadow: 0 8px 26px rgba(52,210,127,.12);
}
.split-btn > a {
  display: flex; align-items: center; gap: .6rem;
  padding: .9rem 1.5rem; color: var(--text); font-weight: 700; letter-spacing: -.01em;
  transition: background .15s, color .15s;
}
.split-btn > a:hover { background: rgba(52,210,127,.16); color: #fff; }
.split-btn .sb-read { font-size: 1rem; }
.split-btn .sb-read .ico { font-size: 1.15rem; }
.split-btn .divider { width: 1px; background: var(--accent); opacity: .55; }
.split-btn .sb-dl {
  background: var(--accent); color: var(--ink); flex-direction: column; gap: 0; line-height: 1;
  padding: .55rem 1.5rem; text-align: center;
}
.split-btn .sb-dl:hover { background: var(--accent-br); color: var(--ink); }
.split-btn .sb-dl .lab { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.split-btn .sb-dl .big { font-size: 1.45rem; font-weight: 900; letter-spacing: .02em; display: flex; align-items: center; gap: .35rem; }
.split-btn .sb-dl .big .arrow { font-size: 1.15rem; }
@media (max-width: 460px) {
  .split-btn { width: 100%; }
  .split-btn .sb-read { flex: 1; justify-content: center; }
}

/* ---------- Layout ---------- */
main { flex: 1 0 auto; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 3.5rem 1.6rem 5rem; }
section { margin: 4.5rem 0; }
section:first-child { margin-top: 1.2rem; }

h1 { font-family: var(--sans-head); font-size: 3.1rem; font-weight: 850; letter-spacing: -.035em; line-height: 1.04; }
h2 {
  font-family: var(--sans-head);
  font-size: 1.95rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  margin-bottom: 1.1rem; display: flex; align-items: center; gap: .7rem;
}
/* short accent tab instead of a heavy full-width underline */
h2::before {
  content: ""; width: 12px; height: 26px; border-radius: 4px; flex: none;
  background: linear-gradient(var(--accent), var(--accent-dk));
}
h2.plain::before { display: none; }
h2 .accent { color: var(--accent); }
h3 { font-family: var(--sans-head); font-size: 1.15rem; font-weight: 750; letter-spacing: -.01em; margin: 1.5rem 0 .5rem; }

/* ---------- Section rhythm — clearer separation so stacked sections don't blur together ---------- */
main > section + section { margin-top: 2.6rem; padding-top: 2.8rem; border-top: 1px solid var(--border); }
main > section > h2:first-child, main > section > h1:first-child { margin-top: .1rem; }
p  { color: var(--text-mut); margin-bottom: 1rem; max-width: 70ch; }
p strong, li strong { color: var(--text); font-weight: 700; }
code { font-family: var(--mono); font-size: .86em; color: var(--accent-br); background: rgba(52,210,127,.09); padding: .12em .42em; border-radius: 5px; }

ul { list-style: none; margin-bottom: 1.2rem; }
ul li { color: var(--text-mut); padding-left: 1.5rem; position: relative; margin-bottom: .5rem; }
ul li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 1.4rem 0 1.5rem; }
.hero img.logo { width: 150px; height: 150px; border-radius: 28px; margin: 0 auto 1.4rem; display: block; box-shadow: var(--shadow); }
.hero .eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .76rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-br); margin-bottom: 1.1rem;
  background: rgba(52,210,127,.09); border: 1px solid rgba(52,210,127,.28);
  padding: .32rem .8rem; border-radius: 100px;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero .tagline { font-size: 1.24rem; color: var(--text-mut); max-width: 640px; margin: 0 auto 2.1rem; line-height: 1.55; }
.hero .cta-row { display: flex; gap: .9rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.price-tag { margin-top: 1.3rem; font-family: var(--mono); font-size: .9rem; color: var(--text-mut); }
.price-tag strong { color: var(--text); font-weight: 800; font-size: 1.08rem; }
.badges { margin: 1.4rem 0 0; display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .7rem; border-radius: 100px; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg-card); border: 1px solid var(--border-lt); color: var(--text-mut);
}
.badge.green { background: rgba(52,210,127,.1); border-color: rgba(52,210,127,.4); color: var(--accent-br); }

/* ---------- Showcase (decks) ---------- */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; margin: 1.6rem 0; }
.shot { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; transition: border-color .2s, transform .2s; }
.shot:hover { border-color: var(--border-lt); transform: translateY(-2px); }
.shot img { width: 100%; display: block; border-radius: 8px; }
.shot .cap { text-align: center; font-family: var(--mono); font-size: .78rem; color: var(--text-mut); margin-top: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.fullshot { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem; margin: 1.6rem 0; box-shadow: var(--shadow); }
.fullshot img { width: 100%; display: block; border-radius: 10px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1.15rem; margin: 1.6rem 0; }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: border-color .2s, transform .2s, background .2s; }
.card:hover { border-color: rgba(52,210,127,.5); transform: translateY(-3px); background: var(--bg-card-2); }
.card .ic { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-br); margin-bottom: .7rem;
  background: rgba(52,210,127,.1); padding: .25rem .55rem; border-radius: 6px; }
.card h3 { margin: 0 0 .4rem; }
.card p { font-size: .95rem; margin: 0; }

/* ---------- Specs ---------- */
.specs { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.specs .row { display: grid; grid-template-columns: 200px 1fr; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.specs .row:last-child { border-bottom: none; }
.specs .k { font-family: var(--mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-br); }
.specs .v { color: var(--text); }

/* ---------- Pricing ---------- */
.price-card { background: var(--bg-card); border: 1px solid var(--border-lt); border-radius: 16px; padding: 2rem; max-width: 460px; box-shadow: var(--shadow); }
.price-card .ic { color: var(--accent-br); }
.price-card .amt { font-size: 2.7rem; font-weight: 850; color: var(--text); margin: .3rem 0; letter-spacing: -.02em; }

/* ---------- Figure block ---------- */
.figure { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; margin: 1.6rem 0; text-align: center; }
.figure img { max-width: 100%; display: block; margin: 0 auto; border-radius: 10px; }
.figure .cap { color: var(--text-mut); font-size: .92rem; margin-top: .9rem; }

/* ---------- Forms ---------- */
.form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.9rem; max-width: 560px; }
.form label { display: block; font-size: .85rem; font-weight: 700; color: var(--text); margin: 1rem 0 .35rem; }
.form label:first-child { margin-top: 0; }
.form input, .form textarea, .form select {
  width: 100%; background: var(--bg); border: 1px solid var(--border-lt); border-radius: 9px;
  color: var(--text); font-family: var(--sans); font-size: .95rem; padding: .68rem .85rem; transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,210,127,.15); }
.form textarea { min-height: 130px; resize: vertical; }
.form .submit { margin-top: 1.3rem; }
.form .note { font-size: .82rem; color: var(--text-dim); margin-top: .8rem; }

/* ---------- Callout ---------- */
.callout { border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.3rem 0; border: 1px solid; }
.callout.warn { background: rgba(255,180,84,.08); border-color: rgba(255,180,84,.5); }
.callout.warn p { color: #ffd9a0; margin: 0; }
.callout.info { background: rgba(52,210,127,.08); border-color: rgba(52,210,127,.45); }
.callout.info p { color: #c7f3da; margin: 0; }

/* ---------- Disclaimer band ---------- */
.disclaimer {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.6rem 1.8rem; margin: 3rem 0 0;
}
.disclaimer h3 {
  margin: 0 0 .6rem; font-size: .82rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-br); display: flex; align-items: center; gap: .5rem;
}
.disclaimer p { color: var(--text-mut); font-size: .92rem; margin: 0; max-width: none; line-height: 1.65; }

/* ---------- Legal pages ---------- */
.legal h1 { font-size: 2.2rem; margin-bottom: .3rem; }
.legal .updated { font-family: var(--mono); font-size: .82rem; color: var(--text-dim); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; }
.legal h2::before { display: none; }
.legal p, .legal li { color: var(--text); }

/* ---------- Footnote ---------- */
.footnote { font-size: .82rem; color: var(--text-dim); margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--border); max-width: none; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); background: var(--bg-elev); margin-top: auto; padding: 2rem 1.6rem; }
footer .inner { max-width: var(--maxw); margin: 0 auto; }
footer .ftop { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
footer .copy { font-family: var(--mono); font-size: .78rem; color: var(--text-dim); }
footer .links a { color: var(--text-mut); font-size: .88rem; margin-left: 1.3rem; font-weight: 600; }
footer .links a:hover { color: var(--text); }
footer .ftrust { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--text-dim); line-height: 1.6; max-width: none; }
footer .ftrust strong { color: var(--text-mut); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.6rem; }
  .shots { grid-template-columns: 1fr; }
  nav.top .inner { gap: .35rem 1rem; padding: .3rem .8rem .7rem; }
  nav.top .brand img { height: 132px; }
  /* mobile: drop the desktop logo-tuck so the CTA can't ride up over the nav links */
  nav.top .navlinks { margin-top: -.4rem; flex-basis: 100%; justify-content: center; flex-wrap: wrap; gap: .55rem 1.1rem; font-size: .9rem; }
  nav.top .nav-cta { margin-top: .35rem; flex-basis: 100%; justify-content: center; }
  nav.top .nav-cta .btn { font-size: .82rem; padding: .5rem .9rem; }
  main { padding: 2rem 1.1rem 3.5rem; }
  .specs .row { grid-template-columns: 1fr; gap: .2rem; }
}

/* hidden business-inquiry form panel (revealed via :target) */
#business-form-panel { display: none; }
#business-form-panel:target { display: block; }


/* ---------- Contact-form AJAX states (forms.js) ---------- */
.form-ok { text-align: center; padding: 2rem 1rem; }
.form-ok .glyph { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 50%; background: rgba(52,210,127,.14); border: 1px solid var(--accent); color: var(--accent-br);
  font-size: 1.7rem; margin-bottom: 1rem; }
.form-ok h3 { margin: 0 0 .4rem; }
.form-err { color: var(--red); font-weight: 600; margin-top: .8rem; }


/* ---------- "Coming soon" modal popup (site.js) ---------- */
.mb-modal-overlay {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; background: rgba(12,8,28,.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s ease;
}
.mb-modal-overlay.show { opacity: 1; }
.mb-modal {
  position: relative; max-width: 420px; width: 100%; text-align: center;
  background: linear-gradient(180deg, #241552, #18102e);
  border: 1px solid rgba(176,130,255,.42); border-radius: 18px;
  padding: 2.4rem 1.8rem 2rem; box-shadow: 0 30px 70px rgba(10,4,30,.7);
  transform: translateY(14px) scale(.98); transition: transform .28s cubic-bezier(.2,.7,.2,1);
}
.mb-modal-overlay.show .mb-modal { transform: none; }
.mb-modal-glyph { font-size: 2.8rem; margin-bottom: .7rem; }
.mb-modal h3 { font-size: 1.6rem; margin: 0 0 .6rem; color: #fff; }
.mb-modal p { color: rgba(255,255,255,.78); max-width: 36ch; margin: 0 auto 1.5rem; }
.mb-modal-ok { min-width: 130px; }
.mb-modal-x {
  position: absolute; top: .6rem; right: .85rem; background: none; border: none;
  color: rgba(255,255,255,.55); font-size: 1.7rem; line-height: 1; cursor: pointer; padding: .15rem .35rem;
}
.mb-modal-x:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .mb-modal-overlay, .mb-modal { transition: opacity .2s; } }
