/* altexgroup.eu — site tokens (brief, Part 1). Light + dark designed separately, not inverted. */
/* Prototype fallback while fonts are not yet downloaded — REMOVE in production: */
/* Fonts: self-host (Part 7 of the content package). Download woff2 files for
   Montserrat 500/600, IBM Plex Sans 400/500/600, IBM Plex Mono 400/500 into ./fonts/ and keep these rules. */
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("./fonts/Montserrat-Medium.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("./fonts/Montserrat-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("./fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("./fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("./fonts/IBMPlexSans-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("./fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("./fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

:root {
  --midnight: #0B2545; --altex-blue: #2563EB; --cloud: #CBD5E1; --stone: #F5F4F1; --white: #FFFFFF; --alert: #8A5316;
  --bg: var(--stone); --surface: var(--white); --surface-dark: var(--midnight);
  --ink: var(--midnight); --ink-2: #3B4756; --ink-on-dark: #E8ECF2; --ink-2-on-dark: #B7C2D3;
  --rule: var(--cloud); --rule-strong: var(--midnight); --rule-on-dark: rgba(232,236,242,.22);
  --accent: var(--altex-blue); --accent-ink: #FFFFFF; --accent-hover: #1D4ED8;
  --alert-ink: var(--alert); --alert-bg: #FBF4EA; --alert-rule: #E2CBAE;
  --focus: 0 0 0 3px rgba(37,99,235,.35);
  --r: 6px; --r-lg: 10px;
  --font-head: "Montserrat", system-ui, sans-serif; --font-body: "IBM Plex Sans", system-ui, sans-serif; --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px; --narrow: 720px; --gutter: clamp(20px, 4vw, 48px);
}
[data-theme="dark"] {
  --bg: #071A33; --surface: #0E2A4E; --surface-dark: #051328;
  --ink: #E8ECF2; --ink-2: #B7C2D3; --ink-on-dark: #E8ECF2; --ink-2-on-dark: #B7C2D3;
  --rule: rgba(232,236,242,.18); --rule-strong: #E8ECF2; --rule-on-dark: rgba(232,236,242,.22);
  --accent: #7FA7F5; --accent-ink: #071A33; --accent-hover: #A3C0F8;
  --alert-ink: #E0A868; --alert-bg: #1A2338; --alert-rule: #4A3A24;
  --focus: 0 0 0 3px rgba(127,167,245,.45);
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font-body); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--ink); margin: 0; letter-spacing: -0.01em; text-wrap: pretty; }
h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.18; }
h3 { font-size: 19px; line-height: 1.35; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 2px; }
.mono { font-family: var(--font-mono); }
.eyebrow { font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(64px, 8vw, 120px) 0; border-top: 1px solid var(--rule); }
.band { background: var(--surface); }
[data-theme="dark"] .band { background: #0A2244; }
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--rule); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-caption { font: 400 12px/1.5 var(--font-mono); color: var(--ink-2); margin-top: 10px; }
.watermark { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.watermark span { position: absolute; font: 500 clamp(120px, 22vw, 300px)/1 var(--font-mono); letter-spacing: -.04em; white-space: nowrap; color: var(--ink); opacity: .035; }
[data-theme="dark"] .watermark span { opacity: .06; }
.dark .watermark span { color: #FFFFFF; opacity: .05; }
.dark .photo { background: rgba(255,255,255,.06); }
.section-head { max-width: var(--narrow); display: grid; gap: 14px; }
.lede { font-size: 18px; color: var(--ink-2); }
.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 4vw, 64px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; }
.note { font: 400 14px/1.55 var(--font-body); color: var(--ink-2); }
.mono-note { font: 400 13px/1.6 var(--font-mono); color: var(--ink-2); }
.margin-ref { font: 400 13px/1.6 var(--font-mono); color: var(--ink-2); border-left: 1px solid var(--rule-strong); padding-left: 14px; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; font: 500 15px/1 var(--font-body); text-decoration: none; border: 1px solid transparent; border-radius: var(--r); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-secondary:hover { background: var(--surface); color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.logo { display: flex; align-items: center; height: 40px; }
.logo img { height: 40px; width: auto; display: block; }
.logo .logo-white { display: none; }
[data-theme="dark"] .logo .logo-colour { display: none; }
[data-theme="dark"] .logo .logo-white { display: block; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font: 500 15px/1 var(--font-body); color: var(--ink); text-decoration: none; padding: 8px 0; }
.nav a:hover { color: var(--accent); }
.theme-toggle { font: 500 12px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: none; border: 1px solid var(--rule); padding: 8px 10px; border-radius: 3px; cursor: pointer; }
.theme-toggle:hover { border-color: var(--rule-strong); color: var(--ink); }
.menu-btn { display: none; }

/* 01 Reference header */
.ref-header { border-bottom: 1px solid var(--rule); }
.ref-header .grid-4 > div { padding: 14px 0; display: grid; gap: 4px; border-left: 1px solid var(--rule); padding-left: 16px; }
.ref-header .grid-4 > div:first-child { border-left: 0; padding-left: 0; }
.ref-header dt { font: 500 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ref-header dd { margin: 0; font: 400 14px/1.4 var(--font-mono); color: var(--ink); }

/* 02 Hero */
.hero { position: relative; padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 88px); overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .inner { display: grid; gap: 28px; }
.hero .photo { aspect-ratio: 4 / 5; max-height: 560px; }
.hero p { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 760px; }

/* 03 Urgent strip */
.urgent { background: var(--alert-bg); border-top: 1px solid var(--alert-rule); border-bottom: 1px solid var(--alert-rule); }
.urgent .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; padding-top: 14px; padding-bottom: 14px; }
.urgent p, .urgent a { color: var(--alert-ink); font: 500 15px/1.5 var(--font-body); }
.urgent a { text-decoration: underline; }

/* Lists */
.plain { list-style: none; margin: 0; padding: 0; }
.marked li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.marked li:last-child { border-bottom: 1px solid var(--rule); }
.marked .mk { font: 500 16px/1.5 var(--font-mono); }
.mk-plus { color: var(--accent); }
.mk-minus { color: var(--alert-ink); }
.bullets { padding-left: 20px; margin: 0; display: grid; gap: 8px; }

/* Callout / VAT */
.callout { border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; background: var(--surface); }
.callout .tiny { font: 500 11px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.code-box { display: inline-block; font: 500 16px/1 var(--font-mono); padding: 6px 10px; border: 1px solid var(--rule-strong); color: var(--ink); white-space: nowrap; }

/* 16 Chain */
.chain { display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr; gap: 0; align-items: stretch; }
.node { border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 18px 20px; background: var(--surface); display: grid; gap: 6px; }
.node .name { font: 600 16px/1.3 var(--font-head); color: var(--ink); }
.node .role { font: 400 13px/1.5 var(--font-mono); color: var(--ink-2); }
.arrow { position: relative; }
.arrow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--rule-strong); }
.arrow::after { content: ""; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); transform: translateY(-50%) rotate(-45deg); }
.chain-branch { display: grid; grid-template-columns: 1fr 24px 1fr 24px 1fr; }
.chain-branch .stem { grid-column: 5; justify-self: center; width: 1px; height: 28px; border-left: 1px solid var(--rule-strong); }
.chain-branch .consumer { grid-column: 5; grid-row: 2; }
.chain-legend { display: grid; gap: 10px; max-width: var(--narrow); }
.chain-legend p strong { font-weight: 600; }

/* 18 Timeline */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 1px solid var(--rule-strong); }
.tl { position: relative; padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.tl::before { content: ""; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--rule-strong); }
.tl.key::before { background: var(--ink); }
.tl time { font: 500 15px/1.3 var(--font-mono); color: var(--ink); display: block; }
.tl.key time { font-size: 18px; }
.tl p { font-size: 15px; color: var(--ink-2); }

/* 08 Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.plan { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--surface); padding: 28px; display: grid; gap: 14px; align-content: start; }
.plan.key { border-color: var(--rule-strong); box-shadow: inset 0 3px 0 var(--rule-strong); }
.plan .price { font: 600 clamp(28px, 3vw, 36px)/1.1 var(--font-head); color: var(--ink); }
.plan .price small { font: 400 15px/1 var(--font-body); color: var(--ink-2); }
.plan p { font-size: 15px; color: var(--ink-2); }
.aside-box { border-left: 1px solid var(--rule-strong); padding: 4px 0 4px 20px; display: grid; gap: 8px; }
.aside-box p { font-size: 15px; color: var(--ink-2); }

/* 19 Coverage */
.coverage { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.coverage span { font: 400 15px/1.3 var(--font-mono); color: var(--ink); padding: 18px 16px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* 10 Process */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: "0" counter(s); font: 400 15px/1.5 var(--font-mono); color: var(--ink-2); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* 17 Deliverables */
.deliverables { display: grid; }
.deliverables > div { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 18px 0; border-top: 1px solid var(--rule); }
.deliverables > div:last-child { border-bottom: 1px solid var(--rule); }
.deliverables .k { font: 500 14px/1.5 var(--font-mono); color: var(--ink); }
.deliverables p { color: var(--ink-2); font-size: 16px; }

/* 20 Certificate */
.certificate { position: relative; overflow: hidden; background: #FFFFFF; color: #0B2545; border: 1px solid #CBD5E1; border-radius: 4px; box-shadow: 0 1px 0 rgba(11,37,69,.06), 0 12px 32px rgba(11,37,69,.08); padding: clamp(28px, 4vw, 52px); font: 400 14px/1.7 var(--font-mono); max-width: 760px; margin: 0 auto; }
.certificate .title { font: 600 15px/1.4 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.certificate .sub { color: #3B4756; margin-bottom: 26px; }
.certificate dl { margin: 0; display: grid; grid-template-columns: 200px 1fr; gap: 6px 20px; }
.certificate dt { color: #3B4756; }
.certificate dd { margin: 0; }
.certificate .ph { color: #3B4756; }
.certificate .block { margin-top: 22px; padding-top: 18px; border-top: 1px solid #CBD5E1; }
.certificate .specimen { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-24deg); font: 600 clamp(64px, 12vw, 120px)/1 var(--font-head); letter-spacing: .18em; color: rgba(11,37,69,.09); pointer-events: none; white-space: nowrap; }
.certificate .stamp { position: absolute; top: 18px; right: 18px; font: 600 11px/1 var(--font-head); letter-spacing: .14em; padding: 6px 10px; border: 1px solid #8A5316; color: #8A5316; }

/* Forms */
.form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.field { display: grid; gap: 6px; }
.field label { font: 500 14px/1.4 var(--font-body); color: var(--ink); }
.field .opt { color: var(--ink-2); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 14px; }
.field textarea { min-height: 120px; resize: vertical; font-family: var(--font-mono); font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--alert-ink); }
.field .err { font: 400 13px/1.4 var(--font-body); color: var(--alert-ink); display: none; }
.field.invalid .err { display: block; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.consent label { font: 400 14px/1.5 var(--font-body); color: var(--ink-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.success { border: 1px solid var(--rule-strong); border-radius: var(--r-lg); padding: 24px; font-size: 16px; }

/* Dark section (11) */
.dark { background: var(--surface-dark); color: var(--ink-on-dark); border-top: 0; }
.dark h2, .dark h3 { color: var(--ink-on-dark); }
.dark p { color: var(--ink-2-on-dark); }
.dark .eyebrow { color: var(--ink-2-on-dark); }

/* 12 Partners */
.cards-4 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.cards-4 > div { padding: 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.cards-4 p { font-size: 15px; color: var(--ink-2); }

/* 13 FAQ */
.faq { display: grid; max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font: 600 17px/1.4 var(--font-body); color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font: 400 22px/1 var(--font-mono); color: var(--ink-2); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 20px; color: var(--ink-2); max-width: 720px; }

/* 14 Entity */
.entity dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 24px; }
.entity dt, .entity dd { padding: 12px 0; border-top: 1px solid var(--rule); margin: 0; }
.entity dt { font: 500 12px/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.entity dd { font: 400 16px/1.6 var(--font-body); }
.entity dt:last-of-type, .entity dd:last-of-type { border-bottom: 1px solid var(--rule); }
.packaging { border: 1px solid var(--rule-strong); border-radius: var(--r-lg); background: var(--surface); padding: 24px 28px; display: grid; gap: 14px; }
.packaging pre { margin: 0; font: 400 15px/1.7 var(--font-mono); color: var(--ink); white-space: pre-wrap; }

/* 15 Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 48px 0 32px; }
.site-footer .top { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer nav a { font: 500 14px/1 var(--font-body); color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }
.disclaimer { margin-top: 32px; font: 400 13px/1.6 var(--font-body); color: var(--ink-2); max-width: 900px; }
.copyright { margin-top: 18px; font: 400 13px/1.6 var(--font-mono); color: var(--ink-2); }

@media (max-width: 900px) {
  .grid-2, .plans, .form-row, .hero .wrap { grid-template-columns: minmax(0,1fr); }
  .hero .photo { aspect-ratio: 3 / 2; max-height: 360px; }
  .watermark { display: none; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .ref-header .grid-4 > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .chain, .chain-branch { grid-template-columns: 1fr; }
  .arrow { height: 28px; }
  .arrow::before { left: 50%; right: auto; top: 0; bottom: 0; border-top: 0; border-left: 1px solid var(--rule-strong); }
  .arrow::after { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%) rotate(45deg); }
  .chain-branch .stem, .chain-branch .consumer { grid-column: 1; }
  .chain-branch .consumer { grid-row: auto; }
  .timeline { grid-template-columns: 1fr; padding-left: 24px; }
  .timeline::before { top: 0; bottom: 0; left: 5px; right: auto; border-top: 0; border-left: 1px solid var(--rule-strong); }
  .tl { padding: 0 0 32px 0; }
  .tl::before { left: -24px; top: 6px; }
  .deliverables > div { grid-template-columns: 1fr; gap: 6px; }
  .cards-4 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: grid; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 12px var(--gutter) 20px; gap: 4px; }
  .nav.open a { padding: 12px 0; border-top: 1px solid var(--rule); }
  .menu-btn { display: inline-flex; }
  .entity dl { grid-template-columns: 1fr; gap: 0; }
  .entity dt { border-top: 1px solid var(--rule); padding-bottom: 0; }
  .entity dd { border-top: 0; padding-top: 4px; }
  .entity dt:last-of-type { border-bottom: 0; }
  .certificate dl { grid-template-columns: 1fr; gap: 2px; }
  .certificate dt { margin-top: 10px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .ref-header .grid-4 > div { border-left: 0; padding-left: 0; padding: 10px 0; border-top: 1px solid var(--rule); }
  .ref-header .grid-4 > div:first-child { border-top: 0; }
}
