/* Controlled copy: source=dizains/css/style.css; source-sha256=22F5EDD031293775CAD3DF49A553FED9FB184A87E7ECC910540EEFBBC8E1E1C6 */
/* ==========================================================================
   letikrediti.lv — dizaina sistēma (MVP prototips)
   Atbalsta gaišo un tumšo tēmu (html[data-theme]) un LV/EN valodu.
   Stils iedvesmots no Fintexo krāsām, bet letikrediti.lv ir atsevišķs zīmols.
   ========================================================================== */

/* Pašmitināti Google Fonts OFL fonti. Latin un latin-ext ir atsevišķi,
   lai pārlūks ielādētu tikai konkrētajam tekstam vajadzīgās glifu kopas. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-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-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-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;
}

/* ---------- GAIŠĀ TĒMA (noklusējums) ---------- */
:root {
  /* Zīmola akcenti — nemainās starp tēmām */
  /* #242 (JB 2026-09-30): LetiKrediti zīmols — zaļā #0B544A, zelta #D29A32, melnā #222222.
     Mainīgo nosaukumi vēsturiski (navy/teal), vērtības — zīmola. */
  --color-navy-900: #073c35;
  --color-navy-800: #0b544a;
  --color-teal-500: #d29a32;
  --color-teal-400: #e8c27a;
  /* Akcenta teksts/saites gaišā fonā: zelta uz balta ir tikai 2,5:1 → zaļais (8,8:1). */
  --color-accent-text: #0b544a;

  /* Virsmas un teksts */
  --color-bg: #ffffff;
  --color-bg-alt: #f3f5f4;
  --color-card: #ffffff;
  --color-input-bg: #ffffff;
  --color-readonly-bg: #edf0ef;
  --color-readonly-border: #657a75;
  --color-verified-text: #0b544a;
  --color-verified-bg: #e7f1ef;
  --color-text: #222222;
  --color-text-muted: #55666b;
  --color-border: #e1e6e5;
  --color-accent-soft: #e7f1ef;

  /* Tumšās sekcijas (hero, uzticība, galvene) */
  --color-invert-bg: linear-gradient(180deg, #073c35, #0b544a);
  --color-text-on-dark: #f3f7f6;
  --color-text-on-dark-muted: #b7c7c4;

  --color-warn-bg: #fff6e5;
  --color-warn-text: #7a5b00;

  --shadow-card: 0 8px 30px rgba(7, 60, 53, 0.08);
  --shadow-card-hover: 0 14px 40px rgba(7, 60, 53, 0.14);

  /* Tipogrāfija — fonti ar pilnu latviešu diakritikas atbalstu */
  --font-display: var(--font-body);
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --container-width: 1160px;

  /* Rāmju biezums.
     --border-w        — statiskiem satura blokiem (kartītes, teksta rāmji)
     --border-w-active — visam, ar ko var mijiedarboties (lauki, pogas, soļi) */
  --border-w: 2px;
  --border-w-active: 3px;
}

/* ---------- TUMŠĀ TĒMA ---------- */
html[data-theme="dark"] {
  --color-bg: #0a1f1c;
  --color-bg-alt: #0e2825;
  --color-card: #133530;
  --color-input-bg: #0a1f1c;
  --color-readonly-bg: #263b38;
  --color-readonly-border: #91b3aa;
  --color-verified-text: #a8e0ce;
  --color-verified-bg: #193e34;
  --color-accent-text: #e8c27a;
  --color-text: #eef5f3;
  --color-text-muted: #9db3af;
  --color-border: rgba(243, 247, 246, 0.14);
  --color-accent-soft: rgba(210, 154, 50, 0.14);

  --color-invert-bg: linear-gradient(180deg, #061a17, #0a2521);

  --color-warn-bg: rgba(255, 196, 61, 0.12);
  --color-warn-text: #f0c869;

  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 14px 40px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Svarīgi: `hidden` atribūtam jāuzvar pār display noteikumiem.
   Bez šī jebkurš elements ar `display: flex/grid` paliktu redzams,
   lai gan HTML tas ir atzīmēts kā paslēpts. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }
a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark {
  background: var(--color-invert-bg);
  color: var(--color-text-on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-text-on-dark); }
.section--dark p { color: var(--color-text-on-dark-muted); }
/* #242: tumšā zaļā fonā akcents = gaišais zelts (5,2:1), ne zaļais. */
.section--dark .eyebrow, .section--dark .badge-found, .section--dark .faq-item summary::after { color: var(--color-teal-400); }
.hero .eyebrow, .hero h1, .hero__lead, .hero__micro, .hero__micro strong,
.site-header .pill, .site-header .nav__links a,
.site-header .pill:hover, .site-header .nav__links a:hover { color: #ffffff; }

.eyebrow {
  display: inline-block;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 14px;
}

/* ---------- Pogas ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: var(--border-w-active) solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-teal-500);
  color: #222222;
  box-shadow: 0 10px 24px rgba(210, 154, 50, 0.35);
}
.btn--primary:hover { background: var(--color-teal-400); }

.btn--ghost {
  background: transparent;
  color: var(--color-text-on-dark);
  border-color: rgba(243, 247, 246, 0.35);
}
.btn--ghost:hover { border-color: var(--color-teal-400); color: var(--color-teal-400); }

.btn--outline-dark {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--outline-dark:hover { border-color: var(--color-teal-500); color: var(--color-accent-text); }

.btn--block { width: 100%; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Valodas / tēmas pārslēgi ---------- */
.switchers { display: flex; align-items: center; gap: 8px; }

/* Galvenes kreisā puse: logo + "Sākums" */
.header-left { display: flex; align-items: center; gap: 14px; }
.pill--home { text-decoration: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  border: var(--border-w-active) solid rgba(243, 247, 246, 0.28);
  color: var(--color-text-on-dark);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.pill:hover {
  border-color: var(--color-teal-400);
  color: var(--color-teal-400);
  background: rgba(210, 154, 50, 0.1);
}

/* ---------- Galvene ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 60, 53, 0.95);
  backdrop-filter: blur(8px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
/* #242 LetiKrediti logo (baltā versija tumšajā galvenē/kājenē). */
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.brand-logo img { display: block; height: 50px; width: auto; }
.brand-logo--footer { margin-bottom: 14px; }
.brand-logo--footer img { height: 64px; }

.logo-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-on-dark);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  white-space: nowrap;
}
.logo-placeholder__mark {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--color-teal-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  color: #222222;
  font-size: 0.95rem;
}
.nav { display: flex; align-items: center; gap: 22px; }
.nav__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none;
  color: var(--color-text-on-dark-muted);
  font-size: 1.02rem;
  font-weight: 500;
}
.nav__links a:hover { color: var(--color-text-on-dark); }
.nav__toggle { display: none; }

/* ---------- Hero + mini kalkulators ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 88px;
}
.hero__intro { text-align: center; }
.hero__lead {
  color: var(--color-text-on-dark-muted);
  font-size: 1.12rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.hero__micro {
  font-size: 1.08rem;
  color: var(--color-text-on-dark-muted);
  margin-top: 18px;
}
.hero__micro strong { color: var(--color-teal-400); }

.calc-card {
  background: var(--color-card);
  color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  border: var(--border-w) solid var(--color-border);
}
.calc-card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; color: var(--color-text); }
.calc-card__sub { font-size: 1.05rem; color: var(--color-text-muted); margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.field input, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: var(--border-w-active) solid var(--color-border);
  font-family: var(--font-body);
  /* Vismaz 16px — mazāks izmērs liek iPhone pietuvināt ekrānu, kad lauks tiek atvērts */
  font-size: 1rem;
  background: var(--color-input-bg);
  color: var(--color-text);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--color-teal-500);
}
.field__hint { font-size: 0.95rem; color: var(--color-text-muted); margin-top: 6px; }
/* JB 2026-09-30: tumšajā tēmā lauks pēc ievades kļuva gaišs — tā ir pārlūka automātiskās
   aizpildes (:-webkit-autofill) krāsa, kas ignorē background. Pārkrāsojam ar iekšēju ēnu un
   paziņojam pārlūkam tēmu (color-scheme), lai arī native kontroles (select saraksts) ir tumšas. */
html { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus,
textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--color-input-bg) inset;
  box-shadow: 0 0 0 1000px var(--color-input-bg) inset;
  -webkit-text-fill-color: var(--color-text);
  caret-color: var(--color-text);
  transition: background-color 99999s ease-out 0s;
}
input:autofill { background: var(--color-input-bg); color: var(--color-text); }

/* The actual readonly attribute is the sole visual-state switch. The same
   wrapper keeps the lock aligned for both the verification and result forms. */
.readonly-field { position: relative; }
.readonly-field__lock, .readonly-field__verified { display: none; }
.readonly-field:has(> input[readonly]) > input {
  background: var(--color-readonly-bg);
  border-color: var(--color-readonly-border);
  color: var(--color-text);
  cursor: not-allowed;
  padding-inline-end: 52px;
}
.readonly-field:has(> input[readonly]) > input:focus {
  outline: none;
  border-color: var(--color-readonly-border);
}
.readonly-field:has(> input[readonly]) > input:focus-visible {
  outline: 2px solid var(--color-text-muted);
  outline-offset: 2px;
}
.readonly-field:has(> input[readonly]) > .readonly-field__lock {
  display: block;
  position: absolute;
  inset-inline-end: 16px;
  top: 15px;
  line-height: 1.4;
  pointer-events: none;
}
.readonly-field:has(> input[readonly]) > .readonly-field__verified {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-verified-bg);
  color: var(--color-verified-text);
  font-size: 0.9rem;
  font-weight: 700;
}
.readonly-field input[readonly]:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--color-readonly-bg) inset;
  box-shadow: 0 0 0 1000px var(--color-readonly-bg) inset;
}

/* Ievadlauks ar mērvienību (EUR) */
.input-unit { position: relative; }
.input-unit input { padding-right: 62px; }
/* Dekoratīvās piemēru summas — pilnībā caurstaigājamas pelei un tastatūrai.
   Kamēr tās rāda, lauka īstais placeholder tiek padarīts caurspīdīgs, lai abi
   teksti nepārklātos; pats atribūts netiek aiztikts. */
.ghost-amount {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-text-muted);
  opacity: 0.7;
  font-size: 1rem;
  font-family: var(--font-body);
  white-space: nowrap;
}
.input-unit.is-ghosting input::placeholder { color: transparent; }

.input-unit__label {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  pointer-events: none;
}

/* ---------- Mērķa izvēle (radio kartītes ar ikonām) ----------
   Vietējā radio poga paliek DOM'ā un saņem fokusu — tikai vizuāli paslēpta.
   Tāpēc bultiņu taustiņi, Tab un ekrānlasītājs strādā bez papildu koda. */
.purpose-field {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}
.purpose-field legend {
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.purpose-options { display: flex; flex-wrap: wrap; gap: 8px; }

.purpose-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
.purpose-option input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  margin: 0;
  pointer-events: none;
}
.purpose-option__icon { width: 19px; height: 19px; flex: none; }

.purpose-option:hover { border-color: var(--color-teal-500); color: var(--color-text); }
html[data-theme="dark"] .purpose-option {
  background: #24534c;
  color: #ffffff;
  border-color: #638a82;
}
html[data-theme="dark"] .purpose-option:hover { border-color: var(--color-teal-400); }

/* Izvēlētais: biezāks rāmis un krāsa — forma mainās, ne tikai tonis.
   .is-selected uzliek main.js kā rezervi pārlūkiem bez :has() atbalsta. */
.purpose-option.is-selected,
.purpose-option:has(input:checked) {
  border-width: var(--border-w-active);
  border-color: var(--color-teal-500);
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-weight: 600;
}
html[data-theme="dark"] .purpose-option.is-selected,
html[data-theme="dark"] .purpose-option:has(input:checked) {
  background: #0b544a;
  color: #ffffff;
  border-color: var(--color-teal-400);
}
/* Dekoratīvais "meklēšanas" mājiens, kamēr nekas nav izvēlēts.
   Apzināti dzeltenīgs, nevis zaļš — to nedrīkst sajaukt ar īstu izvēli.
   Bez ķekša, bez treknraksta, tikai mīksts izgaismojums. */
.purpose-option.is-hinted:not(.is-selected) {
  border-color: var(--color-warn-text);
  background: var(--color-warn-bg);
}

/* Fokuss ir redzams arī tad, ja opcija jau ir izvēlēta */
.purpose-option:has(input:focus-visible) {
  outline: 3px solid var(--color-teal-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .purpose-option { transition: none; }
}

.calc-card__footnote {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-top: 14px;
  text-align: center;
}

/* ---------- Rezultāta priekšskatījums ---------- */
.result-preview {
  border: var(--border-w) dashed var(--color-teal-500);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--color-accent-soft);
  position: relative;
}
.result-preview__badge {
  position: absolute;
  top: -16px;
  left: 24px;
  background: var(--color-navy-900);
  color: var(--color-text-on-dark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.result-grid__item {
  background: var(--color-card);
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.result-grid__label {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.result-grid__value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-display);
}
.result-grid__value small { font-size: 0.85rem; font-weight: 500; color: var(--color-text-muted); }

/* ---------- Kā tas strādā ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.step-card {
  background: var(--color-card);
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
}
.step-card__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-navy-900);
  color: var(--color-teal-400);
  font-weight: 800;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-family: var(--font-display);
}

/* ---------- Kartīšu tīkli ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }

.feature-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: var(--border-w) solid var(--color-border);
}
.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-navy-900);
  color: var(--color-teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.1rem;
}
.feature-card__icon svg { width: 22px; height: 22px; flex: none; }

.funding-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--color-card);
  border: var(--border-w) solid var(--color-border);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.funding-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.funding-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.funding-card p { font-size: 1.02rem; margin-bottom: 0; }

/* ---------- Uzticības bloks ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 36px;
  text-align: center;
}
.trust-strip__item { padding: 18px 12px; }
.trust-strip__value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-accent-text);
  font-weight: 700;
}
.trust-strip__label { font-size: 1.05rem; color: var(--color-text-muted); margin-top: 6px; }

/* ---------- Sadarbības partneri ----------
   Katrs .partner-logo pēc noklusējuma rāda <img>; teksta <span> ir paslēpts.
   Ja logo fails neeksistē (404), inline onerror (index.html) pievieno
   .logo-missing -- tad lomas apmainās: <img> pazūd, teksts parādās. Nekad
   nav abu vienlaicīgi un nekad nav tukšas vietas neviena stāvokļa gadījumā. */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 76px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: transparent;
  border: var(--border-w) solid transparent;
  box-shadow: none;
  text-align: center;
}
html[data-theme="dark"] .partner-logo { background: #ffffff; border-color: var(--color-border); }
/* Lauris 2026-09-30: logo jāaizpilda vairāk laukuma, lai labāk nolasās (Industra, Rietumu u.c.). */
.partner-logo { min-height: 96px; }
.partner-logo img {
  max-width: min(100%, 190px);
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}
/* Ļoti plati vārdzīmoli (malu attiecība > 5:1) — pilns platums, citādi tie izskatās sīki. */
.partner-logo[data-partner="rietumu"] img, .partner-logo[data-partner="bluor"] img,
.partner-logo[data-partner="industra"] img,
.partner-logo[data-partner="capitalia"] img { width: 100%; max-width: 220px; max-height: 60px; }
/* JB 2026-11-07: enlarge the compact RIB symbol inside its existing tile. */
.partner-logo[data-partner="rib"] { padding: 4px 12px; }
.partner-logo[data-partner="rib"] img { max-width: 100%; max-height: 80px; }
.partner-logo__name {
  display: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: #222222;
}
/* Ļoti gaišiem vārdzīmoliem saglabā tumšu nosaukuma rezerves kontrastu,
   nemainot ne attēla failu, ne tā izmēru. */
/* R13: Lonzo abās tēmās lieto JB apstiprināto pelēko;
   ja fails neielādējas, rezerves nosaukums uz tās pašas virsmas ir balts. */
html .partner-logo[data-partner="lonzo"] { background: #55605d; }
.partner-logo[data-partner="lonzo"].logo-missing .partner-logo__name { color: #ffffff; }
/* Trūkstošs logo (404): paslēpt <img>, parādīt nosaukumu -- nekad salauztu
   ikonu, nekad tukšu kartīti. */
.partner-logo.logo-missing img { display: none; }
.partner-logo.logo-missing .partner-logo__name { display: inline; }
/* Pēdējā kartīte ("+ faktorings, līzings, alternatīvie") vienmēr ir teksts
   -- tai nav <img> vispār, tāpēc etiķete jārāda tieši, nevis caur
   .logo-missing stāvokli. */
.partner-logo--text-only .partner-logo__name { display: inline; }
/* ALTUM avota lapā ir nosaukts par galveno finansētāju -- viegla vizuāla
   izcelšana ar jau esošajām zīmola krāsām, bez jaunas krāsu vērtības. */
.partner-logo--primary {
  border-color: var(--color-teal-500);
  background: transparent;
}
html[data-theme="dark"] .partner-logo--primary {
  background: #ffffff;
  border: 3px solid #d29a32;
  box-shadow: none;
}
@media (max-width: 720px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: var(--border-w) solid var(--color-border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent-text);
  margin-left: 16px;
}
.faq-item[open] summary::after { content: "-"; }
.faq-item p { margin-top: 12px; margin-bottom: 0; }

/* ---------- Noslēguma CTA ---------- */
.final-cta {
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-navy-900), var(--color-teal-500) 160%);
  color: var(--color-text-on-dark);
  padding: 64px 32px;
}
.final-cta h2 { color: var(--color-text-on-dark); }
.final-cta p { color: var(--color-text-on-dark-muted); max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Kājene ---------- */
.site-footer {
  background: var(--color-navy-900);
  color: var(--color-text-on-dark-muted);
  padding: 48px 0 28px;
  font-size: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-grid h4 {
  color: var(--color-text-on-dark);
  font-family: var(--font-body);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.footer-grid p { color: var(--color-text-on-dark-muted); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: var(--color-text-on-dark-muted); }
.footer-grid a:hover { color: var(--color-teal-400); }
.footer-bottom {
  border-top: 1px solid rgba(243, 247, 246, 0.12);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Autorība un īpašnieks */
.footer-credits {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(243, 247, 246, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 24px;
  font-size: 0.9rem;
  color: rgba(183, 199, 196, 0.75);
}
.footer-author-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-author-link:hover, .footer-author-link:focus-visible { color: var(--color-teal-400); }

/* ==========================================================================
   ELEMENTI UZ TUMŠĀM SEKCIJĀM
   Sekcijas mijas gaišs / tumšs, tāpēc vienam un tam pašam elementam
   jāstrādā uz abiem fooniem. Šeit — tumšā fona varianti.
   ========================================================================== */

.section--dark .step-card,
.section--dark .funding-card,
.section--dark .feature-card {
  background: rgba(243, 247, 246, 0.06);
  border-color: rgba(243, 247, 246, 0.16);
}
.section--dark .funding-card:hover {
  background: rgba(243, 247, 246, 0.1);
  border-color: rgba(210, 154, 50, 0.5);
}

.section--dark .step-card h3,
.section--dark .funding-card h3,
.section--dark .feature-card h3 { color: var(--color-text-on-dark); }

/* Uz tumša fona tumšs aplītis nebūtu redzams — tāpēc tirkīza pildījums */
.section--dark .step-card__num {
  background: var(--color-teal-500);
  color: #222222;
}

.section--dark .feature-card__icon {
  background: rgba(210, 154, 50, 0.18);
  color: var(--color-teal-400);
}

.section--dark .faq-item { border-bottom-color: rgba(243, 247, 246, 0.16); }
.section--dark .faq-item summary { color: var(--color-text-on-dark); }
.section--dark .faq-item summary::after { color: var(--color-teal-400); }

.section--dark .btn--outline-dark {
  color: var(--color-text-on-dark);
  border-color: rgba(243, 247, 246, 0.35);
}
.section--dark .btn--outline-dark:hover {
  border-color: var(--color-teal-400);
  color: var(--color-teal-400);
}

.section--dark .trust-strip__label { color: var(--color-text-on-dark-muted); }

/* ==========================================================================
   PRIEKŠIZVĒRTĒJUMA PLŪSMA (izvertejums.html)
   ========================================================================== */

.flow { max-width: 860px; }
.flow-panel { margin-top: 32px; }
.flow-subhead { font-size: 1.4rem; margin: 40px 0 16px; }

/* Demonstrācijas brīdinājums */
.demo-banner {
  background: var(--color-warn-bg);
  color: var(--color-warn-text);
  border: var(--border-w) solid rgba(122, 91, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-banner strong { white-space: nowrap; }

/* Progresa indikators */
.progress {
  display: flex;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  gap: 8px;
}
.progress > li { flex: 1; display: flex; }
.progress__step {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: var(--border-w-active) solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.progress__step:hover { border-color: var(--color-teal-500); background: var(--color-accent-soft); }
.progress__num {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-border);
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}
.progress__step.is-done { border-color: rgba(210, 154, 50, 0.4); }
.progress__step.is-done .progress__num { background: var(--color-teal-500); color: #222222; }
.progress__step.is-current {
  border-color: var(--color-teal-500);
  color: var(--color-text);
  font-weight: 600;
}
.progress__step.is-current .progress__num { background: var(--color-teal-500); color: #222222; }

/* Pabeigtais solis: ķeksis cipara vietā. Forma, ne tikai krāsa, atšķir
   pabeigtu no pašreizējā — abiem aplītis ir tirkīza, bet saturs atšķiras. */
.progress__step.is-done .progress__num { font-size: 0; }
.progress__step.is-done .progress__num::after {
  content: "✓";
  font-size: 0.95rem;
  line-height: 1;
}
/* Gaidāmais solis paliek neitrāls un salasāms — ne "aizslēgts" */
.progress__step:not(.is-done):not(.is-current) .progress__num {
  background: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
}
/* Pāreja starp stāvokļiem — 200 ms, izpētes ieteiktajā 180–250 ms diapazonā */
.progress__step,
.progress__num { transition: background-color 200ms ease, border-color 200ms ease, color 200ms ease; }

.progress__counter {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Tikai ekrānlasītājam — vizuāli paslēpts, bet pieejams palīgtehnoloģijām */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Botu lauks: ārpus ekrāna (nevis display:none), bez tab/autofill plūsmas. */
.bot-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Ielādes stāvoklis (2. soļa uzņēmuma meklēšana) ---------- */
.lookup-state { margin-top: 20px; }
.lookup-state__text {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Mazais spinneris ir dekoratīvs; statusu nolasa teksts blakus */
.lookup-state__text::before {
  content: "";
  width: 16px; height: 16px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-teal-500);
  animation: lk-spin 800ms linear infinite;
}
@keyframes lk-spin { to { transform: rotate(360deg); } }

/* Skeleton atkārto īstās kartītes formu, lai saturs neizlēktu vietā */
.skeleton-card {
  margin-top: 16px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
}
.skeleton-line, .skeleton-cell {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.skeleton-line { height: 14px; }
.skeleton-line--title { width: 45%; height: 20px; }
.skeleton-line--meta { width: 28%; margin-top: 10px; }
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.skeleton-cell { height: 58px; }
/* Lēns, zema kontrasta shimmer — kustība ir maiga, ne uzmanību pieprasoša */
.skeleton-line::after, .skeleton-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--color-bg), transparent);
  opacity: 0.55;
  transform: translateX(-100%);
  animation: lk-shimmer 1600ms ease-in-out infinite;
}
@keyframes lk-shimmer { to { transform: translateX(100%); } }

.lookup-retry { margin-top: 14px; }

/* Kontaktu forma tehnisku kļūmju gadījumam. Vizuāli klusāka par galveno
   plūsmu — tas ir izejas ceļš, ne aicinājums. */
.error-contact {
  margin-top: 16px;
  padding: 16px 18px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
}
.error-contact > p { margin: 0 0 12px; font-size: 0.95rem; }
.error-contact__form { margin-top: 16px; }

/* Kustība nekad nav vienīgais signāls, tāpēc to var droši izslēgt pilnībā.
   Skeleton paliek statisks, spinneris apstājas, soļu pārejas ir tūlītējas. */
@media (prefers-reduced-motion: reduce) {
  .skeleton-line::after, .skeleton-cell::after { animation: none; display: none; }
  .lookup-state__text::before { animation: none; border-top-color: var(--color-teal-500); }
  .progress__step, .progress__num { transition: none; }
}

/* 1. soļa kopsavilkums */
.recap {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  background: var(--color-bg-alt);
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0 28px;
}
.recap__item { display: flex; flex-direction: column; }
.recap__label { font-size: 0.85rem; color: var(--color-text-muted); }
.recap__value { font-weight: 700; }
.recap__edit { margin-left: auto; color: var(--color-accent-text); font-weight: 600; font-size: 0.95rem; }

.field__error { color: #d9534f; font-size: 0.92rem; margin-top: 6px; font-weight: 600; }

/* Ieteikums, nevis kļūda — nekad sarkans, jo pāreju tas neaptur.
   Izmanto jau esošās brīdinājuma krāsas, jaunas netiek ieviestas. */
.field__notice {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-warn-bg);
  color: var(--color-warn-text);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* "Kāpēc tieši šāds rezultāts" — zīme pie katra pamatojuma.
   Krāsa nav vienīgais signāls: blakus ir + vai − un ekrānlasītājam paredzēts
   vārds. Lietotas jau esošās krāsas, jaunas netiek ieviestas. */
.why-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  list-style: none;
}
.why-item__mark {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
}
.why-item--plus .why-item__mark { background: var(--color-accent-soft); color: var(--color-accent-text); }
.why-item--minus .why-item__mark { background: rgba(217, 83, 79, 0.14); color: #d9534f; }

/* Veiksmes statuss — tā pati forma kā .field__notice, tikai zīmola tirkīzā.
   Vajadzīgs tāpēc, ka agrāk arī veiksmes ziņa lietoja .field__error un rādījās
   sarkana. Krāsu stāsta klase, ne izsaukuma vieta. */
.field__success {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  /* Tirkīzs nes pozitīvo signālu caur rāmi, nevis tekstu: tirkīza teksts uz
     gaišā tirkīza fona dod ~2:1 kontrastu, kas neiztur WCAG AA. */
  border-left: 3px solid var(--color-teal-500);
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}

/* Pārrakstīšanās ieteikums — ierosina, nevis bloķē */
.suggest {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}
.suggest__btn {
  background: var(--color-accent-soft);
  border: var(--border-w) solid var(--color-teal-500);
  color: var(--color-accent-text);
  border-radius: 999px;
  padding: 4px 13px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}
.suggest__btn:hover { background: var(--color-teal-500); color: #222222; }

/* Demonstrācijas pogas */
.demo-hint { font-size: 0.92rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  border: var(--border-w) dashed var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--color-teal-500); color: var(--color-accent-text); }

/* Atrastā uzņēmuma kartīte */
.company-card {
  margin-top: 26px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.company-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.company-card__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.company-card__meta { color: var(--color-text-muted); font-size: 0.95rem; margin-top: 4px; }
.company-card__note { font-size: 0.9rem; margin: 18px 0 0; }
.badge-found {
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.company-grid__item {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.company-grid__item span { font-size: 0.85rem; color: var(--color-text-muted); }
.company-grid__item strong { font-size: 1.05rem; }

/* ---------- Vēsturiskie rādītāji (2. solis) ----------
   Līknes zīmētas ar inline SVG — projektā nav neviena diagrammu bibliotēka,
   un sešām mazām līknēm tāda nav vajadzīga. */
.history-card {
  margin-top: 20px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}
.history-card h3 { margin-bottom: 6px; }
.history-card__note { font-size: 0.92rem; color: var(--color-text-muted); margin: 0 0 18px; }
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.ratio-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.ratio-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.ratio-card__name { font-size: 0.85rem; color: var(--color-text-muted); }
.ratio-card__value { font-size: 1.15rem; font-weight: 700; font-family: var(--font-display); }
.ratio-card__chart { display: block; width: 100%; height: 46px; margin-top: 10px; overflow: visible; }
.ratio-card__line { fill: none; stroke: var(--color-teal-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ratio-card__area { fill: var(--color-accent-soft); stroke: none; }
.ratio-card__dot { fill: var(--color-teal-500); }
.ratio-card__years {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}
/* Viens gads — līkni nezīmējam, jo virziena nav ko rādīt */
.ratio-card__single { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 10px; }

.flow-actions { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* Papildu atbalstāmo nozaru pašdeklarācija */
.industry-card {
  margin-top: 22px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  padding: 24px 26px;
}
.industry-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.industry-card > p { font-size: 0.98rem; }
.industry-options { display: grid; gap: 10px; margin-top: 14px; }
.industry-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
}
.industry-option input {
  width: auto;
  margin: 0;
  accent-color: var(--color-teal-500);
}
.industry-card .industry-card__note {
  margin: 14px 0 0;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}
.industry-result {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.industry-result.is-selected {
  border-color: var(--color-teal-500);
  background: var(--color-accent-soft);
  color: var(--color-text);
}

.industry-example {
  margin: 24px 0;
}
.industry-example__explanation {
  margin: 0;
  padding: 16px 18px;
  border-left: 4px solid var(--color-teal-500);
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-text);
}
.industry-example__card {
  margin-top: 18px;
  padding: 22px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
}
.industry-example__card h2 { margin: 6px 0 8px; }
.industry-dist__bar { display: flex; height: 14px; gap: 2px; margin: 12px 0 10px; }
.industry-dist__segment { flex-basis: 0; border-radius: var(--radius-sm); }
.industry-dist__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.95rem; }
.industry-dist__swatch { display: inline-block; width: 10px; height: 10px; border-radius: var(--radius-sm); margin-right: 6px; vertical-align: middle; }
.industry-example__eyebrow {
  color: var(--color-accent-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.industry-example__sector { margin: 14px 0; }

/* Hover-only skaidrojums tehniskiem terminiem */
.jargon-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: var(--border-w) dotted var(--color-teal-500);
  cursor: help;
}
.jargon-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 20;
  left: 0;
  bottom: calc(100% + 8px);
  width: min(280px, calc(100vw - 32px));
  padding: 10px 12px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-card);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
  white-space: normal;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.jargon-tooltip:hover::after {
  visibility: visible;
  opacity: 1;
}

/* E-pasta apstiprināšana */
.verify-card {
  margin-top: 22px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  padding: 26px;
}
.verify-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.verify-card > p { font-size: 0.98rem; }
.verify-card .field { max-width: 420px; }

.demo-note {
  background: var(--color-warn-bg);
  color: var(--color-warn-text);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  margin: 18px 0;
}
.demo-code {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-left: 6px;
}

/* Apstiprinājums — tāds pats zaļais fons kā primārajai pogai */
.verify-ok {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--color-teal-500);
  color: #222222;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(210, 154, 50, 0.35);
}
.verify-ok__mark {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(6, 32, 26, 0.2);
  color: #222222;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { transform: none; }
.lock-note { font-size: 0.92rem; color: var(--color-text-muted); margin-top: 10px; text-align: right; }

/* ---------- #229 rezultāts: iznākumi A / B / C ---------- */
.sector-pick { max-width: 420px; margin: 0 0 24px; }
.sector-pick__hint { margin: 6px 0 0; font-size: 0.88rem; color: var(--color-text-muted); }

.result-years { margin: -6px 0 0; font-size: 0.92rem; color: var(--color-text-muted); }
.result-grid__points { margin-top: 6px; font-size: 0.88rem; color: var(--color-text-muted); }

/* 5 daļu skala ar atzīmi un līmeņa nosaukumu (krāsa nav vienīgais signāls) */
.tier-scale {
  margin-top: 28px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  padding: 22px 26px 18px;
  box-shadow: var(--shadow-card);
}
.tier-scale__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tier-scale__label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 700;
}
.tier-scale__total { font-size: 1.05rem; color: var(--color-text-muted); }
.tier-scale__total strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--color-text);
  line-height: 1;
}
.tier-scale__track { position: relative; padding-top: 44px; margin-top: 6px; }
.tier-scale__bar { display: flex; gap: 3px; height: 14px; }
.tier-scale__segment { flex-basis: 0; border-radius: var(--radius-sm); opacity: 0.45; }
.tier-scale__segment.is-current { opacity: 1; outline: 2px solid var(--color-text); outline-offset: 1px; }
.tier-scale__pin {
  position: absolute;
  top: 0;
  bottom: -6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  pointer-events: none;
}
.tier-scale__pin.is-start { align-items: flex-start; transform: translateX(-2px); }
.tier-scale__pin.is-end { align-items: flex-end; transform: translateX(calc(-100% + 2px)); }
.tier-scale__tier {
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-text);
  color: var(--color-card);
}
.tier-scale__marker { flex: 1; width: 4px; margin-top: 4px; border-radius: var(--radius-sm); background: var(--color-text); }
.tier-scale__pin.is-start .tier-scale__marker { margin-left: 0; }
.tier-scale__ends {
  display: flex; justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 10px;
}
.tier-scale__caption { margin: 8px 0 0; font-size: 0.95rem; }

/* Finansētāju līmeņi ar logo */
.lender-tier {
  margin-top: 24px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-card);
  padding: 20px 22px;
}
.lender-tier--main { border-color: var(--color-teal-500); }
.lender-tier__title { font-size: 1.05rem; margin: 0 0 14px; font-weight: 600; }
.lender-tier-alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 16px; }
.lender-tier-alts:empty { display: none; }
.lender-tier--up, .lender-tier--down { background: var(--color-bg-alt); }
.lender-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lender-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  /* JB 2026-09-29: logo aizpilda visu rindu — ja logo maz, laukumi izplešas, nevis stāv stūrī. */
  flex: 1 1 184px;
  min-width: 0;
  height: 64px;
  padding: 10px 14px;
  border: 1px solid #e1e6e5;
  border-radius: var(--radius-sm);
  background: #ffffff; /* logo krāsas paredzētas gaišam fonam arī tumšajā tēmā */
}
/* JB 2026-09-29: logo bija par mazu. Laukuma augstums nosaka izmēru; object-fit saglabā proporcijas;
   max-width, lai viens logo platā laukumā netiek izstiepts pāri visam. */
.lender-logo img { display: block; width: 100%; max-width: 220px; height: 100%; object-fit: contain; }
.lender-logo__name { font-weight: 700; font-size: 1rem; color: #16232a; }
.lender-tier--up .lender-logo, .lender-tier--down .lender-logo { flex-basis: 156px; height: 54px; padding: 8px 12px; }
@media (max-width: 480px) {
  .lender-logo, .lender-tier--up .lender-logo, .lender-tier--down .lender-logo { flex-basis: calc(50% - 5px); height: 58px; }
}
/* Keep the result tile dimensions and SVG proportions; reclaim RIB's padding. */
.lender-logo[data-lender="rib"] { padding: 2px 8px; }
.lender-tier__rates { margin: 12px 0 0; font-size: 0.85rem; color: var(--color-text-muted); }

/* Plāni B un C — teksta paziņojums */
.outcome-notice {
  border: var(--border-w) solid var(--color-border);
  border-left: 5px solid var(--color-teal-500);
  border-radius: var(--radius-md);
  background: var(--color-card);
  padding: 22px 24px;
}
.outcome-notice h2 { font-size: 1.35rem; margin: 0 0 8px; }
.outcome-notice p { margin: 0; color: var(--color-text); }
.outcome-notice--b, .outcome-notice--wait-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.outcome-notice__text { min-width: 0; }
.outcome-notice__contact { flex: 0 0 auto; max-width: 42%; text-align: center; }
@media (max-width: 767px) {
  .outcome-notice--b, .outcome-notice--wait-contact { flex-direction: column; align-items: stretch; }
  .outcome-notice__contact { width: 100%; max-width: none; }
}
.outcome-notice--c { border-left-color: var(--color-text-muted); }
/* #233c: B slāņa gaidīšana (progress aizpildās 90 s laikā = klienta limits) */
.outcome-notice--wait .b-layer-progress {
  margin-top: 16px;
  height: 6px;
  border-radius: var(--radius-sm);
  background: var(--color-border);
  overflow: hidden;
}
.outcome-notice--wait .b-layer-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-teal-500);
  /* ātrs sākums, lēnas beigas: ~96 % pie 92 s; pabeigšanu līdz 100 % dara JS */
  animation: b-layer-progress 92s cubic-bezier(0.25, 0.7, 0.4, 1) forwards;
}
@keyframes b-layer-progress { from { width: 0; } to { width: 96%; } }
@media (prefers-reduced-motion: reduce) {
  .outcome-notice--wait .b-layer-progress__bar { animation: none; width: 100%; opacity: 0.4; }
}
.industry-example__intro { margin: 0 0 12px; font-weight: 600; }

/* Obligātās atrunas */
.disclaimer {
  margin-top: 32px;
  border: var(--border-w) solid var(--color-border);
  border-left: 5px solid var(--color-teal-500);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  background: var(--color-card);
}
.disclaimer h3 { font-size: 1.05rem; margin-bottom: 10px; }
.disclaimer ul { margin: 0; padding-left: 20px; color: var(--color-text-muted); font-size: 0.95rem; }
.disclaimer li { margin-bottom: 6px; }

/* Kontaktu forma */
.contact-card {
  margin-top: 40px;
  border: var(--border-w) solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 20px; }
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  cursor: pointer;
}
.consent input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--color-teal-500); }

/* Apstiprinājums */
.done-box { text-align: center; padding: 48px 24px; }
.done-box__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--color-teal-500); color: #222222;
  font-size: 2.2rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.done-box__demo { font-size: 0.9rem; opacity: 0.75; margin-bottom: 24px; }


/* ==========================================================================
   JURIDISKĀS LAPAS (privātuma politika, sīkdatnes, brokera loma)
   ========================================================================== */

.legal { max-width: 820px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 {
  font-size: 1.5rem;
  margin-top: 44px;
  padding-top: 20px;
  border-top: var(--border-w) solid var(--color-border);
}
.legal h3 { font-size: 1.12rem; margin-top: 26px; }
.legal p, .legal li { font-size: 1rem; }
.legal ul, .legal ol { padding-left: 22px; color: var(--color-text-muted); }
.legal li { margin-bottom: 8px; }
.legal__meta { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 28px; }
.legal dl { margin: 0; }
.legal dt { font-weight: 700; margin-top: 16px; }
.legal dd { margin: 4px 0 0; color: var(--color-text-muted); }

/* Melnraksta brīdinājums lapas augšā */
.draft-banner {
  border: var(--border-w) solid #d9534f;
  background: rgba(217, 83, 79, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 32px;
}
.draft-banner__title {
  color: #d9534f;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.draft-banner p { margin: 0; font-size: 0.98rem; }

/* Komentārs juristam — pirms publicēšanas noņemams */
.legal-note {
  border-left: 5px solid #e6a81e;
  background: var(--color-warn-bg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 16px 0 22px;
  font-size: 0.95rem;
}
.legal-note__tag {
  display: inline-block;
  background: #e6a81e;
  color: #3d2c00;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.legal-note p:last-child, .legal-note ul:last-child { margin-bottom: 0; }
.legal-note p, .legal-note li { color: var(--color-warn-text); }

/* Noslēguma pārbaudes saraksts juristam */
.lawyer-check {
  border: var(--border-w) solid var(--color-teal-500);
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
  padding: 26px 28px;
  margin-top: 44px;
}
.lawyer-check h2 { border-top: none; margin-top: 0; padding-top: 0; }
.lawyer-check ol { padding-left: 20px; }
.lawyer-check li { margin-bottom: 12px; color: var(--color-text); }
.lawyer-check li strong { display: block; }

.legal-table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 0.95rem; }
.legal-table th, .legal-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.legal-table th { font-weight: 700; border-bottom: var(--border-w) solid var(--color-border); }
.legal-table td { color: var(--color-text-muted); }
.legal-table code {
  font-family: var(--font-body);
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
  color: var(--color-text);
}
.legal code {
  font-family: var(--font-body);
  background: var(--color-bg-alt);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

/* ==========================================================================
   PIEKRIŠANAS BANERIS (js/consent.js)

   Galvenais noteikums šeit ir juridisks, ne estētisks: sikdatnes.html
   (cook.note2.p2) prasa, lai atteikties varētu tikpat viegli, cik piekrist.
   Tāpēc visas trīs darbības lieto VIENU klasi (.consent-btn) — vienāds
   izmērs, forma, fonts un krāsa. "Vairāk informācijas" un "Nepiekrītu"
   nedrīkst izskatīties vājāk par "Piekrītu", un atteikšanās nedrīkst būt
   paslēpta zem atsevišķa "Iestatījumu" soļa. Ja kādreiz gribas vienu no tām
   padarīt izteiksmīgāku — to nedrīkst darīt šeit.
   ========================================================================== */
.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--color-card);
  border-top: var(--border-w-active) solid var(--color-teal-500);
  box-shadow: 0 -8px 30px rgba(7, 60, 53, 0.18);
  padding: 18px 0;
}
.consent-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 26px;
}
.consent-banner__text { flex: 1 1 420px; min-width: 0; }
.consent-banner__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  margin: 0 0 6px;
}
.consent-banner__body {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
.consent-banner__actions { display: flex; gap: 12px; flex: 0 1 auto; }

/* Visas trīs bannera darbības — apzināti identiskas. */
.consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 175px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: var(--color-teal-500);
  color: #222222;
  border: var(--border-w-active) solid var(--color-teal-500);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.consent-btn:hover { background: var(--color-teal-400); border-color: var(--color-teal-400); }
.consent-btn:focus-visible { outline: 3px solid var(--color-text); outline-offset: 2px; }

/* Izvēles maiņa uz sikdatnes.html */
.consent-choice {
  border: var(--border-w) solid var(--color-teal-500);
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  padding: 20px 24px;
  margin: 22px 0;
}
.consent-choice h3 { margin-top: 0; }
.consent-choice__state { margin: 14px 0; }
.consent-choice__saved {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}
.consent-choice__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.consent-choice__actions .consent-btn { flex: 0 1 auto; }

@media (max-width: 640px) {
  .consent-banner { padding: 12px 0; }
  .consent-banner__inner { gap: 10px; }
  .consent-banner__title { font-size: 1rem; margin-bottom: 4px; }
  .consent-banner__body { font-size: 0.88rem; line-height: 1.4; }
  .consent-banner__actions { width: 100%; }
  .consent-btn {
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.9rem;
    line-height: 1.15;
  }
}

/* Izcelts apgalvojums juridiskajā tekstā (piem., "Mēs esam starpnieks, nevis aizdevējs") */
.statement-strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  border-left: 5px solid var(--color-teal-500);
  padding: 14px 20px;
  margin: 26px 0;
  background: var(--color-accent-soft);
  border-radius: var(--radius-sm);
}

.legal-lang-note {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  border: var(--border-w) dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 24px;
}

/* ---------- Statusa uzlīmes ---------- */
.badge-indicative {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-warn-bg);
  color: var(--color-warn-text);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
}

/* ---------- Mobilā pielipinātā CTA ----------
   Uz platiem ekrāniem to nerāda nekad. Zem 980 px galvenes CTA poga tiek
   paslēpta (sk. .nav .btn--primary noteikumu tālāk), tāpēc tieši tur lietotājam
   pazūd pastāvīgā darbība — šī josla to atgriež. Redzamību pārslēdz `hidden`
   atribūts; globālais [hidden] noteikums ir ar !important, tāpēc tas vienmēr
   uzvar pār display noteikumiem šeit. */
.sticky-cta { display: none; }

/* ---------- Responsivitāte ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 16px; }
  .nav { gap: 14px; }
}

@media (max-width: 980px) {
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    background: var(--color-bg);
    border-top: var(--border-w) solid var(--color-border);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .sticky-cta .btn { display: block; width: 100%; text-align: center; }
  /* Lai josla nenosegtu kājenes pēdējo rindu */
  .site-footer { padding-bottom: 96px; }

  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .steps, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .nav .btn--primary { display: none; }
  .section { padding: 56px 0; }

  /* --- Mobilā izvēlne --- */
  .nav__toggle {
    display: flex;
    width: 40px; height: 40px;
    flex: none;
    align-items: center; justify-content: center;
    border-radius: 50%;
    border: var(--border-w-active) solid rgba(243, 247, 246, 0.3);
    background: transparent;
    color: var(--color-text-on-dark);
    font-size: 1.1rem;
    cursor: pointer;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #073c35;
    padding: 6px 24px 14px;
    border-top: 1px solid rgba(243, 247, 246, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  }
  .nav__links--open { display: flex; }
  .nav__links li { border-bottom: 1px solid rgba(243, 247, 246, 0.08); }
  .nav__links li:last-child { border-bottom: none; }
  .nav__links a { display: block; padding: 14px 0; font-size: 1.05rem; }

  /* #270: one-line mobile header controls remain comfortably tappable. */
  .site-header .switchers .pill,
  .site-header .nav__toggle,
  .site-header .pill--home {
    min-width: 36px;
    min-height: 36px;
  }
}

@media (max-width: 780px) {
  .progress { flex-direction: column; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .flow-actions { flex-direction: column-reverse; }
  .flow-actions .btn { width: 100%; }
}

/* ---------- Mazie tālruņi ---------- */
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 44px 0; }

  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .eyebrow { font-size: 1rem; letter-spacing: 0.04em; }

  /* Galvenē pietrūkst vietas — logo un pārslēgi kļūst kompaktāki */
  .brand-logo img { height: 42px; }
  .logo-placeholder { font-size: 0.95rem; gap: 8px; }
  .logo-placeholder__mark { width: 30px; height: 30px; border-radius: var(--radius-sm); }
  .pill { padding: 7px 11px; font-size: 0.85rem; gap: 5px; }
  .nav { gap: 8px; }
  .site-header__inner {
    gap: 8px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
    padding-bottom: 8px;
  }

  /* #270: flow/legal headers stay on one line without horizontal overflow. */
  .site-header__inner:has(.header-left) { flex-wrap: nowrap; }
  .site-header__inner:has(.header-left) .header-left {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .site-header__inner:has(.header-left) .nav {
    margin-left: 0;
    flex: 0 0 auto;
  }
  .site-header #themeLabel { display: none; }

  /* #270: retain the page width while wide legal tables scroll in place. */
  .legal-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .grid-4, .trust-strip, .footer-grid { grid-template-columns: 1fr; }
  .calc-card, .contact-card { padding: 22px; }
  .final-cta { padding: 44px 22px; }

  .footer-bottom, .footer-credits { flex-direction: column; gap: 8px; }
}

.contact-card__compare { font-weight: 600; margin: 0 0 8px; }

/* #252 R14: one self-hosted family. Fluid sizes reach desktop at 1280px;
   360/390px use the proposed mobile range, pending browser verification. */
body {
  font-size: clamp(16px, calc(15.2174px + 0.2174vw), 18px);
  font-weight: 400;
}
h1, h2, h3, h4 { font-weight: 700; }
h1 { font-size: clamp(34px, calc(25.3913px + 2.3913vw), 56px); }
.flow h1 { font-size: clamp(30px, calc(24.5217px + 1.5217vw), 44px); }
h2, .legal h2, .flow-subhead {
  font-size: clamp(28px, calc(21.7391px + 1.7391vw), 44px);
}
h3, h4, .calc-card__title, .company-card__name, .funding-card h3,
.industry-card h3, .verify-card h3, .disclaimer h3, .legal h3,
.outcome-notice h2, .industry-example__card h2, .consent-banner__title,
.lender-tier__title {
  font-size: clamp(17px, calc(15.8261px + 0.3261vw), 20px);
  font-weight: 700;
}
.eyebrow, .industry-example__eyebrow {
  font-size: clamp(13px, calc(11.8261px + 0.3261vw), 16px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__lead, .hero__micro, .funding-card p, .industry-card > p,
.verify-card > p, .legal p, .legal li {
  font-size: clamp(16px, calc(15.2174px + 0.2174vw), 18px);
}
.btn, .btn--lg, .consent-btn {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
}
.pill { font-family: var(--font-body); font-weight: 700; }
/* Inherited by all result amounts, ratios, percentages, fields and tables. */
body { font-variant-numeric: tabular-nums; }

/* R14: compact only the flow-header controls on narrow phones. */
@media (max-width: 380px) {
  body:has(.flow) .site-header .pill { font-size: 12px; }
}

/* R12: only text directly on the header and first green hero is white. */
.site-header .pill, .site-header .pill:hover, .site-header .nav__toggle,
.site-header .nav__links a, .site-header .nav__links a:hover,
.hero__intro .eyebrow, .hero__intro h1, .hero__intro .hero__lead,
.hero__intro .hero__micro, .hero__intro .hero__micro strong { color: #ffffff; }
