@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-400-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-400-greek.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/inter-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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-weight:400;font-display:swap;src:url(/fonts/inter-400-latin.woff2) format('woff2');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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-500-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-500-greek.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/inter-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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-weight:500;font-display:swap;src:url(/fonts/inter-500-latin.woff2) format('woff2');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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-600-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-600-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-600-greek.woff2) format('woff2');unicode-range:U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/inter-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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-weight:600;font-display:swap;src:url(/fonts/inter-600-latin.woff2) format('woff2');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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/poppins-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/poppins-400-latin.woff2) format('woff2');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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/poppins-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/poppins-500-latin.woff2) format('woff2');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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/poppins-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/poppins-600-latin.woff2) format('woff2');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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/poppins-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, 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:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/poppins-700-latin.woff2) format('woff2');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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ============================================================
   Mudravia marketing site — design-system stylesheet.
   Tokens: design project "Mudravia Design System" colors_and_type.css
   with the handoff overrides baked in: border-radius 0 everywhere,
   elevation ladder instead of rounding, navy/white/grey restraint,
   dark mode as a pure token swap.
   Generated /site.css = fontfaces.css + this file (see build.mjs).
   ============================================================ */

:root {
  /* Brand */
  --fc-primary: #1D4E89;
  --fc-primary-hover: #2A64A9;   /* button hover ONLY */
  --fc-primary-press: #12325A;
  --fc-link: #1D4E89;
  --fc-link-hover: #173F6E;      /* link hover — darker, never lighter */
  --fc-primary-soft: #E8EFF6;
  --fc-primary-soft-border: #C2D3E6;
  --fc-sidebar-bg: #1E2E38;

  /* Neutrals (semantic layer — swapped wholesale in dark mode) */
  --ink: #05051E;
  --fg: #232323;
  --fg-muted: #51516A;
  --fg-faint: #9F9FB1;           /* placeholders/disabled ONLY */
  --border: #CED4DA;
  --border-soft: #E5E5E9;
  --line: #EFF2F7;
  --surface: #FAFAFB;
  --page: #F4F6F9;
  --card: #FFFFFF;
  --input-bg: #FFFFFF;
  --accent: #1D4E89;             /* links, numbers; lifts in dark */
  --btn-bg: #1D4E89;
  --btn-fg: #FFFFFF;
  --btn-bg-hover: #2A64A9;
  --btn-bg-press: #12325A;

  /* Status (restrained: success renders navy, not green) */
  --chip-navy-bg: #E8EFF6;
  --chip-navy-border: #1D4E89;
  --chip-navy-text: #1D4E89;
  --chip-soft-border: #C2D3E6;
  --chip-grey-bg: #F4F6F9;
  --chip-grey-border: #CED4DA;
  --chip-grey-text: #51516A;
  --warn-bg: #F3E8D3;
  --warn-border: #E4CE9F;
  --warn-text: #96471F;
  --warn: #D98E32;
  --danger-bg: #F5E2DF;
  --danger-border: #E3B3AC;
  --danger-text: #A82F22;
  --danger: #C0392B;

  /* Type */
  --font-sans: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Elevation ladder (radius is 0 everywhere; elevation carries depth) */
  --shadow-chip: 0 1px 2px rgba(18,38,63,.06);
  --shadow-card: 0 1px 2px rgba(18,38,63,.03);
  --shadow-btn: 0 1px 2px rgba(18,38,63,.12);
  --shadow-input: 0 1px 2px rgba(18,38,63,.08);
  --shadow-topbar: 0 2px 4px rgba(18,38,63,.05);
  --shadow-raised: 0 2px 4px rgba(18,38,63,.07);
  --shadow-modal: 0 8px 24px rgba(18,38,63,.12);
  --focus-ring: 0 0 0 2px rgba(29,78,137,.30);
  --focus-ring-error: 0 0 0 2px rgba(192,57,43,.20);

  /* Footer band (design 1a: dark slab in both themes) */
  --footer-bg: #1E2E38;
  --footer-fg: #FFFFFF;
  --footer-muted: rgba(255,255,255,.72);

  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: 180ms;
  --maxw: 1120px;
}

/* Greek + Bulgarian pages lead with Inter (Poppins has no Greek/Cyrillic). */
:root[lang="el"], :root[lang="bg"] {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark mode — token swap only, per the handoff. Shadows deepen, never vanish. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EAF0F6;
    --fg: #C9D4DE;
    --fg-muted: #93A1AE;
    --fg-faint: #6C7B89;
    --border: #33424F;
    --border-soft: #253340;
    --line: #1E2A34;
    --surface: #101A22;
    --page: #0F1720;
    --card: #16212B;
    --input-bg: #101A22;
    --accent: #6FA8D6;
    --btn-bg: #3D7AB8;
    --btn-fg: #08131C;
    --btn-bg-hover: #6FA8D6;
    --btn-bg-press: #2B62A6;
    --chip-navy-bg: #14293D;
    --chip-navy-border: #2B62A6;
    --chip-navy-text: #9FC3E3;
    --chip-soft-border: #2B62A6;
    --chip-grey-bg: #1C2833;
    --chip-grey-border: #33424F;
    --chip-grey-text: #93A1AE;
    --warn-bg: #2E2317;
    --warn-border: #7A5A2E;
    --warn-text: #E0A35A;
    --warn: #E0A35A;
    --danger-bg: #33201E;
    --danger-border: #7C4038;
    --danger-text: #E4695C;
    --danger: #E4695C;
    --footer-bg: #0A1118;
    --footer-fg: #EAF0F6;
    --footer-muted: rgba(234,240,246,.72);
    --shadow-card: 0 2px 6px rgba(0,0,0,.35);
    --shadow-raised: 0 2px 6px rgba(0,0,0,.35);
    --shadow-topbar: 0 2px 4px rgba(0,0,0,.40);
    --shadow-modal: 0 8px 24px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --ink: #EAF0F6;
  --fg: #C9D4DE;
  --fg-muted: #93A1AE;
  --fg-faint: #6C7B89;
  --border: #33424F;
  --border-soft: #253340;
  --line: #1E2A34;
  --surface: #101A22;
  --page: #0F1720;
  --card: #16212B;
  --input-bg: #101A22;
  --accent: #6FA8D6;
  --btn-bg: #3D7AB8;
  --btn-fg: #08131C;
  --btn-bg-hover: #6FA8D6;
  --btn-bg-press: #2B62A6;
  --chip-navy-bg: #14293D;
  --chip-navy-border: #2B62A6;
  --chip-navy-text: #9FC3E3;
  --chip-soft-border: #2B62A6;
  --chip-grey-bg: #1C2833;
  --chip-grey-border: #33424F;
  --chip-grey-text: #93A1AE;
  --warn-bg: #2E2317;
  --warn-border: #7A5A2E;
  --warn-text: #E0A35A;
  --warn: #E0A35A;
  --danger-bg: #33201E;
  --danger-border: #7C4038;
  --danger-text: #E4695C;
  --danger: #E4695C;
  --footer-bg: #0A1118;
  --footer-fg: #EAF0F6;
  --footer-muted: rgba(234,240,246,.72);
  --shadow-card: 0 2px 6px rgba(0,0,0,.35);
  --shadow-raised: 0 2px 6px rgba(0,0,0,.35);
  --shadow-topbar: 0 2px 4px rgba(0,0,0,.40);
  --shadow-modal: 0 8px 24px rgba(0,0,0,.45);
}

/* ───────── Base ───────── */
* { box-sizing: border-box; border-radius: 0 !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--fc-link-hover); text-decoration: underline; }
:root[data-theme="dark"] a:hover { color: #9FC3E3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a:hover { color: #9FC3E3; } }
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--ink); margin: 0; text-wrap: pretty; }
p { text-wrap: pretty; }
img, video { max-width: 100%; height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.num, .mono-id { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 11.5px; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ───────── Topbar (console shell language: white, 70px, shadowed) ───────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--card);
  box-shadow: var(--shadow-topbar);
  border-bottom: 1px solid var(--border-soft);
}
.topbar-inner {
  min-height: 70px; display: flex; align-items: center; gap: 16px; width: 100%;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; color: var(--ink); flex: none; }
.brand img { height: 28px; width: auto; display: block; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
.topnav { display: flex; align-items: center; gap: 16px; margin-left: 8px; font-size: 13px; font-weight: 500; flex-shrink: 1; min-width: 0; }
.topnav a { color: var(--fg-muted); white-space: nowrap; flex-shrink: 0; }
.topnav a:hover { color: var(--accent); text-decoration: none; }
.topnav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.topnav a.nav-highlight {
  color: var(--fc-primary, #1D4E89);
  font-weight: 700;
  background: rgba(29, 78, 137, 0.08);
  padding: 4px 9px;
  border-radius: 6px;
}
:root[data-theme="dark"] .topnav a.nav-highlight {
  color: #4DA1FF;
  background: rgba(77, 161, 255, 0.14);
}
.lang-switch-link { font-size: 12.5px; font-weight: 500; color: var(--fg-muted); text-decoration: none; padding: 4px 6px; flex-shrink: 0; }
.lang-switch-link:hover { color: var(--accent); text-decoration: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* "Data hosted in EU" pill — straight from the console topbar */
.eu-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .02em;
  color: var(--chip-navy-text); background: var(--chip-navy-bg);
  border: 1px solid var(--chip-soft-border);
  padding: 4px 9px; box-shadow: var(--shadow-chip); white-space: nowrap;
}

/* Language select — console "EN ▾" affordance */
.lang-select {
  appearance: none; -webkit-appearance: none;
  font-family: var(--font-ui); font-size: 12px; font-weight: 500;
  color: var(--fg); background: var(--card);
  border: 1px solid var(--border); height: 32px; padding: 0 26px 0 10px;
  box-shadow: var(--shadow-input); cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%2351516A'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.lang-select:focus-visible { outline: none; border-color: var(--fc-primary); box-shadow: var(--focus-ring); }

/* Mobile menu (design 1b): logo left, 44px burger right, links folded into a
   details/summary panel so it works with no script at all. Hidden on desktop. */
.nav-menu { display: none; margin-left: auto; }
.nav-burger {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--border); background: var(--card); color: var(--ink);
}
.nav-burger::-webkit-details-marker { display: none; }
.nav-burger span { width: 20px; height: 2px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-burger:hover { background: var(--chip-navy-bg); border-color: var(--fc-primary); }
.nav-burger:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.nav-menu[open] .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-menu[open] .nav-burger span:nth-child(2) { opacity: 0; }
.nav-menu[open] .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--card); border-bottom: 1px solid var(--border-soft); box-shadow: var(--shadow-modal);
  padding: 8px 24px 20px; display: flex; flex-direction: column; gap: 4px;
}
.nav-panel nav { display: flex; flex-direction: column; }
.nav-panel nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-panel nav a:hover { text-decoration: none; color: var(--accent); }
.nav-panel .nav-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-size: 13px; color: var(--fg-muted); }
.nav-panel .btn { width: 100%; }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  height: 40px; padding: 0 18px; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; text-decoration: none;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12.5px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
.btn-primary:active { background: var(--btn-bg-press); }
.btn-outline { background: var(--card); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-input); }
.btn-outline:hover { border-color: var(--fc-primary); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--chip-navy-bg); color: var(--chip-navy-text); }
.btn[disabled] { opacity: .55; cursor: default; pointer-events: none; }

/* ───────── Chips (square, 1px border, icon + label — never colour-only) ───────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; letter-spacing: .02em;
  padding: 3px 8px; border: 1px solid; box-shadow: var(--shadow-chip); white-space: nowrap;
}
.chip-navy { background: var(--chip-navy-bg); border-color: var(--chip-navy-border); color: var(--chip-navy-text); }
.chip-soft { background: var(--chip-navy-bg); border-color: var(--chip-soft-border); color: var(--chip-navy-text); }
.chip-grey { background: var(--chip-grey-bg); border-color: var(--chip-grey-border); color: var(--chip-grey-text); }
.chip-warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }
.chip-danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger-text); }

/* Confidence pill — the console's own recipe: a 0–100% score in tabular
   figures. At or above the 85% review threshold = info recipe; below = warn. */
.pct {
  display: inline-block; font-family: var(--font-ui); font-variant-numeric: tabular-nums;
  font-size: 10px; font-weight: 600; padding: 2px 6px; border: 1px solid;
  background: var(--chip-navy-bg); border-color: var(--chip-soft-border); color: var(--chip-navy-text);
}
.pct-low { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn-text); }

/* ───────── Typography roles ───────── */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 10px;
}
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head h2, .split-head h2, .side-copy h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.sec-head p { color: var(--fg-muted); font-size: 14px; margin: 12px 0 0; }
.sec-lede { font-size: 15px; line-height: 1.65; color: var(--fg); margin: 0; }
.eyebrow + h2 { margin-top: 0; }

/* Section header split in two columns (eyebrow + h2 left, lede right) */
.split-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px 56px; align-items: start; margin-bottom: 32px; }
.split-head > div { min-width: 0; }

/* Paragraph beside a diagram: text one column, visual the other */
.side-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 56px; align-items: start; }
.side-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.side-copy .eyebrow { margin: 0; }
.side-copy p { margin: 0; }
.side-copy .more { font-family: var(--font-ui); font-size: 13.5px; font-weight: 500; }

/* ───────── Sections & cards ───────── */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }
.band { background: var(--card); }
.band + section, section + .band { border-top: 1px solid var(--border-soft); }
.card {
  background: var(--card); border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-raised); padding: 24px;
}
.card h3 { font-size: 15px; font-weight: 600; margin: 10px 0 8px; }
.card p { font-size: 13px; line-height: 1.65; color: var(--fg-muted); margin: 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card .meta { font-size: 11.5px; color: var(--fg-muted); margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ───────── Hero (A1) ───────── */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 56px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-copy .eyebrow { margin: 0; }
.hero h1 {
  font-size: clamp(30px, 4.4vw, 54px); font-weight: 700;
  line-height: 1.1; letter-spacing: -.02em; margin: 0;
}
.hero .lede { font-size: 15px; line-height: 1.65; color: var(--fg); margin: 0; }
.hero .lede em { font-style: italic; }
.hero .lede strong { color: var(--fg); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0; }
.scope-note {
  font-size: 13px; line-height: 1.6; color: var(--fg-muted);
  border-top: 1px solid var(--border-soft); padding-top: 14px; margin: 0;
}
.scope-note strong { color: var(--fg); font-weight: 600; }
.hero-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* Deadline countdown — amber is reserved for expiry countdowns; this is one.
   Fixed min-height and a fixed-size figure box so the number arriving (or
   the post-deadline message replacing it) never moves the tiles below. */
.deadline-card {
  background: var(--warn-bg); border: 1px solid var(--warn-border);
  box-shadow: var(--shadow-chip); padding: 16px 18px; min-height: 120px;
  display: flex; flex-direction: column; gap: 10px;
}
.deadline-live { display: flex; align-items: center; gap: 16px; }
.deadline-live .days {
  font-family: var(--font-ui); font-variant-numeric: tabular-nums;
  font-size: 40px; font-weight: 700; line-height: 1; color: var(--warn-text);
  min-width: 2.2ch; text-align: right; flex: none;
}
.deadline-live .lbl { font-size: 11.5px; line-height: 1.45; font-weight: 500; color: var(--warn-text); text-transform: uppercase; letter-spacing: .05em; }
.deadline-passed { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--warn-text); min-height: 40px; display: flex; align-items: center; }
.deadline-live[hidden], .deadline-passed[hidden] { display: none; }
.deadline-bar { height: 4px; background: var(--warn-border); overflow: hidden; }
.deadline-bar span { display: block; height: 100%; width: 0; background: var(--warn); transition: width .6s var(--ease); }
.deadline-src { margin: 0; font-family: var(--font-ui); font-size: 11px; line-height: 1.45; color: var(--warn-text); opacity: .9; }

.stat-tiles {
  background: var(--card); border: 1px solid var(--border-soft); box-shadow: var(--shadow-card);
  padding: 20px 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px;
}
.stat-tiles > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat-tiles .num { font-size: 26px; font-weight: 700; line-height: 1; color: var(--accent); }
.stat-tiles .lbl { font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); }

/* ───────── Flow (A2 / 1d) ───────── */
.flow { position: relative; }
.flow-rail { display: none; position: absolute; left: 12.5%; right: 12.5%; top: 0; height: 2px; background: var(--chip-soft-border); }
.flow-rail i { position: absolute; top: -4px; width: 10px; height: 10px; background: var(--accent); transform: translateX(-50%); }
.flow-rail i:nth-child(1) { left: 0; }
.flow-rail i:nth-child(2) { left: 33.333%; }
.flow-rail i:nth-child(3) { left: 66.667%; }
.flow-rail i:nth-child(4) { left: 100%; }
.flow-pulse { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; background: var(--accent); opacity: 0; animation: flow-slide 6s linear infinite; }
@keyframes flow-slide { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }
.flow-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
@media (min-width: 981px) {
  .flow { padding-top: 22px; }
  .flow-rail { display: block; }
  .flow-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tile {
  border: 1px solid var(--border-soft); border-top: 3px solid var(--accent); background: var(--surface);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.tile-head { display: flex; justify-content: space-between; gap: 8px; font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.tile h3 { font-size: 15px; font-weight: 600; }
.tile p { font-size: 12.5px; line-height: 1.5; color: var(--fg-muted); margin: 0; }
/* Artefact window: fixed height so ES/DE captions grow below without moving the row */
.tile-art { height: 130px; background: var(--card); border: 1px solid var(--border); font-family: var(--font-ui); font-size: 11px; color: var(--fg); overflow: hidden; }
.channels { padding: 10px 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.channels .ch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--border); color: var(--fg-muted); font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: center; padding: 2px; }
.channels .ch .ico { width: 18px; height: 18px; }
.channels .ch.on { border-color: var(--chip-soft-border); background: var(--chip-navy-bg); color: var(--chip-navy-text); }
.fields { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.fields .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fields .row > span:last-child { display: flex; align-items: center; gap: 5px; }
.fields .lbl { font-size: 9.5px; font-weight: 500; color: var(--fg-muted); }
.fields .lbl-low { color: var(--warn-text); }
.fields .threshold { border-top: 1px solid var(--line); padding-top: 5px; font-size: 9.5px; font-weight: 500; color: var(--fg-muted); }
.review { padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.review .k { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--fg-muted); }
.review .v { margin-top: 4px; padding: 4px 8px; border: 1px solid var(--accent); background: var(--card); font-family: var(--font-mono); font-size: 10.5px; line-height: 1.4; overflow: hidden; }
.review .acts { display: flex; gap: 6px; }
.review .acts span { padding: 5px 10px; font-size: 11px; font-weight: 600; }
.review .acts .a1 { background: var(--btn-bg); color: var(--btn-fg); }
.review .acts .a2 { border: 1px solid var(--border); color: var(--fg); }
.driver { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 10px; }
.driver img { width: 64px; height: 64px; padding: 5px; border: 2px solid var(--ink); background: #fff; flex: none; }
.driver .txt { font-size: 11px; line-height: 1.5; color: var(--fg-muted); }
.driver .txt b { display: block; font-weight: 600; color: var(--ink); }

/* ───────── Console captures (A3 / A10) ───────── */
.media-rows { display: flex; flex-direction: column; gap: 40px; }
.media-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 56px; align-items: center; }
.media-row--top { align-items: start; }
.media-copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.media-copy h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.media-copy p { margin: 0; }
@media (min-width: 701px) { .media-row--flip .media-copy { order: 2; } }
.media-shot { margin: 0; aspect-ratio: 16 / 10; border: 1px solid var(--border-soft); box-shadow: var(--shadow-raised); background: var(--card); overflow: hidden; }
.media-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media-phone { border: 1px solid var(--border-soft); box-shadow: var(--shadow-raised); background: var(--surface); padding: 24px; display: flex; justify-content: center; }
.phone { position: relative; width: clamp(200px, 58%, 272px); aspect-ratio: 9 / 19.5; border: 1px solid var(--border); background: #05051E; overflow: hidden; }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.watch {
  position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 7px;
  padding: 5px 9px; background: var(--card); border: 1px solid var(--border);
  font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; color: var(--ink); pointer-events: none;
}
.watch .ico { color: var(--accent); }
.phone video[controls] + .watch { display: none; }
.api-card { border: 1px solid var(--border-soft); box-shadow: var(--shadow-raised); background: var(--card); display: flex; flex-direction: column; min-width: 0; }
.api-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); }
.api-tabs .chip { font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; }
.api-code { margin: 0; padding: 16px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.7; color: var(--fg); overflow-x: auto; }
.api-code .c { color: var(--fg-muted); }
.api-tools { padding: 14px 16px; border-top: 1px solid var(--border-soft); display: flex; flex-direction: column; gap: 8px; }
.api-tools .lbl { font-family: var(--font-ui); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.api-tools .tools { display: flex; flex-wrap: wrap; gap: 6px; }
.api-tools code { padding: 3px 7px; background: var(--surface); border: 1px solid var(--border); font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; color: var(--fg); }
.api-tools p { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--fg-muted); }

/* ───────── Capacity math (A4) ───────── */
.math { border: 1px solid var(--border-soft); background: var(--surface); padding: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.math .n { font-family: var(--font-ui); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; color: var(--accent); text-align: right; }
.math .r { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 500; color: var(--fg); }
.math .r-1 { flex-direction: row; align-items: center; gap: 12px; }
.mark-1 { width: 22px; height: 22px; background: var(--accent); flex: none; }
/* 40 squares (20 × 2) and 120 dots (40 × 3), drawn as a tiled background so
   the counts stay exact without 160 spans in the markup; decorative only. */
.marks { max-width: 100%; background-color: var(--accent); }
.marks-40 { width: 257px; height: 23px; background-image: linear-gradient(90deg, transparent 10px, var(--surface) 10px), linear-gradient(0deg, transparent 10px, var(--surface) 10px); background-size: 13px 13px; }
.marks-120 { width: 238px; height: 16px; opacity: .75; background-image: linear-gradient(90deg, transparent 4px, var(--surface) 4px), linear-gradient(0deg, transparent 4px, var(--surface) 4px); background-size: 6px 6px; }
.math .total { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.math .total .n { font-size: 34px; line-height: 1; text-align: left; }
.math .total span:last-child { font-size: 14px; font-weight: 500; color: var(--ink); }

/* ───────── Scope split (A5) ───────── */
.scope-cells { border: 1px solid var(--border-soft); background: var(--card); box-shadow: var(--shadow-raised); padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.cell { padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cell-in { border: 2px solid var(--accent); background: var(--chip-navy-bg); }
.cell-out { border: 1px dashed var(--border); background: var(--surface); }
.cell .k { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cell-in .k { color: var(--chip-navy-text); }
.cell-out .k { color: var(--fg-muted); }
.cell .line { display: flex; align-items: center; gap: 8px; }
.cell .line i { width: 8px; height: 8px; flex: none; }
.cell .line b { flex: 1; border-top: 2px solid; }
.cell-in .line i { background: var(--accent); }
.cell-in .line b { border-color: var(--accent); }
.cell-out .line i { border: 1px solid var(--fg-muted); }
.cell-out .line b { border-color: var(--fg-muted); border-top-style: dashed; }
.cell p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--fg); }
.cell .routes { font-family: var(--font-ui); font-size: 11px; font-weight: 500; color: var(--fg-muted); }

/* ───────── Outputs (A6) ───────── */
.out-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.out { border: 1px solid var(--border-soft); background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.out .tag { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.out h3 { font-size: 17px; line-height: 1.3; font-weight: 600; }
.out p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--fg-muted); }
.out .juris { font-family: var(--font-ui); font-size: 11.5px; font-weight: 500; color: var(--fg-muted); }
.art { background: var(--card); border: 1px solid var(--border); min-height: 150px; font-family: var(--font-ui); font-size: 11px; color: var(--fg); }
.art-deca { background: #fff; color: #232323; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; overflow: hidden; }
.art-deca .sheet { margin: 0; overflow: hidden; }
/* Zoomed past the sheet's own QR so the artefact and the real QR beside it do not double up */
.art-deca .sheet img { display: block; width: 165%; max-width: none; height: 150px; object-fit: cover; object-position: top left; }
.art-deca .qr { padding: 14px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; gap: 8px; }
.art-deca .qr img { width: 72px; height: 72px; padding: 4px; border: 2px solid #05051E; background: #fff; }
.art-deca .qr .ref { font-family: var(--font-mono); font-size: 9.5px; color: #51516A; text-align: right; }
.art-ecmr { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mono-field { display: flex; justify-content: space-between; gap: 10px; border: 1px solid var(--border-soft); background: var(--surface); padding: 6px 10px; }
.mono-field .k { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--fg-muted); }
.mono-field .v { font-family: var(--font-mono); font-size: 11px; color: var(--fg); white-space: nowrap; }
.art-ics { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.art-ics .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.art-ics .row + .row { border-top: 1px solid var(--border-soft); padding-top: 6px; }
.art-ics .row b { font-weight: 600; color: var(--ink); }
.art-ics .filled { color: var(--fg-muted); }
.art-ics .pct { text-transform: uppercase; letter-spacing: .04em; font-size: 9.5px; }

/* ───────── Boundary ledger (A7) ───────── */
.ledger { border: 1px solid var(--border-soft); background: var(--card); box-shadow: var(--shadow-raised); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ledger > div { padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ledger .does { border-right: 3px solid var(--accent); }
.ledger .not { background: var(--surface); }
.ledger .k { font-family: var(--font-ui); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ledger .does .k { color: var(--chip-navy-text); }
.ledger .not .k { color: var(--fg-muted); }
.ledger ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ledger li { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; }
.ledger li .ico { width: 16px; height: 16px; margin-top: 2px; }
.ledger .does li { color: var(--fg); }
.ledger .does li .ico { color: var(--accent); fill: var(--accent); stroke: var(--btn-fg); }
.ledger .not li { color: var(--fg-muted); }
.side-copy .quote { font-size: 14px; font-weight: 500; color: var(--ink); }
@media (max-width: 460px) { .ledger .does { border-right: 0; border-bottom: 3px solid var(--accent); } }

/* ───────── Founding-cohort pricing band (A8) ───────── */
.price-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.price-band > div { border: 1px solid var(--border-soft); background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.price-band .n { font-family: var(--font-ui); font-variant-numeric: tabular-nums; font-size: 40px; line-height: 1; font-weight: 700; color: var(--accent); }
.price-band .k { font-size: 14px; font-weight: 600; color: var(--ink); }
.price-band .p { font-size: 12.5px; line-height: 1.5; color: var(--fg-muted); }

/* ───────── Trust tiles (A9) + pilot CTA card ───────── */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 56px; align-items: start; }
.trust-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.trust-tiles > div { border: 1px solid var(--border-soft); background: var(--card); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.trust-tiles .ico { width: 16px; height: 16px; color: var(--accent); margin-top: 1px; }

/* Final CTA + form (console W8 field states). Markup unchanged; only the layout
   moved from a centred slab to the card beside the trust copy. */
.cta-card { background: var(--card); border: 1px solid var(--border-soft); box-shadow: var(--shadow-modal); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: 90px; }
.cta-card .eyebrow { margin: 0; }
/* Empty anchor at the top of #trust so /pilot#pilot (used by the new
   commercial pages) scrolls to the same place as #access, below the sticky
   header. See markup comment above #pilot in pilot.template.html. */
#pilot { scroll-margin-top: 90px; }
.cta-card h2 { font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.cta-card > p { color: var(--fg); font-size: 13.5px; line-height: 1.6; margin: 0; }
.cta-form { display: flex; flex-direction: column; gap: 10px; }
.cta-form input[type="email"] {
  font-family: var(--font-ui); font-size: 13px; height: 40px; padding: 0 12px;
  width: 100%;
  color: var(--fg); background: var(--input-bg);
  border: 1px solid var(--border); box-shadow: var(--shadow-input);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cta-form input[type="email"]::placeholder { color: var(--fg-faint); }
.cta-form input[type="email"]:focus-visible { outline: none; border-color: var(--fc-primary); box-shadow: var(--focus-ring); }
.cta-form input[type="email"][aria-invalid="true"] { border-color: var(--danger); box-shadow: var(--focus-ring-error); }
.cta-form .btn { width: 100%; }
.consent {
  display: flex; gap: 8px; align-items: flex-start; margin: 0;
  font-size: 11.5px; line-height: 1.5; color: var(--fg-muted); text-align: left;
}
.consent input { margin-top: 3px; flex: none; accent-color: var(--fc-primary); }
.consent a { color: var(--accent); text-decoration: underline; }
.form-status { margin: 0; font-size: 13px; font-weight: 500; min-height: 1.2em; }
.form-status[data-state="error"] { color: var(--danger-text); }
.form-status[data-state="ok"] { color: var(--chip-navy-text); }

/* ───────── Footer ─────────
   Generic footer (legal pages, deca.html) keeps the quiet page-coloured
   treatment; the pilot page's footer carries .site-foot and becomes the dark
   band from design 1a, in both themes via the --footer-* tokens. */
footer { padding: 40px 0 60px; color: var(--fg-muted); font-size: 12.5px; border-top: 1px solid var(--line); }
.foot-link-btn {
  font: inherit; color: var(--fg-muted); text-decoration: underline;
  background: none; border: none; padding: 0; margin: 0; cursor: pointer;
}
.foot-link-btn:hover { color: var(--fg); }
.foot-link-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.site-foot { background: var(--footer-bg); color: var(--footer-muted); padding: 32px 0 40px; font-size: 12px; line-height: 1.6; border-top: 0; }
.site-foot a { color: var(--footer-muted); }
.site-foot a:hover { color: var(--footer-fg); }
.foot-inner { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; align-items: center; }
.foot-inner img { height: 26px; width: auto; display: block; }
.foot-inner .mono { font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: var(--footer-fg); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-family: var(--font-ui); font-size: 11.5px; align-items: center; }
.foot-legal a { text-decoration: underline; }
.site-foot .foot-link-btn { color: var(--footer-muted); }
.site-foot .foot-link-btn:hover { color: var(--footer-fg); }
.site-foot .foot-link-btn:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
.foot-scope { margin: 14px 0 0; max-width: 900px; }
.foot-scope em { font-style: italic; }

/* ───────── A11y + motion ───────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; top: auto; }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow-pulse { animation: none; opacity: 0; }
  .deadline-bar span { transition: none; }
  html { scroll-behavior: auto; }
}

/* ───────── Responsive topbar ───────── */
.topbar--menu .eu-pill { display: none; }
@media (min-width: 1400px) {
  .topbar--menu .eu-pill { display: inline-flex; }
}
@media (max-width: 1080px) {
  .topnav, .eu-pill, .topbar-actions .lang-select, .topbar-actions .lang-switch-link { display: none; }
  .topbar-inner { gap: 12px; min-height: 64px; }
  .topbar--menu .topbar-actions { display: flex; margin-left: auto; gap: 8px; }
  .topbar--menu .nav-menu { display: block; margin-left: 4px; }
}
@media (max-width: 420px) {
  .topbar-actions .btn { font-size: 11px; padding: 0 8px; height: 30px; }
  .nav-burger { width: 38px; height: 38px; }
}
@media (max-width: 480px) {
  section { padding: 48px 0; }
  .hero { padding: 40px 0 44px; }
  .wrap { padding: 0 16px; }
  .nav-panel { padding: 8px 16px 20px; }
  .math { padding: 18px; gap: 14px; }
  .media-phone { padding: 16px; }
  .cta-card { padding: 22px 18px; }
}

/* ───────── Legal pages ───────── */
.legal-main { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-main h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.legal-main h2 { font-size: 18px; font-weight: 600; margin-top: 2em; }
.legal-main p, .legal-main li { font-size: 13.5px; color: var(--fg); }
.legal-main table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 12.5px; font-family: var(--font-ui); }
.legal-main th, .legal-main td { border: 1px solid var(--border-soft); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-main th { color: var(--ink); background: var(--surface); font-weight: 600; }
.legal-main blockquote { border-left: 2px solid var(--chip-soft-border); margin: 1em 0; padding: 2px 16px; color: var(--fg-muted); }
.legal-meta, .legal-main .meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--fg-muted); }
.legal-main .todo {
  background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-text);
  padding: 1px 6px; font-family: var(--font-mono); font-size: .85em;
}
.legal-main h1 small { display: block; font-size: 13px; font-weight: 500; color: var(--fg-muted); margin-top: 6px; }
.legal-back { display: inline-block; margin-bottom: 24px; font-size: 12.5px; }
.legal-notice {
  background: var(--chip-navy-bg); border: 1px solid var(--chip-soft-border);
  color: var(--chip-navy-text); font-size: 12.5px; line-height: 1.55;
  padding: 10px 14px; margin: 20px 0; box-shadow: var(--shadow-chip);
}
.legal-footer { max-width: 760px; margin: 0 auto; padding: 0 24px 40px; color: var(--fg-muted); font-size: 12px; }
@media (max-width: 640px) { .legal-main table { display: block; overflow-x: auto; } }

/* ───────── Advertising-cookie consent banner ─────────
   Google Ads (AW-18436294638) Consent Mode v2 banner — equal-weight
   reject/accept. Markup + wiring live in pilot.template.html and in
   public/deca.html + public/es/deca.html; styling lives here so it is not
   duplicated per page. Built entirely from the page's existing --card /
   --border-soft / --fg / --accent / --btn-* tokens, so it follows the site's
   dark mode (the data-theme attribute, as well as prefers-color-scheme)
   the same way every other component does, with no separate dark rules
   of its own. */
#mv-consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  background: var(--card);
  border-top: 1px solid var(--border-soft);
  box-shadow: var(--shadow-modal);
  padding: 16px 20px;
  font-size: 13.5px; line-height: 1.55; color: var(--fg);
}
#mv-consent .mv-wrap {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
#mv-consent p { margin: 0; flex: 1 1 380px; }
#mv-consent a { color: var(--accent); text-decoration: underline; }
#mv-consent .mv-btns { display: flex; gap: 10px; flex: 0 0 auto; }
#mv-consent button {
  font: inherit; font-weight: 600; padding: 9px 18px; cursor: pointer;
  border: 1px solid var(--btn-bg); background: var(--card); color: var(--btn-bg);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
/* Accept and Reject are styled identically on purpose. Giving Accept a filled
   background while Reject stayed outlined made accepting the visually easier
   choice, which the AEPD and the EDPB treat as a dark pattern: the two options
   must carry equal prominence for consent to be freely given. Same fill, same
   text colour, same border, same weight, same size. */
#mv-consent button { background: var(--btn-bg); color: var(--btn-fg); }
#mv-consent button:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }
#mv-consent button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (max-width: 480px) {
  #mv-consent .mv-wrap { gap: 12px; }
  #mv-consent .mv-btns { width: 100%; }
  #mv-consent button { flex: 1 1 0; }
}

/* ───────── Calendly Badge Integration ───────── */
.calendly-badge-widget {
  z-index: 9998 !important;
  transition: bottom 0.25s ease-out;
}
/* Lift Calendly floating badge above cookie consent banner when visible */
#mv-consent:not([hidden]) ~ .calendly-badge-widget,
body:has(#mv-consent:not([hidden])) .calendly-badge-widget {
  bottom: 85px !important;
}
@media (max-width: 640px) {
  #mv-consent:not([hidden]) ~ .calendly-badge-widget,
  body:has(#mv-consent:not([hidden])) .calendly-badge-widget {
    bottom: 155px !important;
  }
}
