:root {
    --forest-950: #0b2b20;
    --forest-900: #103a2b;
    --forest-800: #174c36;
    --forest-700: #206246;
    --forest-600: #2e7956;
    --forest-100: #dff1e7;
    --forest-50: #f1f9f4;
    --mango-500: #f5a623;
    --mango-400: #ffbb45;
    --mango-100: #fff0d2;
    --cream: #fffaf0;
    --paper: #ffffff;
    --ink: #19231e;
    --muted: #65716a;
    --line: #dfe7e2;
    --danger: #b42318;
    --danger-bg: #fff1f0;
    --success: #17633f;
    --success-bg: #eaf7ef;
    --shadow-sm: 0 8px 24px rgba(11, 43, 32, 0.08);
    --shadow-lg: 0 28px 80px rgba(11, 43, 32, 0.16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--cream);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--forest-700);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--forest-900);
}

button,
input,
select {
    font: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -100px;
    z-index: 9999;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--paper);
    color: var(--forest-900);
    box-shadow: var(--shadow-sm);
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--forest-950);
}

.header-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand:hover {
    color: white;
}

.brand-mark {
    flex: 0 0 auto;
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.brand-copy span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.77rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.93rem;
    font-weight: 650;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: white;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 28%, rgba(46, 121, 86, 0.48), transparent 28%),
        linear-gradient(135deg, var(--forest-950) 0%, var(--forest-800) 58%, #225f42 100%);
    color: white;
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 140px;
    background: linear-gradient(to top, rgba(11, 43, 32, 0.26), transparent);
    content: "";
}

.hero-glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.6;
}

.hero-glow-one {
    top: -140px;
    right: 4%;
    width: 390px;
    height: 390px;
    background: rgba(245, 166, 35, 0.15);
}

.hero-glow-two {
    bottom: -210px;
    left: 33%;
    width: 480px;
    height: 480px;
    background: rgba(255, 255, 255, 0.08);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: clamp(48px, 7vw, 92px);
    align-items: center;
    padding-block: clamp(68px, 9vw, 112px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--mango-400);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: var(--mango-400);
    box-shadow: 0 0 0 5px rgba(255, 187, 69, 0.13);
}

.hero h1 {
    max-width: 720px;
    margin: 18px 0 24px;
    color: white;
    font-size: clamp(3rem, 6vw, 5.8rem);
    font-weight: 820;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--mango-400);
}

.hero-lead {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.05rem, 1.6vw, 1.24rem);
    line-height: 1.7;
}

.benefit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 30px;
}

.benefit {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    font-weight: 650;
}

.benefit-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--mango-400);
    font-size: 0.8rem;
}

.phone-preview {
    max-width: 520px;
    margin-top: 42px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.13);
    backdrop-filter: blur(12px);
}

.phone-preview-top {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 13px;
}

.preview-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 999px;
    background: white;
}

.preview-avatar img {
    width: 30px;
    height: 30px;
}

.phone-preview-top div:last-child {
    display: grid;
    line-height: 1.3;
}

.phone-preview-top strong {
    font-size: 0.9rem;
}

.phone-preview-top span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.74rem;
}

.message-bubble {
    width: 88%;
    padding: 14px 16px;
    border-radius: 6px 18px 18px 18px;
    background: white;
    color: #27322c;
    font-size: 0.9rem;
    line-height: 1.55;
}

.signup-card {
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.97);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.signup-card-heading {
    margin-bottom: 26px;
}

.card-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--forest-700);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.signup-card h2 {
    margin: 0;
    color: var(--forest-950);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.signup-card-heading p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.form-field {
    margin-bottom: 18px;
}

.form-field > label,
.form-field > legend {
    display: block;
    margin-bottom: 7px;
    color: #33423a;
    font-size: 0.84rem;
    font-weight: 750;
}

.form-control {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #cfdad3;
    border-radius: var(--radius-sm);
    outline: none;
    background: white;
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.form-control:hover {
    border-color: #aebdb4;
}

.form-control:focus {
    border-color: var(--forest-600);
    box-shadow: 0 0 0 4px rgba(46, 121, 86, 0.13);
}

.form-select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--forest-700) 50%),
        linear-gradient(135deg, var(--forest-700) 50%, transparent 50%);
    background-position:
        calc(100% - 19px) 21px,
        calc(100% - 14px) 21px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.language-fieldset {
    min-width: 0;
    padding: 0;
    border: 0;
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.radio-chip {
    position: relative;
    display: grid;
    min-height: 50px;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
}

.radio-chip input {
    position: absolute;
    opacity: 0;
}

.radio-chip span {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 50px;
    place-items: center;
    border: 1px solid #cfdad3;
    border-radius: var(--radius-sm);
    background: white;
    color: #415149;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 160ms ease;
}

.radio-chip input:checked + span {
    border-color: var(--forest-700);
    background: var(--forest-50);
    color: var(--forest-900);
    box-shadow: inset 0 0 0 1px var(--forest-700);
}

.radio-chip input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(46, 121, 86, 0.15);
}

.field-hint {
    display: block;
    margin-top: 6px;
    color: #78847d;
    font-size: 0.75rem;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: var(--danger);
    font-size: 0.79rem;
    font-weight: 650;
}

.consent-box {
    margin-top: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #f8faf8;
}

.consent-label {
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 11px;
    cursor: pointer;
}

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

.custom-checkbox {
    position: relative;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border: 1.5px solid #9baaa1;
    border-radius: 6px;
    background: white;
    transition: all 160ms ease;
}

.consent-label input:checked + .custom-checkbox {
    border-color: var(--forest-700);
    background: var(--forest-700);
}

.consent-label input:checked + .custom-checkbox::after {
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    content: "";
}

.consent-label input:focus-visible + .custom-checkbox {
    box-shadow: 0 0 0 4px rgba(46, 121, 86, 0.15);
}

.consent-text {
    color: #58655e;
    font-size: 0.74rem;
    line-height: 1.55;
}

.consent-error {
    margin-left: 33px;
}

.legal-links {
    margin: 12px 2px 18px;
    color: #6d7972;
    font-size: 0.78rem;
}

.legal-links a {
    font-weight: 750;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
    width: 100%;
    border: 0;
    background: linear-gradient(135deg, var(--forest-700), var(--forest-900));
    color: white;
    box-shadow: 0 10px 26px rgba(23, 76, 54, 0.22);
    cursor: pointer;
}

.primary-button:hover {
    background: linear-gradient(135deg, var(--forest-600), var(--forest-800));
    color: white;
    box-shadow: 0 14px 30px rgba(23, 76, 54, 0.28);
    transform: translateY(-1px);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.75;
    transform: none;
}

.secondary-button {
    border: 1px solid var(--forest-700);
    background: white;
    color: var(--forest-800);
}

.secondary-button:hover {
    background: var(--forest-50);
    color: var(--forest-900);
}

.inline-button {
    width: auto;
}

.form-footnote {
    margin: 12px 0 0;
    color: #849087;
    font-size: 0.71rem;
    text-align: center;
}

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

.trust-section {
    padding-block: 64px 78px;
    background: var(--cream);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.trust-card {
    padding: 28px;
    border: 1px solid rgba(23, 76, 54, 0.09);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-sm);
}

.trust-number {
    margin-bottom: 24px;
    color: var(--mango-500);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.trust-card h2 {
    margin: 0 0 9px;
    color: var(--forest-950);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.trust-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.site-footer {
    padding-top: 52px;
    background: #08251b;
    color: rgba(255, 255, 255, 0.68);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 54px;
    padding-bottom: 42px;
}

.footer-brand {
    color: white;
    font-size: 1.08rem;
    font-weight: 850;
}

.footer-grid p {
    max-width: 360px;
    margin: 8px 0 0;
    font-size: 0.9rem;
}

.footer-grid h2 {
    margin: 0 0 13px;
    color: white;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.footer-grid > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-grid a,
.footer-grid span {
    margin: 3px 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
    text-decoration: none;
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.78rem;
}

/* Legal pages */
.legal-hero {
    padding-block: 66px;
    background:
        radial-gradient(circle at 82% 10%, rgba(245, 166, 35, 0.15), transparent 30%),
        var(--forest-950);
    color: white;
}

.legal-hero-inner {
    max-width: 840px;
}

.legal-hero h1 {
    margin: 14px 0 10px;
    color: white;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.legal-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.08rem;
}

.legal-section {
    padding-block: 62px 82px;
}

.legal-document {
    max-width: 850px;
    padding: clamp(26px, 6vw, 58px);
    border: 1px solid rgba(23, 76, 54, 0.1);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
}

.last-updated {
    margin-top: 0;
    color: #7c8881;
    font-size: 0.84rem;
    font-weight: 650;
}

.legal-document h2 {
    margin: 38px 0 10px;
    color: var(--forest-950);
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.legal-document p,
.legal-document li {
    color: #526058;
}

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

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

.legal-highlight {
    margin: 18px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--mango-500);
    border-radius: 0 12px 12px 0;
    background: var(--mango-100);
    color: #5a4319;
    font-weight: 750;
}

.contact-panel {
    margin-top: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--forest-50);
    color: #4f5e55;
    font-style: normal;
}

.legal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 42px;
}

.text-button {
    font-weight: 750;
}

/* Success and errors */
.success-section {
    min-height: 68vh;
    display: grid;
    place-items: center;
    padding-block: 72px;
    background:
        radial-gradient(circle at 20% 25%, rgba(46, 121, 86, 0.12), transparent 25%),
        radial-gradient(circle at 85% 75%, rgba(245, 166, 35, 0.15), transparent 25%),
        var(--cream);
}

.success-card {
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(32px, 7vw, 70px);
    border: 1px solid rgba(23, 76, 54, 0.1);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.success-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    place-items: center;
    border-radius: 999px;
    background: var(--success-bg);
}

.success-icon svg {
    width: 34px;
    fill: none;
    stroke: var(--success);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.success-card h1 {
    margin: 12px 0 16px;
    color: var(--forest-950);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.success-card > p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.03rem;
}

.success-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-block: 34px;
    text-align: left;
}

.success-details div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfcfb;
}

.success-details strong,
.success-details span {
    display: block;
}

.success-details strong {
    color: var(--forest-900);
    font-size: 0.82rem;
}

.success-details span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.error-symbol {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    place-items: center;
    border-radius: 999px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 2rem;
    font-weight: 900;
}

.error-card .inline-button {
    margin-top: 28px;
}

.flash-stack {
    position: relative;
    z-index: 30;
}

.flash {
    margin-top: 18px;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.flash-success {
    border: 1px solid #b8dec6;
    background: var(--success-bg);
    color: var(--success);
}

@media (max-width: 920px) {
    .hero-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lead,
    .phone-preview {
        margin-inline: auto;
    }

    .benefit-row {
        justify-content: center;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 660px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .header-inner {
        min-height: 72px;
    }

    .brand-copy strong {
        font-size: 0.9rem;
    }

    .brand-copy span {
        font-size: 0.67rem;
    }

    .site-nav {
        gap: 14px;
    }

    .site-nav a:first-child {
        display: none;
    }

    .site-nav a {
        font-size: 0.8rem;
    }

    .hero-grid {
        gap: 42px;
        padding-block: 58px 66px;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 15vw, 4.6rem);
    }

    .phone-preview {
        text-align: left;
    }

    .signup-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .form-row,
    .footer-grid,
    .success-details {
        grid-template-columns: 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-block: 18px;
    }

    .legal-hero {
        padding-block: 52px;
    }

    .legal-section {
        padding-block: 28px 54px;
    }

    .legal-document {
        width: min(100% - 20px, 850px);
        border-radius: 22px;
    }
}

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

.flash-info {
    border: 1px solid #bfd5e7;
    background: #eef7fc;
    color: #24566f;
}
