:root {
    --navy: #10233f;
    --navy-soft: #1d385f;
    --orange: #ef7d22;
    --green: #2f7d59;
    --ink: #18283f;
    --muted: #5f6f82;
    --line: #dbe2ea;
    --surface: #ffffff;
    --background: #07172b;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100%;
    margin: 0;
    color: #fff;
    background:
        radial-gradient(circle at 84% 12%, rgba(239, 125, 34, .16), transparent 25rem),
        linear-gradient(135deg, #061428 0%, #0a1d35 48%, #102b49 100%);
    font-family: Arial, Helvetica, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 4px;
    background: var(--orange);
    z-index: 10;
}

button, a { font: inherit; }

.front-door {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 24px;
}

.brand-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.brand-logo {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.brand-name { color: #fff; font-size: 20px; font-weight: 800; }
.brand-line { margin-top: 2px; color: #aebdce; font-size: 13px; }

.dev-label {
    margin-left: auto;
    padding: 7px 10px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.welcome-card {
    overflow: hidden;
    background: #0c213a;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .30);
}

.welcome-hero {
    position: relative;
    display: grid;
    min-height: 330px;
    padding: clamp(32px, 5vw, 58px);
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr);
    align-items: center;
    isolation: isolate;
}

.welcome-hero.compact-hero { min-height: 300px; }

.welcome-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8, 24, 43, .98) 0%, rgba(8, 24, 43, .91) 55%, rgba(13, 49, 67, .72) 100%),
        repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 255, 255, .025) 71px 72px);
}

.welcome-hero::after {
    content: "";
    position: absolute;
    left: clamp(32px, 5vw, 58px);
    bottom: 0;
    width: 92px;
    height: 5px;
    background: var(--orange);
}

.welcome-copy { position: relative; z-index: 2; }

.mascot-wrap {
    position: absolute;
    right: clamp(8px, 3vw, 34px);
    bottom: -38px;
    width: clamp(220px, 29vw, 320px);
    height: 360px;
    pointer-events: none;
}

.mascot-glow {
    position: absolute;
    inset: 35% 2% 5%;
    background: radial-gradient(circle, rgba(104, 190, 83, .2), transparent 66%);
    filter: blur(8px);
}

.mascot {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .32));
}

.route-panel {
    padding: clamp(28px, 5vw, 52px);
    color: var(--ink);
    background: #f5f7fa;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

h1 {
    max-width: 650px;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.intro {
    max-width: 590px;
    margin: 18px 0 0;
    color: #c6d1de;
    font-size: 18px;
    line-height: 1.55;
}

.referral-note {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 16px;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border-left: 4px solid var(--orange);
    border-radius: 4px 9px 9px 4px;
    line-height: 1.4;
}

.route-step { display: none; }
.route-step.is-active { display: block; animation: appear .22s ease-out; }
.route-step > h1 { max-width: none; color: var(--navy); font-size: clamp(30px, 4vw, 42px); }
.route-panel .intro { color: var(--muted); }

@keyframes appear {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.step-number {
    display: grid;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #fff;
    background: var(--navy);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.step-heading h2, .help-panel h2 {
    margin: 2px 0 5px;
    color: var(--navy);
    font-size: clamp(22px, 3vw, 28px);
}

.step-heading p { margin: 0; color: var(--muted); line-height: 1.5; }

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.choice-card {
    position: relative;
    display: flex;
    min-height: 138px;
    padding: 22px 54px 22px 22px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    color: var(--ink);
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.choice-card:hover, .choice-card:focus-visible {
    border-color: var(--orange);
    box-shadow: 0 9px 24px rgba(16, 35, 63, .10);
    outline: none;
    transform: translateY(-2px);
}

.choice-card-secondary { background: #f8fafc; }
.choice-title { color: var(--navy); font-size: 18px; font-weight: 800; line-height: 1.25; }
.choice-copy { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.choice-arrow { position: absolute; right: 20px; bottom: 20px; color: var(--orange); font-size: 24px; font-weight: 800; }

.back-button {
    margin: 0 0 18px;
    padding: 0;
    color: var(--navy);
    background: transparent;
    border: 0;
    font-weight: 800;
    cursor: pointer;
}

.back-button:hover { text-decoration: underline; }

.help-panel {
    padding: 26px;
    background: #f7f9fb;
    border: 1px solid var(--line);
    border-radius: 13px;
}

.help-panel p { color: var(--muted); line-height: 1.55; }
.contact-link { display: inline-block; margin-top: 6px; color: var(--navy); font-weight: 800; }

.route-message {
    margin-top: 18px;
    padding: 15px 17px;
    color: #195a3e;
    background: #e8f5ee;
    border: 1px solid #b8dfcb;
    border-radius: 9px;
}

.route-message strong, .route-message span { display: block; }
.route-message span { margin-top: 4px; font-size: 14px; }

.route-form label {
    display: block;
    margin: 16px 0 6px;
    color: var(--navy);
    font-weight: 800;
}

.route-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.route-form input {
    width: 100%;
    padding: 14px 15px;
    color: var(--ink);
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 10px;
    font: inherit;
}

.route-form input:focus {
    border-color: var(--orange);
    outline: 3px solid rgba(239, 125, 34, .15);
}

.route-submit {
    display: flex;
    width: 100%;
    margin-top: 22px;
    padding: 16px 18px;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    background: var(--orange);
    border: 0;
    border-radius: 10px;
    font-weight: 900;
    cursor: pointer;
}

.route-submit:hover, .route-submit:focus-visible { background: #d96b17; outline: none; }
.route-submit span { font-size: 22px; line-height: 1; }
.route-secondary { margin-top: 18px; color: var(--muted); text-align: center; }
.route-secondary a { color: var(--navy); font-weight: 800; }
.route-error { margin-bottom: 12px; padding: 13px 15px; color: #8e251d; background: #fdebea; border: 1px solid #f2c5c1; border-radius: 9px; }
.footer-link { color: #d7e1ec; font-weight: 700; }
.verification-panel { display: flex; padding: 20px; flex-direction: column; gap: 7px; color: #195a3e; background: #e8f5ee; border: 1px solid #b8dfcb; border-radius: 10px; }
.verification-panel span { color: #3e6957; line-height: 1.5; }
.verification-help { margin: 16px 0 0; padding: 13px 15px; color: var(--muted); background: #fff; border-left: 4px solid var(--navy); border-radius: 4px 8px 8px 4px; }

footer {
    display: flex;
    justify-content: center;
    gap: 9px;
    padding: 22px 8px 0;
    color: #a7b4c4;
    font-size: 12px;
}

@media (max-width: 700px) {
    .front-door { width: min(100% - 20px, 1040px); padding-top: 14px; }
    .brand-bar { margin-bottom: 14px; }
    .brand-logo { width: 58px; height: 58px; }
    .brand-name { font-size: 17px; }
    .brand-line { display: none; }
    .dev-label { padding: 6px 8px; font-size: 9px; }
    .welcome-card { border-radius: 15px; }
    .welcome-hero { min-height: 350px; padding-bottom: 140px; grid-template-columns: 1fr; }
    .welcome-hero::after { left: clamp(26px, 5vw, 32px); }
    .mascot-wrap { right: -4px; bottom: -50px; width: 190px; height: 245px; opacity: .96; }
    .intro { padding-right: 24px; font-size: 16px; }
    .referral-note { max-width: calc(100% - 70px); }
    .route-panel { padding: 28px 22px 30px; }
    .choice-grid { grid-template-columns: 1fr; }
    .route-form-grid { grid-template-columns: 1fr; gap: 0; }
    .choice-card { min-height: 118px; }
    footer { flex-direction: column; align-items: center; gap: 4px; text-align: center; }
    .footer-dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.route-outline-action{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin-top:12px;border:1px solid var(--navy);border-radius:10px;color:var(--navy);background:#fff;text-decoration:none;font-weight:800}
.route-outline-action:hover,.route-outline-action:focus-visible{background:#eaf0f6}

.route-anchor{text-decoration:none}

/* Public employer pages also load employer.css, whose light page background
   requires darker brand and footer treatments than the original start page. */
.front-door-body .brand-name { color: var(--navy); }
.front-door-body .brand-line { color: #4f6075; }
.front-door-body .dev-label {
    color: #fff;
    background: var(--navy);
    border-color: var(--navy);
}
.front-door-body footer { color: #4f6075; }
.front-door-body .footer-link { color: #164e81; }

.route-first-time { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(20, 46, 78, .18); }
.route-first-time h2 { margin: 0 0 8px; color: var(--navy); font-size: 18px; line-height: 1.3; text-align: center; }
.route-first-time p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }

.wide-front-door { width: min(1180px, calc(100% - 32px)); }
.employer-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.employer-form-grid .full { grid-column: 1 / -1; }
.route-form h2 { margin: 28px 0 4px; color: var(--navy); font-size: 21px; }
.route-form h2:first-of-type { margin-top: 0; }
.readonly-field { padding: 14px 15px; color: var(--muted); background: #e9eef3; border: 2px solid var(--line); border-radius: 10px; }
.field-help { color: var(--muted); font-size: 13px; }
.check-row { display: flex !important; gap: 10px; align-items: flex-start; margin-top: 16px !important; color: var(--ink) !important; font-weight: 600 !important; line-height: 1.45; }
.check-row input { width: auto !important; margin-top: 3px; }
.role-route-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.role-card { min-height: 230px; padding-right: 22px; }
.role-card { cursor: default; }
.role-card .choice-arrow { top: 18px; bottom: auto; }
.role-actions { display: grid; width: 100%; gap: 8px; margin-top: auto; padding-top: 18px; }
.role-action { display: block; padding: 10px 12px; color: var(--navy); background: #f3f6f9; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 800; text-decoration: none; }
.role-action.primary { color: #fff; background: var(--navy); border-color: var(--navy); }

@media (max-width: 850px) {
    .role-route-grid { grid-template-columns: 1fr; }
    .role-card { min-height: 0; }
}

@media (max-width: 700px) {
    .employer-form-grid { grid-template-columns: 1fr; }
    .employer-form-grid .full { grid-column: auto; }
}
