/* ============================================================================
   MediMic.Ai — Public Website Stylesheet
   Built on the shared app/portal design system (Handoff 03_DESIGN_SYSTEM).
   No invented colors, weights, or radii — every value traces to a token.
   ============================================================================ */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Brand */
  --indigo: #3B4ECC;
  --indigo-deep: #2A3BAF;
  --indigo-light: #EEF0FD;
  --indigo-mid: #C7CCEF;
  /* Ink / neutrals */
  --ink: #1A1D2E;
  --ink-soft: #24283C;
  --sub: #8B8FA8;
  --faint: #B9BCCC;
  --border: #E4E5EE;
  --line: #EDEEF4;
  --bg: #F5F5F8;
  --panel: #FAFAFC;
  --white: #FFFFFF;
  /* Status */
  --green: #12A05C; --green-light: #E6F7EF; --green-mid: #A8E0C2;
  --red: #DC2626;   --red-light: #FEE2E2;
  --amber: #B45309; --amber-light: #FFF4E0; --amber-mid: #F0D9A8;
  --violet: #7C5CD6; --violet-light: #F0EBFB;
  /* Type */
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-2xl: 28px; --r-full: 9999px;
  /* Shadows */
  --sh-cta: 0 8px 24px rgba(59,78,204,0.35);
  --sh-card: 0 2px 8px rgba(0,0,0,0.08);
  --sh-card-hover: 0 8px 24px rgba(0,0,0,0.12);
  --sh-float: 0 16px 48px rgba(0,0,0,0.16);
  --sh-device: 0 32px 80px rgba(26,29,46,0.28);
  /* Gradients */
  --grad-indigo: linear-gradient(135deg, #3B4ECC 0%, #2A3BAF 100%);
  --grad-dark: linear-gradient(135deg, #1A1D2E 0%, #2A3BAF 100%);
  /* Layout */
  --max: 1200px;
  --nav-h: 68px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
:focus-visible { outline: 2.5px solid var(--indigo); outline-offset: 2px; border-radius: 4px; }

/* ── Layout helpers ──────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; }
.section { padding-block: 96px; }
.section-sm { padding-block: 64px; }
.center { text-align: center; }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--indigo); margin-bottom: 14px;
}
.eyebrow.on-dark { color: var(--indigo-mid); }

/* ── Typography ──────────────────────────────────────────────────────────── */
.h-hero {
  font-size: clamp(34px, 5.4vw, 62px); font-weight: 800; line-height: 1.14;
  letter-spacing: -0.035em; text-wrap: pretty;
}
.h-section {
  font-size: clamp(28px, 3.8vw, 46px); font-weight: 800; line-height: 1.16;
  letter-spacing: -0.03em; text-wrap: balance;
}
.h-sub {
  font-size: clamp(21px, 2.2vw, 27px); font-weight: 700; line-height: 1.2;
  letter-spacing: -0.02em;
}
.h-card { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.lede {
  font-size: clamp(17px, 1.45vw, 19px); font-weight: 400; line-height: 1.62; color: var(--ink-soft);
  text-wrap: pretty;
}
.muted { color: var(--sub); }
.mono { font-family: var(--mono); font-weight: 500; letter-spacing: 0.02em; }
.lead-max { max-width: 620px; }

/* ── Wordmark ────────────────────────────────────────────────────────────── */
.wordmark {
  font-weight: 800; letter-spacing: -0.04em; color: var(--ink);
  font-size: 23px; line-height: 1; white-space: nowrap; display: inline-flex; align-items: center; gap: 9px;
}
.wordmark .dot-ai { color: var(--indigo); }
.wordmark.on-dark { color: var(--white); }
.wordmark .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--grad-indigo);
  display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 4px 12px rgba(59,78,204,0.30);
}
.wordmark .mark svg { width: 17px; height: 17px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  padding: 14px 24px; border-radius: var(--r-full); transition: all 0.18s ease;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--indigo); color: var(--white); box-shadow: var(--sh-cta); }
.btn-primary:hover { background: var(--indigo-deep); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(59,78,204,0.42); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--indigo-mid); background: var(--indigo-light); color: var(--indigo-deep); }
.btn-ghost { color: var(--indigo); font-weight: 700; padding: 8px 4px; }
.btn-ghost:hover { gap: 12px; }
.btn-ghost .arrow { transition: transform 0.18s ease; }
.btn-ghost:hover .arrow { transform: translateX(3px); }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn-white { background: var(--white); color: var(--indigo-deep); }
.btn-white:hover { background: var(--indigo-light); }
.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.btn-block { width: 100%; }

/* ── Badges / pills / chips ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  padding: 5px 11px; border-radius: var(--r-full); line-height: 1;
}
.badge svg { width: 13px; height: 13px; }
.badge-green { background: var(--green-light); color: var(--green); border: 1px solid var(--green-mid); }
.badge-indigo { background: var(--indigo-light); color: var(--indigo-deep); border: 1px solid var(--indigo-mid); }
.badge-amber { background: var(--amber-light); color: var(--amber); border: 1px solid var(--amber-mid); }
.badge-violet { background: var(--violet-light); color: var(--violet); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.dot-green { background: var(--green); box-shadow: 0 0 0 3px var(--green-light); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-full);
  padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.chip svg { width: 16px; height: 16px; color: var(--indigo); }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 28px; box-shadow: var(--sh-card); transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card-hover:hover { box-shadow: var(--sh-card-hover); transform: translateY(-3px); }
.card-tinted { background: var(--indigo-light); border-color: var(--indigo-mid); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--r-md); background: var(--indigo-light);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--indigo); }
.feature-icon.green { background: var(--green-light); }
.feature-icon.green svg { color: var(--green); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Navigation ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,0.82); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s, box-shadow 0.2s;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(0,0,0,0.04); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 15px; font-weight: 600; color: var(--ink-soft); padding: 9px 14px; border-radius: var(--r-sm); white-space: nowrap;
  transition: color 0.15s, background 0.15s; display: inline-flex; align-items: center; gap: 5px;
}
.nav-link:hover { color: var(--indigo); background: var(--indigo-light); }
.nav-link.active { color: var(--indigo); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { padding: 11px 20px; font-size: 15px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }

/* Mega dropdown */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-float); padding: 12px; width: 340px;
  opacity: 0; visibility: hidden; transition: 0.2s; z-index: 110;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-md); transition: background 0.15s; }
.mega-item > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mega-item:hover { background: var(--indigo-light); }
.mega-item .mi-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--indigo-light); display: grid; place-items: center; flex-shrink: 0; }
.mega-item:hover .mi-icon { background: var(--white); }
.mega-item .mi-icon svg { width: 19px; height: 19px; color: var(--indigo); }
.mega-item .mi-t { font-size: 14.5px; font-weight: 700; color: var(--ink); display: block; }
.mega-item .mi-d { font-size: 12.5px; color: var(--sub); line-height: 1.4; display: block; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none;
}
.mobile-menu .mm-backdrop { position: absolute; inset: 0; background: rgba(10,12,30,0.5); opacity: 0; transition: opacity 0.25s; }
.mobile-menu .mm-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(86%, 380px);
  background: var(--white); box-shadow: -24px 0 48px rgba(10,12,30,0.18);
  transform: translateX(105%); transition: transform 0.3s cubic-bezier(0.32,0.72,0.24,1);
  display: flex; flex-direction: column; padding: 20px 22px 28px;
}
.mobile-menu.open { visibility: visible; pointer-events: auto; }
.mobile-menu.open .mm-backdrop { opacity: 1; }
.mobile-menu.open .mm-panel { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mm-close { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--bg); border: 1.5px solid var(--border); display: grid; place-items: center; }
.mm-links { display: flex; flex-direction: column; gap: 2px; }
.mm-link { font-size: 18px; font-weight: 700; color: var(--ink); padding: 14px 12px; border-radius: var(--r-md); letter-spacing: -0.02em; }
.mm-link:hover, .mm-link.active { background: var(--indigo-light); color: var(--indigo); }
.mm-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sub); padding: 16px 12px 6px; }
.mm-foot { margin-top: auto; padding-top: 20px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #C7CAD8; padding-block: 64px 32px; }
.footer a { color: #C7CAD8; transition: color 0.15s; }
.footer a:hover { color: var(--white); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .wordmark { margin-bottom: 16px; }
.footer-tag { font-size: 14px; line-height: 1.6; max-width: 280px; margin-bottom: 20px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; }
.store-badges { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: 13px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.07); display: grid; place-items: center; }
.footer-social a:hover { background: rgba(255,255,255,0.14); }
.footer-social svg { width: 18px; height: 18px; }

/* ── App store badges ────────────────────────────────────────────────────── */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px; background: var(--ink);
  border: 1px solid rgba(255,255,255,0.18); color: var(--white); border-radius: 12px; padding: 9px 16px;
  transition: border-color 0.15s, transform 0.15s;
}
.store-badge:hover { border-color: rgba(255,255,255,0.4); transform: translateY(-1px); }
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge .sb-small { font-size: 10px; letter-spacing: 0.04em; opacity: 0.8; line-height: 1.2; }
.store-badge .sb-big { font-size: 16px; font-weight: 700; line-height: 1.1; }
.store-badge.on-light { background: var(--ink); color: var(--white); }

/* ── Trust / stat strip ──────────────────────────────────────────────────── */
.stat-strip { background: var(--bg); border-block: 1px solid var(--border); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 36px; }
.stat { text-align: center; }
.stat .num { font-size: clamp(28px, 3vw, 40px); font-weight: 800; color: var(--indigo); letter-spacing: -0.03em; line-height: 1; }
.stat .lbl { font-size: 14px; color: var(--sub); font-weight: 500; margin-top: 8px; }
.stat + .stat { border-left: 1px solid var(--border); }

/* ── Section variants ────────────────────────────────────────────────────── */
.bg-gray { background: var(--bg); }
.bg-tint { background: var(--indigo-light); }
.bg-panel { background: var(--panel); }
.on-dark-section { background: var(--ink); color: var(--white); }
.on-dark-section .lede, .on-dark-section p { color: #C7CAD8; }
.on-gradient { background: var(--grad-indigo); color: var(--white); }
.on-gradient-dark { background: var(--grad-dark); color: var(--white); }

/* ── Checklist ───────────────────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.check-list .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--green-light); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.check-list .ck svg { width: 12px; height: 12px; color: var(--green); }
.check-list.on-dark .ck { background: rgba(18,160,92,0.2); }

/* ── Accordion ───────────────────────────────────────────────────────────── */
.accordion { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--white); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; text-align: left; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.acc-head:hover { color: var(--indigo); }
.acc-icon { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--indigo-light); display: grid; place-items: center; transition: transform 0.25s; }
.acc-icon svg { width: 13px; height: 13px; color: var(--indigo); }
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.acc-body-inner { padding: 0 24px 24px; font-size: 15.5px; color: var(--ink-soft); line-height: 1.65; }

/* ── Device mockups ──────────────────────────────────────────────────────── */
.phone {
  width: 300px; flex-shrink: 0; border-radius: 42px; background: var(--ink); padding: 11px;
  box-shadow: var(--sh-device); position: relative;
}
.phone-screen { border-radius: 32px; overflow: hidden; background: var(--white); position: relative; aspect-ratio: 300 / 650; }
.phone .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 16px; background: #0A0A0A; z-index: 20; }
.phone-tilt { transform: perspective(1600px) rotateY(-14deg) rotateX(3deg); }

.laptop { width: 100%; max-width: 640px; }
.laptop-screen { background: var(--ink); border-radius: 16px 16px 0 0; padding: 12px 12px 0; box-shadow: var(--sh-device); }
.laptop-bezel { background: var(--white); border-radius: 8px 8px 0 0; overflow: hidden; aspect-ratio: 16 / 10.2; }
.laptop-base { height: 16px; background: linear-gradient(180deg, #c9ccd6, #a9adba); border-radius: 0 0 12px 12px; position: relative; }
.laptop-base::after { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 86px; height: 6px; background: #8b8fa0; border-radius: 0 0 7px 7px; }

/* ── Image placeholder (branded gradient art + handoff caption) ──────────── */
.img-ph {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--indigo-light) center/cover no-repeat;
  background-image: url(img/ph-light.png);
  border: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: flex-start;
  min-height: 280px; padding: 14px;
}
.img-ph .ph-label {
  font-family: var(--mono); font-size: 11px; line-height: 1.35; color: var(--ink-soft);
  background: rgba(255,255,255,0.82); backdrop-filter: blur(6px);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 6px 10px; max-width: 92%;
}
.img-ph.dark { background-color: var(--ink); background-image: url(img/ph-dark.png); border-color: var(--ink-soft); }
.img-ph.dark .ph-label { background: rgba(26,29,46,0.7); border-color: var(--ink-soft); color: var(--faint); }
.img-ph.alt { background-image: url(img/ph-light2.png); }

/* ── Conversation screen mockup (recreates app Shared Conversation) ──────── */
.conv { display: flex; flex-direction: column; height: 100%; font-family: var(--font); background: var(--bg); }
.conv-status { display: flex; align-items: center; justify-content: space-between; padding: 30px 22px 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.conv-status .mono { font-size: 11px; }
.conv-bar { display: flex; align-items: center; gap: 8px; padding: 8px 18px 12px; }
.conv-bar .seg { display: flex; align-items: center; gap: 6px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-full); padding: 5px 11px; font-size: 11px; font-weight: 700; color: var(--ink); }
.conv-bar .seg .mono { color: var(--sub); font-size: 10px; }
.conv-half { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; }
.conv-half.provider { background: var(--white); }
.conv-half.patient { background: var(--indigo); }
.conv-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.conv-half.provider .conv-tag { color: var(--indigo); }
.conv-half.patient .conv-tag { color: rgba(255,255,255,0.85); }
.conv-orig { font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.conv-half.patient .conv-orig { color: var(--white); }
.conv-trans { font-size: 12px; font-style: italic; line-height: 1.4; }
.conv-half.provider .conv-trans { color: var(--sub); }
.conv-half.patient .conv-trans { color: rgba(255,255,255,0.75); }
.conv-mic { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.conv-mic .mic-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.conv-half.provider .mic-btn { background: var(--indigo); }
.conv-half.patient .mic-btn { background: var(--white); }
.conv-mic .mic-btn svg { width: 20px; height: 20px; }
.conv-mic-label { font-size: 11px; font-weight: 600; }
.conv-half.provider .conv-mic-label { color: var(--sub); }
.conv-half.patient .conv-mic-label { color: rgba(255,255,255,0.8); }
.conv-wave { display: flex; align-items: center; gap: 2.5px; height: 16px; }
.conv-wave span { width: 2.5px; border-radius: 2px; background: currentColor; animation: convwave 0.9s ease-in-out infinite; }
@keyframes convwave { 0%,100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
.conv-divider { height: 1px; background: var(--border); }

/* Floating glass translation card (used on photo hero) */
.glass-card {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--r-lg); box-shadow: var(--sh-float); padding: 18px 20px;
}

/* ── Portal dashboard mockup (recreates portal Dashboard) ────────────────── */
.portal { font-family: var(--font); background: var(--bg); height: 100%; overflow: hidden; font-size: 12px; color: var(--ink); }
.portal-bar { background: var(--white); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; }
.portal-bar .wordmark { font-size: 16px; }
.portal-tabs { display: flex; gap: 2px; }
.portal-tab { font-size: 11.5px; font-weight: 600; color: var(--sub); padding: 6px 11px; border-radius: 7px; }
.portal-tab.active { color: var(--indigo); background: var(--indigo-light); }
.portal-body { padding: 16px 18px; }
.portal-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.portal-kpi { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.portal-kpi .k-lbl { font-size: 8.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sub); }
.portal-kpi .k-num { font-family: var(--mono); font-size: 21px; font-weight: 800; letter-spacing: -0.03em; margin-top: 5px; }
.portal-kpi .k-num.indigo { color: var(--indigo); }
.portal-kpi .k-num.green { color: var(--green); }
.portal-panel { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.portal-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.portal-panel-head .pp-t { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.portal-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.portal-row:last-child { border-bottom: none; }
.portal-row .pr-lang { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--indigo); background: var(--indigo-light); border-radius: 6px; padding: 3px 7px; }
.portal-row .pr-name { font-weight: 700; font-size: 12px; flex: 1; }
.portal-row .pr-meta { font-family: var(--mono); font-size: 10px; color: var(--sub); }

/* ── Reveal on scroll ────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-right .nav-desktop-only { display: none; }
  .nav-toggle { display: flex; }
  .section { padding-block: 64px; }
  .section-sm { padding-block: 48px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat { padding: 20px 0; }
  .stat:nth-child(2n) { border-left: 1px solid var(--border); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: 56px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .card { padding: 22px; }
}
