/* ============================================================
   SecureMyEmails brand design system
   Colours: #1b1c6f deep indigo-blue, #6cbc4b green (CTA)
   Type: Plus Jakarta Sans + Quicksand (brand name)
   ============================================================ */

:root {
  --brand:      #1b1c6f;
  --brand-700:  #2a2c93;
  --brand-600:  #3d40b0;
  --brand-tint: #eef0fb;
  --brand-tint2:#e3e6f7;

  --green:      #6cbc4b;
  --green-700:  #58a23a;
  --green-800:  #4a8d30;
  --green-tint: #eef7e7;

  --ink:        #16173a;
  --ink-soft:   #3a3c57;
  --muted:      #5a5c70;
  --muted-2:    #7b7d90;
  --line:       #dadcec;
  --line-soft:  #eaecf5;
  --bg:         #ffffff;
  --bg-band:    #f5f6fc;
  --bg-band-2:  #eceefa;

  --pass:    #2f9e44;  --pass-bg: #e8f6ec;
  --warn:    #b9770a;  --warn-bg: #fbf0db;
  --risk:    #c23934;  --risk-bg: #fbe7e6;

  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --maxw: 1140px;
  --readw: 680px;
  --gutter: clamp(18px, 5vw, 44px);

  --sh-sm: 0 1px 2px rgba(27,28,111,.06), 0 1px 3px rgba(27,28,111,.05);
  --sh-md: 0 6px 20px rgba(27,28,111,.08), 0 2px 6px rgba(27,28,111,.05);
  --sh-lg: 0 20px 50px rgba(27,28,111,.14), 0 6px 16px rgba(27,28,111,.07);

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--muted);
  background: var(--bg);
  font-size: 17.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: clamp(19px, 1.7vw, 22px); }
p { margin: 0; text-wrap: pretty; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--brand-600); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.read { max-width: var(--readw); }
.section { padding-block: clamp(54px, 7.5vw, 96px); }
#provoke.section { padding-block: clamp(10px, 1.2vw, 16px); }
.band { background: var(--bg-band); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-700);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--green); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em;
  border: 1.5px solid transparent; border-radius: var(--r-md);
  padding: 14px 24px; cursor: pointer; text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .08s ease, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 2px 0 var(--green-800), var(--sh-sm); }
.btn-primary:hover { background: var(--green-700); box-shadow: 0 2px 0 var(--green-800), var(--sh-md); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 0 0 var(--green-800); }
.btn-blue { background: var(--brand); color: #fff; }
.btn-blue:hover { background: var(--brand-600); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn .arrow { font-size: 19px; line-height: 0; }

.mono { font-family: var(--mono); }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-soft); }

::-moz-selection { background: var(--brand); color: #fff; }

::selection { background: var(--brand); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }

/* ---------- HEADER ---------- */
.header { background: #fff; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 40; }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--brand); }
.brand:hover { text-decoration: none; }
.brand__mark { display: grid; place-items: center; flex-shrink: 0; }
.brand__name { font-family: 'Quicksand', 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: -0.01em; color: var(--brand); }
.brand__name b { color: var(--green); }
.header__nav { display: flex; align-items: center; gap: 28px; }
.header__nav a { color: var(--ink-soft); font-size: 15.5px; font-weight: 600; }
.header__nav a:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 840px) { .header__nav .nav-only { display: none; } }

/* Branded (MSP white-label) header */
.brand-area { display: flex; align-items: center; gap: 14px; }
.brand-partner-logo { max-height: 36px; max-width: 160px; -o-object-fit: contain; object-fit: contain; }
.brand-partner-name { font-weight: 800; font-size: 19px; color: var(--ink); }
.brand-powered { font-size: 13px; color: var(--muted); white-space: nowrap; }
.brand-powered a.brand--inline { font-family: 'Quicksand', 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13px; color: var(--brand); display: inline; gap: 0; }
.brand-powered a.brand--inline b { color: var(--green); }
@media (max-width: 520px) { .brand-powered { display: none; } }

/* ---------- HERO ---------- */
.hero { padding-block: clamp(44px, 6vw, 78px); position: relative; overflow: hidden; }
.hero__lead { margin-bottom: clamp(30px, 4vw, 48px); }
.hero h1 { margin: 16px 0 20px; }
.hero h1 .hl { color: var(--brand); }

/* ---------- CHECKER ---------- */
.checker { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-lg); padding: clamp(22px, 2.6vw, 30px); position: relative; }
.checker__topline { height: 4px; background: var(--green); border-radius: var(--r-pill); width: 46px; margin-bottom: 18px; }
.checker__label { font-weight: 800; font-size: 19px; color: var(--ink); display: block; margin-bottom: 5px; letter-spacing: -0.01em; }
.checker__help { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.checker__inputrow { display: flex; gap: 10px; align-items: stretch; }
@media (max-width: 520px) { .checker__inputrow { flex-direction: column; } }
.checker__input { flex: 1; min-width: 0; font-family: var(--font); font-size: 16.5px; color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.checker__input::-moz-placeholder { color: var(--muted-2); }
.checker__input::placeholder { color: var(--muted-2); }
.checker__input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); outline: none; }
.checker__errmsg { margin-top: 12px; font-size: 14.5px; font-weight: 600; color: var(--risk); background: var(--risk-bg); border: 1px solid #f1c9c7; padding: 10px 14px; border-radius: var(--r-md); }
.checker__smallprint { font-size: 13.5px; color: var(--muted); margin-top: 14px; display: flex; align-items: center; gap: 8px; }

/* ---------- WHY / SPOOF ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 66px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.why-copy p { font-size: 17px; color: var(--ink-soft); margin-top: 16px; }
.spoof { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); }
.inbox__tabs { display: flex; gap: 22px; padding: 14px 18px 0; border-bottom: 1px solid var(--line-soft); }
.inbox__tab { font-size: 13.5px; font-weight: 600; color: var(--muted); padding-bottom: 10px; }
.inbox__tab.on { color: #0f6cbd; box-shadow: inset 0 -2px 0 #0f6cbd; }
.mail { display: grid; grid-template-columns: auto 1fr; gap: 13px; padding: 14px 18px; position: relative; }
.mail + .mail { border-top: 1px solid var(--line-soft); }
.mail--unread { background: #f4f9fd; }
.mail--unread::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #0f6cbd; }
.mail--fake { background: var(--risk-bg); }
.mail--fake::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--risk); }
.mail__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.mail__main { min-width: 0; }
.mail__l1 { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mail__from { font-weight: 700; font-size: 15px; color: var(--ink); }
.mail__time { font-size: 12.5px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.mail__subj { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.mail__bang { color: var(--risk); font-weight: 900; }
.mail__prev { font-size: 13px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail__flag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); background: var(--risk); color: #fff; margin-top: 8px; }
.spoof__note { background: var(--warn-bg); border-top: 1px solid #efdcb0; padding: 15px 18px; font-size: 14.5px; color: #6b4a08; }

/* ---------- PROVOKE BILLBOARD ---------- */
.provoke { background: linear-gradient(160deg, var(--brand), #14154f); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px); text-align: center; display: grid; justify-items: center; gap: 24px; }
.provoke__q { color: #fff; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.08; letter-spacing: -0.02em; max-width: 16em; }
.provoke__cta { font-size: 18px; padding: 16px 32px; }

/* ---------- DIFFERENTIATOR BAND ---------- */
.diffband { background: linear-gradient(160deg, var(--brand), #14154f); border-radius: var(--r-xl); padding: clamp(36px, 5.5vw, 64px); position: relative; overflow: hidden; }
.diffband__intro { display: flex; align-items: center; gap: 26px; }
.diffband__photo { width: 96px; height: 96px; border-radius: 50%; -o-object-fit: cover; object-fit: cover; border: 3px solid rgba(255,255,255,.22); flex-shrink: 0; }
@media (max-width: 560px) { .diffband__intro { gap: 18px; } .diffband__photo { width: 74px; height: 74px; } }
.diffband h2 { color: #fff; max-width: 16em; }
.diffband p { color: rgba(255,255,255,.82); font-size: 17.5px; margin-top: 16px; max-width: 40em; }
.diffband__form { display: flex; gap: 10px; max-width: 540px; margin-top: 28px; }
@media (max-width: 480px) { .diffband__form { flex-direction: column; } }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-md); padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 14px; }
.quote blockquote { margin: 0; color: #fff; font-size: 16px; line-height: 1.5; font-weight: 500; }

/* ---------- NAV RESOURCES DROPDOWN ---------- */
.navdrop { position: relative; display: inline-flex; }
.navdrop__trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 15.5px; font-weight: 600; color: var(--ink-soft); padding: 0;
}
.navdrop__trigger:hover { color: var(--brand); }
.navdrop__chev { font-size: 10px; line-height: 1; transition: transform .18s ease; }
.navdrop--open .navdrop__chev { transform: rotate(180deg); }
.navdrop__panel {
  display: none; position: absolute; top: calc(100% + 16px); right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg); padding: 24px 26px;
  grid-template-columns: repeat(3, minmax(168px, 1fr)); gap: 28px; z-index: 50;
}
.navdrop--open .navdrop__panel { display: grid; }
.navdrop__panel::before {
  content: ""; position: absolute; top: -7px; right: 26px;
  width: 13px; height: 13px; background: #fff;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.navdrop__col h6 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.navdrop__col a { display: block; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; padding: 6px 0; line-height: 1.3; }
.navdrop__col a:hover { color: var(--brand); text-decoration: none; }
@media (max-width: 720px) {
  .navdrop__panel { grid-template-columns: 1fr; gap: 20px; width: min(86vw, 300px); max-height: 72vh; overflow: auto; padding: 20px; }
}

/* ---------- FOOTER ---------- */
.footer { background: var(--bg-band); border-top: 1px solid var(--line-soft); }
.footer__inner { padding-block: 50px 34px; display: grid; gap: 34px; }
.footer__inner--full { grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; }
@media (max-width: 1080px) { .footer__inner--full { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer__inner--full > div:nth-child(n+5) { display: none; } }
@media (max-width: 720px) { .footer__inner--full { grid-template-columns: 1fr 1fr; gap: 28px; } .footer__inner--full > div:nth-child(n+5) { display: block; } }
.footer__brand { grid-row: span 1; }
.footer__bio { color: var(--muted); font-size: 14.5px; margin-top: 14px; line-height: 1.55; max-width: 26em; }
.footer h5 { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 700; }
.footer a { display: block; color: var(--ink-soft); font-size: 14px; padding: 4px 0; }
.footer a:hover { color: var(--brand); }
.footer__bar { border-top: 1px solid var(--line); padding-block: 20px; font-size: 14px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.footer__bar a { display: inline; padding: 0; font-size: 14px; color: var(--muted); }
.footer__bar a:hover { color: var(--brand); }

/* ---------- COOKIE BAR ---------- */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  padding: 14px var(--gutter); box-shadow: 0 -6px 20px rgba(22,23,58,.18);
}
.cookiebar p { font-size: 14.5px; color: rgba(255,255,255,.88); margin: 0; }
.cookiebar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookiebar .btn { padding: 9px 20px; font-size: 15px; }

/* ---- Sector landing pages ---- */
.sector-body { max-width: 860px; margin: 0 auto; padding: clamp(20px,4vw,44px) var(--gutter) clamp(44px,7vw,84px); }
.sector-body h2 { font-size: clamp(22px,2.6vw,30px); margin: 46px 0 14px; }
.sector-body h2:first-child { margin-top: 6px; }
.sector-body h3 { font-size: 19px; margin: 0 0 6px; }
.sector-body p { margin: 0 0 16px; line-height: 1.62; color: var(--ink-soft); }
.sector-lead { font-size: clamp(18px,2.1vw,21px); color: var(--ink-soft); margin: 6px 0 26px; }
.sector-cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 6px 0 8px; }
@media (min-width: 720px){ .sector-cards { grid-template-columns: 1fr 1fr; } }
.sector-card { background: var(--bg); border: 1px solid var(--line-soft); border-left: 4px solid var(--green); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--sh-sm); }
.sector-card h3 { margin: 0 0 6px; }
.sector-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.sector-panel { background: var(--bg-band); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px 24px; margin: 26px 0; }
.sector-panel h2, .sector-panel h3 { margin-top: 0; }
.sector-check { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.sector-check li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.sector-check li::before { content: "\2713"; position: absolute; left: 0; top: 1px; color: var(--green-700); font-weight: 800; }
.sector-faq h3 { margin: 22px 0 6px; }

