/* =========================================================
   DashboardHC — "clean" refresh layer (loaded after main.css)
   Inspired by the calm, airy feel of modern product sites:
   floating pill nav, centered hero over a faded product
   mockup, generous whitespace, hairline cards, soft motion.
   Delete this file + its <link> tags to revert entirely.
   ========================================================= */

:root {
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --hairline-clean: rgba(10, 26, 58, 0.08);
    --shadow-clean: 0 1px 2px rgba(10, 26, 58, 0.04), 0 12px 40px rgba(10, 26, 58, 0.06);
    --bg-wash: #f7fafd;
}

body { background: #fff; }

/* ---------- Type: lighter, tighter, calmer ---------- */
h1 { font-weight: 700; letter-spacing: -0.035em; }
h2 { font-weight: 650; letter-spacing: -0.03em; }
h3 { font-weight: 600; }
p, li { line-height: 1.65; }
.lede { font-size: 1.1875rem; color: var(--muted); }

.eyebrow {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--hairline-clean);
    border-radius: 999px;
    padding: 0.4rem 0.85rem;
}
.eyebrow svg { color: var(--brand-700); }

/* ---------- Floating pill nav ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    background: transparent;
    border: 0;
    padding: 0.75rem 1rem 0;
    pointer-events: none;
}
.nav-inner {
    pointer-events: auto;
    max-width: 1080px;
    padding: 0.55rem 0.6rem 0.55rem 1.25rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--hairline-clean);
    border-radius: 999px;
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 6px 24px rgba(10, 26, 58, 0.05);
}
.nav-logo img { height: 26px; }
.nav-links { gap: 0.25rem; }
.nav-links a {
    display: inline-block;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.875rem;
    color: var(--slate);
    transition: background 0.2s ease, color 0.2s ease;
}
.nav-links a:hover { background: rgba(10, 26, 58, 0.05); color: var(--ink); }
.nav-cta-group .btn { padding: 0.65rem 1.1rem; font-size: 0.875rem; }
.nav-cta-group .btn-secondary { border-color: transparent; background: transparent; color: var(--slate); }
.nav-cta-group .btn-secondary:hover { color: var(--ink); background: rgba(10, 26, 58, 0.05); }
.nav-cta-group .btn-primary { box-shadow: none; }

@media (max-width: 900px) {
    .nav { padding: 0.5rem 0.75rem 0; }
    .nav-inner { border-radius: 1.5rem; position: relative; }
    .nav.open .nav-links {
        top: calc(100% + 0.5rem);
        left: 0; right: 0;
        border: 1px solid var(--hairline-clean);
        border-radius: 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        pointer-events: auto;
    }
}

/* Fixed nav no longer takes space in flow: pad the first section. */
body > .nav + *:not(.hero-product) { padding-top: 5.5rem; }

/* ---------- Buttons: quieter ---------- */
.btn { font-weight: 550; transition-timing-function: var(--ease-out); }
.btn-primary { box-shadow: none; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(10, 26, 58, 0.16); }
.btn-secondary { border-color: var(--hairline-clean); }
.btn-large { padding: 0.95rem 1.5rem; }

/* ---------- Sections: more air, fewer hard color blocks ---------- */
.section { padding: 7rem 0; }
.section-tight { padding: 4.5rem 0; }
.section-tinted { background: var(--bg-wash); }
.showcase { padding: 8rem 0; }
.showcase h2 { font-weight: 700; letter-spacing: -0.045em; }
.showcase-tinted { background: var(--bg-wash); }
.showcase-tag {
    font-weight: 500;
    color: var(--muted);
}

/* ---------- Hero: centered headline, product mockup rises beneath ---------- */
.hero-product {
    padding: 8rem 0 0;
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(128, 164, 212, 0.22) 0%, transparent 70%),
        #fff;
    text-align: center;
}
.hero-product::before, .hero-product::after { display: none; }
.hero-product .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    justify-items: center;
}
.hero-product .hero-copy { max-width: 52rem; }
.hero-product h1 {
    font-size: clamp(2.5rem, 6.4vw, 4.75rem);
    line-height: 1.04;
    margin-bottom: 1.25rem;
}
.hero-product .lede { margin: 0 auto 2rem; max-width: 56ch; }
.hero-product .btn-row { justify-content: center; }

/* Product mockup: wide, bordered, fades into the page at the bottom */
.hero-product .hero-rich {
    width: 100%;
    max-width: 880px;
    position: relative;
    max-height: 560px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,0.35) 82%, transparent 98%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 62%, rgba(0,0,0,0.35) 82%, transparent 98%);
    text-align: left;
}
.hero-product .rich-card {
    border: 1px solid var(--hairline-clean);
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow-clean);
}
.hero-product .floating-prompt { display: none; }

@media (max-width: 900px) {
    .hero-product { padding-top: 6.5rem; }
    .hero-product .hero-rich { max-height: 440px; }
}

/* ---------- Cards: hairline, flat, soft shadow on hover only ---------- */
.card, .tool-card, .agent-card, .feature-card, .rich-card, .logo-pill {
    border-color: var(--hairline-clean);
}
.card, .tool-card, .agent-card, .feature-card {
    box-shadow: none;
    transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.card:hover, .tool-card:hover, .agent-card:hover, .feature-card:hover {
    box-shadow: var(--shadow-clean);
    transform: translateY(-2px);
}

/* Dark blocks: keep, but soften so they read as one calm system */
.section-deep {
    background: linear-gradient(180deg, #0c1c3d 0%, #11284f 100%);
    border-radius: 2rem;
    margin: 0 0.75rem;
}

/* ---------- Motion: softer, slightly longer reveal ---------- */
.reveal {
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Footer: lighter ---------- */
.footer { background: var(--bg-wash); border-top: 1px solid var(--hairline-clean); }

/* Interior-page heroes: clear the floating nav */
body > .nav + .hero:not(.hero-product) { padding-top: 8rem; }
@media (max-width: 900px) { body > .nav + .hero:not(.hero-product) { padding-top: 6.5rem; } }

/* ---------- Nav alignment: one shared 44px row, centered ---------- */
.nav-inner { min-height: 3.5rem; }
.nav-links li { margin: 0; }
.nav nav { display: flex; align-items: center; }
.nav-logo { align-items: center; }
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-links a,
.nav-cta-group .btn { display: inline-flex; align-items: center; min-height: 2.75rem; line-height: 1; }
.nav-links a { padding: 0 0.95rem; }
.nav-cta-group { gap: 0.25rem; }
.nav-cta-group .btn { padding: 0 1.25rem; font-size: 0.875rem; font-weight: 500; }
.nav-cta-group .btn-secondary { padding: 0 0.9rem; }

/* ---------- "Book walkthrough": arrow slides in, button lifts ---------- */
.nav-cta {
    overflow: hidden;
    background: var(--brand-900);
    border-color: color-mix(in oklab, var(--brand-900) 82%, black 8%);
    color: #fff;
    transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
                transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.nav-cta:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(44, 90, 160, 0.32);
}
.nav-cta:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.nav-cta-arrow {
    width: 0;
    height: 14px;
    margin-left: 0;
    opacity: 0;
    transform: translateX(-6px);
    transition: width 0.25s var(--ease-out), margin 0.25s var(--ease-out),
                opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
    flex: none;
}
.nav-cta:hover .nav-cta-arrow,
.nav-cta:focus-visible .nav-cta-arrow {
    width: 14px;
    margin-left: 0.4rem;
    opacity: 1;
    transform: translateX(0);
}
@media (prefers-reduced-motion: reduce) {
    .nav-cta, .nav-cta-arrow { transition: none; }
    .nav-cta:hover { transform: none; }
}

/* Custom apps: four cards read best as 2x2 */
#custom-apps .features { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-left: auto; margin-right: auto; }
@media (max-width: 700px) { #custom-apps .features { grid-template-columns: 1fr; } }

/* Notes: quiet and neutral, not a warning box */
.notice {
    background: transparent;
    border: 0;
    border-left: 2px solid var(--brand);
    border-radius: 0;
    padding: 0.25rem 0 0.25rem 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 62ch;
}
.notice strong { color: var(--ink-soft); font-weight: 600; }
.notice { margin-left: auto; margin-right: auto; }

/* App screenshots: framed, fading into the page */
.app-shot { margin: 3rem auto 0; max-width: 960px; text-align: center; }
.app-shot img {
    width: 100%; height: auto;
    border: 1px solid var(--hairline-clean);
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow-clean);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
}
.app-shot figcaption { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }
.app-shot { width: min(1080px, 92vw); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.app-shot img {
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 82%, transparent 100%);
}

/* Live building-rankings app mock (dates are tied to the visitor's clock) */
.rk { text-align: left; background: #fff; border: 1px solid var(--hairline-clean); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-clean); overflow: hidden; font-size: 0.8125rem; color: var(--ink);
      -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%); }
.rk .s1 { background: #567fba; } .rk .s2 { background: #7f9ed1; } .rk .s3 { background: #3a6490; } .rk .s4 { background: #a0b4d9; }
.rk-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem 0.75rem; flex-wrap: wrap; }
.rk-title { display: flex; align-items: center; gap: 1.1rem; }
.rk-title img { height: 24px; width: auto; }
.rk-title strong { display: block; font-size: 1.125rem; color: var(--ink); letter-spacing: -0.02em; }
.rk-title span { color: var(--muted); font-size: 0.75rem; }
.rk-month { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); }
.rk-month b { background: var(--brand-50); color: var(--ink); font-weight: 600; padding: 0.45rem 0.9rem; border-radius: 999px; }
.rk-tabs { display: flex; gap: 0.25rem; padding: 0 1.25rem; border-bottom: 1px solid var(--hairline-soft); }
.rk-tabs span { padding: 0.6rem 1rem; color: var(--slate); border-radius: 10px 10px 0 0; }
.rk-tabs .on { background: var(--brand-50); color: var(--brand-900); font-weight: 600; }
.rk-cards { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0.9rem; padding: 1.1rem 1.5rem 0; background: var(--surface-alt); }
.rk-card { background: #fff; border: 1px solid var(--hairline-clean); border-radius: 14px; padding: 0.9rem 1.1rem; display: grid; gap: 0.2rem; }
.rk-card small { color: var(--muted); }
.rk-card b { font-family: "Source Serif 4", Georgia, serif; font-weight: 500; font-size: 1.5rem; letter-spacing: -0.01em; }
.rk-card b em { font-style: normal; font-family: var(--font-sans); font-size: 0.8125rem; margin-left: 0.3rem; }
.rk-card span { color: var(--muted); font-size: 0.75rem; }
.rk-card.top { background: linear-gradient(135deg, #4f78b0, #7393c8); border: 0; color: #fff; }
.rk-card.top small, .rk-card.top span { color: rgba(255,255,255,0.85); }
.rk-filter { display: flex; gap: 0.35rem; flex-wrap: wrap; padding: 1rem 1.5rem 0.75rem; background: var(--surface-alt); }
.rk-filter span { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; border-radius: 999px; color: var(--slate); }
.rk-filter .on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.rk-filter i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.rk-table { background: #fff; margin: 0 1.5rem; border: 1px solid var(--hairline-clean); border-bottom: 0; border-radius: 14px 14px 0 0; }
.rk-row { display: grid; grid-template-columns: 3.5rem 9.5rem 1fr 4rem; align-items: center; gap: 1rem; padding: 0.85rem 1.25rem; border-top: 1px solid var(--hairline-soft); }
.rk-th { border-top: 0; color: var(--muted); font-size: 0.75rem; }
.rk-th span:last-child, .rk-score { text-align: right; }
.rk-rank { font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 1.5rem; color: var(--brand-700); }
.rk-last .rk-rank { color: var(--muted); }
.rk-name { font-weight: 700; display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.rk-delta { font-size: 0.6875rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; }
.rk-delta.up { background: #e1f1e8; color: #1f7a4a; } .rk-delta.down { background: #fbe7e0; color: #b4472a; } .rk-delta.flat { background: var(--hairline-soft); color: var(--muted); }
.rk-bar { display: flex; height: 12px; background: var(--brand-50); border-radius: 999px; overflow: hidden; gap: 2px; }
.rk-bar i { display: block; height: 100%; }
.rk-score { font-family: "Source Serif 4", Georgia, serif; font-size: 1.5rem; }
@media (max-width: 700px) {
    .rk-cards { grid-template-columns: 1fr; }
    .rk-row { grid-template-columns: 2rem 1fr 3rem; }
    .rk-row .rk-bar, .rk-th span:nth-child(3) { grid-column: 1 / -1; grid-row: 2; }
}
.rk-title img { flex: none; width: 150px; height: auto; max-width: none; }
.app-shot .rk img { border: 0; border-radius: 0; box-shadow: none; -webkit-mask-image: none; mask-image: none; }

/* ---------- Mobile fixes ---------- */
@media (max-width: 900px) {
    .nav-cta-group .btn-secondary { display: none; }
    .nav-cta-group .nav-cta { padding: 0 1rem; }
    .nav-toggle { display: inline-flex; }
    .nav-links a { display: block; min-height: 0; padding: 0.7rem 0.5rem; }
}
.hero-product .hero-grid { grid-template-columns: minmax(0, 1fr); }
.hero-product .hero-copy, .hero-product .hero-rich { min-width: 0; }
body { overflow-x: clip; }

.footer-note { display: block; width: 100%; font-size: 0.75rem; color: var(--muted); }
.hero-centered .app-shot { margin-top: 3.5rem; }
@media (max-width: 700px) {
    .rk-title { flex-wrap: wrap; gap: 0.5rem; }
    .rk-title strong { white-space: nowrap; }
    .rk-title img { width: 120px; }
}

/* ---------- Calmer headline scale (easier to read at a glance) ---------- */
h1, .hero h1, .hero-product h1, .hero-centered h1 { font-size: clamp(2.125rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
.showcase h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.035em; max-width: 20ch; }
.showcase-sub { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.hero .lede, .hero-product .lede, .hero-centered .lede { font-size: 1.125rem; }
.hero-product { padding-top: 7.5rem; }

/* =========================================================
   Hero "board": a rounded DHC-blue panel at the top of the page.
   The product mockup straddles its lower edge and fades into the
   light page, so scrolling reads as dark -> light.
   ========================================================= */
.hero-board { --board-stop: 82%; background: #fff !important; padding-bottom: 0; }
.hero-board::before {
    display: block !important; content: "";
    position: absolute; z-index: 0; opacity: 1; filter: none; transform: none;
    top: 0.5rem; left: 0.5rem; right: 0.5rem; bottom: auto; width: auto;
    height: calc(var(--board-stop) - 0.5rem);
    border-radius: 28px;
    background:
        radial-gradient(60% 55% at 50% 0%, rgba(255,255,255,0.20) 0%, transparent 72%),
        linear-gradient(168deg, #6f99cc 0%, #4f7ab0 52%, #2f5c9c 100%);
}
.hero-board::after { display: none !important; }
.hero-board > .container { position: relative; z-index: 1; }

.hero-board h1 { color: #fff; }
.hero-board .lede { color: rgba(255, 255, 255, 0.9); }
.hero-board .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(10, 26, 58, 0.18); }
.hero-board .btn-primary:hover { background: var(--brand-50); color: var(--ink); }
.hero-board .btn-ghost { color: #fff; }
.hero-board .btn-ghost:hover { color: #fff; opacity: 0.85; }

/* Gentle entrance */
.hero-board .hw {
    display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(0.4em);
    animation: hero-word 0.74s var(--ease-out) forwards; animation-delay: var(--d, 0ms);
}
.hero-board .lede, .hero-board .btn-row {
    opacity: 0; filter: blur(8px); transform: translateY(14px);
    animation: hero-block 0.78s var(--ease-out) forwards;
}
.hero-board .lede { animation-delay: 0.7s; }
.hero-board .btn-row { animation-delay: 0.86s; }
.hero-board .hero-rich, .hero-board .app-shot { animation: hero-block 0.9s var(--ease-out) 1s both; }
@keyframes hero-word { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes hero-block { to { opacity: 1; filter: blur(0); transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .hero-board .hw, .hero-board .lede, .hero-board .btn-row, .hero-board .hero-rich, .hero-board .app-shot {
        animation: none; opacity: 1; filter: none; transform: none;
    }
}
@media (max-width: 700px) { .hero-board::before { border-radius: 22px; } }


/* =========================================================
   Board hero, take two: transparent nav on the board, light
   headline, glass-framed app preview that fades into the page.
   ========================================================= */
body.has-board .nav:not(.scrolled) .nav-inner {
    background: transparent; border-color: transparent; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.has-board .nav:not(.scrolled) .nav-logo img { filter: brightness(0) invert(1); }
body.has-board .nav:not(.scrolled) .nav-links a,
body.has-board .nav:not(.scrolled) .nav-cta-group .btn-secondary,
body.has-board .nav:not(.scrolled) .nav-toggle { color: rgba(255,255,255,0.92); }
body.has-board .nav:not(.scrolled) .nav-links a:hover,
body.has-board .nav:not(.scrolled) .nav-cta-group .btn-secondary:hover { background: rgba(255,255,255,0.14); color: #fff; }
body.has-board .nav:not(.scrolled) .nav-cta { background: #fff; border-color: #fff; color: var(--ink); }
body.has-board .nav:not(.scrolled) .nav-cta:hover { background: var(--brand-50); border-color: var(--brand-50); color: var(--ink); box-shadow: 0 10px 24px rgba(10,26,58,0.25); }
.nav-inner, .nav-logo img { transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out); }

/* Light, airy headline like a modern product site */
.hero-board h1 { font-weight: 400; letter-spacing: -0.035em; font-size: clamp(2.25rem, 5vw, 3.875rem); line-height: 1.07; }
.hero-board .lede { font-size: 1.1875rem; }
.hero-board .btn-ghost {
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.28); color: #fff;
}
.hero-board .btn-ghost:hover { background: rgba(255,255,255,0.2); opacity: 1; }
.hero-board .hero-copy { max-width: 52rem; }

/* "Works with" badge row (like a partner badge) */
.hero-works { margin-top: 2.5rem; display: grid; gap: 0.9rem; justify-items: center; }
.hero-works > span { font-size: 0.8125rem; color: rgba(255,255,255,0.8); }
.hero-works-logos { display: flex; gap: 1.75rem; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero-works-logos img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: 0.88; }

/* Glass frame + app preview, fading into the light page */
.hero-board .hero-frame {
    width: 100%; max-width: 1080px; margin: 0 auto; text-align: left;
    padding: 0.9rem 0.9rem 0;
    border: 1px solid rgba(255,255,255,0.4); border-bottom: 0;
    border-radius: 30px 30px 0 0;
    background: rgba(255,255,255,0.14);
    max-height: 520px; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,0.3) 80%, transparent 96%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 58%, rgba(0,0,0,0.3) 80%, transparent 96%);
    animation: hero-block 0.9s var(--ease-out) 1s both;
}
.hero-board .hero-frame .app-mockup { margin: 0; width: 100%; max-width: none; border-radius: 20px 20px 0 0; box-shadow: none; }
.hero-board .hero-grid { justify-items: center; gap: 3rem; }
.hero-board { --board-stop: 80%; }
@media (max-width: 700px) {
    .hero-board .hero-frame { max-height: 380px; border-radius: 22px 22px 0 0; padding: 0.5rem 0.5rem 0; }
    .hero-works-logos { gap: 1.25rem; }
}

/* Build hero: center the app without a transform (the entrance animation owns transform) */
.hero-board .app-shot { width: min(1080px, 100%); max-width: 100%; margin-left: auto; margin-right: auto; transform: none; }


/* Board hero on every page */
.hero-board .container { text-align: center; }
.hero-board .hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 3rem; }
.hero-board .btn-row { justify-content: center; }
.hero-board .lede { margin-left: auto; margin-right: auto; max-width: 56ch; }
.hero-board .hero-frame .hero-card { text-align: left; border: 0; box-shadow: none; border-radius: 20px 20px 0 0; margin: 0; max-width: none; }
.hero-board .hero-frame > .app-mockup { text-align: left; }

/* Text-only pages: the board wraps the whole hero */
.hero-board-flat { --board-stop: 100%; padding: 8.5rem 0 5.5rem; }
.hero-board-flat::before { height: calc(100% - 1rem); }
.hero-board .persona-strip { justify-content: center; margin-top: 2rem; }
.hero-board .persona-chip { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.hero-board .persona-chip:hover { background: rgba(255,255,255,0.22); color: #fff; }
@media (max-width: 700px) { .hero-board-flat { padding: 7rem 0 4rem; } }

/* Frosted nav: glassy but opaque enough that content never shows through legibly */
.nav-inner {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
}
/* Mobile menu open over the blue board: keep links readable */
body.has-board .nav.open .nav-links a { color: var(--ink); }
body.has-board .nav.open .nav-inner { background: rgba(255,255,255,0.95); }
body.has-board .nav.open .nav-logo img { filter: none; }
body.has-board .nav.open .nav-toggle { color: var(--ink); }

/* Rankings app inside the hero frame: the frame supplies border, radius and fade */
.hero-board .hero-frame .rk { border: 0; border-radius: 20px 20px 0 0; box-shadow: none; -webkit-mask-image: none; mask-image: none; }
.hero-board .hero-frame { max-height: 640px; }
@media (max-width: 700px) { .hero-board .hero-frame { max-height: 420px; } }

/* Platform hero: frame sits directly in the container, so give it breathing room */
.hero-board .container > .hero-frame { margin-top: 3.5rem; }
@media (max-width: 700px) { .hero-board .container > .hero-frame { margin-top: 2.5rem; } }

/* Show the rankings app properly: more of the table, fade only at the very bottom */
.hero-board .hero-frame {
    max-height: 800px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0,0,0,0.35) 92%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, #000 78%, rgba(0,0,0,0.35) 92%, transparent 100%);
}
.hero-board { --board-stop: 72%; }
@media (max-width: 700px) { .hero-board .hero-frame { max-height: 520px; } }

/* Footer bar: copyright + note on the left, legal links and badge far right */
.footer-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 2rem;
    row-gap: 0.4rem;
    align-items: center;
}
.footer-bar > span:first-child { grid-column: 1; grid-row: 1; }
.footer-bar .footer-note { grid-column: 1; grid-row: 2; width: auto; }
.footer-bar .legal { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: center; }
@media (max-width: 700px) {
    .footer-bar { grid-template-columns: 1fr; }
    .footer-bar .legal { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 0.75rem; }
}
