/* SPDX-FileCopyrightText: 2026 EURA OS */
/* SPDX-License-Identifier: LicenseRef-EURA-Proprietary */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

/* Colours follow EURA OS (EuraKit): ink #12394d, accent #1398be; dark accent #4fc3e0. */
:root {
  --bg: #f6fafb;
  --surface: #ffffff;
  --surface-2: #e8f1f4;
  --ink: #12394d;
  --muted: #5d7685;
  --line: #d6e3e9;
  --accent: #1398be;
  --accent-strong: #0e7a99;
  --on-accent: #ffffff;
  --danger: #c8412a;
  --ok: #1f9d55;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(18, 57, 77, .06), 0 12px 32px rgba(18, 57, 77, .08);
  color-scheme: light;
}
/* Dark only when chosen with the day/night button (static/js/theme.js); light is the default for everyone. */
:root[data-theme="dark"] {
    --bg: #0e171c;
    --surface: #152229;
    --surface-2: #1b2b33;
    --ink: #e4eff3;
    --muted: #93aab5;
    --line: #26383f;
    --accent: #4fc3e0;
    --accent-strong: #7fd6eb;
    --on-accent: #062530;
    --danger: #f07a62;
    --ok: #4cc98a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, sans-serif; font-feature-settings: "cv11";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 650; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 14px; border-radius: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: 7px 12px; border-radius: 10px; font-size: .95rem; font-weight: 500; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent-strong); }
.nav .nav-account { background: var(--surface-2); }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.lang-switch a, .lang-switch span { padding: 8px 11px; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--muted); min-width: 40px; text-align: center; }
.lang-switch a:hover { background: var(--surface-2); color: var(--ink); }
.lang-switch [aria-current] { background: var(--accent); color: var(--on-accent); }
.brand span { white-space: nowrap; }
@media (max-width: 440px) {
  .bar { gap: 8px; }
  .tools { gap: 6px; }
  .lang-switch a, .lang-switch span { padding: 7px 8px; min-width: 34px; }
  .theme-toggle { width: 36px; height: 36px; }
  .menu-toggle { padding: 7px 10px; }
}
.menu-toggle { display: none; font: inherit; font-weight: 500; color: var(--ink); background: var(--surface-2); border: 0; border-radius: 10px; padding: 7px 14px; cursor: pointer; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; align-items: stretch;
         background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
}
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.button.danger { color: var(--danger); }
.button.small { min-height: 36px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }
.button:disabled { opacity: .55; cursor: default; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Sections */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 72px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.15fr; } }
.kicker { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--accent-strong);
          background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 4px 12px; border-radius: 999px; margin-bottom: 1.2em; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--surface); }
.shot.phone { max-width: 320px; justify-self: center; border-radius: 34px; border-width: 6px; border-color: var(--surface-2); }
.shot.wide { margin-top: 28px; }
.band { padding: clamp(40px, 6vw, 80px) 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { padding: clamp(40px, 6vw, 88px) 0; }
.split-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split-grid { grid-template-columns: 1.2fr 1fr; } }
.section-title { margin-bottom: 1.2em; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px 40px; }
@media (min-width: 700px) { .points { grid-template-columns: 1fr 1fr; } }
.points li { padding-left: 18px; border-left: 3px solid var(--accent); }
.points p { color: var(--muted); margin: 0; }
.status-band { background: var(--surface-2); }

.page-head { padding: clamp(40px, 6vw, 80px) 0 24px; }
.page-head.compact { padding-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 32px; }
.chips a { text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500; }
.chips a:hover { border-color: var(--accent); }
.feature-group { padding: 24px 0 40px; scroll-margin-top: 80px; }
.feature-group h2 { display: flex; align-items: center; gap: 12px; }
.icon { width: 30px; height: 30px; color: var(--accent); flex: none; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards.three { grid-template-columns: repeat(3, 1fr); } }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.band .cards li { background: var(--bg); }
.cards p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Roadmap */
.roadmap { list-style: none; padding: 0; margin: 8px 0 64px; display: grid; gap: 16px; }
@media (min-width: 760px) { .roadmap { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .roadmap { grid-template-columns: repeat(4, 1fr); } }
.stage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stage h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.stage ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.stage li { margin: .45em 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); flex: none; }
.stage-ready .dot { background: var(--ok); }
.stage-now .dot { background: var(--accent); }
.stage-next .dot { background: #e3a43a; }
.stage-ready { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: .92rem; }
.foot { display: grid; gap: 24px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1fr 1.4fr; } }
.foot .brand { margin-bottom: 10px; }
.foot-notes p { margin: 0 0 .5em; }

/* Account panel */
.panel { margin: 16px 0 72px; min-height: 240px; }
.notice { background: var(--surface-2); border-radius: 12px; padding: 14px 18px; }
.notice.error { background: color-mix(in srgb, var(--danger) 14%, transparent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.card h2 { font-size: 1.2rem; }
.signed-out { max-width: 560px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tabs button { font: inherit; font-weight: 500; background: none; border: 0; padding: 10px 14px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.who { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
dl.facts { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 20px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.device { display: grid; gap: 12px; }
.device-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.device-head h3 { margin: 0; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); margin-left: 6px; }
.tag.online { color: var(--ok); }
.tag.lost { color: var(--danger); }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
form.stack { display: grid; gap: 12px; max-width: 440px; }
label { font-weight: 500; font-size: .95rem; display: grid; gap: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel] {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%;
}
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.help { font-size: .85rem; color: var(--muted); font-weight: 400; }
.history { list-style: none; padding: 0; margin: 0; font-size: .92rem; }
.history li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .history li { flex-wrap: wrap; gap: 4px 12px; }
  .history li > span:first-child { flex: 1 0 100%; font-weight: 600; }
  .history li > span.muted { flex: 1 1 auto; }
}
.swatch { display: inline-block; width: .75em; height: .75em; border-radius: 50%; margin-right: .5em; vertical-align: baseline; }
.code { font-family: ui-monospace, monospace; font-size: .85rem; word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.attribution { font-size: .8rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* EURA Book, EURA Systems */
.subtitle { font-size: 1.35rem; font-weight: 600; margin: -.2em 0 .8em; }
.book-art { color: var(--ink); }
.book-art svg { width: 100%; height: auto; max-width: 520px; display: block; margin: 0 auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
textarea { resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg:empty { display: none; }
.two-col { display: grid; gap: 16px; align-items: start; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1.3fr 1fr; } }
.small-h { font-size: 1rem; color: var(--muted); font-weight: 600; margin-top: 1.2em; }
.press-logos { display: flex; flex-wrap: wrap; gap: 24px; }
.press-logos figure { margin: 0; text-align: center; }
.press-logos img { margin: 0 auto 8px; }
.swatches { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 16px; font-family: ui-monospace, monospace; font-size: .9rem; }
.swatches span { display: block; width: 72px; height: 48px; border-radius: 10px; margin-bottom: 6px; border: 1px solid var(--line); }
.foot-links { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.card-link h3 { margin-bottom: .4em; }

/* Support, status, catalogues */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search input { font: inherit; font-size: 1.1rem; width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.results { list-style: none; padding: 8px 0 0; margin: 0; }
.results li { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.spaced { margin-top: 32px; }
.spacer { height: 64px; }
.chips.plain { list-style: none; padding: 0; }
.chips.plain li { background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: .92rem; }
.crumb { font-size: .9rem; margin-bottom: 8px; }
.crumb a { text-decoration: none; }
.article-wrap { padding-top: 40px; }
.article h2 { font-size: 1.3rem; margin-top: 1.6em; }
.article ol, .article ul { padding-left: 1.3em; }
.article li { margin: .35em 0; }
.article blockquote { margin: 1.2em 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 8px; color: var(--muted); }
.article code { font-family: ui-monospace, monospace; font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.helpful { margin: 32px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.helpful p { margin: 0; font-weight: 500; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plain-list.big li { font-size: 1.1rem; }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; }
.state-ok .dot { background: var(--ok); }
.state-degraded .dot { background: #e3a43a; }
.state-outage .dot { background: var(--danger); }
.languages { display: grid; gap: 12px; margin: 24px 0; }
.lang-row { display: grid; grid-template-columns: 8em 1fr 3.5em; gap: 12px; align-items: center; }
progress { width: 100%; height: 10px; accent-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filters select { width: auto; min-height: 40px; }
.hw-works-well { color: var(--ok); }
.hw-works-with-notes { color: #b7791f; }
.hw-not-recommended { color: var(--danger); }
.tests { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.tests .tick { display: inline-block; width: 1.4em; font-weight: 700; color: var(--ok); }
.tests .note .tick { color: #b7791f; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.wide-form { max-width: 640px; margin-top: 16px; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; }
.steps li h3::before { content: counter(s) ". "; color: var(--accent); }
