/* eRMA v10 launch site - shared stylesheet.
   All selectors are prefixed .erma- or scoped under .erma-site so the file can be dropped into
   WordPress (theme or Custom HTML block) without clashing with theme CSS. */
:root {
  --erma-blue: #1B3A6B;
  --erma-blue-900: #0f2347;
  --erma-terracotta: #8B1A0E;
  --erma-amber: #D4821A;
  --erma-charcoal: #3A3A3A;
  --erma-white: #FAF7F2;
  --erma-sand: #EFE9DD;
  --erma-slate: #6B7280;
  --erma-ink: #1c1c1c;
  --erma-radius: 12px;
  --erma-max: 1160px;
}
.erma-site *, .erma-site *::before, .erma-site *::after { box-sizing: border-box; }
.erma-site { margin: 0; background: var(--erma-white); color: var(--erma-ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
.erma-site a { color: inherit; }
.erma-site img, .erma-site svg { max-width: 100%; }
.erma-wrap { max-width: var(--erma-max); margin: 0 auto; padding: 0 24px; }
.erma-skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 10px 14px; z-index: 100; }
.erma-skip:focus { left: 8px; top: 8px; }
.erma-site :focus-visible { outline: 3px solid var(--erma-amber); outline-offset: 2px; border-radius: 4px; }

/* Header */
.erma-head { position: sticky; top: 0; z-index: 50; background: var(--erma-blue-900); color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.erma-head .erma-wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.erma-site .erma-logo { font-weight: 800; font-size: 20px; letter-spacing: -.01em; text-decoration: none; display: flex; align-items: center; gap: 10px; color: #fff; }
.erma-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--erma-amber); color: var(--erma-blue-900); display: grid; place-items: center; font-weight: 900; }
.erma-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.erma-site .erma-nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; color: #e6ebf5; }
.erma-nav a:hover { background: rgba(255,255,255,.1); }
.erma-nav a[aria-current="page"] { color: #fff; font-weight: 700; }

/* Buttons */
.erma-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 10px;
  font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .12s, background .12s; }
.erma-btn:hover { transform: translateY(-1px); }
.erma-site .erma-btn-primary { background: var(--erma-amber); color: #1a1000; }
.erma-btn-primary:hover { background: #e28f26; }
.erma-site .erma-btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.erma-btn-ghost:hover { background: rgba(255,255,255,.1); }
.erma-site .erma-btn-dark { background: var(--erma-blue); color: #fff; }
.erma-btn-dark:hover { background: var(--erma-blue-900); }
.erma-btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

/* Hero */
.erma-hero { background: radial-gradient(1200px 500px at 85% -10%, #2a5aa8 0%, transparent 60%), var(--erma-blue-900); color: #fff; padding: 88px 0 96px; }
.erma-eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--erma-amber); margin-bottom: 18px; }
.erma-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 22px; max-width: 16ch; }
.erma-hero h1 em { font-style: normal; color: var(--erma-amber); }
.erma-lede { font-size: clamp(18px, 2.2vw, 22px); color: #dbe4f4; max-width: 46ch; margin: 0 0 32px; }
.erma-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.erma-hero-meta { margin-top: 36px; display: flex; gap: 10px 28px; flex-wrap: wrap; color: #b9c7e2; font-size: 15px; }
.erma-hero-meta span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--erma-amber); margin-right: 10px; }

/* Banner */
.erma-banner { background: var(--erma-terracotta); color: #fff; }
.erma-banner .erma-wrap { display: flex; gap: 12px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.erma-banner p { margin: 0; font-weight: 600; }
.erma-banner a { font-weight: 800; }

/* Sections */
.erma-sec { padding: 84px 0; }
.erma-sec.alt { background: var(--erma-sand); }
.erma-sec.dark { background: var(--erma-blue); color: #fff; }
.erma-sec h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; max-width: 20ch; }
.erma-sec .erma-sub { font-size: 19px; color: var(--erma-charcoal); max-width: 56ch; margin: 0 0 40px; }
.erma-sec.dark .erma-sub { color: #d3dcee; }
.erma-kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--erma-terracotta); margin-bottom: 12px; display: block; }
.erma-sec.dark .erma-kicker { color: var(--erma-amber); }

/* Pain / stats */
.erma-grid { display: grid; gap: 20px; }
.erma-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.erma-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.erma-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.erma-card { background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: var(--erma-radius); padding: 26px; }
.erma-sec.alt .erma-card { border-color: transparent; }
.erma-card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.01em; }
.erma-card p { margin: 0; color: var(--erma-charcoal); }
.erma-card .erma-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--erma-blue); background: #e6ecf7; border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.erma-pain { border-left: 5px solid var(--erma-terracotta); }
.erma-pain h3 { font-size: 22px; }
.erma-dark-card { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #fff; }
.erma-dark-card p { color: #d3dcee; }
.erma-num { font-size: 44px; font-weight: 900; letter-spacing: -.03em; color: var(--erma-amber); line-height: 1; margin-bottom: 8px; }

/* Module rows (platform page) */
.erma-mod { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid rgba(0,0,0,.12); }
.erma-mod:first-of-type { border-top: 0; }
.erma-mod h3 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.015em; }
.erma-mod .erma-q { color: var(--erma-terracotta); font-weight: 700; margin: 0; }
.erma-mod ul { margin: 12px 0 0; padding-left: 20px; color: var(--erma-charcoal); }
.erma-mod li { margin: 6px 0; }
.erma-mod p { margin: 0 0 8px; }

/* Steps */
.erma-steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.erma-step { position: relative; padding-top: 52px; }
.erma-step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--erma-amber); color: #1a1000; font-weight: 900; display: grid; place-items: center; }
.erma-step h3 { margin: 0 0 6px; font-size: 20px; }
.erma-step p { margin: 0; color: #d3dcee; }

/* CTA band */
.erma-cta { background: var(--erma-blue-900); color: #fff; text-align: center; padding: 88px 0; }
.erma-cta h2 { margin: 0 auto 16px; max-width: 18ch; font-size: clamp(32px, 5vw, 54px); line-height: 1.08; letter-spacing: -.02em; }
.erma-cta p { color: #d3dcee; max-width: 52ch; margin: 0 auto 30px; font-size: 19px; }
.erma-cta .erma-cta-row { justify-content: center; }

/* Forms */
.erma-form { display: grid; gap: 16px; max-width: 560px; }
.erma-form label { font-weight: 700; display: grid; gap: 6px; font-size: 15px; }
.erma-form input, .erma-form select, .erma-form textarea { font: inherit; padding: 12px 14px; border-radius: 8px; border: 1.5px solid #b9b4a8; background: #fff; color: var(--erma-ink); min-height: 46px; }
.erma-form textarea { min-height: 110px; resize: vertical; }
.erma-note { font-size: 14px; color: var(--erma-slate); }
.erma-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Event card */
.erma-event { background: #fff; border-radius: var(--erma-radius); padding: 28px; border-top: 6px solid var(--erma-amber); }
.erma-event dl { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; }
.erma-event dt { font-weight: 800; color: var(--erma-blue); }
.erma-event dd { margin: 0; }

/* Footer */
.erma-foot { background: #0a1730; color: #b9c7e2; padding: 48px 0 36px; font-size: 15px; }
.erma-foot .erma-wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.erma-foot a { text-decoration: none; }
.erma-foot a:hover { text-decoration: underline; }
.erma-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.erma-foot small { display: block; width: 100%; color: #8497bb; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }

@media (max-width: 960px) {
  .erma-g3, .erma-g4, .erma-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erma-mod { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .erma-wrap { padding: 0 16px; }
  .erma-g2, .erma-g3, .erma-g4, .erma-steps { grid-template-columns: 1fr; }
  .erma-sec { padding: 56px 0; }
  .erma-hero { padding: 56px 0 64px; }
  .erma-site .erma-nav a { padding: 8px; font-size: 14px; }
  .erma-event dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .erma-btn { transition: none; } .erma-btn:hover { transform: none; } }

/* Product brochure page (brochure.html). Scoped .erma-br-* */
.erma-br-logo { width: 34px; height: 34px; display: block; }
.erma-br-hero-logo { width: 88px; height: 88px; display: block; margin-bottom: 22px; }
.erma-br-hero .erma-br-back { display: flex; width: max-content; }
.erma-br-hero .erma-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.erma-br-hero svg { width: 100%; height: auto; display: block; }
.erma-br-fig { background: var(--erma-sand); border-radius: var(--erma-radius); padding: 20px; overflow-x: auto; }
.erma-sec.alt .erma-br-fig { background: #fff; }
.erma-br-fig svg { width: 100%; height: auto; display: block; min-width: 560px; }
.erma-br-fig.small svg { min-width: 300px; }
.erma-br-cap { font-size: 14px; color: var(--erma-slate); margin: 10px 0 0; }
.erma-br-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.erma-br-stack { display: grid; gap: 20px; }
.erma-br-card { border-left: 5px solid var(--erma-blue); padding: 22px; }
.erma-sec.alt .erma-br-card { border-left-color: var(--erma-blue); }
.erma-br-card h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.erma-br-card .erma-br-out { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--erma-terracotta); }
.erma-br-card .erma-br-out::before { content: "\2192\00a0"; color: var(--erma-amber); }
.erma-br-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; }
.erma-br-ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.erma-br-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--erma-blue); color: #fff; font-weight: 900; font-size: 18px; margin-right: 12px; vertical-align: 6px; }
.erma-br-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--erma-radius); overflow: hidden; font-size: 16px; }
.erma-br-table th { text-align: left; background: var(--erma-blue); color: #fff; padding: 12px 14px; }
.erma-br-table td { padding: 12px 14px; border-top: 1px solid rgba(0,0,0,.08); vertical-align: top; }
.erma-br-table td:first-child { font-weight: 800; color: var(--erma-blue); white-space: nowrap; }
.erma-br-tablewrap { overflow-x: auto; }
.erma-br-path svg { width: 100%; height: auto; display: block; min-width: 560px; }
.erma-br-path { overflow-x: auto; margin: 8px 0 36px; }
@media (max-width: 960px) {
  .erma-br-hero .erma-wrap, .erma-br-split { grid-template-columns: 1fr; }
}

/* Form states and spam controls (demo form; reusable on any form with data-erma-guard) */
.erma-field { display: grid; gap: 6px; }
.erma-form .erma-field > label { display: block; }
.erma-form[hidden] { display: none; }
.erma-opt { font-weight: 400; color: var(--erma-slate); }
.erma-form [aria-invalid="true"] { border-color: var(--erma-terracotta); border-width: 2px; }
.erma-err { margin: 0; font-size: 14px; font-weight: 600; color: var(--erma-terracotta); display: flex; gap: 6px; align-items: flex-start; }
.erma-err[hidden] { display: none; }
.erma-err::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--erma-terracotta); color: #fff; font-size: 12px; font-weight: 900; margin-top: 1px; }
.erma-count { margin: 0; font-size: 13px; color: var(--erma-slate); }
.erma-turnstile { min-height: 0; max-width: 100%; overflow: hidden; }
.erma-turnstile.is-on { min-height: 65px; }
.erma-consent { margin: 0; font-size: 13px; color: var(--erma-slate); }
.erma-consent a { color: var(--erma-blue); }
.erma-formmsg { border-radius: 8px; padding: 12px 14px; font-weight: 600; font-size: 15px; background: #f6e3df; color: var(--erma-terracotta); border-left: 4px solid var(--erma-terracotta); }
.erma-formmsg[hidden] { display: none; }
.erma-formmsg.is-info { background: #e6ecf7; color: var(--erma-blue); border-left-color: var(--erma-blue); }
.erma-form button[disabled] { opacity: .65; cursor: progress; transform: none; }
.erma-formdone { border-left: 5px solid var(--erma-amber); padding: 4px 0 4px 20px; }
.erma-formdone[hidden] { display: none; }
.erma-formdone h2 { margin: 0 0 8px; font-size: 26px; }
.erma-br-promo { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 36px; align-items: center; }
.erma-br-promo-logo { width: 140px; height: 140px; border-radius: 28px; background: var(--erma-blue-900); padding: 14px; }
.erma-br-promo .erma-sub { margin-bottom: 28px; }
.erma-br-back { display: inline-flex; align-items: center; gap: 6px; color: #dbe4f4; font-weight: 700; text-decoration: none; margin-bottom: 22px; font-size: 15px; }
.erma-br-back:hover { text-decoration: underline; }
@media (max-width: 640px) { .erma-br-promo { grid-template-columns: 1fr; gap: 20px; } .erma-br-promo-logo { width: 96px; height: 96px; border-radius: 20px; } }
