/* ============================================================
   Giguu Stakeholders — same tokens and neo-brutalist look as the main app and admin console
   ============================================================ */
:root {
  --ink: #0c211a;
  --mint: #d6ffe5;
  --lime: #e8ff2b;
  --forest: #08913f;
  --danger: #ff6b6b;
  --muted: rgba(12, 33, 26, 0.6);
  --font-sans: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body.landing-mode, body.login-mode { background: var(--mint); }

a { color: inherit; }
button { cursor: pointer; font: inherit; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; }
.hidden, [hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------------- icons ---------------- */
.icon {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------------- animations ---------------- */
@keyframes pop { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.animate-pop { animation: pop 0.3s cubic-bezier(0.2, 1.3, 0.4, 1) both; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------------- neo / panels ---------------- */
.neo    { border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.neo-sm { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.panel-dark { background: var(--ink); color: #fff; }
.panel-mint { background: var(--mint); color: var(--ink); }

.pill-lime {
  display: inline-flex; align-items: center;
  padding: 2px 8px; background: var(--lime); color: var(--ink);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---------------- buttons ---------------- */
.btn-lime, .btn-outline, .menu-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; border: 2px solid var(--ink);
  padding: 8px 18px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease;
}
.btn-lime, .menu-btn { background: var(--lime); color: var(--ink); }
.btn-outline { background: #fff; color: var(--ink); }
.btn-lime:hover:not(:disabled), .menu-btn:hover:not(:disabled), .btn-outline:hover:not(:disabled) {
  transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink);
}
.btn-lime:active:not(:disabled), .menu-btn:active:not(:disabled), .btn-outline:active:not(:disabled) {
  transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink);
}
.btn-lg { padding: 13px 24px; font-size: 13px; }
.btn-compact { padding: 7px 14px; font-size: 11px; }
.menu-btn.danger { background: var(--danger); color: #fff; }
.btn-lime:disabled, .btn-outline:disabled, .menu-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-lime { width: 100%; }
.btn-auto { width: auto; }

/* ---------------- fields ---------------- */
.field {
  width: 100%; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--mint); padding: 12px 20px; font-family: var(--font-sans); font-size: 15px;
  color: var(--ink); outline: none;
}
.field:focus { box-shadow: 0 0 0 3px var(--lime); }
.field.area { border-radius: 18px; resize: vertical; min-height: 110px; line-height: 1.5; }
.code-field { text-align: center; letter-spacing: 0.3em; font-family: var(--font-mono); }
.label { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.label .field { margin-top: 6px; text-transform: none; font-weight: 400; }
.opt { font-weight: 400; text-transform: none; color: var(--muted); }
.checkline { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.textlink { background: none; border: 0; padding: 0; font-size: 12px; text-decoration: underline; color: var(--ink); text-align: left; }
.muted-sm { font-size: 13px; margin: 0; color: var(--muted); }
.form-error { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: #b91c1c; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- boot loader ---------------- */
.boot-loader {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: #fff; transition: opacity 0.25s ease;
}
.boot-loader.is-hiding { opacity: 0; pointer-events: none; }
.boot-loader.is-hidden { display: none; }
.logo-loader { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.logo-loader-icon {
  width: 120px; height: 120px; overflow: visible;
  animation: loader-breathe 1.6s ease-in-out 1.5s infinite;
  transform-origin: center; transform-box: fill-box;
}
.logo-loader .fill { fill: var(--ink); stroke: none; }
.logo-loader .reveal {
  fill: none; stroke: white; stroke-width: 4000; stroke-linecap: butt; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
}
.ring-reveal { animation: loader-wipe 0.7s ease forwards; }
.eye-reveal-left { animation: loader-wipe 0.3s ease forwards; animation-delay: 0.6s; }
.eye-reveal-right { animation: loader-wipe 0.3s ease forwards; animation-delay: 0.7s; }
.smile-reveal { animation: loader-wipe 0.45s ease forwards; animation-delay: 0.85s; }
@keyframes loader-wipe { to { stroke-dashoffset: 0; } }
@keyframes loader-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.logo-loader-text { color: var(--ink); font-size: 13px; font-weight: 500; opacity: 0.65; animation: loader-fade 1.6s ease-in-out infinite alternate; }
@keyframes loader-fade { from { opacity: 0.35; } to { opacity: 1; } }

.boot-error {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 201;
  width: calc(100% - 32px); max-width: 520px; padding: 20px 22px; background: #fff;
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); font-size: 14px;
}
.boot-error ul { margin: 6px 0 0 18px; padding: 0; }
.boot-error code { background: rgba(12, 33, 26, 0.08); padding: 1px 4px; border-radius: 3px; font-family: var(--font-mono); font-size: 12px; }

/* ============================================================
   LANDING
   ============================================================ */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand-mark.light { color: #fff; }

.site-header {
  position: sticky; top: 16px; z-index: 30; margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; padding: 10px 18px;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  text-decoration: none; font-size: 14px; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: background-size 0.25s ease;
}
.site-nav a:hover { background-size: 100% 2px; }
.site-actions { display: flex; align-items: center; gap: 10px; }
.site-actions .short { display: none; }

.eyebrow { margin: 0 0 12px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); }
.fine { font-size: 12px; font-weight: 300; line-height: 1.55; color: var(--muted); margin: 14px 0 0; }

.hero {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center;
  padding: 64px 0 40px;
}
.hero h1 {
  margin: 0 0 18px; font-size: clamp(2.2rem, 5.4vw, 3.9rem); line-height: 1.02;
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em;
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero h1 mark { background: var(--lime); color: var(--ink); padding: 0 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero .eyebrow { animation: rise 0.6s ease both; }
.lead { font-size: 18px; font-weight: 300; line-height: 1.55; margin: 0; max-width: 560px; animation: rise 0.7s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; animation: rise 0.7s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.hero-panel { padding: 26px 24px; animation: pop 0.5s 0.25s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
.panel-eyebrow { margin: 0 0 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.check-list .icon { color: var(--lime); margin-top: 2px; stroke-width: 3; }
.panel-foot { margin: 18px 0 0; font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, 0.7); }

.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px 22px; margin: 8px 0 8px; text-align: center; }
.stat-num { display: block; font-family: var(--font-mono); font-size: clamp(22px, 3.4vw, 32px); font-weight: 700; }
.stat-label { display: block; font-size: 12px; margin-top: 2px; color: var(--muted); }

.block { padding: 56px 0 8px; }
.block h2 { margin: 0 0 22px; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.08; font-weight: 800; text-transform: uppercase; letter-spacing: -0.015em; max-width: 760px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; font-size: 16px; font-weight: 300; line-height: 1.65; }
.two-col p { margin: 0; }

.card { background: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.card p { margin: 0; font-size: 14px; font-weight: 300; line-height: 1.55; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--lime);
  font-family: var(--font-mono); font-weight: 700; margin-bottom: 12px;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid.three .card { background: var(--mint); }
.feat-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 2px solid var(--ink); border-radius: 12px; background: var(--lime); margin-bottom: 12px;
}
.feat-icon .icon { width: 20px; height: 20px; }

.apply { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: start; }
.apply-copy p { font-size: 16px; font-weight: 300; line-height: 1.6; margin: 0 0 12px; }
.apply-card { background: #fff; padding: 24px; }
.apply-card form { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.success { text-align: center; padding: 20px 6px; }
.success-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 999px; border: 2px solid var(--ink); background: var(--lime); margin-bottom: 10px;
}
.success-icon .icon { width: 26px; height: 26px; stroke-width: 3; }
.success h3 { margin: 0 0 6px; font-size: 22px; }
.success p { margin: 0; font-size: 15px; font-weight: 300; line-height: 1.55; }

.faq { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.faq details { background: #fff; padding: 0; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; font-size: 14px; font-weight: 300; line-height: 1.6; }

.site-footer { background: var(--ink); color: #fff; margin-top: 72px; padding: 36px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-note { margin: 6px 0 0; font-size: 13px; font-weight: 300; color: rgba(255, 255, 255, 0.7); }
.footer-links { display: flex; gap: 22px; font-size: 14px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { margin-top: 26px; font-size: 12px; font-weight: 300; color: rgba(255, 255, 255, 0.55); }

/* ============================================================
   SIGN IN
   ============================================================ */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.login-head { padding: 22px; text-align: center; }
.login-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--lime); margin: 0 0 4px; }
.login-title { margin: 0; font-size: 24px; font-weight: 800; text-transform: uppercase; }
.login-body { background: #fff; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.login-submit { margin-top: 4px; }
.login-foot { text-align: center; font-size: 13px; margin: 0; }

/* ============================================================
   DASHBOARD SHELL
   ============================================================ */
.topbar {
  position: sticky; top: 16px; z-index: 30; margin: 16px auto 0; max-width: 1120px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; padding: 10px 18px;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar-nav { display: flex; gap: 24px; }
.topbar-nav a {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 2px no-repeat;
  transition: background-size 0.25s ease;
}
.topbar-nav a:hover { background-size: 100% 2px; }
.topbar-nav a.is-active { font-weight: 700; background-size: 100% 2px; }
.topbar-user { display: flex; align-items: center; gap: 10px; }
.who-name { font-size: 13px; font-weight: 700; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 999px; background: var(--lime); font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.bottom-nav { display: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 24px 18px 80px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.updated { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 7px 14px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--ink); }
.seg button + button { border-left: 2px solid var(--ink); }
.seg button.is-active { background: var(--lime); }
.seg button:not(.is-active):hover { background: rgba(12, 33, 26, 0.06); }

.page { display: flex; flex-direction: column; gap: 18px; animation: fade 0.2s ease-out both; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-title { margin: 0; font-size: 24px; font-weight: 800; text-transform: uppercase; }
.page-sub { margin: 4px 0 0; font-size: 13px; font-weight: 300; }
.container.is-loading .page { opacity: 0.55; transition: opacity 0.15s ease; }

.state-box { padding: 16px 18px; font-family: var(--font-mono); font-size: 12px; background: #fff; margin-bottom: 14px; }
.state-box.err { background: #ffe0e0; }

/* ---------------- KPI cards ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.kpi { background: #fff; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.kpi-value { font-family: var(--font-mono); font-size: clamp(20px, 2.4vw, 27px); font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.kpi-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 20px; }
.kpi-hint { font-size: 12px; font-weight: 300; line-height: 1.35; }
.badge { padding: 1px 7px; border-radius: 999px; border: 2px solid var(--ink); background: #fff3c4; font-family: var(--font-mono); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.chip {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px;
  border: 2px solid var(--ink); font-family: var(--font-mono); font-size: 10px; font-weight: 700;
}
.chip .icon { width: 11px; height: 11px; stroke-width: 3; }
.chip.up { background: var(--lime); }
.chip.down { background: #ffe0e0; }
.chip.flat { background: #fff; }

/* ---------------- cards, charts ---------------- */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-grid .card { padding: 16px 18px 18px; min-width: 0; }
.chart-grid .card.wide { grid-column: span 2; }
.card-head { margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.card-head p { margin: 2px 0 0; font-size: 12px; font-weight: 300; color: var(--muted); }
.card.notes h3 { margin-bottom: 8px; }
.card.notes ul { margin: 0; padding-left: 18px; font-size: 13px; font-weight: 300; line-height: 1.7; }

.chart { position: relative; width: 100%; min-height: 220px; }
.chart-svg { display: block; max-width: 100%; }
.chart-svg .grid { stroke: rgba(12, 33, 26, 0.12); stroke-width: 1; }
.chart-svg .axis { stroke: var(--ink); stroke-width: 2; }
.chart-svg .tick { font-family: var(--font-mono); font-size: 10px; fill: rgba(12, 33, 26, 0.65); }
.chart-svg .line { stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .area { stroke: none; }
.chart-svg .guide { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-svg .dot { stroke: var(--ink); stroke-width: 2; }
.chart-svg .hit { touch-action: pan-y; cursor: crosshair; }
.chart-svg .empty-text { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); text-anchor: middle; }
.chart-tip {
  position: absolute; top: 0; z-index: 5; pointer-events: none; white-space: nowrap;
  background: var(--ink); color: #fff; padding: 6px 10px; font-size: 12px; line-height: 1.5;
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 rgba(12, 33, 26, 0.25);
}
.chart-tip b { display: block; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.swatch { display: inline-block; width: 10px; height: 10px; border: 2px solid #fff; margin-right: 6px; vertical-align: -1px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12px; }
.legend .swatch { border-color: var(--ink); }

.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut-svg { width: 150px; height: 150px; flex: none; }
.donut-svg text { text-anchor: middle; }
.donut-svg .c-label { font-family: var(--font-mono); font-size: 8px; fill: rgba(12, 33, 26, 0.6); text-transform: uppercase; }
.donut-svg .c-value { font-family: var(--font-mono); font-size: 13px; font-weight: 700; fill: var(--ink); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; flex: 1; min-width: 150px; }
.donut-legend li { display: flex; align-items: center; gap: 8px; }
.donut-legend .name { flex: 1; min-width: 0; }
.donut-legend .val { font-family: var(--font-mono); font-size: 11px; font-weight: 700; white-space: nowrap; }
.donut-legend .swatch { border-color: var(--ink); flex: none; margin: 0; }

.bar-row { display: grid; grid-template-columns: minmax(80px, 150px) 1fr auto; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 14px; border: 2px solid var(--ink); background: #fff; }
.bar-fill { height: 100%; background: var(--lime); border-right: 2px solid var(--ink); }
.bar-value { font-family: var(--font-mono); font-size: 11px; font-weight: 700; white-space: nowrap; }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 11px 12px; text-align: left; font-size: 13px; }
.data-table thead th { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; font-weight: 700; background: var(--mint); border-bottom: 2px solid var(--ink); }
.data-table tbody tr + tr td { border-top: 1px solid rgba(12, 33, 26, 0.12); }
.data-table .num { text-align: right; font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
.data-table td.empty { text-align: center; color: var(--muted); padding: 24px; }
.data-table small { display: block; color: var(--muted); font-family: var(--font-sans); font-size: 11px; }
.method { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--ink); font-family: var(--font-mono); font-size: 10px; font-weight: 700; background: var(--mint); }

/* ---------------- toasts ---------------- */
.toasts { position: fixed; bottom: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; width: 320px; pointer-events: none; }
.toast { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 10px 14px; font-size: 13px; font-weight: 700; animation: pop 0.2s ease-out both; }
.toast.ok { background: var(--lime); }
.toast.err { background: var(--danger); color: #fff; }

/* ============================================================
   TABLETS AND PHONES
   ============================================================ */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .apply { grid-template-columns: 1fr; }
  .steps, .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 14px; }

  /* landing header */
  .site-header { top: 10px; margin-top: 10px; padding: 8px 12px; }
  .site-nav { display: none; }
  .site-actions .long { display: none; }
  .site-actions .short { display: inline; }
  .brand-mark { font-size: 18px; }

  .hero { gap: 26px; padding: 30px 0 24px; }
  .lead { font-size: 16px; }
  .hero-cta .btn-lg { width: 100%; }
  .two-col { grid-template-columns: 1fr; gap: 14px; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: 1fr; gap: 12px; }
  .block { padding-top: 40px; }
  .site-footer { margin-top: 52px; }

  /* dashboard: links move to the bottom bar */
  .topbar-nav, .who-name { display: none; }
  .topbar {
    top: 0; margin: 0; max-width: none; border-width: 0 0 2px 0; box-shadow: none;
    padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top));
  }
  .topbar-user .btn-label { display: none; }
  .topbar-user .menu-btn { width: 36px; height: 36px; padding: 0; }
  .container { padding: 16px 12px calc(96px + env(safe-area-inset-bottom)); }

  .toolbar { gap: 10px; }
  .seg { width: 100%; }
  .seg button { flex: 1; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .page-title { font-size: 20px; }

  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 12px; }
  .kpi-value { font-size: 19px; }
  .chart-grid { grid-template-columns: 1fr; }
  .chart-grid .card.wide { grid-column: auto; }
  .bar-row { grid-template-columns: minmax(70px, 110px) 1fr auto; gap: 8px; }

  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: #fff; border-top: 2px solid var(--ink); padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a {
    flex: 1; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 6px 4px; text-decoration: none; font-size: 11px; -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav a:active { transform: scale(0.96); }
  .bottom-nav .nav-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 28px;
    border-radius: 999px; border: 2px solid transparent; transition: background-color 0.15s ease;
  }
  .bottom-nav .nav-icon .icon { width: 20px; height: 20px; }
  .bottom-nav a.is-active { font-weight: 700; }
  .bottom-nav a.is-active .nav-icon { background: var(--lime); border-color: var(--ink); }

  .toasts { left: 12px; right: 12px; width: auto; bottom: calc(74px + env(safe-area-inset-bottom)); }
  .login-shell { align-items: flex-start; padding: 12vh 16px 24px; }

  /* 16px stops iOS from zooming into inputs on focus */
  .field { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .logo-loader .reveal { stroke-dashoffset: 0; }
}
