:root {
    --green: #7fff00;
    --green-dark: #4ca800;
    --ink: #141714;
    --muted: #5e665e;
    --line: #dfe5df;
    --soft: #f4f7f3;
    --white: #ffffff;
    --danger: #a52727;
    --danger-soft: #fff1f1;
    --shadow: 0 18px 50px rgba(10, 20, 10, 0.09);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(127, 255, 0, 0.12), transparent 30rem),
        #f7f9f6;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: #347700;
    text-underline-offset: 3px;
}

.wrap {
    width: min(1080px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    color: var(--white);
    background: #0f120f;
    border-bottom: 3px solid var(--green);
}

.brand-row,
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-row {
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #0f120f;
    background: var(--green);
    border-radius: 13px;
    font-size: 30px;
    font-weight: 900;
}

.brand strong,
.brand b {
    letter-spacing: 0.035em;
    font-size: 20px;
}

.brand strong {
    color: var(--green);
}

.brand b {
    color: var(--white);
}

.brand small {
    display: block;
    margin-top: -2px;
    color: #cbd2cb;
    font-size: 11px;
    letter-spacing: 0.02em;
}

.secure-label {
    color: #d5dbd5;
    font-size: 14px;
}

.main-content {
    padding-block: 64px 88px;
}

.hero {
    max-width: 850px;
    margin-bottom: 28px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
legend {
    line-height: 1.18;
}

h1 {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: -0.04em;
}

.lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
}

.signature-jump {
    display: inline-flex;
    margin-top: 18px;
    align-items: center;
    justify-content: center;
    padding: 11px 15px;
    color: #0c1607;
    background: var(--green);
    border: 1px solid #62cb00;
    border-radius: 11px;
    font-weight: 850;
    text-decoration: none;
}

.signature-jump:focus-visible,
.signature-jump:hover {
    outline: 3px solid rgba(76, 168, 0, 0.28);
    outline-offset: 3px;
}

.legal-notice,
.error-box,
.card,
.form-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-notice {
    margin-bottom: 24px;
    padding: 20px 22px;
    background: #f0ffe4;
    border-left: 5px solid var(--green-dark);
}

.error-box {
    margin-bottom: 24px;
    padding: 20px 24px;
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #efc4c4;
}

.error-box h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.error-box ul {
    margin: 0;
    padding-left: 22px;
}

.form-card,
.card {
    overflow: hidden;
    background: var(--white);
}

.form-section {
    min-width: 0;
    margin: 0;
    padding: 34px;
    border: 0;
    border-bottom: 1px solid var(--line);
}

.form-section legend {
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

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

.case-selector legend {
    grid-column: 1 / -1;
}

.choice-card {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--soft);
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-card:hover {
    transform: translateY(-1px);
    border-color: #a6d77d;
}

.choice-card:has(input:checked) {
    background: #efffe1;
    border-color: var(--green-dark);
}

.choice-card input,
.check-row input {
    width: 21px;
    height: 21px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--green-dark);
}

.choice-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
}

.choice-card small {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.grid {
    display: grid;
    gap: 20px;
}

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

.full-width {
    grid-column: 1 / -1;
}

.field span {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 750;
}

input,
textarea,
button {
    font: inherit;
}

.field input,
.field textarea {
    width: 100%;
    color: var(--ink);
    background: var(--white);
    border: 1px solid #bfc8bf;
    border-radius: 10px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input {
    min-height: 50px;
    padding: 10px 13px;
}

.field textarea {
    padding: 12px 13px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--green-dark);
    box-shadow: 0 0 0 4px rgba(76, 168, 0, 0.14);
}

.declarations {
    display: grid;
    gap: 12px;
}

.check-row {
    display: flex;
    gap: 13px;
    padding: 15px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.important-check {
    background: #f3ffe9;
    border-color: #c9e9ae;
}

.check-row span {
    font-size: 14px;
}

.policy-link {
    margin: 4px 0 0;
}

.submit-area {
    padding: 30px 34px 34px;
    text-align: center;
}

.order-review {
    margin: 28px 34px 0;
    padding: 24px;
    background: #f3ffe9;
    border: 2px solid var(--green-dark);
    border-radius: 15px;
}

.order-review h2 {
    margin: 0 0 18px;
    font-size: 23px;
}

.order-review dl {
    display: grid;
    margin: 0;
    border-top: 1px solid #c9e9ae;
}

.order-review dl div {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.8fr);
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #c9e9ae;
}

.order-review dt {
    font-size: 13px;
    font-weight: 800;
}

.order-review dd {
    margin: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    color: #0c1607;
    background: var(--green);
    border: 0;
    border-radius: 11px;
    box-shadow: 0 8px 24px rgba(76, 168, 0, 0.2);
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: #70e600;
}

.button:focus-visible {
    outline: 3px solid #1d4d00;
    outline-offset: 3px;
}

.button-secondary {
    color: var(--white);
    background: var(--ink);
    box-shadow: none;
}

.button-secondary:hover {
    background: #2c322c;
}

.submit-area p,
.small {
    color: var(--muted);
    font-size: 13px;
}

.success-card {
    max-width: 760px;
    margin-inline: auto;
    padding: 48px;
    text-align: center;
}

.success-card h1 {
    margin-inline: auto;
    font-size: clamp(30px, 5vw, 46px);
}

.success-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    place-items: center;
    color: #0c1607;
    background: var(--green);
    border-radius: 50%;
    font-size: 42px;
    font-weight: 900;
}

.receipt-box {
    display: grid;
    gap: 5px;
    max-width: 420px;
    margin: 26px auto;
    padding: 17px;
    background: var(--soft);
    border-radius: 12px;
}

.receipt-box span {
    color: var(--muted);
    font-size: 13px;
}

.receipt-box strong {
    font-size: 19px;
    letter-spacing: 0.04em;
}

.site-footer {
    padding-block: 34px;
    color: #cbd2cb;
    background: #0f120f;
    border-top: 3px solid var(--green);
    font-size: 13px;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: var(--green);
}

.site-footer nav {
    display: flex;
    gap: 20px;
}

.legal-page {
    max-width: 940px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 28px;
    align-items: center;
    color: #2f6700;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.legal-document {
    display: grid;
    gap: 18px;
}

.legal-section {
    position: relative;
    padding: 30px 32px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-section::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--green);
    content: "";
}

.legal-section h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -0.025em;
}

.legal-section p:last-child,
.legal-section ul:last-child,
.contact-card p:last-child,
.copy-template p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    padding-left: 22px;
}

.legal-section li + li {
    margin-top: 7px;
}

.section-number {
    display: inline-flex;
    min-width: 38px;
    min-height: 24px;
    margin-bottom: 12px;
    align-items: center;
    justify-content: center;
    color: #122007;
    background: var(--green);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.contact-card,
.copy-template {
    margin: 18px 0;
    padding: 20px 22px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 13px;
    font-style: normal;
}

.copy-template {
    border-left: 5px solid var(--green-dark);
}

.copy-template p {
    margin: 0 0 15px;
}

.highlight-section {
    background: #f4ffe9;
    border-color: #cae8b1;
}

.legal-source {
    color: #edf2ed;
    background: #151915;
    border-color: #151915;
}

.legal-source h2 {
    color: var(--green);
}

.legal-source a {
    color: var(--green);
}

.legal-source .small {
    color: #bdc6bd;
}

.legal-section code {
    padding: 2px 6px;
    background: #e9eee8;
    border-radius: 5px;
    font-size: 0.92em;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.signature-section > p:first-of-type {
    margin-top: 0;
}

.signature-section {
    scroll-margin-top: 16px;
}

.signature-box {
    padding: 18px;
    background: #111711;
    border: 1px solid #2d3d2d;
    border-radius: 16px;
}

.signature-box-head,
.signature-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.signature-box-head {
    margin-bottom: 12px;
    color: #ffffff;
}

.signature-box-head span {
    color: #bdc8bd;
    font-size: 13px;
}

.signature-pad {
    position: relative;
}

.signature-box canvas {
    display: block;
    width: 100%;
    height: clamp(180px, 42vw, 240px);
    background: #ffffff;
    border: 4px solid #7fff00;
    border-radius: 12px;
    cursor: crosshair;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    overscroll-behavior: contain;
}

.signature-box canvas[aria-invalid="true"] {
    border-color: #ff7474;
    box-shadow: 0 0 0 3px rgba(255, 116, 116, 0.22);
}

.signature-hint {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(92%, 420px);
    padding: 12px 14px;
    transform: translate(-50%, -50%);
    color: #334033;
    background: rgba(244, 247, 243, 0.94);
    border: 1px dashed #70bf2d;
    border-radius: 10px;
    font-size: clamp(14px, 3.8vw, 17px);
    font-weight: 850;
    text-align: center;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.signature-hint.is-hidden {
    opacity: 0;
}

.signature-controls {
    margin-top: 12px;
    color: #d3dbd3;
    font-size: 13px;
}

.signature-controls .signed {
    color: #7fff00;
    font-weight: 800;
}

.signature-controls button {
    padding: 9px 12px;
    color: #ffffff;
    background: #252d25;
    border: 1px solid #4b594b;
    border-radius: 9px;
    font: inherit;
    font-weight: 750;
}

.signature-error {
    margin: 12px 0 0;
    color: #ff9696;
    font-weight: 800;
}

[hidden] {
    display: none !important;
}

@media (max-width: 720px) {
    .brand-row,
    .footer-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-row {
        justify-content: center;
        padding-block: 18px;
    }

    .secure-label {
        display: none;
    }

    .main-content {
        padding-block: 42px 64px;
    }

    .case-selector,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }

    .form-section,
    .submit-area,
    .success-card {
        padding: 24px 20px;
    }

    .order-review {
        margin: 20px 20px 0;
        padding: 20px;
    }

    .order-review dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .site-footer nav {
        flex-wrap: wrap;
    }

    .legal-section {
        padding: 24px 21px;
    }

    .legal-section h2 {
        font-size: 21px;
    }

    .signature-box-head,
    .signature-controls {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    body {
        background: #fff;
    }

    .back-link,
    .site-footer,
    .secure-label,
    .legal-section .button {
        display: none !important;
    }

    .main-content {
        padding-block: 24px;
    }

    .legal-section,
    .legal-notice {
        box-shadow: none;
        break-inside: avoid;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
