/* ═══════════════════════════════════════════════════════════════
   BooCoo shared site shell — "Electric Light" (2026-07-28)
   Styles the shared vocabulary used across all pages (nav, footer,
   prose, reveal, buttons) plus the design-system components (pills,
   panels, device frames, cards). Tokens: tokens.css. Page-unique
   styles stay inline in each page. Spec: .claude/design-system.md
   ═══════════════════════════════════════════════════════════════ */

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 3px;
    border-radius: 4px;
}
.page { position: relative; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.num { font-variant-numeric: tabular-nums; }
.gtxt {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Nav ───────────────────────────────────────────────────── */
.nav {
    display: flex; align-items: center; gap: 14px;
    max-width: 1140px; margin: 0 auto;
    padding: 20px clamp(20px, 4vw, 48px);
}
.nav__icon { width: 34px; height: 34px; border-radius: 9px; }
.nav__brand {
    font-family: var(--font-mark);
    font-weight: 800; font-size: 1.5rem; letter-spacing: -0.01em;
}
.nav__links {
    margin-left: auto; display: flex; gap: 26px; align-items: center;
    list-style: none;
}
.nav__links a { font-weight: 600; font-size: 0.95rem; color: var(--gray); }
.nav__links a:hover { color: var(--ink); }

/* ── Buttons & links ───────────────────────────────────────── */
.btn {
    display: inline-block; font-weight: 700; font-size: 0.98rem;
    background: var(--ink); color: #fff;
    padding: 13px 24px; border-radius: var(--r-btn);
    transition: transform 0.15s ease;
}
.btn, .btn:hover { color: #fff; } /* wins over contextual link colors */
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--white { background: #fff; color: var(--brand-blue); }
.btn--white, .btn--white:hover { color: var(--brand-blue); }
.link-under {
    font-weight: 700; color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--brand-teal);
    text-decoration-thickness: 2.5px;
    text-underline-offset: 5px;
}
.link-under:hover { text-decoration-thickness: 5px; }

/* ── Section chrome ────────────────────────────────────────── */
.eyebrow, .bento__label, .how__label, .screens__label, .manifesto__label {
    font-weight: 800; font-size: 0.8rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    display: inline-block;
}
.content__title-grad {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

/* ── Vitals pills (FILL register + colored shadows) ────────── */
.pills { display: flex; gap: 11px; flex-wrap: wrap; }
.pill {
    font-weight: 700; font-size: 0.88rem; color: #fff;
    padding: 9px 16px; border-radius: var(--r-pill);
}
.pill--1 { background: linear-gradient(120deg, var(--vital-1a), var(--vital-1b)); box-shadow: 0 8px 24px rgba(22,163,74,.32); }
.pill--2 { background: linear-gradient(120deg, var(--vital-2a), var(--vital-2b)); box-shadow: 0 8px 24px rgba(13,148,136,.32); }
.pill--3 { background: linear-gradient(120deg, var(--vital-3a), var(--vital-3b)); box-shadow: 0 8px 24px rgba(37,99,235,.32); }
.pill--4 { background: linear-gradient(120deg, var(--vital-4a), var(--vital-4b)); box-shadow: 0 8px 24px rgba(234,88,12,.32); }
.pill--5 { background: linear-gradient(120deg, var(--vital-5a), var(--vital-5b)); box-shadow: 0 8px 24px rgba(220,38,38,.28); }

/* ── Outlined negative chips ("No budgets.") ───────────────── */
.no-chip {
    font-weight: 800; letter-spacing: -0.01em;
    padding: 14px 26px; border-radius: var(--r-pill);
    border: 2.5px solid var(--ink);
    display: inline-block;
}
.no-chip b {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

/* ── Color-field panel ─────────────────────────────────────── */
.panel {
    border-radius: var(--r-panel);
    background: var(--grad-field);
    color: #fff;
    padding: clamp(30px, 4.5vw, 52px);
}
.panel a { color: #fff; text-decoration: underline; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 28px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }

/* ── Device frame (real screenshots only, native ratio) ────── */
.device {
    background: var(--ink);
    border-radius: 38px; padding: 12px;
    box-shadow: var(--shadow-device);
}
.device img { border-radius: 28px; }

/* ── Prose (legal pages, blog posts, long-form) ────────────── */
.prose { max-width: 70ch; }
.prose h1 { font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; line-height: 1.1; }
.prose h2 { font-weight: 800; font-size: clamp(1.4rem, 2.8vw, 1.9rem); letter-spacing: -0.015em; margin: 2.2em 0 0.6em; }
.prose h3 { font-weight: 700; font-size: 1.15rem; margin: 1.8em 0 0.5em; }
.prose p, .prose li { color: var(--gray); font-size: 1.05rem; line-height: 1.75; }
.prose p { margin: 1em 0; }
.prose p.lead { color: var(--ink); font-size: 1.2rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 1em 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { font-style: italic; }
.prose a {
    color: var(--vital-2-text);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}
.prose a:hover { text-decoration-thickness: 3px; }
.prose code {
    background: var(--tint); border: 1px solid var(--line);
    border-radius: 6px; padding: 0.1em 0.4em; font-size: 0.92em;
}
.prose blockquote {
    border-left: 3px solid var(--brand-teal);
    padding-left: 1.2em; margin: 1.4em 0;
    color: var(--ink); font-weight: 500;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

/* ── Footer ────────────────────────────────────────────────── */
.footer { background: var(--tint); border-top: 1px solid var(--line); margin-top: clamp(56px, 9vh, 110px); }
.footer__inner {
    max-width: 1140px; margin: 0 auto;
    padding: 30px clamp(20px, 4vw, 48px) 56px;
    display: flex; gap: 26px; flex-wrap: wrap; align-items: center;
}
.footer__left { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.footer__logo { width: 30px; height: 30px; border-radius: 8px; }
.footer__copy { font-size: 0.88rem; color: var(--faint); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; }
.footer__links a { font-weight: 600; font-size: 0.9rem; color: var(--faint); }
.footer__links a:hover { color: var(--ink); }

/* ── Scroll reveal (threshold 0 in JS; final state = designed) ─ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.3s ease-out, transform 0.3s ease-out; }
.reveal--visible, .reveal.reveal--visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn:hover, .card:hover { transform: none; }
}

@media (max-width: 700px) {
    .nav__links li:not(:last-child) { display: none; }
    .footer__inner { flex-direction: column; align-items: flex-start; }
}
