/* =============================================================
   winspirit — design tokens
   ============================================================= */
:root {
    --bg-primary:      #0a0805;
    --bg-surface:      #171310;
    --bg-surface-2:    #1f1a15;
    --border-subtle:   #2e2620;
    /* Admin-picked "Background color" from Edit branding (App\Models\
       SiteSetting::background_color) — reserved for a specific future use,
       currently only feeding the table header gradient below. Defaults to
       the same shade as --bg-primary until an admin sets one. */
    --bg-custom:       #0a0805;
    --bg-custom-rgb:   10, 8, 5;

    --primary-500:     #f97316;
    --primary-400:     #fb923c;
    --primary-600:     #ea580c;
    --primary-900:     #7c2d12;
    /* -500 shade as a bare "r, g, b" triplet — same purpose as
       --secondary-rgb below, for rgba(var(--primary-rgb), <alpha>) (see
       .bullet-card--numbered). */
    --primary-rgb:     249, 115, 22;

    /* Secondary — drop shadows, hover outlines/borders, hover text color.
       --secondary-rgb is the -500 shade as a bare "r, g, b" triplet, for
       rgba(var(--secondary-rgb), <alpha>) shadows — see .btn--primary:hover.
       Kept a separate axis from --primary-* so hover/focus states read as
       a distinct accent rather than a lighter/darker copy of the button
       color. Both are admin-overridable independently — see ThemeColor. */
    --secondary-500:   #eab308;
    --secondary-400:   #facc15;
    --secondary-600:   #ca8a04;
    --secondary-900:   #713f12;
    --secondary-rgb:   234, 179, 8;

    --text-primary:    #f7f4f0;
    --text-secondary:  #FFFFFFC7;
    --text-muted:      #7d7266;

    --radius-md:       12px;
    --radius-lg:       20px;

    --container-max:   1200px;

    --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
    --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;
    --font-mono:    "IBM Plex Mono", "Segoe UI", monospace;
}

/* =============================================================
   Reset / base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Keyboard-focus outline — secondary color, so it reads as a distinct
   "you are here" ring rather than a copy of the primary button color. */
:focus-visible { outline: 2px solid var(--secondary-500); outline-offset: 2px; }

body {
    margin: 0;
    /* Flat branding-background tint layered over the dark base — a solid
       rgba() alone would blend against the browser's white canvas instead
       of the page's own dark background. */
       /* background: rgba(var(--bg-custom-rgb), 0.1); */
    background: linear-gradient(rgba(var(--bg-custom-rgb), 0.1), rgba(var(--bg-custom-rgb), 0.1)), var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    line-height: 1.2;
    margin: 0 0 0.6em;
    font-weight: 700;
}
h1, h2 { font-family: var(--font-body); }
h3, h4 { font-family: var(--font-display); }

h1 { font-size: 38px; letter-spacing: -0.46px; }
h2 { font-size: 32px; letter-spacing: -0.46px; }
h3 { font-size: 22px; color: rgba(var(--bg-custom-rgb)); }
h4 { font-size: 16px; }

p { color: var(--text-secondary); margin: 0 0 1em; font-size: 16px; line-height: 1.3; font-family: var(--font-body); }

/* Bullet lists inside rich text (RichEditor output — intro/outro text, card
   bodies, accordion/FAQ content, etc. — rendered via {!! !!} anywhere in a
   .section) get a themed square marker instead of the browser default disc.
   :not(.bullet-card) excludes the separate, purpose-built bullet-list
   section type above, which already has its own marker-free card design. */
.section ul:not(.bullet-card) {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
}
.section ul:not(.bullet-card) li {
    position: relative;
    padding-left: 1.3em;
    margin-bottom: 0.5em;
}
.section ul:not(.bullet-card) li::before {
    content: '';
    position: absolute;
    /* Centers the marker on both axes: top/left place its center point at
       the midpoint of the li's height and of the 1.3em bullet gutter, then
       translate(-50%, -50%) shifts it back by half its own size so that
       center point — not its top-left corner — lands there. */
    top: 50%;
    left: 0.65em;
    transform: translate(-50%, -50%);
    width: 0.2em;
    height: 0.2em;
    background: var(--text-secondary);
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.container--narrow > p:not(.section__eyebrow) { max-width: 68ch; }
.section--closing .container--narrow > p { margin-left: auto; margin-right: auto; }

.breadcrumbs { margin-bottom: 1.5rem; }
.breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}
.breadcrumbs__item { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumbs__item a { color: var(--text-secondary); }
.breadcrumbs__item a:hover { color: var(--secondary-400); }
.breadcrumbs__item [aria-current="page"] { color: var(--text-muted); }
.breadcrumbs__sep { color: var(--text-muted); }

/* Background color from Edit branding (App\Models\SiteSetting::
   background_color) — off by default at a faint 10% opacity, rising to
   20% when the section's "Alternate background shade" toggle is on, so
   the alt striping still reads as a step up rather than a flat swap. */
.section { padding: clamp(2.5rem, 6vw, 5rem) 0; background: linear-gradient(rgba(var(--bg-custom-rgb), 0.1), rgba(var(--bg-custom-rgb), 0.1)), var(--bg-primary); }
.section--alt { background: rgba(var(--bg-custom-rgb), 0.1); }
/* 'text' section type only — secondary-color tint, an alternative to
   .section--alt above (see SectionsRelationManager's "secondary_background"
   toggle). rgba over the -500 shade so the page's own background still
   shows through at 30% underneath it. */
.section--secondary-tint { background: rgba(var(--secondary-rgb), 0.4); }
/* 'text' section type only — wraps the heading/text in a bordered card
   instead of sitting plain on the page (see "text_style" in the admin). */
.section__box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 4vw, 2.75rem);
}
.section--alt .section__box { background: var(--bg-surface-2); }
/* Wins over the .section--alt rule above regardless of the outer section's
   own state — same specificity (two classes), later in source order. */
.section__box.section__box--secondary-tint { background: rgba(var(--secondary-rgb), 0.4); }

/* 'closing-cta' section type only — the whole section (image + text) sits
   inside one rounded box (see "background_image"/"gradient_background" in
   the admin). Same base .section__box card as above; the image gets its
   own inset radius rather than running edge-to-edge with the box. */
.section__box--closing { text-align: center; }
.section__box__image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 1.75rem;
}
/* Wins over .section--alt .section__box above for the same reason
   .section__box--secondary-tint does — same specificity, later in source. */
.section__box.section__box--gradient {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.4), rgba(var(--bg-custom-rgb), 0.05));
}

/* 'group' section type only — its subsections (each a nested page_section,
   see PageSection::children()), stacked by default or side by side (see
   "group_arrangement" in the admin). A subsection can itself be a group,
   one level deep — see <x-group-subsection>. */
.group-subsection__list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}
.group-subsection__list--horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}
.group-subsection__list--horizontal > .group-subsection,
.group-subsection__list--horizontal > .group-subsection__list {
    flex: 1 1 280px;
    min-width: 0;
}
.group-subsection__list-heading { width: 100%; }
/* A 'text' subsection's own boxed-style color choice — distinct from the
   top-level text section's "Secondary color background" toggle, since a
   subsection picks between two colors rather than an on/off tint. Same
   specificity-over-.section--alt trick as .section__box--gradient above. */
.section__box.section__box--sub-secondary { background: rgba(var(--secondary-rgb), 0.2); }
.section__box.section__box--sub-primary { background: rgba(var(--bg-custom-rgb), 0.2); }

@media (max-width: 860px) {
    .group-subsection__list--horizontal { flex-direction: column; }
}

.section h2 { width: 90%; }
.section__heading { margin-bottom: 2.2rem; }
.section__intro { width: 80%; margin: -1.2rem 0 2.2rem; color: var(--text-secondary); }
.group-subsection .section__intro { margin: 0 }
.section__outro { width: 80%; margin: 2.2rem 0 0; color: var(--text-secondary); }
.section--closing { text-align: center; }
.section--closing__lead { color: var(--text-primary); font-weight: 600; }
.section__cta { margin-top: 1.75rem; }

/* Small text/title ("eyebrow") shown above a section heading. Uses the
   secondary color from Edit branding — a distinct accent from the theme
   color, purely for this small label. */
.section__eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.61px;
    text-transform: uppercase;
    color: var(--secondary-500);
    margin: 0 0 0.6em;
}

/* Admin-controlled alignment (see PageSection::effectiveContentAlign()) —
   applied directly to the eyebrow/heading/description/outro elements
   themselves, so it always wins over an inherited alignment from the
   section wrapper (e.g. .section--closing's own centering below) without
   needing to fight it on specificity. .section__intro/.section__outro
   additionally get their narrow column's own margin flipped to match,
   so the whole block shifts side, not just the text within it — as does
   the h2 heading itself (see ".section h2" above), so an 80%-wide title
   still visually sits on the correct side rather than always centering. */
.text-align-left { text-align: left; }
.text-align-center { text-align: center; }
.text-align-right { text-align: right; }
.text-align-left.section__intro, .text-align-left.section__outro { margin-top: 15px; }
.text-align-center.section__intro, .text-align-center.section__outro { margin-top: 15px; }
.text-align-right.section__intro, .text-align-right.section__outro { margin-top: 15px; }
.text-align-left.section__intro, .text-align-left.section__outro, h2.text-align-left { margin-left: 0; margin-right: auto; }
.text-align-center.section__intro, .text-align-center.section__outro, h2.text-align-center { margin-left: auto; margin-right: auto; }
.text-align-right.section__intro, .text-align-right.section__outro, h2.text-align-right { margin-left: auto; margin-right: 0; }

/* =============================================================
   Buttons
   ============================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.65em 1.4em;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--lg { padding: 0.85em 1.9em; font-size: 1.05rem; }
.btn--primary {
    background: var(--secondary-500);
    color: var(--primary-900);
    font-weight: bold;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--secondary-rgb), 0.35); }
.btn--ghost {
    background: rgba(var(--bg-custom-rgb), 0.20);
    border-color: rgba(var(--bg-custom-rgb), 0.35);
    color: var(--text-primary);
}
.btn--ghost:hover { border-color: var(--secondary-500); color: var(--secondary-400); }

/* =============================================================
   Header / navbar
   ============================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(rgba(var(--bg-custom-rgb), 0.1), rgba(var(--bg-custom-rgb), 0.1)), var(--bg-primary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--bg-custom-rgb), 0.40);
}
.site-header__inner {
    max-width: 95%;
    margin: 0 auto;
    padding: 0.9rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header__left { display: flex; align-items: center; gap: 0.75rem; }
.site-header__right { display: flex; align-items: center; gap: 2rem; }

.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; display: inline-flex; align-items: center; }
.brand__text { color: var(--text-primary); }
.brand__logo { height: 64px; width: auto; display: block; transition: height 0.15s ease; }

.nav-burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
}
.nav-burger span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; }
.site-nav__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.6rem;
    column-gap: 1.15rem;
    margin: 0;
    padding: 0;
}
.site-nav__list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.15s ease;
}
.site-nav__list a:hover { color: var(--secondary-400); }
.site-nav__list a.is-active { color: var(--primary-500); font-weight: 700; }
.site-nav__auth { display: flex; gap: 0.75rem; }

.site-nav__dropdown { position: relative; }
.site-nav__dropdown-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 0.35rem;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-secondary);
    font: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.15s ease;
}
.site-nav__dropdown-toggle:hover { color: var(--secondary-400); }
.site-nav__dropdown-toggle[aria-expanded="true"] { color: var(--primary-400); }
.site-nav__dropdown-toggle.is-active { color: var(--primary-500); font-weight: 700; }
.site-nav__dropdown-caret { transition: transform 0.15s ease; }
.site-nav__dropdown-toggle[aria-expanded="true"] .site-nav__dropdown-caret { transform: rotate(180deg); }
.site-nav__dropdown-menu { list-style: none; margin: 0; padding: 0; }
.site-nav__dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.75rem;
}
.site-nav__dropdown-menu a.is-active { color: var(--primary-500); font-weight: 700; background: var(--primary-900); }

@media (min-width: 961px) {
    .site-nav__dropdown-menu {
        position: absolute;
        top: calc(100% + 0.9rem);
        right: 0;
        min-width: 170px;
        background: var(--bg-surface);
        border: 1px solid var(--border-subtle);
        border-radius: var(--radius-md);
        padding: 0.4rem;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }
    .site-nav__dropdown-toggle[aria-expanded="true"] + .site-nav__dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
    .site-nav__dropdown-menu a {
        border-radius: 8px;
        white-space: nowrap;
    }
    .site-nav__dropdown-menu a:hover { background: var(--bg-surface-2); }
}

/* Mobile header: hamburger sits left of a shrunk logo (.site-header__left);
   nav links collapse into a full-width dropdown while the auth buttons
   (.site-nav__auth, a sibling of .site-nav rather than nested inside it)
   stay visible at a reduced size — see navbar.blade.php for the markup
   this depends on. */
@media (max-width: 960px) {
    .site-header__inner { padding: 0.7rem 1rem; }
    .brand__logo { height: 40px; }
    .nav-burger { display: flex; width: 36px; height: 36px; gap: 4px; }
    .nav-burger span { width: 20px; }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-subtle);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }
    .site-nav__list { flex-direction: column; gap: 0.9rem; padding: 1rem 1.25rem; }
    .nav-toggle:checked ~ .site-header__right .site-nav {
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-nav__auth { gap: 0.5rem; }
    .site-nav__auth .btn { padding: 0.5em 1em; font-size: 0.82rem; }

    .site-nav__dropdown-menu {
        max-height: 0;
        overflow: hidden;
        padding-left: 1rem;
        margin-top: 0.6rem;
        transition: max-height 0.2s ease;
    }
    .site-nav__dropdown-menu li + li { margin-top: 0.7rem; }
    .site-nav__dropdown-toggle[aria-expanded="true"] + .site-nav__dropdown-menu {
        max-height: 300px;
    }
    h1 { font-size: 20px }
    h2 { font-size: 20px }
    h3 { font-size: 18px }
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 8vw, 5rem);
}
.hero__figure {
    margin: 0 0 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.hero__bg {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.hero__content { width: 75%; margin: 0 auto; text-align: center; }
.hero__content .breadcrumbs { justify-content: center; }
.hero__title { color: var(--text-primary); }
.hero__lead p { font-size: 16px; color: var(--text-primary); }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }

.hero__caption {
    margin: 0.75rem 0 0;
    text-align: center;
    font-size: 0.78rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Secondary banner-backed section */
.section--banner {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: clamp(3rem, 8vw, 6rem) 0;
}
.section--banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 5, 0.78);
}
.section--banner__content { position: relative; z-index: 1; }
.section--banner__content h2,
.section--banner__content p { color: var(--text-primary); }
.section--banner__content p { color: #e4dcd5; }

/* =============================================================
   Card grids (feature-grid / feature-grid-compact)
   ============================================================= */
.card-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
    background: rgba(var(--bg-custom-rgb), 0.10);
    border: 0.5px solid rgba(var(--bg-custom-rgb), 0.40);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 0 10px rgba(var(--bg-custom-rgb), 0.40);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--secondary-500); transform: translateY(-3px); }
.feature-card h3 { color: var(--text-primary); }
/* Per-card small text/title — a pill ("medicine capsule") badge in the
   site's secondary color, rather than plain inline text. */
.feature-card__eyebrow {
    display: inline-block;
    background: var(--secondary-500);
    color: var(--primary-900);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.3em 0.9em;
    border-radius: 999px;
    margin: 0 0 0.7em;
}
.feature-card p:not(.feature-card__eyebrow) { margin: 0; font-size: 14px; }
.feature-card--icon { padding-top: 1.5rem; }
.feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-900);
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
}
.feature-card--compact { padding: 1.5rem; }
.feature-card--compact p:not(.feature-card__eyebrow) { font-size: 14px; }
.feature-card__link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--primary-400);
    font-weight: 600;
    font-size: 14px;
}
.feature-card__link:hover { color: var(--secondary-500); }
.feature-card__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.75rem; }
.feature-card__links .feature-card__link { margin-top: 0; }

/* =============================================================
   Bullet card
   ============================================================= */
.bullet-card {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.bullet-card li {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--primary-500);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.96rem;
}
.section:not(.section--alt) .bullet-card li { background: var(--bg-surface); }
.bullet-card li strong { color: var(--text-primary); }

/* h4 variant (accordion-list bullets) - same look as the <strong> label
   above, but reset from a block-level heading to inline so "Label: text"
   still reads as one flowing line instead of a separate heading block. */
.bullet-card__label {
    display: inline;
    margin: 0;
    color: var(--text-primary);
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
}

/* Arrangement modifiers — 'bullet-list' section only (see "bullet_arrangement"
   in the admin). Default (no modifier class) stays the historical stacked
   flex column above. Horizontal scrolls (rather than wraps) once the cards
   no longer fit the row, with a themed scrollbar instead of the browser
   default — width/height:auto below hands the space back when it fits. */
.bullet-card--horizontal {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1.1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-500) var(--bg-surface-2);
}
.bullet-card--horizontal > li { flex: 0 0 280px; }
.bullet-card--horizontal::-webkit-scrollbar { height: 6px; }
.bullet-card--horizontal::-webkit-scrollbar-track { background: var(--bg-surface-2); border-radius: 999px; }
.bullet-card--horizontal::-webkit-scrollbar-thumb { background: var(--primary-500); border-radius: 999px; }
.bullet-card--horizontal::-webkit-scrollbar-thumb:hover { background: var(--primary-400); }
.bullet-card--grid {
    display: grid;
    grid-template-columns: repeat(var(--bullet-cols, 3), 1fr);
}

/* Numbered card style — 'bullet-list' section only (see "numbered" prop on
   <x-bullet-card>, only ever passed true from the top-level bullet-list
   case). Full themed border/background/shadow per spec, replacing the
   plain left-accent look above rather than layering onto it. */
.bullet-card--numbered > .bullet-card__item {
    position: relative;
    background: rgba(var(--bg-custom-rgb), 0.10);
    border: 0.5px solid rgba(var(--bg-custom-rgb), 0.40);
    border-radius: var(--radius-md);
    box-shadow: 0 0 10px rgba(var(--bg-custom-rgb), 0.40);
    padding: 1.25rem 1.25rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.96rem;
}
.bullet-card__number {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--secondary-500);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1.22px;
}
.bullet-card__title { margin: 0 0 0.4rem; color: var(--text-primary); font-size: 16px; }
.bullet-card__body :last-child { margin-bottom: 0; }
.bullet-card__body p { font-size: 14px; }

/* =============================================================
   Numbered list section (type "numbered-list")
   ============================================================= */
/* Content (small text/heading/description) vs. the list itself — see
   PageSection::effectiveNumberedListLayout(). Default stacks the content
   above the list; --side-by-side places them in two columns instead. The
   list's own items are always vertical either way. */
.numbered-list-layout {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.numbered-list-layout--side-by-side {
    flex-direction: row;
    align-items: flex-start;
}
.numbered-list-layout--side-by-side .numbered-list-layout__content { flex: 0 0 38%; }
.numbered-list-layout--side-by-side .numbered-list-layout__list { flex: 1 1 auto; min-width: 0; }

.numbered-list { list-style: none; margin: 0; padding: 0; }
.numbered-list__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(var(--bg-custom-rgb), 0.3);
}
.numbered-list__item:last-child { border-bottom: none; }
.numbered-list__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--secondary-500);
    color: var(--primary-900);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.8rem;
}
.numbered-list__text { color: var(--text-secondary); font-size: 0.95rem; padding-top: 0.2rem; }
.numbered-list__text p { margin: 0; }

@media (max-width: 860px) {
    .numbered-list-layout--side-by-side { flex-direction: column; }
    .numbered-list-layout--side-by-side .numbered-list-layout__content { flex: initial; }
}

/* =============================================================
   Table figure wrapper
   ============================================================= */
.table-figure { margin: 0; }
.table-figure__caption {
    margin-top: 0.9rem;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
}

/* =============================================================
   Data table (wide, many-column lookup tables). First column shrinks
   to fit its own content; remaining columns share the rest of the
   width and wrap their text. Scrolls horizontally as a fallback on
   narrow viewports once columns hit their minimum width.
   ============================================================= */
.data-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(var(--secondary-rgb), 0.4);
    background: var(--bg-surface);
}
.data-table {
    display: grid;
    grid-template-columns: minmax(130px, max-content) repeat(calc(var(--cols) - 1), minmax(160px, 1fr));
}
.data-table__row { display: contents; }
.data-table__row--head .data-table__cell {
    /* Top-left (secondary color, 10% opacity) to bottom-right (the admin's
       "Background color" from Edit branding, 12% opacity) — each header
       cell gets its own gradient rather than one continuous gradient
       across the row. */
    background: linear-gradient(to bottom right, rgba(var(--secondary-rgb), 0.1), rgba(var(--bg-custom-rgb), 0.12));
    color: #fff;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(var(--bg-custom-rgb), 0.3);
    position: sticky;
    top: 0;
}
.data-table__row--head .data-table__cell:nth-child(even) { color: var(--secondary-500); }
.data-table__cell {
    padding: 0.9rem 1.1rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(var(--bg-custom-rgb), 0.3);
}
.data-table__row:last-child .data-table__cell { border-bottom: none; }
.data-table__cell--label { color: var(--text-primary); font-weight: 700; }
/* Even-position cells (2nd, 4th... column of every body row) get a faint
   secondary-color tint for banding, since the whole table otherwise sits
   on one flat background now. */
.data-table__row:not(.data-table__row--head) .data-table__cell:nth-child(even) {
    background: rgba(var(--secondary-rgb), 0.1);
}
/* Odd-position cells (1st, 3rd... column) — the admin's "Background color"
   from Edit branding, same source as the table header gradient above. */
.data-table__row:not(.data-table__row--head) .data-table__cell:nth-child(odd) {
    background: rgba(var(--bg-custom-rgb), 0.12);
}
/* Second column reads as "us" in a vs./comparison table (see the "table"
   section type's admin-defined columns) — an accent color makes it read
   as the highlighted option against the muted columns beside it. */
.data-table__row:not(.data-table__row--head) .data-table__cell:nth-child(2) {
    color: var(--secondary-400);
    font-weight: 600;
}

/* =============================================================
   FAQ accordion
   ============================================================= */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 1.5rem;
}
/* Flat list — a bottom divider between rows rather than the bordered/
   background card each item used to sit in. */
.faq-item { border-bottom: 1px solid rgba(var(--bg-custom-rgb), 0.4); }
.faq-item:last-child { border-bottom: none; }
.faq-item__question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    cursor: pointer;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    transition: color 0.2s ease;
}
.faq-item__question::-webkit-details-marker { display: none; }
/* Open question reads as the active one, in the theme color — same accent
   as the site's h2 headings. */
.faq-item[open] .faq-item__question { color: rgba(var(--bg-custom-rgb), 0.9) }

/* A "+" (two bars in a circle) that rotates 45° into an "×" when open,
   rather than swapping icons — circles are rotation-invariant so only the
   bars visibly turn. Teal/inviting when closed, muted once expanded. */
.faq-item__icon {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--secondary-500);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.faq-item__icon-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--secondary-500);
    transform: translate(-50%, -50%);
    transition: background-color 0.2s ease;
}
.faq-item__icon-bar--h { width: 8px; height: 1px; }
.faq-item__icon-bar--v { width: 1px; height: 8px; }
.faq-item[open] .faq-item__icon { transform: rotate(45deg); border-color: var(--border-subtle); }
.faq-item[open] .faq-item__icon-bar { background: var(--text-muted); }

.faq-item__answer { padding: 0 0 1.3rem; max-width: 70%; }
.faq-item__answer p { margin: 0; font-size: 16px; }

/* =============================================================
   Accordion list (long per-item content — intro + optional bullets —
   collapsed by default past the first item, instead of a cramped grid)
   ============================================================= */
.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}
.accordion-item {
    background: rgba(var(--bg-custom-rgb), 0.15);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0;
    overflow: hidden;
}
.accordion-item__question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
}
.accordion-item__question::-webkit-details-marker { display: none; }
.accordion-item__question h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.02rem;
}
.accordion-item__icon { flex-shrink: 0; color: var(--primary-500); transition: transform 0.2s ease; }
.accordion-item[open] .accordion-item__icon { transform: rotate(180deg); }
.accordion-item__answer { padding: 0 1.4rem 1.4rem; }
.accordion-item__answer p { font-size: 0.95rem; }
.accordion-item__answer .bullet-card,
.accordion-item__answer .card-grid,
.accordion-item__answer .data-table-wrap { margin-top: 1rem; }
.accordion-item__answer .feature-card { padding: 1.25rem; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
    background: linear-gradient(rgba(var(--bg-custom-rgb), 0.1), rgba(var(--bg-custom-rgb), 0.1)), var(--bg-primary);
    border-top: 1px solid rgba(var(--bg-custom-rgb), 0.4);
    padding-top: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-footer__inner {
    width: 85%
}

/* Logo/tagline/badges column, plus one column per distinct FooterLink
   group_label (admin-editable — see FooterLinkResource) — grouped in
   footer.blade.php, ungrouped links fall into a catch-all "More" column. */
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) repeat(3, 1fr);
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.brand-badge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}
.site-footer__tagline {
    max-width: 32ch;
    margin: 1rem 0 1.25rem;
    font-size: 14px;
    line-height: 23px;
    color: var(--text-secondary);
    text-align: justify;
}
.site-footer__badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(var(--bg-custom-rgb), 0.4);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    /* letter-spacing: 0.03em; */
    color: var(--text-secondary);
}

.site-footer__column-title {
    margin: 0 0 1.1rem;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-primary);
}
.site-footer__column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.site-footer__column a { color: var(--text-secondary); font-size: 14px; }
.site-footer__column a:hover { color: var(--secondary-400); }

.site-footer__notice {
    padding: 1.75rem 0;
    border-top: 1px solid rgba(var(--bg-custom-rgb), 0.4);
    border-bottom: 1px solid rgba(var(--bg-custom-rgb), 0.4);
}
.site-footer__notice p { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 22px; }

.site-footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}
.site-footer__bottom p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.site-footer__bottom p + p { margin-top: 0.4rem; }
.site-footer__bottom a { color: var(--text-secondary); text-decoration: underline; }
.site-footer__bottom a:hover { color: var(--secondary-400); }

@media (max-width: 960px) {
    .site-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.scroll-to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary-500);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.15s ease;
}
.scroll-to-top:hover { background: var(--primary-600); }
.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =============================================================
   Cookie / notification consent banner
   ============================================================= */
.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 95;
    width: calc(100% - 2rem);
    max-width: 26rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 130%);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.cookie-consent.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}
.cookie-consent__panel {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.cookie-consent__title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.cookie-consent__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}
.cookie-consent__actions { display: flex; gap: 0.75rem; }
.cookie-consent__actions .btn { flex: 1; }

/* =============================================================
   Foreground push-notification toast
   ============================================================= */
.fcm-toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 28rem;
    max-width: calc(100vw - 2rem);
}
.fcm-toast {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--primary-500);
    border-radius: var(--radius-md);
    padding: 0.85rem 2.1rem 0.85rem 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: fcm-toast-in 0.2s ease;
}
.fcm-toast__close {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: var(--radius-md);
}
.fcm-toast__close:hover {
    color: var(--text-primary);
    background: var(--bg-surface-2);
}
.fcm-toast__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Legal pages (Privacy Policy, Terms and Conditions, etc.) — one rounded
   box for the header/intro, one per <h2> section (see
   App\Models\LegalPage::parsedContent()). */
.legal-page__header { background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface) 65%, var(--bg-primary) 100%); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; margin-bottom: 1.5rem; }
.legal-page__header h1 { margin-bottom: 0.75rem; }
.legal-page__header p { max-width: 640px; margin-left: auto; margin-right: auto; }
.legal-page__updated { display: inline-flex; padding: 0.4em 0.9em; border: 1px solid var(--border-subtle); border-radius: 999px; color: var(--text-muted); font-size: 13px; margin-bottom: 1.5rem; }
.legal-page__section { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
.legal-page__section:last-child { margin-bottom: 0; }
.legal-page__section h2 { font-size: 24px; margin-bottom: 0.75rem; }
.legal-page__section--contact { background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--primary-rgb), 0.05)); border-color: var(--primary-500); }
.fcm-toast__image {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}
.fcm-toast__content {
    flex: 1;
    min-width: 0;
}
.fcm-toast__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}
.fcm-toast__icon {
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}
.fcm-toast__title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
    margin: 0;
}
.fcm-toast__body {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: justify;
}
@keyframes fcm-toast-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Both arrangement modifiers collapse back to the default vertical stack
   below this width, regardless of what the admin picked. */
@media (max-width: 1024px) {
    .bullet-card--horizontal,
    .bullet-card--grid {
        display: flex;
        flex-direction: column;
        overflow-x: visible;
        padding-bottom: 0;
    }
    .bullet-card--horizontal > li { flex: initial; }
    .container { width: 100% }
    .site-footer__inner { width: 95% }
    .section h2 { width: 100%; }
    .section__intro { width: 100%; margin: 0; }
    .section__outro { width: 100%; margin: 0; }
}

@media (max-width: 768px) {
    .hero__content { width: 100% }
    .btn { padding: 0.5em 1em; font-size: 12px; }
    p { font-size: 14px; }
    .faq-item__question { font-size: 14px; }
    .faq-item__answer p { font-size: 14px; }
}
