/* Extracted from resources/views/welcome.blade.php. */
:root {
    color-scheme: light;
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f7fbf8;
    --ink: #121a15;
    --muted: #5f6b62;
    --line: #dce7dd;
    --accent: #087d68;
    --accent-dark: #066450;
    --blue: #2467a8;
    --blue-soft: #eaf3ff;
    --rose: #b74674;
    --peach: #fff1e6;
    --sun: #f6c95b;
    --shadow: 0 18px 50px rgba(20, 43, 32, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
}

.wrap {
    width: min(1210px, calc(100vw - 32px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
}

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

.mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 850;
    box-shadow: 0 8px 24px rgba(8, 125, 104, .22);
}

.brand strong {
    display: block;
    font-size: 16px;
    line-height: 1.15;
}

.brand span span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}

.language-form {
    margin: 0;
}

.language-form select {
    min-height: 40px;
    max-width: 190px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    padding: 8px 10px;
    font: inherit;
    font-weight: 750;
}

.button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    padding: 9px 14px;
    font: inherit;
    font-weight: 780;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.button.primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 26px rgba(8, 125, 104, .22);
}

.button.primary:hover,
.button.primary:focus {
    background: var(--accent-dark);
}

.button:hover,
.button:focus {
    border-color: #b8c8bc;
    outline: 0;
    transform: translateY(-1px);
}

.hero-stage {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.hero-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(36, 103, 168, .055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(36, 103, 168, .055) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: .42;
    pointer-events: none;
}

.hero-stage::after {
    content: "";
    position: absolute;
    right: -80px;
    top: 82px;
    width: min(58vw, 760px);
    height: 520px;
    border: 1px solid #cbe5dc;
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 49.6%, rgba(255, 255, 255, .72) 49.6%, rgba(255, 255, 255, .72) 50.4%, transparent 50.4%),
        linear-gradient(0deg, transparent 49.6%, rgba(255, 255, 255, .72) 49.6%, rgba(255, 255, 255, .72) 50.4%, transparent 50.4%),
        #d9efe7;
    transform: rotate(-5deg);
    box-shadow: var(--shadow);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
    align-items: center;
    gap: 42px;
    padding: 72px 0 58px;
}

.hero-copy {
    position: relative;
    padding: 8px 0;
}

.hero-copy::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 10px;
    width: 4px;
    height: 124px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--blue), transparent);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 580px;
    margin-bottom: 18px;
    font-size: clamp(42px, 4.5vw, 58px);
    line-height: 1.01;
    letter-spacing: 0;
    text-wrap: balance;
}

.hero-text {
    max-width: 620px;
    color: #3e4b43;
    font-size: 18px;
    line-height: 1.66;
}

.hero-seo-summary {
    max-width: 620px;
    margin: 14px 0 0;
    color: #3f4b43;
    font-size: 15px;
    line-height: 1.58;
}

.hero-seo-summary strong {
    font-weight: 850;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(110deg, rgba(255, 255, 255, .96) 0%, rgba(255, 255, 255, .9) 56%, rgba(219, 239, 228, .86) 56%, rgba(219, 239, 228, .92) 100%),
        linear-gradient(0deg, rgba(70, 135, 193, .08), rgba(255, 255, 255, 0));
}

.landing-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
    align-items: center;
    gap: 44px;
    min-height: 560px;
    padding: 74px 0 70px;
}

.landing-copy {
    position: relative;
    padding-left: 34px;
}

.landing-copy h1 {
    max-width: 720px;
    font-size: clamp(28px, 2.5vw, 36px);
    line-height: 1.14;
}

.landing-copy::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 118px;
    border-radius: 999px;
    background: linear-gradient(var(--accent), var(--blue));
}

.landing-preview {
    position: relative;
    overflow: hidden;
    border: 1px solid #cbded2;
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--shadow);
}

.landing-preview::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--blue), var(--rose), var(--sun));
}

.landing-preview-head {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 18px 20px 16px;
    font-size: 18px;
    font-weight: 850;
}

.landing-mini-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-mini-list li {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 18px 20px;
}

.landing-mini-list li:last-child {
    border-bottom: 0;
}

.landing-mini-list span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--accent);
    font-weight: 900;
}

.landing-mini-list strong {
    color: #233129;
    font-size: 15px;
    line-height: 1.4;
}

.landing-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-related {
    padding-top: 6px;
}

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

.landing-link-card {
    display: grid;
    gap: 8px;
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(31, 58, 43, .06);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.landing-link-card:hover,
.landing-link-card:focus {
    transform: translateY(-2px);
    border-color: #b8cdbc;
    box-shadow: 0 18px 40px rgba(31, 58, 43, .1);
}

.landing-link-card strong {
    color: var(--ink);
    font-size: 18px;
    line-height: 1.25;
}

.landing-link-card span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.hero-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hero-flow span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 5px 10px;
    color: #34433a;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(24, 46, 34, .06);
}

.hero-flow i {
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--blue));
}

.hero-flow span:nth-of-type(2) {
    border-color: #cfe0f3;
    background: var(--blue-soft);
}

.hero-flow span:nth-of-type(3) {
    border-color: #ead8c9;
    background: var(--peach);
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.stat {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    padding: 18px;
    box-shadow: 0 14px 34px rgba(31, 58, 43, .08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.stat::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -22px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(8, 125, 104, .08);
}

.stat:nth-child(2)::after {
    background: rgba(36, 103, 168, .08);
}

.stat:nth-child(3)::after {
    background: rgba(183, 70, 116, .08);
}

.stat:hover {
    transform: translateY(-3px);
    border-color: #b8cdbc;
    box-shadow: 0 20px 44px rgba(31, 58, 43, .12);
}

.stat strong {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
    line-height: 1.1;
}

.stat span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.product-preview {
    position: relative;
    border: 1px solid #cbded2;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.product-preview::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--blue), var(--rose), var(--sun));
}

.preview-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 15px 16px 13px;
}

.preview-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 850;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(8, 125, 104, .12);
}

.preview-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.pill {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 5px 9px;
    color: #3f4b43;
    font-size: 12px;
    font-weight: 750;
}

.preview-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 232px;
    min-height: 426px;
}

.preview-table {
    overflow: hidden;
    border-right: 1px solid var(--line);
}

.preview-head,
.preview-row {
    display: grid;
    grid-template-columns: 1.2fr .72fr .62fr .64fr;
    gap: 12px;
    align-items: center;
    padding: 13px 16px;
}

.preview-head {
    background: var(--surface-soft);
    color: #43503f;
    font-size: 12px;
    font-weight: 850;
}

.preview-row {
    border-top: 1px solid var(--line);
    transition: background .2s ease, transform .2s ease;
}

.preview-row:hover {
    transform: translateX(2px);
}

.preview-row.is-picked {
    background: #fff8df;
}

.preview-row.is-break {
    background: var(--blue-soft);
}

.preview-row strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.25;
}

.preview-row span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.age {
    width: max-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    padding: 3px 8px;
    font-size: 12px;
}

.route-mini {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    background:
        linear-gradient(90deg, rgba(36, 103, 168, .08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(36, 103, 168, .08) 1px, transparent 1px),
        #fbfdff;
    background-size: 34px 34px;
    padding: 16px;
}

.route-mini h3 {
    margin: 0;
    font-size: 15px;
}

.route-path {
    position: relative;
    min-height: 220px;
    border: 1px solid #cbdcec;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(8, 125, 104, .11), rgba(255, 255, 255, .94) 48%, rgba(36, 103, 168, .11)),
        #ffffff;
    overflow: hidden;
}

.route-path::before {
    content: "";
    position: absolute;
    left: 34px;
    right: 34px;
    top: 50%;
    height: 3px;
    background: var(--blue);
    transform: rotate(-18deg);
    transform-origin: center;
    opacity: .8;
}

.marker {
    position: absolute;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
    animation: markerPulse 3.8s ease-in-out infinite;
}

.marker.one {
    left: 24px;
    bottom: 36px;
}

.marker.two {
    left: 88px;
    top: 52px;
    background: var(--rose);
    animation-delay: .45s;
}

.marker.three {
    right: 36px;
    top: 36px;
    animation-delay: .9s;
}

@keyframes markerPulse {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.route-caption {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.section {
    padding: 56px 0;
    background: #fff;
}

.section + .section {
    border-top: 1px solid var(--line);
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 22px;
}

.section-head h2 {
    max-width: 680px;
    margin-bottom: 8px;
    font-size: 34px;
    line-height: 1.15;
}

.section-head p {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.58;
}

.rankings-section {
    position: relative;
}

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

.ranking-board {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(24, 46, 34, .07);
}

.ranking-board-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, #f7fbf8, #ffffff);
    padding: 12px 14px;
}

.ranking-board-header h3 {
    margin: 0;
    font-size: 20px;
}

.tour-badge {
    min-width: 44px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.ranking-board.is-women .tour-badge {
    background: var(--rose);
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 34px;
    border-bottom: 1px solid var(--line);
    padding: 6px 14px;
    transition: background .18s ease, transform .18s ease;
}

.ranking-row:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.ranking-row:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.ranking-row:hover {
    background: #f8fcfa;
    transform: translateX(2px);
}

.ranking-rank {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #e8f4f0;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
}

.ranking-board.is-women .ranking-rank {
    background: #f9edf3;
    color: var(--rose);
}

.ranking-player {
    min-width: 0;
}

.ranking-player strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.ranking-player span {
    display: block;
    margin-top: 1px;
    color: var(--muted);
    font-size: 10px;
}

.ranking-points {
    color: #304138;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.ranking-empty {
    padding: 22px 18px;
    color: var(--muted);
    line-height: 1.5;
}

.rankings-updated {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

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

.feature-card {
    min-height: 190px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(24, 46, 34, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: #b8cdbc;
    box-shadow: 0 18px 42px rgba(24, 46, 34, .1);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    line-height: 1.25;
}

.feature-card p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.55;
}

.feature-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 8px;
    background: #e8f4f0;
    color: var(--accent);
    font-weight: 850;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(5) .feature-icon {
    background: var(--blue-soft);
    color: var(--blue);
}

.feature-card:nth-child(3) .feature-icon,
.feature-card:nth-child(6) .feature-icon {
    background: var(--peach);
    color: #a04f2d;
}

.workflow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.workflow::before {
    content: "";
    position: absolute;
    left: 7%;
    right: 7%;
    top: 43px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--blue), var(--rose), var(--sun));
    opacity: .62;
}

.step {
    position: relative;
    z-index: 1;
    min-height: 168px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(24, 46, 34, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.step::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: 8px 8px 0 0;
    background: var(--accent);
}

.step:nth-child(2)::before {
    background: var(--blue);
}

.step:nth-child(3)::before {
    background: var(--rose);
}

.step:nth-child(4)::before {
    background: var(--sun);
}

.step:hover {
    transform: translateY(-4px);
    border-color: #b8cdbc;
    box-shadow: 0 20px 46px rgba(24, 46, 34, .12);
}

.step-num {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 850;
    box-shadow: 0 8px 22px rgba(8, 125, 104, .22);
}

.step:nth-child(2) .step-num {
    background: var(--blue);
    box-shadow: 0 8px 22px rgba(36, 103, 168, .22);
}

.step:nth-child(3) .step-num {
    background: var(--rose);
    box-shadow: 0 8px 22px rgba(183, 70, 116, .2);
}

.step:nth-child(4) .step-num {
    background: #b98117;
    box-shadow: 0 8px 22px rgba(185, 129, 23, .2);
}

.step h3 {
    margin-bottom: 8px;
    font-size: 16px;
}

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

.roles {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 18px;
    align-items: stretch;
}

.role-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(24, 46, 34, .06);
}

.role-panel.accent {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(8, 125, 104, .22), transparent 42%),
        #10231f;
    color: #fff;
}

.role-panel.accent p {
    color: #d8e3de;
}

.role-map {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
    padding-top: 24px;
}

.role-map::before {
    content: "";
    position: absolute;
    left: 16%;
    right: 16%;
    top: 48px;
    height: 2px;
    background: rgba(255, 255, 255, .28);
}

.role-node {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 9px;
    justify-items: center;
    min-height: 126px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    padding: 14px 10px;
    text-align: center;
}

.role-node.is-player {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, .14);
}

.role-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, .86);
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .2);
}

.role-node.is-player .role-avatar {
    background: var(--rose);
}

.role-node.is-parent .role-avatar {
    background: var(--blue);
}

.role-node strong {
    font-size: 14px;
}

.access-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 4px 9px;
    color: #d8e3de;
    font-size: 12px;
    font-weight: 750;
}

.role-panel-list {
    display: grid;
    align-content: stretch;
    padding: 18px;
}

.role-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.role-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 15px;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.role-list li:hover {
    transform: translateX(3px);
    border-color: #b8cdbc;
    box-shadow: 0 14px 28px rgba(24, 46, 34, .08);
}

.role-badge {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f4f0;
    color: var(--accent);
    font-weight: 850;
}

.role-list li:nth-child(2) .role-badge {
    background: var(--peach);
    color: #a04f2d;
}

.role-list li:nth-child(3) .role-badge {
    background: var(--blue-soft);
    color: var(--blue);
}

.role-list strong {
    display: block;
    margin-bottom: 4px;
}

.role-list li > span:not(.role-badge),
.role-list li > span:not(.role-badge) span {
    color: var(--muted);
    line-height: 1.45;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 28px 0;
    color: var(--muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-policy-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-policy-button:hover {
    color: #075f50;
}

.privacy-modal {
    width: min(720px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    border: 0;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(13, 31, 23, .28);
    padding: 0;
}

.privacy-modal::backdrop {
    background: rgba(8, 22, 18, .55);
}

.privacy-modal-panel {
    background: #fff;
    color: var(--ink);
}

.privacy-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    background: #f7fbf8;
    padding: 22px 24px;
}

.privacy-modal-head h2 {
    margin: 0;
    font-size: 26px;
}

.privacy-close-button {
    min-width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.privacy-close-button:hover {
    border-color: #e8b0b0;
    color: #b33f45;
}

.privacy-modal-body {
    display: grid;
    gap: 16px;
    max-height: min(580px, calc(100vh - 170px));
    overflow: auto;
    padding: 24px;
}

.privacy-modal-body section {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.privacy-modal-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.privacy-modal-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

@media (max-width: 1060px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .landing-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-stage::after {
        right: -260px;
        opacity: .5;
    }

    .product-preview {
        max-width: 850px;
    }

    .feature-grid,
    .landing-feature-grid,
    .landing-link-grid,
    .workflow,
    .rankings-layout,
    .roles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow::before {
        display: none;
    }
}

@media (max-width: 720px) {
    .header-inner,
    .section-head,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        justify-content: flex-start;
    }

    .language-form select {
        max-width: min(260px, calc(100vw - 32px));
    }

    .hero-stage {
        min-height: auto;
    }

    .hero-content {
        padding: 42px 0 34px;
    }

    h1 {
        font-size: 38px;
    }

    .landing-copy h1 {
        font-size: 28px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-copy::before,
    .landing-copy::before,
    .hero-flow i {
        display: none;
    }

    .landing-copy {
        padding-left: 0;
    }

    .trust-strip,
    .feature-grid,
    .landing-feature-grid,
    .landing-link-grid,
    .workflow,
    .rankings-layout,
    .roles,
    .preview-body {
        grid-template-columns: 1fr;
    }

    .ranking-list {
        grid-template-columns: 1fr;
    }

    .ranking-row:nth-child(odd) {
        border-right: 0;
    }

    .ranking-row:nth-last-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .preview-table {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .preview-head,
    .preview-row {
        grid-template-columns: 1fr;
    }

    .route-mini {
        min-height: 300px;
    }

    .role-map {
        grid-template-columns: 1fr;
    }

    .role-map::before {
        display: none;
    }

    .role-node.is-player {
        transform: none;
    }
}
