/* =============================================================================
   Public marketing site. Tokens come from app.css — this file only adds the
   shapes the app shell has no use for (hero, metrics, steps, feature cards).
   The slot grid, modal and print rules used to live here; they now sit in
   app.css, which is the only stylesheet the signed-in shell loads.
   ========================================================================== */

/* ---------- Header: light, sticky, thin — as on wallbox.com ---------- */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
}

.site-header .navbar-brand { color: var(--navy); font-weight: 600; letter-spacing: -.02em; }
.site-header .navbar-brand:hover { color: var(--navy); }

.site-header .nav-link {
    color: var(--ink);
    font-size: .9375rem;
    font-weight: 500;
    padding: .4rem .85rem;
}

.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--green-dark); }

/* ---------- Hero ---------- */

.hero {
    background: linear-gradient(135deg, #142641 0%, #0C3B44 55%, #085D52 100%);
    color: #fff;
    padding: 5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
}

/* A soft mint bloom in the corner, so the block is not a flat rectangle of navy. */
.hero::after {
    content: "";
    position: absolute;
    right: -12%;
    top: -35%;
    width: 46rem;
    height: 46rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 229, 221, .18) 0%, rgba(180, 229, 221, 0) 62%);
    pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero h1 {
    font-size: clamp(2rem, 4.2vw, 3.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.03em;
}

.hero .lead { color: rgba(255, 255, 255, .82); font-size: 1.125rem; }

.hero-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-soft);
    margin-bottom: 1rem;
}

/* ---------- Metrics strip ---------- */

.metric-value {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.metric-label { color: rgba(255, 255, 255, .7); font-size: .875rem; }

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section-alt { background: var(--surface); }

.section-eyebrow {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: .6rem;
}

.section h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); letter-spacing: -.025em; }
.section-lead { color: var(--muted); font-size: 1.0625rem; }

/* ---------- Feature cards ---------- */

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 1.6rem;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.section-alt .feature { background: var(--canvas); }

.feature-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--green-tint);
    color: var(--green-dark);
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
}

.feature h3 { font-size: 1rem; margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .9375rem; margin-bottom: 0; }

/* ---------- Steps ---------- */

.step-number {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-weight: 600;
    font-size: .9375rem;
    flex: none;
}

/* ---------- Closing call to action ---------- */

.cta-band {
    background: var(--navy);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 2.75rem;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .78); margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .6);
    padding: 2rem 0;
    font-size: .875rem;
}

.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* Honeypot: off-screen rather than display:none — some bots skip hidden inputs. */
.hp-field {
    position: absolute;
    left: -5000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- Sign-in ---------- */

.auth-shell { display: grid; place-items: center; padding: 3.5rem 1rem; }

.auth-card {
    width: 100%;
    max-width: 26rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    padding: 2rem;
}
