:root {
    --ink: #151816;
    --ink-soft: #323834;
    --paper: #f6f3ec;
    --paper-bright: #fffefa;
    --line: rgba(21, 24, 22, 0.16);
    --redfish: #8a241c;
    --redfish-deep: #541612;
    --water: #234a4b;
    --water-light: #6d8d88;
    --sand: #d7c5a1;
    --success: #205c3a;
    --danger: #8a241c;
    --shadow: 0 24px 70px rgba(22, 27, 24, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 5%, rgba(138, 36, 28, 0.07), transparent 30rem),
        radial-gradient(circle at 85% 25%, rgba(35, 74, 75, 0.08), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, var(--paper) 48%, #ece8df 100%);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

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

a {
    color: var(--redfish-deep);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--redfish);
}

.waterline {
    height: 7px;
    background:
        linear-gradient(90deg, var(--redfish-deep), var(--redfish) 22%, var(--water) 57%, var(--ink));
}

.site-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 72px;
}

.hero {
    text-align: center;
    padding: 8px 0 58px;
}

.logo-link {
    display: inline-block;
    width: min(760px, 100%);
}

.logo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    mix-blend-mode: multiply;
}

.upgrade-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px auto 26px;
    padding: 10px 16px;
    border: 1px solid rgba(138, 36, 28, 0.28);
    border-radius: 999px;
    color: var(--redfish-deep);
    background: rgba(255, 254, 250, 0.84);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    box-shadow: 0 10px 28px rgba(84, 22, 18, 0.08);
}

.pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--redfish);
    box-shadow: 0 0 0 0 rgba(138, 36, 28, 0.5);
    animation: pulse 2.2s infinite;
}

@keyframes pulse {
    70% { box-shadow: 0 0 0 9px rgba(138, 36, 28, 0); }
    100% { box-shadow: 0 0 0 0 rgba(138, 36, 28, 0); }
}

.hero h1,
.form-heading h2,
.legal-card h1,
.legal-card h2 {
    font-family: Georgia, "Times New Roman", serif;
}

.hero h1 {
    max-width: 850px;
    margin: 0 auto 15px;
    font-size: clamp(2.15rem, 6vw, 4.7rem);
    line-height: 0.98;
    font-weight: 500;
    letter-spacing: -0.045em;
}

.intro {
    max-width: 760px;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.contact-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(760px, 100%);
    margin: 34px auto 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 254, 250, 0.72);
    box-shadow: 0 14px 38px rgba(22, 27, 24, 0.08);
}

.contact-strip a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
    padding: 18px 22px;
    color: var(--ink);
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

.contact-strip a + a {
    border-left: 1px solid var(--line);
}

.contact-strip a:hover {
    color: var(--paper-bright);
    background: var(--ink);
}

.contact-strip span {
    color: var(--water);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-strip a:hover span {
    color: var(--sand);
}

.contact-strip strong {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.form-section {
    position: relative;
    padding: clamp(26px, 5vw, 58px);
    border: 1px solid rgba(21, 24, 22, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 254, 250, 0.93);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.form-section::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    right: -105px;
    top: -105px;
    border-radius: 50%;
    border: 38px solid rgba(138, 36, 28, 0.05);
    pointer-events: none;
}

.form-heading {
    max-width: 720px;
    margin-bottom: 34px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--redfish);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.form-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 500;
    line-height: 1.05;
}

.form-heading p:last-child {
    margin: 0;
    color: var(--ink-soft);
}

.notice {
    margin: 0 0 28px;
    padding: 15px 17px;
    border-left: 5px solid currentColor;
    border-radius: 10px;
    font-weight: 700;
}

.notice-success {
    color: var(--success);
    background: rgba(32, 92, 58, 0.1);
}

.notice-error {
    color: var(--danger);
    background: rgba(138, 36, 28, 0.1);
}

.charter-form {
    position: relative;
    z-index: 1;
}

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

.field {
    position: relative;
    margin-bottom: 20px;
}

.field label,
.captcha-box label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.025em;
}

.field label span,
.captcha-box label span,
.required-note span {
    color: var(--redfish);
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(21, 24, 22, 0.2);
    border-radius: 11px;
    color: var(--ink);
    background: #ffffff;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input,
select {
    height: 52px;
    padding: 0 14px;
}

textarea {
    min-height: 145px;
    padding: 13px 14px 34px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--water);
    box-shadow: 0 0 0 4px rgba(35, 74, 75, 0.13);
}

.character-count {
    position: absolute;
    right: 13px;
    bottom: 10px;
    color: #6b706d;
    font-size: 0.72rem;
}

.captcha-box {
    margin: 5px 0 22px;
    padding: 20px;
    border: 1px dashed rgba(35, 74, 75, 0.42);
    border-radius: 14px;
    background: rgba(35, 74, 75, 0.055);
}

.captcha-box legend {
    padding: 0 8px;
    color: var(--water);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.captcha-box input {
    max-width: 150px;
}

.captcha-box p {
    display: inline-block;
    margin: 0 0 0 12px;
    color: var(--ink-soft);
    font-size: 0.82rem;
}

.consent-row {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    margin: 0 0 24px;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.consent-row input {
    width: 19px;
    height: 19px;
    margin-top: 3px;
    accent-color: var(--redfish);
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, var(--redfish-deep), var(--redfish));
    box-shadow: 0 14px 30px rgba(84, 22, 18, 0.23);
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.03em;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(84, 22, 18, 0.3);
}

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

.submit-button svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.required-note {
    display: inline-block;
    margin: 0 0 0 14px;
    color: #6b706d;
    font-size: 0.76rem;
}

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

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 34px max(22px, calc((100vw - 1120px) / 2));
    color: rgba(255,255,255,0.78);
    background: var(--ink);
    font-size: 0.82rem;
}

.site-footer > div {
    display: flex;
    flex-direction: column;
}

.site-footer strong {
    color: #fff;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.site-footer p {
    margin: 0;
    text-align: right;
}

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

/* Legal pages */
.legal-page {
    background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
}

.legal-shell {
    width: min(900px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.legal-logo-link {
    display: block;
    width: min(520px, 90%);
    margin: 0 auto 18px;
}

.legal-logo {
    display: block;
    width: 100%;
    height: auto;
    mix-blend-mode: multiply;
}

.legal-card {
    padding: clamp(28px, 6vw, 64px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 254, 250, 0.96);
    box-shadow: var(--shadow);
}

.legal-card h1 {
    margin: 0;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.legal-updated {
    margin: 7px 0 34px;
    color: #676c68;
    font-size: 0.82rem;
}

.legal-card h2 {
    margin: 30px 0 7px;
    font-size: 1.35rem;
    font-weight: 600;
}

.legal-card p {
    color: var(--ink-soft);
}

.legal-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.text-link {
    font-weight: 800;
}

.compact-footer {
    display: block;
    text-align: center;
}

.compact-footer p {
    text-align: center;
}

@media (max-width: 760px) {
    .site-shell {
        width: min(100% - 20px, 1120px);
        padding-top: 24px;
    }

    .hero {
        padding-bottom: 38px;
    }

    .upgrade-banner {
        font-size: 0.68rem;
        letter-spacing: 0.09em;
    }

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

    .contact-strip a + a {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .captcha-box p {
        display: block;
        margin: 9px 0 0;
    }

    .submit-button {
        width: 100%;
    }

    .required-note {
        display: block;
        margin: 10px 0 0;
        text-align: center;
    }

    .site-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .site-footer > div {
        align-items: center;
    }

    .site-footer p {
        text-align: center;
    }

    .legal-actions {
        flex-direction: column;
    }
}

@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;
    }
}
