:root {
    --navy: #142d32;
    --green: #277d60;
    --text: #213237;
    --muted: #7c888c;
    --border: #e7eceb;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
}

body {
    color: var(--text);
    background: #f3f6f2;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

button {
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    object-fit: cover;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.035em;
}

.muted {
    color: var(--muted);
}

.full {
    width: 100%;
}

.public-page {
    min-height: 100dvh;
    padding: 28px 20px;
    background: #f3f6f2;
}

.public-header {
    max-width: 550px;
    margin: 0 auto 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.brand {
    display: inline-flex;
    width: 190px;
    max-width: 46vw;
    flex-shrink: 0;
    line-height: 0;
}

.brand img,
.brand svg {
    display: block;
    width: 100%;
    height: auto;
}

.public-header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.public-header-tools > span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #91a583;
    white-space: nowrap;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    flex-shrink: 0;
}

.lang-toggle button {
    min-width: 38px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.lang-toggle button[aria-pressed='true'] {
    background: var(--navy);
    color: #fff;
}

.public-card {
    max-width: 550px;
    margin: auto;
    background: white;
    border: 1px solid #e6eee0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 40px #243e2005;
}

.public-content {
    padding: 30px;
}

.public-agent {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 29px;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f1eae0;
    color: #8a7451;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    object-fit: cover;
}

.public-agent strong {
    font-size: 13px;
    display: block;
    color: #637854;
}

.public-agent small {
    display: block;
    font-size: 11px;
    color: #a0af94;
    margin-top: 3px;
}

.verified-icon {
    background: #e2eed9;
    color: #68964c;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    margin-left: auto;
}

.section-kicker {
    display: block;
    font-size: 10px;
    color: #92a87e;
    letter-spacing: 1.7px;
    font-weight: 700;
    margin-bottom: 9px;
}

.public-content h1 {
    font-size: 29px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.public-divider {
    border-top: 1px solid #e9efe2;
    margin: 24px 0;
}

.public-content h2 {
    font-size: 19px;
    margin-bottom: 7px;
}

.public-content > .muted {
    font-size: 13px;
    line-height: 1.8;
}

.public-form {
    margin-top: 21px;
}

.field {
    display: block;
    margin-bottom: 17px;
}

.field > span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #56675a;
}

.public-form input[type='text'],
.public-form input[type='tel'] {
    width: 100%;
    border: 1px solid #dfe7e0;
    border-radius: 12px;
    padding: 12px 14px;
    background: white;
    color: #435749;
    font-size: 14px;
    min-height: 48px;
}

.public-form input::placeholder {
    color: #abb4a9;
}

fieldset.field {
    border: 0;
    margin: 0 0 16px;
    padding: 0;
    min-width: 0;
}

fieldset.field legend {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 0;
    color: #56675a;
}

.interest-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Public campaign landing page */
.campaign-page {
    --muted: #65766e;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f3;
}

.campaign-page .public-page {
    padding: 36px 24px 24px;
    background: radial-gradient(ellipse at 12% 0%, #e4ece3 0, transparent 55%), #f4f6f3;
}

.campaign-page .public-header {
    max-width: 1040px;
    margin-bottom: 28px;
}

.campaign-page .brand { width: 170px; }
.campaign-page .public-header-tools > span { color: #52685a; }
.campaign-page .lang-toggle button { min-height: 38px; min-width: 42px; font-size: 11px; }

.campaign-page .public-card {
    max-width: 1040px;
    border: 1px solid #dde5dc;
    border-radius: 24px;
    box-shadow: 0 24px 64px -32px #183c3a40;
}

.campaign-page .public-content {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    padding: 0;
}

.campaign-intro {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 40px;
    color: #f5f7ee;
    background: linear-gradient(145deg, #183e37, #102f2b);
}

.campaign-page .public-agent {
    gap: 12px;
    margin-bottom: 56px;
    padding-bottom: 24px;
    border-bottom: 1px solid #ffffff26;
}

.campaign-page .avatar {
    width: 48px;
    height: 48px;
    color: #f3e7bd;
    background: #ffffff12;
    border: 1px solid #ffffff30;
    font-size: 15px;
}

.campaign-page .public-agent strong { color: #fff; font-size: 16px; overflow-wrap: anywhere; }
.campaign-page .public-agent small { color: #b2c8bc; font-size: 12px; }
.campaign-page .verified-icon { background: #cee1ad; color: #284b32; flex-shrink: 0; width: 26px; height: 26px; }
.campaign-page .section-kicker { color: #c8dbab; font-size: 10px; letter-spacing: 2px; margin-bottom: 16px; }
.campaign-page .public-content h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.13; letter-spacing: -1.4px; font-weight: 650; overflow-wrap: anywhere; margin-bottom: 20px; }
.campaign-description { color: #bbcec3; font-size: 15px; line-height: 1.8; max-width: 290px; }
.campaign-art { color: #abc696; margin: auto 0 8px; padding-top: 20px; }
.campaign-art svg { display: block; width: 100%; max-width: 320px; margin: auto; }
.campaign-contact-note { display: flex; align-items: center; gap: 9px; color: #bed0c6; font-size: 11px; padding-top: 20px; border-top: 1px solid #ffffff26; }
.campaign-dot { width: 6px; height: 6px; border-radius: 50%; background: #c5dba8; flex-shrink: 0; }

.campaign-form-panel { padding: 42px; min-width: 0; align-self: center; }
.campaign-page .public-content h2 { font-size: 25px; line-height: 1.3; letter-spacing: -.7px; font-weight: 650; margin-bottom: 12px; }
.campaign-form-panel .muted { font-size: 13px; line-height: 1.75; margin-bottom: 24px; }
.campaign-page .public-form { margin-top: 0; }
.campaign-page .field { margin-bottom: 19px; }
.campaign-page .field > span, .campaign-page fieldset.field legend { color: #334b41; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.campaign-page .public-form input[type='text'], .campaign-page .public-form input[type='tel'] {
    background: #fafbf9;
    border-color: #dbe3dc;
    border-radius: 10px;
    min-height: 50px;
    color: #243d32;
    transition: border-color .15s, box-shadow .15s;
}
.campaign-page .public-form input::placeholder { color: #7b8880; }
.campaign-page .public-form input:focus-visible { outline: none; border-color: #277d60; box-shadow: 0 0 0 3px #277d6020; background: #fff; }
.campaign-page .interest-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.campaign-page .interest-choices label { min-height: 88px; background: #fff; border-color: #dbe3dc; border-radius: 10px; font-size: 13px; transition: background .15s, border-color .15s; }
.campaign-page .interest-choices label:hover { background: #f2f6ef; border-color: #9db39e; }
.campaign-page .interest-choices label.selected, .campaign-page .interest-choices label:has(input:checked) { background: #edf4e7; border-color: #56814b; box-shadow: inset 0 0 0 1px #56814b; }
.campaign-page .interest-choices label:has(input:focus-visible) { outline: 3px solid #277d6060; outline-offset: 3px; }
.campaign-page .choice-icon { color: #4f755c; line-height: 0; }
.campaign-page .public-form > .button { width: 100%; margin-top: 22px; min-height: 52px; border-radius: 10px; background: #236b4d; font-size: 14px; box-shadow: 0 5px 12px #236b4d18; white-space: normal; }
.campaign-page .public-form > .button:hover { background: #194f39; }
.campaign-page button:focus-visible, .campaign-page a:focus-visible { outline: 3px solid #77a988; outline-offset: 3px; }
.campaign-page .privacy-note { color: #697b70; font-size: 10px; line-height: 1.7; margin-top: 16px; }
.campaign-page .privacy-note svg { margin-top: 2px; }
.campaign-page .public-footer { margin-top: 22px; }
.campaign-page .public-footer > span { color: #687d6d; font-size: 11px; }
.campaign-page .public-footer > span:last-child { font-size: 10px; color: #7f8b80; margin-top: 4px; }
.campaign-page .capture-success p { color: #65766e; font-size: 14px; }
.campaign-page .capture-success code { color: #35593e; overflow-wrap: anywhere; }

@media (max-width: 760px) {
    .campaign-page .public-page { padding: 22px 16px; }
    .campaign-page .public-header { max-width: 520px; padding: 0 2px; margin-bottom: 20px; }
    .campaign-page .brand { width: 145px; }
    .campaign-page .public-card { max-width: 520px; border-radius: 20px; }
    .campaign-page .public-content { grid-template-columns: 1fr; }
    .campaign-intro { padding: 26px; }
    .campaign-page .public-agent { margin-bottom: 26px; padding-bottom: 20px; }
    .campaign-page .public-content h1 { font-size: 32px; max-width: none; margin-bottom: 12px; }
    .campaign-description { font-size: 13px; max-width: none; margin-bottom: 0; }
    .campaign-art, .campaign-contact-note { display: none; }
    .campaign-form-panel { padding: 28px 26px; }
    .campaign-page .public-content h2 { font-size: 23px; }
    .campaign-page .public-header-tools > span { display: none; }
    .campaign-page .public-form input[type='text'], .campaign-page .public-form input[type='tel'] { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .campaign-page *, .campaign-page *::before, .campaign-page *::after { transition: none !important; }
}

.interest-choices label {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 88px;
    padding: 14px 10px;
    border: 1px solid #e2e9e0;
    border-radius: 12px;
    background: #f8fbf8;
    color: #3d5248;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.interest-choices label.selected {
    border-color: var(--green);
    background: #eaf4ee;
    color: var(--navy);
    box-shadow: 0 0 0 3px #277d6033;
}

.interest-choices input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 10px 17px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.whatsapp {
    background: #25895f;
    color: white;
    min-height: 52px;
    font-size: 14px;
}

.whatsapp:hover {
    background: #1f7551;
}

.public-form > .button {
    display: flex;
    width: auto;
    margin: 18px auto 0;
    padding-left: 22px;
    padding-right: 22px;
}

.public-form > .button svg:last-child,
.public-form > .button svg:first-child {
    margin-left: 0;
    margin-right: 0;
}

.form-error {
    margin: 0 0 8px;
    font-size: 12px;
    color: #a54539;
}

.form-error[hidden] {
    display: none;
}

.privacy-note {
    display: flex;
    gap: 7px;
    font-size: 11px;
    color: #768b6b;
    line-height: 1.8;
    margin: 14px 0 0;
    text-align: left;
}

.privacy-note svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.public-footer {
    text-align: center;
    margin-top: 25px;
    color: #94a586;
    font-size: 12px;
}

.public-footer > span {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    color: #adb99f;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.error-box {
    padding: 12px 14px;
    display: flex;
    gap: 8px;
    align-items: center;
    border-radius: 7px;
    color: #a54539;
    background: #fff1ec;
    border: 1px solid #f0d7d1;
    font-size: 11px;
    margin-bottom: 14px;
}

.error-box[hidden] {
    display: none;
}

.capture-success {
    text-align: center;
    padding: 15px 0;
}

.capture-success > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e7f2df;
    color: #619645;
    margin-bottom: 17px;
}

.capture-success p {
    font-size: 12px;
    color: #92a47f;
    line-height: 1.8;
}

.capture-success code {
    display: block;
    background: #f2f7ed;
    padding: 12px;
    border-radius: 6px;
    color: #7c9566;
    margin: 20px 0;
}

.landing-page {
    --muted: #65766e;
    min-height: 100dvh;
    color: #21372f;
    background: radial-gradient(ellipse at 12% 0%, #e4ece3 0, transparent 55%), #f4f6f3;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.landing-shell {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 24px 20px;
}

.landing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
}

.landing-page .brand {
    width: 170px;
}

.landing-login {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #d5e0d4;
    border-radius: 999px;
    background: #fff;
    color: #285f43;
    font-size: 13px;
    font-weight: 600;
}

.landing-login:hover {
    border-color: #9bb89a;
    background: #f6f9f2;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 36px;
    align-items: center;
    margin-bottom: 28px;
}

.landing-kicker {
    margin: 0 0 14px;
    color: #4f7a4d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.landing-copy h1 {
    margin: 0 0 18px;
    color: #142d32;
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 650;
    line-height: 1.12;
    letter-spacing: -1.4px;
}

.landing-lead,
.landing-hint {
    max-width: 520px;
    line-height: 1.75;
}

.landing-lead {
    margin: 0 0 16px;
    color: #3d5348;
    font-size: 16px;
}

.landing-hint {
    margin: 0;
    color: #6b7d72;
    font-size: 13px;
}

.landing-preview-card {
    padding: 28px;
    border: 1px solid #dde5dc;
    border-radius: 24px;
    background: linear-gradient(145deg, #183e37, #102f2b);
    box-shadow: 0 24px 64px -32px #183c3a40;
    color: #f5f7ee;
}

.landing-preview-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ffffff26;
}

.landing-preview-url {
    overflow: hidden;
    color: #c8dbab;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.landing-preview-badge {
    flex-shrink: 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: #ffffff14;
    color: #dce8c8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
}

.landing-preview-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 650;
    letter-spacing: -0.7px;
}

.landing-preview-card > p {
    margin: 0 0 22px;
    color: #bbcec3;
    font-size: 14px;
    line-height: 1.7;
}

.landing-preview-fields {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.landing-preview-fields > span,
.landing-preview-fields em {
    display: block;
    height: 46px;
    border: 1px solid #ffffff18;
    border-radius: 10px;
    background: #ffffff0f;
}

.landing-preview-fields div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.landing-preview-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 10px;
    background: #c5dba8;
    color: #1d3b28;
    font-size: 14px;
    font-weight: 700;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 8px 0 40px;
}

.landing-steps article {
    padding: 24px;
    border: 1px solid #dde5dc;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px -24px #183c3a30;
}

.landing-steps span {
    display: block;
    margin-bottom: 16px;
    color: #4f7a4d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.landing-steps h2 {
    margin: 0 0 8px;
    color: #142d32;
    font-size: 18px;
    letter-spacing: -0.4px;
}

.landing-steps p {
    margin: 0;
    color: #5d7167;
    font-size: 13px;
    line-height: 1.7;
}

.landing-footer {
    margin-top: auto;
    padding: 18px 0 6px;
    border-top: 1px solid #dde5dc;
}

.landing-footer p {
    margin: 0;
    color: #6b7d72;
    font-size: 12px;
}

@media (max-width: 860px) {
    .landing-hero,
    .landing-steps {
        grid-template-columns: 1fr;
    }

    .landing-preview {
        order: -1;
    }
}

@media (max-width: 700px) {
    .landing-shell {
        padding: 20px 16px 16px;
    }

    .landing-header {
        margin-bottom: 24px;
    }

    .landing-copy h1 {
        font-size: 32px;
    }

    .landing-preview-card,
    .landing-steps article {
        padding: 22px;
    }
}

@media (max-width: 700px) {
    .public-page {
        padding: 20px 14px;
    }

    .public-header {
        padding: 0 5px;
        margin-bottom: 20px;
    }

    .public-content {
        padding: 25px 23px;
    }

    .public-content h1 {
        font-size: 27px;
    }

    .public-form input[type='text'],
    .public-form input[type='tel'] {
        font-size: 16px;
    }

    .public-header-tools > span {
        display: none;
    }
}
