/* =========================================
   Alaska Solars – Public Site Styles
   ========================================= */

:root {
    --primary: #0d3b6e;
    --primary-light: #1a5a9a;
    --accent: #f5a623;
    --accent-dark: #d4891a;
    --green: #27ae60;
    --green-dark: #1e8449;
    --red: #e74c3c;
    --gray: #6b7280;
    --gray-light: #f3f4f6;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,.15);
    --radius: 12px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font);
    color: #1f2937;
    background: var(--white);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ── */
.header {
    background: var(--primary);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon { width: 42px; height: 42px; flex-shrink: 0; }

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.3px;
}

.logo-sub {
    font-size: .7rem;
    color: rgba(255,255,255,.65);
    letter-spacing: .5px;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
}

.nav a:hover { color: var(--accent); text-decoration: none; }

/* ── Hero ── */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, #1e6ebf 100%);
    padding: 80px 0 60px;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 50%, rgba(245,166,35,.12) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(39,174,96,.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -.5px;
}

.hero > .container > p {
    color: rgba(255,255,255,.8);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 36px;
}

/* ── Verify Card ── */
.verify-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 520px;
    margin: 0 auto;
    overflow: hidden;
}

.verify-card-header {
    background: var(--gray-light);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.verify-card-header svg {
    width: 28px;
    height: 28px;
    color: var(--green);
    flex-shrink: 0;
}

.verify-card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.verify-form {
    padding: 28px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}

.input-group input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(26,90,154,.15);
}

.input-hint {
    display: block;
    font-size: .78rem;
    color: var(--gray);
    margin-top: 5px;
}

.btn-verify {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    letter-spacing: .3px;
}

.btn-verify:hover { opacity: .92; }
.btn-verify:active { transform: scale(.99); }
.btn-verify:disabled { opacity: .6; cursor: not-allowed; }

/* ── Result Box ── */
.result-box {
    margin: 0 28px 28px;
    border-radius: 10px;
    padding: 22px;
    text-align: center;
}

.result-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.result-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.result-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.result-box h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.result-box p { font-size: .9rem; line-height: 1.5; }

.result-details {
    text-align: left;
    margin-top: 16px;
    border-top: 1px solid rgba(0,0,0,.1);
    padding-top: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .88rem;
    gap: 12px;
}

.detail-row span { color: #4b5563; }
.detail-row strong { color: #111827; text-align: right; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
}

.badge-green { background: #d1fae5; color: #065f46; }
.badge-gray  { background: #f3f4f6; color: #374151; }
.badge-red   { background: #fee2e2; color: #991b1b; }

/* ── How It Works ── */
.how-it-works {
    background: var(--gray-light);
    padding: 64px 0;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -.3px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.step {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.step p  { font-size: .88rem; color: var(--gray); }

/* ── Features ── */
.features { padding: 64px 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.feature {
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: box-shadow .2s, transform .2s;
}

.feature:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.feature svg {
    width: 44px;
    height: 44px;
    color: var(--accent);
    margin: 0 auto 16px;
    display: block;
}

.feature h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.feature p  { font-size: .88rem; color: var(--gray); }

/* ── Footer ── */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,.8);
    padding: 48px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: .88rem;
    line-height: 1.7;
    max-width: 280px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.75); font-size: .88rem; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }

.footer-contact p { font-size: .88rem; margin-bottom: 6px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 16px 0;
    text-align: center;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero { padding: 48px 0 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .nav { gap: 14px; }
}

@media (max-width: 480px) {
    .verify-form { padding: 20px; }
    .result-box { margin: 0 16px 20px; }
    .header .container { justify-content: center; }
    .nav { display: none; }
}
