/* --- Self-hosted Google Fonts (Inter + Manrope) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url('/static/inter-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 700;
  font-display: optional;
  src: url('/static/inter-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: 'Manrope';
  font-style: normal;
  font-weight: 600 800;
  font-display: optional;
  src: url('/static/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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600 800;
  font-display: optional;
  src: url('/static/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;
}

/* --- Lucide icon font (subset) --- */
@font-face {
  font-family: "lucide";
  font-display: swap;
  src: url('/static/lucide.woff2') format('woff2');
}

[class^="icon-"], [class*=" icon-"] {
  font-family: 'lucide' !important;
  font-size: inherit;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-alert-circle::before { content: "\e077"; }
.icon-alert-triangle::before { content: "\e193"; }
.icon-arrow-right::before { content: "\e049"; }
.icon-arrow-up::before { content: "\e04a"; }
.icon-banknote::before { content: "\e052"; }
.icon-building::before { content: "\e1cc"; }
.icon-calendar::before { content: "\e063"; }
.icon-check::before { content: "\e06c"; }
.icon-check-circle::before { content: "\e07c"; }
.icon-chevrons-up::before { content: "\e074"; }
.icon-clock::before { content: "\e087"; }
.icon-cpu::before { content: "\e0a9"; }
.icon-download::before { content: "\e0b2"; }
.icon-eye::before { content: "\e0ba"; }
.icon-file::before { content: "\e0c0"; }
.icon-file-plus::before { content: "\e0c9"; }
.icon-file-text::before { content: "\e0cc"; }
.icon-fingerprint::before { content: "\e2cb"; }
.icon-flag::before { content: "\e0d1"; }
.icon-heart::before { content: "\e0f2"; }
.icon-help-circle::before { content: "\e082"; }
.icon-home::before { content: "\e0f5"; }
.icon-info::before { content: "\e0f9"; }
.icon-layout-dashboard::before { content: "\e1c1"; }
.icon-loader::before { content: "\e109"; }
.icon-lock::before { content: "\e10b"; }
.icon-log-in::before { content: "\e10d"; }
.icon-log-out::before { content: "\e10e"; }
.icon-mail::before { content: "\e10f"; }
.icon-message-circle::before { content: "\e116"; }
.icon-monitor::before { content: "\e11d"; }
.icon-monitor-smartphone::before { content: "\e3a2"; }
.icon-moon::before { content: "\e11e"; }
.icon-more-horizontal::before { content: "\e0b6"; }
.icon-paperclip::before { content: "\e12d"; }
.icon-pause-circle::before { content: "\e07f"; }
.icon-pencil::before { content: "\e1f9"; }
.icon-plus::before { content: "\e13d"; }
.icon-plus-circle::before { content: "\e081"; }
.icon-refresh-cw::before { content: "\e145"; }
.icon-save::before { content: "\e14d"; }
.icon-scale::before { content: "\e212"; }
.icon-search::before { content: "\e151"; }
.icon-search-x::before { content: "\e4ad"; }
.icon-send::before { content: "\e152"; }
.icon-settings::before { content: "\e154"; }
.icon-shield::before { content: "\e158"; }
.icon-shield-alert::before { content: "\e1fe"; }
.icon-shield-check::before { content: "\e1ff"; }
.icon-shield-off::before { content: "\e15a"; }
.icon-shopping-cart::before { content: "\e15c"; }
.icon-sun::before { content: "\e178"; }
.icon-tag::before { content: "\e17f"; }
.icon-trash-2::before { content: "\e18e"; }
.icon-trending-up::before { content: "\e191"; }
.icon-upload::before { content: "\e19e"; }
.icon-user::before { content: "\e19f"; }
.icon-user-check::before { content: "\e1a0"; }
.icon-user-x::before { content: "\e1a3"; }
.icon-users::before { content: "\e1a4"; }
.icon-x::before { content: "\e1b2"; }
.icon-zap::before { content: "\e1b4"; }

/* --- Brand accent --- */
:root {
  --accent: #134e7f;
  --accent-hover: #0f3d64;
  --accent-subtle: #134e7f1a;
  --accent-secondary: #336699;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.1);
  --content-width: 1200px;
  --pico-primary: var(--accent);
  --pico-primary-hover: var(--accent-hover);
  --pico-border-radius: var(--radius-sm);
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
[data-theme=dark] {
  --accent: #5b9bd5;
  --accent-hover: #4a8bc2;
  --accent-subtle: #5b9bd515;
  --accent-secondary: #7ab3e0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.15);
  --shadow: 0 2px 12px rgba(0,0,0,.2);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.3);
  --topbar-bg: rgba(30, 33, 40, 0.85);
  --pico-primary: var(--accent);
  --pico-primary-hover: var(--accent-hover);
}
:root:not([data-theme=dark]) {
  --topbar-bg: rgba(255, 255, 255, 0.85);
}

/* --- Typography --- */
body {
  font-family: var(--font-body);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* --- Topbar --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-bg, rgba(255,255,255,0.85));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pico-muted-border-color);
  padding: 0;
}
.topbar-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.topbar a { text-decoration: none; }
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--pico-color);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand i { color: var(--accent); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 1;
  min-width: 0;
}

/* --- CSS-only dropdown --- */
.dropdown {
  position: relative;
  margin-bottom: 0;
  border-bottom: none;
}
.dropdown summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--pico-color);
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.15s;
  height: auto;
}
.dropdown summary::after { display: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary:hover {
  background: var(--accent-subtle);
}
.dropdown[open] summary {
  background: var(--accent-subtle);
}
.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 210px;
  background: var(--pico-card-background-color, #fff);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  z-index: 200;
}
.dropdown-menu a,
.dropdown-menu button,
.dropdown-menu button[type="submit"] {
  display: flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  width: 100% !important;
  padding: 0.6rem 1.1rem !important;
  font-size: 0.88rem !important;
  color: var(--pico-color) !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-align: left !important;
  transition: background 0.15s !important;
  margin: 0 !important;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover,
.dropdown-menu button[type="submit"]:hover {
  background: var(--accent-subtle) !important;
}
.dropdown-divider {
  height: 1px;
  background: var(--pico-muted-border-color);
  margin: 0.4rem 0;
}
/* Close dropdown when clicking outside */
.dropdown[open]::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
}

/* --- Language dropdown --- */
.lang-dropdown summary { font-size: 1.1rem; padding: 0.3rem 0.5rem; border: 1px solid transparent !important; gap: 0.2rem; background: transparent !important; }
.lang-dropdown summary:hover { border-color: var(--pico-muted-border-color) !important; }
.lang-dropdown .dropdown-menu { min-width: 150px; }
.lang-dropdown .dropdown-menu a { font-size: 0.9rem; }
.active-lang { font-weight: 600; background: var(--accent-subtle); }

/* --- Content --- */
.content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* --- Alerts --- */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.alert-error {
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  color: var(--danger);
  border: 1px solid color-mix(in srgb, var(--danger) 20%, transparent);
}
.alert-success {
  background: color-mix(in srgb, var(--success) 8%, transparent);
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 20%, transparent);
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.3em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge-pending, .badge-initial {
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: var(--warning);
}
.badge-processing {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.badge-missing_data {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}
.badge-ready {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
}
.badge-verified, .badge-active {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
}
.badge-rejected {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}
.badge-merged {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.badge-confirmed {
  background: color-mix(in srgb, var(--success) 20%, transparent);
  color: var(--success);
  font-weight: 600;
}

/* --- Role chips (navbar) --- */
.role-chip {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 0.25em;
}
.role-chip-admin {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger);
}
.role-chip-reviewer {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

/* --- Tables --- */
table { border-radius: var(--radius); overflow: hidden; }

/* --- Icon helpers --- */
.icon-sm { font-size: 1rem; vertical-align: -2px; }
.icon-md { font-size: 1.25rem; vertical-align: -3px; }
.btn-icon { display: inline-flex; align-items: center; gap: 0.4rem; }

/* --- HTMX --- */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }


#lookup-results.htmx-request { opacity: 0.5; pointer-events: none; }
.htmx-swapping { opacity: 0.5; transition: opacity 0.2s; }

/* --- Theme toggle --- */
.theme-toggle {
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.25rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  color: var(--pico-muted-color);
  transition: color 0.2s;
  background: none;
  border: none;
  box-shadow: none;
  width: auto;
}
.theme-toggle:hover, .theme-toggle:hover i { color: var(--pico-color) !important; background: none !important; border: none !important; box-shadow: none !important; }
.theme-toggle .theme-icon-hover { display: none; }
.theme-toggle:hover .theme-icon-default { display: none; }
.theme-toggle:hover .theme-icon-hover { display: inline; }

/* --- Section divider --- */
.section-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pico-muted-color);
  margin: 2.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --- Footer --- */
footer.site-footer {
  border-top: 1px solid var(--pico-muted-border-color);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--pico-color);
  margin-bottom: 0.75rem;
}
.footer-brand i { color: var(--accent); }
.footer-desc {
  font-size: 0.82rem;
  color: var(--pico-muted-color);
  line-height: 1.6;
  margin: 0;
}
.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pico-color);
  margin: 0 0 0.75rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--pico-muted-color);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  max-width: var(--content-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--pico-muted-border-color);
  text-align: center;
}
.footer-bottom small {
  font-size: 0.78rem;
  color: var(--pico-muted-color);
}


/* --- Landing: Hero --- */
.hero {
  padding: 4rem 0 4.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 3rem;
  align-items: center;
}
.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.hero-content p {
  font-size: 1.05rem;
  color: var(--pico-muted-color);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* Hero search bar */
.hero-search { margin: 0; }
.hero-search-bar {
  display: flex;
  align-items: center;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--radius);
  padding: 0.35rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.05);
  transition: box-shadow 0.2s;
}
.hero-search-bar:focus-within { box-shadow: 0 20px 50px rgba(0,0,0,.1); }
.hero-search-icon { padding: 0 0.75rem; color: var(--pico-muted-color); }
.hero-search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  padding: 0.75rem 0.5rem;
  margin: 0;
  outline: none;
  box-shadow: none;
}
.hero-search-bar input::-webkit-search-cancel-button { display: none; }
.hero-search-bar input:focus { box-shadow: none; border: none; }
.hero-search-bar button {
  margin: 0;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-heading);
  white-space: nowrap;
  flex-shrink: 0;
  width: auto;
}
.hero-search-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--pico-muted-color);
}

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.hero-stat-featured {
  grid-column: span 2;
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}
.hero-stat-label-upper {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pico-muted-color);
}
.hero-stat-value-lg {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  margin-top: 0.25rem;
}
.hero-stat-bar {
  height: 4px;
  width: 100%;
  background: var(--pico-muted-border-color);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1rem;
}
.hero-stat-bar-fill {
  height: 100%;
  width: 75%;
  background: var(--accent);
  border-radius: 999px;
}
.hero-stat-card {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
  margin-top: 0.35rem;
}
.hero-stat-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.hero-stat-primary .hero-stat-label-upper {
  color: #d1e8f7;
}
.hero-stat-primary .hero-stat-value {
  color: #fff;
}
[data-theme=dark] .hero-stat-primary {
  background: #134e7f;
  border-color: #134e7f;
}

/* --- Landing: Bento grid (value props) --- */
.bento-section {
  margin-bottom: 3.5rem;
  background: color-mix(in srgb, var(--pico-muted-border-color) 30%, transparent);
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 3.5rem 1.5rem;
  border-radius: 0;
}
.bento-header {
  max-width: var(--content-width);
  margin: 0 auto 2rem;
}
.bento-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}
.bento-header p {
  font-size: 1rem;
  color: var(--pico-muted-color);
  margin: 0;
  line-height: 1.5;
}
.bento-grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: start;
  gap: 1rem;
}
.bento-card {
  background: var(--pico-card-background-color);
  border: 1px solid var(--pico-muted-border-color);
  border-radius: 1rem;
  padding: 2.25rem;
  transition: box-shadow 0.3s;
}
.bento-card:hover { box-shadow: var(--shadow-lg); }
.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  color: var(--accent);
}
.bento-card p {
  font-size: 0.88rem;
  color: var(--pico-muted-color);
  line-height: 1.7;
  margin: 0;
}

/* Row 1: Mission (wide) spans col 1, image area in col 2 is part of the card */
.bento-card-wide {
  grid-column: 1 / -1;
}
.bento-card-split {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.bento-card-body { flex: 1; }
.bento-card-image {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--accent);
}
.bento-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}
.bento-icon-light {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.bento-icon-warm {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
}

/* Mission card — no special sizing, just flows naturally */
.bento-mission {}

/* Image-only decorative card */
.bento-card-image-only {
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
  color: var(--accent);
  font-size: 5rem;
  opacity: 0.15;
}

/* Row 2: Accent (col1) + normal (col2) */
.bento-card-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  padding: 2.5rem;
}
[data-theme=dark] .bento-card-accent {
  background: #134e7f;
  border-color: #134e7f;
}
.bento-card-accent h3 {
  color: #fff;
  font-size: 1.3rem;
}
.bento-card-accent p {
  color: #d6eaf8;
}

/* Muted card */
.bento-card-muted {
  background: color-mix(in srgb, var(--pico-muted-border-color) 20%, var(--pico-card-background-color));
}

/* Decorative bars */
.bento-card-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  flex-shrink: 0;
}
.bar {
  width: 32px;
  border-radius: 999px;
}
.bar-1 { height: 80px; background: color-mix(in srgb, var(--accent) 20%, transparent); }
.bar-2 { height: 115px; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.bar-3 { height: 65px; background: color-mix(in srgb, var(--accent) 60%, transparent); }

/* --- Landing: How it works --- */
.landing-section {
  margin-bottom: 3.5rem;
}
.steps-header {
  text-align: center;
  margin-bottom: 3rem;
}
.steps-header h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.steps-divider {
  width: 80px;
  height: 4px;
  background: var(--accent-secondary);
  border-radius: 999px;
  margin: 0 auto;
}
.steps-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
}
.step-item {
  position: relative;
  padding-top: 2rem;
}
.step-bg-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 900;
  color: var(--pico-muted-border-color);
  line-height: 1;
  position: absolute;
  top: -0.5rem;
  left: -0.25rem;
  z-index: 0;
  opacity: 0.5;
  transition: color 0.3s;
  user-select: none;
}
.step-item:hover .step-bg-number {
  color: color-mix(in srgb, var(--accent) 20%, transparent);
}
.step-item h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  position: relative;
  z-index: 1;
}
.step-item p {
  font-size: 0.85rem;
  color: var(--pico-muted-color);
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* --- Landing: CTA banner --- */
.cta-banner {
  background: #134e7f;
  color: #fff;
  border-radius: 2rem;
  padding: 4rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(60px);
}
.cta-glow-1 {
  top: -100px;
  right: -100px;
  background: var(--accent-secondary);
}
.cta-glow-2 {
  bottom: -100px;
  left: -100px;
  background: #0f3d64;
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 1rem;
  color: #fff;
  line-height: 1.2;
}
.cta-banner p {
  font-size: 1.05rem;
  color: #d6eaf8;
  margin: 0 auto 2rem;
  max-width: 520px;
  line-height: 1.6;
  font-weight: 500;
}
.cta-banner a[role="button"] {
  background: #fff;
  color: #134e7f;
  border: none;
  font-weight: 800;
  font-family: var(--font-heading);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cta-banner a[role="button"]:hover {
  background: #f0f0f0;
}


/* --- Landing legacy grids (backwards compat) --- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; text-align: center; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.about-title { font-family: var(--font-heading); margin: 0 0 0.5rem; font-size: 0.95rem; }
.about-body { margin: 0; font-size: 0.88rem; color: var(--pico-muted-color); line-height: 1.65; }

/* Keep step-card for non-landing uses */
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
}
.step-title { margin: 0 0 0.25rem; font-family: var(--font-heading); font-size: 0.92rem; font-weight: 700; }
.step-body { margin: 0; font-size: 0.85rem; color: var(--pico-muted-color); line-height: 1.55; }

/* --- Mobile --- */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content h1 { font-size: 2rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card-wide { grid-column: span 1; }
  .bento-card-split { flex-direction: column; }
  .bento-card-image { width: 100%; height: 120px; }
  .steps-grid-3col { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
/* --- Mobile show/hide helpers --- */
.show-mobile,
.dropdown-menu a.show-mobile,
.dropdown-menu .show-mobile { display: none !important; }
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile,
  .dropdown-menu a.show-mobile,
  .dropdown-menu .show-mobile { display: flex !important; }
  [data-theme="dark"] .theme-menu-icon-dark { display: inline; }
  [data-theme="dark"] .theme-menu-icon-light { display: none; }
  [data-theme="light"] .theme-menu-icon-dark,
  :root:not([data-theme="dark"]) .theme-menu-icon-dark { display: none; }
  [data-theme="light"] .theme-menu-icon-light,
  :root:not([data-theme="dark"]) .theme-menu-icon-light { display: inline; }
}

@media (max-width: 576px) {
  .topbar-inner { padding: 0.6rem 0.75rem; }
  .brand { font-size: 0.95rem; }
  .topbar-right { gap: 0.35rem; }
  .topbar-right .dropdown summary { font-size: 0.82rem; padding: 0.25rem 0.4rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lang-dropdown summary { max-width: none !important; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .stat .value { font-size: 1.75rem; }
  .about-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat-featured { grid-column: span 1; }
  .steps-grid-3col { grid-template-columns: 1fr; }
  .step-bg-number { font-size: 3.5rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-banner { padding: 2.5rem 1.25rem; border-radius: var(--radius); }
  .bento-section { margin-left: -0.75rem; margin-right: -0.75rem; padding: 2.5rem 0.75rem; }
}

/* --- General spacing --- */
h2 { letter-spacing: -0.02em; }
article { border-radius: var(--radius); }
label { margin-bottom: 0.25rem; }
form button[type="submit"] { margin-top: 0.5rem; }

/* --- Utility: Flexbox --- */
.flex { display: flex !important; }
.flex-col { display: flex !important; flex-direction: column; }
.flex-wrap { display: flex !important; flex-wrap: wrap; }
.flex-center { display: flex !important; align-items: center; }
.flex-between { display: flex !important; justify-content: space-between; align-items: center; }
.flex-between-start { display: flex !important; justify-content: space-between; align-items: start; }
.items-start { align-items: start; }
.items-end { align-items: end; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.flex-1 { flex: 1; min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-xs { gap: 0.25rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 0.75rem; }
.gap-lg { gap: 1rem; }
.gap-xl { gap: 1.5rem; }
.gap-2xl { gap: 2rem; }

/* --- Utility: Spacing --- */
.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 0.75rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 0.75rem; }
.mb-lg { margin-bottom: 1.5rem; }
.mb-xl { margin-bottom: 2rem; }

/* --- Utility: Text --- */
.text-muted { color: var(--pico-muted-color); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 600; }
.line-relaxed { line-height: 1.5; }

/* --- Utility: Buttons --- */
.btn-reset { background: none; border: none; cursor: pointer; box-shadow: none; }
.btn-sm { margin: 0; padding: 0.2rem 0.5rem; font-size: 0.85rem; }
.btn-xs { margin: 0; padding: 0.25rem 0.6rem; font-size: 0.8rem; }
.w-auto { width: auto !important; }

/* --- Utility: Display --- */
.inline { display: inline; }
.inline-flex { display: inline-flex; align-items: center; }

