/* mailq.es marketing site · Mailab-style redesign (2026-11-11)
 * Blue + magenta brand on white, rounded cards with soft shadows, eyebrow labels,
 * a blue stats band, a dark navy band and a navy footer. See ../../design.md.
 * Status colours (ok/warn/fail) are unchanged: red still means failure only,
 * and magenta is never used for a status.
 */

@font-face { font-family: "Sora"; src: url("/assets/fonts/Sora-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
/* Public Sans ships from /assets/fonts: /fonts/PublicSans-*.ttf are mislabelled (400 is IBM Plex Mono, 600 is Public Sans Italic 400). */
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/PublicSans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/PublicSans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }

/* Light palette on bare :root; dark redefines ONLY tokens, guarded so an
 * explicit light choice beats a dark OS, and again under [data-theme="dark"]. */
:root {
  --paper:        #FFFFFF;
  --surface:      #FFFFFF;
  --surface-alt:  #F4F6FC;
  --surface-2:    #EAEEF9;

  --ink:          #0C1645;   /* navy headings */
  --ink-dim:      #4B5578;
  --ink-faint:    #6B7494;

  --rule:         #E3E7F2;
  --rule-strong:  #CBD2E4;

  --accent:       #1A56F0;   /* brand blue: 5.78:1 with white */
  --accent-soft:  #E6EDFF;
  --accent-ink:   #FFFFFF;
  --magenta:      #C8157F;   /* brand magenta: 5.43:1 with white */
  --magenta-soft: #FCE4F2;
  --magenta-ink:  #FFFFFF;

  --band:         #0C1645;   /* dark band + footer */
  --band-2:       #16215A;
  --band-ink:     #FFFFFF;
  --band-dim:     #B9C2E3;

  --ok:           #15704A;
  --ok-soft:      #D7EDE2;
  --warn:         #8A5407;
  --warn-soft:    #F6E9D2;
  --fail:         #B3261E;
  --fail-soft:    #F6DDDB;

  --shadow:       0 1px 2px rgba(12, 22, 69, .05), 0 12px 32px -12px rgba(12, 22, 69, .16);
  --shadow-lg:    0 2px 4px rgba(12, 22, 69, .05), 0 24px 56px -20px rgba(12, 22, 69, .28);

  --font-display: "Sora", system-ui, -apple-system, sans-serif;
  --font-body:    "Public Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-xs:   12px;
  --text-sm:   13.5px;
  --text-base: 15px;
  --text-md:   17px;
  --text-lg:   21px;
  --text-xl:   27px;
  --text-2xl:  36px;
  --text-3xl:  52px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #0A0F1F;
    --surface:      #121A30;
    --surface-alt:  #0E1528;
    --surface-2:    #1A2440;
    --ink:          #E8ECF7;
    --ink-dim:      #A3ADC8;
    --ink-faint:    #7F89A6;
    --rule:         #222C48;
    --rule-strong:  #34405F;
    --accent:       #7EA0FF;
    --accent-soft:  #18254C;
    --accent-ink:   #0A0F1F;
    --magenta:      #FF6EC4;
    --magenta-soft: #3A1530;
    --magenta-ink:  #0A0F1F;
    --band:         #060A17;
    --band-2:       #121A30;
    --band-ink:     #E8ECF7;
    --band-dim:     #A3ADC8;
    --ok:           #4CBE8A;
    --ok-soft:      #122A20;
    --warn:         #E0A33C;
    --warn-soft:    #2B2313;
    --fail:         #E87066;
    --fail-soft:    #301A18;
    --shadow:       0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg:    0 2px 4px rgba(0, 0, 0, .3), 0 24px 56px -20px rgba(0, 0, 0, .7);
  }
}

:root[data-theme="dark"] {
  --paper:        #0A0F1F;
  --surface:      #121A30;
  --surface-alt:  #0E1528;
  --surface-2:    #1A2440;
  --ink:          #E8ECF7;
  --ink-dim:      #A3ADC8;
  --ink-faint:    #7F89A6;
  --rule:         #222C48;
  --rule-strong:  #34405F;
  --accent:       #7EA0FF;
  --accent-soft:  #18254C;
  --accent-ink:   #0A0F1F;
  --magenta:      #FF6EC4;
  --magenta-soft: #3A1530;
  --magenta-ink:  #0A0F1F;
  --band:         #060A17;
  --band-2:       #121A30;
  --band-ink:     #E8ECF7;
  --band-dim:     #A3ADC8;
  --ok:           #4CBE8A;
  --ok-soft:      #122A20;
  --warn:         #E0A33C;
  --warn-soft:    #2B2313;
  --fail:         #E87066;
  --fail-soft:    #301A18;
  --shadow:       0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg:    0 2px 4px rgba(0, 0, 0, .3), 0 24px 56px -20px rgba(0, 0, 0, .7);
}

/* ------------------------------------------------------------------ */
/* Site layer. Every colour and family below reads a token above.      */
/* ------------------------------------------------------------------ */

:root {
  --measure: 62ch;
  --wrap: 1180px;
  --gutter: 32px;
  --section-y: 104px;
  --header-h: 72px;
  --accent-hover: color-mix(in oklab, var(--accent) 84%, var(--ink));
  --magenta-hover: color-mix(in oklab, var(--magenta) 84%, var(--ink));
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"]  { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--header-h) + var(--space-4)); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
  color: var(--ink);
}
h1 { font-size: var(--text-3xl); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-lg); line-height: 1.3; letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mono, code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9em;
}
.num, table { font-variant-numeric: tabular-nums; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--space-4); top: -60px; z-index: 20;
  background: var(--accent); color: var(--accent-ink); padding: var(--space-2) var(--space-4);
  font-weight: 600; text-decoration: none; border-radius: var(--radius-sm);
}
.skip:focus { top: var(--space-2); color: var(--accent-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.lede { font-size: var(--text-md); color: var(--ink-dim); max-width: var(--measure); }
.small { font-size: var(--text-sm); color: var(--ink-dim); }

/* eyebrow: small blue caps above every section title, as in the reference */
.eyebrow {
  display: block; margin-bottom: var(--space-3);
  font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.franking { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600;
  line-height: 1.2; white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: background-color .15s ease-out, border-color .15s ease-out, transform .15s ease-out;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-accent { background: var(--magenta); color: var(--magenta-ink); }
.btn-accent:hover { background: var(--magenta-hover); color: var(--magenta-ink); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-quiet:hover { color: var(--accent); border-color: var(--accent); }
.btn-arrow::after { content: "›"; font-size: 1.3em; line-height: 0; margin-top: -2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--accent); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em;
}
.brand:hover { color: var(--accent); }
.brand svg { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.brand .tld { color: var(--magenta); font-weight: 700; }
.mark-bg { fill: var(--accent); }
.mark-fg { fill: var(--paper); stroke: var(--paper); }

.nav { display: flex; align-items: center; gap: var(--space-6); flex: 1; justify-content: flex-end; }
.nav-links { display: flex; gap: var(--space-6); list-style: none; margin: 0 auto 0 var(--space-8); padding: 0; }
.nav-links a, .nav-aux a:not(.btn) {
  color: var(--ink); text-decoration: none; font-family: var(--font-display); font-size: var(--text-sm); font-weight: 500; white-space: nowrap;
}
.nav-links a:hover, .nav-aux a:not(.btn):hover { color: var(--accent); }
.nav-links a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav-aux { display: flex; align-items: center; gap: var(--space-4); }
.nav-aux .btn { min-height: 40px; padding: var(--space-2) var(--space-4); }
.lang { font-family: var(--font-mono) !important; font-size: var(--text-xs) !important; letter-spacing: .04em; border: 1px solid var(--rule-strong); border-radius: var(--radius-sm); padding: 5px var(--space-2); }

.nav-toggle {
  display: none;
  min-height: 44px; min-width: 44px; padding: 0 var(--space-3);
  background: none; border: 1px solid var(--rule-strong); color: var(--ink); border-radius: var(--radius-sm);
  font: 600 var(--text-sm) var(--font-display); cursor: pointer;
}

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: var(--space-4); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 var(--section-y); position: relative; }
.hero::before { /* dotted grid, a nod to the reference's decorative dots */
  content: ""; position: absolute; right: 0; top: 40px; width: 220px; height: 160px; opacity: .5; pointer-events: none;
  background: radial-gradient(var(--rule-strong) 1.5px, transparent 1.6px) 0 0 / 18px 18px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.hero h1 { margin-bottom: var(--space-6); max-width: 15ch; }
.hero .lede { font-size: var(--text-md); line-height: 1.65; margin-bottom: var(--space-8); }
.hero-note { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--ink-dim); }

/* four-petal mark: the four services as the reference's circle cluster */
.hero-art { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 460px; margin-left: auto; position: relative; list-style: none; padding: 0; }
.hero-art li {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1);
  text-align: center; padding: var(--space-4);
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg);
  box-shadow: var(--shadow-lg);
}
.hero-art li small { font-family: var(--font-mono); font-weight: 400; font-size: var(--text-xs); opacity: .85; }
.hero-art li:nth-child(1) { background: #1A56F0; border-radius: 50% 50% 0 50%; }
.hero-art li:nth-child(2) { background: #C8157F; border-radius: 50% 50% 50% 0; }
.hero-art li:nth-child(3) { background: #C8157F; border-radius: 50% 0 50% 50%; }
.hero-art li:nth-child(4) { background: #1A56F0; border-radius: 0 50% 50% 50%; }
.hero-art::after { /* the mailq mark sits where the four meet */
  content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--paper) url("/assets/brand/mailq-mark.svg") center / 40px no-repeat;
  box-shadow: var(--shadow-lg);
}

/* ---------- stats band ---------- */
.stats-band { background: var(--accent); color: #fff; padding: 48px 0; }
:root[data-theme="dark"] .stats-band { background: #1A3FB8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stats-band { background: #1A3FB8; } }
.stats-band ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); text-align: center; }
.stats-band strong { display: block; font-family: var(--font-display); font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.stats-band span { display: block; margin-top: var(--space-2); font-size: var(--text-sm); color: #DCE5FF; }

/* the ledger: per-seat arithmetic */
.ledger { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.ledger-head { padding: var(--space-6) var(--space-6) var(--space-4); display: flex; justify-content: space-between; gap: var(--space-4); align-items: baseline; flex-wrap: wrap; }
.ledger-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); }
.ledger-sub { font-size: var(--text-xs); color: var(--ink-dim); }
.ledger table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.ledger th, .ledger td { padding: var(--space-3) var(--space-6); text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--rule); }
.ledger thead th { font-size: var(--text-xs); font-weight: 600; color: var(--ink-faint); letter-spacing: .08em; text-transform: uppercase; padding-top: var(--space-2); padding-bottom: var(--space-2); background: var(--surface-alt); }
.ledger td.amt, .ledger th.amt { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.ledger tbody th { font-weight: 400; }
.ledger .calc { display: block; font-size: var(--text-xs); color: var(--ink-dim); font-weight: 400; }
.ledger tr.ours th, .ledger tr.ours-alt th { font-weight: 600; }
.ledger tr.ours th, .ledger tr.ours td { background: var(--accent-soft); }
.ledger tr.ours td.amt { color: var(--accent); font-weight: 600; font-size: var(--text-md); }
.ledger tr.ours-alt td.amt { color: var(--magenta); font-weight: 600; }
.ledger-foot { padding: var(--space-4) var(--space-6); font-size: var(--text-sm); }
.ledger-foot strong { font-family: var(--font-display); color: var(--magenta); }
.ledger-src { padding: 0 var(--space-6) var(--space-6); font-size: var(--text-xs); color: var(--ink-faint); }

/* ---------- migration ---------- */
.two-col h2 { margin-bottom: var(--space-4); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.two-col.middle { align-items: center; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--space-4);
  padding: var(--space-6); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: var(--text-md); font-weight: 700;
  color: var(--magenta); background: var(--magenta-soft); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
}
.steps h3 { font-size: var(--text-md); margin-bottom: var(--space-1); letter-spacing: 0; }
.steps p { color: var(--ink-dim); font-size: var(--text-base); margin: 0; }
.providers { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: var(--space-6) 0 0; }
.providers li { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; color: var(--ink-dim); border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 6px var(--space-3); }
.need { margin-top: var(--space-8); padding: var(--space-6); background: var(--accent-soft); border-radius: var(--radius-md); }
.need h3 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.need p { font-size: var(--text-base); }

/* ---------- proof: chart + sender table ---------- */
.proof { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.proof-head { display: flex; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; padding: var(--space-6); border-bottom: 1px solid var(--rule); }
.proof-head h3 { font-size: var(--text-md); margin-bottom: var(--space-1); }
.proof-head .mono { color: var(--ink-dim); font-size: var(--text-sm); }
.stats { display: flex; gap: var(--space-8); margin: 0; }
.stats div { margin: 0; }
.stats dt { font-size: var(--text-xs); color: var(--ink-faint); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.stats dd { margin: 0; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; line-height: 1.2; }
.stats .ok { color: var(--ok); }
.chart { padding: var(--space-6); margin: 0; }
.chart-plot { position: relative; height: 200px; margin-left: 48px; }
.chart-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; display: block; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--ok); stroke-width: 2.25; stroke-linejoin: round; }
.chart .area { fill: var(--ok-soft); }
.y-labels span { position: absolute; left: -48px; transform: translateY(-50%); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-dim); }
.x-labels { position: relative; height: 22px; margin: var(--space-2) 0 0 48px; }
.x-labels span { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-dim); white-space: nowrap; }
.x-labels span:first-child { transform: none; }
.dip-mark { position: absolute; width: 11px; height: 11px; background: var(--warn); border: 2px solid var(--surface); border-radius: 50%; transform: translate(-50%, -50%); box-sizing: content-box; }
.dip-note { position: absolute; transform: translate(-50%, 12px); font-size: var(--text-xs); font-weight: 600; color: var(--warn); background: var(--surface); padding: 1px var(--space-1); white-space: nowrap; }
.chart figcaption { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--ink-dim); max-width: var(--measure); }
.policy { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-4) var(--space-6); border-top: 1px solid var(--rule); background: var(--surface-alt); }
.policy code { font-size: var(--text-sm); color: var(--ink); overflow-wrap: anywhere; }

.table-scroll { overflow-x: auto; border-top: 1px solid var(--rule); }
.senders { width: 100%; border-collapse: collapse; font-size: var(--text-sm); min-width: 640px; }
.senders caption { text-align: left; padding: var(--space-4) var(--space-6) var(--space-2); font-family: var(--font-display); font-weight: 600; font-size: var(--text-md); }
.senders th, .senders td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.senders th:first-child, .senders td:first-child { padding-left: var(--space-6); }
.senders th:last-child, .senders td:last-child { padding-right: var(--space-6); }
.senders thead th { font-size: var(--text-xs); color: var(--ink-faint); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--surface-alt); }
.senders .org { font-weight: 600; }
.senders .host { display: block; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-dim); overflow-wrap: anywhere; }
.senders td.n { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.senders th.n { text-align: right; }
.senders td.r { font-family: var(--font-mono); font-size: var(--text-xs); white-space: nowrap; }
.r-pass { color: var(--ok); }
.r-fail { color: var(--fail); }
.senders tr.unknown td { background: var(--fail-soft); }
.chip { display: inline-flex; align-items: center; gap: var(--space-1); padding: 3px var(--space-2); border-radius: 999px;
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.chip-ok   { background: var(--ok-soft);   color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-fail { background: var(--surface);   color: var(--fail); border: 1px solid var(--fail); }
.proof-note { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--ink-dim); max-width: var(--measure); }

/* ---------- four services: cards ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.service {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-8) var(--space-6); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); box-shadow: var(--shadow);
  transition: transform .2s ease-out, box-shadow .2s ease-out;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: var(--space-2); }
.service:nth-child(even) .service-icon { background: var(--magenta-soft); color: var(--magenta); }
.service-icon svg { width: 28px; height: 28px; }
.service h3 { font-size: var(--text-lg); }
.service .what { color: var(--ink-dim); margin: 0; font-size: var(--text-base); flex: 1; }
.service .what strong { color: var(--ink); font-weight: 600; }
.service .tech { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--accent); line-height: 1.7; margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--rule); }
.combos { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.combos p { color: var(--ink-dim); }

/* ---------- ratchet: the dark band ---------- */
.band-dark { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.band-dark::before { content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -160px; border-radius: 50%; background: var(--magenta); opacity: .18; filter: blur(4px); }
.band-dark::after { content: ""; position: absolute; width: 360px; height: 360px; left: -160px; bottom: -200px; border-radius: 50%; background: #1A56F0; opacity: .35; }
.band-dark .wrap { position: relative; z-index: 1; }
.band-dark h2, .band-dark h3 { color: var(--band-ink); }
.band-dark .lede, .band-dark .proof-note { color: var(--band-dim); }
.band-dark .eyebrow { color: #FF8FD2; }
.band-dark a { color: #A9C0FF; }
.ratchet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); counter-reset: stage; }
.ratchet li { padding: var(--space-8) var(--space-6); background: var(--band-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-md); counter-increment: stage; }
.ratchet .stage { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; color: var(--band-ink); display: inline-block; margin-bottom: var(--space-4); background: rgba(255, 255, 255, .08); padding: 4px var(--space-3); border-radius: 999px; }
.ratchet .stage::before { content: counter(stage) " · "; color: #FF8FD2; }
.ratchet h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.ratchet p { font-size: var(--text-base); color: var(--band-dim); }
.gate { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px dashed rgba(255, 255, 255, .18); font-size: var(--text-sm); }
.gate b { display: block; font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: #A9C0FF; margin-bottom: var(--space-1); }

/* ---------- FAQ: card grid ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: start; }
.faq details { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-6) 56px var(--space-6) var(--space-6); position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-base); letter-spacing: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: var(--space-6); top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-weight: 600; font-size: var(--text-base); }
.faq details[open] summary::after { content: "−"; background: var(--magenta-soft); color: var(--magenta); }
.faq details > div { padding: 0 var(--space-6) var(--space-6); color: var(--ink-dim); font-size: var(--text-base); }

/* ---------- closing CTA: blue band card ---------- */
.closing { padding: 0 0 var(--section-y); }
.closing.after-alt { padding-top: 0; background: var(--surface-alt); }
.closing .wrap > .cta-card {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: var(--space-8); align-items: center;
  padding: 56px; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1A56F0 0%, #2E46C9 55%, #7A1FA8 100%); color: #fff; box-shadow: var(--shadow-lg);
}
.cta-card::after { content: ""; position: absolute; right: -60px; bottom: -90px; width: 260px; height: 260px; border-radius: 50%; background: #C8157F; opacity: .55; }
.cta-card > * { position: relative; z-index: 1; }
.closing h2 { margin-bottom: var(--space-4); color: #fff; }
.closing p { color: #DCE5FF; max-width: var(--measure); }
.closing .btn-row { flex-direction: column; align-items: stretch; justify-self: end; }
.closing .btn-primary { background: #fff; color: #1A56F0; }
.closing .btn-primary:hover { background: #E6EDFF; color: #1A56F0; }
.closing .btn-quiet { color: #fff; border-color: rgba(255, 255, 255, .5); }
.closing .btn-quiet:hover { color: #fff; border-color: #fff; }

/* ---------- inner pages ---------- */
.page-head { padding: 80px 0 56px; background: var(--surface-alt); margin-bottom: 64px; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--magenta); opacity: .1; }
.page-head h1 { max-width: 20ch; margin-bottom: var(--space-4); font-size: 44px; }
.prose { max-width: 720px; }
.prose h2 { font-size: var(--text-xl); margin: 48px 0 var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--text-md); margin: var(--space-8) 0 var(--space-2); }
.prose p, .prose li { color: var(--ink-dim); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose li::marker { color: var(--accent); }
.updated { margin-top: 48px; font-size: var(--text-sm); color: var(--ink-dim); }

.price-sheet { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-6); padding: var(--space-6); border-bottom: 1px solid var(--rule); align-items: baseline; }
.price-row h2, .price-row h3 { font-size: var(--text-lg); margin-bottom: var(--space-1); }
.price-row p { color: var(--ink-dim); margin: 0; font-size: var(--text-base); }
.price { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--magenta); text-align: right; white-space: nowrap; }
.price small { display: block; font-size: var(--text-xs); color: var(--ink-dim); font-weight: 400; font-family: var(--font-body); }
.price-pending { font-family: var(--font-body); font-size: var(--text-base); font-weight: 600; color: var(--ink-dim); }
.price-cta { padding: var(--space-6); background: var(--accent-soft); display: flex; justify-content: space-between; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.price-cta p { margin: 0; max-width: 52ch; }
.meter { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin-top: var(--space-4); }
.meter th, .meter td { padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--rule); text-align: left; }
.meter td.n, .meter th.n { text-align: right; font-family: var(--font-mono); }
.meter thead th { font-size: var(--text-xs); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }

.legal-id { list-style: none; padding: 0 !important; border-top: 1px solid var(--rule); }
.legal-id li { padding: var(--space-2) 0; border-bottom: 1px solid var(--rule); margin: 0 !important; }

/* ---------- pricing page ---------- */
.pricing { padding: 0 0 var(--section-y); }
.vat-note { font-size: var(--text-sm); color: var(--ink-dim); margin-bottom: var(--space-4); }
.vat-note strong { color: var(--ink); }
.pack { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border-top: 4px solid var(--accent); }
.pack-main { padding: 40px; }
.pack-side { padding: 40px; background: var(--surface-alt); display: flex; flex-direction: column; gap: var(--space-4); justify-content: center; text-align: center; }
.pack-kicker { font-family: var(--font-display); font-size: var(--text-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2); }
.pack h2 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.pack-lede { color: var(--ink-dim); max-width: 48ch; }
.pack-list { list-style: none; margin: var(--space-6) 0 0; padding: 0; }
.pack-list li { padding: var(--space-2) 0 var(--space-2) 32px; position: relative; font-size: var(--text-base); }
.pack-list li::before { content: ""; position: absolute; left: 4px; top: calc(var(--space-2) + 6px); width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.pack-price { margin: 0; display: flex; flex-direction: column; align-items: center; }
.pack-price .amount, .addon-price .amount { font-family: var(--font-display); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--magenta); letter-spacing: -0.02em; }
.pack-price .amount { font-size: var(--text-3xl); line-height: 1.1; }
.pack-price .unit, .addon-price .unit { font-size: var(--text-sm); color: var(--ink-dim); }
.pack-sum { font-size: var(--text-sm); color: var(--ink-dim); margin: 0; }
.pack-side .btn-row { flex-direction: column; align-items: stretch; }
.alc-title { font-size: var(--text-xl); margin: 80px 0 var(--space-3); }
.alc-wrap { margin-top: var(--space-6); border: 1px solid var(--rule); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.alc { width: 100%; border-collapse: collapse; font-size: var(--text-base); }
.alc th, .alc td { padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
.alc tbody tr:last-child th, .alc tbody tr:last-child td { border-bottom: 0; }
.alc thead th { font-size: var(--text-xs); color: var(--ink-faint); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding-top: var(--space-3); padding-bottom: var(--space-3); background: var(--surface-alt); }
.alc tbody th { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.alc td { color: var(--ink-dim); }
.alc td.n, .alc th.n { text-align: right; white-space: nowrap; }
.alc td.n { font-family: var(--font-display); font-size: var(--text-md); color: var(--accent); font-weight: 600; }
.addons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); margin-top: var(--space-6); }
.addon { border: 1px solid var(--rule); background: var(--surface); padding: var(--space-8) var(--space-6); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.addon h3 { font-size: var(--text-md); margin-bottom: var(--space-2); letter-spacing: 0; }
.addon-price { margin-bottom: var(--space-2); }
.addon-price .amount { font-size: var(--text-xl); }
.addon p:last-child { color: var(--ink-dim); font-size: var(--text-base); }
.alone { margin: var(--space-6) 0; color: var(--ink-dim); }
.prose-cols .prose h2 { margin-top: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--band); color: var(--band-dim); padding: 72px 0 var(--space-8); font-size: var(--text-sm); }
.site-footer .brand { color: #fff; }
.site-footer .brand .tld { color: #FF8FD2; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.footer-grid h2 { font-family: var(--font-display); font-size: var(--text-sm); letter-spacing: 0; color: #fff; margin-bottom: var(--space-4); font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: var(--space-3); }
.footer-grid a { color: var(--band-dim); text-decoration: none; white-space: nowrap; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { max-width: 36ch; margin-top: var(--space-4); }
.footer-base { margin-top: 56px; padding-top: var(--space-6); border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.footer-base a { color: var(--band-dim); }
.footer-base a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: var(--space-4); margin-left: var(--space-6); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --section-y: 72px; --text-3xl: 40px; --text-2xl: 30px; }
  h2 { font-size: var(--text-2xl); }
  .hero { padding-top: 56px; }
  .hero::before { display: none; }
  .hero-grid, .two-col, .combos { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-art { margin: 0 auto; max-width: 380px; }
  .stats-band ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-8); }
  .closing .wrap > .cta-card { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; }
  .closing .btn-row { justify-self: start; }
  .ratchet { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .pack { grid-template-columns: minmax(0, 1fr); }
  .addons { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .page-head h1 { font-size: var(--text-2xl); }

  /* mobile nav: only collapses when JS is present to reopen it */
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .nav { display: none; }
  .js .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule-strong); box-shadow: var(--shadow-lg);
    padding: var(--space-2) var(--gutter) var(--space-6);
  }
  .nav.is-open .nav-links { flex-direction: column; gap: 0; margin: 0; }
  .nav.is-open .nav-links a { display: block; padding: var(--space-3) 0; font-size: var(--text-base); border-bottom: 1px solid var(--rule); }
  .nav.is-open .nav-aux { padding-top: var(--space-4); flex-wrap: wrap; }
  .nav.is-open .lang { padding: 10px 12px; }
  html:not(.js) .site-header .wrap { height: auto; flex-wrap: wrap; padding-top: var(--space-3); padding-bottom: var(--space-3); }
  html:not(.js) .nav { flex-wrap: wrap; }
  html:not(.js) .nav-links { flex-wrap: wrap; gap: var(--space-3); margin: 0; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; --section-y: 56px; --text-3xl: 34px; --text-2xl: 26px; }
  .hero .lede { font-size: var(--text-base); }
  .hero-art li { font-size: var(--text-md); }
  .hero-art::after { width: 56px; height: 56px; background-size: 30px; }
  .section-head { margin-bottom: var(--space-8); }
  .stats-band strong { font-size: 30px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .ledger th, .ledger td { padding-left: var(--space-4); padding-right: var(--space-4); }
  .ledger-head, .ledger-foot, .ledger-src { padding-left: var(--space-4); padding-right: var(--space-4); }
  .proof-head, .chart, .policy { padding-left: var(--space-4); padding-right: var(--space-4); }
  .stats { gap: var(--space-6); }
  .steps li { grid-template-columns: minmax(0, 1fr); padding: var(--space-4); }
  .closing .wrap > .cta-card { padding: 32px 20px; }
  .price-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
  .price { text-align: left; white-space: normal; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { flex: 1 1 auto; }
  .pack-main, .pack-side { padding: var(--space-6) var(--space-4); }
  .alc-wrap { overflow-x: visible; }
  .alc, .alc tbody, .alc tr, .alc th, .alc td { display: block; }
  .alc thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .alc tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); padding: var(--space-4); border-bottom: 1px solid var(--rule); }
  .alc tbody tr:last-child { border-bottom: 0; }
  .alc th, .alc td { padding: 0; border: 0; }
  .alc tbody th { white-space: normal; }
  .alc td:not(.n) { grid-column: 1 / -1; grid-row: 2; font-size: var(--text-sm); }
  .alc td.n { grid-column: 2; grid-row: 1; }
  .x-labels span:nth-child(2), .x-labels span:nth-child(4) { display: none; }
  .table-scroll { overflow-x: visible; }
  .senders { min-width: 0; }
  .senders thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .senders, .senders tbody, .senders tr, .senders td { display: block; }
  .senders caption { display: block; padding-left: var(--space-4); padding-right: var(--space-4); }
  .senders tr { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); }
  .senders tr.unknown { background: var(--fail-soft); }
  .senders td, .senders th:first-child, .senders td:first-child, .senders td:last-child { padding: 0; border: 0; }
  .senders td:first-child { margin-bottom: var(--space-2); }
  .senders td.n, .senders td.r { display: inline-block; margin-right: var(--space-4); text-align: left; }
  .senders td.n::before, .senders td.r::before { content: attr(data-label) " "; font-family: var(--font-body); font-size: var(--text-xs); color: var(--ink-dim); }
  .senders td.c { display: inline-block; }
  .senders tr.unknown td { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover, .service:hover { transform: none; }
}

@media print {
  .site-header, .nav-toggle, .closing { display: none; }
}

/* reference detail: the pricing card's main action is magenta */
.pack-side .btn-primary { background: var(--magenta); color: var(--magenta-ink); }
.pack-side .btn-primary:hover { background: var(--magenta-hover); color: var(--magenta-ink); }
.price-cta { border-radius: var(--radius-md); }
@media (max-width: 560px) { .hero-art { max-width: 300px; } }
