/*
 * MatureSearch - Cyber-Midnight navy canvas with warm amber neon accents.
 * Canonical design tokens live in this file.
 */

:root {
    /* Surfaces */
    --bg: #0B0F19;
    --bg-deep: #070A12;
    --navy-1: #101A31;
    --navy-2: #16233F;
    --surface: #13203A;
    --surface-2: #1A2A4A;
    --surface-glass: rgba(19, 32, 58, 0.78);

    /* Lines */
    --border-soft: rgba(255, 255, 255, 0.09);
    --border-amber: rgba(239, 165, 101, 0.38);
    --border-amber-strong: rgba(255, 195, 140, 0.7);

    /* Text */
    --text: #F9FAFB;
    --text-dim: #C3CFE4;
    --text-muted: #9EB0CD;
    --on-accent: #180F05;

    /* Accent */
    --accent: #EFA565;
    --accent-bright: #FFC68F;
    --accent-deep: #C97336;
    --accent-soft: rgba(239, 165, 101, 0.13);
    --glow-sm: 0 0 14px rgba(239, 165, 101, 0.3);
    --glow-md: 0 0 28px rgba(239, 165, 101, 0.32);
    --glow-lg: 0 0 60px rgba(239, 165, 101, 0.28);

    /* Shape */
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    /* Layout */
    --container: 1200px;
    --gutter: 1.25rem;
    --header-bottom: 66px;

    /* Type */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Playfair Display', 'Times New Roman', Georgia, serif;
}

@property --ms-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* ============================================
   OVERFLOW PREVENTION - Safety Net
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

img, video, iframe, embed, object, svg {
    max-width: 100%;
    height: auto;
}

[class*="grid"] > *,
[class*="flex"] > * {
    min-width: 0;
}

pre, code, .code-block, [class*="code"] {
    max-width: 100%;
    overflow-x: auto;
}

pre code,
.code-block code {
    display: block;
    min-width: 0;
}

.table-wrapper,
[class*="table-"] {
    max-width: 100%;
    overflow-x: auto;
}

p, li, td, th {
    overflow-wrap: break-word;
}

details {
    height: fit-content;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article)
  a:not([class]) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

input, textarea, select {
    max-width: 100%;
}

section {
    overflow: clip;
}

/* ============================================
   BASE
   ============================================ */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px 620px at 78% -8%, rgba(203, 126, 62, 0.22), transparent 62%),
        radial-gradient(900px 560px at 8% 42%, rgba(26, 48, 92, 0.6), transparent 65%),
        linear-gradient(180deg, #0B0F19 0%, #101A31 42%, #16233F 72%, #0C1322 100%);
    background-attachment: scroll;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    min-height: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0 0 0.6em;
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 6.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1rem; }

a { color: var(--accent-bright); }
a:hover { color: var(--text); }

ul, ol { padding-left: 1.2rem; }

:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

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

.section {
    position: relative;
    padding: 3rem 0;
}

.section--tight { padding: 2rem 0; }

.section__intro {
    color: var(--text-dim);
    max-width: 68ch;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--accent);
    color: var(--on-accent);
    padding: 0.75rem 1.1rem;
    border-radius: 0 0 var(--radius) 0;
    font-weight: 700;
}
.skip-link:focus {
    left: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 0.75rem;
}

.icon {
    width: 1.1em;
    height: 1.1em;
    flex: none;
}

/* ============================================
   SIGNATURE RIBBON MOTIF
   ============================================ */

.ribbon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    mix-blend-mode: screen;
}

.ribbon--soft { opacity: 0.34; }

.has-ribbon {
    position: relative;
}

.has-ribbon > .container,
.has-ribbon > *:not(.ribbon) {
    position: relative;
    z-index: 1;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: linear-gradient(180deg, #F8BC80 0%, #E89551 55%, #D9823C 100%);
    color: var(--on-accent);
    box-shadow: 0 10px 28px rgba(201, 115, 54, 0.32), var(--glow-sm);
}
.btn--primary:hover {
    box-shadow: 0 14px 34px rgba(201, 115, 54, 0.44), var(--glow-md);
    color: var(--on-accent);
}

.btn--outline {
    background: rgba(13, 22, 42, 0.72);
    color: var(--accent-bright);
    border-color: var(--border-amber);
}
.btn--outline:hover {
    border-color: var(--border-amber-strong);
    color: var(--text);
    box-shadow: var(--glow-sm);
}

.btn--ghost {
    background: transparent;
    color: var(--accent-bright);
    border-color: transparent;
    padding-inline: 0.25rem;
    text-decoration: underline;
    text-underline-offset: 0.3em;
}
.btn--ghost:hover { color: var(--text); }

.btn--sm { min-height: 44px; padding: 0.55rem 1.05rem; font-size: 0.92rem; }
.btn--md { min-height: 48px; }
.btn--lg { min-height: 56px; padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn--wide { width: 100%; }

.btn__icon { width: 1.15em; height: 1.15em; }

/* ============================================
   HEADER + NAV
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(9, 13, 24, 0.86);
    border-bottom: 1px solid var(--border-soft);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: none;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 66px;
}

.site-brand {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4.6vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
}
.site-brand__first { color: #FFFFFF; }
.site-brand__second {
    color: var(--accent);
    text-shadow: 0 0 18px rgba(239, 165, 101, 0.45);
}
.site-brand--static { cursor: default; }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 10px;
    background: rgba(18, 29, 52, 0.9);
    border: 1px solid var(--border-amber);
    border-radius: 12px;
    cursor: pointer;
}
.nav-toggle__bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--accent-bright);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-actions { display: none; }

.site-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-bottom);
    bottom: 0;
    height: auto;
    z-index: 55;
    background: #0A1020;
    border-top: 1px solid var(--border-soft);
    padding: 1.25rem var(--gutter) 2.5rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-nav__list {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
}
.site-nav__list a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.25rem 0.25rem;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--border-soft);
}
.site-nav__list a:hover { color: var(--accent-bright); }

body.nav-open { overflow: hidden; }

/* ============================================
   SURFACES / PANELS
   ============================================ */

.panel {
    position: relative;
    background: linear-gradient(160deg, rgba(27, 42, 74, 0.9), rgba(15, 25, 45, 0.92));
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.panel--amber {
    border-color: var(--border-amber);
    box-shadow: inset 0 0 40px rgba(239, 165, 101, 0.07), 0 18px 40px rgba(4, 8, 16, 0.5);
}

.glow-border {
    position: relative;
    background: linear-gradient(160deg, rgba(27, 42, 74, 0.92), rgba(14, 23, 42, 0.95));
    border: 1px solid var(--border-amber);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 44px rgba(4, 8, 16, 0.5);
}

.glow-border::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--ms-angle), transparent 0 52%, var(--accent-bright) 68%, rgba(255, 198, 143, 0) 84% 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.glow-border:hover::before,
.glow-border:focus-within::before,
.glow-border.is-active::before {
    opacity: 1;
    animation: ms-rotate 3.4s linear infinite;
}

@keyframes ms-rotate {
    to { --ms-angle: 360deg; }
}

.magnet {
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    will-change: transform;
}
.magnet:hover {
    box-shadow: 0 22px 54px rgba(4, 8, 16, 0.6), var(--glow-sm);
}

/* ============================================
   CHIPS / BADGES / MARKS
   ============================================ */

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.5;
    white-space: nowrap;
}
.chip--ai {
    background: linear-gradient(180deg, #F7BE86, #E2924F);
    color: var(--on-accent);
    box-shadow: 0 2px 12px rgba(201, 115, 54, 0.35);
}
.chip--dist {
    background: rgba(13, 22, 42, 0.85);
    border: 1px solid var(--border-amber);
    color: var(--accent-bright);
}
.chip--verified {
    background: rgba(239, 165, 101, 0.14);
    border: 1px solid var(--border-amber);
    color: var(--accent-bright);
}
.chip__icon { width: 0.95em; height: 0.95em; }

.mark {
    display: inline-flex;
    width: 1.5rem;
    height: 1.5rem;
    align-items: center;
    justify-content: center;
}
.mark--yes { color: var(--accent); }
.mark--no { color: #6F7F9B; }

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-amber);
    background: rgba(239, 165, 101, 0.12);
    color: var(--accent-bright);
    font-weight: 800;
    font-size: 0.95rem;
    flex: none;
}

/* ============================================
   CHECK LIST
   ============================================ */

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-dim);
    font-size: 0.95rem;
}
.check-list__icon {
    color: var(--accent);
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.15rem;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    padding: 2.5rem 0 3rem;
    overflow: clip;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("/assets/620a5e7d6e21db070f8e948a37cdebaf.webp");
    background-size: cover;
    background-position: 72% 32%;
    background-repeat: no-repeat;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.9) 0%, rgba(11, 15, 25, 0.72) 40%, rgba(11, 15, 25, 0.95) 100%);
}

.hero__inner {
    position: relative;
    z-index: 2;
}

.hero__title { margin-bottom: 0.6rem; }
.hero__sub {
    color: var(--text-dim);
    font-size: 1.05rem;
    max-width: 46ch;
    margin-bottom: 1.5rem;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem 0.6rem;
    margin-bottom: 1.75rem;
}

.avatar-tile {
    position: relative;
    margin: 0;
    text-align: center;
}
.avatar-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}
.avatar-tile__ring {
    position: absolute;
    inset: -3px;
    bottom: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid var(--border-amber);
    box-shadow: 0 0 14px rgba(239, 165, 101, 0.25);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    pointer-events: none;
}
.avatar-tile:hover .avatar-tile__ring {
    border-color: var(--border-amber-strong);
    box-shadow: 0 0 26px rgba(255, 198, 143, 0.5);
}
.avatar-tile figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin-top: -0.7rem;
}
.avatar-tile__dist {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.avatar-tile--more {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(22, 35, 63, 0.72);
    border: 1px dashed rgba(239, 165, 101, 0.35);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    padding: 0.5rem;
}
.avatar-tile--more .avatar-tile__ring { display: none; }

.hero__cta-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}
.hero__cta-wrap::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    max-width: 92vw;
    border-radius: 50%;
    border: 1px solid rgba(239, 165, 101, 0.3);
    box-shadow: 0 0 70px rgba(239, 165, 101, 0.18);
    pointer-events: none;
}

/* ============================================
   LIVE COUNTER / SOCIAL PROOF SLABS
   ============================================ */

.slab-grid {
    display: grid;
    gap: 1rem;
}

.counter-panel {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.counter-panel__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--text);
}
.counter-panel__pulse {
    color: var(--accent);
    width: 1.6rem;
    height: 1.6rem;
    animation: ms-pulse 2.4s ease-in-out infinite;
}
@keyframes ms-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
.counter-tiles {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}
.counter-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    padding: 0.45rem 0.25rem;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(36, 54, 90, 0.95), rgba(16, 26, 48, 0.95));
    border-top: 1px solid rgba(239, 165, 101, 0.45);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.55);
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text);
}
.counter-tile--sep {
    min-width: auto;
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--accent);
}
.counter-panel__label {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   PROFILE CARDS
   ============================================ */

.profile-grid {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: minmax(0, 1fr);
}

.profile-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.6rem;
}
.profile-card__media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}
.profile-card__media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 28%;
    display: block;
}
.profile-card__chip {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
}
.profile-card__body {
    padding: 0.85rem 0.6rem 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
}
.profile-card__name {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.profile-card__age { color: var(--text-muted); font-weight: 600; }
.profile-card__verified { color: var(--accent); display: inline-flex; }
.profile-card__interest {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.profile-card__actions {
    display: flex;
    gap: 0.6rem;
    width: 100%;
    margin-top: 0.4rem;
}
.profile-card__actions .btn { flex: 1 1 0; }

/* ============================================
   STEPS
   ============================================ */

.steps {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}
.step { position: relative; padding-left: 0; }
.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--border-amber);
    background: rgba(13, 22, 42, 0.9);
    color: var(--accent-bright);
    font-weight: 800;
    box-shadow: 0 0 22px rgba(239, 165, 101, 0.22);
    margin-bottom: 0.7rem;
}
.step__title { margin-bottom: 0.3rem; }
.step__text { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.steps-connector { display: none; }

.steps-shell { position: relative; }

.quiz-cta { margin-top: 1.1rem; }
.quiz-cta .btn { width: 100%; }

/* ============================================
   COMPARISON TABLE
   ============================================ */

.compare-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
}
.compare {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    background: rgba(14, 23, 42, 0.86);
    font-size: 0.92rem;
}
.compare th,
.compare td {
    padding: 0.8rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}
.compare thead th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(22, 35, 63, 0.9);
}
.compare tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
.compare td:not(:first-child),
.compare th:not(:first-child) { text-align: center; }
.compare .col-ms {
    background: rgba(239, 165, 101, 0.09);
    border-left: 1px solid var(--border-amber);
    border-right: 1px solid var(--border-amber);
    color: var(--text);
    font-weight: 600;
}
.compare thead .col-ms {
    color: var(--accent-bright);
    box-shadow: inset 0 0 26px rgba(239, 165, 101, 0.12);
}
.compare tbody tr:last-child td { border-bottom: 0; }

/* ============================================
   QUIZ + CTA PANEL
   ============================================ */

.quiz-grid {
    display: grid;
    gap: 1rem;
}

.quiz-card {
    margin: 0;
    padding: 1.1rem;
    border: 1px solid var(--border-amber);
}
.quiz-card__q {
    padding: 0;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.85rem;
}
.quiz-card__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
.quiz-chip {
    min-height: 44px;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-amber);
    background: rgba(13, 22, 42, 0.8);
    color: var(--text-dim);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}
.quiz-chip:hover { color: var(--text); box-shadow: var(--glow-sm); }
.quiz-chip[aria-pressed="true"] {
    background: linear-gradient(180deg, #F8BC80, #E2924F);
    color: var(--on-accent);
    border-color: transparent;
}

.quiz-result {
    margin: 1rem 0 0;
    color: var(--accent-bright);
    font-weight: 600;
    font-size: 0.95rem;
}

.quiz-cta[hidden] { display: none; }

.cta-panel {
    position: relative;
    padding: 1.6rem 1.25rem;
    text-align: center;
    overflow: hidden;
}
.cta-panel::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -40px;
    width: 320px;
    height: 220px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(239, 165, 101, 0.28), transparent 68%);
    pointer-events: none;
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel__sub { color: var(--text-dim); }
.cta-panel .btn--primary { animation: ms-breathe 3.6s ease-in-out infinite; }

@keyframes ms-breathe {
    0%, 100% { box-shadow: 0 10px 28px rgba(201, 115, 54, 0.3), 0 0 14px rgba(239, 165, 101, 0.28); }
    50% { box-shadow: 0 14px 36px rgba(201, 115, 54, 0.45), 0 0 34px rgba(255, 198, 143, 0.5); }
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
    display: grid;
    gap: 0.75rem;
    align-items: start;
}

.faq-item {
    align-self: start;
    background: rgba(16, 26, 48, 0.85);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__toggle svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    transition: transform 0.25s ease;
}
.faq-item[open] {
    border-color: var(--border-amber);
    border-left: 2px solid var(--accent);
    box-shadow: inset 0 0 36px rgba(239, 165, 101, 0.08);
}
.faq-item[open] .faq-item__bar { opacity: 0; }
.faq-item[open] .faq-item__toggle svg { transform: rotate(180deg); }
.faq-item__a {
    padding: 0 1rem 1.1rem;
    color: var(--text-dim);
    font-size: 0.96rem;
}
.faq-item__a p:last-child { margin-bottom: 0; }

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-hero {
    position: relative;
    padding: 2.5rem 0 1.5rem;
}
.legal-hero::before {
    content: "";
    position: absolute;
    top: -220px;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    max-width: 160%;
    height: 420px;
    background: radial-gradient(ellipse at center, rgba(239, 165, 101, 0.17), transparent 68%);
    pointer-events: none;
}
.legal-hero > .container { position: relative; z-index: 1; }
.legal-hero__title { font-size: clamp(1.8rem, 5.2vw, 2.8rem); }
.legal-hero__intro { color: var(--text-dim); max-width: 70ch; }
.legal-hero__meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

.legal-layout {
    display: grid;
    gap: 1.75rem;
    padding-bottom: 3rem;
}

.toc {
    background: linear-gradient(160deg, rgba(27, 42, 74, 0.9), rgba(15, 25, 45, 0.92));
    border: 1px solid var(--border-amber);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
}
.toc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    min-height: 44px;
    color: var(--text);
}
.toc__summary::-webkit-details-marker { display: none; }
.toc__chevron { color: var(--accent); font-size: 1.3rem; line-height: 1; }
.toc__details[open] .toc__chevron { transform: rotate(45deg); }
.toc__list {
    margin: 0.75rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.35rem;
    color: var(--text-muted);
}
.toc__list a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.93rem;
}
.toc__list a:hover {
    color: var(--accent-bright);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.legal-body {
    max-width: 72ch;
}
.legal-body h2 {
    font-size: clamp(1.35rem, 3.4vw, 1.8rem);
}
.legal-body h3 {
    margin-top: 2.2rem;
    padding-top: 1.6rem;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, rgba(239, 165, 101, 0.6), rgba(239, 165, 101, 0)) 1;
    scroll-margin-top: calc(var(--header-bottom) + 16px);
}
.legal-body h3:first-of-type { margin-top: 1rem; }
.legal-body p,
.legal-body li {
    color: var(--text-dim);
    font-size: 0.99rem;
}
.legal-body ul,
.legal-body ol { display: grid; gap: 0.45rem; margin-bottom: 1.2rem; }
.legal-body strong { color: var(--text); }

.callout {
    border: 1px solid var(--border-amber);
    background: rgba(239, 165, 101, 0.08);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
    margin: 1.4rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.cookie-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    margin: 1.4rem 0;
}
.cookie-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: rgba(14, 23, 42, 0.86);
}
.cookie-table th,
.cookie-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-dim);
}
.cookie-table thead th {
    color: var(--accent-bright);
    background: rgba(239, 165, 101, 0.1);
    border-bottom: 1px solid var(--border-amber);
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
}
.status-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 700;
    border: 1px solid var(--border-amber);
    color: var(--accent-bright);
    background: rgba(239, 165, 101, 0.12);
}
.status-pill--always {
    background: rgba(239, 165, 101, 0.95);
    color: #231405;
    border-color: transparent;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    position: relative;
    margin-top: 2rem;
    padding: 2.5rem 0 3rem;
    background: rgba(8, 12, 22, 0.9);
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(239, 165, 101, 0.55), transparent);
}
.site-footer__inner {
    display: grid;
    gap: 1rem;
}
.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}
.site-footer__disclaimer {
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 62ch;
    margin: 0;
}
.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
}
.site-footer__links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.site-footer__links a:hover {
    color: var(--accent-bright);
    text-decoration: underline;
    text-underline-offset: 0.25em;
}
.site-footer__copy {
    color: #7E8DA8;
    font-size: 0.82rem;
    margin: 0;
}

/* ============================================
   BOTTOM NAV (mobile OS style)
   ============================================ */

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    background: rgba(9, 14, 26, 0.97);
    border-top: 1px solid var(--border-amber);
    padding: 0.3rem 0.25rem calc(0.3rem + env(safe-area-inset-bottom));
}
.bottom-nav__item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 56px;
    padding: 0.35rem 0.2rem;
    background: none;
    border: 0;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
}
.bottom-nav__item .icon { width: 1.4rem; height: 1.4rem; }
.bottom-nav__item:hover,
.bottom-nav__item:focus-visible { color: var(--accent-bright); }

body:has(.bottom-nav) { padding-bottom: 4.75rem; }

/* ============================================
   COOKIE CONSENT
   ============================================ */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: rgba(8, 13, 24, 0.98);
    border-top: 1px solid var(--border-amber);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { transform: none; }

.cookie-banner__inner {
    position: relative;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.1rem var(--gutter) 1.2rem;
    display: grid;
    gap: 0.9rem;
    max-height: 80svh;
    overflow-y: auto;
}
.cookie-banner__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
}
.cookie-banner__close svg { width: 20px; height: 20px; }
.cookie-banner__close:hover { color: var(--text); }
.cookie-banner__title {
    margin: 0 0 0.25rem;
    font-weight: 800;
    font-size: 1rem;
    padding-right: 2.5rem;
}
.cookie-banner__text {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.88rem;
    max-width: 72ch;
}
.cookie-banner__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    border: 0;
    margin: 0;
    padding: 0;
}
.cookie-banner__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    align-items: center;
}
.cookie-banner__btn { width: 100%; }
.cookie-banner__save {
    grid-column: 1 / -1;
    min-height: 44px;
    background: none;
    border: 0;
    color: var(--text-dim);
    font: inherit;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: underline;
    text-underline-offset: 0.25em;
    cursor: pointer;
}
.cookie-banner__save:hover { color: var(--accent-bright); }

.switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-dim);
    min-height: 44px;
}
.switch__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.switch__track {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: var(--radius-pill);
    background: #35445F;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease;
    flex: none;
}
.switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #E6EDF8;
    transition: transform 0.2s ease;
}
.switch__input:checked + .switch__track { background: linear-gradient(180deg, #F8BC80, #E2924F); }
.switch__input:checked + .switch__track .switch__thumb { transform: translateX(18px); }
.switch__input:focus-visible + .switch__track {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
}
.switch__input:disabled + .switch__track { opacity: 1; cursor: not-allowed; }
.switch__note { color: var(--text-muted); font-weight: 500; }

/* ============================================
   REVEAL (progressive enhancement only)
   ============================================ */

body.js-ready .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
body.js-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ============================================
   BREAKPOINTS
   ============================================ */

@media (min-width: 560px) {
    .avatar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cookie-banner__actions {
        grid-template-columns: auto auto 1fr;
        justify-content: start;
    }
    .cookie-banner__btn { width: auto; min-width: 160px; }
    .cookie-banner__save { grid-column: auto; justify-self: start; }
}

@media (min-width: 768px) {
    :root { --gutter: 1.75rem; }

    .section { padding: 4rem 0; }

    .nav-toggle { display: none; }

    .site-nav {
        position: static;
        display: flex;
        align-items: center;
        gap: 1.75rem;
        background: none;
        border: 0;
        padding: 0;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        transform: none;
        height: auto;
    }
    .site-nav__list {
        display: flex;
        gap: 1.5rem;
        margin: 0;
    }
    .site-nav__list a {
        border-bottom: 0;
        min-height: auto;
        font-size: 0.93rem;
        color: var(--text-dim);
    }
    .site-nav__cta { display: none; }

    .header-actions { display: flex; align-items: center; }
    .header-actions .header-cta { display: inline-flex; }

    .bottom-nav { display: none; }
    body:has(.bottom-nav) { padding-bottom: 0; }

    .slab-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
    .quiz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer__inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 1.5rem 2rem;
    }
    .site-footer__copy { grid-column: 1 / -1; }
    .avatar-grid { gap: 1rem 0.85rem; }
}

@media (min-width: 1024px) {
    .section { padding: 5rem 0; }

    .hero { padding: 4rem 0 5rem; }
    .hero__bg {
        left: 42%;
        background-position: 55% 30%;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.65) 22%, #000 55%);
        mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.65) 22%, #000 55%);
    }
    .hero__bg::after {
        background: linear-gradient(90deg, rgba(11, 15, 25, 0.92) 0%, rgba(11, 15, 25, 0.35) 45%, rgba(11, 15, 25, 0.15) 100%);
    }
    .hero__inner {
        display: grid;
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
        gap: 2rem;
        align-items: start;
    }
    .hero__copy { max-width: 620px; }
    .hero__cta-wrap { justify-content: flex-start; padding-left: 0.5rem; }
    .hero__cta-wrap .btn { min-width: 420px; }

    .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .split-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
        gap: 2rem;
        align-items: start;
    }

    .steps-connector {
        display: block;
        position: absolute;
        top: 23px;
        left: 0;
        width: 100%;
        height: 2px;
        z-index: 0;
    }
    .steps { position: relative; }
    .step { position: relative; z-index: 1; }

    .faq-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem 1.25rem;
    }

    .legal-layout {
        grid-template-columns: 280px minmax(0, 1fr);
        gap: 2.5rem;
        align-items: start;
    }
    .toc {
        position: sticky;
        top: calc(var(--header-bottom) + 20px);
        max-height: calc(100vh - var(--header-bottom) - 48px);
        overflow-y: auto;
    }
    .toc__chevron { display: none; }
}

@media (min-width: 1280px) {
    .hero__cta-wrap .btn { min-width: 460px; }
}

/* ============================================
   MOTION PREFERENCES
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    body.js-ready .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .magnet { transform: none !important; }
    .cookie-banner { transition: none; }
}