/* ==========================================================================
   IMEI.EU public site — same look as the portal (white / black / grey,
   system font, "IE" mark). Self-hosted: no external fonts or CDNs.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:root {
  --f-display: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --bg: #ffffff; --bg2: #f5f5f7; --bg3: #ececf0;
  --border: #e3e3e8; --border2: #b8b8bf;
  --text: #515154; --dim: #6e6e73; --muted: #86868b;
  --white: #1d1d1f; --white2: #3a3a3c;           /* "white" = strongest text (legacy naming) */
  --accent: #1d1d1f; --accent2: #000000; --on-accent: #ffffff;
  --ok: #248a3d; --danger: #d70015;
  --container: 72rem;
}
html { scroll-behavior: smooth; scroll-padding-top: 74px; }
body { min-height: 100vh; display: flex; flex-direction: column; font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
::selection { background: #1d1d1f; color: #fff; }
:focus-visible { outline: 2px solid #1d1d1f; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: #1d1d1f; color: #fff; font-size: 14px; }
.skip:focus { top: 12px; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.hdr-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 14px; }
@media (min-width: 640px) { .hdr-inner { padding: 0 32px; } }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: #1d1d1f; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.logo-word { font-weight: 600; font-size: 16px; letter-spacing: -.01em; color: var(--white); }
.logo-word sup { font-size: 10px; font-weight: 500; margin-left: 1px; }
.nav { display: none; align-items: center; gap: 2px; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav-link { padding: 7px 12px; border-radius: 8px; font-size: 14px; color: var(--dim); transition: color .15s, background .15s; }
.nav-link:hover { color: var(--white); background: var(--bg2); }
.nav-link.active { color: var(--white); font-weight: 600; }
.hdr-right { display: flex; align-items: center; gap: 6px; }
.hdr-link { padding: 7px 10px; font-size: 14px; color: var(--white); white-space: nowrap; }
.hdr-cta { display: none; padding: 8px 15px; border-radius: 8px; background: #1d1d1f; color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.hdr-cta:hover { background: #000; }
@media (min-width: 760px) { .hdr-cta { display: inline-block; } }
.burger { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--white); border-radius: 8px; }
.burger svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .burger { display: none; } }
.mob { display: none; position: fixed; inset: 60px 0 0; background: #fff; z-index: 49; padding: 12px 20px 24px; overflow-y: auto; flex-direction: column; }
.mob.open { display: flex; }
@media (min-width: 1024px) { .mob { display: none !important; } }
.mob-link { padding: 14px 4px; font-size: 18px; font-weight: 600; color: var(--white); border-bottom: 1px solid var(--border); }
.mob-foot { margin-top: auto; padding-top: 22px; display: grid; gap: 10px; }
.mob-cta { padding: 13px; text-align: center; border-radius: 10px; background: #1d1d1f; color: #fff; font-weight: 500; }
.mob-alt { padding: 13px; text-align: center; border-radius: 10px; border: 1px solid var(--border2); color: var(--white); }
body.menu-open { overflow: hidden; }
main { flex: 1; }

/* Page primitives (used by home, services, status, legal) */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
h1, h2, h3 { font-family: var(--f-display); color: var(--white); letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.1; font-weight: 700; }
h2 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.2; }
h3 { font-size: 15.5px; line-height: 1.35; }
.lead { font-size: 18px; color: var(--dim); line-height: 1.6; max-width: 36rem; }
.note { font-size: 13.5px; color: var(--dim); line-height: 1.6; }
.band { padding-top: 60px; padding-bottom: 60px; border-top: 1px solid var(--border); scroll-margin-top: 74px; }
@media (min-width: 768px) { .band { padding-top: 84px; padding-bottom: 84px; } }
.band.first { border-top: 0; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; font-size: 15px; font-weight: 500; transition: background .15s, border-color .15s; }
.btn-solid { background: #1d1d1f; color: #fff; }
.btn-solid:hover { background: #000; }
.btn-line { border: 1px solid var(--border2); color: var(--white); background: #fff; }
.btn-line:hover { border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.rows { list-style: none; border-top: 1px solid var(--border); }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.row .k { color: var(--white); font-size: 15px; font-weight: 500; }
.row .d { font-size: 14px; color: var(--dim); margin-top: 2px; line-height: 1.5; }
.row .v { font-size: 13px; color: var(--dim); white-space: nowrap; }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.items { display: grid; border-top: 1px solid var(--border); }
@media (min-width: 760px) { .items { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.item p { font-size: 14.5px; color: var(--text); margin-top: 6px; max-width: 36rem; }
.stats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .n { font-size: 28px; font-weight: 600; color: var(--white); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .l { font-size: 13px; color: var(--dim); margin-top: 8px; }
.code { border: 1px solid var(--border); border-radius: 14px; background: var(--bg2); overflow: hidden; }
.code .hd { padding: 10px 14px; border-bottom: 1px solid var(--border); font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
.code pre { margin: 0; padding: 15px 14px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.75; color: var(--text); overflow-x: auto; }
.code .s { color: var(--white); } .code .g { color: var(--ok); }

/* Legal documents */
.legal-page { padding-top: 48px; padding-bottom: 80px; max-width: 52rem; }
.legal-doc { font-size: 15.5px; line-height: 1.7; color: var(--text); margin-top: 10px; }
.legal-doc h2 { font-size: clamp(28px, 3.6vw, 38px); margin: 6px 0 20px; font-weight: 700; }
.legal-doc h3 { font-size: 19px; margin: 34px 0 10px; }
.legal-doc h4 { font-size: 16px; margin: 22px 0 8px; color: var(--white); }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin: 0 0 12px; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; }
.legal-doc strong { color: var(--white); }
.legal-doc a { text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
.ftr { border-top: 1px solid var(--border); color: var(--dim); background: var(--bg2); }
.ftr-inner { max-width: var(--container); margin: 0 auto; padding: 52px 20px 24px; }
@media (min-width: 640px) { .ftr-inner { padding: 60px 32px 24px; } }
.ftr-top { display: grid; gap: 34px; margin-bottom: 34px; }
@media (min-width: 768px) { .ftr-top { grid-template-columns: 2.4fr 1fr 1fr 1fr; gap: 32px; } }
.ftr-brand .logo { margin-bottom: 12px; }
.ftr-brand p { font-size: 13px; line-height: 1.65; max-width: 24rem; }
.ftr-col h4 { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.ftr-col ul { list-style: none; }
.ftr-col li { margin-bottom: 8px; font-size: 13px; }
.ftr-col a:hover { color: var(--white); text-decoration: underline; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.ftr-tm { font-size: 12px; color: var(--muted); margin-top: 12px; max-width: 30rem; }

/* Older marketing pages (FAQ, contact) carry their own dark/green styles:
   bring them onto the same palette. */
html:root body.v2026.v2026 {
  --font-sans: var(--f-body); --font-mono: var(--f-mono); --font-serif: Georgia, "Times New Roman", serif;
  --bg: #ffffff; --bg-raise: #ffffff; --bg-panel: #ffffff;
  --border: #e3e3e8; --border-strong: #cfcfd6;
  --text: #515154; --text-dim: #6e6e73; --text-muted: #86868b; --white: #1d1d1f;
  --accent: #1d1d1f; --accent-dim: #000000; --accent-glow: rgba(0,0,0,.05);
  --indigo: #1d1d1f; --amber: #b25000; --rose: #d70015;
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.legal-doc .doc-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 14px; }
.legal-doc .doc-table th, .legal-doc .doc-table td { border: 1px solid var(--border); padding: 8px 12px; vertical-align: top; text-align: left; }
.legal-doc .doc-table th { width: 38%; font-weight: 500; color: var(--dim); background: var(--bg2); }
