:root {
    /* Design System /votomassuda - valores hex aproximados do relatório */
    --background: #130228;
    --foreground: #F9F8FB;
    --surface: #210E39;
    --primary: #F76400;
    --primary-foreground: #200700;
    --secondary: #352053;
    --muted: #2C1D43;
    --muted-foreground: #BAB3C8;
    --accent: #382264;
    --border: #3F2D5B;
    --input: #34234F;
    --destructive: #EA3C3F;
    --brand-green: #32C364;

    --radius: 8px;
    --radius-card: 16px;
    --radius-qr: 12px;

    --shadow-elevated: 0 24px 60px -24px rgba(6, 0, 13, .90);
    --shadow-glow: 0 0 0 1px rgba(247, 100, 0, .35), 0 18px 50px -20px rgba(247, 100, 0, .50);
}

* { box-sizing: border-box; }

html {
    min-width: 320px;
    background: var(--background);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--foreground);
    background:
        radial-gradient(120% 90% at 15% 10%, rgba(96, 32, 145, .85), transparent 60%),
        linear-gradient(160deg, #200636 0%, #0E011A 100%);
    font-family: "Barlow", Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button, input { font: inherit; }
a { color: inherit; }

.page-shell {
    width: min(calc(100% - 32px), 1152px);
    margin: 0 auto;
}

.page-shell.is-form {
    padding: 64px 0 88px;
}

/* HERO */
.hero {
    width: min(100%, 768px);
    margin: 0 auto 48px;
    text-align: center;
}

.back-link {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--muted-foreground);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-color: rgba(186, 179, 200, .58);
    text-underline-offset: 3px;
    transition: color .15s ease;
}

.back-link:hover { color: var(--foreground); }

.hero h1,
.form-heading h2,
.success-screen h1 {
    font-family: "Archivo Black", Impact, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.hero h1 {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(30px, 4vw, 36px);
    line-height: 1.05;
    text-wrap: balance;
}

.hero h1 strong {
    color: var(--primary);
    font-weight: 400;
}

.hero p {
    max-width: 768px;
    margin: 18px auto 0;
    color: var(--muted-foreground);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
}

.manifesto-copy {
    margin-top: 22px;
}

.hero .manifesto-copy p {
    margin-top: 16px;
}

.hero .manifesto-copy p:first-child {
    margin-top: 0;
}

.hero .manifesto-copy .manifesto-final {
    color: var(--foreground);
    font-weight: 700;
}

/* FORM CARD */
.form-card {
    width: min(100%, 672px);
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-elevated);
}

.form-heading { margin-bottom: 26px; }

.form-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.heart-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: var(--primary);
}

.heart-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.form-heading h2 {
    margin: 0;
    color: var(--foreground);
    font-size: 24px;
    line-height: 1.05;
}

.form-heading p {
    margin: 11px 0 0;
    color: var(--muted-foreground);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.field { margin-bottom: 20px; }

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--foreground);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.field input {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    color: var(--foreground);
    background: var(--input);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.field input::placeholder {
    color: var(--muted-foreground);
    opacity: 1;
}

.field input:hover { background: var(--accent); }

.field input:focus {
    border-color: var(--primary);
    background: var(--input);
    box-shadow: 0 0 0 3px rgba(247, 100, 0, .25);
}

.field-error {
    display: none;
    margin-top: 6px;
    color: var(--destructive);
    font-size: 14px;
    line-height: 1.35;
}

.field.has-error .field-error { display: block; }
.field.has-error input { border-color: var(--destructive); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(234, 60, 63, .18); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: var(--radius);
    padding: 16px 20px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: "Barlow", Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    transition: opacity .15s ease, transform .15s ease, box-shadow .15s ease;
}

.button:hover { opacity: .9; transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .6; cursor: not-allowed; }

.button-primary,
.button-whatsapp {
    color: var(--primary-foreground);
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}

.button-primary svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.privacy-copy {
    margin: 18px 0 0;
    color: var(--muted-foreground);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.alert {
    margin: 0 0 22px;
    padding: 12px 14px;
    border: 1px solid rgba(234, 60, 63, .65);
    border-radius: var(--radius);
    color: #FFC7C8;
    background: rgba(234, 60, 63, .10);
    font-size: 14px;
    line-height: 1.45;
}

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

/* TELA DE AGRADECIMENTO */
.page-shell.is-success {
    width: min(calc(100% - 32px), 768px);
    padding: 64px 0 88px;
}

.success-screen {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.success-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted-foreground);
    font-size: 16px;
    font-weight: 500;
}

.success-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    color: var(--brand-green);
    background: rgba(50, 195, 100, .10);
    flex: 0 0 40px;
}

.success-status-icon svg {
    width: 25px;
    height: 25px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.success-screen h1 {
    max-width: 768px;
    margin: 24px auto 18px;
    color: var(--foreground);
    font-size: clamp(30px, 4vw, 36px);
    line-height: 1.05;
    text-wrap: balance;
}

.success-screen h1 > span:not(.purple-heart) { color: var(--primary); }
.purple-heart { font-family: sans-serif; font-size: .92em; }

.success-lead,
.success-instruction {
    color: var(--muted-foreground);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
}

.success-lead { margin: 0 auto; }
.success-instruction { margin: 16px 0 28px; }

.success-card {
    width: min(100%, 672px);
    margin: 0 auto;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: var(--shadow-elevated);
}

.qr-wrap {
    width: 224px;
    height: 224px;
    margin: 0 auto;
    padding: 12px;
    border-radius: var(--radius-qr);
    background: #FFFFFF;
}

.qr-wrap img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.qr-caption {
    margin: 20px 0 12px;
    color: var(--muted-foreground);
    font-size: 14px;
    line-height: 1.5;
}

.button-whatsapp svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.whatsapp-url {
    display: inline-block;
    margin: 18px auto 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.success-thanks {
    margin: 30px 0 0;
    color: var(--muted-foreground);
    font-size: 16px;
    line-height: 1.5;
}

.success-dash { display: none; }

@media (max-width: 767px) {
    .page-shell.is-form,
    .page-shell.is-success {
        padding: 48px 0 64px;
    }

    .hero { margin-bottom: 36px; }

    .hero p,
    .success-lead,
    .success-instruction {
        font-size: 17px;
    }

    .form-card,
    .success-card {
        padding: 24px;
    }

    .desktop-only { display: none; }
}

@media (max-width: 480px) {
    .page-shell { width: min(calc(100% - 24px), 1152px); }
    .page-shell.is-form,
    .page-shell.is-success { padding: 34px 0 48px; }

    .hero { margin-bottom: 30px; }
    .hero p,
    .success-lead,
    .success-instruction { font-size: 16px; line-height: 1.6; }

    .form-card,
    .success-card { padding: 24px 18px; }

    .form-title-row { gap: 10px; }
    .form-heading h2 { font-size: 22px; }

    .button { padding-left: 14px; padding-right: 14px; }
    .button-whatsapp { font-size: 14px; }

    .qr-wrap {
        width: 212px;
        height: 212px;
        padding: 6px;
    }

    .qr-wrap img {
        width: 200px;
        height: 200px;
    }
}
