:root {
    --blue: #0053AD;
    --blue-2: #039DE2;
    --ink: #102033;
    --muted: #5b6b7f;
    --line: #dbe7f3;
    --soft: #f4f9fd;
    --white: #ffffff;
    --danger: #b42318;
    --shadow: 0 18px 50px rgba(0, 83, 173, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); }
img { max-width: 100%; height: auto; }
code, pre { font-family: "SFMono-Regular", Consolas, monospace; }
.skip-link, .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;
}
.skip-link:focus {
    width: auto;
    height: auto;
    margin: 1rem;
    padding: .7rem 1rem;
    background: var(--blue);
    color: var(--white);
    z-index: 20;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}
.nav-shell {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 20px; font-weight: 700; }
.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--line);
}
.nav-logout-form { margin: 0; }
.nav-logout-form button {
    padding: 0;
    border: 0;
    color: var(--blue);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.nav-logout-form button:hover { color: var(--blue-2); }
.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.language-switcher a {
    min-width: 34px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 900;
}
.language-switcher a.active,
.language-switcher a:hover {
    color: var(--white);
    background: var(--blue);
}
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 8px;
}
.nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--blue);
}
.account-menu {
    position: relative;
    flex: 0 0 auto;
}
.account-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
}
.account-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--blue);
}
.account-toggle:hover,
.account-toggle:focus-visible,
.nav-toggle:hover,
.nav-toggle:focus-visible {
    border-color: var(--blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(3, 157, 226, .18);
}
.account-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(240px, calc(100vw - 36px));
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.account-dropdown.open { display: flex; }
.account-dropdown a,
.account-dropdown button {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}
.account-dropdown a:hover,
.account-dropdown button:hover,
.account-dropdown a:focus-visible,
.account-dropdown button:focus-visible {
    color: var(--blue);
    background: var(--soft);
    outline: none;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    color: var(--white);
    background: var(--blue);
    font-weight: 800;
    cursor: pointer;
}
.btn:hover { color: var(--white); background: #003f86; }
.btn:disabled {
    opacity: .58;
    cursor: not-allowed;
}
.btn-secondary { color: var(--blue); background: var(--white); }
.btn-secondary:hover { color: var(--blue); background: var(--soft); }
.btn-ghost { color: var(--ink); background: transparent; border-color: var(--line); }
.btn-ghost:hover { color: var(--blue); background: var(--soft); }
.btn-danger { color: var(--white); background: var(--danger); border-color: var(--danger); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .92rem; }
.hero, .page-hero, .section, .final-cta, .auth-shell, .legal-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 22px;
}
.hero {
    min-height: 620px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 48px;
}
.eyebrow {
    color: var(--blue);
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}
h1, h2, h3 { line-height: 1.12; margin: 0 0 18px; }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 18px; color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.actions.center { justify-content: center; }
.hero-panel {
    display: grid;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, var(--white), #edf8ff);
}
.signal-card, .plain-card, .product-card, .panel, .form-card, .steps article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.signal-card { padding: 20px; display: flex; justify-content: space-between; gap: 14px; }
.signal-card.active { border-color: var(--blue-2); box-shadow: var(--shadow); }
.signal-card strong { color: var(--blue); }
.signal-card span { color: var(--muted); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.band {
    max-width: none;
    background: var(--soft);
}
.band > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.problem-grid, .product-grid, .steps, .metric-grid, .dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.plain-card { padding: 20px; display: flex; gap: 12px; }
.check-dot {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--blue-2);
}
.product-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.product-card.tall { min-height: 360px; }
.product-card ul, .clean-list { padding-left: 20px; margin: 0 0 18px; color: var(--muted); }
.card-actions { margin-top: auto; display: flex; gap: 14px; flex-wrap: wrap; font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.feature-list { display: grid; gap: 12px; }
.feature-list div { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; }
.pillars span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #b8dbf5;
    border-radius: 999px;
    color: var(--blue);
    background: var(--white);
    font-weight: 800;
}
.pillars.compact span { min-height: 28px; font-size: .86rem; }
.code-panel { display: grid; gap: 10px; }
.code-panel code, .snippet {
    display: block;
    padding: 14px 16px;
    color: #07335f;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
}
.steps article { padding: 24px; }
.steps strong {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--blue);
}
.faq-list { display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 18px; }
summary { cursor: pointer; font-weight: 900; color: var(--ink); }
.final-cta { text-align: center; }
.auth-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; align-items: start; }
.form-card { padding: 26px; box-shadow: var(--shadow); }
.form-card.wide { max-width: 860px; box-shadow: none; }
label { display: grid; gap: 7px; margin-bottom: 14px; font-weight: 800; color: var(--ink); }
input, textarea, select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
}
textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; font-weight: 800; color: var(--ink); }
.field > label { margin-bottom: 0; }
.phone-inline {
    display: grid;
    grid-template-columns: minmax(130px, 42%) 1fr;
    gap: 10px;
}
.phone-inline .field { margin-bottom: 0; }
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.form-note, .notice { font-size: .95rem; }
.form-note-right { margin-top: -4px; text-align: right; }
.form-error {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #f2b8b5;
    border-radius: 8px;
    color: #9f1239;
    background: #fff5f5;
    font-weight: 800;
}
.notice { padding: 16px; border-left: 4px solid var(--blue-2); background: var(--soft); color: var(--ink); }
.notice strong { display: block; color: var(--ink); margin-bottom: 4px; }
.notice.danger { border-left-color: var(--danger); background: #fff5f5; }
.verification-notice { margin: 20px 0; display: grid; gap: 10px; }
.scope-fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 18px; padding: 16px; }
.scope-fieldset label { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 700; }
.scope-fieldset input { width: auto; min-height: auto; }
.flash { max-width: 1180px; margin: 16px auto 0; padding: 0 22px; }
.flash p { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.flash-error p { border-color: #f2b8b5; background: #fff5f5; }
.flash-success p { border-color: #a6e4bf; background: #f0fff5; }
.dashboard-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 22px 72px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
}
.dashboard-nav {
    position: sticky;
    top: 98px;
    display: grid;
    gap: 8px;
    align-self: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.dashboard-nav a { padding: 10px 12px; border-radius: 8px; font-weight: 800; }
.dashboard-nav a:hover { background: var(--soft); }
.dashboard-content { min-width: 0; }
.metric-grid article, .panel { padding: 22px; }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid strong { display: block; font-size: 1.8rem; color: var(--blue); }
.metric-grid span { color: var(--muted); font-weight: 800; }
.metric-grid p { margin: 8px 0 0; font-size: .9rem; }
.page-row { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 24px; }
.table-list { display: grid; gap: 14px; }
.table-list article {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.secret-box {
    margin: 22px 0;
    padding: 20px;
    border: 2px solid var(--blue-2);
    border-radius: 8px;
    background: #eef9ff;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    width: fit-content;
    padding: 0 10px;
    border: 1px solid #b8dbf5;
    border-radius: 999px;
    color: var(--blue);
    background: #eef9ff;
    font-size: .86rem;
    font-weight: 900;
}
.status-badge.approved {
    color: #067647;
    border-color: #a6e4bf;
    background: #f0fff5;
}
.document-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.document-upload-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.document-upload-card.uploaded { border-color: #a6e4bf; background: #f9fffb; }
.document-upload-card.uploading {
    border-color: var(--blue-2);
    box-shadow: 0 12px 30px rgba(3, 157, 226, .14);
}
.document-upload-card.failed { border-color: #f2b8b5; background: #fffafa; }
.file-picker {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--blue);
    border-radius: 8px;
    color: var(--blue);
    background: var(--white);
    cursor: pointer;
}
.file-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.upload-progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef5;
}
.upload-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--blue-2);
    transition: width .2s ease;
}
.upload-feedback { min-height: 22px; margin: 0; font-size: .92rem; }
.submit-verification-panel {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.legal-page { max-width: 880px; }
.legal-page h2 { margin-top: 32px; font-size: 1.5rem; }
.site-footer { background: #071e37; color: var(--white); padding: 54px 22px 24px; }
.site-footer p, .site-footer a, .footer-bottom { color: #c9d8e8; }
.site-footer h2 { color: var(--white); font-size: 1rem; }
.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}
.site-footer a { display: block; margin-bottom: 8px; }
.social-row {
    max-width: 1180px;
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.16);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.social-row a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
}
.social-row span {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #071e37;
    background: var(--white);
    font-weight: 900;
}
.social-row strong { color: #eaf4ff; font-size: .9rem; }
.site-footer .social-links {
    max-width: 1180px;
    margin: 34px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.site-footer .social-links a {
    width: 44px;
    height: 44px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    color: var(--white);
    background: rgba(255,255,255,.08);
    font-size: 1.1rem;
    transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.site-footer .social-links a:hover {
    color: var(--white);
    border-color: transparent;
    transform: translateY(-2px);
}
.site-footer .social-links .twitter:hover { background: #1da1f2; }
.site-footer .social-links .facebook:hover { background: #1877f2; }
.site-footer .social-links .instagram:hover { background: #e4405f; }
.site-footer .social-links .tiktok:hover { background: #111111; }
.site-footer .social-links .snapchat:hover { background: #fffc00; color: #071e37; }
.site-footer .social-links .linkedin:hover { background: #0a66c2; }
.site-footer .social-links .fa-tiktok::before {
    content: "\266A";
    font-family: Arial, sans-serif;
    font-weight: 900;
}
.footer-brand { color: var(--white); margin-bottom: 14px; }
.footer-bottom {
    max-width: 1180px;
    margin: 34px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.16);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-size: .92rem;
}
.password-toggle-field {
    position: relative;
    display: block;
}
.password-toggle-field input {
    padding-right: 48px;
    width: 100%;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}
.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle.is-visible {
    color: var(--blue);
    background: var(--soft);
}
.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cookie-consent {
    position: fixed;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 22px;
    border: 1px solid #b8dbf5;
    border-radius: 8px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent h2 {
    margin: 2px 0 8px;
    font-size: 1.2rem;
}
.cookie-consent p { margin: 0; }
.cookie-consent ul {
    margin: 12px 0;
    padding-left: 20px;
    color: var(--muted);
}
.cookie-consent li + li { margin-top: 5px; }
.cookie-consent a {
    color: var(--blue);
    font-weight: 900;
}
.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 900px) {
    .brand { order: 1; }
    .language-switcher {
        order: 2;
        margin-left: auto;
    }
    .nav-toggle {
        order: 3;
        display: block;
    }
    .nav-menu {
        order: 4;
        position: absolute;
        left: 22px;
        right: 22px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    .nav-menu.open { display: flex; }
    .nav-divider {
        width: 100%;
        height: 1px;
        margin: 4px 0;
    }
    .nav-logout-form button {
        min-height: 38px;
        text-align: left;
    }
    .hero, .split, .auth-shell, .dashboard-shell { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding-top: 54px; }
    .problem-grid, .product-grid, .steps, .metric-grid, .dashboard-grid, .footer-grid { grid-template-columns: 1fr; }
    .document-upload-grid { grid-template-columns: 1fr; }
    .submit-verification-panel { display: grid; }
    .cookie-consent { grid-template-columns: 1fr; }
    .cookie-consent-actions { justify-content: stretch; }
    .cookie-consent-actions .btn { flex: 1 1 220px; }
    .dashboard-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: 1fr; }
    .page-row, .table-list article { flex-direction: column; align-items: stretch; }
}

@media (max-width: 560px) {
    h1 { font-size: 2.15rem; }
    .hero, .page-hero, .section, .final-cta, .auth-shell, .legal-page { padding: 48px 18px; }
    .nav-shell { padding: 0 18px; }
    .actions .btn, .form-card .btn { width: 100%; }
    .dashboard-nav { grid-template-columns: 1fr; }
    .phone-inline { grid-template-columns: 1fr; }
}
