/* eurion.se — Nord palette (eu-teams/docs/ux/design-system.md), light first, dark via prefers-color-scheme.
   Accent is Nord 10 darkened to keep 4.5:1 on light surfaces. Spacing on a 4px grid. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fafbfc;
  --bg-alt: #eceff4;   /* nord6 */
  --surface: #ffffff;
  --line: #d8dee9;     /* nord4 */
  --fg: #2e3440;       /* nord0 */
  --muted: #4c566a;    /* nord3 */
  --accent: #456790;   /* nord10, darkened for AA */
  --accent-hover: #37547a;
  --on-accent: #ffffff;
  --check: #4f7a5a;    /* nord14, darkened */
  --focus: #5e81ac;    /* nord10 */
  --dark-bg: #2e3440;
  --shadow: 0 1px 2px rgb(46 52 64 / 0.06), 0 8px 24px rgb(46 52 64 / 0.08);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --container: 1120px;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --section: 88px;
  --radius: 10px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2e3440;
    --bg-alt: #3b4252;
    --surface: #3b4252;
    --line: #4c566a;
    --fg: #eceff4;
    --muted: #d8dee9;
    --accent: #88c0d0;  /* nord8 */
    --accent-hover: #8fbcbb;
    --on-accent: #2e3440;
    --check: #a3be8c;
    --focus: #88c0d0;
    --dark-bg: #242933;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
ul, ol { margin: 0; padding: 0; }
abbr[title] { text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--fg); padding: 12px 16px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }
.mono { font-family: var(--mono); font-size: 0.875em; }
.fine-print { font-size: 14px; color: var(--muted); }

/* ── Buttons and links ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: 600 15px/1.2 var(--font);
  border: 1.5px solid transparent; border-radius: 8px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1), border-color 150ms, color 150ms;
}
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 16px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--secondary { border-color: var(--muted); color: var(--fg); background: transparent; }
.btn--secondary:hover { border-color: var(--fg); color: var(--fg); background: var(--bg-alt); }
.btn--on-dark { border-color: #d8dee9; color: #eceff4; }
.btn--on-dark:hover { background: rgb(236 239 244 / 0.1); color: #eceff4; }
.btn .fine-print { font-weight: 400; color: inherit; opacity: 0.8; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.arrow-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; }
.arrow-link::after { content: '→'; transition: transform 150ms; }
.arrow-link:hover { text-decoration: underline; }
.arrow-link:hover::after { transform: translateX(3px); }
.link-row { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: var(--fg); }
.site-nav { display: flex; align-items: center; gap: 24px; flex: 1; }
.site-nav nav { flex: 1; }
.site-nav__links { list-style: none; display: flex; gap: 4px; }
.site-nav__links a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
}
.site-nav__links a:hover { color: var(--fg); background: var(--bg-alt); }
.site-nav__links a[aria-current='page'] { color: var(--fg); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.site-nav__actions { display: flex; align-items: center; gap: 16px; }
.lang-switch, .link-quiet { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 4px; }
.lang-switch { font-family: var(--mono); font-size: 14px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.lang-switch:hover, .link-quiet:hover { color: var(--fg); }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .site-header__inner { flex-wrap: wrap; gap: 0 16px; }
  .brand { margin-right: auto; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
    font: 600 15px var(--font); color: var(--fg); background: transparent;
    border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .menu-toggle::before {
    content: ''; width: 16px; height: 10px;
    border-block: 2px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding-block: 8px 20px; }
  .site-nav.is-open { display: flex; }
  .site-nav__links { flex-direction: column; }
  .site-nav__links a { padding: 12px 8px; font-size: 17px; }
  .site-nav__links a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
  .site-nav__actions { flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
  .site-nav__actions .btn { flex: 1 1 100%; }
}

/* ── Sections ─────────────────────────────────────────── */
.section { padding-block: var(--section); }
.section--tight { padding-block: 56px; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  --fg: #eceff4; --muted: #d8dee9; --accent: #88c0d0; --accent-hover: #8fbcbb; --on-accent: #2e3440;
  --line: #4c566a; --bg-alt: #3b4252; --check: #a3be8c; --focus: #88c0d0;
  background: var(--dark-bg); color: var(--fg);
}
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 62ch; }
.section-head p { color: var(--muted); font-size: 18px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 62ch; line-height: 1.55; }
.prose { display: grid; gap: 16px; max-width: 66ch; }
.prose ul:not(.checks) { padding-left: 20px; display: grid; gap: 8px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 64px; align-items: start; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

@media (max-width: 760px) {
  :root { --section: 64px; }
  .split, .two-col { grid-template-columns: minmax(0, 1fr); }
}

/* ── Hero and page heads ──────────────────────────────── */
.hero { padding-block: 88px 0; }
.hero__inner { display: grid; gap: 24px; justify-items: start; }
.hero h1 { max-width: 19ch; }
.hero .actions { margin-top: 8px; }
.fact-row {
  list-style: none; margin-top: 72px; padding-block: 28px 64px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px;
  border-top: 1px solid var(--line);
}
.fact-row li { display: grid; gap: 4px; align-content: start; }
.fact-row strong { font-size: 16px; }
.fact-row span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .fact-row { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; } }
@media (max-width: 480px) {
  .hero { padding-top: 56px; }
  .fact-row { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; }
}

.page-head { padding-block: 80px 48px; border-bottom: 1px solid var(--line); }
.page-head .container { display: grid; gap: 20px; }
.page-head h1 { max-width: 22ch; }
@media (max-width: 480px) { .page-head { padding-block: 48px 36px; } }

/* ── Features ─────────────────────────────────────────── */
.feature-grid {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin-bottom: 56px;
}
.feature-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
.feature-grid li { display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 1px solid var(--line); }
.feature-grid p { color: var(--muted); }
.icon { color: var(--accent); margin-bottom: 4px; }
@media (max-width: 960px) { .feature-grid, .feature-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid, .feature-grid--four { grid-template-columns: minmax(0, 1fr); } }

.feature-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 40px 64px; align-items: center; }
.feature-row--flip .feature-row__text { order: 2; }
.feature-row__text { display: grid; gap: 14px; }
.feature-row__text > p { color: var(--muted); font-size: 18px; }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: minmax(0, 1fr); }
  .feature-row--flip .feature-row__text { order: 0; }
}

.shot { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #2e3440; }
.feature-row .shot { margin: 0; }

.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ''; position: absolute; left: 3px; top: 0.42em;
  width: 12px; height: 7px; border-left: 2px solid var(--check); border-bottom: 2px solid var(--check);
  transform: rotate(-45deg);
}

/* ── Panels ───────────────────────────────────────────── */
.panel {
  display: grid; gap: 16px; align-content: start; justify-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px;
}
.panel > p { color: var(--muted); }
.panel h2 { font-size: 24px; }
@media (max-width: 480px) { .panel { padding: 24px 20px; } }
.report__meta { font-size: 14px; color: var(--muted); }

/* ── Steps and timeline (real sequences) ─────────────── */
.steps { list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px;
  border: 1.5px solid var(--accent); border-radius: 50%; color: var(--accent); font-weight: 600; font-size: 14px;
}
.timeline { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-bottom: 48px; }
.timeline li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 20px; border-top: 2px solid var(--accent); }
.timeline li::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 14px; color: var(--accent); }
.timeline p { color: var(--muted); }
@media (max-width: 860px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .timeline { grid-template-columns: minmax(0, 1fr); } }

.cta-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.cta-band > div:first-child { display: grid; gap: 12px; }
.cta-band > div:first-child p, .cta-inline p { color: var(--muted); font-size: 18px; }
.cta-band .actions { grid-column: 1 / -1; }
.cta-band__alt { color: var(--muted); }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-inline > div { display: grid; gap: 8px; max-width: 60ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* ── Comparison table ─────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: 16px; }
.compare tbody th { font-weight: 600; width: 26%; }
.compare td:nth-child(2), .compare thead th:nth-child(2) { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.compare td:last-child { color: var(--muted); }
.section--tight .fine-print { margin-top: 12px; }
/* Phones: one block per row, each value labelled with its column */
@media (max-width: 640px) {
  .table-wrap { overflow: visible; }
  .compare { min-width: 0; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: grid; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { display: block; padding: 0; border: 0; width: auto; }
  .compare tbody th { width: auto; font-size: 16px; }
  .compare td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .compare td::before { content: attr(data-label); font-weight: 600; color: var(--fg); }
  .compare td:nth-child(2) { background: none; }
}

/* ── Security page ────────────────────────────────────── */
.toc { padding-block: 24px 0; }
.toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg); text-decoration: none; font-size: 14px;
}
.toc a:hover { border-color: var(--accent); color: var(--accent); }
.prose h3 { margin-top: 8px; }

/* ── Forms and details ────────────────────────────────── */
.form { display: grid; gap: 16px; width: 100%; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input {
  min-height: 46px; padding: 10px 12px; width: 100%;
  font: 16px var(--font); color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--muted); border-radius: 8px;
}
.field input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent); }
.field input[aria-invalid='true'] { border-color: #a3434c; }
.form .btn { justify-self: start; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-radius: 8px; background: var(--bg-alt); font-weight: 500; }
.form-status[data-state='ok'] { border-left: 4px solid var(--check); }
.form-status[data-state='error'] { border-left: 4px solid #bf616a; }

.details { display: grid; gap: 0; margin: 0; max-width: 560px; }
.details div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .details div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

.legal { display: grid; gap: 12px; max-width: 72ch; }
.legal h2 { font-size: 20px; margin-top: 20px; }
.legal h2:first-child { margin-top: 0; }

/* ── Footer ───────────────────────────────────────────── */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding-top: 56px; font-size: 15px; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 40px 32px; }
.site-footer__brand { display: grid; gap: 12px; align-content: start; max-width: 32ch; }
.site-footer__brand p { color: var(--muted); }
.footer-col h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--fg); text-decoration: none; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.site-footer__bottom { margin-top: 48px; padding-block: 20px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 400px) { .site-footer__top { grid-template-columns: minmax(0, 1fr); } }
