/* webapp/public/assets/css/app.css
   Layered alongside Tailwind (CDN in dev, compiled in production).
   Keep custom rules minimal — prefer utility classes inside templates. */

:root {
    color-scheme: light;
}

code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

/* Auto-dismiss flashes after a beat. JS handles the actual removal —
   this gives a soft exit transition. */
#flashes > div {
    transition: opacity 200ms ease, transform 200ms ease;
}
#flashes > div.is-dismissed {
    opacity: 0;
    transform: translateY(-4px);
}

/* docs/api.md rendered by webapp/app/core/Markdown.php. Tailwind CDN
   doesn't ship the typography plugin, so we style the markdown output
   directly. Scoped under .docs-prose so it doesn't leak. */
.docs-prose h1 { font-size: 1.875rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: rgb(15 23 42); }
.docs-prose h2 { font-size: 1.5rem;   font-weight: 600; margin: 1.5rem 0 0.5rem;  color: rgb(15 23 42); border-bottom: 1px solid rgb(226 232 240); padding-bottom: 0.35rem; }
.docs-prose h3 { font-size: 1.15rem;  font-weight: 600; margin: 1.25rem 0 0.5rem; color: rgb(30 41 59); }
.docs-prose p  { margin: 0.5rem 0; line-height: 1.65; color: rgb(51 65 85); }
.docs-prose hr { border: 0; border-top: 1px solid rgb(226 232 240); margin: 1.5rem 0; }
.docs-prose code {
    background: rgb(241 245 249);
    padding: 0.1rem 0.35rem;
    border-radius: 0.25rem;
    font-size: 0.92em;
    color: rgb(15 23 42);
}
.docs-prose pre {
    background: rgb(15 23 42);
    color: rgb(241 245 249);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 0.75rem 0;
    font-size: 0.875rem;
    line-height: 1.55;
}
.docs-prose pre code { background: transparent; color: inherit; padding: 0; }
.docs-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}
.docs-prose th, .docs-prose td {
    border: 1px solid rgb(226 232 240);
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.docs-prose th { background: rgb(248 250 252); font-weight: 600; }
.docs-prose strong { color: rgb(15 23 42); }
.docs-prose h2, .docs-prose h3 { scroll-margin-top: 84px; }

/* ─── API REFERENCE PAGE (/developers/docs) ──────────────────────────── */
#screen-docs { max-width: none; }
.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; align-items: start; }
.docs-toc { position: sticky; top: 84px; align-self: start; }
.docs-toc-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-400); margin-bottom: 12px; }
.docs-toc nav { display: flex; flex-direction: column; border-left: 1px solid var(--ink-200); max-height: calc(100vh - 140px); overflow-y: auto; }
.docs-toc a { font-size: 12.5px; color: var(--ink-500); padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.35; transition: color .15s, border-color .15s; }
.docs-toc a:hover { color: var(--ink-900); }
.docs-toc a.lvl-3 { padding-left: 26px; font-size: 12px; color: var(--ink-400); }
.docs-toc a.active { color: var(--brand-600); border-left-color: var(--brand-600); font-weight: 600; }
@media (max-width: 1024px) {
  /* minmax(0,1fr) lets the column shrink below content width so long <pre>
     code blocks scroll internally instead of blowing out / getting clipped. */
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 600px) {
  .docs-prose.vc-card { padding: 18px !important; }
  .docs-prose h1 { font-size: 1.4rem; }
  .docs-prose h2 { font-size: 1.2rem; }
  .docs-prose table { display: block; overflow-x: auto; white-space: nowrap; }
}
/* Long inline code / paths shouldn't force the column wider. */
.docs-prose :not(pre) > code { overflow-wrap: anywhere; word-break: break-word; }

/* ════════════════════════════════════════════════════════════════════
   VisaCheki design system — ported verbatim from the approved UI mockup
   (visacheki_ui.html). Component classes used by the app shell and the
   converted views. Tailwind remains loaded for not-yet-converted pages.
   ════════════════════════════════════════════════════════════════════ */
:root {
  /* Premium Corporate Blue/Slate Palette */
  --brand-50: #EEFBF6;
  --brand-100: #D4F4E6;
  --brand-400: #34D399;
  --brand-500: #1D9E75;
  --brand-600: #00966D;
  --brand-700: #007855;
  --brand-950: #002B20;

  --accent-50: #EEFBF6;
  --accent-100: #D4F4E6;
  --accent-500: #00BA88;
  --accent-600: #00966D;
  --accent-700: #007855;
  --accent-800: #045D45;

  --ink-950: #0F172A;
  --ink-900: #1E293B;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748B;
  --ink-400: #94A3B8;
  --ink-300: #CBD5E1;
  --ink-200: #E2E8F0;
  --ink-100: #F1F5F9;
  --ink-50: #F8FAFC;
  --bg: #F8FAFC;

  --amber-50: #FFFBEB;
  --amber-100: #FEF3C7;
  --amber-600: #D97706;
  --amber-700: #B45309;
  --amber-800: #92400E;
  --amber-900: #78350F;

  --rose-50: #FFF1F2;
  --rose-100: #FFE4E6;
  --rose-600: #E11D48;
  --rose-700: #BE123C;

  /* Sharper Enterprise Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
}
body.vc-app {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
.vc-app button { font-family: inherit; cursor: pointer; transition: all 0.2s; }
.vc-app button:active { transform: scale(0.98); }
.vc-app input, .vc-app select { font-family: inherit; }
.vc-app ::selection { background: rgba(0,186,136,0.15); }
/* Only strip underlines — do NOT force color:inherit, or it overrides
   Tailwind text-* utilities (e.g. text-white on dark link-buttons). */
.vc-app a { text-decoration: none; }

/* ─── GLOBAL CONTROL LAYER ────────────────────────────────────────────
   Restyles native form controls and the most common Tailwind container
   patterns to the mockup design on EVERY page, overriding Tailwind CDN
   utilities via higher-specificity .vc-app selectors. This is what makes
   forms/inputs/buttons consistent app-wide without rewriting every view. */
.vc-app input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=file]):not([type=submit]):not([type=button]):not([type=hidden]),
.vc-app select,
.vc-app textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-950);
  line-height: 1.4;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-feature-settings: "tnum";
}
.vc-app textarea { min-height: 96px; resize: vertical; }
.vc-app select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}
.vc-app input:focus, .vc-app select:focus, .vc-app textarea:focus {
  border-color: var(--accent-500);
  box-shadow: 0 0 0 3px var(--accent-100);
}
.vc-app input::placeholder, .vc-app textarea::placeholder { color: var(--ink-400); font-weight: 400; }
.vc-app input[type=radio], .vc-app input[type=checkbox] {
  width: 16px; height: 16px; accent-color: var(--brand-600); cursor: pointer; flex-shrink: 0;
}
.vc-app input[readonly] { background: var(--ink-50); color: var(--ink-700); }

/* Reusable component primitives for converted views */
.vc-card { background:#fff; border:1px solid var(--ink-200); border-radius:var(--radius-xl); padding:24px; box-shadow:0 1px 2px rgba(15,23,42,0.03); }
.vc-card-sm { background:#fff; border:1px solid var(--ink-200); border-radius:var(--radius-lg); padding:16px; }
.field { display:block; margin-bottom:16px; }
.field:last-child { margin-bottom:0; }
.field > .label-strong { margin-bottom:8px; }
.hint { font-size:12px; color:var(--ink-500); margin-top:6px; display:block; }
.sub-grid { display:grid; grid-template-columns:96px 96px 1fr auto; gap:12px; align-items:end; }
@media (max-width:560px){
  .sub-grid { grid-template-columns:1fr 1fr; }
  .sub-grid > div:nth-of-type(3) { grid-column:1 / -1; }  /* email field */
  .sub-grid > button { grid-column:1 / -1; width:100%; }
}
.btn-brand {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:var(--brand-600); color:var(--btn-ink, #fff); border:none;
  border-radius:var(--radius-md); padding:12px 18px;
  font-size:14px; font-weight:600; cursor:pointer;
  box-shadow:0 2px 4px rgba(16,42,67,0.15); transition:background .2s;
}
.btn-brand:hover { background:var(--brand-500); }
.btn-ghost {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:#fff; color:var(--ink-700); border:1px solid var(--ink-300);
  border-radius:var(--radius-md); padding:11px 16px; font-size:13px; font-weight:600; cursor:pointer;
  transition:all .15s;
}
.btn-ghost:hover { background:var(--ink-50); border-color:var(--ink-400); }
@keyframes vcspin { to { transform: rotate(360deg); } }
.vc-spinner { display:inline-block; width:18px; height:18px; border-radius:50%; border:2px solid var(--ink-200); border-top-color:var(--brand-600); animation:vcspin .7s linear infinite; vertical-align:middle; margin-right:8px; }
/* App-friendly assessment preloader (overlay modal) */
.vc-loader-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(15, 23, 42, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: vc-loader-fade .2s ease; }
.vc-loader-overlay.hidden { display: none; }
.vc-loader-card { width: 100%; max-width: 340px; background: #fff; border-radius: var(--radius-lg); padding: 32px 28px; text-align: center; box-shadow: 0 24px 64px rgba(2, 6, 23, .35); animation: vc-loader-rise .28s cubic-bezier(.4, 0, .2, 1); }
.vc-loader-orb { position: relative; width: 74px; height: 74px; margin: 0 auto 20px; }
.vc-loader-orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--brand-500); animation: vcspin 1s linear infinite; }
.vc-loader-orb-ring.two { inset: 9px; border-top-color: var(--accent-500); animation-duration: 1.6s; animation-direction: reverse; }
.vc-loader-orb-core { position: absolute; inset: 19px; border-radius: 50%; background: var(--brand-50); display: flex; align-items: center; justify-content: center; color: var(--brand-600); font-size: 24px; }
.vc-loader-title { font-size: 16px; font-weight: 700; color: var(--ink-950); margin-bottom: 6px; }
.vc-loader-msgs { position: relative; height: 18px; margin-bottom: 20px; }
.vc-loader-msgs span { position: absolute; inset: 0; font-size: 13px; color: var(--ink-500); opacity: 0; animation: vc-loader-msg 9s infinite; }
.vc-loader-msgs span:nth-child(1) { animation-delay: 0s; }
.vc-loader-msgs span:nth-child(2) { animation-delay: 3s; }
.vc-loader-msgs span:nth-child(3) { animation-delay: 6s; }
.vc-loader-track { height: 4px; border-radius: 4px; background: var(--ink-100); overflow: hidden; }
.vc-loader-track > i { display: block; height: 100%; width: 40%; border-radius: 4px; background: var(--brand-500); animation: vc-loader-bar 1.4s ease-in-out infinite; }
@keyframes vc-loader-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vc-loader-rise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vc-loader-msg { 0% { opacity: 0; transform: translateY(5px); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; transform: translateY(-5px); } }
@keyframes vc-loader-bar { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.page-head { margin-bottom:24px; }
.page-head h1 { font-size:26px; font-weight:700; letter-spacing:-0.02em; color:var(--ink-950); margin-bottom:8px; line-height:1.15; }
.page-head p { font-size:14px; color:var(--ink-500); line-height:1.55; max-width:640px; }
.crumbs { font-size:13px; color:var(--ink-400); margin-bottom:16px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.crumbs a { color:var(--ink-500); }
.crumbs a:hover { color:var(--ink-900); }
.pill { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; padding:3px 9px; border-radius:var(--radius-sm); letter-spacing:0.02em; }
.pill.green { background:var(--accent-50); color:var(--accent-700); border:1px solid var(--accent-100); }
.pill.amber { background:var(--amber-50); color:var(--amber-800); border:1px solid var(--amber-100); }
.pill.rose  { background:var(--rose-50);  color:var(--rose-700);  border:1px solid var(--rose-100); }
.pill.slate { background:var(--ink-100);  color:var(--ink-600);   border:1px solid var(--ink-200); }
.vc-table { width:100%; border-collapse:collapse; font-size:13px; background:#fff; border:1px solid var(--ink-200); border-radius:var(--radius-lg); overflow:hidden; }
.vc-table th { text-align:left; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.06em; color:var(--ink-500); background:var(--ink-50); padding:10px 14px; border-bottom:1px solid var(--ink-200); }
.vc-table td { padding:12px 14px; border-bottom:1px solid var(--ink-100); color:var(--ink-700); }
.vc-table tr:last-child td { border-bottom:none; }
.dl-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px 32px; }
.dl-grid .dl-key { font-size:11px; font-weight:600; color:var(--ink-500); text-transform:uppercase; letter-spacing:0.06em; }
.dl-grid .dl-val { font-size:15px; font-weight:600; color:var(--ink-950); margin-top:3px; }
@media (max-width:600px){ .dl-grid{ grid-template-columns:1fr; gap:14px; } }

/* AT A GLANCE — icon-row spec list (used by requirement-card) */
.glance-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 28px; }
.glance-row { display:flex; align-items:center; gap:11px; padding:11px 0; border-bottom:1px solid var(--ink-100); }
.glance-ico { width:30px; height:30px; flex-shrink:0; border-radius:var(--radius-md); background:var(--brand-50); border:1px solid var(--brand-100); color:var(--brand-600); display:flex; align-items:center; justify-content:center; font-size:15px; }
.glance-label { flex:1; min-width:0; font-size:12.5px; color:var(--ink-500); }
.glance-value { font-size:14px; font-weight:600; color:var(--ink-950); white-space:nowrap; }
.glance-row .pill { flex-shrink:0; }
@media (max-width:760px){ .glance-grid { grid-template-columns:1fr; } }
/* Global mobile collapses — override inline grid-template styles (hence
   !important) so 2-col forms and stat grids never crowd on small screens. */
@media (max-width:600px){
  .port-form-grid { grid-template-columns:1fr !important; }
  .pt-stats       { grid-template-columns:repeat(2,1fr) !important; }
  .docs-list      { grid-template-columns:1fr !important; }
}
@media (max-width:1023px){ .elig-results, #screen-results-inner, .req-grid{ grid-template-columns:1fr !important; } }

/* ─── TAILWIND COMPAT BRIDGE ──────────────────────────────────────────
   Keeps any not-yet-hand-converted view on-brand: remap the old emerald
   accent to the VisaCheki green, and give the common rounded-xl/white
   card pattern the mockup's softer border + shadow. */
.vc-app .text-emerald-600, .vc-app .text-emerald-700, .vc-app .text-emerald-800,
.vc-app .text-emerald-900 { color: var(--brand-600) !important; }
.vc-app .bg-emerald-600, .vc-app .bg-emerald-700 { background-color: var(--brand-600) !important; }
.vc-app .bg-emerald-500 { background-color: var(--accent-500) !important; }
.vc-app .bg-emerald-50  { background-color: var(--brand-50)  !important; }
.vc-app .border-emerald-200, .vc-app .border-emerald-300 { border-color: var(--brand-100) !important; }
.vc-app .hover\:bg-emerald-700:hover { background-color: var(--brand-700) !important; }
.vc-app .ring-emerald-500, .vc-app .focus\:ring-emerald-500:focus { --tw-ring-color: var(--accent-500) !important; }

/* CONFIDENCE RING — radial gauge on the requirements rail */
.conf-ring { position: relative; width: 130px; height: 130px; margin: 0 auto; }
.conf-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.conf-ring-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; color: var(--ink-950); letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.conf-ring-text small { font-size: 13px; font-weight: 600; color: var(--ink-400); margin-left: 1px; }

/* TOOL TILES — the requirements-page "what next" grid */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tool-tile {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px; background: #fff; border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tool-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(15,23,42,0.12); border-color: var(--ink-300); }
.tool-tile-ico {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: var(--radius-md);
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-600);
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}
.tool-tile-body { min-width: 0; }
.tool-tile-title { font-size: 13px; font-weight: 600; color: var(--ink-950); display: flex; align-items: center; gap: 6px; }
.tool-tile-title .ti-arrow-narrow-right { color: var(--ink-300); font-size: 15px; }
.tool-tile:hover .tool-tile-title .ti-arrow-narrow-right { color: var(--brand-600); }
.tool-tile-desc { font-size: 12px; color: var(--ink-500); line-height: 1.45; margin-top: 3px; }
@media (max-width:880px){ .tool-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .tool-grid { grid-template-columns: 1fr; } }

/* ─── AUTH LAYOUT (login / register) ─────────────────────────────────── */
.vc-auth { background: var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }

.auth-aside {
  background: var(--brand-950);
  color: #fff; padding: 48px 44px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-aside::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0,186,136,0.28), transparent 70%);
}
.auth-logo { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; }
.auth-logo .mk {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--brand-600); color: #fff; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.auth-logo .nm { font-size: 19px; font-weight: 700; color: #fff; }
.auth-logo .nm em { color: var(--brand-400); font-style: normal; }

.auth-aside-body { margin: auto 0; position: relative; z-index: 1; max-width: 420px; }
.auth-aside-body h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; }
.auth-aside-body p { font-size: 15px; color: #BFE6D8; line-height: 1.6; margin-bottom: 26px; }
.auth-points { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.auth-points li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #E6F4EE; }
.auth-points li i { color: var(--brand-400); font-size: 18px; flex-shrink: 0; }
.auth-aside-foot { position: relative; z-index: 1; font-size: 12px; color: rgba(255,255,255,0.45); }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card-wrap { width: 100%; max-width: 384px; }
.auth-logo-mobile { display: none; align-items: center; gap: 10px; justify-content: center; margin-bottom: 28px; }
.auth-logo-mobile .mk {
  width: 34px; height: 34px; border-radius: var(--radius-md);
  background: var(--brand-600); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.auth-logo-mobile .nm { font-size: 18px; font-weight: 700; color: var(--ink-950); }

.auth-head { margin-bottom: 22px; }
.auth-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-950); }
.auth-head p { font-size: 14px; color: var(--ink-500); margin-top: 6px; }
.auth-form { padding: 24px; }
.auth-alt { margin-top: 18px; text-align: center; font-size: 13px; color: var(--ink-500); }
.auth-alt a { color: var(--brand-600); font-weight: 600; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 42px !important; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; background: none; cursor: pointer;
  color: var(--ink-400); display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.pw-toggle:hover { color: var(--ink-700); }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-logo-mobile { display: flex; }
  .auth-main { padding: 32px 20px; align-items: flex-start; }
  .auth-card-wrap { margin: 0 auto; }
  .auth-head { text-align: center; }
}

/* ─── SHARED COMPONENTS ─────────────────────────────── */
.eyebrow-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.section-head {
  font-size: 12px; font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.label-up { font-size: 11px; font-weight: 600; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 8px; }
.label-strong { font-size: 12px; font-weight: 600; color: var(--ink-700); display: block; margin-bottom: 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 10px; }

/* ELEVATED CARDS */
.action-card, .score-card-premium, .route-tile, .dev-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
}
.action-card:hover, .score-card-premium:hover, .route-tile:hover, .dev-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(15, 23, 42, 0.12), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  border-color: var(--ink-300);
}

/* ACTION CARD */
.action-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 24px;
  color: var(--ink-950);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
  border: 1px solid var(--ink-200);
  margin-bottom: 32px;
  position: relative;
}
.action-stack { position: relative; display: flex; flex-direction: column; gap: 16px; }
.action-label {
  font-size: 12px; font-weight: 600;
  color: var(--ink-700);
  display: block;
  margin-bottom: 6px;
}
.action-select-wrap { position: relative; }
.action-select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-md);
  padding: 12px 42px 12px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-950);
  appearance: none; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.action-select:focus { border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.action-select-wrap i {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400); pointer-events: none; font-size: 16px;
}
.action-btn {
  width: 100%;
  background: var(--brand-600); color: #fff; border: none;
  border-radius: var(--radius-md); padding: 14px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 2px 4px rgba(16, 42, 67, 0.15);
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.action-btn:hover { background: var(--brand-500); }

/* ROUTES GRID */
.routes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.route-tile {
  padding: 16px; border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  background: #ffffff;
  cursor: pointer; transition: all 0.2s; position: relative;
  display: block;
}
.route-tile:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border-color: var(--ink-300); }
.route-tile:active { background: var(--ink-50); }
.route-tile-flag { font-size: 24px; display: block; margin-bottom: 10px; }
.route-tile-name { font-size: 14px; font-weight: 600; color: var(--ink-950); }
.route-tile-code { font-size: 11px; font-weight: 500; color: var(--ink-500); margin-top: 4px; }
.route-tile-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 600; padding: 2px 6px;
  border-radius: var(--radius-sm); letter-spacing: 0.02em;
}
.route-tile-badge.req { background: var(--rose-50); color: var(--rose-700); border: 1px solid var(--rose-100); }
.route-tile-badge.free { background: var(--accent-50); color: var(--accent-700); border: 1px solid var(--accent-100); }
.route-tile-badge.evisa { background: var(--amber-50); color: var(--amber-800); border: 1px solid var(--amber-100); }

/* PROGRESS */
.progress-segments { display: flex; gap: 6px; margin-bottom: 24px; }
.progress-seg { flex: 1; height: 4px; border-radius: 2px; background: var(--ink-200); }
.progress-seg.done { background: var(--accent-500); }

/* CHECK HEADING */
.check-heading { margin-bottom: 24px; }
.check-heading h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.check-heading p { font-size: 14px; color: var(--ink-500); line-height: 1.5; }

/* CHOICE BUTTONS */
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-btn {
  background: #ffffff; border: 1px solid var(--ink-300);
  border-radius: var(--radius-lg); padding: 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  cursor: pointer; color: var(--ink-700); transition: all 0.2s;
}
.choice-btn:hover { border-color: var(--ink-400); }
.choice-btn.selected { border-color: var(--accent-500); background: var(--accent-50); color: var(--accent-700); box-shadow: inset 0 0 0 1px var(--accent-500); }
.choice-btn i { font-size: 20px; }
.choice-btn span { font-size: 13px; font-weight: 600; }
/* Radio-backed choice button: hide the native input, light up on :checked. */
.choice-btn input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.vc-app .choice-btn:has(input:checked) {
  border-color: var(--accent-500); background: var(--accent-50);
  color: var(--accent-700); box-shadow: inset 0 0 0 1px var(--accent-500);
}

/* BIG INPUT */
.big-input-wrap { position: relative; }
.big-input {
  width: 100%; background: #ffffff; border: 1px solid var(--ink-300);
  border-radius: var(--radius-lg); padding: 14px 16px;
  font-size: 16px; font-weight: 600;
  color: var(--ink-950); font-feature-settings: "tnum";
  transition: all 0.2s;
}
.big-input:focus { border-color: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); outline: none; }
.big-input-prefix {
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400); font-size: 16px; font-weight: 600;
}
.vc-app input.big-input.with-prefix { padding-left: 34px !important; }

/* INSIGHT */
.insight {
  padding: 14px; border-radius: var(--radius-lg);
  background: var(--brand-50); border: 1px solid var(--brand-100);
  display: flex; gap: 12px;
}
.insight-icon {
  width: 24px; height: 24px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--brand-600); font-size: 16px;
}
.insight-text { font-size: 13px; line-height: 1.5; color: var(--brand-700); }
.insight-text strong { color: var(--brand-950); font-weight: 600; }

/* BUTTONS */
.btn-dark {
  width: 100%; background: var(--ink-950); color: #fff; border: none;
  border-radius: var(--radius-md); padding: 14px; font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 6px -1px rgba(15,23,42,0.1);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-dark:hover { background: var(--ink-900); }
.btn-text {
  width: 100%; background: none; border: none;
  color: var(--ink-500); font-size: 13px; font-weight: 500;
  padding: 12px; margin-top: 4px;
}

/* SCORE RING */
.score-card-premium {
  background: #fff; border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl); padding: 32px 24px; text-align: center;
  margin-bottom: 24px;
}
.score-ring { position: relative; width: 140px; height: 140px; margin: 0 auto 16px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring-track { color: var(--ink-100); }
.score-ring-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink-950);
  font-feature-settings: "tnum";
}
.score-ring-text small { font-size: 16px; font-weight: 600; color: var(--ink-400); margin-left: 2px; }
.verdict-title { font-size: 20px; font-weight: 700; color: var(--ink-950); margin-bottom: 4px; }
.verdict-sub { font-size: 13px; color: var(--ink-500); }

/* WARN */
.warn {
  display: flex; gap: 12px; padding: 14px; border-radius: var(--radius-lg);
  background: var(--amber-50); border: 1px solid var(--amber-100);
}
.warn i { color: var(--amber-600); font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.warn-title { font-size: 13px; font-weight: 600; color: var(--amber-900); margin-bottom: 4px; }
.warn-text { font-size: 13px; color: var(--amber-800); line-height: 1.5; }

/* RISK ROWS */
.risk-row {
  background: #fff; border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg); padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.risk-info { display: flex; align-items: center; gap: 12px; }
.risk-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.risk-icon.med { background: var(--amber-50); color: var(--amber-700); border: 1px solid var(--amber-100); }
.risk-icon.ok { background: var(--accent-50); color: var(--accent-700); border: 1px solid var(--accent-100); }
.risk-icon.high { background: var(--rose-50); color: var(--rose-700); border: 1px solid var(--rose-100); }
.risk-title { font-size: 13px; font-weight: 600; color: var(--ink-950); }
.risk-sub { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.risk-tag { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: var(--radius-sm); letter-spacing: 0.02em; }
.risk-tag.med { background: var(--amber-100); color: var(--amber-800); }
.risk-tag.ok { background: var(--accent-100); color: var(--accent-800); }
.risk-tag.high { background: var(--rose-100); color: var(--rose-700); }

/* RECS */
.recs-block { padding: 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--ink-200); }
.recs-block h4 { font-size: 14px; font-weight: 600; color: var(--ink-950); margin-bottom: 14px; }
.rec-line { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-700); margin-bottom: 12px; }
.rec-line:last-child { margin-bottom: 0; }
.rec-line i { flex-shrink: 0; color: var(--accent-500); font-size: 16px; margin-top: 2px; }
.recs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 700px) { .recs-grid { grid-template-columns: 1fr; } }

/* DEV PORTAL */
.dev-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px; }
.key-row { display: flex; align-items: center; gap: 8px; }
.key-val {
  flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 13px;
  color: var(--ink-950); background: var(--ink-50);
  border: 1px solid var(--ink-200); border-radius: var(--radius-md);
  padding: 10px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.icon-btn {
  width: 40px; height: 40px; border: 1px solid var(--ink-300);
  border-radius: var(--radius-md); background: #fff; color: var(--ink-600);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.icon-btn:hover { background: var(--ink-50); border-color: var(--ink-400); }
.usage-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ink-200); }
.usage-cell { text-align: center; padding: 0 6px; }
.usage-cell + .usage-cell { border-left: 1px solid var(--ink-200); }
.usage-num { font-size: 20px; font-weight: 700; color: var(--ink-950); }
.usage-num.accent { color: var(--accent-600); }
.usage-label { font-size: 11px; font-weight: 500; color: var(--ink-500); margin-top: 4px; }

.ep-list { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.ep-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ink-200); transition: background 0.15s; }
.ep-row:hover { background: var(--ink-50); }
.ep-row:last-child { border-bottom: none; }
.mth { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: var(--radius-sm); min-width: 46px; text-align: center; }
.mget { background: var(--brand-100); color: var(--brand-700); }
.mpost { background: var(--accent-100); color: var(--accent-700); }
.ep-path { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--ink-950); flex: 1; }
.ep-row i.arr { color: var(--ink-400); font-size: 14px; }

.code-block {
  background: var(--ink-950); border-radius: var(--radius-lg); padding: 16px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  line-height: 1.6; overflow-x: auto; color: #E2E8F0;
}

/* CHANGELOG */
.cl-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.cl-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cl-route { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-950); }
.cl-route i { color: var(--ink-400); font-size: 14px; }
.cl-flag { font-size: 18px; }
.cl-date { font-size: 12px; color: var(--ink-500); }
.cl-change { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: var(--ink-100); border: 1px solid var(--ink-200); color: var(--ink-700); padding: 2px 8px; border-radius: var(--radius-sm); }
.cl-old { font-size: 13px; color: var(--ink-500); text-decoration: line-through; }
.cl-new-up { font-size: 13px; font-weight: 600; color: var(--amber-700); }
.cl-new-down { font-size: 13px; font-weight: 600; color: var(--accent-600); }

/* ─── APP SHELL — MOBILE LAYOUT (default) ─────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-200);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px; background: var(--brand-600);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.logo-mark i { color: #fff; font-size: 16px; }
/* Carved-tile logo mark (negative-space check) — the SVG carries its own
   gradient tile, so any wrapper background must drop away. */
/* The carved/gradient SVG carries its own tile, so the wrapper must be
   transparent. Scope to each wrapper's parent so this out-specifies the
   later `.vc-footer-brand .mk { background }` etc. — otherwise the wrapper's
   green peeks through the tile's edge inset and reads as a border. */
.logo-mark:has(.logo-tile),
.vc-footer-brand .mk:has(.logo-tile),
.auth-logo .mk:has(.logo-tile),
.auth-logo-mobile .mk:has(.logo-tile) { background: transparent; overflow: visible; }
.logo-mark .logo-tile { width: 32px; height: 32px; display: block; }
.mk .logo-tile { width: 100%; height: 100%; display: block; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { font-size: 16px; font-weight: 700; color: var(--ink-950); }
.header-actions { display: flex; gap: 10px; }
.header-btn {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: #fff; border: 1px solid var(--ink-300);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-700); font-size: 18px; position: relative;
}
.header-btn:hover { background: var(--ink-50); }
/* Unread policy-change count on the bell / Changelog nav. */
.header-badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--rose-600); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; margin-left: 2px;
  border-radius: 8px; background: var(--rose-600); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1; vertical-align: middle;
}

.desktop-nav { display: none; }
.header-cta { display: none; }
.app-shell { display: block; }
.sidebar { display: none; }

.content-area {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
}
/* Body grows to fill, pushing the footer to the absolute bottom on short pages. */
.ca-body { flex: 1 0 auto; min-width: 0; }

.vc-footer { margin: 56px 4px 4px; padding: 0; }
.vc-footer-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px 24px;
}
.vc-footer-brand { display: flex; align-items: center; gap: 11px; }
.vc-footer-brand .mk {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-md);
  background: var(--brand-600); color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.vc-footer-brand .txt { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.vc-footer-brand .nm { font-size: 15px; font-weight: 700; color: var(--ink-900); }
.vc-footer-brand .tag { font-size: 12px; color: var(--ink-400); }
.vc-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.vc-footer-links a { font-size: 13px; color: var(--ink-500); font-weight: 500; transition: color .15s; }
.vc-footer-links a:hover { color: var(--brand-600); }
.vc-footer-meta {
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--ink-100);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; color: var(--ink-400); font-size: 12px;
}
.vc-footer-meta a { color: var(--ink-500); }
.vc-footer-meta a:hover { color: var(--brand-600); }
@media (max-width: 560px){
  .vc-footer-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}
/* Mobile (bottom-nav present): drop the redundant brand + links from the
   app-shell footer, keep just the legal disclaimer centred, and clear the nav. */
@media (max-width: 1023px){
  .content-area .vc-footer { margin-top: 28px; }
  .content-area .vc-footer-top { display: none; }
  .content-area .vc-footer-meta {
    margin-top: 0; padding-top: 0; border-top: none;
    flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 4px; line-height: 1.5;
  }
}

/* STAGGERED ENTRANCE ANIMATIONS */
.screen {
  display: block;
  padding: 24px 20px;
}
.screen > * {
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}
.screen > *:nth-child(1) { animation-delay: 0.05s; }
.screen > *:nth-child(2) { animation-delay: 0.10s; }
.screen > *:nth-child(3) { animation-delay: 0.15s; }
.screen > *:nth-child(4) { animation-delay: 0.20s; }
.screen > *:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero { padding: 16px 0 24px; }
.hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px; }
.hero p { font-size: 15px; color: var(--ink-600); line-height: 1.5; max-width: 380px; }

/* BOTTOM NAV */
.bottomnav {
  position: fixed; left: 14px; right: 14px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 22px;
  padding: 9px 10px;
  display: flex; align-items: center; justify-content: space-around;
  box-shadow: 0 18px 40px -10px rgba(15,23,42,0.45), 0 6px 16px -6px rgba(15,23,42,0.28);
  z-index: 40;
  transition: transform .32s cubic-bezier(.4,0,.2,1), opacity .32s ease;
}
.bottomnav.nav-hidden {
  transform: translateY(200%);
  opacity: 0;
  pointer-events: none;
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; color: var(--ink-500); padding: 8px;
}
.nav-btn.active { color: var(--brand-600); }
.nav-btn i { font-size: 20px; }
.nav-btn span { font-size: 10.5px; font-weight: 500; white-space: nowrap; }
/* Icons-only by default; the active tab expands into a labelled pill */
.bottomnav .nav-btn { border-radius: 999px; transition: background .2s, padding .2s; }
.bottomnav .nav-btn span { display: none; }
.bottomnav .nav-btn.active {
  flex-direction: row; gap: 7px;
  background: var(--brand-50); color: var(--brand-600);
  padding: 8px 14px;
}
.bottomnav .nav-btn.active span { display: inline; font-size: 12px; font-weight: 600; }
/* Center action — "New check" brand circle */
.nav-fab {
  flex: none; width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand-600); color: #fff;
  box-shadow: 0 6px 14px -4px rgba(0,150,109,.5); text-decoration: none;
}
.nav-fab i { font-size: 24px; }

#screen-home { display: flex; flex-direction: column; }
.home-left { order: 1; display: flex; flex-direction: column; gap: 24px; width: 100%; }
.home-right { order: 0; display: none; }
.home-left .hero { order: -1; }
.mobile-only { display: block; }
.results-left, .results-right, .dev-left, .dev-right, .cl-grid { display: flex; flex-direction: column; gap: 16px; }
.desktop-stats { display: none; }

/* ─── DESKTOP LAYOUT (≥ 1024px) ─────────────────────────── */
@media (min-width: 1024px) {
  .topbar {
    padding: 0 32px;
    height: 60px;
    position: fixed; top: 0; left: 0; right: 0;
  }
  .logo-text { font-size: 18px; }
  .header-btn { display: none; }

  .desktop-nav { display: flex; align-items: center; gap: 4px; }
  .desktop-nav-btn {
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: none; border: none;
    font-size: 13px; font-weight: 500;
    color: var(--ink-600);
    display: flex; align-items: center; gap: 6px;
    transition: all 0.2s;
  }
  .desktop-nav-btn:hover { background: var(--ink-100); color: var(--ink-950); }
  .desktop-nav-btn.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
  .desktop-nav-btn i { font-size: 16px; }

  .header-cta {
    padding: 8px 16px;
    background: var(--brand-600); color: var(--btn-ink, #fff); border: none;
    border-radius: var(--radius-md); font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .header-cta:hover { background: var(--brand-500); }

  .bottomnav { display: none; }
  .app-shell { display: flex; margin-top: 60px; min-height: calc(100vh - 60px); }

  .sidebar {
    display: flex; flex-direction: column; width: 240px; flex-shrink: 0;
    background: #fff; border-right: 1px solid var(--ink-200); padding: 24px 16px;
    position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; gap: 4px;
  }
  .sidebar-label {
    font-size: 11px; font-weight: 600; color: var(--ink-500);
    text-transform: uppercase; letter-spacing: 0.08em; padding: 0 12px; margin: 16px 0 8px;
  }
  .sidebar-label:first-child { margin-top: 0; }
  .sidebar-btn {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: var(--radius-md); background: none; border: none;
    font-size: 13px; font-weight: 500; color: var(--ink-700);
    text-align: left; width: 100%; transition: all 0.15s;
  }
  .sidebar-btn:hover { background: var(--ink-50); color: var(--ink-950); }
  .sidebar-btn.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
  .sidebar-btn i { font-size: 16px; flex-shrink: 0; }
  .sidebar-divider { height: 1px; background: var(--ink-200); margin: 12px 0; }
  .sidebar-footer {
    margin-top: auto; padding: 16px; background: var(--ink-50);
    border-radius: var(--radius-lg); border: 1px solid var(--ink-200);
  }
  .sidebar-footer-title { font-size: 13px; font-weight: 600; color: var(--ink-950); margin-bottom: 4px; }
  .sidebar-footer-sub { font-size: 12px; color: var(--ink-500); line-height: 1.4; margin-bottom: 12px; }
  .sidebar-footer-btn {
    display: block; text-align: center;
    width: 100%; background: #fff; color: var(--ink-950); border: 1px solid var(--ink-300);
    border-radius: var(--radius-md); padding: 8px; font-size: 12px; font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  }
  .sidebar-footer-btn:hover { background: var(--ink-50); border-color: var(--ink-400); }

  .content-area {
    flex: 1; max-width: none; padding: 40px; display: flex; flex-direction: column;
  }
  .screen { padding: 0; max-width: 960px; width: 100%; }

  #screen-home { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
  #screen-home .home-right { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 24px; }
  #screen-home .home-left { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 32px; }
  .mobile-only { display: none; }

  .hero { padding: 0 0 8px; }
  .hero h1 { font-size: 36px; line-height: 1.1; margin-bottom: 16px; }

  .routes-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .desktop-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
  .stat-card { background: #fff; border: 1px solid var(--ink-200); border-radius: var(--radius-lg); padding: 16px; }
  .stat-card-icon {
    width: 32px; height: 32px; background: var(--brand-50); border: 1px solid var(--brand-100);
    border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px; color: var(--brand-600); font-size: 16px;
  }
  .stat-card-val { font-size: 24px; font-weight: 700; color: var(--ink-950); margin-bottom: 4px; }
  .stat-card-label { font-size: 12px; color: var(--ink-500); font-weight: 500; }

  #screen-check, #screen-eligibility {
    max-width: 1024px; background: #fff; border-radius: var(--radius-xl);
    padding: 40px; border: 1px solid var(--ink-200); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  }
  #screen-eligibility { max-width: 900px; }

  #screen-results { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
  #screen-developers { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  /* Grid/flex children must be allowed to shrink so wide inner content
     (code blocks, tables, long monospace paths) scrolls instead of
     blowing out the column. */
  .home-left, .home-right, .results-left, .results-right,
  .dev-left, .dev-right { min-width: 0; }
  .dev-right .docs-prose { overflow-x: auto; }
  #screen-changelog { max-width: 800px; }
  .cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* Collapsible disclosure (e.g. report outcome form) */
.disclosure summary { list-style: none; cursor: pointer; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::marker { content: ""; }
.disclosure-caret { transition: transform .2s ease; }
.disclosure[open] .disclosure-caret { transform: rotate(180deg); }
