@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-500.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-600.ttf") format("truetype");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-800.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --brand-100: #f0fdf4;
    --brand-500: #22c55e;
    --brand-600: #16a34a;
    --brand-700: #15803d;
    --navy-900: #0f172a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --rose-500: #f43f5e;
}

* {
    box-sizing: border-box;
}

html {
    font-family: "Inter", Arial, sans-serif;
    background: var(--slate-50);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--slate-800, #1e293b);
    background: linear-gradient(135deg, var(--slate-50), var(--slate-100));
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button {
    border: 0;
}

.page-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lead-card {
    position: relative;
    width: 100%;
    max-width: 576px;
    overflow: hidden;
    padding: 40px;
    border: 1px solid var(--slate-100);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 22px 52px rgba(148, 163, 184, 0.25);
}

.lead-header {
    margin-bottom: 32px;
}

.brand-logo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 22px;
}

h1 {
    margin: 0;
    color: var(--navy-900);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.lead-header p {
    margin: 6px 0 0;
    color: var(--slate-500);
    font-size: 14px;
    line-height: 1.5;
}

#lead-form {
    display: grid;
    gap: 20px;
}

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

.field-group {
    min-width: 0;
}

.field-group > label {
    display: block;
    margin-bottom: 6px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.4;
    text-transform: uppercase;
}

.field-group > label span,
.required-note {
    color: var(--rose-500);
}

.field-group > label small {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.input-wrap {
    position: relative;
}

.input-wrap svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--slate-400);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    outline: none;
    background: var(--slate-50);
    color: var(--slate-800, #1e293b);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.input-wrap input::placeholder {
    color: var(--slate-400);
}

.input-wrap input:hover {
    border-color: var(--slate-300);
}

.input-wrap input:focus {
    border-color: var(--brand-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.input-wrap input[aria-invalid="true"] {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12);
}

.field-error {
    min-height: 0;
    margin: 5px 0 0;
    color: #be123c;
    font-size: 11px;
    line-height: 1.35;
}

.field-error:empty {
    display: none;
}

.divider {
    height: 1px;
    margin: -4px 0 0;
    background: var(--slate-100);
}

.consent-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--slate-600);
    cursor: pointer;
    font-size: 12px;
    line-height: 1.55;
}

.consent-row input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.checkbox-box {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    margin-top: 2px;
    border: 2px solid var(--slate-300);
    border-radius: 5px;
    background: #fff;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.checkbox-box svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.6;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 120ms ease, transform 120ms ease;
}

.consent-row:hover .checkbox-box {
    border-color: var(--slate-400);
}

.consent-row input:focus-visible + .checkbox-box {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.consent-row input:checked + .checkbox-box {
    border-color: var(--brand-500);
    background: var(--brand-500);
}

.consent-row input:checked + .checkbox-box svg {
    opacity: 1;
    transform: scale(1);
}

.consent-row input[aria-invalid="true"] + .checkbox-box {
    border-color: var(--rose-500);
}

.privacy-link {
    display: inline;
    padding: 0;
    color: var(--brand-600);
    background: transparent;
    cursor: pointer;
    font-size: inherit;
    font-weight: 700;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-link:hover,
.privacy-link:focus-visible {
    color: var(--brand-700);
}

.submit-button {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    padding: 14px 22px;
    border-radius: 16px;
    background: var(--brand-600);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(34, 197, 94, 0.2);
    transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.submit-button:hover {
    background: var(--brand-700);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.submit-button:active {
    transform: translateY(1px);
}

.submit-button:focus-visible {
    outline: 3px solid rgba(34, 197, 94, 0.3);
    outline-offset: 3px;
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.submit-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.required-caption {
    margin: -8px 0 0;
    color: var(--slate-400);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.result-state {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
    text-align: center;
}

.result-state[hidden] {
    display: none;
}

.result-icon {
    display: grid;
    width: 80px;
    height: 80px;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-600);
}

.result-icon.error {
    background: #fff1f2;
    color: #e11d48;
}

.result-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}

.result-state h2 {
    margin: 0 0 8px;
    color: var(--navy-900);
    font-size: 24px;
    font-weight: 800;
}

.result-state p {
    max-width: 380px;
    margin: 0 0 24px;
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.6;
}

.result-state button {
    padding: 10px 24px;
    border-radius: 12px;
    background: var(--slate-100);
    color: var(--slate-700);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
}

.modal[hidden] {
    display: none;
}

.modal-panel {
    display: flex;
    width: 100%;
    max-width: 896px;
    height: 85vh;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--slate-100);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
    animation: modal-in 180ms ease-out;
}

.modal-header,
.modal-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 16px 24px;
}

.modal-header {
    justify-content: space-between;
    border-bottom: 1px solid var(--slate-100);
    background: rgba(248, 250, 252, 0.6);
}

.modal-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header span {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-100);
    color: var(--brand-700);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-header h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: 18px;
    font-weight: 800;
}

.modal-close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: transparent;
    color: var(--slate-400);
    cursor: pointer;
}

.modal-close:hover {
    background: var(--slate-100);
    color: var(--slate-600);
}

.modal-close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.modal-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 34px 40px;
    background: var(--slate-50);
    color: var(--slate-600);
    font-size: 14px;
    line-height: 1.65;
}

.privacy-intro h3 {
    margin: 0 0 5px;
    color: var(--navy-900);
    font-size: 24px;
    font-weight: 800;
}

.privacy-intro p {
    margin: 3px 0;
    color: var(--brand-600);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.modal-content section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-200);
}

.modal-content h4 {
    display: inline-block;
    margin: 0 0 12px;
    padding: 3px 8px;
    border-radius: 5px;
    background: var(--slate-200);
    color: var(--slate-500);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.modal-content h5 {
    margin: 14px 0 3px;
    color: var(--slate-700);
    font-size: 14px;
    font-weight: 700;
}

.modal-content p {
    margin: 0 0 8px;
}

.modal-content ul {
    margin: 7px 0 0;
    padding-left: 22px;
}

.modal-content a {
    color: #2563eb;
}

.modal-footer {
    justify-content: flex-end;
    border-top: 1px solid var(--slate-100);
    background: #fff;
}

.modal-footer button {
    padding: 10px 24px;
    border-radius: 12px;
    background: var(--brand-600);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

@keyframes modal-in {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 639px) {
    .page-shell {
        align-items: flex-start;
        padding: 16px;
    }

    .lead-card {
        padding: 24px;
        border-radius: 22px;
    }

    .lead-header {
        margin-bottom: 28px;
        text-align: center;
    }

    .brand-logo {
        margin-bottom: 20px;
    }

    .two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal {
        padding: 16px;
    }

    .modal-panel {
        height: 90vh;
        border-radius: 20px;
    }

    .modal-header,
    .modal-footer {
        padding: 14px 16px;
    }

    .modal-header > div {
        display: block;
    }

    .modal-header span {
        display: inline-block;
        margin-bottom: 4px;
    }

    .modal-header h2 {
        font-size: 16px;
    }

    .modal-content {
        padding: 26px 20px;
    }
}

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