/* ═══════════════════════════════════════════════════
   Spectacled — Shared Styles
   Light Honey system: warm paper page, white cards,
   ink-amber accents. Cub mark + Andes ridgelines.
   Tokens are the single source of truth.
   ═══════════════════════════════════════════════════ */

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

:root {
    /* grounds */
    --bg: #FFFFFF;                 /* clean white ground */
    --bg-inset: #FAF7F0;           /* warm inset rows/tiles */
    --bg-secondary: #FFFFFF;       /* cards */
    --bg-elevated: #F3ECDD;        /* cream chrome */
    --border-primary: #E4D9C2;
    --border-subtle: rgba(214, 199, 168, .5);
    --border-accent: rgba(214, 158, 42, .45);

    /* type */
    --text-primary: #26190C;
    --text-secondary: #4A3A26;
    --text-muted: #8B7A5F;
    --text-faint: #A5967D;

    /* brand */
    --fur: #7A5634;
    --cream: #F6ECD2;
    --nose: #241610;
    --accent: #F5B942;             /* honey — fills, buttons */
    --accent-ink: #B8770E;         /* deep amber — text/labels on light */
    --accent-hover: #E0A82F;
    --accent-soft: rgba(245, 185, 66, .16);
    --accent-line: rgba(214, 158, 42, .45);

    /* legacy aliases (old markup/inline styles) */
    --bg-primary: var(--bg);
    --accent-muted: var(--accent-soft);
    --primary-purple: var(--accent-ink);
    --primary-purple-dim: var(--accent-soft);
    --primary-teal: var(--accent-ink);

    /* scores — deepened for light grounds */
    --score-excellent: #0EA371;
    --score-good: #3B82F6;
    --score-moderate: #D97706;
    --score-low: #EF4444;

    /* andes */
    --andes-cone: #E9DCC3; --andes-snow: #FFFFFF;
    --andes-far: #ECE1CB; --andes-mid: #DDCCAA; --andes-near: #C9B48D;

    /* misc */
    --shadow-panel: 0 18px 44px rgba(74, 58, 38, .14);
    --shadow-card: 0 8px 24px rgba(74, 58, 38, .08);
    --radius-sm: 4px; --radius-md: 6px; --radius-lg: 10px; --radius-xl: 12px;
    --font-sans: 'Geist Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body {
    background: var(--bg); color: var(--text-secondary);
    font-family: var(--font-sans); font-size: 14px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { display: block; }
h1, h2, h3, h4 { color: var(--text-primary); text-wrap: balance; margin-bottom: 12px; }
h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
h2 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
p { margin-bottom: 14px; }
a { color: var(--accent-ink); }
img, svg { max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--text-primary); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--accent);
    color: #1a1206; padding: 10px 16px; border-radius: 0 0 8px 0;
    font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap, .container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }

/* ---------- brand mark ---------- */
.mark { display: block; }
.logo {
    display: flex; align-items: center; gap: 10px; font-size: 17px;
    font-weight: 700; letter-spacing: -.02em; color: var(--text-primary);
    text-decoration: none;
}
.logo .mark, .logo-icon { width: 30px; height: 30px; flex: none; }
.logo-icon { display: flex; align-items: center; justify-content: center; }
.logo span { color: var(--accent-ink); }

/* ---------- nav ---------- */
header {
    position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}
header nav {
    display: flex; align-items: center; gap: 8px; max-width: 1120px;
    margin: 0 auto; padding: 14px 24px;
}
.logo { margin-right: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
    color: var(--text-muted); text-decoration: none; font-size: 13.5px;
    padding: 8px 12px; border-radius: var(--radius-md);
    transition: color .15s var(--ease);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link-active { color: var(--text-primary); font-weight: 600; }
.nav-login { margin-left: 6px; }
.nav-cta {
    background: var(--accent); color: #1a1206; font-weight: 600;
    font-size: 13.5px; padding: 9px 16px; border-radius: 8px;
    text-decoration: none; margin-left: 8px;
    transition: background .15s var(--ease);
}
.nav-cta:hover { background: var(--accent-hover); }
.nav-toggle {
    display: none; background: none; border: 0; color: var(--text-primary);
    font-size: 22px; padding: 8px; cursor: pointer; border-radius: var(--radius-md);
}
.nav-overlay { display: none; }

/* ---------- buttons ---------- */
.btn {
    display: inline-block; font-weight: 600; font-size: 14px;
    padding: 12px 22px; border-radius: 9px; text-decoration: none;
    border: 0; cursor: pointer;
    transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
    font-family: var(--font-sans);
}
.btn-primary { background: var(--accent); color: #1a1206; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
    background: transparent; color: var(--text-primary);
    border: 1px solid var(--border-primary);
}
.btn-secondary:hover { border-color: var(--fur); background: var(--bg-secondary); }
.btn-full { display: block; width: 100%; text-align: center; }

/* ---------- hero ---------- */
.hero { padding: 100px 0 200px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -40% -20% auto; height: 120%;
    pointer-events: none;
    background: radial-gradient(50% 60% at 50% 0%, var(--accent-soft), transparent 70%);
}
.hero > .wrap, .hero > .container, .hero-inner { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12px;
    font-weight: 500; color: var(--accent-ink); background: var(--accent-soft);
    border: 1px solid var(--accent-line); padding: 6px 14px;
    border-radius: 999px; margin-bottom: 24px;
}
.hero-badge i, .hero-badge .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-ink); display: block; font-size: 0;
}
.hero-subtitle { color: var(--text-muted); font-size: 16px; max-width: 58ch; margin: 20px auto 0; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-cub {
    width: 116px; height: 116px; margin: 0 auto 26px;
    filter: drop-shadow(0 14px 30px rgba(90, 65, 35, .28));
}
.text-accent { color: var(--accent-ink); }
.grid-pattern { display: none; } /* retired dark-mode artifact */

/* ---------- Andes ridgelines ---------- */
.andes { position: absolute; left: 0; right: 0; bottom: 0; height: 230px; pointer-events: none; }
.andes svg { width: 100%; height: 100%; display: block; }
.andes .cone { fill: var(--andes-cone); }
.andes .snow { fill: var(--andes-snow); }
.andes .far  { fill: var(--andes-far); }
.andes .mid  { fill: var(--andes-mid); }
.andes .near { fill: var(--andes-near); }
.andes .glow {
    fill: none; stroke: var(--accent-ink); stroke-opacity: .3;
    stroke-width: 1.5; vector-effect: non-scaling-stroke;
}

/* ---------- section chrome ---------- */
.section-header { max-width: 60ch; margin-bottom: 44px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-label {
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    letter-spacing: .1em; color: var(--accent-ink); margin-bottom: 12px;
    font-family: var(--font-mono);
}
.section-label.purple { color: var(--accent-ink); } /* legacy alias */
.section-desc { color: var(--text-muted); max-width: 58ch; }

.split-section { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.split-section.rev { grid-template-columns: 1.1fr 1fr; }
.split-text .section-label { margin-bottom: 12px; }

.feature-list { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
    display: flex; gap: 10px; align-items: flex-start;
    color: var(--text-secondary); font-size: 14px;
}
.feature-list li i { color: var(--accent-ink); flex: none; margin-top: 2px; }
.feature-list li::before {
    content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px;
    border-radius: 50%; background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    background-image: radial-gradient(circle at center, var(--accent) 0 3px, transparent 3.5px);
}
.feature-list li:has(i)::before { display: none; }

/* ---------- panels / product mocks ---------- */
.panel, .extension-mock, .scorecard-mock {
    background: var(--bg-secondary); border: 1px solid var(--border-primary);
    border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-panel);
}
.panel-head, .extension-header {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle); background: var(--bg-elevated);
}
.panel-head .mark { width: 22px; height: 22px; }
.panel-head .t { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.extension-header-left {
    display: flex; align-items: center; gap: 10px;
    font-size: 12.5px; font-weight: 600; color: var(--text-primary);
}
.extension-header-left .mini-bear { width: 22px; height: 22px; }
.pill, .extension-status-pill {
    margin-left: auto; font-family: var(--font-mono); font-size: 10px;
    letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink);
    background: var(--accent-soft); border: 1px solid var(--accent-line);
    padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.panel-body { padding: 18px; }

/* extension candidates */
.extension-candidate, .cand {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
    background: var(--bg-inset);
}
.extension-candidate + .extension-candidate, .cand + .cand { margin-top: 10px; }
.extension-avatar, .avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--bg-elevated); border: 1px solid var(--border-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--text-muted); flex: none;
}
.extension-candidate-name, .cand .n { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.extension-candidate-title, .cand .r { font-size: 11.5px; color: var(--text-muted); }
.extension-match { margin-left: auto; text-align: right; }
.extension-match-score {
    font-family: var(--font-mono); font-size: 16px; font-weight: 700;
    font-variant-numeric: tabular-nums; color: var(--score-excellent);
}
.extension-match-label {
    font-size: 10px; font-family: var(--font-mono);
    letter-spacing: .06em; color: var(--text-muted);
}
.extension-match-badge {
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    color: var(--score-excellent); border: 1px solid currentColor;
    border-radius: var(--radius-md); padding: 2px 7px;
}
.extension-skills { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px; }
.skill-tag {
    font-size: 11px; color: var(--text-secondary); background: var(--bg-elevated);
    border: 1px solid var(--border-subtle); border-radius: 999px; padding: 3px 10px;
}
.extension-pdf {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 4px; margin: 0 18px 14px;
    padding: 10px 12px; border-radius: var(--radius-lg);
    background: var(--accent-soft); border: 1px solid var(--accent-line);
    font-size: 12px; color: var(--text-primary);
}
.extension-actions { display: flex; gap: 10px; padding: 0 18px 18px; }
.extension-btn {
    flex: 1; text-align: center; font-size: 12.5px; font-weight: 600;
    padding: 9px 0; border-radius: 8px; cursor: default;
}
.extension-btn-primary { background: var(--accent); color: #1a1206; }
.extension-btn-secondary { border: 1px solid var(--border-primary); color: var(--text-primary); }

/* scorecard */
.scorecard-header {
    display: flex; align-items: center; gap: 14px; padding: 18px;
    border-bottom: 1px solid var(--border-subtle);
}
.scorecard-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg-elevated); border: 1px solid var(--border-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px; color: var(--text-muted);
}
.scorecard-candidate { flex: 1; }
.scorecard-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.scorecard-role { font-size: 12px; color: var(--text-muted); }
.scorecard-overall { text-align: right; }
.scorecard-overall-circle, .score-badge {
    font-family: var(--font-mono); font-size: 26px; font-weight: 700;
    color: var(--score-excellent); font-variant-numeric: tabular-nums; line-height: 1;
}
.scorecard-overall-meta { font-size: 11px; color: var(--text-muted); }
.scorecard-dimensions, .extension-dimensions {
    display: flex; flex-direction: column; gap: 11px; padding: 18px;
}
.dimension-row, .extension-dim {
    display: grid; grid-template-columns: 128px 1fr 44px;
    gap: 12px; align-items: center;
}
.dimension-label, .extension-dim-label { font-size: 12px; color: var(--text-secondary); }
.dimension-score, .extension-dim-score {
    font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
    text-align: right; font-variant-numeric: tabular-nums;
}
.dimension-bar-track, .extension-dim-bar {
    height: 6px; border-radius: 3px; background: var(--bg-elevated); overflow: hidden;
}
.dimension-bar-fill, .extension-dim-fill {
    display: block; height: 100%; border-radius: 3px;
    background: var(--accent); transition: width .8s var(--ease);
}
.dimension-bar-fill.exc, .extension-dim-fill.exc { background: var(--score-excellent); }
.dimension-bar-fill.good, .extension-dim-fill.good { background: var(--score-good); }
.dimension-bar-fill.mod, .extension-dim-fill.mod { background: var(--score-moderate); }
.dimension-bar-fill.low, .extension-dim-fill.low { background: var(--score-low); }
.scorecard-reasoning {
    margin: 0 18px 18px; padding: 13px 14px; border-radius: var(--radius-lg);
    background: var(--accent-soft); border: 1px solid var(--accent-line);
    font-size: 12.5px; color: var(--text-primary);
}
.scorecard-reasoning-label {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px;
}
.scorecard-breakdown-badges { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 18px 18px; }

/* ---------- card grids ---------- */
.feature-grid, .platform-grid, .verticals-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 18px; margin-top: 44px;
}
.feature-grid-card, .platform-card, .vertical-card {
    background: var(--bg-secondary); border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl); padding: 24px 22px;
    transition: transform .18s var(--ease), border-color .18s var(--ease);
    box-shadow: var(--shadow-card);
}
.feature-grid-card:hover, .platform-card:hover, .vertical-card:hover {
    transform: translateY(-3px); border-color: var(--accent-line);
}
.feature-grid-icon, .vertical-icon {
    width: 36px; height: 36px; border-radius: var(--radius-lg);
    background: var(--accent-soft); border: 1px solid var(--accent-line);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-ink); font-size: 18px; margin-bottom: 14px;
}
.platform-card h3, .feature-grid-card h3, .vertical-title { font-size: 15.5px; margin-bottom: 6px; }
.platform-card p, .feature-grid-card p, .vertical-desc {
    margin: 0; color: var(--text-muted); font-size: 13px;
}
.platform-card .dk {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px;
}

/* ---------- steps ---------- */
.steps-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.step-card {
    background: var(--bg-secondary); border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl); padding: 26px 22px; box-shadow: var(--shadow-card);
}
.step-number { font-family: var(--font-mono); font-size: 11px; color: var(--accent-ink); letter-spacing: .1em; }
.step-card h3 { font-size: 15.5px; margin: 10px 0 6px; }
.step-card p { margin: 0; color: var(--text-muted); font-size: 13px; }
.step-connector { display: none; }

/* ---------- stat band ---------- */
.stat-band {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--border-subtle); border: 1px solid var(--border-subtle);
    border-radius: 14px; overflow: hidden;
}
.stat-chip { background: var(--bg-secondary); padding: 28px 20px; text-align: center; }
.stat-value {
    font-family: var(--font-mono); font-size: 32px; font-weight: 700;
    color: var(--accent-ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ---------- trust strip ---------- */
.trust {
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-inset); padding: 44px 0;
}
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trust-item .tk { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.trust-item p { margin: 4px 0 0; font-size: 12px; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
    text-align: center; position: relative; overflow: hidden;
    background: linear-gradient(180deg, var(--bg-inset) 0%, var(--bg) 100%);
    border-top: 1px solid var(--border-subtle); padding: 88px 0 170px;
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band .hero-cub { width: 88px; height: 88px; margin-bottom: 20px; }
.cta-band-title {
    font-size: clamp(26px, 4vw, 36px); font-weight: 600;
    letter-spacing: -.02em; color: var(--text-primary); margin-bottom: 10px;
}
.cta-band-sub { color: var(--text-muted); margin: 0 auto 28px; max-width: 46ch; }
.cta-band-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .andes { height: 150px; opacity: .75; }

/* ---------- prose (legal / long-form) ---------- */
.prose { max-width: 72ch; margin: 0 auto; }
.prose h2 { font-size: 20px; margin-top: 40px; }
.prose h3 { font-size: 16px; margin-top: 28px; }
.prose p, .prose li { color: var(--text-secondary); font-size: 14px; }
.prose ul { padding-left: 22px; }

/* ---------- footer ---------- */
footer {
    border-top: 1px solid var(--border-subtle); padding: 48px 0 64px;
    color: var(--text-muted); font-size: 12.5px; background: var(--bg);
}
.footer-content {
    display: flex; align-items: flex-start; gap: 32px; flex-wrap: wrap;
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.footer-tagline { color: var(--text-muted); max-width: 34ch; margin-top: 10px; }
.footer-nav { display: flex; gap: 4px 10px; margin-left: auto; flex-wrap: wrap; }
.footer-nav a, .footer-link-muted {
    color: var(--text-muted); text-decoration: none;
    display: inline-block; padding: 6px 4px;
}
.footer-nav a:hover { color: var(--text-primary); }
.footer-bottom {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    max-width: 1120px; margin: 28px auto 0; padding: 20px 24px 0;
    border-top: 1px solid var(--border-subtle);
}
.footer-copyright { margin-right: auto; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--text-muted); font-size: 17px; }
.footer-social a:hover { color: var(--text-primary); }
.footer-contact a { color: var(--text-muted); }
footer .logo { font-size: 14px; }
footer .logo .mark, footer .logo-icon { width: 22px; height: 22px; }

/* ---------- reveal animation ---------- */
.reveal { transition: opacity .5s var(--ease), transform .5s var(--ease); }
/* hidden state only once JS arms the observer — no-JS visitors see everything */
.reveal-armed .reveal:not(.visible) { opacity: 0; transform: translateY(14px); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.back-to-top {
    position: fixed; right: 20px; bottom: 20px; width: 40px; height: 40px;
    border-radius: 50%; background: var(--bg-secondary);
    border: 1px solid var(--border-primary); color: var(--text-primary);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; box-shadow: var(--shadow-card);
    opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); z-index: 30;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
    .split-section, .split-section.rev { grid-template-columns: 1fr; gap: 32px; }
    .feature-grid, .platform-grid, .verticals-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-flow { grid-template-columns: 1fr; }
    .stat-band { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links {
        position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
        flex-direction: column; align-items: stretch; gap: 4px;
        padding: 76px 20px 24px; background: var(--bg);
        border-left: 1px solid var(--border-primary);
        transform: translateX(100%); transition: transform .25s var(--ease); z-index: 50;
    }
    .nav-links.open { transform: none; }
    .nav-link { padding: 12px 14px; font-size: 15px; }
    .nav-cta { margin: 10px 0 0; text-align: center; }
    .nav-toggle { display: block; z-index: 60; position: relative; }
    .nav-overlay { position: fixed; inset: 0; background: rgba(38, 25, 12, .3); z-index: 45; }
    .nav-overlay.open { display: block; }
}
@media (max-width: 560px) {
    section { padding: 64px 0; }
    .hero { padding: 72px 0 160px; }
    .andes { height: 170px; }
    .feature-grid, .platform-grid, .verticals-grid { grid-template-columns: 1fr; }
    .stat-band { grid-template-columns: repeat(2, 1fr); }
    .trust-grid { grid-template-columns: 1fr; }
    .dimension-row, .extension-dim { grid-template-columns: 100px 1fr 40px; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .reveal { opacity: 1; transform: none; }
}
