:root {
    --ink: #12110E;
    --ink-80: #2C2924;
    --ink-60: #57524A;
    --ink-40: #8C857B;
    --ink-10: rgba(18, 17, 14, 0.06);
    --paper: #FAF8F5;
    --card: #FFFFFF;
    --amber: #F5A623;
    --amber-deep: #D98200;
    --amber-light: #FFF8EB;
    --amber-border: #F7D488;
    --line: #E8E3DA;
    --line-subtle: #F0ECE4;
    --radius-s: 10px;
    --radius-m: 16px;
    --radius-l: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 2px 8px rgba(18, 17, 14, 0.04);
    --shadow-md: 0 10px 30px -8px rgba(18, 17, 14, 0.08);
    --shadow-lg: 0 20px 45px -12px rgba(18, 17, 14, 0.12);
    --shadow-amber: 0 10px 28px -6px rgba(18, 17, 14, 0.22);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    /* fallback for old browsers */
    min-height: 100dvh;
    /* mobile: handles address bar resize */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    /* take all spare space */
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--ink);
}

p {
    color: var(--ink-60);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    border: none;
    cursor: pointer;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: clamp(20px, 4vw, 40px);
}

/* ─────────────────────────────────────────────────────────────
   HEADER & NAVIGATION BAR
   Consistent, brand-promoting, matching the visual reference
   ───────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-subtle);
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    padding-bottom: 16px;
    transition: all 0.25s ease;
}

.site-header,
.site-footer {
    flex-shrink: 0;
}



.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.5vw, 32px);
    list-style: none;
}

.nav-item a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink-80);
    position: relative;
    padding: 6px 2px;
    transition: color 0.15s ease;
}

.nav-item a:hover {
    color: var(--ink);
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    transition: width 0.2s var(--ease-out);
    border-radius: 2px;
}

.nav-item a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


.nav-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    color: var(--ink-80);
    border: 1.5px solid var(--line);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(18, 17, 14, 0.04);
    transition: all 0.2s var(--ease-out);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-install-btn * {
    pointer-events: none;
}

.nav-install-btn:hover {
    background: var(--amber-light);
    border-color: var(--amber);
    color: var(--amber-deep);
    transform: translateY(-1.5px);
    box-shadow: 0 4px 14px rgba(28, 28, 30, 0.1);
}

.nav-install-btn:active {
    transform: translateY(0);
}

.nav-install-btn .install-btn-icon {
    width: 16px;
    height: 16px;
    color: var(--amber);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.nav-install-btn:hover .install-btn-icon {
    transform: translateY(1px);
    color: var(--amber-deep);
}

.nav-install-btn.installed {
    background: #F0FDF4;
    border-color: #86EFAC;
    color: #166534;
    cursor: default;
}

.nav-install-btn.installed .install-btn-icon {
    color: #16A34A;
}

.nav-install-btn.installed:hover {
    transform: none;
    box-shadow: 0 2px 6px rgba(18, 17, 14, 0.04);
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    background: #F5A623;
    color: #FFFFFF;
    font-size: 0.94rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(28, 28, 30, 0.16);
    transition: all 0.18s var(--ease-out);
    text-decoration: none;
}

.nav-login-btn:hover {
    background: #E59800;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 18px rgba(28, 28, 30, 0.2);
}

.nav-login-btn:active {
    transform: translateY(0);
}

/* Mobile Nav Hamburger */
.mobile-nav-toggle {
    display: none;
    background: none;
    padding: 6px;
    color: var(--ink);
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION 
   Left: Courier runner with motion lines
   Right: Bold headline + "We got you." + Single "Instant Crew" CTA
   ───────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding-top: clamp(36px, 5vw, 64px);
    padding-bottom: clamp(50px, 7vw, 80px);
    overflow: hidden;
    flex: 1;
    /* hero stretch so skyline sits right above footer */
    display: flex;
    align-items: center;
    /* center hero grid vertically in extra space */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: clamp(24px, 5vw, 60px);
    position: relative;
    z-index: 2;
}

.hero-section .hero-grid {
    width: 100%;
}

/* Left Column: Courier Runner Illustration */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

.hero-visual-wrapper {
    position: relative;
    width: 100%;
    max-width: 540px;
}

.hero-courier-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 24px rgba(22, 19, 15, 0.10));
    animation: gentleFloat 4s ease-in-out infinite alternate;
    transform-origin: bottom center;
}

@keyframes gentleFloat {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-6px) scale(1.008);
    }
}

.hero-ground-shadow {
    position: absolute;
    bottom: 4%;
    left: 20%;
    right: 15%;
    height: 18px;
    background: radial-gradient(ellipse at center, rgba(18, 17, 14, 0.15) 0%, rgba(18, 17, 14, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

/* Right Column: Content & Single CTA */
.hero-content {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: clamp(2.8rem, 5.4vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-title .title-amber {
    color: #F5A623;
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.5;
    color: var(--ink-60);
    margin-bottom: 32px;
    max-width: 38ch;
}

/* Single "Instant Crew" CTA Button */
.hero-cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
}

.btn-instant-crew {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 46px;
    border-radius: var(--radius-m);
    background: linear-gradient(135deg, #FFB800 0%, #F5A623 50%, #E59400 100%);
    color: #12110E;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-amber);
    transition: all 0.22s var(--ease-out);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-instant-crew:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 36px -4px rgba(28, 28, 30, 0.25);
    background: linear-gradient(135deg, #FFBE1A 0%, #F8AD33 50%, #EB9B05 100%);
}

.btn-instant-crew:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-instant-crew .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    transition: transform 0.2s ease;
}

.btn-instant-crew:hover .btn-icon {
    transform: translateX(3px);
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
    color: var(--ink-60);
    margin-top: 6px;
}

.trust-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.trust-badge-item svg {
    color: var(--amber-deep);
    flex-shrink: 0;
}

/* Background skyline accent */
.hero-backdrop-skyline {
    position: absolute;
    height: 180px;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background-image: url('../images/building_shadow.png');
    background-repeat: repeat-x;
    background-size: auto 100%;
    background-position: bottom center;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

/* ─────────────────────────────────────────────────────────────
   METRICS & LIVE PROOF BAR
   ───────────────────────────────────────────────────────────── */
.metrics-strip {
    background: var(--card);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-block: 30px;
    position: relative;
    z-index: 3;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.metric-card {
    text-align: center;
    padding-inline: 16px;
    border-right: 1px solid var(--line-subtle);
}

.metric-card:last-child {
    border-right: none;
}

.metric-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}

.metric-number .accent {
    color: var(--amber-deep);
}

.metric-label {
    font-size: 0.88rem;
    color: var(--ink-60);
    margin-top: 4px;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────
   "HOW IT WORKS" SECTION
   ───────────────────────────────────────────────────────────── */
.section {
    padding-block: clamp(60px, 8vw, 100px);
}

.section-alt {
    background: #F4EFE6;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--amber-deep);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(2rem, 3.4vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 14px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--ink-60);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.step-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    padding: 34px 28px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--amber-border);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--amber-light);
    color: var(--amber-deep);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid var(--amber-border);
}

.step-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.step-card p {
    font-size: 0.94rem;
    color: var(--ink-60);
}

/* ─────────────────────────────────────────────────────────────
   DUAL BRAND PERSONA SHOWCASE
   For Businesses & For Crew Members
   ───────────────────────────────────────────────────────────── */
.persona-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.persona-card {
    border-radius: var(--radius-l);
    padding: clamp(36px, 5vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--shadow-md);
}

.persona-business {
    background: #181512;
    color: #FFFFFF;
}

.persona-business h3 {
    color: #FFFFFF;
}

.persona-business p {
    color: rgba(255, 255, 255, 0.72);
}

.persona-crew {
    background: var(--card);
    border: 1px solid var(--line);
}

.persona-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.persona-business .persona-tag {
    background: rgba(255, 255, 255, 0.14);
    color: #F5A623;
}

.persona-crew .persona-tag {
    background: var(--amber-light);
    color: var(--amber-deep);
    border: 1px solid var(--amber-border);
}

.persona-card h3 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin-bottom: 12px;
}

.persona-card .persona-lead {
    font-size: 1rem;
    margin-bottom: 24px;
}

.persona-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.persona-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.94rem;
}

.persona-feature-list svg {
    flex-shrink: 0;
}

.persona-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-s);
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none;
    transition: all 0.18s ease;
    align-self: flex-start;
}

.btn-business {
    background: #F5A623;
    color: #12110E;
}

.btn-business:hover {
    background: #E59800;
    transform: translateY(-1.5px);
}

.btn-crew {
    background: #181512;
    color: #FFFFFF;
}

.btn-crew:hover {
    background: #332E27;
    transform: translateY(-1.5px);
}

/* ─────────────────────────────────────────────────────────────
   BANNER CTA SECTION
   ───────────────────────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, #181512 0%, #2A241D 100%);
    border-radius: var(--radius-l);
    padding: clamp(40px, 6vw, 64px);
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-block: 40px;
}

.cta-banner h2 {
    color: #FFFFFF;
    font-size: clamp(2rem, 3.6vw, 3rem);
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    max-width: 50ch;
    margin: 0 auto 30px;
}

.cta-banner .btn-instant-crew {
    margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.65);
    padding-block: 36px;
    padding-bottom: max(36px, calc(16px + env(safe-area-inset-bottom, 0px)));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px;
    transition: color 0.18s ease;
}

.footer-links a:hover {
    color: #FFFFFF;
}

@media (max-width: 640px) {
    .site-footer {
        padding-block: 28px;
        padding-bottom: max(28px, calc(14px + env(safe-area-inset-bottom, 0px)));
    }

    .site-footer .wrap {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .footer-links {
        justify-content: center;
        gap: 20px;
    }
}

@media (max-width: 360px) {
    .site-footer {
        padding-block: 22px;
    }

    .site-footer .wrap {
        gap: 10px;
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 14px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE DESIGN BREAKPOINTS
   ───────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .hero-visual {
        order: 1;
    }

    .hero-content {
        order: 2;
        align-items: center;
    }

    .hero-title {
        text-wrap: balance;
    }

    .hero-cta-wrapper {
        align-items: center;
    }

    .hero-trust-row {
        justify-content: center;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 24px;
    }

    .metric-card:nth-child(2) {
        border-right: none;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .persona-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .site-header {
        padding-top: calc(max(26px, env(safe-area-inset-top, 0px)) + 10px);
        padding-bottom: 12px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .btn-instant-crew {
        width: 100%;
        padding: 16px 24px;
        font-size: 1.1rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .metric-card {
        border-right: none;
        border-bottom: 1px solid var(--line-subtle);
        padding-bottom: 16px;
    }

    .metric-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .site-footer .wrap {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 14px;
    }
}

/* ─────────────────────────────────────────────────────────────
   ROLE SELECTION MODAL (Employer vs Applicant Choice Flow)
   Matches website theme with warm paper, amber accents, and clean cards
   ───────────────────────────────────────────────────────────── */

.role-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}

.role-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.role-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 17, 14, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

.role-modal-dialog {
    position: relative;
    z-index: 2;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(18, 17, 14, 0.22), 0 0 0 1px rgba(18, 17, 14, 0.04);
    width: 100%;
    max-width: 460px;
    margin: auto;
    padding: 32px 28px 28px;
    transform: scale(0.95) translateY(14px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s;
    flex-shrink: 0;
}

.role-modal-overlay.open .role-modal-dialog {
    transform: scale(1) translateY(0);
}

.role-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-40);
    cursor: pointer;
    transition: all 0.18s ease;
}

.role-modal-close:hover {
    background: var(--ink-10);
    color: var(--ink);
    transform: rotate(90deg);
}

.role-modal-header {
    margin-bottom: 22px;
    padding-right: 28px;
}

.role-modal-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}

.role-modal-subtitle {
    font-size: 0.86rem;
    color: var(--ink-60);
    line-height: 1.5;
    margin: 0;
}

.role-options-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.role-option-card {
    background: #FAF8F5;
    border: 1.8px solid var(--line);
    border-radius: 18px;
    padding: 18px 20px;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: all 0.2s var(--ease-out);
    user-select: none;
}

.role-option-card:hover {
    background: #FFFFFF;
    border-color: var(--amber-border);
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px -6px rgba(18, 17, 14, 0.08);
}

.role-option-card:focus-visible {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.28);
}

.role-option-card.selected {
    background: #FFFDF9;
    border-color: var(--amber);
    box-shadow: 0 8px 24px -4px rgba(28, 28, 30, 0.09), 0 0 0 1px var(--amber);
    transform: translateY(-1px);
}

.role-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.role-card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-card-icon-box {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.role-card-icon-box svg {
    width: 22px;
    height: 22px;
}

.role-icon-employer {
    background: transparent;
    color: #D97706;
}

.role-icon-applicant {
    background: transparent;
    color: #D97706;
}

.role-option-card:hover .role-card-icon-box {
    transform: scale(1.1);
}

.role-card-radio-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #D1CCC4;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-out);
    flex-shrink: 0;
}

.radio-inner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFFFFF;
    transform: scale(0);
    transition: transform 0.18s var(--ease-out);
}

.role-option-card.selected .role-card-radio-circle {
    border-color: var(--amber);
    background: var(--amber);
}

.role-option-card.selected .radio-inner-dot {
    transform: scale(1);
    background: var(--ink);
}

.role-card-body {
    margin-top: 8px;
}

.role-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.role-card-desc {
    font-size: 0.82rem;
    color: var(--ink-60);
    line-height: 1.45;
    margin-bottom: 12px;
}

.role-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-employer {
    background: transparent;
    color: #1e0c01;
    border: 1px solid #D97706;
}

.badge-employer .badge-icon-bolt {
    color: #D97706;
}

.badge-applicant {
    background: transparent;
    color: #1e0c01;
    border: 1px solid #D97706;
}

.pulse-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #D97706;
    position: relative;
    display: inline-block;
}

.pulse-status-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: #ffaa33;
    animation: pulseDot 2s infinite ease-out;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.btn-role-continue {
    width: 100%;
    margin-top: 22px;
    padding: 15px 24px;
    border-radius: var(--radius-full);
    font-size: 0.96rem;
    font-weight: 700;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: #E8E3DA;
    color: #8C857B;
    cursor: not-allowed;
    transition: all 0.22s var(--ease-out);
    user-select: none;
}

.btn-role-continue svg {
    transition: transform 0.2s var(--ease-out);
}

.btn-role-continue.active {
    background: var(--amber);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 10px 24px -4px rgba(28, 28, 30, 0.2);
}

.btn-role-continue.active:hover {
    background: var(--amber-deep);
    transform: translateY(-1.5px);
    box-shadow: 0 14px 28px -4px rgba(28, 28, 30, 0.25);
}

.btn-role-continue.active:hover svg {
    transform: translateX(4px);
}

.btn-role-continue.active:active {
    transform: translateY(0);
}

.role-modal-footer {
    margin-top: 14px;
    text-align: center;
}

.role-modal-full-login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ink-60);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
    cursor: pointer;
}

.role-modal-full-login-link:hover {
    color: var(--ink);
    text-decoration-color: var(--amber-deep);
}

@media (max-width: 480px) {
    .role-modal-overlay {
        padding: 14px 12px;
    }

    .role-modal-dialog {
        padding: 20px 16px 16px;
        border-radius: 20px;
        max-width: 100%;
    }

    .role-modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .role-modal-header {
        margin-bottom: 12px;
        padding-right: 28px;
    }

    .role-modal-title {
        font-size: 1.15rem;
        line-height: 1.25;
        margin-bottom: 4px;
    }

    .role-modal-subtitle {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .role-options-group {
        gap: 10px;
    }

    .role-option-card {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .role-card-header-left {
        gap: 8px;
    }

    .role-card-icon-box {
        width: 20px;
        height: 20px;
    }

    .role-card-icon-box svg {
        width: 18px;
        height: 18px;
    }

    .role-card-radio-circle {
        width: 20px;
        height: 20px;
    }

    .radio-inner-dot {
        width: 9px;
        height: 9px;
    }

    .role-card-body {
        margin-top: 6px;
    }

    .role-card-title {
        font-size: 0.96rem;
        margin: 0;
    }

    .role-card-desc {
        font-size: 0.76rem;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    .role-card-badge {
        padding: 2px 8px;
        font-size: 0.68rem;
    }

    .btn-role-continue {
        margin-top: 14px;
        padding: 12px 20px;
        font-size: 0.92rem;
    }
}

@media (max-height: 680px) {
    .role-modal-overlay {
        padding: 10px;
    }

    .role-modal-dialog {
        padding: 16px 14px 14px;
        border-radius: 18px;
    }

    .role-modal-header {
        margin-bottom: 10px;
    }

    .role-modal-title {
        font-size: 1.08rem;
        margin-bottom: 2px;
    }

    .role-modal-subtitle {
        font-size: 0.75rem;
    }

    .role-options-group {
        gap: 8px;
    }

    .role-option-card {
        padding: 10px 12px;
    }

    .role-card-header-left {
        gap: 8px;
    }

    .role-card-icon-box {
        width: 18px;
        height: 18px;
    }

    .role-card-icon-box svg {
        width: 16px;
        height: 16px;
    }

    .role-card-title {
        font-size: 0.92rem;
        margin: 0;
    }

    .role-card-body {
        margin-top: 6px;
    }

    .role-card-desc {
        margin-bottom: 6px;
    }

    .btn-role-continue {
        margin-top: 10px;
        padding: 10px 18px;
    }
}

/* ─────────────────────────────────────────────────────────────
   PWA ADD-TO-HOME-SCREEN TOAST NOTIFICATION
   ───────────────────────────────────────────────────────────── */
.install-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    opacity: 0;
    visibility: hidden;
    background: var(--ink);
    color: #FFFFFF;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 16px 36px -6px rgba(18, 17, 14, 0.35);
    z-index: 2000;
    transition: transform 0.28s var(--ease-out), opacity 0.28s var(--ease-out), visibility 0.28s;
    pointer-events: none;
    white-space: nowrap;
}

.install-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.install-toast-icon {
    width: 20px;
    height: 20px;
    color: #10B981;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   INSTALL INSTRUCTIONS MODAL (iOS / Safari / Browser Fallback)
   ───────────────────────────────────────────────────────────── */
.install-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}

.install-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.install-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 17, 14, 0.58);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: auto;
}

.install-modal-dialog {
    position: relative;
    z-index: 2;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(18, 17, 14, 0.22), 0 0 0 1px rgba(18, 17, 14, 0.04);
    width: 100%;
    max-width: 440px;
    padding: 30px 26px 24px;
    transform: scale(0.95) translateY(14px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s;
    text-align: center;
}

.install-modal-overlay.open .install-modal-dialog {
    transform: scale(1) translateY(0);
}

.install-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-40);
    cursor: pointer;
    transition: all 0.18s ease;
}

.install-modal-close:hover {
    background: var(--ink-10);
    color: var(--ink);
    transform: rotate(90deg);
}

.install-modal-app-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    margin: 0 auto 12px;
    display: block;
    box-shadow: 0 8px 20px rgba(28, 28, 30, 0.11);
    border: 1px solid var(--line);
    object-fit: contain;
}

.install-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 6px;
}

.install-modal-subtitle {
    font-size: 0.88rem;
    color: var(--ink-60);
    margin-bottom: 20px;
}

.install-steps-list {
    text-align: left;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.install-step-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--ink-80);
    line-height: 1.45;
}

.install-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--amber);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.install-step-item strong {
    color: var(--ink);
}

.install-step-inline-icon {
    display: inline-flex;
    vertical-align: middle;
    margin-inline: 3px;
    padding: 2px 4px;
    background: #FFFFFF;
    border-radius: 6px;
    border: 1px solid var(--line);
    color: var(--amber-deep);
}

.btn-install-modal-action {
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-full);
    background: var(--amber);
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(28, 28, 30, 0.16);
    transition: all 0.18s ease;
}

.btn-install-modal-action:hover {
    background: var(--amber-deep);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(28, 28, 30, 0.2);
}

@media (max-width: 600px) {
    .nav-actions {
        gap: 8px;
    }

    .nav-install-btn {
        padding: 8px 13px;
        font-size: 0.86rem;
        gap: 5px;
    }

    .nav-login-btn {
        padding: 8px 18px;
        font-size: 0.88rem;
    }
}

@media (max-width: 380px) {
    .nav-install-btn {
        padding: 7px 10px;
        font-size: 0.82rem;
    }

    .nav-login-btn {
        padding: 7px 14px;
        font-size: 0.84rem;
    }
}

/* ---------- Privacy & Terms Policy Modals ---------- */
.privacy-modal-overlay,
.terms-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(20px, env(safe-area-inset-top, 0px)) 16px max(20px, env(safe-area-inset-bottom, 0px));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease-out), visibility 0.25s;
}

.privacy-modal-overlay.open,
.terms-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.privacy-modal-backdrop,
.terms-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 17, 14, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.privacy-modal-dialog,
.terms-modal-dialog {
    position: relative;
    z-index: 2;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    box-shadow: 0 25px 60px -15px rgba(18, 17, 14, 0.3), 0 0 0 1px rgba(18, 17, 14, 0.05);
    width: 100%;
    max-width: 640px;
    /* vh includes the area behind mobile browser toolbars; dvh tracks the visible viewport */
    max-height: min(760px, calc(100vh - 40px));
    max-height: min(760px, calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(14px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s;
}

.privacy-modal-overlay.open .privacy-modal-dialog,
.terms-modal-overlay.open .terms-modal-dialog {
    transform: scale(1) translateY(0);
}

.privacy-modal-header,
.terms-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background: #FFFFFF;
    flex-shrink: 0;
}

.privacy-modal-header-left,
.terms-modal-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.privacy-icon-box,
.terms-icon-box {
    width: 26px;
    height: 40px;
    color: #FFCC00;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.privacy-icon-box svg,
.terms-icon-box svg {
    stroke-width: 2.6;
}

.privacy-modal-title,
.terms-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.25;
    margin: 0;
}

.privacy-modal-subtitle,
.terms-modal-subtitle {
    font-size: 0.78rem;
    color: var(--ink-40);
    margin: 2px 0 0;
}

.privacy-modal-close,
.terms-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-40);
    cursor: pointer;
    transition: all 0.18s ease;
}

.privacy-modal-close:hover,
.terms-modal-close:hover {
    background: var(--ink-10);
    color: var(--ink);
    transform: rotate(90deg);
}

.privacy-modal-body,
.terms-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 22px 24px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    font-size: 0.88rem;
    color: var(--ink-80);
    line-height: 1.6;
}

.privacy-modal-body::-webkit-scrollbar,
.terms-modal-body::-webkit-scrollbar {
    width: 6px;
}

.privacy-modal-body::-webkit-scrollbar-track,
.terms-modal-body::-webkit-scrollbar-track {
    background: var(--paper);
}

.privacy-modal-body::-webkit-scrollbar-thumb,
.terms-modal-body::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 3px;
}

.privacy-modal-body::-webkit-scrollbar-thumb:hover,
.terms-modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--ink-40);
}

.privacy-modal-grid,
.terms-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.privacy-modal-card,
.terms-modal-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
}

.privacy-modal-card h4,
.terms-modal-card h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.privacy-modal-card p,
.terms-modal-card p {
    font-size: 0.76rem;
    color: var(--ink-60);
    margin: 0;
    line-height: 1.4;
}

.privacy-modal-section,
.terms-modal-section {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line-subtle);
}

.privacy-modal-section:last-child,
.terms-modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.privacy-modal-section h3,
.terms-modal-section h3 {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.policy-step {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--amber-light);
    border: 1px solid var(--amber-border);
    color: var(--amber-deep);
    font-size: 0.76rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.privacy-modal-section p,
.terms-modal-section p {
    margin: 0 0 10px;
    color: var(--ink-80);
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.privacy-modal-section p:last-child,
.terms-modal-section p:last-child {
    margin-bottom: 0;
}

.privacy-modal-section>p,
.privacy-modal-section>ul,
.terms-modal-section>p,
.terms-modal-section>ul {
    padding-left: 34px;
}

.privacy-modal-section ul,
.terms-modal-section ul {
    list-style: none;
    margin: 0;
    font-size: 0.84rem;
    color: var(--ink-80);
}

.privacy-modal-section li,
.terms-modal-section li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
}

.privacy-modal-section li::before,
.terms-modal-section li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
}

.privacy-modal-section li:last-child,
.terms-modal-section li:last-child {
    margin-bottom: 0;
}

.policy-inline-link {
    color: var(--amber-deep);
    font-weight: 700;
}

.privacy-modal-footer,
.terms-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    background: var(--paper);
    flex-shrink: 0;
}

.privacy-full-page-link,
.terms-full-page-link {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--amber-deep);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.privacy-full-page-link:hover,
.terms-full-page-link:hover {
    text-decoration: underline;
}

.btn-privacy-confirm,
.btn-terms-confirm {
    padding: 9px 22px;
    border-radius: var(--radius-full);
    background: var(--amber);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(28, 28, 30, 0.16);
    transition: all 0.18s ease;
}

.btn-privacy-confirm:hover,
.btn-terms-confirm:hover {
    background: var(--amber-deep);
    transform: translateY(-1px);
}

.privacy-modal-card h4 svg,
.terms-modal-card h4 svg {
    color: var(--amber-deep);
    flex-shrink: 0;
}

/* Phones: present as a bottom sheet that sits above the browser toolbar and home indicator */
@media (max-width: 600px) {

    .privacy-modal-overlay,
    .terms-modal-overlay {
        align-items: flex-end;
        padding: max(12px, env(safe-area-inset-top, 0px)) 0 0;
    }

    .privacy-modal-dialog,
    .terms-modal-dialog {
        max-width: none;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - max(12px, env(safe-area-inset-top, 0px)) - 12px);
        border-radius: 20px 20px 0 0;
        border-bottom: none;
        transform: translateY(24px);
    }

    .privacy-modal-header,
    .terms-modal-header {
        padding: 16px 16px 14px 18px;
    }

    .privacy-modal-title,
    .terms-modal-title {
        font-size: 1.05rem;
    }

    .privacy-modal-body,
    .terms-modal-body {
        padding: 16px 18px 20px;
    }

    .privacy-modal-grid,
    .terms-modal-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 18px;
    }

    .privacy-modal-section,
    .terms-modal-section {
        margin-bottom: 16px;
        padding-bottom: 14px;
    }

    .privacy-modal-section>p,
    .privacy-modal-section>ul,
    .terms-modal-section>p,
    .terms-modal-section>ul {
        padding-left: 0;
    }

    .privacy-modal-footer,
    .terms-modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
        padding: 12px 18px max(14px, env(safe-area-inset-bottom, 0px));
    }

    .privacy-full-page-link,
    .terms-full-page-link {
        justify-content: center;
        padding: 4px 0;
    }

    .btn-privacy-confirm,
    .btn-terms-confirm {
        width: 100%;
        padding: 12px 22px;
        font-size: 0.95rem;
    }
}