* {
    box-sizing: border-box;
}

:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #172033;
    --muted: #778194;
    --border: #e3e8ef;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: var(--primary);
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 460px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 14px;

    padding: 36px;

    box-shadow:
        0 8px 30px rgba(16, 24, 40, .06);
}

.landing-nav .brand {
    font-size: 18px;
    font-weight: 800;

    margin-bottom: 42px;
}

.landing-nav .brand span {
    color: #4d8cf5;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 1.3px;

    font-weight: 800;

    color: #5375a7;

    margin-bottom: 8px;
}

h1 {
    margin: 0 0 8px;

    font-size: 30px;

    letter-spacing: -.7px;
}

.muted {
    color: var(--muted);

    font-size: 14px;

    line-height: 1.55;
}

label {
    display: block;

    margin-top: 18px;

    font-size: 13px;

    font-weight: 650;
}

input,
select,
textarea {
    width: 100%;

    margin-top: 7px;

    padding: 12px;

    border: 1px solid #d5dce6;

    border-radius: 8px;

    background: white;

    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #d7e5ff;

    border-color: var(--primary);
}

.btn {
    border: 0;

    border-radius: 8px;

    padding: 12px 18px;

    cursor: pointer;

    font-weight: 700;
}

.btn-primary {
    background: var(--primary);

    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-full {
    width: 100%;

    margin-top: 24px;
}

.auth-footer {
    margin-top: 24px;

    padding-top: 20px;

    border-top: 1px solid var(--border);

    text-align: center;

    color: var(--muted);

    font-size: 13px;
}

.alert {
    margin-top: 20px;

    padding: 12px;

    border-radius: 8px;

    font-size: 13px;
}

.alert.error {
    background: #fff0ef;

    color: #b42318;

    border: 1px solid #ffd5d2;
}

.alert {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e1e6ed;
    background: #f7f9fc;
}

.alert.error {
    background: #fff4f4;
    border-color: #f0caca;
    color: #9b1c1c;
}

button:disabled {
    opacity: 0.65;
    cursor: wait;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #68758a;
    box-shadow: 0 0 0 3px rgba(104, 117, 138, 0.12);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #d8dee7;
    border-radius: 7px;
    background: #ffffff;
    color: #172033;
    text-decoration: none;
    font-weight: 650;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.9;
}

.btn-primary {
    background: #172033;
    border-color: #172033;
    color: #ffffff;
}

.btn-full {
    width: 100%;
}

.muted {
    color: #68758a;
}

.eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #68758a;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    color: #68758a;
}

.auth-footer a {
    color: #172033;
    font-weight: 650;
}
/* -------------------------------------------------------------------------
   PHASE 2 · PREMIUM PORTAL / LANDING
   ------------------------------------------------------------------------- */
.portal-shell { min-height: 100vh; }
.portal-top, .landing-nav { max-width: 1180px; margin: 0 auto; padding: 22px 24px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.portal-top { border-bottom: 1px solid var(--border); }
.portal-top a:last-child { color:var(--muted); font-weight:700; }
.landing-nav nav { display:flex; align-items:center; gap:22px; }
.landing-nav nav a:not(.btn) { color:var(--text); font-weight:650; }
.hero { max-width:1180px; margin:0 auto; padding:90px 24px 80px; display:grid; grid-template-columns:1.2fr .8fr; gap:70px; align-items:center; }
.hero h1 { font-size:clamp(42px,6vw,72px); line-height:1.02; letter-spacing:-2.8px; max-width:780px; }
.hero h1 span { color:var(--primary); }
.hero-copy > p { max-width:680px; font-size:19px; line-height:1.7; color:var(--muted); }
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin:28px 0 22px; }
.btn-secondary { background:#fff; color:var(--text); border:1px solid var(--border); }
.trust-row { display:flex; gap:18px; flex-wrap:wrap; color:#5c6879; font-size:13px; font-weight:650; }
.hero-card { background:#fff; border:1px solid var(--border); border-radius:28px; padding:34px; box-shadow:0 24px 70px rgba(16,24,40,.09); }
.score-ring { width:150px; height:150px; border-radius:50%; display:flex; align-items:baseline; justify-content:center; flex-direction:column; padding-left:42px; background:linear-gradient(135deg,#e8f0ff,#fff); border:12px solid #d9e6ff; margin-bottom:28px; }
.score-ring strong { font-size:46px; line-height:1; }
.score-ring span { color:var(--muted); }
.mini-risk { display:flex; justify-content:space-between; border-top:1px solid var(--border); padding:16px 0; color:var(--muted); }
.mini-risk b { color:var(--text); }
.section { max-width:1180px; margin:0 auto; padding:85px 24px; }
.section h2, .pricing h2 { font-size:42px; letter-spacing:-1.5px; margin:0 0 35px; }
.cards-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.cards-3 article { background:#fff; border:1px solid var(--border); border-radius:22px; padding:30px; }
.cards-3 article > span { font-weight:800; color:var(--primary); }
.cards-3 h3 { font-size:24px; margin:30px 0 8px; }
.cards-3 p { color:var(--muted); line-height:1.65; }
.section-dark { max-width:none; background:#101827; color:#fff; padding-left:max(24px,calc((100vw - 1132px)/2)); padding-right:max(24px,calc((100vw - 1132px)/2)); }
.section-dark .eyebrow { color:#9bb7e8; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.feature-grid div { border:1px solid rgba(255,255,255,.12); border-radius:18px; padding:22px; background:rgba(255,255,255,.04); }
.pricing { max-width:1180px; margin:0 auto; padding:90px 24px; display:flex; justify-content:center; }
.pricing-card { width:100%; max-width:520px; background:#fff; border:1px solid var(--border); border-radius:26px; padding:38px; box-shadow:0 18px 60px rgba(16,24,40,.08); }
.pricing-card h2 { margin-bottom:8px; }
.pricing-card p { color:var(--muted); line-height:1.65; }
.pricing-card small { display:block; margin-top:16px; color:var(--muted); line-height:1.5; }
.landing-footer { max-width:1180px; margin:0 auto; padding:25px 24px 45px; display:flex; justify-content:space-between; color:var(--muted); font-size:13px; }
.payment-page { max-width:1050px; margin:0 auto; padding:55px 24px 80px; }
.payment-grid { display:grid; grid-template-columns:1.2fr .8fr; gap:18px; margin-top:28px; }
.feature-list { margin:0; padding-left:20px; color:var(--muted); line-height:2; }
.price { font-size:42px; font-weight:850; margin:25px 0; }
.price span { font-size:14px; color:var(--muted); font-weight:500; }
.company-page { max-width:1000px; margin:0 auto; padding:50px 24px 80px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-full { grid-column:1/-1; }
.section-title { margin-top:30px; padding-top:25px; border-top:1px solid var(--border); }
.form-help { display:block; margin-top:6px; color:var(--muted); font-size:13px; }
.form-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:25px; }
code { background:#f0f3f7; border-radius:6px; padding:2px 5px; }

@media (max-width: 850px) {
  .hero, .payment-grid { grid-template-columns:1fr; gap:35px; }
  .cards-3, .feature-grid { grid-template-columns:1fr; }
  .landing-nav nav a:not(.btn) { display:none; }
}
@media (max-width: 700px) {
  .form-grid { grid-template-columns:1fr; }
  .form-full { grid-column:auto; }
  .hero { padding-top:55px; }
  .hero h1 { letter-spacing:-1.7px; }
  .section h2, .pricing h2 { font-size:34px; }
  .landing-footer { flex-direction:column; gap:8px; }
}
/* ============================================================
   GLOBAL PORTAL HEADER
   ============================================================ */

.portal-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5eaf1;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    position: relative;
    z-index: 100;
}

.portal-header__inner {
    width: min(1400px, calc(100% - 48px));
    min-height: 82px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 32px;
}

.portal-brand {
    display: flex;
    align-items: center;
    gap: 13px;

    color: #101828;
    text-decoration: none;

    flex-shrink: 0;
}

.portal-brand:hover {
    color: #101828;
    text-decoration: none;
}

.portal-brand__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
}

.portal-brand__symbol {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #172b4d,
            #0f1c33
        );

    color: #ffffff;

    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;

    box-shadow:
        0 8px 20px rgba(15, 28, 51, .18);
}

.portal-brand__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.portal-brand__content strong {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.02em;
    color: #101828;
}

.portal-brand__content span {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    color: #667085;
}

.portal-nav {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-left: auto;
}

.portal-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 14px;

    border-radius: 9px;

    color: #475467;
    text-decoration: none;

    font-size: 13px;
    font-weight: 800;

    transition:
        background .18s ease,
        color .18s ease;
}

.portal-nav__link:hover {
    background: #f2f5f9;
    color: #101828;
    text-decoration: none;
}

.portal-nav__link.is-active {
    background: #edf4ff;
    color: #175cd3;
}

.portal-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 17px;

    margin-left: 7px;

    border-radius: 9px;

    background: #175cd3;
    color: #ffffff;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    box-shadow: 0 5px 14px rgba(23, 92, 211, .18);

    transition:
        background .18s ease,
        transform .18s ease;
}

.portal-nav__cta:hover {
    background: #124bb3;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.portal-account {
    display: flex;
    align-items: center;
    gap: 13px;

    padding-left: 18px;
    margin-left: 8px;

    border-left: 1px solid #e4e7ec;
}

.portal-account__company {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.portal-account__company-name {
    max-width: 180px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 12px;
    font-weight: 800;
    color: #344054;
}

.portal-account__user {
    font-size: 11px;
    color: #667085;
}

.portal-account__logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 13px;

    border: 1px solid #d0d5dd;
    border-radius: 9px;

    background: #ffffff;
    color: #344054;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    transition:
        background .18s ease,
        border-color .18s ease;
}

.portal-account__logout:hover {
    background: #f8fafc;
    border-color: #98a2b3;
    color: #101828;
    text-decoration: none;
}


/* ============================================================
   GLOBAL PORTAL FOOTER
   ============================================================ */

.portal-footer {
    width: 100%;
    margin-top: 70px;

    background: #0f1728;
    color: #ffffff;

    border-top: 1px solid rgba(255,255,255,.06);
}

.portal-footer__inner {
    width: min(1400px, calc(100% - 48px));
    min-height: 105px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.portal-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.portal-footer__title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.portal-footer__description {
    font-size: 12px;
    color: #98a2b3;
}

.portal-footer__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;

    color: #98a2b3;

    font-size: 11px;
}


/* ============================================================
   GLOBAL PAGE LAYOUT
   ============================================================ */

body {
    min-height: 100vh;
    margin: 0;

    display: flex;
    flex-direction: column;
}

body > .portal-footer {
    margin-top: auto;
}


/* ============================================================
   RESPONSIVE HEADER / FOOTER
   ============================================================ */

@media (max-width: 1050px) {

    .portal-header__inner {
        width: min(100% - 32px, 1400px);
        gap: 18px;
    }

    .portal-brand__content span {
        display: none;
    }

    .portal-account__company {
        display: none;
    }

    .portal-account {
        padding-left: 10px;
        margin-left: 3px;
    }

}

@media (max-width: 760px) {

    .portal-header__inner {
        width: calc(100% - 24px);
        min-height: auto;

        padding: 12px 0;

        flex-wrap: wrap;
    }

    .portal-brand {
        flex: 1;
        min-width: 220px;
    }

    .portal-brand__logo,
    .portal-brand__symbol {
        width: 44px;
        height: 44px;
    }

    .portal-brand__content strong {
        font-size: 14px;
    }

    .portal-nav {
        order: 3;

        width: 100%;

        margin-left: 0;

        overflow-x: auto;

        padding-top: 5px;
        padding-bottom: 2px;
    }

    .portal-nav__link {
        white-space: nowrap;
    }

    .portal-account {
        margin-left: auto;
    }

    .portal-account__logout {
        min-height: 36px;
    }

    .portal-footer__inner {
        width: calc(100% - 28px);

        padding: 25px 0;

        flex-direction: column;
        align-items: flex-start;
    }

    .portal-footer__right {
        width: 100%;

        justify-content: flex-start;

        flex-wrap: wrap;
        gap: 8px 18px;
    }

}

@media (max-width: 480px) {

    .portal-brand__content strong {
        font-size: 13px;
    }

    .portal-brand__symbol,
    .portal-brand__logo {
        width: 40px;
        height: 40px;
    }

    .portal-account__logout {
        padding: 0 10px;
        font-size: 11px;
    }

}
/* LTDEFEND_3_8_9_ESSENTIAL_FOCUS_R2 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid currentColor !important;
    outline-offset: 3px !important;
}
