

:root {
    --cream: #F3F1E9;
    --cream-2: #EAE7D9;
    --ink: #1B2420;
    --ink-soft: #525E56;
    --pine: #1E4A3A;
    --pine-dark: #153629;
    --clay: #B9814A;
    --line: #D6D2C0;
    --white: #FFFFFF;
    --red: #DD3333;
    --ins-bg: #E4EEE7;
    --del-bg: #F4E7DD;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Inter',sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

/* ---------- NAV ---------- */
header.site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 6vw;
    border-bottom: 1px solid var(--line);
    background: rgba(243,241,233,0.92);
    backdrop-filter: blur(6px);
    z-index: 50;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
}

.brand {
    font-family: 'Oswald',sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 15px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand .dot {
    width: 9px;
    height: 9px;
    background: var(--pine);
    border-radius: 50%;
    display: inline-block;
    display: none; /* This scales funny, becoming oval, and just wastes valuable space. */
}

nav.links {
    display: flex;
    gap: calc(min(24px, 4vw));
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 0 3em;
}

nav.links a {
    text-decoration: none;
}

nav.links a:hover {
    color: var(--pine);
}

.nav-cta {
    background: var(--pine);
    color: var(--cream);
    padding: 11px 20px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--pine-dark);
    color: var(--white);
}

/* ---------- SOCIAL ---------- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social a {
    display: inline-flex;
    color: var(--ink-soft);
    /* fill: var(--ink-soft); */
    text-decoration: none;
}

.social a:hover {
    color: var(--pine);
    /* fill: var(--pine); */
}

.social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

/* Partner wordmark (tallyED) — an image, not a currentColor glyph,
    so it gets its own sizing and an opacity hover instead. */
.social a.partner {
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.social a.partner img {
    height: 18px;
    width: auto;
    display: block;
    opacity: 0.85;
}

.social a.partner:hover img {
    opacity: 1;
}

@media(max-width:820px) {
    nav.links {
        display: none;
    }
}

@media(max-width:560px) {
    .nav-right {
        gap: 12px;
    }

    .nav-right .social {
        display: none;
    }

    .social {
        gap: 12px;
    }

    .social a.partner {
        padding-left: 10px;
    }

    .social a.partner img {
        height: 16px;
    }

    .social svg {
        width: 16px;
        height: 16px;
    }
}

/* ---------- HERO ---------- */
.hero {
    padding: 120px 6vw 74px;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 0.25fr;
    gap: 56px;
    align-items: end;
}

@media(max-width:900px) {
    .hero {
        grid-template-columns: 1fr;
    }
}

.eyebrow {
    font-family: 'Oswald',sans-serif;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pine);
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--pine);
    display: inline-block;
}

h1.headline {
    font-family: 'Fraunces',serif;
    font-weight: 900;
    font-size: clamp(38px,5.6vw,66px);
    line-height: 1.03;
    margin: 0 0 22px;
    letter-spacing: -0.01em;
}

h1.headline em {
    font-style: italic;
    font-weight: 600;
    color: var(--pine);
}

p.lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 52ch;
    margin: 0 0 30px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.btn-primary {
    background: var(--pine);
    color: var(--white);
    padding: 15px 26px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--pine-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    padding: 15px 22px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--white);
}

.fine {
    font-size: 13px;
    color: var(--ink-soft);
    margin-top: 14px;
}

/* signature element: amendment threshold tracker */
.tracker {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 26px 24px 22px;
}

.tracker-label {
    font-family: 'Oswald',sans-serif;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
    font-weight: 600;
    margin-bottom: 6px;
}

.tracker-count {
    font-family: 'Fraunces',serif;
    font-weight: 700;
    font-size: 34px;
    margin-bottom: 2px;
}

.tracker-count span {
    color: var(--pine);
}

.tracker-sub {
    font-size: 13px;
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.bar-track {
    width: 100%;
    height: 10px;
    background: var(--cream-2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg,var(--pine),var(--clay));
    border-radius: 6px;
    width: 34%;
}

.county-note {
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.5;
    border-top: 1px solid var(--line);
    padding-top: 12px;
    margin-top: 14px;
}

.county-note strong {
    color: var(--ink);
}

/* ---------- STRIP ---------- */
.strip {
    background: var(--ink);
    color: var(--cream);
    padding: 16px 6vw;
    font-family: 'Oswald',sans-serif;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    font-weight: 500;
}

.strip b {
    color: var(--clay);
    font-weight: 700;
}

/* ---------- WHY SECTION ---------- */
.why {
    max-width: 1180px;
    margin: 0 auto;
    padding: 120px 6vw 78px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
}

@media(max-width:900px) {
    .why {
        grid-template-columns: 1fr;
    }
}

.why h2 {
    font-family: 'Fraunces',serif;
    font-size: clamp(28px,3.4vw,38px);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.why-list {
    display: grid;
    gap: 26px;
}

.why-item {
    display: flex;
    gap: 16px;
}

.why-num {
    font-family: 'Fraunces',serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--pine);
    flex-shrink: 0;
}

.why-item h3 {
    margin: 0 0 6px;
    font-size: 16.5px;
    font-weight: 700;
}

.why-item p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.55;
}

/* ---------- FORM SECTION ---------- */
.form-section {
    background: var(--cream-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 88px 6vw;
    min-height: calc(100vh - 6.5em); /* To keep the form area from getting tiny after submitting. */
}

.form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 44px 40px 40px;
    min-height: 345px; /* To keep the form a nice size after submitting. */
}

@media(max-width:560px) {
    .form-wrap {
        padding: 32px 22px;
    }
}

.form-eyebrow {
    font-family: 'Oswald',sans-serif;
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pine);
    font-weight: 700;
    margin-bottom: 12px;
}

.form-wrap h2 {
    font-family: 'Fraunces',serif;
    font-size: clamp(24px,3vw,30px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 10px;
}

.form-wrap .sub {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin: 0 0 30px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media(max-width:520px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    font-family: 'Oswald',sans-serif;
    font-size: 12px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 8px;
}

.field label .req {
    color: var(--pine);
    margin-left: 3px;
}

.field input, .field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    font-family: 'Inter',sans-serif;
    font-size: 14.5px;
    color: var(--ink);
}

.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--pine);
    box-shadow: 0 0 0 3px rgba(30,74,58,0.12);
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23525E56' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    margin-bottom: 24px;
    color: var(--ink);
}

.checkbox-row input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--pine);
    flex-shrink: 0;
}

.consent {
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 14px;
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 24px;
}

.submit-btn {
    width: 100%;
    background: var(--pine);
    color: var(--white);
    border: none;
    padding: 17px 22px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-family: 'Oswald',sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: var(--pine-dark);
}

.submit-btn:disabled {
    background: #B9AFA0;
    cursor: not-allowed;
}

.form-fine {
    font-size: 12px;
    color: var(--ink-soft);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

.result {
    display: none;
    text-align: center;
    padding: 20px 10px 6px;
}

.result.show {
    display: block;
}

.result .check {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pine);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
}

.result .error {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
}
.result h3 {
    font-family: 'Fraunces',serif;
    font-size: 22px;
    margin: 0 0 8px;
}

.result p {
    color: var(--ink-soft);
    font-size: 14.5px;
    margin: 0.75em 0;
}

.result .request-id {
    font-size: 0.9em;
    margin: 0.5em 0 0 0;
    font-style: italic;
    opacity: 0.7;
}

.result-report {
    font-size: 0.8em;
    padding: 1em 0;
    background: #0001;
    border-radius: 0.8em;
    margin: 1em 1em 0 1em;
    border: 1px solid #0002;
}

.result-report table {
    border-collapse: separate;
    border-spacing: 2em 0.2em;
}

/* ---------- DOC HERO ---------- */
.doc-hero {
    padding: 120px 2vw 30px;
    max-width: 880px;
    margin: 0 auto;
}

.eyebrow {
    font-family: 'Oswald',sans-serif;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--pine);
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--pine);
    display: inline-block;
}

h1.page-headline {
    font-family: 'Fraunces',serif;
    font-weight: 900;
    font-size: clamp(32px,4.6vw,50px);
    line-height: 1.06;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

p.lede {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 100ch;
    margin: 0 0 8px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--pine);
    text-decoration: none;
    margin-bottom: 26px;
}

.back-link:hover {
    color: var(--pine-dark);
}

/* ---------- LEGEND ---------- */
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px 20px;
    margin: 26px 0 0;
    font-size: 13.5px;
    color: var(--ink-soft);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-swatch {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 12.5px;
}

.legend-swatch.add {
    background: var(--ins-bg);
    color: var(--pine-dark);
}

.legend-swatch.remove {
    background: var(--del-bg);
    color: #8a5a2e;
}

/* ---------- DOCUMENT ---------- */
.doc-section {
    padding: 8px 6vw 30px;
}

.doc-wrap {
    max-width: 880px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 48px 56px 56px;
}

@media(max-width:700px) {
    .doc-wrap {
        padding: 34px 24px 40px;
    }
}

.doc-kicker {
    font-family: 'Oswald',sans-serif;
    font-size: 12.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pine);
    font-weight: 700;
    margin: 0 0 10px;
}

h1.doc-title {
    font-family: 'Fraunces',serif;
    font-weight: 800;
    font-size: clamp(24px,3vw,30px);
    line-height: 1.2;
    margin: 0 0 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.doc-body p {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--ink);
    margin: 0 0 18px;
}

.doc-body p.clause-label-only,
.doc-body p.clause {
    font-family: 'Oswald',sans-serif;
    margin-top: 34px;
}

.doc-body p.clause-label-only {
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--pine);
}

.doc-body .clause-label {
    font-family: 'Oswald',sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--pine);
}

.doc-body p.clause {
    font-family: 'Inter',sans-serif;
    font-size: 15.5px;
}

.doc-body p.item-num {
    padding-left: 26px;
}

.doc-body p.item-alpha {
    padding-left: 50px;
    font-size: 14.5px;
    color: var(--ink-soft);
}

.doc-body ins {
    text-decoration: none;
    background: var(--ins-bg);
    color: var(--pine-dark);
    border-bottom: 2px solid var(--pine);
    padding: 0 1px;
}

.doc-body del {
    text-decoration: line-through;
    text-decoration-color: var(--clay);
    background: var(--del-bg);
    color: #8a5a2e;
    padding: 0 1px;
}

.doc-fine {
    max-width: 880px;
    margin: 28px auto 0;
    font-size: 12.5px;
    color: var(--ink-soft);
    line-height: 1.6;
    padding: 0 2em;
}

/* ---------- debug data table ---------- */
.debug-info {
    font-size: 0.8em;
    padding: 1em 0;
    background: #0001;
    border-radius: 0.8em;
    margin: 0em 1em 3em 1em;
    border: 1px solid #0002;
}

.debug-info table {
    border-collapse: separate;
    border-spacing: 2em 0.2em;
}

/* ---------- reCAPTCHA ---------- */
.grecaptcha-badge {
    visibility: hidden;
}

/* ---------- FOOTER ---------- */
footer {
    padding: 40px 6vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--ink-soft);
}

footer .brand {
    color: var(--ink);
}

footer .social {
    gap: 18px;
}

footer .social svg {
    width: 19px;
    height: 19px;
}

footer .social a.partner img {
    height: 19px;
}

/* ---------- RECAPTCHA ---------- */
.recaptcha-row {
    margin-bottom: 24px;
}

@media(max-width:400px) {
    .recaptcha-row {
        transform: scale(0.86);
        transform-origin: left top;
        margin-bottom: 12px;
    }
}

/* ---------- MOBILE: FORM FIRST ---------- */
/* Phone-width visitors land on the petition form; the hero and
    supporting sections fall below it. No script required. */
@media(max-width:820px) {
    body {
        display: flex;
        flex-direction: column;
    }

    header.site {
        order: 1;
    }

    .form-section {
        order: 2;
    }

    .hero {
        order: 3;
    }

    .strip {
        order: 4;
    }

    .why {
        order: 5;
    }

    footer {
        order: 6;
    }

    .nav-cta {
        padding: 10px 14px;
        font-size: 12px;
    }
}

.hlink, .hlink:visited {
    color: var(--pine-dark) !important;
}

.hlink:active {
    color: var(--pine) !important;
}

/* ---------- BUSY RING ---------- */
.busy-bg {
    position: fixed;
    background: #0007;
    left:0;
    right:0;
    top:0;
    bottom:0;
    z-index: 999;
    display: none;
}

.busy-ring {
    position: fixed;
    display: block;
    width: 80px;
    height: 80px;
    aspect-ratio: 1;
    left: calc(50% - 40px);
    top: calc(50% - 40px);
    z-index: 1000;
    display: none;
}

.busy-ring div {
    position: absolute;
    border-radius: 50%;
    border: 10px solid white;
    animation: busy-ring-anim 1s cubic-bezier(0.5, 0, 0.5, 1.0) infinite;
    border-color: white transparent transparent transparent;
    width: 80px;
    height: 80px;
}

.busy-ring div:nth-child(1) {
    animation-delay: -0.4s;
    border-color: white;
    opacity: 0.5;
}

.busy-ring div:nth-child(2) {
    animation-delay: -0.3s;
    border-color: white;
    opacity: 0.2;
}

.busy-ring div:nth-child(3) {
    animation-delay: -0.15s;
    border-color: white;
    opacity: 0.1;
}

@keyframes busy-ring-anim {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.busy-bg.dark {
    opacity: 0.5;
}

.busy-ring.dark {
    top: 17em;
}

.busy-ring.dark div {
    border-color: #0005 transparent transparent transparent;
}

.busy-ring.dark div:nth-child(1),
.busy-ring.dark div:nth-child(2),
.busy-ring.dark div:nth-child(3) {
    border-color: #aaa9;
}
