.health-page .health-hero {
    padding: calc(var(--space-2xl, 8rem) + 4rem) 0 var(--space-xl, 5rem);
    text-align: center;
}

.health-hero .label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm, 1rem);
}

.health-hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md, 1.5rem);
    color: var(--text-primary);
}

.health-hero h1 em {
    font-style: normal;
    font-weight: 500;
}

.health-hero-sub {
    max-width: 560px;
    margin: 0 auto var(--space-lg, 3rem);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.health-app-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 var(--space-md, 1.5rem) var(--space-2xl, 8rem);
}

/* Form Card */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    padding: var(--space-lg, 3rem);
    margin-bottom: var(--space-lg, 2rem);
    box-shadow: var(--shadow-sm);
}

.input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.health-input {
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.health-input:focus {
    border-color: var(--accent);
    background: var(--bg-primary);
}

.health-input::placeholder {
    color: var(--text-tertiary);
}

.form-note {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    text-align: left;
}

/* Loading state */
#loading {
    display: none;
    padding: var(--space-xl, 3rem);
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    margin-bottom: var(--space-lg, 2rem);
}

.loading-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.loading-bar-inner {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    animation: scan 1.6s ease-in-out infinite;
    width: 40%;
}

@keyframes scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

.loading-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Results */
#results {
    display: none;
}

.grade-block {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: var(--space-lg, 3rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    margin-bottom: var(--space-lg, 2rem);
}

.grade-letter {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 500;
    line-height: 1;
    min-width: 100px;
    text-align: center;
}

.grade-a { color: #2d6a4f; }
.grade-b { color: #1e40af; }
.grade-c { color: #92400e; }
.grade-d { color: #b45309; }
.grade-f { color: #991b1b; }

.grade-meta {
    flex: 1;
}

.grade-site {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-tertiary);
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
    word-break: break-all;
}

.grade-headline {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.grade-score {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.score-bar {
    height: 6px;
    background: var(--border);
    border-radius: 6px;
    margin-top: 1rem;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.8s ease;
}

/* Issues list */
.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.issues-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 20px);
    overflow: hidden;
    margin-bottom: var(--space-lg, 2rem);
}

.issue-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.issue-item:last-child {
    border-bottom: none;
}

.severity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.sev-critical { background: var(--error, #dc2626); }
.sev-high { background: #f59e0b; }
.sev-medium { background: #6366f1; }
.sev-low { background: var(--text-tertiary); }

.issue-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    flex: 1;
}

.issue-points {
    font-size: 0.85rem;
    color: var(--error, #dc2626);
    flex-shrink: 0;
    font-weight: 500;
}

/* Email gate */
#email-gate {
    background: var(--accent-subtle);
    color: var(--text-primary);
    border-radius: var(--radius-lg, 20px);
    padding: var(--space-lg, 3rem);
    margin-bottom: var(--space-lg, 2rem);
    border: 1px solid var(--border);
    text-align: center;
}

.gate-headline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.gate-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.gate-row {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto;
}

#gate-email {
    background: var(--bg-primary);
    border-color: var(--border);
}

.gate-success-msg {
    font-size: 0.95rem;
    color: #2d6a4f;
    font-weight: 500;
}

/* Error */
#error-msg {
    display: none;
    padding: 1rem 1.25rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: var(--radius, 8px);
    font-size: 0.95rem;
    color: var(--error, #dc2626);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .input-row, .gate-row {
        flex-direction: column;
    }
    
    .grade-block {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
}
