
:root {
    --bg-body: #f4f4f5;
    --bg-paper: #ffffff;
    --bg-soft: #fafafa;
    --text-main: #18181b;
    --text-muted: #52525b;
    --text-light: #71717a;
    --border-light: #e4e4e7;
    --border-dark: #d4d4d8;
    --accent: #40358f;
    --accent-dark: #31256f;
    --accent-bg: #f2f0ff;
    --success: #059669;
    --danger: #dc2626;
    --warning: #b45309;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(circle at top left, rgba(64, 53, 143, 0.10), transparent 32rem),
        var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 34px 20px 48px;
}

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

.site-shell {
    max-width: 1060px;
    margin: 0 auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 auto 22px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(228, 228, 231, 0.9);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
    position: sticky;
    top: 16px;
    z-index: 20;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    white-space: nowrap;
    min-width: 0;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-bg);
}

.brand-logo {
    height: 28px;
    width: auto;
    max-width: 116px;
    display: block;
    border-radius: 6px;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-text {
    font-size: 0.9rem;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: 160ms ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--accent-bg);
    color: var(--accent-dark);
}

.document-wrapper,
.home-wrapper {
    background-color: var(--bg-paper);
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(228, 228, 231, 0.8);
    border-radius: 18px;
}

.document-wrapper {
    max-width: 980px;
    padding: 72px 88px;
}

.home-wrapper {
    max-width: 1060px;
    padding: 74px 78px;
    overflow: hidden;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    background: var(--accent-bg);
    color: var(--accent-dark);
    border: 1px solid rgba(64, 53, 143, 0.14);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

h1, h2, h3 {
    color: var(--text-main);
    line-height: 1.2;
}

h1, h2 { font-family: var(--font-heading); }

h1 {
    font-size: clamp(2.35rem, 4.8vw, 4rem);
    margin-bottom: 0.6rem;
    letter-spacing: -0.035em;
}

.home-title {
    max-width: 780px;
}

.subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.lead {
    max-width: 780px;
    color: var(--text-muted);
    font-size: 1.07rem;
    margin-bottom: 2.2rem;
}

h2 {
    font-size: clamp(1.55rem, 2.6vw, 2rem);
    margin-top: 3.8rem;
    margin-bottom: 1.4rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-light);
    letter-spacing: -0.02em;
}

h3 {
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

p {
    margin-bottom: 1.45rem;
    color: var(--text-muted);
}

strong { color: var(--text-main); font-weight: 700; }
em { color: var(--text-light); }

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
    color: var(--text-muted);
}

li { margin-bottom: 0.55rem; }

hr {
    border: 0;
    height: 1px;
    background: var(--border-light);
    margin: 3rem 0;
}

.meta-header-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 24px;
    background-color: var(--bg-soft);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    margin-bottom: 3rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    font-weight: 700;
}

.meta-value {
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 26px;
}

.role-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 28px;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    transition: 180ms ease;
}

.role-card:hover {
    transform: translateY(-2px);
    border-color: rgba(64, 53, 143, 0.22);
    box-shadow: 0 16px 30px rgba(24, 24, 27, 0.06);
}

.role-card .card-kicker {
    color: var(--accent-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.76rem;
    margin-bottom: 10px;
}

.role-card h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
}

.role-card p {
    font-size: 0.96rem;
    margin-bottom: 18px;
}

.card-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
}

.card-url {
    color: var(--text-light);
    font-size: 0.84rem;
    font-weight: 600;
    word-break: break-word;
}

.card-action {
    color: var(--accent-dark);
    font-weight: 800;
    white-space: nowrap;
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.45rem;
}

.tag {
    background-color: var(--accent-bg);
    color: var(--accent);
    padding: 6px 13px;
    border-radius: 99px;
    font-size: 0.84rem;
    font-weight: 700;
    border: 1px solid rgba(64, 53, 143, 0.12);
}

.tag-neutral {
    background-color: #f4f4f5;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.data-table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-light);
    border-radius: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.91rem;
    min-width: 640px;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

th {
    background-color: #fafafa;
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:last-child td { border-bottom: 0; }
tr:hover td { background-color: #fafafa; }
td { color: var(--text-muted); }

.notice-box {
    background-color: #fafafa;
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 0 12px 12px 0;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.notice-box.funnel {
    border-left-color: var(--text-main);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    letter-spacing: -0.02em;
}

.check-list,
.cross-list {
    list-style: none;
    padding-left: 0;
}

.check-list li,
.cross-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.check-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 900;
}

.cross-list li::before {
    content: "×";
    color: var(--danger);
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.45;
}

.step-list {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.step-list li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.step-list li::before {
    content: counter(step);
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--accent-bg);
    color: var(--accent-dark);
    font-weight: 900;
}

.page-switcher {
    margin-top: 4rem;
    padding: 22px;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.page-switcher-title {
    font-weight: 800;
    margin-bottom: 12px;
}

.switcher-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.switcher-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    background: #fff;
}

.switcher-link:hover,
.switcher-link.active {
    color: var(--accent-dark);
    background: var(--accent-bg);
    border-color: rgba(64, 53, 143, 0.18);
}

.footer-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.86rem;
    margin-top: 22px;
}


.apply-box {
    margin-top: 4rem;
    padding: 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(64, 53, 143, 0.18);
}

.apply-box h2 {
    color: #ffffff;
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
}

.apply-box p {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.35rem;
}

.apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--accent-dark);
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.apply-button:hover {
    transform: translateY(-1px);
}

.funnel-flow {
    display: grid;
    gap: 8px;
    margin: 1.6rem 0;
}

.funnel-step {
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: #fff;
    color: var(--text-muted);
    font-weight: 700;
}

@media (max-width: 1040px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    body { padding: 20px 14px 36px; }
    .site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 auto 22px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(228, 228, 231, 0.9);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
    position: sticky;
    top: 16px;
    z-index: 20;
}
    .nav-links { justify-content: flex-start; }
    .document-wrapper, .home-wrapper { padding: 42px 28px; border-radius: 16px; }
    .meta-header-grid { grid-template-columns: 1fr 1fr; }
    .grid-2-col, .grid-3-col, .card-grid { grid-template-columns: 1fr; gap: 22px; }
    .subtitle { margin-bottom: 2rem; }
    h2 { margin-top: 3rem; }
}

@media (max-width: 520px) {
    .brand-logo {
    height: 28px;
    width: auto;
    max-width: 116px;
    display: block;
    border-radius: 6px;
    object-fit: contain;
    flex: 0 0 auto;
}
    .brand-text {
    font-size: 0.9rem;
    line-height: 1.2;
}
    .meta-header-grid { grid-template-columns: 1fr; }
    .document-wrapper, .home-wrapper { padding: 34px 22px; }
    .nav-link { width: 100%; justify-content: flex-start; }
    .nav-links { width: 100%; flex-direction: column; }
    .card-footer { flex-direction: column; align-items: flex-start; }
}

/* Mobile friendliness override v6
   Keeps the header compact, prevents the nav from becoming a tall vertical block,
   and reduces oversized hero typography on phones. */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

img, video, table {
    max-width: 100%;
}

@media (max-width: 720px) {
    body {
        padding: 12px 10px 30px;
        font-size: 15.5px;
        line-height: 1.65;
        background:
            radial-gradient(circle at top left, rgba(64, 53, 143, 0.09), transparent 21rem),
            var(--bg-body);
    }

    .site-shell {
        width: 100%;
        max-width: 100%;
    }

    .site-nav {
        display: block;
        position: sticky;
        top: 8px;
        width: 100%;
        margin: 0 auto 14px;
        padding: 10px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 10px 24px rgba(24, 24, 27, 0.07);
    }

    .brand-mark {
        display: flex;
        width: 100%;
        align-items: center;
        gap: 8px;
        padding: 2px 4px 9px;
        white-space: normal;
    }

    .brand-logo {
        width: auto !important;
        height: 24px !important;
        max-width: 86px !important;
        border-radius: 5px;
        flex: 0 0 auto;
    }

    .brand-text {
        font-size: 0.86rem;
        line-height: 1.15;
        letter-spacing: -0.015em;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links {
        display: flex;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100%;
        gap: 6px;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        width: auto !important;
        flex: 0 0 auto;
        min-height: 34px;
        padding: 7px 11px;
        border-radius: 999px;
        font-size: 0.8rem;
        line-height: 1.1;
        white-space: nowrap;
        justify-content: center;
        border: 1px solid transparent;
    }

    .nav-link.active {
        border-color: rgba(64, 53, 143, 0.12);
    }

    .document-wrapper,
    .home-wrapper {
        width: 100%;
        padding: 28px 18px;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(24, 24, 27, 0.045);
    }

    .eyebrow {
        font-size: 0.66rem;
        line-height: 1.15;
        padding: 6px 10px;
        letter-spacing: 0.055em;
        margin-bottom: 14px;
    }

    h1 {
        font-size: clamp(2.05rem, 10vw, 2.65rem);
        line-height: 1.04;
        letter-spacing: -0.045em;
        margin-bottom: 0.75rem;
    }

    .home-title {
        max-width: 100%;
    }

    .subtitle {
        font-size: 0.82rem;
        line-height: 1.55;
        letter-spacing: 0.025em;
        margin-bottom: 1.45rem;
        word-spacing: 0.04em;
    }

    .lead {
        font-size: 0.98rem;
        margin-bottom: 1.5rem;
    }

    h2 {
        font-size: 1.45rem;
        margin-top: 2.55rem;
        margin-bottom: 1.1rem;
        padding-bottom: 0.65rem;
    }

    h3 {
        font-size: 1rem;
    }

    p, ul, ol {
        margin-bottom: 1.15rem;
    }

    .meta-header-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
        margin-bottom: 2rem;
        border-radius: 14px;
    }

    .meta-item {
        padding: 10px;
        background: #ffffff;
        border: 1px solid var(--border-light);
        border-radius: 12px;
    }

    .meta-label {
        font-size: 0.62rem;
        line-height: 1.1;
    }

    .meta-value {
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .grid-2-col,
    .grid-3-col,
    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .role-card {
        min-height: auto;
        padding: 20px;
        border-radius: 16px;
    }

    .role-card h2 {
        font-size: 1.45rem;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .data-table-wrapper {
        margin: 1.3rem 0;
        border-radius: 12px;
    }

    table {
        min-width: 560px;
        font-size: 0.84rem;
    }

    th, td {
        padding: 12px;
    }

    .notice-box,
    .page-switcher,
    .apply-box {
        padding: 18px;
        border-radius: 14px;
    }

    .apply-box {
        margin-top: 3rem;
    }

    .apply-button {
        width: 100%;
        min-height: 48px;
    }

    .switcher-links {
        gap: 8px;
    }

    .switcher-link {
        font-size: 0.82rem;
        padding: 9px 11px;
    }
}

@media (max-width: 380px) {
    body {
        padding-left: 8px;
        padding-right: 8px;
    }

    .document-wrapper,
    .home-wrapper {
        padding: 24px 14px;
    }

    .brand-text {
        font-size: 0.78rem;
    }

    .nav-link {
        font-size: 0.76rem;
        padding: 7px 10px;
    }

    .meta-header-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(1.95rem, 10vw, 2.35rem);
    }
}
