:root {
    --blue: #0877d1;
    --blue-dark: #075da8;
    --ink: #17324d;
    --muted: #718096;
    --line: #e6edf4;
    --soft: #f4f8fc;
    --green: #25d366;
    --shadow: 0 18px 50px rgba(28,77,120,.14)
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(145deg, #eaf5ff, #f7fbff 45%, #edf3f8);
    color: var(--ink);
    font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

.app-shell {
    width: min(100%, 620px);
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    box-shadow: var(--shadow);
}

.hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 34px 24px 30px;
    background: linear-gradient(135deg, var(--blue), #0a66b6);
    color: #fff;
}

.candidate-photo {
    flex: 0 0 94px;
    width: 94px;
    height: 94px;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0,0,0,.2);
}

.hero-copy {
    min-width: 0;
}

.eyebrow, .section-label {
    margin: 0;
    color: inherit;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .11em;
}

.hero h1 {
    margin: 5px 0 2px;
    font-size: clamp(22px, 6vw, 34px);
    line-height: 1.05;
    letter-spacing: .015em;
}

.role {
    margin: 0 0 15px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    opacity: .9;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.chip {
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 999px;
    padding: 9px 15px;
    font-size: 16px;
    font-weight: 950;
}

.chip-solid {
    background: #fff;
    color: var(--blue-dark);
    border-color: #fff;
}

.search-card {
    padding: 26px 24px 22px;
}

.search-card .section-label {
    color: var(--muted);
}

.search-row {
    display: flex;
    gap: 10px;
    margin-top: 11px;
}

input {
    min-width: 0;
    flex: 1;
    border: 1px solid #ccd9e6;
    border-radius: 12px;
    padding: 14px 15px;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    outline: none;
    transition: .2s;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(8,119,209,.12);
}

button {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.search-button {
    padding: 0 19px;
    border-radius: 12px;
    background: var(--blue-dark);
    color: #fff;
}

.hint {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.status {
    min-height: 18px;
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 700;
}

.status.error {
    color: #c53030;
}

.status.ok {
    color: #168249;
}

.result-card {
    margin: 0 18px 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(31,83,126,.08);
}

.result-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
}

.result-heading .section-label {
    color: var(--muted);
}

.result-heading h2 {
    margin: 4px 0 0;
    font-size: 20px;
}

.check {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e7f8ee;
    color: #168249;
    font-size: 20px;
    font-weight: 900;
}

.details-grid {
    display: grid;
    gap: 0;
    padding: 0 20px;
}

.detail {
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.detail span, .number-box span, .vote-grid span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.detail strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
}

.numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 18px 20px;
    background: var(--soft);
}

.number-box {
    text-align: center;
    padding: 13px;
    border-radius: 14px;
    background: #fff;
}

.number-box strong {
    display: block;
    margin-top: 3px;
    color: #111827;
    font-size: 48px;
    line-height: 1;
}

.vote-block {
    padding: 20px;
    background: var(--blue-dark);
    color: #fff;
    text-align: center;
}

.vote-block p {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .15em;
}

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

.vote-grid > div {
    padding: 10px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 12px;
}

.vote-grid span {
    color: rgba(255,255,255,.8);
}

.vote-grid strong {
    display: block;
    margin-top: 5px;
    font-size: 64px;
    line-height: .95;
    font-weight: 950;
}

.whatsapp-button {
    display: block;
    width: calc(100% - 40px);
    margin: 20px;
    height: 49px;
    border-radius: 12px;
    background: var(--blue-dark);
    color: #fff;
}

.hidden {
    display: none !important;
}

.contact-card {
    margin: 0 16px 24px;
    padding: 20px;
    border: 2px solid var(--blue);
    border-radius: 16px;
    background: #f2f8ff;
}

footer {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px 25px;
    color: #9aaabd;
    font-size: 11px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.capture-card {
    margin: 0 16px 24px;
    padding: 20px;
    background: linear-gradient(135deg, #f2f8ff, #eaf4ff);
    border: 2px solid var(--blue);
    border-radius: 16px;
}

.capture-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--blue);
    color: white;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
}

.capture-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #17324d;
}

.capture-card p {
    margin: 0;
    font-size: 13px;
    color: #6c7784;
    line-height: 1.5;
}

.capture-button {
    width: 100%;
    margin-top: 15px;
    padding: 14px;
    background: var(--blue-dark);
    color: white;
    border-radius: 12px;
    font-size: 15px;
}

@media (max-width: 420px) {
    .hero {
        padding: 28px 18px;
    }
    
    .search-card {
        padding: 22px 18px;
    }
    
    .result-card {
        margin-inline: 12px;
    }
    
    .search-row {
        gap: 7px;
    }
    
    .search-button {
        padding-inline: 14px;
    }
    
    .hero h1 {
        font-size: 22px;
    }
}
