/* Hermes Telecom — site styles. Tokens first, then base, layout, components, portal. */

@font-face { font-family: 'Space Grotesk'; font-weight: 500; font-display: swap; src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 600; font-display: swap; src: url('../fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 700; font-display: swap; src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: italic; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --ink: #0E1B2C;
  --muted: #4A5565;
  --bg: #F6F7F5;
  --white: #FFFFFF;
  --line: #E3E6E2;
  --line-strong: #D5DAD4;
  --input: #B9C0C8;
  --accent: #1E5AA8;
  --accent-dark: #123E78;
  --accent-soft: #EAF1FB;
  --navy: #0E1B2C;
  --navy-2: #13243A;
  --navy-line: #2E4566;
  --navy-ghost: #4A6488;
  --footer: #0A1422;
  --sky: #9FC2F2;
  --soft: #C9D3E0;
  --dim: #8E9DB3;
  --orange: #F5A623;
  --ok: #1F8A5B;
  --ok-ink: #0B4F3A;
  --ok-soft: #E6F4EC;
  --warn: #B26B00;
  --warn-ink: #6B4100;
  --warn-soft: #FFF4DF;
  --bad: #C4302B;
  --bad-ink: #8A1F1B;
  --bad-soft: #FDECEA;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--font);
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --radius: 8px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; min-height: 100vh; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: 8px; transform: translateY(-200%); background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); z-index: 100; font-weight: 600; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding-inline: 24px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split-center { align-items: center; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(var(--min, 300px), 1fr)); }
.section { padding-block: 96px; }
.section-tight { padding-block: 64px; }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark .lead, .section-dark p { color: var(--soft); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 40px; }

/* ---------- Type ---------- */
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.section-dark .eyebrow, .hero .eyebrow { color: var(--sky); }
.display { font-weight: 700; font-size: 62px; line-height: 1.03; letter-spacing: -0.03em; }
.h1 { font-weight: 700; font-size: 60px; line-height: 1.05; letter-spacing: -0.03em; }
.h2 { font-size: 44px; line-height: 1.08; letter-spacing: -0.03em; }
.h2-sm { font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: 28px; letter-spacing: -0.02em; }
.h4 { font-size: 21px; }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 720px; }
.lead-lg { font-size: 21px; line-height: 1.55; }
.body-lg { font-size: 18px; line-height: 1.65; color: var(--muted); }
.text { font-size: 16px; line-height: 1.6; color: var(--muted); }
.small { font-size: 14px; }
.list { margin: 0; padding-left: 18px; font-size: 16px; line-height: 1.8; }
.prose { max-width: 760px; font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose h3 { font-size: 21px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; padding: 12px 20px; min-height: 48px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: background-color .15s, border-color .15s, color .15s; }
.btn-lg { padding: 14px 22px; min-height: 52px; }
.btn-sm { padding: 8px 14px; min-height: 40px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); color: var(--ink); }
.btn-ghost-dark { color: var(--white); border-color: var(--navy-ghost); background: transparent; }
.btn-ghost-dark:hover { border-color: var(--white); color: var(--white); }
.btn-outline { color: var(--ink); border-color: var(--line-strong); background: var(--white); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--white); color: var(--bad-ink); border-color: #E7B7B4; }
.btn-danger:hover { background: var(--bad-soft); color: var(--bad-ink); }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; font: inherit; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.arrow-link { font-weight: 600; color: var(--accent); text-decoration: none; }
.arrow-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand-name span { font-weight: 500; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.main-nav a { color: var(--ink); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions .zone-link { color: var(--ink); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.lang-switch { display: inline-flex; gap: 2px; font-size: 13px; font-weight: 600; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 6px 8px; border-radius: 6px; }
.lang-switch a[aria-current="true"] { color: var(--ink); background: var(--bg); }
.lang-switch a:hover { color: var(--accent); }
.m-menu { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); }
.hero .inner { padding-block: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero .copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero .lead { color: var(--soft); max-width: 560px; }
.hero figure { flex: 1 1 440px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hero figure svg { width: 100%; height: auto; display: block; background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 18px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 13px; color: var(--soft); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.page-hero { padding-block: 56px 72px; display: flex; flex-direction: column; gap: 24px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--accent); }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; color: var(--ink); }
a.card { text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(14, 27, 44, .08); color: var(--ink); }
.card .num { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.card .list { font-size: 15px; flex-grow: 1; }
.card-row { flex-direction: row; flex-wrap: wrap; gap: 32px; padding: 36px; }
.card-row > :first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.card-row > :last-child { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card-soft { background: var(--bg); border: 0; border-radius: 16px; padding: 28px; gap: 10px; font-size: 15px; line-height: 1.6; }
.project-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.project-card img { display: block; width: 100%; height: 190px; object-fit: cover; }
.project-card .body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.project-card .tag { font-size: 13px; font-weight: 600; color: var(--accent); }
.project-card h3 { font-size: 20px; }
.project-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.point { display: flex; gap: 20px; }
.point .mark { font-family: var(--mono); font-size: 14px; color: var(--muted); padding-top: 4px; }
.point .stack { --gap: 6px; }
.dark-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dark-steps li { background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 12px; padding: 20px 22px; display: flex; gap: 18px; }
.dark-steps .n { font-family: var(--mono); color: var(--sky); }
.dark-steps strong { font-size: 17px; display: block; margin-bottom: 4px; }
.dark-steps span span { font-size: 15px; color: var(--soft); }
.num-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.num-steps li { display: flex; gap: 14px; font-size: 16px; line-height: 1.55; }
.num-steps .n { font-family: var(--mono); color: var(--accent); }
.tech-strip { font-family: var(--mono); font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---------- CTA + footer ---------- */
.cta-band { background: var(--accent); color: var(--white); }
.cta-band .inner { padding-block: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { font-size: 34px; max-width: 640px; }
.site-footer { background: var(--footer); color: var(--soft); }
.site-footer .inner { padding-block: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; font-size: 14px; line-height: 1.6; }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--white); padding: 12px; border: 1px solid var(--input); border-radius: var(--radius); min-height: 46px; width: 100%; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid rgba(30, 90, 168, .2); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field-error { color: var(--bad-ink); font-size: 14px; font-weight: 500; }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px; min-height: 46px; font-size: 15px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.otp-input { font-family: var(--mono) !important; font-size: 24px !important; letter-spacing: .3em; text-align: center; max-width: 240px; }

/* ---------- Alerts & badges ---------- */
.alert { border-radius: 12px; padding: 14px 18px; font-size: 15px; line-height: 1.5; border: 1px solid; }
.alert-info { background: var(--accent-soft); border-color: #C8DAF3; color: var(--accent-dark); }
.alert-ok { background: var(--ok-soft); border-color: #B9E0CB; color: var(--ok-ink); }
.alert-warn { background: var(--warn-soft); border-color: #F2D49B; color: var(--warn-ink); }
.alert-bad { background: var(--bad-soft); border-color: #F2C2BF; color: var(--bad-ink); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.status::before { content: ''; width: 9px; height: 9px; border-radius: 99px; background: currentColor; flex-shrink: 0; }
.status-ok { color: var(--ok-ink); } .status-ok::before { background: var(--ok); }
.status-warn { color: var(--warn-ink); } .status-warn::before { background: var(--orange); }
.status-bad { color: var(--bad-ink); } .status-bad::before { background: var(--bad); }
.status-muted { color: var(--muted); } .status-muted::before { background: #A3ACB8; }
.badge { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--bg); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge-accent { background: var(--accent-soft); color: var(--accent-dark); border-color: #C8DAF3; }
.badge-ok { background: var(--ok-soft); color: var(--ok-ink); border-color: #B9E0CB; }
.badge-warn { background: var(--warn-soft); color: var(--warn-ink); border-color: #F2D49B; }
.badge-bad { background: var(--bad-soft); color: var(--bad-ink); border-color: #F2C2BF; }

/* ---------- Customer zone: sign-in page ---------- */
.zone-auth { padding-block: 56px 96px; display: flex; flex-wrap: wrap; gap: 56px; }
.zone-auth > .intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.zone-auth > .panel-wrap { flex: 1 1 480px; min-width: 0; max-width: 560px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { font-size: 15px; font-weight: 600; padding: 12px 8px; min-height: 48px; margin-bottom: -1px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; align-items: center; }
.tabs a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs a:hover { color: var(--accent); }

/* ---------- Portal ---------- */
.portal-header { background: var(--navy); color: var(--white); }
.portal-header .bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 14px; }
.portal-header .brand { color: var(--white); }
.portal-header .brand-name { font-size: 19px; }
.portal-header .who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 15px; }
.portal-header .who a, .portal-header .who button { color: var(--white); }
.portal-header .lang-switch a { color: var(--soft); }
.portal-header .lang-switch a[aria-current="true"] { color: var(--white); background: var(--navy-2); }
.portal-layout { padding-block: 32px 80px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.portal-nav { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 16px; }
.portal-nav a { font-size: 15px; border-radius: var(--radius); padding: 11px 14px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.portal-nav a:hover { background: var(--white); color: var(--accent); }
.portal-nav a[aria-current="page"] { background: var(--white); color: var(--accent); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
.portal-nav .sep { height: 1px; background: var(--line); margin: 10px 4px; }
.portal-nav .nav-heading { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 16px 14px 4px; }
.portal-nav .count { font-size: 12px; font-weight: 700; background: var(--accent); color: var(--white); border-radius: 99px; padding: 1px 8px; }
.portal-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.portal-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.portal-title h1 { font-size: 34px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 22px; }
.panel h3 { font-size: 17px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
a.stat:hover { border-color: var(--accent); color: var(--ink); }
.stat .label { font-size: 14px; color: var(--muted); }
.stat strong { font-family: var(--display); font-size: 26px; }
.stat .sub { font-size: 13px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 10px 12px; white-space: nowrap; }
.table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .sub { display: block; font-size: 13px; color: var(--muted); }
.table td.mono { white-space: nowrap; }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); font-size: 15px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.kv { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 8px 20px; font-size: 15px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.timeline { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.timeline li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.timeline li::before { content: ''; height: 6px; border-radius: 99px; background: var(--line); }
.timeline li.done::before { background: var(--ok); }
.timeline li.current::before { background: var(--accent); }
.timeline li.current { color: var(--ink); font-weight: 600; }
.uptime-bar { display: flex; gap: 2px; height: 28px; align-items: stretch; }
.uptime-bar span { flex: 1; border-radius: 2px; background: #CFE9DB; }
.uptime-bar span.ok { background: var(--ok); }
.uptime-bar span.partial { background: var(--orange); }
.uptime-bar span.down { background: var(--bad); }
.uptime-bar span.none { background: var(--line); }
details.disclosure { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: var(--white); }
details.disclosure > summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style-position: inside; }
details.disclosure[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
details.disclosure > :last-child { margin-bottom: 16px; }
.qr { background: var(--white); padding: 12px; border: 1px solid var(--line); border-radius: 12px; display: inline-block; line-height: 0; }
.qr svg { width: 200px; height: 200px; }
.codes { font-family: var(--mono); display: grid; grid-template-columns: repeat(2, max-content); gap: 6px 24px; background: var(--bg); padding: 16px 20px; border-radius: 12px; font-size: 15px; }

/* ---------- Attention list (dashboard) ---------- */
.attention { display: flex; flex-direction: column; gap: 8px; }
.attention-item { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; border: 1px solid; text-decoration: none; color: var(--ink); background: var(--white); transition: transform .1s, box-shadow .15s; }
.attention-item:hover { color: var(--ink); box-shadow: 0 6px 18px rgba(14, 27, 44, .08); }
.attention-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.attention-body .small { color: var(--muted); }
.attention-action { font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--accent); }
.attention-icon { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--display); color: var(--white); }
.attention-bad { border-color: #F2C2BF; background: var(--bad-soft); } .attention-bad .attention-icon { background: var(--bad); }
.attention-warn { border-color: #F2D49B; background: var(--warn-soft); } .attention-warn .attention-icon { background: var(--orange); }
.attention-info { border-color: #C8DAF3; background: var(--accent-soft); } .attention-info .attention-icon { background: var(--accent); }

/* ---------- Installation progress (stepper) ---------- */
.stepper { margin: 4px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr)); }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 0 4px; font-size: 13px; color: var(--muted); }
.stepper li::before { content: ''; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.current::before { background: var(--ok); }
.stepper .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 99px; background: var(--white); border: 3px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--white); }
.stepper li.done .dot { background: var(--ok); border-color: var(--ok); }
.stepper li.current .dot { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(30, 90, 168, .15); }
.stepper li.current .dot::after { content: ''; width: 10px; height: 10px; border-radius: 99px; background: var(--accent); }
.stepper li.current .name { color: var(--ink); font-weight: 700; }
.stepper li.done .name { color: var(--ink); }
.stepper .date { font-size: 12px; min-height: 1em; }
.install-delayed .stepper li.current .dot { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(245, 166, 35, .2); }
.install-delayed .stepper li.current .dot::after { background: var(--orange); }
.appointment { display: flex; gap: 16px; align-items: center; background: var(--accent-soft); border: 1px solid #C8DAF3; border-radius: 12px; padding: 14px 16px; margin-top: 14px; font-size: 15px; line-height: 1.5; }
.appointment-date { flex: 0 0 auto; width: 58px; text-align: center; background: var(--white); border-radius: 10px; border: 1px solid #C8DAF3; overflow: hidden; line-height: 1.1; }
.appointment-date .day { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; padding: 6px 0 2px; }
.appointment-date .month { display: block; background: var(--accent); color: var(--white); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 3px 0; }
.table tr.install-row td { border-top: 0; padding-top: 0; }
.install-link { display: block; text-decoration: none; color: inherit; }
.install-link:hover .install-now { text-decoration: underline; }
.install-compact { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.install-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.install-now { font-weight: 700; color: var(--accent-dark); }
.install-delayed .install-now { color: var(--warn-ink); }
.install-count { margin-left: auto; color: var(--muted); }
.install-bar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.install-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ok), var(--accent)); }
.install-delayed .install-bar span { background: linear-gradient(90deg, var(--ok), var(--orange)); }
@media (max-width: 760px) {
  .stepper { grid-template-columns: 1fr; gap: 0; }
  .stepper li { flex-direction: row; text-align: left; gap: 12px; padding: 6px 0 14px; }
  .stepper li::before { top: -14px; bottom: auto; left: 12px; right: auto; width: 3px; height: 22px; }
  .stepper .date { margin-left: auto; }
  .appointment { align-items: flex-start; }
}

/* ---------- Filter bar (portal lists) ---------- */
.filter-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.filter-bar .filter-search { grid-column: 1 / -1; }
.filter-bar .filter-actions { display: flex; gap: 8px; }
.filter-bar .filter-actions .btn { min-height: 46px; }

/* ---------- Projects filter ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 16px; min-height: 44px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--white); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.project-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-detail h4 { font-family: var(--font); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
[hidden] { display: none !important; }

/* ---------- Mobile (max 760px) ---------- */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  .display, .h1 { font-size: clamp(32px, 8.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: break-word; hyphens: auto; }
  .h2, .h2-sm { font-size: 28px; line-height: 1.15; }
  .cta-band h2 { font-size: 26px; }
  .lead, .lead-lg, .body-lg { font-size: 17px; }
  .section, .hero .inner { padding-block: 44px 52px; }
  .section-tight, .cta-band .inner { padding-block: 36px 44px; }
  .page-hero { padding-block: 32px 40px; }
  .split, .hero .inner { gap: 32px; }
  .grid { grid-template-columns: 1fr; }
  .card, .form-card, .card-row { padding: 22px; }
  .form-grid, .checks, .project-detail { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }

  .site-header .bar { display: grid; grid-template-columns: 1fr auto; gap: 0; padding-block: 10px; }
  .main-nav, .header-actions { display: none; grid-column: 1 / -1; }
  .m-menu { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: inherit; cursor: pointer; }
  .m-menu svg { width: 20px; height: 20px; }
  .menu-open .main-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; margin-top: 12px; border-top: 1px solid var(--line); }
  .menu-open .main-nav a { padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .menu-open .header-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 14px 0 6px; }

  .table thead { display: none; }
  .table tr { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
  .table td { display: block; padding: 2px 0; border: 0; }
  .table td.num { text-align: left; }
  .table td[data-label]::before { content: attr(data-label) ': '; color: var(--muted); font-size: 13px; }
  .portal-nav { flex-direction: row; flex-basis: 100%; max-width: none; overflow-x: auto; white-space: nowrap; gap: 6px; padding-bottom: 4px; position: static; }
  .portal-nav > * { flex: 0 0 auto; }
  .portal-nav .sep, .portal-nav .nav-heading { display: none; }
  .portal-title h1 { font-size: 28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; }
  .stat strong { font-size: 21px; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .portal-header, .portal-nav, .site-footer, .cta-band, .btn { display: none !important; }
  body { background: #fff; }
}

/* Service detail: ids, availability, traffic chart, history */
.ids { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: 14px; }
.ids .mono { user-select: all; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 32px; align-items: start; }
.avail { display: flex; flex-direction: column; gap: 10px; }
.avail-figure { display: flex; flex-direction: column; gap: 2px; }
.avail-figure strong { font-family: var(--display); font-size: 30px; line-height: 1.1; }
.avail-figure span { font-size: 13px; color: var(--muted); }
.avail-figure.is-ok strong { color: var(--ok-ink); }
.avail-figure.is-bad strong { color: var(--bad-ink); }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.segmented a { padding: 7px 12px; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.segmented a + a { border-left: 1px solid var(--line-strong); }
.segmented a[aria-current="true"] { background: var(--accent-soft); color: var(--accent-dark); }
.chart { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .grid text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .area-down { fill: var(--accent-soft); }
.chart .line-down { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart .line-up { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linejoin: round; }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; }
.legend-row > span { display: inline-flex; align-items: center; gap: 8px; }
.legend-row .key { width: 22px; height: 0; border-top: 3px solid; border-radius: 2px; }
.key-down { border-color: var(--accent); } .key-up { border-color: var(--orange); }
.table.compact td, .table.compact th { padding: 8px 10px; font-variant-numeric: tabular-nums; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 4px 16px; padding: 10px 0 10px 18px; border-top: 1px solid var(--line); position: relative; font-size: 15px; }
.history li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 8px; height: 8px; border-radius: 99px; background: var(--line-strong); }
.history li.ev-service::before, .history li.ev-installation::before { background: var(--ok); }
.history li.ev-ticket::before { background: var(--orange); }
.history li.ev-work::before { background: var(--accent); }
.history li.ev-line-down::before, .history li.ev-monitoring-critical::before { background: var(--bad); }
.history li.ev-line-up::before, .history li.ev-monitoring-recovered::before { background: var(--ok); }
.history time { color: var(--muted); font-size: 14px; }
.history .sub { display: block; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .history li { grid-template-columns: 1fr; } }

/* Tickets: SLA strip, inline edit, watchers */
.sla-strip { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); font-size: 15px; }
.sla-strip.is-breached { background: var(--bad-soft); color: var(--bad-ink); }
details.edit > summary { list-style: none; width: max-content; }
details.edit > summary::-webkit-details-marker { display: none; }
details.edit[open] > summary { margin-bottom: 16px; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.inline-form .field { flex: 1 1 260px; }
.status-accent { color: var(--accent-dark); } .status-accent::before { background: var(--accent); }
.reschedule-note { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); }

/* Change requests and quotes */
.service-card { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 16px 20px; }
.service-card .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.choice { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.choice:hover, .choice:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice strong { font-family: var(--display); font-size: 18px; color: var(--accent-dark); }
.choice span { font-size: 14px; }
.option-list { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.option-list legend { font-weight: 600; margin-bottom: 6px; }
.option { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { width: 18px; height: 18px; accent-color: var(--accent); }
.option .sub { display: block; font-size: 13px; color: var(--muted); }
.option-price { text-align: right; font-weight: 600; }
.notice-box { padding: 14px 16px; border-radius: 12px; background: var(--warn-soft); color: var(--warn-ink); }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.thread li { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); max-width: 760px; }
.thread li.from-staff { background: var(--accent-soft); border-color: #C8DAF3; }
.thread li.from-customer { margin-left: auto; background: var(--white); }
.thread .meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.thread p { margin: 0; white-space: pre-line; }
.quote-card { border: 1px solid var(--line-strong); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.quote-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.quote-totals div { display: flex; flex-direction: column; gap: 2px; }
.quote-totals span { font-size: 13px; color: var(--muted); }
.quote-totals strong { font-family: var(--display); font-size: 22px; }
.decide { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.decide form { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
@media (max-width: 560px) { .option { grid-template-columns: auto 1fr; } .option-price { grid-column: 2; text-align: left; } }

/* Notifications and network status */
.bell { position: relative; display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.bell .count { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--orange); color: var(--navy); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-count { margin-left: auto; min-width: 20px; padding: 1px 7px; border-radius: 99px; background: var(--orange); color: var(--navy); font-size: 12px; font-weight: 700; text-align: center; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes li { border-top: 1px solid var(--line); }
.notes li:last-child { border-bottom: 1px solid var(--line); }
.notes form { margin: 0; }
.notes button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 14px 8px; cursor: pointer; border-radius: 8px; }
.notes button:hover, .notes button:focus-visible { background: var(--bg); outline: 2px solid transparent; }
.notes button:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.note-dot { width: 9px; height: 9px; margin-top: 7px; border-radius: 99px; background: transparent; }
.is-unread .note-dot { background: var(--accent); }
.note-outages.is-unread .note-dot { background: var(--bad); }
.note-maintenance.is-unread .note-dot, .note-deliveries.is-unread .note-dot { background: var(--orange); }
.note-body { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.note-body strong { font-weight: 500; }
.is-unread .note-body strong { font-weight: 700; }
.note-text { color: var(--ink); font-size: 14px; }
.note-meta { color: var(--muted); font-size: 13px; }
.notify-group { border: 0; padding: 0; margin: 0; }
.notify-group legend { font-family: var(--display); font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.notify-table th[scope="row"] { color: var(--ink); font-weight: 400; font-size: 15px; white-space: normal; }
.notify-table th[scope="row"] .sub { display: block; font-size: 12px; color: var(--muted); }
.notify-table td.num, .notify-table th.num { width: 96px; text-align: center; }
.notify-check { width: 18px; height: 18px; accent-color: var(--accent); }
details.scope summary { cursor: pointer; color: var(--accent); margin-top: 4px; }
.webhook-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin-top: 10px; }
.webhook-types fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
pre.code { font-family: var(--mono); font-size: 12px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; margin: 10px 0 0; }
.status-ok-banner { padding: 16px 20px; border-radius: 14px; background: var(--ok-soft); border: 1px solid #B9E0CB; }
.incident-card { text-decoration: none; color: var(--ink); gap: 6px; border-left: 5px solid var(--orange); }
.incident-card.sev-critical, .incident-card.sev-major { border-left-color: var(--bad); }
.incident-card.sev-maintenance { border-left-color: var(--accent); }
.incident-card:hover { border-color: var(--accent); }
.affected { font-size: 13px; color: var(--muted); }

/* Managed services, contracts */
.managed-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.managed-card { text-decoration: none; color: var(--ink); transition: border-color .15s; }
.managed-card:hover { border-color: var(--accent); }
.managed-card h2 { font-size: 19px; }
.escalation { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; counter-reset: esc; }
.escalation li { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.esc-role { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-dark); }
.prose { font-size: 15px; line-height: 1.6; max-width: 780px; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-size: 17px; margin: 18px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose code, .prose pre { font-family: var(--mono); font-size: 13px; background: var(--bg); border-radius: 6px; }
.prose code { padding: 1px 5px; } .prose pre { padding: 12px; overflow-x: auto; }
.prose table { border-collapse: collapse; } .prose th, .prose td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.prose blockquote { margin: 0; padding-left: 14px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.sla { display: flex; flex-direction: column; gap: 14px; }
.chart-scroll { overflow-x: auto; }
.title-state { align-items: flex-end; }
@media (max-width: 640px) {
  .chart-scroll svg { min-width: 600px; }
  .title-state { align-items: flex-start; }
}

/* Consent banner (Google Analytics, only when configured) */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--navy); color: #fff; border-top: 1px solid var(--navy-line); box-shadow: 0 -8px 24px rgba(14, 27, 44, .18); }
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; }
.consent p { margin: 0; max-width: 760px; font-size: 15px; color: var(--soft); }
.consent a { color: #fff; }
.site-footer .btn-link { color: inherit; font-weight: inherit; }
