/* ============================================
   DataAcuity site-specific tweaks
   Loaded AFTER tgn-design-system.css and dataacuity.css overlay.
   Keep this file thin — most styling lives in component .razor.css siblings.
   ============================================ */

/* ============================================================
   LIGHT PALETTE — DataAcuity is a public SELLING site, so it leads
   in light mode (forced in App.razor). The shared design system ships
   a FLAT, COLD light theme that read as "bs":
     • every surface is pure #ffffff (bg-primary/secondary/tertiary/
       elevated) → no depth, no banding, nothing separates sections;
     • --tgn-text-secondary is the ACCENT BLUE (#2196F3) → every lede,
       label, footer line and card description rendered in blue;
     • borders are blue-tinted (rgba(33,150,243,0.2)) → a cold blue wash.
   We rebuild a proper, bright, trustworthy light palette here: a white
   canvas with cool-grey bands, slate text, NEUTRAL hairline borders,
   and blue reserved for accents + CTAs only.
   ============================================================ */
html[data-app="dataacuity"][data-theme="light"] {
    /* Surfaces — depth via banding: white canvas, cool-grey alt sections,
       white cards that lift on a soft shadow. */
    --tgn-bg-primary: #ffffff;
    --tgn-bg-secondary: #f3f6fb;   /* alt sections, footer, code chips, badges */
    --tgn-bg-tertiary: #eaeff7;
    --tgn-bg-elevated: #ffffff;    /* cards */
    --tgn-bg-sunken: #f3f6fb;

    /* Card / glass fill + NEUTRAL hairline borders (this kills the blue wash) */
    --tgn-glass-bg: #ffffff;
    --tgn-glass-bg-strong: #ffffff;
    --tgn-glass-bg-subtle: #fbfcfe;
    --tgn-glass-border: rgba(22, 38, 66, 0.10);
    --tgn-glass-border-subtle: rgba(22, 38, 66, 0.07);

    /* Text — slate, not pure black; body in readable slate-grey, NOT blue */
    --tgn-text-primary: #15212e;   /* near-black slate for headings/strong */
    --tgn-text-secondary: #51607a; /* body, ledes, labels */
    --tgn-text-tertiary: #6b7890;

    /* Neutral borders + soft neutral shadows (was blue-tinted) */
    --tgn-border-color: rgba(22, 38, 66, 0.10);
    --tgn-border-color-strong: rgba(22, 38, 66, 0.14);
    --tgn-shadow-sm: 0 1px 2px rgba(16, 30, 54, 0.06), 0 2px 6px rgba(16, 30, 54, 0.05);
    --tgn-shadow-md: 0 4px 16px rgba(16, 30, 54, 0.08), 0 2px 4px rgba(16, 30, 54, 0.05);
    --tgn-shadow-lg: 0 16px 40px rgba(16, 30, 54, 0.12), 0 4px 10px rgba(16, 30, 54, 0.06);
}

/* ============================================================
   DARK PALETTE — offered via the header toggle (light is still the
   default for selling). The shared dark theme was a flat, COLD near-black
   with the same blue-body-text bug. We rebuild it as a premium deep-SLATE
   dark (built on the #2c3e50 brand-slate family): layered surfaces,
   hairline borders, slate body text. Blue stays an accent only.
   ============================================================ */
html[data-app="dataacuity"][data-theme="dark"] {
    --tgn-bg-primary: #0f1722;     /* deep slate canvas */
    --tgn-bg-secondary: #0b1320;   /* alt bands / footer */
    --tgn-bg-tertiary: #0a111b;
    --tgn-bg-elevated: #16212f;    /* cards lift off the canvas */
    --tgn-bg-sunken: #0b1320;

    --tgn-glass-bg: #16212f;
    --tgn-glass-bg-strong: #1b2838;
    --tgn-glass-bg-subtle: #131e2b;
    --tgn-glass-border: rgba(255, 255, 255, 0.10);
    --tgn-glass-border-subtle: rgba(255, 255, 255, 0.07);

    --tgn-text-primary: #f3f7fc;
    --tgn-text-secondary: #a9b6c6; /* slate body — NOT blue */
    --tgn-text-tertiary: #8493a6;

    --tgn-border-color: rgba(255, 255, 255, 0.10);
    --tgn-border-color-strong: rgba(255, 255, 255, 0.16);
    --tgn-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
    --tgn-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
    --tgn-shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   LIGHT POLISH — depth, motion and a confident sales finish.
   Scoped to the light theme so the dark fallback is untouched.
   ============================================================ */

/* Hero — a bright wash with a hint of brand so it sells, not a dead white
   field. The dark map/console panel on the right gives the focal contrast. */
html[data-app="dataacuity"][data-theme="light"] .dataacuity-hero,
html[data-app="dataacuity"][data-theme="light"] .dataacuity-hero--split {
    background:
        radial-gradient(1100px 460px at 80% -10%, rgba(33, 150, 243, 0.12), transparent 60%),
        radial-gradient(720px 360px at 4% 6%, rgba(33, 150, 243, 0.06), transparent 55%),
        linear-gradient(180deg, #f6faff 0%, #ffffff 72%);
}

/* Product cards — real lift off the white page + a confident hover. */
html[data-app="dataacuity"][data-theme="light"] .dataacuity-product-card {
    background: #ffffff;
    box-shadow: var(--tgn-shadow-sm);
}
html[data-app="dataacuity"][data-theme="light"] .dataacuity-product-card:hover {
    box-shadow: var(--tgn-shadow-lg);
    border-color: rgba(33, 150, 243, 0.45);
}

/* Primary buttons — a soft brand shadow so CTAs read as clickable. */
html[data-app="dataacuity"][data-theme="light"] .tgn-btn--primary {
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.24);
}

/* Closing CTA — a confident brand band. This is a SELLING site; the final
   ask should feel like a close, not another white section. */
html[data-app="dataacuity"][data-theme] .dataacuity-cta {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    margin-top: 2rem;
}
html[data-app="dataacuity"][data-theme] .dataacuity-cta h2 {
    color: #ffffff;
}
html[data-app="dataacuity"][data-theme] .dataacuity-cta p {
    color: rgba(255, 255, 255, 0.9);
}
html[data-app="dataacuity"][data-theme] .dataacuity-cta .tgn-btn--primary {
    background: #ffffff;
    color: #1565C0;
    border-color: #ffffff;
    box-shadow: 0 6px 18px rgba(13, 71, 161, 0.25);
}
html[data-app="dataacuity"][data-theme] .dataacuity-cta .tgn-btn--primary:hover,
html[data-app="dataacuity"][data-theme] .dataacuity-cta .tgn-btn--primary:focus-visible {
    background: #eef5ff;
    color: #0D47A1;
    border-color: #eef5ff;
}
html[data-app="dataacuity"][data-theme] .dataacuity-cta .tgn-btn--ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}
html[data-app="dataacuity"][data-theme] .dataacuity-cta .tgn-btn--ghost:hover,
html[data-app="dataacuity"][data-theme] .dataacuity-cta .tgn-btn--ghost:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
}

/* Blazor Server error UI — matches TGN aesthetic */
#blazor-error-ui {
    background: var(--tgn-danger);
    color: var(--tgn-text-inverse);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    text-align: center;
    font-size: var(--tgn-text-sm);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    background: transparent;
    border: 0;
    color: var(--tgn-text-inverse);
    font-size: 1.25rem;
    line-height: 1;
}

#blazor-error-ui .reload {
    color: var(--tgn-text-inverse);
    text-decoration: underline;
    margin-left: 0.5rem;
}

/* Smooth scrolling for anchor links inside the marketing site */
html {
    scroll-behavior: smooth;
}

/* Selection — brand-tinted */
::selection {
    background: rgba(33, 150, 243, 0.25);
    color: var(--tgn-text-primary);
}

/* Pages focus the <h1> on navigation for screen-reader users. The global
   focus style was drawing a 2px blue ring around every headline (looked
   broken). Hide the ring for programmatic / mouse focus; KEEP it for
   keyboard users so accessibility is preserved. */
[data-app="dataacuity"] :focus:not(:focus-visible) {
    outline: none;
}

/* Headings get programmatic focus on navigation (a screen-reader pattern).
   For sighted users a ring around a non-interactive heading reads as a broken
   box. Suppress it unconditionally — the focus is still announced to AT, only
   the visible ring is removed. Covers every page's hero <h1>. */
[data-app="dataacuity"] h1:focus,
[data-app="dataacuity"] [class*="hero__headline"]:focus,
[data-app="dataacuity"] [class*="hero__headline"]:focus-visible {
    outline: none;
}

/* ============================================================
   MOTION & POLISH — makes the site feel alive without gimmicks.
   All gated on prefers-reduced-motion so it never fights a11y.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {

    /* Scroll-reveal via CSS scroll-driven animation (no JS, so Blazor's
       hydration can't revert it). Elements fade/slide in as they enter the
       viewport. Browsers without animation-timeline ignore it and the
       element simply shows normally — safe fallback. */
    @keyframes da-reveal {
        from { opacity: 0; transform: translateY(22px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    [data-app="dataacuity"] .dataacuity-product-card,
    [data-app="dataacuity"] .dataacuity-why__item,
    [data-app="dataacuity"] .pricing-tier,
    [data-app="dataacuity"] .product-feature,
    [data-app="dataacuity"] .product-stats__item,
    [data-app="dataacuity"] .dataacuity-stats__list > li {
        animation: da-reveal both linear;
        animation-timeline: view();
        animation-range: entry 5% entry 38%;
    }

    /* Card hover-lift — interactive, tactile. */
    [data-app="dataacuity"] .dataacuity-product-card,
    [data-app="dataacuity"] .dataacuity-why__item,
    [data-app="dataacuity"] .product-feature,
    [data-app="dataacuity"] .pricing-tier {
        transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

    [data-app="dataacuity"] .dataacuity-product-card:hover,
    [data-app="dataacuity"] .dataacuity-why__item:hover,
    [data-app="dataacuity"] .product-feature:hover,
    [data-app="dataacuity"] .pricing-tier:hover {
        transform: translateY(-4px);
        border-color: var(--tgn-primary);
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(33, 150, 243, 0.18);
    }

    /* Button feedback — subtle press + primary glow on hover. */
    [data-app="dataacuity"] .tgn-btn {
        transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
    }
    [data-app="dataacuity"] .tgn-btn:active {
        transform: translateY(1px);
    }
    [data-app="dataacuity"] .tgn-btn--primary:hover {
        box-shadow: 0 8px 24px rgba(33, 150, 243, 0.38);
        filter: brightness(1.05);
    }
}

/* Brand: the logo links home, "by The Geek" links out (new tab). The home
   link must keep the original .dataacuity-brand row look now that it no longer
   wraps the whole lockup (can't nest <a> inside <a>). */
[data-app="dataacuity"] .dataacuity-brand__home {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;   /* 44px touch target for the home/logo link */
    gap: 0.5rem;
    text-decoration: none;
    color: var(--tgn-text-primary);
}

[data-app="dataacuity"] .dataacuity-brand__sublink {
    color: inherit;
    text-decoration: none;
}

[data-app="dataacuity"] .dataacuity-brand__sublink:hover,
[data-app="dataacuity"] .dataacuity-brand__sublink:focus-visible {
    color: var(--tgn-primary);
    text-decoration: underline;
}

/* ============================================================
   ACCENTS, DEPTH & MOTION — applies to BOTH themes. Strictly on-brand
   (#2196F3 / slate / white): gradient accents, glows, micro-interactions.
   ============================================================ */

/* Gradient brand mark "DA" in the header lockup. */
[data-app="dataacuity"] .dataacuity-brand__mark {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.30);
}

/* Primary buttons — gradient + lift, site-wide. (The CTA band keeps its own
   white-on-blue button via a more specific rule below, so it still pops.) */
[data-app="dataacuity"] .tgn-btn--primary {
    background: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(33, 150, 243, 0.30);
}
[data-app="dataacuity"] .tgn-btn--primary:hover,
[data-app="dataacuity"] .tgn-btn--primary:focus-visible {
    background: linear-gradient(135deg, #42a5f5 0%, #1976D2 100%);
    border-color: transparent;
    box-shadow: 0 10px 26px rgba(33, 150, 243, 0.42);
    transform: translateY(-1px);
}

/* Hero eyebrow — small gradient accent dash. */
[data-app="dataacuity"] .dataacuity-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
[data-app="dataacuity"] .dataacuity-hero__eyebrow::before {
    content: "";
    width: 1.8rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--tgn-primary), transparent);
}

/* Nav links — 44px touch target (Apple HIG) + an underline that hugs the
   text rather than the tall hit box. */
[data-app="dataacuity"] .dataacuity-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}
[data-app="dataacuity"] .dataacuity-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(50% - 0.8em);
    height: 2px;
    border-radius: 2px;
    background: var(--tgn-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s var(--tgn-ease-out-quart, ease);
}
[data-app="dataacuity"] .dataacuity-nav a:hover::after,
[data-app="dataacuity"] .dataacuity-nav a:focus-visible::after {
    transform: scaleX(1);
}

/* ===== Theme toggle button (header) ===== */
[data-app="dataacuity"] .dataacuity-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border-radius: 0.6rem;
    background: transparent;
    border: 1px solid var(--tgn-glass-border);
    color: var(--tgn-text-secondary);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
/* 44x44 — Apple HIG minimum hit target. */
[data-app="dataacuity"] .dataacuity-theme-toggle {
    width: 2.75rem;
    height: 2.75rem;
}
[data-app="dataacuity"] .dataacuity-theme-toggle:hover,
[data-app="dataacuity"] .dataacuity-theme-toggle:focus-visible {
    color: var(--tgn-primary);
    border-color: var(--tgn-primary);
    background: rgba(33, 150, 243, 0.08);
}
[data-app="dataacuity"] .dataacuity-theme-toggle:active {
    transform: translateY(1px);
}
[data-app="dataacuity"] .dataacuity-theme-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}
/* Show the icon for the mode you'll switch TO: moon in light, sun in dark. */
html[data-app="dataacuity"][data-theme="light"] .dataacuity-theme-toggle__sun { display: none; }
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-theme-toggle__moon { display: none; }

/* ===== DARK-only depth ===== */
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-hero,
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-hero--split {
    background:
        radial-gradient(1100px 480px at 80% -12%, rgba(33, 150, 243, 0.22), transparent 60%),
        radial-gradient(720px 360px at 2% 6%, rgba(33, 150, 243, 0.10), transparent 55%),
        linear-gradient(180deg, #122031 0%, var(--tgn-bg-primary) 72%);
}
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-product-card {
    background: var(--tgn-bg-elevated);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.4);
}
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-product-card:hover {
    border-color: rgba(33, 150, 243, 0.55);
    box-shadow: 0 0 0 1px rgba(33, 150, 243, 0.25), 0 18px 44px rgba(0, 0, 0, 0.55);
}

/* ===== Smooth theme cross-fade on toggle (motion-safe; big surfaces only,
   so it never clobbers the card hover-lift / button transitions) ===== */
@media (prefers-reduced-motion: no-preference) {
    [data-app="dataacuity"] body,
    [data-app="dataacuity"] .dataacuity-header,
    [data-app="dataacuity"] .dataacuity-footer {
        transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    }
}

/* ============================================================
   APPLE HIG PASS — 44pt touch targets + AA-contrast blue text.
   (The accents/gradients you asked for stay exactly as they are.)
   ============================================================ */

/* Every button ≥ 44px tall — Apple's minimum hit target. */
[data-app="dataacuity"] .tgn-btn {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* The compact demo console controls get a bigger tap area too. */
[data-app="dataacuity"] .dataacuity-hero__demo-go {
    min-height: 2.1rem;
    padding-inline: 0.95rem;
}
[data-app="dataacuity"] .dataacuity-hero__demo-input {
    min-height: 2.1rem;
}

/* AA contrast: the bright brand blue (#2196F3 ≈ 3:1 on white) is too light
   to use as TEXT on a light background. Swap to a darker blue (#1565C0 ≈ 5:1)
   wherever blue is used as text/links in light mode. Button *fills* keep the
   bright brand blue (white-on-blue large/bold text clears AA-large). */
html[data-app="dataacuity"][data-theme="light"] .dataacuity-hero__eyebrow,
html[data-app="dataacuity"][data-theme="light"] .dataacuity-footer__tagline,
html[data-app="dataacuity"][data-theme="light"] .dataacuity-main a:not(.tgn-btn):not([class^="dataacuity-"]),
html[data-app="dataacuity"][data-theme="light"] .dataacuity-nav a:hover,
html[data-app="dataacuity"][data-theme="light"] .dataacuity-nav a:focus-visible {
    color: #1565C0;
}

/* ===== Apple HIG — remaining sweep (badges + secondary 44pt targets) ===== */

/* Trust badges read ~2.7:1 (blue label on a pale-blue chip) in light — fails
   AA. Navy text clears it (~7.5:1). Dark theme is already high-contrast. */
html[data-app="dataacuity"][data-theme="light"] .dataacuity-trust__badge {
    color: #0D47A1;
}

/* Footer links — 44px touch target (block-level flex so they still stack). */
[data-app="dataacuity"] .dataacuity-footer__nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
}

/* Demo console input + Run button — bring up to the 44px target. */
[data-app="dataacuity"] .dataacuity-hero__demo-go,
[data-app="dataacuity"] .dataacuity-hero__demo-input {
    min-height: 2.75rem;
}

/* MapLibre zoom buttons — enlarge from the ~29px default to 44px. */
[data-app="dataacuity"] .dataacuity-hero__visual .maplibregl-ctrl-group button {
    width: 2.75rem;
    height: 2.75rem;
}

/* ============================================================
   ███  APPLE PASS — the authoritative top layer.  ███
   Restraint over decoration. Everything above this point added
   gradients, glows, loud blue and bordered cards — the vocabulary of
   a generic SaaS template. Apple's vocabulary is the opposite: true
   neutrals, flat colour used sparingly, pill buttons, big type, lots
   of air. This block deliberately overrides the decorative layer.
   Brand blue (#2196F3) stays, but only on primary actions + links.
   ============================================================ */

:root {
    --da-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---- Apple neutrals — LIGHT (true greys, no blue tint) ---- */
html[data-app="dataacuity"][data-theme="light"] {
    --tgn-bg-primary: #ffffff;
    --tgn-bg-secondary: #f5f5f7;   /* Apple's signature light grey */
    --tgn-bg-tertiary: #f5f5f7;
    --tgn-bg-elevated: #ffffff;
    --tgn-bg-sunken: #f5f5f7;
    --tgn-glass-bg: #ffffff;
    --tgn-glass-bg-strong: #ffffff;
    --tgn-glass-bg-subtle: #fbfbfd;
    --tgn-glass-border: rgba(0, 0, 0, 0.08);
    --tgn-glass-border-subtle: rgba(0, 0, 0, 0.06);
    --tgn-text-primary: #1d1d1f;   /* Apple near-black */
    --tgn-text-secondary: #6e6e73; /* Apple grey */
    --tgn-text-tertiary: #86868b;
    --tgn-border-color: rgba(0, 0, 0, 0.08);
    --tgn-border-color-strong: rgba(0, 0, 0, 0.12);
    --tgn-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --tgn-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --tgn-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.10);
}

/* ---- Apple-neutral DARK — LAYERED for elevation. Shadows barely read on a
   dark page, so depth comes from each layer stepping UP in lightness. The page
   is lifted off pure #000 so it's a refined near-black, not a harsh void. ---- */
html[data-app="dataacuity"][data-theme="dark"] {
    --tgn-bg-primary: #0c0c0e;     /* page — soft near-black */
    --tgn-bg-secondary: #151517;   /* alt bands (why / footer) — one step up */
    --tgn-bg-tertiary: #1b1b1e;
    --tgn-bg-elevated: #1c1c1f;    /* cards — clearly lighter than the page */
    --tgn-bg-sunken: #08080a;
    --tgn-glass-bg: #1c1c1f;
    --tgn-glass-bg-strong: #202024;
    --tgn-glass-bg-subtle: #151517;
    --tgn-glass-border: rgba(255, 255, 255, 0.10);
    --tgn-glass-border-subtle: rgba(255, 255, 255, 0.07);
    --tgn-text-primary: #f5f5f7;
    --tgn-text-secondary: #a1a1a6; /* Apple dark grey */
    --tgn-text-tertiary: #86868b;
    --tgn-border-color: rgba(255, 255, 255, 0.10);
    --tgn-border-color-strong: rgba(255, 255, 255, 0.16);
}

/* ---- Header — lighter glass, hairline only ---- */
html[data-app="dataacuity"][data-theme="light"] .dataacuity-header { background: rgba(255, 255, 255, 0.72); }
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-header { background: rgba(12, 12, 14, 0.72); }

/* ---- Brand mark — FLAT (kill gradient + glow) ---- */
[data-app="dataacuity"] .dataacuity-brand__mark {
    background: var(--tgn-primary);
    box-shadow: none;
    border-radius: 0.5rem;
}

/* ---- Nav — simple opacity hover, NO sliding underline ---- */
html[data-app="dataacuity"][data-theme] .dataacuity-nav a::after { display: none; }
html[data-app="dataacuity"][data-theme] .dataacuity-nav a {
    color: var(--tgn-text-primary);
    opacity: 0.82;
    transition: opacity 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
    [data-app="dataacuity"] .dataacuity-nav a:hover { color: var(--tgn-text-primary); opacity: 1; }
}

/* ---- Buttons — flat, pill, Apple. No gradient, no glow. ---- */
html[data-app="dataacuity"][data-theme] .tgn-btn--primary {
    background: var(--tgn-primary);
    color: #ffffff;
    border: none;
    border-radius: 980px;
    box-shadow: none;
    filter: none;
    font-weight: 500;
    padding: 0.7rem 1.4rem;
    transition: background 0.2s ease, transform 0.16s var(--da-ease-out);
}
@media (hover: hover) and (pointer: fine) {
    html[data-app="dataacuity"][data-theme] .tgn-btn--primary:hover {
        background: #1a86e0;
        box-shadow: none;
        filter: none;
        transform: none;
    }
}
[data-app="dataacuity"] .tgn-btn--primary:active { transform: scale(0.97); }

[data-app="dataacuity"] .tgn-btn--lg {
    padding: 0.85rem 1.65rem;
    font-size: 1.0625rem;       /* 17px — Apple body */
    font-weight: 500;
    border-radius: 980px;
}

/* Secondary = Apple text link (no border, no fill, chevron-style) */
html[data-app="dataacuity"][data-theme] .tgn-btn--ghost {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--tgn-primary);
    font-weight: 400;
    padding: 0.7rem 0.6rem;
}
html[data-app="dataacuity"][data-theme="light"] .tgn-btn--ghost { color: #1565C0; }
@media (hover: hover) and (pointer: fine) {
    html[data-app="dataacuity"][data-theme] .tgn-btn--ghost:hover {
        background: transparent;
        text-decoration: underline;
        text-underline-offset: 0.2em;
    }
}
[data-app="dataacuity"] .tgn-btn--ghost:active { transform: scale(0.97); }

/* ---- Eyebrow — refined micro-label, no gradient dash ---- */
html[data-app="dataacuity"][data-theme] .dataacuity-hero__eyebrow::before { display: none; }
html[data-app="dataacuity"][data-theme] .dataacuity-hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    gap: 0;
    margin-bottom: 1.1rem;
}
html[data-app="dataacuity"][data-theme="light"] .dataacuity-hero__eyebrow { color: #1565C0; }
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-hero__eyebrow { color: #2196F3; }

/* ---- More air: generous Apple section rhythm (html-prefixed to beat the RCL) ---- */
html[data-app="dataacuity"][data-theme] .dataacuity-products,
html[data-app="dataacuity"][data-theme] .dataacuity-why { padding-block: 7rem; }
html[data-app="dataacuity"][data-theme] .dataacuity-trust { padding-block: 5rem 2rem; }

/* ---- Section headers — Apple type ---- */
html[data-app="dataacuity"][data-theme] .dataacuity-products__title,
html[data-app="dataacuity"][data-theme] .dataacuity-why__title {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.021em;
    line-height: 1.08;
}
html[data-app="dataacuity"][data-theme] .dataacuity-products__lede {
    color: var(--tgn-text-secondary);
    font-size: 1.1875rem;
    margin-bottom: 3.5rem;
}

/* ---- Product cards → Apple bento: a quiet hairline + soft shadow give the
   card a clearly readable boundary and real depth (the Apple way — definition
   without a hard outline). ---- */
html[data-app="dataacuity"][data-theme] .dataacuity-product-card {
    border-radius: 18px;
    padding: 2.5rem 2.25rem;
    gap: 0.85rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s var(--da-ease-out);
}
html[data-app="dataacuity"][data-theme] .dataacuity-product-card:hover {
    transform: translateY(-3px);
}
html[data-app="dataacuity"][data-theme="light"] .dataacuity-product-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.08);
}
html[data-app="dataacuity"][data-theme="light"] .dataacuity-product-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05), 0 22px 48px rgba(0, 0, 0, 0.12);
}
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-product-card {
    background: #1c1c1f;
    border: 1px solid rgba(255, 255, 255, 0.09);
    /* top "key-light" highlight = the raised look on dark; outer shadow now
       registers because the page is no longer pure black */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.55);
}
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-product-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.62);
}

/* Featured = subtle tint, not a loud blue ring */
[data-app="dataacuity"] .dataacuity-product-card--featured {
    border: none;
    box-shadow: none;
}
html[data-app="dataacuity"][data-theme="light"] .dataacuity-product-card--featured {
    background: #f4f8ff;
    border-color: rgba(33, 150, 243, 0.35);
    box-shadow: 0 1px 2px rgba(33, 150, 243, 0.06), 0 14px 32px rgba(33, 150, 243, 0.12);
}
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-product-card--featured {
    background: #14202f;
    border-color: rgba(33, 150, 243, 0.38);
    box-shadow: inset 0 1px 0 rgba(120, 180, 255, 0.10), 0 14px 38px rgba(0, 0, 0, 0.55);
}

/* Badge → small uppercase micro-label in flow (not a loud chip).
   html-prefixed + descendant so it beats the RCL's absolute pill (which wins
   plain-specificity ties), and align-self so it doesn't stretch as a flex item. */
html[data-app="dataacuity"][data-theme] .dataacuity-product-card .dataacuity-product-card__badge {
    position: static;
    align-self: flex-start;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 0.55rem;
    color: var(--tgn-text-tertiary);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
html[data-app="dataacuity"][data-theme] .dataacuity-product-card .dataacuity-product-card__badge--accent {
    background: transparent;
    border: none;
    color: var(--tgn-primary);
}

/* Feature list → no hairlines, soft dot bullets */
html[data-app="dataacuity"][data-theme] .dataacuity-product-card__feat li {
    border-bottom: none;
    padding: 0.4rem 0 0.4rem 1.25rem;
    color: var(--tgn-text-secondary);
}
html[data-app="dataacuity"][data-theme] .dataacuity-product-card__feat li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tgn-text-tertiary);
    top: 0.85em;
    left: 0.1rem;
    font-weight: normal;
}
html[data-app="dataacuity"][data-theme] .dataacuity-product-card__feat li code {
    background: var(--tgn-bg-primary);
    border: none;
}

/* ---- Why icons → soft surface + brand glyph (not loud solid blue) ---- */
[data-app="dataacuity"] .dataacuity-why__icon {
    box-shadow: none;
    border-radius: 14px;
    font-weight: 600;
}
html[data-app="dataacuity"][data-theme="light"] .dataacuity-why__icon { background: #ffffff; color: #1565C0; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-why__icon { background: #1d1d1f; color: #2196F3; }

/* ---- Trust badges → quiet monochrome chips ---- */
html[data-app="dataacuity"][data-theme] .dataacuity-trust__badge {
    border: none;
    font-weight: 600;
}
html[data-app="dataacuity"][data-theme="light"] .dataacuity-trust__badge { background: #f5f5f7; color: #6e6e73; }
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-trust__badge { background: #1d1d1f; color: #a1a1a6; }

/* ---- CTA → clean closing section (kill the blue gradient band) ---- */
html[data-app="dataacuity"][data-theme] .dataacuity-cta {
    margin-top: 0;
    padding-block: 7rem;
}
html[data-app="dataacuity"][data-theme="light"] .dataacuity-cta { background: #f5f5f7; }
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-cta { background: #151517; }
html[data-app="dataacuity"][data-theme] .dataacuity-cta h2 {
    color: var(--tgn-text-primary);
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}
html[data-app="dataacuity"][data-theme] .dataacuity-cta p { color: var(--tgn-text-secondary); }
html[data-app="dataacuity"][data-theme] .dataacuity-cta .tgn-btn--primary {
    background: var(--tgn-primary);
    color: #ffffff;
    border: none;
    box-shadow: none;
}
html[data-app="dataacuity"][data-theme] .dataacuity-cta .tgn-btn--primary:hover { background: #1a86e0; color: #ffffff; }
html[data-app="dataacuity"][data-theme] .dataacuity-cta .tgn-btn--ghost { background: transparent; color: var(--tgn-primary); }
html[data-app="dataacuity"][data-theme="light"] .dataacuity-cta .tgn-btn--ghost { color: #1565C0; }

/* ---- Motion — quieter (Emil): subtler reveal, press feedback ---- */
@media (prefers-reduced-motion: no-preference) {
    @keyframes da-reveal {
        from { opacity: 0; transform: translateY(12px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    [data-app="dataacuity"] .dataacuity-product-card,
    [data-app="dataacuity"] .dataacuity-why__item,
    [data-app="dataacuity"] .dataacuity-trust__item {
        animation-range: entry 0% entry 24%;
    }
}
[data-app="dataacuity"] .tgn-btn:active { transform: scale(0.97); }

/* Hero background — clean Apple canvas (drop the blue radial wash). */
html[data-app="dataacuity"][data-theme="light"] .dataacuity-hero,
html[data-app="dataacuity"][data-theme="light"] .dataacuity-hero--split {
    background: #ffffff;
}
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-hero,
html[data-app="dataacuity"][data-theme="dark"] .dataacuity-hero--split {
    background:
        radial-gradient(1200px 520px at 78% -15%, rgba(33, 150, 243, 0.13), transparent 60%),
        var(--tgn-bg-primary);
}
