/* ============================================================
   YUSR CAPITAL — MID-22 prototype design (October 2026)
   Dark by default, light on [data-theme="light"].
   Roboto for text, JetBrains Mono for eyebrows and figures.
   Navy · Lime · Cyan/Magenta accents, HUD corners, grid + scanlines.

   Every colour comes from the tokens below, so the two themes are
   two blocks of variables and nothing else.
   ============================================================ */

/* Self-hosted fonts (latin subset) — no render-blocking call to Google.
   Both are variable fonts: one file covers every weight. */
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url("../fonts/roboto-latin-var-P5vfNz3.woff2") format("woff2");
}
@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/jetbrains-mono-latin-UKAvhI1.woff2") format("woff2");
}

:root {
    color-scheme: dark;

    /* brand — the same in both themes */
    --navy: #051c27;
    --navy-light: #0b2d3d;
    --lime: #9bee68;
    --lime-dark: #7fd94a;
    --cyan: #37e6ff;
    --magenta: #ff3fa4;

    /* theme (dark) */
    --bg: #03080b;
    --panel: #051c27;
    --panel-2: #0b2d3d;
    --fg: #ffffff;
    --fg-rgb: 255 255 255;
    --accent: var(--lime);              /* lime used as text */
    --error: #f87171;
    --error-bg: rgb(248 113 113 / 0.12);
    --ok: var(--lime);
    --ok-bg: rgb(155 238 104 / 0.14);
    --warn: #fbbf24;
    --warn-bg: rgb(251 191 36 / 0.14);
    --header-bg: rgb(3 8 11 / 0.88);
    --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.7);

    /* derived */
    --line: rgb(var(--fg-rgb) / 0.1);
    --line-strong: rgb(var(--fg-rgb) / 0.2);
    --muted: rgb(var(--fg-rgb) / 0.6);
    --soft: rgb(var(--fg-rgb) / 0.5);
    --field: rgb(var(--fg-rgb) / 0.05);
    --tint: rgb(var(--fg-rgb) / 0.03);

    --radius: 16px;
    --radius-lg: 24px;
    --font-body: "Roboto", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    --container: 1180px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f4f7f6;
    --panel: #ffffff;
    --panel-2: #eef2f1;
    --fg: #051c27;
    --fg-rgb: 5 28 39;
    /* Lime on near-white fails contrast; text accents go a few shades deeper. */
    --accent: #3d8c10;
    --error: #b91c1c;
    --error-bg: #fee2e2;
    --ok: #2f7a0c;
    --ok-bg: rgb(155 238 104 / 0.22);
    --warn: #92400e;
    --warn-bg: #fef3c7;
    --header-bg: rgb(244 247 246 / 0.9);
    --shadow: 0 18px 40px -18px rgb(5 28 39 / 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fg);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-body);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 0.5em;
    letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; }
::selection { background: rgb(155 238 104 / 0.35); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
.container-narrow { max-width: 760px; }

/* ---------------- decorative layers ---------------- */

.glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    pointer-events: none;
}
.bg-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgb(var(--fg-rgb) / 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(var(--fg-rgb) / 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}
.scanlines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    background-image: repeating-linear-gradient(to bottom, rgb(var(--fg-rgb) / 0.035) 0, rgb(var(--fg-rgb) / 0.035) 1px, transparent 1px, transparent 3px);
}

/* HUD corners: lime top-left, cyan bottom-right. */
.hud { position: relative; }
.hud::before,
.hud::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.hud::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--lime);
    border-left: 2px solid var(--lime);
    border-top-left-radius: 4px;
}
.hud::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
    border-bottom-right-radius: 4px;
}

/* Glitch headline: two offset copies flash in cyan and magenta every few seconds. */
.glitch { position: relative; }
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.glitch::before { color: var(--cyan); animation: glitch1 7s infinite; }
.glitch::after { color: var(--magenta); animation: glitch2 7s infinite; }
@keyframes glitch1 {
    0%, 92%, 100% { opacity: 0; transform: translate(0); }
    93% { opacity: 0.8; clip-path: inset(10% 0 60% 0); transform: translate(-2px, 1px); }
    95% { opacity: 0.6; clip-path: inset(60% 0 5% 0); transform: translate(2px, -1px); }
}
@keyframes glitch2 {
    0%, 92%, 100% { opacity: 0; transform: translate(0); }
    93.5% { opacity: 0.7; clip-path: inset(40% 0 20% 0); transform: translate(2px, 0); }
    96% { opacity: 0.5; clip-path: inset(5% 0 70% 0); transform: translate(-2px, 1px); }
}
@media (prefers-reduced-motion: reduce) {
    .glitch::before, .glitch::after { animation: none; content: none; }
}

/* ---------------- buttons ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    border: 1px solid transparent;
    border-radius: 9999px;
    padding: 11px 22px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--lime);
    color: var(--navy);
    box-shadow: 0 8px 24px -6px rgb(155 238 104 / 0.5);
}
.btn-primary:hover { background: var(--lime-dark); color: var(--navy); }

.btn-ghost {
    background: transparent;
    color: var(--fg);
    border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: rgb(var(--fg-rgb) / 0.4); }

.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; display: flex; }

.btn-link {
    background: none;
    border: 0;
    padding: 0 4px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: underline;
    cursor: pointer;
}
.btn-link:hover { color: var(--fg); }

/* ---------------- header ---------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgb(var(--fg-rgb) / 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    position: relative;
}

.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 24px; width: auto; }

/* One wordmark per theme: lime on dark, navy on light. */
.brand-logo-light { display: none; }
:root[data-theme="light"] .brand-logo-dark { display: none; }
:root[data-theme="light"] .brand-logo-light { display: block; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgb(var(--fg-rgb) / 0.8);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}
.nav-link:hover { color: var(--fg); }
.nav-cta { padding: 9px 18px; font-size: 13px; white-space: nowrap; }

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid rgb(var(--fg-rgb) / 0.15);
    background: rgb(var(--fg-rgb) / 0.04);
    color: rgb(var(--fg-rgb) / 0.7);
    font-size: 15px;
    cursor: pointer;
}
.theme-btn:hover { border-color: rgb(155 238 104 / 0.4); color: var(--lime); }
/* Shows the theme you would switch *to*: the sun in the dark, the moon in the light. */
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: inline; }

.nav-dropdown { position: relative; }
.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: -16px;
    min-width: 300px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-panel a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--fg);
}
.dropdown-panel a small {
    display: block;
    font-weight: 400;
    font-size: 12.5px;
    color: var(--soft);
}
.dropdown-panel a:hover { background: var(--field); }

.nav-toggle-input { display: none; }
/* Text for screen readers only (the mobile menu button's name). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.nav-toggle { display: none; }

/* ---------------- hero ---------------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    padding: 64px 0;
}
.hero-backdrop { position: absolute; inset: 0; pointer-events: none; }
.hero-backdrop .glow {
    top: -120px;
    right: 0;
    width: 340px;
    height: 340px;
    background: rgb(155 238 104 / 0.2);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
}

.hero-eyebrow,
.section-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: 16px;
}

.hero-subhead {
    font-size: 17px;
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 18px;
}

.hero-stats {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 13px;
    color: var(--soft);
}
.hero-stats strong {
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--accent);
}
.hero-stat-unit {
    margin: 0 4px 0 2px;
    font-size: 11px;
    color: rgb(var(--fg-rgb) / 0.4);
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-bottom: 22px; }
.hero-link { font-size: 14px; color: rgb(var(--fg-rgb) / 0.7); text-decoration: none; }
.hero-link:hover { color: var(--fg); }

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    font-size: 12px;
    color: rgb(var(--fg-rgb) / 0.35);
    margin: 0;
}
.trust-strip span + span::before { content: "·"; margin: 0 10px; }

/* Short subhead on phones, the full sentence from 640px — as in the prototype. */
.hero-subhead-full { display: none; }
@media (min-width: 640px) {
    .hero-subhead-short { display: none; }
    .hero-subhead-full { display: block; }
}
.hero-copy > .hero-link { display: inline-block; margin-bottom: 22px; }
@media (max-width: 639px) {
    .hide-mobile { display: none !important; }
}

/* who it's for */
.section-audience, .section-faq { padding-top: 0; }
.audience-intro { font-size: 13px; color: var(--soft); margin: -16px 0 16px; }
.audience-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.audience-card {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.15s ease;
}
.audience-card:hover { border-color: rgb(var(--fg-rgb) / 0.25); }
.audience-card h3 { font-size: 16px; font-weight: 600; letter-spacing: 0; margin-bottom: 4px; }
.audience-card p { font-size: 13px; color: var(--soft); margin: 0; }
.audience-checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.audience-checklist li {
    display: flex;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--tint);
    font-size: 13px;
    color: rgb(var(--fg-rgb) / 0.8);
}
.check {
    flex-shrink: 0;
    display: flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--lime);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
}
@media (max-width: 720px) {
    .audience-cards, .audience-checklist { grid-template-columns: 1fr; }
}

/* ---------------- sections ---------------- */

.section { padding: 64px 0; }

.section-title {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.01em;
    max-width: 26ch;
    margin-bottom: 28px;
}

/* shared panel look: outlined, faintly tinted */
.product-card,
.step,
.benefit-card,
.serve-card,
.faq-list {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--tint);
}

/* products */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product-card {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.15s ease;
}
.product-card:hover { border-color: rgb(var(--fg-rgb) / 0.25); }
.product-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgb(155 238 104 / 0.15);
    color: var(--accent);
    margin-bottom: 14px;
}
.product-icon svg { width: 22px; height: 22px; }
.product-card h3 { font-size: 20px; }
.product-for { color: var(--muted); font-size: 14px; }
.product-stats {
    list-style: none;
    padding: 0;
    margin: 8px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.product-stats li {
    font-size: 14px;
    padding-left: 20px;
    position: relative;
    color: rgb(var(--fg-rgb) / 0.8);
}
.product-stats li::before { content: "›"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.product-link { margin-top: auto; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--accent); }

/* how it works */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0;
    margin: 0;
}
.step { padding: 18px; }
.step-num {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: var(--lime);
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.step h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.step p { font-size: 13px; color: var(--soft); margin: 0; }

/* why yusr */
.section-why { padding-top: 0; }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.benefit-card { padding: 20px 18px; }
.benefit-index { display: none; }
.benefit-card h3 { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.benefit-card p { font-size: 13px; color: var(--soft); margin: 0; }

/* social proof */
.section-proof { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--soft);
    margin-bottom: 16px;
}
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px; }
.logo-row:last-child { margin-bottom: 0; }
.logo-chip,
.segment-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgb(var(--fg-rgb) / 0.15);
    background: var(--tint);
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 500;
    color: rgb(var(--fg-rgb) / 0.8);
}
.logo-chip-strong { color: var(--fg); border-color: var(--line-strong); }
/* Partner logos are dark artwork on transparent: a light chip keeps them legible in
   the dark theme without recolouring anyone's brand. */
.logo-chip-img { padding: 7px 16px; background: #ffffff; border-color: transparent; }
.logo-chip-img img { height: 24px; width: auto; max-width: 140px; object-fit: contain; }

/* who we serve / eligibility */
.serve-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
}
.serve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.serve-grid-stacked { grid-template-columns: 1fr; }
.serve-card { padding: 18px 20px; }
.serve-card p { font-size: 14px; color: rgb(var(--fg-rgb) / 0.8); }
.serve-card a { font-weight: 600; text-decoration: none; color: var(--accent); }
.serve-built-for { font-size: 14px; color: var(--soft); margin-bottom: 14px; }
.segment-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.serve-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* The <picture> must not become the grid item — display:contents keeps the <img>
   itself the child of .serve-layout, so the sizing and the mobile `order` below
   still apply to the image. */
.illustration-wrap { display: contents; }
.serve-illustration {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

/* FAQ: one outlined panel, rows divided, +/− marker in lime */
.faq-list { display: flex; flex-direction: column; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item { padding: 0 18px; }
.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    padding: 15px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker { flex: 0 0 auto; width: 14px; height: 14px; position: relative; }
.faq-marker::before,
.faq-marker::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--accent);
    transition: transform 0.2s ease;
}
.faq-marker::before { width: 12px; height: 2px; }
.faq-marker::after { width: 2px; height: 12px; }
.faq-item[open] .faq-marker::after { transform: rotate(90deg); }
.faq-item p { color: var(--soft); font-size: 13px; margin: 0 0 15px; max-width: 70ch; }

/* cross-link */
.section-crosslink { padding: 0 0 64px; }
.crosslink { text-align: center; font-size: 15px; color: var(--muted); }
.crosslink a { font-weight: 600; margin-left: 6px; color: var(--accent); text-decoration: none; }

/* ---------------- forms (lead form + wizard) ---------------- */

.lead-form-card {
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgb(var(--fg-rgb) / 0.04);
    padding: 22px 20px;
    box-shadow: 0 0 60px -15px rgb(155 238 104 / 0.25);
    scroll-margin-top: 90px;
}
.lead-form-title { font-size: 18px; font-weight: 700; letter-spacing: 0; margin-bottom: 2px; }
.lead-form-sub { font-size: 13px; color: var(--soft); margin-bottom: 16px; }

.lead-form > div { margin-bottom: 16px; }
.lead-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgb(var(--fg-rgb) / 0.7);
    margin-bottom: 6px;
}
/* Symfony renders a field's help option as .help-text. */
.lead-form .help-text { font-size: 12px; color: rgb(var(--fg-rgb) / 0.4); margin-top: 6px; }
.lead-form input,
.lead-form select,
.apply-form textarea {
    width: 100%;
    font-family: var(--font-body);
    /* 16px is a hard floor, not a design choice: iOS Safari zooms the whole page
       when a focused field is smaller, which throws the form off screen mid-entry. */
    font-size: 16px;
    color: var(--fg);
    background: var(--field);
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.lead-form input::placeholder,
.apply-form textarea::placeholder { color: rgb(var(--fg-rgb) / 0.35); }
.lead-form input:focus,
.lead-form select:focus,
.apply-form textarea:focus {
    background: var(--panel);
    box-shadow: 0 0 0 2px var(--lime);
}
.lead-form select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a9aa3' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.lead-form select option { color: initial; }
.lead-form ul {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--error);
}
.form-note { font-size: 12px; color: rgb(var(--fg-rgb) / 0.4); margin: 10px 0 0; text-align: center; }
.form-alert {
    background: var(--error-bg);
    border: 1px solid rgb(248 113 113 / 0.35);
    color: var(--error);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
}
.form-success-banner {
    background: var(--ok-bg);
    border: 1px solid rgb(155 238 104 / 0.35);
    color: var(--ok);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
}

/* honeypot — hide from humans, keep in DOM for bots */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-success { text-align: center; padding: 24px 6px; }
.form-success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 9999px;
    background: rgb(155 238 104 / 0.2);
    color: var(--accent);
    font-size: 28px;
    margin-bottom: 14px;
}
.form-success h3 { font-size: 20px; }
.form-success p { color: var(--soft); margin: 0 auto; max-width: 42ch; font-size: 14px; }

/* ---------------- footer ---------------- */

.site-footer {
    background: var(--panel);
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 40px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.footer-brand .brand-logo { margin-bottom: 12px; }
.footer-tagline { font-size: 13px; margin-bottom: 8px; }
.footer-legal { font-size: 12px; color: var(--soft); }
.footer-col h2 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    color: rgb(var(--fg-rgb) / 0.9);
    margin: 0 0 10px;
}
.footer-col a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 7px;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding-top: 18px; font-size: 12px; color: var(--soft); }
.footer-bottom p { margin: 0; }

/* ---------------- WhatsApp pill ---------------- */

.wa-pill {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 16px;
    border-radius: 9999px;
    border: 1px solid rgb(155 238 104 / 0.4);
    background: rgb(5 28 39 / 0.95);
    box-shadow: 0 0 30px -4px rgb(155 238 104 / 0.55);
    text-decoration: none;
}
.wa-pill span {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lime);
}

/* No entrance animation on the hero (removed 2026-11-12): the prototype's "rise" kept the
   headline and the Get funded form invisible for up to ~1 s after first paint, which
   visitors read as a slow site. The hero shows as soon as it paints. */

/* ---------------- legal pages ---------------- */

.legal { background: var(--bg); padding: 48px 16px; }
.legal-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 44px;
}
.legal-updated {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgb(155 238 104 / 0.15);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 9999px;
    margin: 0 0 16px;
}
.legal-title { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; margin: 0 0 8px; }
.legal-section + .legal-section { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 28px; }
.legal-section h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin: 24px 0 12px; }
.legal-card p,
.legal-card li { font-size: 16px; line-height: 1.65; color: rgb(var(--fg-rgb) / 0.8); }
.legal-card p { margin: 0 0 14px; }
.legal-card ul { margin: 0 0 14px; padding-left: 22px; }
.legal-card li { margin-bottom: 8px; }
.legal-card a { color: var(--accent); text-underline-offset: 2px; }
.legal-contact { list-style: none; padding-left: 0 !important; }

/* ---------------- apply wizard ---------------- */

.apply-section { padding: 32px 0 64px; }
/* The prototype puts the wizard straight on the page, no card around it. */
.apply-card { padding: 0; }
.apply-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.apply-lede { font-size: 13px; color: var(--soft); margin-bottom: 22px; }

.apply-progress { margin: 4px 0 28px; }
.progress-track { height: 6px; border-radius: 9999px; background: var(--line); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 9999px; background: var(--lime); transition: width 0.3s ease; }
.apply-rail {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px;
    padding: 0;
    margin: 10px 0 0;
}
.apply-rail-step { font-size: 12px; font-weight: 500; color: rgb(var(--fg-rgb) / 0.35); }
.apply-rail-step.is-done { color: var(--muted); }
.apply-rail-step.is-current { color: var(--fg); }
.apply-rail-step.is-ready { color: var(--accent); }
.apply-rail-step a { color: inherit; text-decoration: none; }
.apply-rail-step a:hover, .apply-rail-step a:focus-visible { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.rail-tick { margin-right: 3px; font-weight: 700; }

/* Expanded radio / checkbox groups: Symfony emits each input and its label as flat
   siblings, so a two-column grid is what pairs them up. */
.apply-form input[type="radio"],
.apply-form input[type="checkbox"] { width: auto; accent-color: var(--lime); }
.apply-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.apply-form fieldset > legend {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgb(var(--fg-rgb) / 0.7);
    margin-bottom: 6px;
    padding: 0;
}
.apply-form div:has(> input[type="radio"]:first-child + label),
.apply-form div:has(> input[type="checkbox"]:first-child + label),
.apply-form div:has(> label:first-child + input[type="checkbox"]) {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 6px 10px;
}
.apply-form div:has(> input[type="radio"]:first-child + label) > input,
.apply-form div:has(> input[type="checkbox"]:first-child + label) > input,
.apply-form div:has(> label:first-child + input[type="checkbox"]) > input {
    margin: 4px 0 0;
}
.apply-form div:has(> input[type="radio"]:first-child + label) > label,
.apply-form div:has(> input[type="checkbox"]:first-child + label) > label,
.apply-form div:has(> label:first-child + input[type="checkbox"]) > label {
    font-weight: 400;
    font-size: 14px;
    color: rgb(var(--fg-rgb) / 0.75);
    margin: 0;
    cursor: pointer;
}
/* A lone consent checkbox comes out label-first; flip the pair so the sentence sits
   beside its box rather than stacked above it. */
.apply-form div:has(> label:first-child + input[type="checkbox"]) > input { order: 1; }
.apply-form div:has(> label:first-child + input[type="checkbox"]) > label { order: 2; }
.apply-form div:has(> label:first-child + input[type="checkbox"]) > ul { grid-column: 1 / -1; }

.apply-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 30px;
}
/* Back is a quiet text link in the prototype, not a second button. */
.apply-actions .btn-ghost {
    border-color: transparent;
    color: var(--muted);
    padding-left: 0;
    box-shadow: none;
}
.apply-actions .btn-ghost::before { content: "← "; white-space: pre; }
.apply-actions .btn-ghost:hover { color: var(--fg); }
/* A second real answer (continue or start new), not Back: keeps the ghost button's outline. */
.apply-actions .btn-choice {
    border-color: var(--line-strong);
    color: var(--fg);
    padding-left: 22px;
}
.apply-actions .btn-choice::before { content: none; }
.existing-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.apply-actions-single { justify-content: center; }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.apply-flash { margin-bottom: 16px; }

/* Option cards: a real radio inside, the card is its label. */
.opt-legend { font-size: 13px; font-weight: 500; color: rgb(var(--fg-rgb) / 0.7); margin: 18px 0 8px; }
.opt-cards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.opt-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 4px 12px;
    padding: 16px;
    background: rgb(var(--fg-rgb) / 0.02);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, background 0.15s ease;
}
.opt-card:hover { border-color: rgb(var(--fg-rgb) / 0.25); }
.opt-card:has(input:checked) { border-color: var(--lime); background: rgb(155 238 104 / 0.1); }
.opt-card:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 2px; }
.opt-card input[type="radio"] { width: auto; margin: 3px 0 0; accent-color: var(--lime); }
.opt-card > label { margin: 0; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.opt-card-label { font-size: 15px; font-weight: 600; color: var(--fg); }
.opt-card-note { font-size: 13px; font-weight: 400; color: var(--soft); }
@media (min-width: 640px) {
    .opt-cards:has(> li:nth-child(2):last-child) { grid-template-columns: 1fr 1fr; }
    .opt-cards:has(> li:nth-child(3):last-child) { grid-template-columns: 1fr 1fr 1fr; }
}

/* the store step's platform links: opt-card's look, but each card is a link */
.store-links { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .store-links { grid-template-columns: 1fr 1fr 1fr; } }
.store-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px;
    background: rgb(var(--fg-rgb) / 0.02);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--fg);
    text-decoration: none;
}
.store-link:hover { border-color: var(--lime); }
.store-link:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.store-link-name { font-size: 15px; font-weight: 600; }
.store-link-note { font-size: 12px; color: var(--soft); }
.store-assurances { padding-left: 20px; margin: 0; font-size: 13px; color: rgb(var(--fg-rgb) / 0.7); }
.store-h2 { font-size: 13px; font-weight: 600; margin: 0 0 10px; }
/* stores connected before, each with "Use" (or "used" once it is) */
.store-connected { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.store-connected-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.store-connected-row > div { display: flex; flex-direction: column; gap: 3px; }
.store-connected-row form { margin: 0; flex-shrink: 0; }
.store-used { font-size: 12px; color: var(--accent); white-space: nowrap; }

/* eligibility chip (financing step) */
.elig-chip {
    margin: -6px 0 14px;
    padding: 9px 14px;
    border-radius: 12px;
    background: rgb(155 238 104 / 0.1);
    border: 1px solid rgb(155 238 104 / 0.3);
    font-size: 13px;
    font-weight: 600;
}
.elig-note { text-align: left; margin: 0 0 16px; }
.elig-chip[hidden], .elig-note[hidden] { display: none; }

/* the documents step's AECB notice and the extras step's banner */
.apply-notice {
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: var(--radius);
    background: rgb(155 238 104 / 0.1);
    font-size: 13px;
}
.apply-notice-strong { font-weight: 600; background: rgb(155 238 104 / 0.15); }

/* verify step: the prototype's code card */
.verify-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--bg);
    padding: 22px 20px;
    box-shadow: 0 0 60px -15px rgb(155 238 104 / 0.25);
}
.verify-card .glow { top: -70px; right: 0; width: 200px; height: 200px; background: rgb(155 238 104 / 0.15); }
.verify-inner { position: relative; }
.verify-form .otp-input {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5em;
    text-align: center;
    padding: 14px;
}
.verify-form .apply-actions { margin-top: 18px; }
/* The code field's label goes once the boxes replace the field (apply.js). */
.lead-form label[hidden] { display: none; }
.otp-row { display: flex; justify-content: space-between; gap: 6px; margin-top: 6px; }
.otp-box {
    width: 52px;
    height: 56px;
    min-width: 0;
    flex: 0 1 52px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgb(var(--fg-rgb) / 0.04);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--fg);
    outline: none;
}
.otp-box:focus { border-color: rgb(155 238 104 / 0.4); box-shadow: 0 0 0 2px rgb(155 238 104 / 0.4); }
@media (max-width: 620px) { .otp-box { height: 48px; font-size: 18px; } }
.verify-resend { margin: 14px 0 0; text-align: right; }

/* business step: emirate + category, and the key signatory box */
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.signatory-box {
    border-radius: var(--radius);
    background: var(--tint);
    padding: 16px;
    margin: 0 0 16px;
}
.signatory-box-title { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--fg); }
.signatory-box-title span { color: rgb(var(--fg-rgb) / 0.4); font-weight: 400; }
.signatory-box .field-pair > div { margin-bottom: 0; }
@media (max-width: 620px) {
    .field-pair { grid-template-columns: 1fr; }
    .signatory-box .field-pair > div + div { margin-top: 16px; }
}

/* submit screen */
.review-summary { padding: 0; }
.review-summary .review-row { padding: 13px 16px; }
.doc-checklist { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.doc-checklist li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; }
.doc-checklist .check { width: 15px; height: 15px; font-size: 9px; margin-top: 2px; }
.review-store-ok { display: flex; align-items: center; gap: 9px; font-size: 13px; margin-top: 10px; }
.review-store-ok .check { width: 15px; height: 15px; font-size: 9px; }
.review-next { margin-top: 16px; padding: 16px; border-radius: var(--radius); background: var(--tint); }
.review-terms { text-align: left; margin: -6px 0 0; }
.review-terms a { color: var(--accent); }
@media (max-width: 620px) {
    .doc-checklist { grid-template-columns: 1fr; }
}

/* review */
.review-group {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-top: 14px;
}
.review-group:first-of-type { margin-top: 0; }
.review-group-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 8px;
}
.review-group-title a { font-size: 12px; font-weight: 600; color: var(--accent); text-decoration: none; }
.review-group dl { margin: 0; }
.review-row {
    display: flex;
    justify-content: space-between;
    gap: 4px 16px;
    padding: 7px 0;
    font-size: 13px;
}
.review-row + .review-row { border-top: 1px solid var(--line); }
.review-row dt { color: var(--soft); margin: 0; }
.review-row dd { margin: 0; font-weight: 500; text-align: right; }
.review-group .form-note { text-align: left; margin: 0; }

.apply-next-steps { padding-left: 20px; margin: 0; font-size: 13px; color: rgb(var(--fg-rgb) / 0.7); }
.apply-next-steps li { margin-bottom: 6px; }
.apply-form > div:has(> input[name$="[confirm]"]) { margin-top: 16px; }

/* documents */
.doc-group { margin-top: 18px; }
.doc-group:first-of-type { margin-top: 0; }
.doc-group > .review-group-title { margin-top: 20px; }
.doc-group .form-note { text-align: left; margin: 4px 0 0; }
.doc-group + .review-group-title { margin-top: 22px; }
.doc-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgb(var(--fg-rgb) / 0.15);
    border-radius: var(--radius);
}
.doc-row.is-filed { border-color: rgb(155 238 104 / 0.4); }
/* display:flex above would otherwise beat the hidden attribute ("both sides" box). */
.doc-row[hidden] { display: none; }
.doc-row-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.doc-label { font-size: 14px; font-weight: 500; color: var(--fg); }
.doc-note { font-size: 11px; color: var(--soft); }
.doc-note-photo { font-style: italic; }
.doc-filed { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 3px; font-size: 11px; color: var(--accent); }
.doc-filed::before { content: "✓ Uploaded:"; }
.doc-filename { font-weight: 600; word-break: break-all; }
.doc-size { color: var(--soft); }
.doc-row-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.doc-row-actions .btn-ghost { padding: 8px 16px; font-size: 13px; font-weight: 500; }
.doc-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgb(var(--fg-rgb) / 0.06);
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    vertical-align: middle;
}
.eid-toggle { display: flex; align-items: center; gap: 9px; font-size: 12px; color: rgb(var(--fg-rgb) / 0.75); cursor: pointer; }
.eid-toggle input { width: auto; margin: 0; accent-color: var(--lime); }

/* The file input is the label: one tap, no separate submit, and it still works
   without JavaScript through the <noscript> button. */
.btn-file { position: relative; overflow: hidden; cursor: pointer; }
.btn-file input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.doc-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgb(var(--fg-rgb) / 0.08);
    color: var(--muted);
}
.doc-pill-sent { background: var(--lime); color: var(--navy); }
.doc-pill-failed, .doc-pill-expired { background: var(--error-bg); color: var(--error); }

[data-document-progress] { width: 100%; max-width: 220px; margin-top: 4px; height: 4px; accent-color: var(--lime); }
[data-document-progress][hidden] { display: none; }
/* Empty until the uploader has something to say, so it takes no space at rest. */
.doc-status { font-size: 12px; color: var(--soft); }
.doc-status:empty { display: none; }
[data-document-error] [data-document-status] { color: var(--error); font-weight: 600; }

/* A statement-type row: a file per line, each with its own progress, status and Remove. */
.doc-files { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-files:empty { display: none; }
.doc-file { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--accent); }
.doc-file::before { content: "✓"; }
.doc-file form { display: inline; }
.doc-file .btn-link { padding: 0; font-size: 11px; }
.doc-file.is-uploading, .doc-file.is-failed { color: var(--soft); }
.doc-file.is-uploading::before { content: "↑"; }
.doc-file.is-failed::before { content: "!"; color: var(--error); }
.doc-file.is-failed .doc-file-status { color: var(--error); font-weight: 600; }
.doc-file progress { width: 120px; height: 4px; accent-color: var(--lime); }
/* Files dragged over a row: it is where they will land. */
.doc-row.is-dragover { border-color: var(--lime); border-style: dashed; background: rgb(155 238 104 / 0.06); }

/* The dashboard's answer form reuses the rows above; its files go up with the form, so a
   chosen file is "attached", not yet "uploaded". The form borrows .lead-form for its text
   fields, whose label rule would otherwise turn the file button into a block. */
.doc-row.is-error { border-color: var(--error); }
.doc-row.is-error .doc-status { color: var(--error); font-weight: 600; }
.doc-chosen::before { content: "✓ Attached:"; }
.doc-chosen[hidden] { display: none; }
.dash-changes-form label.btn-file { display: inline-flex; margin: 0; font-size: 13px; color: inherit; }
/* .lead-form ul is its field-error list (red, small); the document list is not. */
.dash-changes-form .doc-list { margin-top: 10px; font-size: inherit; color: var(--fg); }

/* application strength (extras) */
.strength {
    margin: 14px 0 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.strength-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 500;
}
.strength-head strong { font-weight: 600; }
.strength-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.strength-seg { height: 7px; border-radius: 9999px; background: var(--line); }
.strength-seg.is-on { background: var(--lime); }
.strength-note { text-align: left; margin: 8px 0 0; }

/* ---------------- admin ---------------- */

.admin-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.admin-actions { display: flex; gap: 10px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.admin-filters select,
.admin-filters input {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--fg);
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
}
.admin-table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table th { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--soft); }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table a { color: var(--accent); }
.badge { font-size: 11px; font-weight: 700; border-radius: 9999px; padding: 3px 10px; }
.badge-sent, .badge-submitted { background: var(--ok-bg); color: var(--ok); }
.badge-pending, .badge-conflict { background: var(--warn-bg); color: var(--warn); }
.badge-failed, .badge-expired { background: var(--error-bg); color: var(--error); }
.badge-skipped, .badge-draft, .badge-duplicate { background: rgb(var(--fg-rgb) / 0.06); color: var(--muted); }
.admin-pagination { display: flex; gap: 8px; margin-top: 20px; }
.admin-pagination a, .page-current { padding: 6px 12px; border-radius: 8px; text-decoration: none; }
.page-current { background: var(--lime); color: var(--navy); }

/* ---------------- responsive ---------------- */

@media (max-width: 920px) {
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .steps { grid-template-columns: 1fr 1fr; }
    .serve-layout { grid-template-columns: 1fr; gap: 28px; }
    .serve-illustration { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .hero { padding: 32px 0 40px; }
    .section { padding: 44px 0; }
    .product-grid, .serve-grid, .benefit-grid, .steps { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(28px, 8vw, 34px); }
    .footer-grid { grid-template-columns: 1fr; }
    .legal { padding: 20px 12px; }
    .legal-card { padding: 26px 20px; }
    .wa-pill { width: 52px; padding: 0; justify-content: center; }
    .wa-pill span { display: none; }

    /* WCAG 2.5.8 — every tap target at least 44px tall on a touch layout. */
    .product-link,
    .serve-card a,
    .crosslink a,
    .legal-contact a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .brand { min-height: 44px; }
    .footer-col a { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; }

    /* mobile nav */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        gap: 5px;
        cursor: pointer;
        padding: 8px;
        border-radius: 9999px;
        border: 1px solid rgb(var(--fg-rgb) / 0.15);
        background: rgb(var(--fg-rgb) / 0.04);
    }
    .nav-toggle span {
        width: 18px;
        height: 2px;
        background: rgb(var(--fg-rgb) / 0.8);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        /* The container is the positioning box, padding included: 0/0 is edge to edge. */
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--panel);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        padding: 14px 20px 20px;
        box-shadow: var(--shadow);
    }
    .nav-toggle-input:checked ~ .site-nav { display: flex; }
    .nav-toggle-input:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle-input:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-toggle-input:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-link { display: flex; align-items: center; min-height: 44px; font-size: 15px; }
    .dropdown-panel {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--tint);
        margin-top: 6px;
    }
    .theme-btn { align-self: flex-start; margin: 6px 0; }
    .nav-cta { margin-top: 8px; padding: 12px 18px; font-size: 14px; }
}

@media (max-width: 620px) {
    .review-row { flex-direction: column; }
    .review-row dd { text-align: left; }
    .apply-actions { flex-direction: column-reverse; align-items: stretch; }
    .apply-actions .btn { width: 100%; }
    .apply-actions .btn-ghost { padding-left: 22px; }
    .doc-row { flex-direction: column; align-items: stretch; }
    .doc-row-actions { justify-content: space-between; }
    .doc-row-actions .btn-file { flex: 1; }
}

/* ---------------- merchant dashboard (/dashboard) — after the MID-22 prototype ---------------- */

.dash-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.dash-header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.dash-header-right { display: flex; align-items: center; gap: 12px; }
.dash-who { text-align: right; }
.dash-who-name { font-size: 13px; color: rgb(var(--fg-rgb) / 0.8); }
.dash-who-segment { font-size: 11px; color: rgb(var(--fg-rgb) / 0.4); }
.dash-logout { font-size: 13px; color: var(--muted); text-decoration: none; }
.dash-logout:hover { color: var(--fg); }
.dash-who-strip { display: none; border-top: 1px solid var(--line); background: var(--tint); padding: 6px 16px; font-size: 11px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-who-strip b { color: rgb(var(--fg-rgb) / 0.8); }

.dash-main { padding-top: 22px; padding-bottom: 80px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-grid > * { min-width: 0; }
.dash-stack { display: flex; flex-direction: column; gap: 16px; }
.dash-legal { font-size: 10px; line-height: 1.5; padding: 0 4px; color: rgb(var(--fg-rgb) / 0.35); }

.dash-card { border-radius: 24px; background: var(--panel); box-shadow: var(--shadow); padding: 28px; }
.dash-card-draft + .dash-card, .dash-card-draft + .dash-stack { margin-top: 16px; }
.dash-apps { margin-top: 16px; }
.dash-stores { margin-top: 16px; }
.dash-apps .dash-rows { margin-top: 12px; }
.dash-app-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-radius: 16px; border: 1px solid var(--line-strong); padding: 14px 16px; color: inherit; text-decoration: none; }
.dash-app-row:hover { border-color: rgb(var(--fg-rgb) / 0.35); }
.dash-app-row.is-shown { background: var(--tint); border-color: var(--line); }
.dash-app-row .dash-badge { flex-shrink: 0; white-space: nowrap; }
.dash-facts { margin: 18px 0 0; }
.dash-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 13px; }
.dash-facts > div + div { border-top: 1px solid var(--line); }
.dash-facts dt { color: var(--soft); margin: 0; }
.dash-facts dd { margin: 0; font-weight: 500; text-align: right; }
.dash-badge { display: inline-flex; border-radius: 9999px; padding: 4px 12px; font-size: 11px; font-weight: 700; }
.dash-badge-lime { background: var(--ok-bg); color: var(--accent); }
.dash-badge-neutral { background: rgb(var(--fg-rgb) / 0.05); color: var(--muted); }
.dash-badge-amber { background: var(--warn-bg); color: var(--warn); }
.dash-badge-red { background: var(--error-bg); color: var(--error); }
.dash-title { margin-top: 12px; font-size: 1.4rem; font-weight: 800; }
.dash-title-flush { margin-top: 0; }
.dash-lede { margin-top: 6px; font-size: 13px; color: var(--soft); }
.dash-banner { margin-top: 20px; border-radius: 16px; background: var(--ok-bg); padding: 13px 16px; font-size: 13px; }
.dash-section { margin-top: 20px; }
.dash-h2 { font-size: 13px; font-weight: 600; }
.dash-list { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--soft); display: flex; flex-direction: column; gap: 6px; }
.dash-list b { color: rgb(var(--fg-rgb) / 0.7); }
.dash-small { margin-top: 12px; font-size: 12px; color: var(--soft); }
.dash-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dash-withdraw { margin-top: 16px; }
.dash-withdraw summary { cursor: pointer; font-size: 13px; color: var(--soft); }
.dash-withdraw summary:hover, .dash-withdraw summary:focus-visible { color: var(--fg); }
.dash-ghost-link { display: inline-block; font-size: 13px; color: var(--muted); }
.dash-card > .dash-ghost-link { display: block; margin-top: 20px; text-align: center; }
.dash-ghost-link:hover { color: var(--fg); }
.dash-more { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--accent); }

.dash-rows { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.dash-row-title { font-size: 14px; font-weight: 500; }
.dash-row-note { margin-top: 3px; font-size: 11px; color: var(--soft); }
/* Per business: the business heading above its applications (lms.per_business_enabled). */
.dash-row-group { margin: 14px 0 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); }
.dash-row-group:first-child { margin-top: 0; }

.dash-note-amber { margin-top: 12px; border-radius: 14px; background: var(--warn-bg); padding: 11px 14px; font-size: 12px; color: var(--warn); }
.dash-note-red { margin-top: 20px; border-radius: 16px; background: var(--error-bg); padding: 14px 16px; font-size: 13px; color: var(--error); }
.dash-note-split { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; }
.dash-note-split a { font-weight: 600; color: inherit; }
.dash-figure { font-size: 2.2rem; font-weight: 800; }

.dash-stats { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 18px; border-radius: 16px; background: var(--tint); padding: 20px; }
.dash-stat-label { font-size: 12px; color: var(--soft); }
.dash-stat-value { margin-top: 4px; font-size: 17px; font-weight: 600; }
.dash-stats-red { background: var(--error-bg); }
.dash-stats-red .dash-stat-label, .dash-stats-red .dash-stat-value { color: var(--error); }

/* The payment schedule inside the financing card: a <details> the client can fold away. */
.dash-schedule summary { cursor: pointer; list-style-position: outside; }
.dash-schedule summary::marker { color: var(--accent); }
.dash-schedule .dash-table-wrap { margin-top: 10px; }
.dash-checklist { margin-top: 20px; border-radius: 16px; border: 1px solid var(--line); }
.dash-checklist > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; font-size: 13px; }
.dash-checklist > div + div { border-top: 1px solid var(--line); }
.dash-checklist > div > span:first-child { font-weight: 500; }
.dash-checklist .dash-badge { flex-shrink: 0; white-space: nowrap; }
/* Which file: a statement-type document is one row per month. */
.dash-doc-file { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; color: var(--soft); word-break: break-all; }
.dash-soft { margin-top: 20px; border-radius: 16px; background: var(--tint); padding: 16px; font-size: 13px; }
.dash-soft .dash-lede { margin-top: 0; }
.dash-soft-value { margin-top: 3px; font-size: 16px; font-weight: 600; }

.dash-table-wrap { margin-top: 14px; overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.dash-table th { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--soft); padding: 8px 10px; font-weight: 600; }
.dash-table td { padding: 10px; font-variant-numeric: tabular-nums; }
.dash-table tr.is-zebra { background: rgb(var(--fg-rgb) / 0.02); }
.dash-table tr.is-overdue { background: var(--error-bg); }
.dash-table tr.is-overdue td { color: var(--error); }
.dash-muted { color: var(--muted); }

.dash-dock { display: none; }

@media (min-width: 640px) {
    .dash-stats-2 { grid-template-columns: 1fr 1fr; }
    .dash-stats-3 { grid-template-columns: 1fr 1fr 1fr; }
}
/* Phones: the business name moves under the header, and the prototype's dock appears. */
@media (max-width: 767px) {
    .dash-who, .dash-logout { display: none; }
    .dash-who-strip { display: block; }
    .dash-card { padding: 20px; }
    .dash-main { padding-bottom: 96px; }
    .dash-dock {
        position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 25;
        display: flex; align-items: center; gap: 4px;
        border-radius: 9999px; border: 1px solid rgb(255 255 255 / 0.1); background: rgb(5 28 39 / 0.92); padding: 5px 10px;
        box-shadow: 0 16px 40px -8px rgb(0 0 0 / 0.6); backdrop-filter: blur(12px);
    }
    .dash-dock a { display: flex; height: 42px; width: 42px; align-items: center; justify-content: center; border-radius: 9999px; color: rgb(255 255 255 / 0.55); }
    .dash-dock a.on { background: rgb(155 238 104 / 0.15); color: var(--lime); }
}

/* ---------------- client login (/login) ---------------- */
.account-section .verify-card { max-width: 400px; margin: 0 auto; }
.account-links { margin-top: 14px; text-align: right; font-size: 13px; }
.account-links a { color: var(--muted); }
.account-links a:hover { color: var(--fg); }

/* "People behind your business" (MID-34): one bordered block per person, its face-check link
   and a folded form to complete it. Tokens only. */
.dash-persons { margin-top: 16px; }
.dash-person { border-radius: 16px; border: 1px solid var(--line-strong); padding: 14px 16px; }
.dash-person-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dash-person-head .dash-badge { flex-shrink: 0; white-space: nowrap; }
.dash-person .dash-facts { margin-top: 10px; }
.dash-person .dash-facts dd { overflow-wrap: anywhere; }
.dash-person-kyc { color: var(--warn); font-weight: 600; }
.dash-person-pending { color: var(--warn); }
.dash-person-link { margin-top: 12px; border-radius: 14px; background: var(--tint); padding: 12px 14px; }
.dash-person-link-row { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.dash-person-link-row input { flex: 1 1 200px; min-width: 0; font-family: 'JetBrains Mono', monospace; font-size: 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--fg); padding: 8px 10px; }
.dash-person-edit, .dash-person-add { margin-top: 12px; }
.dash-person-add { margin-top: 20px; }
.dash-person-edit summary, .dash-person-add summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); }
.dash-person-form { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.dash-person-form input[readonly] { opacity: 0.7; cursor: not-allowed; }
.dash-person-types { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.dash-person-types label { display: inline-flex; align-items: center; gap: 6px; }

/* The agent cabinet (mockup 2026-11-14): "Your businesses" as a table, each business its page. */
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dash-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--soft); }
.dash-crumbs a { color: var(--accent); }
.dash-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.dash-chip { flex: 1 1 130px; display: flex; flex-direction: column; gap: 2px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); padding: 12px 14px; color: inherit; text-decoration: none; }
.dash-chip:hover { border-color: var(--line-strong); }
.dash-chip.is-on { border-color: var(--accent); background: var(--ok-bg); }
.dash-chip-count { font-family: var(--font-mono); font-size: 22px; font-weight: 700; }
.dash-chip-count.is-warn { color: var(--warn); }
.dash-chip-label { font-size: 12px; color: var(--muted); }
.dash-search { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.dash-search input[type="search"] { flex: 1 1 260px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--field); color: var(--fg); padding: 0 14px; font: inherit; }
.dash-table-card { padding: 0; overflow: hidden; }
.dash-table-scroll { overflow-x: auto; }
.dash-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.dash-table th { padding: 14px 18px; text-align: left; font-size: 12px; font-weight: 500; color: var(--soft); border-bottom: 1px solid var(--line); }
.dash-table td { padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
.dash-table tbody tr:last-child td { border-bottom: 0; }
.dash-table tbody tr:hover { background: var(--tint); }
.dash-table .dash-row-note { display: block; }
.dash-row-link { font-weight: 500; color: var(--fg); text-decoration: none; }
.dash-row-link:hover { color: var(--accent); text-decoration: underline; }
.dash-num { text-align: right; white-space: nowrap; }
.dash-mono { font-family: var(--font-mono); }
.dash-warn { color: var(--warn); }
.dash-split { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.dash-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
@media (min-width: 960px) {
    .dash-split { grid-template-columns: 1fr 340px; }
}
/* The agent's help button: the site's WhatsApp pill, icon only; phones use the dock's chat. */
.dash-help-pill { width: 52px; padding: 0; justify-content: center; }
@media (max-width: 767px) {
    .dash-help-pill { display: none; }
}
.dash-muted { color: var(--soft); }

/* The representative cabinet (mockup 2026-11-14): the business at the top, Needs you, then tabs. */
.dash-page-title { font-size: 1.6rem; font-weight: 800; }
.dash-head-note { margin-top: 0; max-width: 340px; }
.dash-todo { margin-bottom: 18px; border-radius: 16px; border: 1px solid var(--warn); background: var(--warn-bg); padding: 16px 20px; }
.dash-todo .dash-h2 { color: var(--warn); }
.dash-todo-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dash-todo-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.dash-tabs { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.dash-tabs a { padding: 10px 2px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; }
.dash-tabs a:hover { color: var(--fg); }
.dash-tabs a[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.dash-tab-panel + .dash-tab-panel { margin-top: 16px; }
.dash-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.dash-overview > .dash-card { margin-top: 0; }
/* A grid panel's display would otherwise beat the hidden attribute the tabs set. */
.dash-tab-panel[hidden] { display: none; }
.dash-switch { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); }
.dash-switch select { min-height: 44px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--field); color: var(--fg); padding: 0 12px; font: inherit; font-size: 14px; }
.dash-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.dash-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--lime); }
.dash-payout-block { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.dash-payout-block legend { padding: 0; margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.dash-payout-block[hidden] { display: none; }
