/*
  landing-shared.css
  Design tokens translated from the main Smart Search product (Next.js +
  Tailwind) into plain CSS custom properties + utility classes, for hand-
  written HTML/CSS per the project brief (no React, no build step).

  Source of truth for these values: the live Smart Search app's Tailwind
  classes observed directly (bg-primary/bg-tertiary dark theme, the
  "bg-horizontal-blue" indigo→purple CTA gradient, rounded-xl cards with
  border-white/[0.06], SectionTitle/GradientText typography, container
  widths, and standard spacing conventions like p-5/gap-3/gap-5).

  Shared across all 4 landing pages — page-specific CSS files should only
  contain overrides truly unique to that page, per the brief's instruction
  not to duplicate hundreds of lines of identical CSS.
*/

/* Manrope (variable), self-hosted: no request to Google Fonts, so no visitor IP
   is sent to a third party. Files live in /assets/fonts/. */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Colors */
    --color-bg-primary: #05070d;
    --color-bg-tertiary: #12141c;
    --color-surface: rgba(255, 255, 255, 0.045);
    --color-border: rgba(255, 255, 255, 0.12);
    --color-border-strong: rgba(255, 255, 255, 0.18);
    --color-text: #ffffff;
    --color-text-muted-70: rgba(255, 255, 255, 0.7);
    --color-text-muted-60: rgba(255, 255, 255, 0.6);
    --color-text-muted-55: rgba(255, 255, 255, 0.55);
    --color-text-muted-45: rgba(255, 255, 255, 0.45);
    --color-text-muted-40: rgba(255, 255, 255, 0.4);
    --color-accent-start: #6366f1; /* indigo-500 */
    --color-accent-end: #a855f7; /* purple-500 */
    --color-accent-solid: #8b7bf0;
    --color-focus-ring: #8b7bf0;

    /* Gradient CTA — matches "bg-horizontal-blue" used across the product */
    --gradient-accent: linear-gradient(to right, var(--color-accent-start), var(--color-accent-end));
    --gradient-text: linear-gradient(to right, #ffffff, var(--color-accent-start), var(--color-accent-end));

    /* "Live" variants — palindromic stops (A B C D C B A). Rendered at
       background-size: 300% with no-repeat, and the gradient-flow keyframes
       ping-pong the position 0% → 100%. The image always covers the element,
       so there is no tile boundary anywhere (a tiled/looping position left a
       thin dark hairline at the seam), and the reverse leg retraces the
       same colours so the motion still feels continuous. */
    --gradient-accent-live: linear-gradient(90deg, var(--color-accent-start), #8b5cf6, var(--color-accent-end), #d946ef, var(--color-accent-end), #8b5cf6, var(--color-accent-start));
    --gradient-text-live: linear-gradient(90deg, #ffffff, var(--color-accent-start), var(--color-accent-end), #d946ef, var(--color-accent-end), var(--color-accent-start), #ffffff);
    --gradient-flow-duration: 3.5s;

    /* Radius / shadow */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --shadow-card: 0 4px 20px -4px rgba(99, 102, 241, 0.15);

    /* Spacing scale (mirrors Tailwind's 4px scale, named for clarity) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Layout */
    --container-max: 1200px;
    --container-padding: 20px;

    /* Typography */
    --font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --fs-h1: clamp(2rem, 4vw, 3rem);
    --fs-h2: clamp(1.5rem, 3vw, 2rem);
    --fs-h3: 1.25rem;
    --fs-body: 1rem;
    --fs-body-sm: 0.875rem;
    --fs-caption: 0.75rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family);
    /* The soft indigo/purple glow near the top now lives in the two
       fixed body::before / body::after layers below (instead of a static
       background-image) so it can drift slowly — a "living" gradient.
       Being position: fixed, it stays anchored to the viewport as you
       scroll, same as the old background-attachment: fixed, and avoids
       that property's iOS Safari quirks. */
    background-color: var(--color-bg-primary);
    color: var(--color-text);
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Animated page glow — three soft blobs that drift slowly.
   Each blob is its own fixed box whose radial gradient uses
   `closest-side`, so the colour fades to fully transparent exactly at
   the box edges. That means no edge can ever show, however far the box
   is translated/scaled (the previous version cropped the gradient at the
   box boundary, which drew a hard rectangular "cut" in the glow).
   Box sizes/positions reproduce where each glow sat at rest:
     A indigo, top-centre   B purple, top-right   C blue, bottom-left
   Only `transform` is animated, so it runs on the compositor. */
body::before,
body::after,
html::before {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

body::before {
    left: -17.5vw;
    top: -45vh;
    width: 135vw;
    height: 90vh;
    background: radial-gradient(closest-side, rgba(99, 102, 241, 0.38), transparent);
    animation: glow-drift-a 8s ease-in-out infinite alternate;
}

body::after {
    left: 47.5vw;
    top: -31vh;
    width: 105vw;
    height: 82vh;
    background: radial-gradient(closest-side, rgba(168, 85, 247, 0.36), transparent);
    animation: glow-drift-b 10s ease-in-out infinite alternate;
}

/* html::before paints below the two body layers. */
html::before {
    left: -49vw;
    top: 45vh;
    width: 108vw;
    height: 81vh;
    background: radial-gradient(closest-side, rgba(59, 130, 246, 0.26), transparent);
    animation: glow-drift-c 12s ease-in-out infinite alternate;
}

@keyframes glow-drift-a {
    from { transform: translate3d(-14%, -4%, 0) scale(0.95); opacity: 0.75; }
    to   { transform: translate3d(14%, 10%, 0) scale(1.35); opacity: 1; }
}

@keyframes glow-drift-b {
    from { transform: translate3d(8%, 8%, 0) scale(1.15); opacity: 1; }
    to   { transform: translate3d(-20%, -8%, 0) scale(0.85); opacity: 0.7; }
}

@keyframes glow-drift-c {
    from { transform: translate3d(-8%, 10%, 0) scale(0.9); opacity: 0.7; }
    to   { transform: translate3d(18%, -14%, 0) scale(1.3); opacity: 1; }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

/* Focus states — visible on all interactive elements, keyboard nav required per brief */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-focus-ring);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography helpers */
.section-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    margin: 0 0 var(--space-3);
}

.gradient-text {
    background: var(--gradient-text-live);
    background-size: 300% 100%;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient-flow calc(var(--gradient-flow-duration) * 1.5) ease-in-out infinite alternate;
}

/* Shared by every animated gradient on the page (headline text, buttons,
   card accent bars, bullet dots). Because they all use the same keyframes
   and a multiple of the same duration, they drift in step. */
@keyframes gradient-flow {
    from { background-position: 0% 50%; }
    to   { background-position: 100% 50%; }
}

.text-muted {
    color: var(--color-text-muted-60);
}

/* Scroll-reveal — applied by JS (progressive enhancement only; elements
   stay visible if JS doesn't run or prefers-reduced-motion is set).
   IMPORTANT: this block must stay ABOVE .card/.faq-item/etc. in this file.
   `.reveal-init.is-visible` and `.card:hover` have identical specificity
   (two classes), so whichever rule is declared LATER in the file wins ties
   — if this block were moved below .card, its resting `transform:
   translateY(0)` would permanently cancel the hover pop on any card
   that's already been revealed. */
.reveal-init {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-init.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header — condensed, matches the main product's header conventions */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    /* Lower opacity than before so the blur is actually visible against
       whatever scrolls underneath (at 0.85 it read as solid, not glassy).
       -webkit- prefix added - without it Safari/iOS silently ignores
       backdrop-filter entirely, which is likely why it looked unblurred. */
    background: rgba(5, 7, 13, 0.45);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(5, 7, 13, 0.85);
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Breadcrumb trail — sits just below the header, above the hero */
.breadcrumb {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: var(--fs-body-sm);
    color: var(--color-text-muted-70);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    color: var(--color-border-strong);
}

.breadcrumb a {
    color: var(--color-text-muted-70);
    text-decoration: none;
    transition: color 0.15s ease;
}

.breadcrumb a:hover {
    color: var(--color-accent-solid);
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: var(--color-text);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
}

/* "by Dos-Op" endorsement next to the product name */
.logo__mark {
    display: block;
    width: 28px;
    height: 28px;
}

.logo-by {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-left: var(--space-1);
    padding-left: var(--space-3);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
    text-decoration: none;
}

.logo-by,
.logo-by__name {
    transition: color 0.2s ease;
}

.logo-by__name {
    color: inherit;
    font-weight: 600;
}

.logo-by:hover,
.logo-by:focus-visible,
.logo-by:hover .logo-by__name,
.logo-by:focus-visible .logo-by__name {
    color: #fff;
}

.logo,
.logo-by {
    white-space: nowrap;
}

/* Phones: keep the endorsement, just tighter */
@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
    }
    .logo-by {
        padding-left: var(--space-2);
        font-size: 0.75rem;
    }
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    border-radius: var(--radius-full);
    padding: 12px 28px;
    font-weight: 600;
    font-size: var(--fs-body);
    border: none;
    cursor: pointer;
    text-decoration: none;
    /* position: relative + `top` (not `transform`) for the lift — ANY
       transform (even a plain translateY, no scale needed) forces the
       browser to composite the element on its own GPU layer, which
       switches its text from subpixel to grayscale anti-aliasing and
       reads as blur. Animating `top` moves the button without that
       layer promotion, so the label stays exactly as crisp as at rest. */
    position: relative;
    top: 0;
    /* No opacity dimming on hover any more — fading a vivid gradient
       button toward transparent is what read as "pale". Each variant
       below defines its own hover treatment that gets richer, not lighter. */
    transition: top 0.15s ease;
}

.btn:hover {
    top: -2px;
}

.btn:active {
    top: 0;
}

.btn-primary {
    background: var(--gradient-accent-live);
    background-size: 300% 100%;
    background-repeat: no-repeat;
    background-position: 0% 50%;
    color: #ffffff;
    box-shadow: var(--shadow-card);
    animation: gradient-flow var(--gradient-flow-duration) ease-in-out infinite alternate;
    transition: box-shadow 0.25s ease, filter 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 12px 34px -8px rgba(99, 102, 241, 0.75);
    filter: brightness(1.12) saturate(1.1);
}

.btn-primary:active {
    filter: brightness(0.95);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border-strong);
    color: var(--color-text);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--color-accent-solid);
    background: rgba(139, 123, 240, 0.08);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Search input — pairs with a .btn-primary as the primary CTA */
.search-form {
    display: flex;
    gap: var(--space-2);
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    padding: 12px 20px;
    color: var(--color-text);
    font-size: var(--fs-body);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.search-input::placeholder {
    color: var(--color-text-muted-45);
}

/* Hover — a lighter touch than :focus, so moving the mouse over the field
   already signals it's interactive before actually clicking into it. */
.search-input:hover {
    border-color: var(--color-accent-solid);
    background: #171a24;
}

.search-input:focus {
    border-color: var(--color-accent-solid);
    box-shadow: 0 0 0 2px rgba(139, 123, 240, 0.2);
    /* The global input:focus-visible rule below also adds its own 2px
       outline + 2px offset; stacked on top of this box-shadow ring, the
       two together read as one thick solid double-border. This input
       already has a clear custom focus ring, so drop the generic outline
       here to keep a single, thinner ring. */
    outline: none;
}

@media (max-width: 640px) {
    .search-form {
        flex-direction: column;
    }
}

/* Hero CTA — replaces the old search-form input; a single button that
   hands the visitor straight to Smart Search (no local input to fill in
   twice). Reuses .btn/.btn-primary; this just centers it under the
   subheading and adds the small clarifying line beneath it. */
.hero-cta {
    display: flex;
    justify-content: center;
    margin: var(--space-2) auto var(--space-5);
}

/* Hero CTA gets extra visual weight vs. .btn-primary elsewhere on the
   page (footer CTA, etc.) - larger, a resting glow instead of only on
   hover, and a subtle slow pulse so it reads as THE action on first
   paint, not just another button. Pulse is opacity/shadow-only (no
   transform) so it never fights the shared .btn hover-lift, and is
   skipped under prefers-reduced-motion. */
.hero-cta .btn-primary {
    padding: 18px 44px;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 10px 32px -6px rgba(99, 102, 241, 0.55);
    /* Keeps the flowing gradient from .btn-primary AND adds the pulse. */
    animation:
        gradient-flow var(--gradient-flow-duration) ease-in-out infinite alternate,
        hero-cta-pulse 2.8s ease-in-out infinite;
}

.hero-cta .btn-primary:hover {
    animation-play-state: paused;
}

/* Reusable "make this CTA bigger" class - same size/glow treatment as
   the hero CTA, without the pulse animation (kept hero-exclusive so the
   page doesn't have multiple pulsing elements competing for attention).
   Used on the closing/footer CTA, which deserves the same visual weight
   as the hero one since it's the last thing before the visitor leaves. */
.cta-lg {
    padding: 18px 44px;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 10px 32px -6px rgba(99, 102, 241, 0.55);
}

@keyframes hero-cta-pulse {
    0%, 100% {
        box-shadow: 0 10px 32px -6px rgba(99, 102, 241, 0.55);
    }
    50% {
        box-shadow: 0 12px 40px -4px rgba(99, 102, 241, 0.85);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-cta .btn-primary {
        animation: none;
    }
}

.hero-note {
    font-size: 0.875rem;
    color: var(--color-text-muted-45);
    max-width: 480px;
    margin: 0 auto var(--space-2);
}

/* Price line — used in the "What to Expect" section to state the cost
   clearly before the visitor clicks through to Smart Search. */
.price-line {
    font-size: 1.0625rem;
    margin: 0 0 var(--space-3);
}

.price-line strong {
    font-weight: 800;
}

/* Closing-CTA arrow — sits between the closing heading and its button,
   pointing down at it so the eye has somewhere obvious to land next.
   Decorative only (aria-hidden in the markup). */
.closing-arrow {
    font-size: 1.75rem;
    line-height: 1;
    margin: 0 0 var(--space-3);
    color: var(--color-accent-solid);
}

/* Cards */
.card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    /* Clips the ::after accent bar below to the card's rounded bottom
       corners. Safe to pair with the hover box-shadow: an element's own
       overflow never clips its own box-shadow, only its contents. */
    overflow: hidden;
    /* `top` instead of `transform` for the same reason as .btn above: any
       transform composites the element on its own GPU layer and switches
       its text to grayscale anti-aliasing, which looks blurry compared to
       the rest of the page. `top` moves it with no such layer promotion.
       (The one-time scroll-reveal fade-in still uses `transform` via
       .reveal-init — that's a different property than `top`, so the two
       don't fight each other.) */
    position: relative;
    top: 0;
    transition: top 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease,
        box-shadow 0.25s ease;
}

.card:hover {
    top: -8px;
    border-color: var(--color-accent-solid);
    box-shadow: 0 20px 36px -14px rgba(99, 102, 241, 0.4), 0 6px 14px -8px rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* Permanent thin accent bar along the bottom edge of every card. */
.card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--gradient-accent-live);
    background-size: 300% 100%;
    background-repeat: no-repeat;
    animation: gradient-flow var(--gradient-flow-duration) ease-in-out infinite alternate;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

/* 4 data-source cards read better as a 2x2 grid than 3+1. */
.sources-grid {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Sections */
.section {
    padding: var(--space-16) 0;
}

.section--tight {
    padding: var(--space-10) 0;
}

/* Divider between every pair of consecutive top-level sections (the hero
   included) — this is what gives each block on the page a clear edge
   instead of everything running together flat. */
main > section + section {
    border-top: 1px solid var(--color-border);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto var(--space-8);
}

/* Hero */
.hero {
    padding: var(--space-20) 0 var(--space-12);
    text-align: center;
}

.hero h1 {
    font-size: var(--fs-h1);
    font-weight: 800;
    margin: 0 0 var(--space-4);
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subheading {
    font-size: 1.125rem;
    color: var(--color-text-muted-60);
    max-width: 620px;
    margin: 0 auto var(--space-8);
}

/* Limitations block — now a bordered card like the rest of the page
   (was intentionally bare text before; that's what read as "flat"). Each
   row gets its own icon badge and a divider, echoing .sources-list below
   so the two sections feel like one visual family. */
.limitations {
    max-width: 680px;
    width: calc(100% - 2 * var(--container-padding));
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    overflow: hidden;
}

.limitations ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.limitations li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    color: var(--color-text-muted-60);
    font-size: var(--fs-body-sm);
    line-height: 1.6;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s ease;
}

.limitations li:last-child {
    border-bottom: none;
}

.limitations li:hover {
    background: rgba(255, 255, 255, 0.02);
}

.limitations li::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--gradient-accent-live);
    background-size: 300% 100%;
    background-repeat: no-repeat;
    animation: gradient-flow var(--gradient-flow-duration) ease-in-out infinite alternate;
}

/* Data sources list */
.sources-list {
    max-width: 640px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    overflow: hidden;
    box-shadow: 0 12px 28px -18px rgba(0, 0, 0, 0.6);
}

.sources-list > div {
    position: relative;
    padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + var(--space-4));
    border-bottom: 1px solid var(--color-border);
    transition: background 0.2s ease;
}

.sources-list > div:hover {
    background: rgba(255, 255, 255, 0.02);
}

.sources-list > div:last-child {
    border-bottom: none;
}

.sources-list > div::before {
    content: "";
    position: absolute;
    left: var(--space-5);
    top: var(--space-4);
    margin-top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gradient-accent);
}

.sources-list dt {
    font-weight: 600;
    padding: 0;
}

.sources-list dd {
    margin: 0;
    padding: var(--space-1) 0 0;
    color: var(--color-text-muted-55);
    font-size: var(--fs-body-sm);
}

/* FAQ accordion */
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: var(--color-border-strong);
}

.faq-question {
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--color-accent-solid);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    background: none;
    border: none;
    color: var(--color-text);
    padding: var(--space-4) var(--space-5);
    font-size: var(--fs-body);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    color: var(--color-accent-solid);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
    border-color: var(--color-accent-solid);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 var(--space-5) var(--space-5);
    color: var(--color-text-muted-60);
    font-size: var(--fs-body-sm);
    line-height: 1.7;
}

/* Related links */
.related-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.related-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    padding: var(--space-2) var(--space-4);
    font-size: var(--fs-body-sm);
    text-decoration: none;
    color: var(--color-text-muted-70);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.related-link:hover {
    color: var(--color-text);
    border-color: var(--color-accent-solid);
}

/* Privacy / responsible-use callout */
.privacy-note {
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    background: var(--color-surface);
    font-size: var(--fs-body-sm);
    color: var(--color-text-muted-60);
}

.privacy-note h2 {
    color: var(--color-text);
    font-size: var(--fs-h3);
    margin: 0 0 var(--space-2);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-10) 0;
    margin-top: var(--space-16);
}

.footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    justify-content: center;
    margin-bottom: var(--space-5);
    font-size: var(--fs-body-sm);
    color: var(--color-text-muted-55);
}

.footer-contact a {
    color: var(--color-text-muted-70);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--color-accent-solid);
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    justify-content: center;
    margin-bottom: var(--space-4);
}

.footer-links a {
    color: var(--color-text-muted-55);
    text-decoration: none;
    font-size: var(--fs-body-sm);
}

.footer-links a:hover {
    color: var(--color-text);
}

.footer-legal-name {
    text-align: center;
    color: var(--color-text-muted-40);
    font-size: var(--fs-caption);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-2);
}

.footer-copy {
    text-align: center;
    color: var(--color-text-muted-40);
    font-size: var(--fs-caption);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Visually-hidden utility — for skip links / screen-reader-only text */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-accent-solid);
    color: #fff;
    padding: var(--space-2) var(--space-4);
    z-index: 100;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    left: var(--space-4);
    top: var(--space-4);
}

/* Cookie consent banner — hidden by default; landing-shared.js shows it
   only when the visitor hasn't made a choice yet (checked against
   localStorage), and never fires GA4 storage until they accept. */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: rgba(10, 12, 20, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--color-border-strong);
    box-shadow: 0 -12px 30px -10px rgba(0, 0, 0, 0.6);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__text {
    flex: 1 1 320px;
    font-size: var(--fs-body-sm);
    color: var(--color-text-muted-70);
    margin: 0;
}

.cookie-banner__text a {
    color: var(--color-accent-solid);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

.cookie-banner .btn {
    padding: 10px 20px;
    font-size: var(--fs-body-sm);
}

/* Sticky mobile CTA - mirrors the hero's primary action for visitors who
   have scrolled past it, so converting never requires scrolling back up.
   Desktop-only via .hero-cta is already always in view on typical
   desktop viewports relative to page length, so this is shown on mobile
   only; hidden by default and toggled visible by JS once the hero CTA
   scrolls out of view (see initStickyCta in landing-shared.js). */
.sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: rgba(5, 7, 13, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border-strong);
    box-shadow: 0 -12px 28px -10px rgba(0, 0, 0, 0.55);
    padding: var(--space-3) var(--space-4);
    transform: translateY(100%);
    transition: transform 0.25s ease;
}

.sticky-cta.is-visible {
    transform: translateY(0);
}

.sticky-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.sticky-cta-text {
    font-size: 0.8125rem;
    color: var(--color-text-muted-70);
    flex: 1 1 auto;
    min-width: 0;
}

.sticky-cta .btn-primary {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 0.9375rem;
}

@media (max-width: 640px) {
    .sticky-cta {
        display: block;
    }
}

/* Header CTA - the desktop counterpart to .sticky-cta. Best-practice
   pattern for desktop is a persistent action in the (already sticky)
   header rather than a separate floating bottom bar, which reads as a
   mobile-specific convention (bottom-of-thumb-reach).
   Hidden below 641px so it doesn't duplicate the mobile .sticky-cta
   bar. On desktop, it stays hidden (opacity/pointer-events) while the
   hero's own CTA is in view, and fades in once it's scrolled past -
   same IntersectionObserver-driven toggle as .sticky-cta, so the
   visitor is never looking at two identical "Start Email Check"
   buttons at once on first paint. */
.header-cta {
    padding: 8px 20px;
    font-size: var(--fs-body-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.header-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 640px) {
    .header-cta {
        display: none;
    }
}

@media (max-width: 640px) {
    /* Compact on phones: the desktop sizing made the banner eat a large
       share of a small viewport. Tighter padding/gaps, smaller text, and
       the two buttons share one row at equal width. */
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: var(--space-2);
        padding: var(--space-3) var(--space-4);
        padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
    }

    .cookie-banner__text {
        flex: 0 0 auto;
        font-size: var(--fs-caption);
        line-height: 1.45;
    }

    .cookie-banner__actions {
        justify-content: stretch;
        gap: var(--space-2);
    }

    .cookie-banner .btn {
        flex: 1 1 0;
        padding: 8px 12px;
        font-size: var(--fs-caption);
    }
}

/* ------------------------------------------------------------------ */
/* Topic icons - thin-line SVG badges added to cards, data sources,   */
/* FAQ questions and the Privacy heading. Icons are inline currentColor */
/* strokes so they inherit the accent gradient color per context.     */
/* ------------------------------------------------------------------ */

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(139, 123, 240, 0.12);
    color: var(--color-accent-solid);
    margin-bottom: var(--space-3);
}

.icon-badge svg {
    width: 18px;
    height: 18px;
}

.card .icon-badge {
    margin-bottom: var(--space-3);
}

/* Data source rows: icon replaces the plain gradient dot, positioned
   inline with the <dt> label. */
.sources-list > div::before {
    display: none;
}

.sources-list dt {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.sources-list .icon-badge {
    width: 28px;
    height: 28px;
    margin-bottom: 0;
}

.sources-list .icon-badge svg {
    width: 15px;
    height: 15px;
}

/* FAQ question topic icon, sits before the question text, separate
   from the existing expand/collapse chevron (.faq-icon) on the right. */
.faq-question-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--color-accent-solid);
    opacity: 0.85;
}

.faq-question-icon svg {
    width: 16px;
    height: 16px;
}

.faq-question-text {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-align: left;
}

/* Privacy & Responsible Use heading icon */
.privacy-note h2 {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.privacy-note .icon-badge {
    margin-bottom: 0;
}

/* Emphasis helpers requested for numbers/price and H2 key phrases */
.price-emphasis {
    font-weight: 700;
    font-size: 1.05em;
    color: var(--color-text);
}

.hero-note {
    font-size: 1rem;
}

/* Smart Search visual preview - a static/lightly-animated mockup of the
   product UI, shown on the landing page so visitors see what the tool
   looks like before continuing. Not a live search: it never submits
   anything, and the caption says so explicitly. Deliberately omits any
   sensitive search-category tab (e.g. a government-ID field) even where
   the real in-product UI includes one, since this mockup is public-facing. */
.search-preview {
    max-width: 720px;
    margin: var(--space-8) auto 0;
    padding: var(--space-6);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.search-preview-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.search-preview-tab {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-text-muted-60);
    background: transparent;
    border: 1px solid transparent;
}

.search-preview-tab.is-active {
    color: var(--color-text);
    background: var(--color-surface);
    border-color: var(--color-border-strong);
}

.search-preview-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-4);
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
}

.search-preview-bar svg {
    flex-shrink: 0;
    color: var(--color-accent-solid);
}

.search-preview-input {
    flex-grow: 1;
    min-width: 0;
    font-size: 0.9375rem;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
}

.search-preview-input.is-typing::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    vertical-align: -0.1em;
    background: var(--color-accent-solid);
    animation: search-preview-blink 1s steps(1) infinite;
}

@keyframes search-preview-blink {
    50% { opacity: 0; }
}

.search-preview-submit {
    flex-shrink: 0;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text-muted-60);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
}

.search-preview-status {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
}

.search-preview-status-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.8125rem;
    color: var(--color-text-muted-55);
}

.search-preview-status-item::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-text-muted-40);
    flex-shrink: 0;
}

.search-preview-status-item.is-done {
    color: var(--color-text-muted-70);
}

.search-preview-status-item.is-done::before {
    background: var(--color-accent-solid);
}

.search-preview-caption {
    margin-top: var(--space-4);
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted-45);
}

@media (prefers-reduced-motion: reduce) {
    .search-preview-input.is-typing::after {
        animation: none;
    }
}

/* Introductory offer card (hero) */
.offer-card {
    max-width: 560px;
    margin: var(--space-2) auto var(--space-5);
    padding: var(--space-5) var(--space-5) var(--space-4);
    text-align: left;
    background: rgba(8, 10, 20, 0.85);
    border: 1px solid rgba(129, 140, 248, 0.25);
    border-radius: var(--radius-lg);
}
.offer-eyebrow {
    margin: 0 0 var(--space-2);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #818cf8;
}
.offer-title {
    margin: 0 0 var(--space-1);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}
.offer-sub {
    margin: 0 0 var(--space-4);
    color: var(--color-text-muted-55);
}
.offer-card .hero-cta {
    display: block;
    margin: 0 0 var(--space-3);
}
.offer-card .hero-cta .btn-primary {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius-full);
}
.offer-records {
    margin: 0;
    font-size: 0.9375rem;
    color: #a5b4fc;
}
@media (max-width: 640px) {
    .offer-card { padding: var(--space-4); }
    .offer-title { font-size: 1.25rem; }
}

/* ---- Flow diagram (How it works) ---- */
.flow{list-style:none;margin:var(--space-8,2rem) 0 0;padding:0;display:flex;align-items:stretch;justify-content:center;gap:var(--space-2,.5rem)}
.flow__node{position:relative;flex:1 1 0;min-width:0;padding:var(--space-5,1.25rem);background:var(--color-surface);border:1px solid var(--color-border);border-radius:16px;text-align:left}
.flow__node h3{font-size:1rem;margin:var(--space-3,.75rem) 0 var(--space-1,.25rem)}
.flow__node p{font-size:.875rem;margin:0}
.flow__num{position:absolute;top:12px;right:14px;font-size:.75rem;font-weight:700;color:var(--color-text-muted-55)}
.flow__arrow{flex:0 0 auto;align-self:center;width:24px;height:24px;color:var(--color-accent-solid)}
.flow__arrow svg{width:100%;height:100%;display:block}
.flow__branch{flex:1.1 1 0;min-width:0;display:flex;flex-direction:column;gap:var(--space-2,.5rem);justify-content:center}
.flow__node--result{flex:1;border-style:dashed;padding:var(--space-4,1rem)}
.flow__node--result h3{margin-top:0}
.flow__node--end{border-color:var(--color-accent-solid)}
@media (max-width:900px){
  .flow{flex-direction:column;align-items:stretch;gap:0}
  .flow__arrow{transform:rotate(90deg);margin:2px auto;width:20px;height:20px}
}
/* Phones: compact rows - icon + title only, result branches side by side */
@media (max-width:600px){
  .flow__node:not(.flow__node--result){display:flex;align-items:center;gap:var(--space-3,.75rem);padding:var(--space-3,.75rem) var(--space-4,1rem)}
  .flow__node:not(.flow__node--result) .icon-badge{margin-bottom:0}
  .flow__node:not(.flow__node--result) h3{margin:0;font-size:.9375rem}
  .flow__node:not(.flow__node--result) p{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .flow__branch{flex-direction:row}
  .flow__node--result{padding:var(--space-3,.75rem)}
  .flow__node--result h3{font-size:.9375rem}
  .flow__node--result p{font-size:.8125rem}
}

/* ---- Data sources panel ---- */
.src-panel{list-style:none;margin:var(--space-8,2rem) auto 0;padding:0;max-width:880px;display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--color-border);border-radius:var(--radius-lg,16px);background:var(--color-surface);overflow:hidden}
.src{display:flex;align-items:flex-start;gap:var(--space-4,1rem);padding:var(--space-5,1.25rem) var(--space-6,1.5rem);border-bottom:1px solid var(--color-border)}
.src:nth-child(odd){border-right:1px solid var(--color-border)}
.src:nth-last-child(-n+2){border-bottom:none}
.src .icon-badge{flex:0 0 auto}
.src h3{font-size:1rem;margin:0 0 var(--space-1,.25rem)}
.src p{font-size:.875rem;margin:0}
@media (max-width:700px){
  .src-panel{grid-template-columns:1fr}
  .src:nth-child(odd){border-right:none}
  .src:nth-last-child(2){border-bottom:1px solid var(--color-border)}
}
.src .icon-badge{margin-bottom:0}

/* Phones: 3-up cards become compact rows (icon left, text right) */
@media (max-width:600px){
  .card-grid--compact{gap:var(--space-2,.5rem)}
  .card-grid--compact .card{display:grid;grid-template-columns:auto 1fr;column-gap:var(--space-3,.75rem);align-items:start;padding:var(--space-3,.75rem) var(--space-4,1rem)}
  .card-grid--compact .card .icon-badge{grid-row:1 / span 2;margin-bottom:0}
  .card-grid--compact .card h3{margin:0 0 2px;font-size:.9375rem}
  .card-grid--compact .card p{margin:0;font-size:.8125rem;line-height:1.45}
}
