* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
}
body {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    color: var(--brand-text);
    background: var(--brand-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
main {
    flex: 1 0 auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

a { color: var(--brand-accent); }
a:hover { color: var(--brand-accent-hover); }

/* Header */
.site-header {
    background: var(--surface-header);
    border-bottom: 1px solid var(--surface-header-border);
    padding: var(--space-md) 0;
}
.brand-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}
.brand-primary-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}
.brand-primary-logo img {
    display: block;
    max-height: 56px;
    width: auto;
}
.brand-divider {
    color: var(--brand-muted);
    font-size: 18px;
    font-weight: 300;
    line-height: 1;
    user-select: none;
}
.brand-partner-logo {
    display: block;
    max-height: 22px;
    width: auto;
    flex-shrink: 0;
}

/* Hero */
.hero {
    padding: var(--space-xl) 0 var(--space-lg);
}
.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-dark);
    font-size: clamp(28px, 4vw, 44px);
    margin-bottom: var(--space-sm);
}
.hero .lede {
    color: var(--brand-muted);
    font-size: 18px;
    max-width: 640px;
}

/* Form */
.form-section { padding-bottom: var(--space-xl); }
.lead-form {
    background: #fff;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr 1fr;
}
.lead-form .field-full { grid-column: 1 / -1; }

.lead-form label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--brand-primary);
    font-size: 14px;
}

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-sm);
    font: inherit;
    background: #fff;
    color: var(--brand-text);
}
.lead-form input:focus,
.lead-form select:focus {
    outline: 2px solid var(--brand-accent);
    outline-offset: 1px;
    border-color: var(--brand-accent);
}

.consent-block {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
}
.consent-block input[type="checkbox"] {
    margin-top: 5px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--brand-accent);
}
.consent-block label {
    font-weight: 400;
    color: var(--brand-text);
    font-size: 14px;
    margin-bottom: 0;
}

.btn-primary {
    background: var(--brand-accent);
    color: #fff;
    border: 0;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 16px;
    transition: background .15s ease;
}
.btn-primary:hover { background: var(--brand-accent-hover); }
.btn-primary:focus { outline: 2px solid var(--brand-primary); outline-offset: 2px; }

.form-errors, .field-error,
.lead-form ul {
    color: var(--brand-danger);
    font-size: 14px;
    margin-top: 6px;
    list-style: none;
    padding: 0;
}

/* Success */
.hero-success h1 {
    color: var(--brand-accent);
}

/* Legal pages (privacy) */
.legal {
    padding: var(--space-lg) 0;
    background: #fff;
}
.legal .container { max-width: 760px; }
.legal h1 {
    font-family: var(--font-display);
    color: var(--brand-primary);
    margin-bottom: var(--space-md);
    font-size: clamp(24px, 3vw, 36px);
}
.legal h2 {
    font-family: var(--font-display);
    color: var(--brand-primary);
    margin: var(--space-md) 0 var(--space-xs);
    font-size: 20px;
}
.legal p {
    margin-bottom: var(--space-sm);
    line-height: 1.65;
    color: var(--brand-text);
}
.legal a {
    color: var(--brand-accent);
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: var(--surface-footer);
    border-top: 1px solid var(--surface-footer-line);
    color: var(--surface-footer-text);
    padding: var(--space-lg) 0;
    font-size: 14px;
    flex-shrink: 0;
}
.site-footer p { margin-bottom: var(--space-xs); }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 1px;
    transition: border-color .15s ease;
}
.site-footer a:hover { border-bottom-color: var(--brand-accent); }

@media (max-width: 720px) {
    .lead-form { grid-template-columns: 1fr; padding: var(--space-md); }
    .hero { padding: var(--space-lg) 0 var(--space-md); }
}
