﻿:root {
    color-scheme: light;
    --paper: #f4f7f2;
    --paper-strong: #e8efe8;
    --surface: #fffffb;
    --ink: #06110d;
    --ink-soft: #25332d;
    --muted: #66746d;
    --line: rgba(6, 17, 13, 0.14);
    --line-strong: rgba(6, 17, 13, 0.24);
    --signal: #12a878;
    --signal-dark: #087a61;
    --white: #fffffb;
    --radius: 8px;
    --shadow: 0 24px 70px rgba(6, 17, 13, 0.12);
    --font-heading: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --dark-grid-size: 72px;
    --dark-grid-line: rgba(255, 255, 251, 0.055);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    overflow-anchor: none;
    background: var(--paper);
}

body {
    min-height: 100dvh;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(6, 17, 13, 0.04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(6, 17, 13, 0.035) 1px, transparent 1px),
        var(--paper);
    background-size: 54px 54px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(18, 168, 120, 0.42);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 100;
    transform: translateY(-160%);
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    font-weight: 800;
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.role-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    padding: 14px clamp(22px, 4vw, 80px);
    border-bottom: 1px solid rgba(255, 255, 251, 0.08);
    background: rgba(6, 17, 13, 0.86);
    box-shadow: 0 18px 54px rgba(2, 9, 7, 0.22);
    backdrop-filter: blur(18px);
    pointer-events: none;
}

.role-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
    width: 100%;
    min-height: 52px;
    color: rgba(255, 255, 251, 0.92);
    pointer-events: none;
}

.brand,
.nav-links,
.nav-actions,
.mobile-menu {
    pointer-events: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-family: var(--font-heading);
    font-size: 1.08rem;
    font-weight: 800;
}

.brand-mark {
    display: none;
}

.brand-mark span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--signal);
    box-shadow: 0 0 0 4px rgba(18, 168, 120, 0.16);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.8vw, 38px);
    font-size: 0.94rem;
    font-weight: 800;
}

.nav-links a,
.mobile-menu a,
.footer-links a {
    transition: color 180ms ease;
}

.nav-links a:hover,
.mobile-menu a:hover,
.footer-links a:hover {
    color: var(--signal);
}

.nav-actions {
    display: flex;
    align-items: center;
    grid-column: 3;
    justify-content: end;
    justify-self: end;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

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

.button:active {
    transform: translateY(0);
}

.button-small {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.button-dark {
    color: var(--white);
    background: var(--ink);
    box-shadow: 0 14px 34px rgba(6, 17, 13, 0.18);
}

.button-dark:hover {
    background: #10231c;
}

.button-light {
    border-color: rgba(255, 255, 251, 0.24);
    color: rgba(255, 255, 251, 0.94);
    background: rgba(255, 255, 251, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 251, 0.10);
}

.button-light:hover {
    background: rgba(255, 255, 251, 0.14);
}

.button-signal {
    color: #03100b;
    background: var(--signal);
    box-shadow: inset 0 1px 0 rgba(255, 255, 251, 0.16), 0 18px 42px rgba(18, 168, 120, 0.24);
}

.button-signal:hover {
    background: #1fbd8d;
}

.menu-button {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: rgba(4, 14, 11, 0.72);
    box-shadow: 0 18px 48px rgba(2, 9, 7, 0.18);
    backdrop-filter: blur(14px);
}

.menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px auto;
    background: rgba(255, 255, 251, 0.94);
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button.is-open span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    width: min(420px, calc(100vw - 36px));
    margin: 10px 0 0 auto;
    padding: 16px;
    border-radius: 14px;
    color: var(--white);
    background: rgba(4, 14, 11, 0.96);
    box-shadow: 0 22px 70px rgba(2, 9, 7, 0.34);
    backdrop-filter: blur(18px);
}

.mobile-menu a {
    display: block;
    padding: 13px 4px;
    font-weight: 800;
}

.mobile-menu.is-open {
    display: block;
}

.role-main {
    overflow: hidden;
    min-width: 0;
}

.role-screen {
    position: relative;
    display: grid;
    align-items: center;
    min-width: 0;
    min-height: 84svh;
    padding: clamp(96px, 12vw, 150px) clamp(22px, 6vw, 112px);
}

.role-hero {
    overflow: hidden;
    isolation: isolate;
    min-height: 100svh;
    color: var(--white);
    background:
        linear-gradient(90deg, var(--dark-grid-line) 1px, transparent 1px),
        linear-gradient(180deg, var(--dark-grid-line) 1px, transparent 1px),
        var(--ink);
    background-size: var(--dark-grid-size) var(--dark-grid-size), var(--dark-grid-size) var(--dark-grid-size), auto;
    background-position: 0 var(--dark-grid-y, 0), 0 var(--dark-grid-y, 0), 0 0;
}

.role-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(18, 168, 120, 0.18), transparent 34%),
        linear-gradient(315deg, rgba(207, 131, 88, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(6, 17, 13, 0.10), rgba(6, 17, 13, 0.62));
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
    gap: clamp(34px, 8vw, 120px);
    align-items: end;
    width: min(1400px, 100%);
    margin: 0 auto;
    min-width: 0;
}

.hero-grid > *,
.screen-inner > *,
.form-layout > * {
    min-width: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    color: inherit;
    line-height: 1.05;
    letter-spacing: 0;
}

h1 {
    max-width: 960px;
    margin-top: 0;
    font-size: clamp(2.55rem, 4.35vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

h2 {
    max-width: 980px;
    font-size: clamp(2.45rem, 5.2vw, 5.8rem);
    font-weight: 800;
    text-wrap: balance;
}

h3 {
    font-size: clamp(1.45rem, 2.2vw, 2.25rem);
    font-weight: 800;
}

.hero-copy {
    max-width: 760px;
    margin-top: 28px;
    color: rgba(255, 255, 251, 0.76);
    font-size: clamp(1.06rem, 1.42vw, 1.32rem);
    line-height: 1.72;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: pretty;
}

.hero-actions,
.screen-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.app-download-showcase {
    width: max-content;
    max-width: 860px;
    margin-top: 24px;
}

.download-badge-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.download-badge-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 116px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 180ms ease;
}

.download-badge-link[hidden] {
    display: none !important;
}

.store-badge-link,
.installer-badge-link {
    gap: 6px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 251, 0.16);
    color: var(--white);
    background: #050908;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.badge-google-play {
    font-size: 0.78rem;
}

.download-badge-link:hover {
    opacity: 0.82;
}

.download-badge-link:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 4px;
}

.store-badge-icon,
.installer-badge-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.mini-program-badge-icon {
    width: 18px;
    height: 18px;
}

.role-panel {
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
    padding: 28px;
    border: 1px solid rgba(255, 255, 251, 0.18);
    border-radius: var(--radius);
    background:
        linear-gradient(145deg, rgba(255, 255, 251, 0.105), rgba(255, 255, 251, 0.045)),
        rgba(8, 17, 14, 0.36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 251, 0.12), 0 24px 70px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
}

.panel-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 251, 0.12);
}

.panel-row:last-child {
    border-bottom: 0;
}

.panel-row span {
    color: var(--signal);
    font-family: var(--font-heading);
    font-weight: 900;
}

.panel-row strong {
    color: var(--white);
    font-size: 1rem;
    line-height: 1.5;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.screen-inner {
    display: grid;
    grid-template-columns: minmax(120px, 0.18fr) minmax(0, 0.82fr);
    gap: clamp(26px, 6vw, 90px);
    width: min(1320px, 100%);
    margin: 0 auto;
    min-width: 0;
}

.screen-number {
    color: var(--signal-dark);
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 6rem);
    font-weight: 800;
    line-height: 0.9;
}

.screen-kicker {
    margin-bottom: 18px;
    color: var(--signal-dark);
    font-weight: 900;
}

.screen-copy {
    max-width: 740px;
    margin-top: 28px;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.5vw, 1.32rem);
    line-height: 1.82;
    overflow-wrap: anywhere;
    word-break: normal;
}

.screen-dark {
    color: var(--white);
    background: var(--ink);
}

.screen-dark .screen-copy {
    color: rgba(255, 255, 251, 0.74);
}

.screen-dark .screen-kicker,
.screen-dark .screen-number {
    color: var(--signal);
}

.opportunity-tags,
.standard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 820px;
    margin-top: 36px;
}

.tag,
.standard-item {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 251, 0.72);
    font-weight: 850;
}

.screen-dark .tag,
.screen-dark .standard-item {
    border-color: rgba(255, 255, 251, 0.16);
    color: var(--white);
    background: rgba(255, 255, 251, 0.08);
}

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

.standard-item {
    justify-content: space-between;
    min-height: 76px;
    border-radius: var(--radius);
}

.standard-item::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--signal);
    box-shadow: 0 0 0 5px rgba(18, 168, 120, 0.12);
}

.process-list {
    display: grid;
    max-width: 980px;
    margin-top: 36px;
    border-top: 1px solid var(--line);
}

.process-step {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    min-height: 78px;
    border-bottom: 1px solid var(--line);
}

.process-step span {
    color: var(--signal-dark);
    font-family: var(--font-heading);
    font-weight: 900;
}

.process-step strong {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.2vw, 2.2rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
    word-break: normal;
}

.process-note {
    max-width: 720px;
    margin-top: 26px;
    color: var(--muted);
    font-weight: 800;
}

.cta-screen {
    min-height: 82svh;
    color: var(--white);
    background:
        linear-gradient(90deg, var(--dark-grid-line) 1px, transparent 1px),
        linear-gradient(180deg, var(--dark-grid-line) 1px, transparent 1px),
        var(--ink);
    background-size: var(--dark-grid-size) var(--dark-grid-size), var(--dark-grid-size) var(--dark-grid-size), auto;
    background-position: 0 var(--dark-grid-y, 0), 0 var(--dark-grid-y, 0), 0 0;
}

.application-section {
    min-height: auto;
    padding-top: clamp(86px, 10vw, 132px);
    padding-bottom: clamp(86px, 10vw, 132px);
    background:
        linear-gradient(90deg, rgba(6, 17, 13, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(6, 17, 13, 0.03) 1px, transparent 1px),
        var(--paper);
    background-size: 54px 54px;
}

.embedded-application-layout {
    align-items: center;
}

.application-intro .screen-copy {
    max-width: 620px;
}

.application-section .form-panel {
    background: rgba(255, 255, 251, 0.88);
}

@media (min-width: 1081px) {
    .role-hero {
        min-height: 110svh;
    }

    .role-main > .role-screen:nth-child(2),
    .role-main > .role-screen.screen-dark {
        min-height: 101svh;
    }

    .role-main > .role-screen:nth-child(4),
    .role-main > .role-screen:nth-child(5) {
        min-height: 130svh;
    }

    .site-footer p {
        min-height: 3.2em;
    }
}

.cta-inner {
    position: relative;
    z-index: 2;
    width: min(1160px, 100%);
    margin: 0 auto;
}

.cta-inner p {
    max-width: 680px;
    margin-top: 24px;
    color: rgba(255, 255, 251, 0.72);
    font-size: 1.16rem;
    overflow-wrap: anywhere;
    word-break: normal;
}

.contributors-hero {
    min-height: 90svh;
}

.choice-section {
    padding-top: clamp(76px, 10vw, 124px);
}

.role-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 44px;
    border-top: 1px solid var(--line);
}

.role-choice {
    display: grid;
    gap: 24px;
    min-height: 330px;
    padding: clamp(28px, 4vw, 46px);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 251, 0.52);
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.role-choice:nth-child(2n) {
    border-right: 0;
}

.role-choice:hover {
    color: var(--white);
    background: var(--ink);
    transform: translateY(-2px);
}

.role-choice:hover .choice-label,
.role-choice:hover p,
.role-choice:hover .choice-action {
    color: rgba(255, 255, 251, 0.78);
}

.choice-index {
    color: var(--signal-dark);
    font-family: var(--font-heading);
    font-weight: 900;
}

.choice-label {
    color: var(--muted);
    font-weight: 850;
}

.role-choice p {
    max-width: 520px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    overflow-wrap: anywhere;
    word-break: normal;
}

.choice-action {
    align-self: end;
    color: var(--signal-dark);
    font-weight: 900;
}

.route-flow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin-top: 38px;
    border: 1px solid rgba(255, 255, 251, 0.16);
    border-radius: var(--radius);
    overflow: hidden;
}

.route-flow div {
    min-height: 150px;
    padding: 22px;
    border-right: 1px solid rgba(255, 255, 251, 0.14);
    background: rgba(255, 255, 251, 0.06);
}

.route-flow div:last-child {
    border-right: 0;
}

.route-flow span {
    color: var(--signal);
    font-family: var(--font-heading);
    font-weight: 900;
}

.route-flow strong {
    display: block;
    margin-top: 26px;
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.35;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.app-device-panel {
    display: grid;
    justify-items: center;
    min-width: 0;
}

.app-screen {
    display: grid;
    gap: 0;
    width: min(390px, 100%);
    padding: 22px;
    border: 1px solid rgba(255, 255, 251, 0.16);
    border-radius: 30px;
    background:
        linear-gradient(90deg, rgba(255, 255, 251, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 251, 0.08) 1px, transparent 1px),
        rgba(255, 255, 251, 0.07);
    background-size: 30px 30px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.app-screen-header,
.app-screen-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 78px;
    border-bottom: 1px solid rgba(255, 255, 251, 0.12);
}

.app-screen-header {
    grid-template-columns: 1fr;
    min-height: 96px;
}

.app-screen-row:last-child {
    border-bottom: 0;
}

.app-screen-header span,
.app-screen-row span,
.download-platform {
    color: var(--signal);
    font-family: var(--font-heading);
    font-weight: 900;
}

.app-screen-header strong,
.app-screen-row strong {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.3;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 38px;
}

.creator-download-grid {
    max-width: 1000px;
}

.download-card {
    display: grid;
    gap: 18px;
    min-height: 310px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 251, 0.74);
    box-shadow: var(--shadow);
}

.download-card p {
    color: var(--ink-soft);
    overflow-wrap: anywhere;
    word-break: normal;
}

.download-card .button {
    align-self: end;
    width: 100%;
}

.task-card,
.form-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 251, 0.74);
    box-shadow: var(--shadow);
}

.task-card {
    display: grid;
    gap: 18px;
    min-height: 270px;
    padding: 28px;
}

.task-card .tag {
    width: max-content;
    min-height: 36px;
    font-size: 0.86rem;
}

.task-card p {
    color: var(--ink-soft);
    overflow-wrap: anywhere;
    word-break: normal;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

.task-card .button {
    width: max-content;
    align-self: end;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.7fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: start;
    width: min(1320px, 100%);
    margin: 0 auto;
    min-width: 0;
}

.form-panel {
    display: grid;
    gap: 18px;
    padding: 28px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    color: var(--ink-soft);
    font-weight: 900;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-row input,
.form-row select {
    min-height: 50px;
    padding: 0 14px;
}

.form-row textarea {
    min-height: 150px;
    resize: vertical;
    padding: 13px 14px;
}

.contact-method-grid {
    display: grid;
    grid-template-columns: minmax(150px, 0.38fr) minmax(0, 1fr);
    gap: 10px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: rgba(18, 168, 120, 0.66);
    box-shadow: 0 0 0 4px rgba(18, 168, 120, 0.12);
    outline: 0;
}

.custom-select {
    position: relative;
    min-width: 0;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 0 42px 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    text-align: left;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.custom-select-trigger::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(7, 17, 14, 0.62);
    border-bottom: 2px solid rgba(7, 17, 14, 0.62);
    transform: translateY(-65%) rotate(45deg);
}

.custom-select-trigger span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
    border-color: rgba(18, 168, 120, 0.66);
    box-shadow: 0 0 0 4px rgba(18, 168, 120, 0.12);
    outline: 0;
}

.custom-select.is-invalid .custom-select-trigger {
    border-color: rgba(191, 65, 54, 0.70);
    box-shadow: 0 0 0 4px rgba(191, 65, 54, 0.10);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 40;
    max-height: min(284px, 46dvh);
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 24px 50px rgba(10, 20, 16, 0.16);
    overflow-y: auto;
}

.custom-select-option {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    font-weight: 700;
}

.custom-select-option:hover,
.custom-select-option.is-active,
.custom-select-option[aria-selected="true"] {
    color: #06110d;
    background: rgba(18, 168, 120, 0.12);
}

.form-status {
    min-height: 24px;
    color: var(--signal-dark);
    font-weight: 900;
}

.site-footer {
    position: relative;
    width: 100%;
    margin: 0;
    margin-top: 0 !important;
    padding: clamp(32px, 5vw, 56px) clamp(22px, 6vw, 78px);
    color: rgba(255, 255, 251, 0.92);
    background:
        linear-gradient(90deg, var(--dark-grid-line) 1px, transparent 1px),
        linear-gradient(180deg, var(--dark-grid-line) 1px, transparent 1px),
        var(--ink);
    background-size: var(--dark-grid-size) var(--dark-grid-size), var(--dark-grid-size) var(--dark-grid-size), auto;
    background-position: 0 var(--dark-grid-y, 0), 0 var(--dark-grid-y, 0), 0 0;
}

.footer-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: start;
    gap: clamp(20px, 4vw, 52px);
    width: min(1320px, 100%);
    margin: 0 auto;
}

.site-footer .brand {
    color: #f7f6ee;
}

.site-footer p {
    max-width: 430px;
    margin-top: 14px;
    color: rgba(255, 255, 251, 0.62);
    line-height: 1.58;
}

.footer-locale {
    display: flex;
    justify-content: flex-end;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.language-button {
    min-width: 46px;
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 255, 251, 0.84);
    background: transparent;
    font-weight: 800;
    transition: color 160ms ease, background 160ms ease;
}

.language-button:hover {
    color: #f6f2e8;
    background: rgba(255, 255, 251, 0.10);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: clamp(16px, 2.2vw, 28px);
    color: rgba(255, 255, 251, 0.68);
    font-weight: 800;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
}

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

.footer-actions {
    display: flex;
    justify-content: flex-end;
}

.site-footer .button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    color: rgba(255, 255, 251, 0.92);
    border-color: rgba(255, 255, 251, 0.12);
    background: rgba(255, 255, 251, 0.08);
    box-shadow: none;
}

.site-footer .button:hover {
    border-color: rgba(255, 255, 251, 0.20);
    background: rgba(255, 255, 251, 0.12);
    box-shadow: none;
}

.footer-legal {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    padding-top: 18px;
    color: rgba(255, 255, 251, 0.50);
    font-size: 0.86rem;
    font-weight: 800;
}

.footer-copyright {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.footer-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
}

.footer-legal a:hover {
    color: #f7f6ee;
}

@media (max-width: 1080px) {
    .role-nav {
        grid-template-columns: auto 1fr auto;
    }

    .hero-grid,
    .form-layout {
        grid-template-columns: 1fr;
    }

    .role-panel {
        max-width: 620px;
    }

    .screen-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .standard-grid,
    .task-grid,
    .download-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-flow {
        grid-template-columns: 1fr;
    }

    .route-flow div {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 251, 0.14);
    }

    .route-flow div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 15px;
        background-size: 42px 42px;
    }

    .role-header {
        position: static;
        padding: 14px 16px;
    }

    .role-nav {
        gap: 14px;
    }

    .role-header .nav-links {
        display: none;
    }

    .role-header .nav-actions {
        gap: 8px;
    }

    .role-header .menu-button {
        display: block;
    }

    .role-header .button-small {
        min-height: 38px;
        padding: 0 13px;
        font-size: 0.82rem;
    }

    .role-screen {
        min-height: auto;
        padding: 86px 20px;
    }

    .hero-grid,
    .screen-inner,
    .form-layout,
    .cta-inner {
        width: 100%;
        max-width: calc(100vw - 40px);
    }

    .hero-copy,
    .role-panel {
        max-width: calc(100vw - 40px);
    }

    .role-hero {
        min-height: auto;
        padding: 44px 20px 64px;
    }

    h1 {
        font-size: clamp(2.05rem, 8.8vw, 3.1rem);
        line-height: 1.12;
    }

    h2 {
        font-size: clamp(2.1rem, 10vw, 3.1rem);
        line-height: 1.12;
    }

    .hero-copy,
    .screen-copy {
        font-size: 1.04rem;
    }

    .hero-actions,
    .screen-actions {
        flex-direction: column;
        margin-top: 30px;
    }

    .hero-actions .button,
    .screen-actions .button,
    .task-card .button {
        width: 100%;
    }

    .role-panel {
        padding: 20px;
    }

    .panel-row {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .opportunity-tags,
    .standard-grid,
    .task-grid,
    .download-grid,
    .role-choice-grid {
        grid-template-columns: 1fr;
    }

    .app-download-showcase {
        display: flex;
        justify-content: center;
        width: 100%;
        max-width: min(360px, calc(100vw - 40px));
        margin-top: 18px;
        margin-right: auto;
        margin-left: auto;
        overflow: visible;
    }

    .download-badge-row {
        gap: 8px;
    }

    .download-badge-row.is-device-filtered {
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 14px;
    }

    .download-badge-link {
        height: 34px;
    }

    .download-badge-row.is-device-filtered .download-badge-link {
        width: 56px;
        min-width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 999px;
        background: transparent;
        box-shadow: none;
    }

    .download-badge-row.is-device-filtered .download-badge-link span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .store-badge-link,
    .installer-badge-link {
        width: 116px;
        padding: 0 8px;
        font-size: 0.82rem;
    }

    .store-badge-icon,
    .installer-badge-icon {
        width: 16px;
        height: 16px;
    }

    .download-badge-row.is-device-filtered .store-badge-icon,
    .download-badge-row.is-device-filtered .installer-badge-icon {
        width: 28px;
        height: 28px;
        filter: none;
    }

    .download-badge-row.is-device-filtered .mini-program-badge-icon {
        width: 42px;
        height: 42px;
    }

    .download-badge-row.is-device-filtered .apple-badge-icon {
        width: 34px;
        height: 34px;
        filter: brightness(0) invert(1);
    }

    .download-badge-row.is-device-filtered .google-play-badge-icon {
        width: 37px;
        height: 42px;
        transform: translateX(1px);
    }

    .role-choice,
    .role-choice:nth-child(2n) {
        min-height: 260px;
        border-right: 0;
    }

    .process-step {
        grid-template-columns: 54px minmax(0, 1fr);
        min-height: 72px;
    }

    .form-panel {
        padding: 20px;
    }

    .contact-method-grid {
        grid-template-columns: 1fr;
    }

    .custom-select-menu {
        position: static;
        max-height: min(320px, calc(100dvh - 160px));
        margin-top: 8px;
        box-shadow: none;
    }

    .site-footer {
        padding: 30px 22px 26px;
    }

    .footer-shell {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 0 18px;
        width: 100%;
    }

    .footer-brand {
        order: 1;
        grid-column: 1;
        min-width: 0;
    }

    .footer-locale {
        order: 2;
        grid-column: 2;
        justify-content: flex-end;
    }

    .site-footer .language-switcher {
        min-height: 34px;
    }

    .site-footer .language-button {
        min-width: 42px;
        min-height: 28px;
        font-size: 0.76rem;
    }

    .site-footer .brand {
        min-height: 32px;
        font-size: 1.04rem;
    }

    .site-footer p {
        max-width: 24rem;
        margin-top: 8px;
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .footer-links {
        order: 3;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 4px 14px;
        margin-top: 22px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 251, 0.10);
        font-size: 0.92rem;
    }

    .footer-links a {
        min-height: 30px;
    }

    .footer-actions {
        order: 4;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding-top: 18px;
    }

    .site-footer .button {
        justify-content: center;
        width: 100%;
        min-height: 42px;
        padding: 0 12px;
        border-radius: 14px;
        font-size: 0.92rem;
    }

    .footer-actions .button:only-child {
        grid-column: 1 / -1;
    }

    .footer-legal {
        order: 5;
        grid-column: 1 / -1;
        align-items: flex-start;
        justify-content: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-top: 20px;
        padding-top: 16px;
        font-size: 0.84rem;
    }

    .footer-legal-links {
        justify-content: flex-start;
        gap: 18px;
        width: auto;
    }

    .footer-legal a {
        min-height: 26px;
    }
}

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