/* Home landing page */
.home-page {
    display: block;
    width: 100%;
    padding-top: clamp(40px, 8vh, 96px);
    padding-bottom: clamp(24px, 6vh, 72px);
}

.home-layout {
    --surface-border: rgba(255, 255, 255, 0.18);
    --surface-shadow: 0 24px 60px rgba(19, 17, 46, 0.26);
    --panel-radius: 24px;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.15fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: center;
}

.home-brand-panel {
    padding: clamp(22px, 3vw, 34px);
    border-radius: var(--panel-radius);
    border: 1px solid var(--surface-border);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    box-shadow: var(--surface-shadow);
    color: #fff;
    backdrop-filter: blur(8px);
}

.home-brand-panel .logo-section {
    margin-bottom: 18px;
}

.home-brand-panel .logo {
    margin-bottom: 0;
    text-align: center;
}

.home-brand-panel .logo-image {
    max-width: min(220px, 55vw);
    max-height: 128px;
}

.home-brand-panel .reminder {
    margin: 25px 30px;
    line-height: 1.4em;
}

.hero-copy {
    text-align: left;
}

.hero-kicker {
    margin: 0 0 10px;
    color: #f4d27a;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    line-height: 1.2;
    font-weight: 700;
}

.hero-copy > p:last-child,
.hero-copy p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    font-size: 1rem;
}

.hero-actions {
    margin-top: 22px;
    text-align: center;
}

.start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, #4f8fe8 0%, #3d6ee3 100%);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 24px rgba(42, 79, 188, 0.34);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(42, 79, 188, 0.4);
    background: linear-gradient(135deg, #5b9bf0 0%, #4575ea 100%);
}

.start-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.55);
    outline-offset: 2px;
}

.welcome-section {
    padding: clamp(24px, 3vw, 36px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--panel-radius);
    box-shadow: var(--surface-shadow);
}

.candidate-flow-panel {
    display: grid;
    gap: 18px;
    align-content: start;
}

.candidate-flow-hero {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e8ecf7;
    background: #edf2fb;
    aspect-ratio: 16 / 9;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.candidate-flow-hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.candidate-flow-header {
    text-align: left;
}

.candidate-flow-kicker {
    margin: 0 0 8px;
    color: #5b6ca8;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.candidate-flow-header h2 {
    margin: 0 0 8px;
    color: #1f2430;
    font-size: clamp(1.3rem, 1.6vw, 1.65rem);
    line-height: 1.25;
    font-weight: 700;
}

.candidate-flow-header > p:last-child {
    margin: 0;
    color: #5f6677;
    line-height: 1.65;
    font-size: 0.95rem;
}

.candidate-flow-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.candidate-flow-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid #e9edf7;
    background: linear-gradient(180deg, #fbfcff 0%, #f7f9ff 100%);
}

.candidate-flow-step-index {
    min-width: 62px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #44569a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.candidate-flow-step-title {
    margin: 0 0 6px;
    color: #1f2430;
    font-size: 0.98rem;
    line-height: 1.35;
    font-weight: 700;
}

.candidate-flow-step-desc {
    margin: 0;
    color: #60697c;
    font-size: 0.89rem;
    line-height: 1.6;
}

.candidate-flow-note {
    margin: -2px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f4f7ff;
    border: 1px dashed #dbe4fb;
    color: #51607f;
    font-size: 0.88rem;
    line-height: 1.55;
}

.candidate-flow-attribution {
    color: #7a8294;
    font-size: 0.78rem;
    line-height: 1.5;
}

.candidate-flow-attribution a {
    color: #5a6cc1;
    text-decoration: none;
}

.candidate-flow-attribution a:hover {
    text-decoration: underline;
}

.candidate-flow-attribution a:focus-visible {
    outline: 2px solid #8ea4ff;
    outline-offset: 2px;
    border-radius: 4px;
}

.feature-panel-header {
    margin-bottom: 20px;
    text-align: left;
}

.feature-panel-header h2 {
    margin: 0 0 8px;
    color: #1f2430;
    font-size: clamp(1.35rem, 1.7vw, 1.8rem);
    font-weight: 700;
}

.feature-panel-header p {
    margin: 0;
    color: #5f6677;
    line-height: 1.6;
    font-size: 0.98rem;
}

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

.feature-card {
    padding: 16px;
    border-radius: 14px;
    background: #f7f8fc;
    border: 1px solid #eceff7;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: #dfe6ff;
    box-shadow: 0 10px 18px rgba(40, 52, 98, 0.08);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eef3ff 0%, #f4f0ff 100%);
    font-size: 1.35rem;
    line-height: 1;
}

.feature-title {
    margin-bottom: 8px;
    color: #1f2430;
    font-size: 1rem;
    font-weight: 700;
}

.feature-desc {
    color: #5f6677;
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 960px) {
    .home-page {
        padding-top: 32px;
    }

    .home-layout {
        grid-template-columns: 1fr;
        max-width: 760px;
        align-items: stretch;
    }

    .home-brand-panel .logo-image {
        max-width: 180px;
    }
}

@media (max-width: 640px) {
    .home-brand-panel,
    .welcome-section {
        border-radius: 18px;
        padding: 18px;
    }

    .hero-copy > p:last-child,
    .hero-copy p {
        max-width: none;
        font-size: 0.95rem;
    }

    .start-btn {
        width: 100%;
    }

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

    .feature-card {
        padding: 14px;
    }

    .candidate-flow-panel {
        gap: 14px;
    }

    .candidate-flow-hero {
        aspect-ratio: 4 / 3;
    }

    .candidate-flow-step {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .candidate-flow-step-index {
        min-width: 0;
        width: fit-content;
    }

    .candidate-flow-step-title {
        font-size: 0.95rem;
    }

    .candidate-flow-step-desc,
    .candidate-flow-note {
        font-size: 0.85rem;
    }

    .candidate-flow-attribution {
        font-size: 0.74rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .start-btn,
    .feature-card {
        transition: none;
    }

    .start-btn:hover,
    .feature-card:hover {
        transform: none;
    }
}
