/*
 * Twitive Review - design system
 * Cosmic-romance bento: deep navy panels, warm-gold contours, peach CTAs.
 */

:root {
    interpolate-size: allow-keywords;

    /* Palette */
    --navy-950: #0d0f2e;
    --navy-900: #15173f;
    --navy-800: #1d2052;
    --navy-700: #282c68;
    --indigo-600: #3a3684;
    --teal-500: #3fb8b2;
    --teal-300: #8fe3dc;
    --rose-500: #e0668a;
    --rose-300: #f3a2b8;
    --coral-400: #f08a7a;
    --copper-400: #d98a6c;
    --peach-300: #ffd3a1;
    --peach-400: #ffc08a;
    --amber-500: #f4a45a;
    --gold-400: #f2c27b;
    --cream-100: #fff4e3;
    --text: #f3efff;
    --text-muted: #c9cbea;
    --text-on-peach: #8877d1;

    /* Surfaces */
    --surface-panel: rgba(17, 19, 58, 0.92);
    --surface-panel-solid: #15173f;
    --surface-teal: linear-gradient(145deg, #1f4f66 0%, #2b3778 100%);
    --grad-cta: linear-gradient(100deg, #ffe0b5 0%, #ffc08a 45%, #f4a45a 100%);
    --grad-gold-line: linear-gradient(90deg, transparent, #f2c27b 20%, #ffd3a1 50%, #f2c27b 80%, transparent);

    /* Glows */
    --glow-gold: 0 0 0 1px rgba(242, 194, 123, 0.75), 0 0 22px rgba(242, 194, 123, 0.28);
    --glow-teal: 0 0 0 1px rgba(63, 184, 178, 0.85), 0 0 22px rgba(63, 184, 178, 0.3);
    --glow-rose: 0 0 0 1px rgba(224, 102, 138, 0.85), 0 0 22px rgba(224, 102, 138, 0.3);
    --glow-cta: 0 0 24px rgba(255, 192, 138, 0.55), 0 6px 18px rgba(244, 164, 90, 0.35);

    /* Type */
    --font-display: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Radii & spacing */
    --r-sm: 12px;
    --r-md: 20px;
    --r-lg: 32px;
    --r-xl: 48px;
    --r-pill: 999px;
    --space-section: clamp(3rem, 6vw, 5.5rem);
    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);

    --header-bottom: 68px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   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;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--navy-950);
    overflow-x: clip;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: var(--navy-950);
    background-image: url("/assets/1b6831bf7cf69424b2c99979afccb283.webp");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    pointer-events: none;
}

body.menu-open {
    overflow: hidden;
}

[id] {
    scroll-margin-top: calc(var(--header-bottom) + 16px);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    color: var(--cream-100);
    margin: 0 0 0.6em;
    letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.1rem, 4.4vw + 1rem, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 2.6vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.2rem, 0.8vw + 1rem, 1.45rem); }

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

a {
    color: var(--peach-300);
    transition: color 0.2s ease;
}

a:hover { color: var(--cream-100); }

:focus-visible {
    outline: 2px solid var(--peach-400);
    outline-offset: 3px;
    border-radius: 6px;
}

strong { color: var(--cream-100); }

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 200;
    padding: 0.75rem 1.25rem;
    background: var(--peach-400);
    color: var(--text-on-peach);
    border-radius: var(--r-pill);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    isolation: isolate;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(13, 15, 46, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--grad-gold-line);
    box-shadow: 0 0 10px rgba(242, 194, 123, 0.5);
}

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

.site-header__spark {
    position: absolute;
    left: 50%;
    bottom: -9px;
    transform: translateX(-50%);
    color: var(--peach-300);
    line-height: 0;
    filter: drop-shadow(0 0 6px rgba(255, 211, 161, 0.9));
    pointer-events: none;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: var(--gold-400);
    flex-shrink: 0;
}

.site-brand__text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--cream-100);
    letter-spacing: 0.01em;
    line-height: 1;
}

.brand-mark {
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(242, 194, 123, 0.55));
}

/* Mobile toggle */
.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(242, 194, 123, 0.55);
    border-radius: 14px;
    background: var(--navy-800);
    cursor: pointer;
}

.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--cream-100);
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer (mobile/tablet) */
.site-nav {
    position: fixed;
    top: var(--header-bottom);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 99;
    background: var(--navy-950);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.5rem var(--gutter) 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
}

.site-nav.is-open {
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.35s var(--ease), visibility 0s;
}

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

.site-nav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 0.25rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--cream-100);
    text-decoration: none;
    border-bottom: 1px solid rgba(242, 194, 123, 0.2);
}

.site-nav__link:hover { color: var(--peach-300); }

.site-nav__cta { margin-top: 1.25rem; }
.site-nav__cta .btn { width: 100%; }

@media (min-width: 1024px) {
    .site-header__inner { min-height: 78px; }

    .menu-toggle { display: none; }

    .site-brand__text { font-size: 2.1rem; }

    .site-nav {
        position: static;
        visibility: visible;
        transform: none;
        transition: none;
        background: transparent;
        overflow: visible;
        padding: 0;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
        flex: 1;
        min-width: 0;
    }

    .site-nav__list {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .site-nav__link {
        min-height: 44px;
        padding: 0.4rem 0.9rem;
        font-size: 1.08rem;
        border-bottom: 0;
        border-radius: var(--r-pill);
        color: var(--text-muted);
        transition: color 0.2s ease, background-color 0.2s ease;
    }

    .site-nav__link:hover {
        color: var(--cream-100);
        background: rgba(63, 184, 178, 0.16);
    }

    .site-nav__cta { margin: 0 0 0 0.5rem; }
    .site-nav__cta .btn { width: auto; }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.8rem 1.6rem;
    border-radius: var(--r-pill);
    border: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s ease;
}

.btn__icon {
    display: inline-flex;
    line-height: 0;
    transition: transform 0.25s var(--ease);
}

.btn:hover .btn__icon--right { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--grad-cta);
    color: var(--text-on-peach);
    box-shadow: var(--glow-cta);
}

.btn--primary:hover {
    color: var(--text-on-peach);
    box-shadow: 0 0 34px rgba(255, 192, 138, 0.75), 0 8px 22px rgba(244, 164, 90, 0.45);
}

.btn--primary::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
    transform: translateX(-130%);
    animation: btn-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btn-shimmer {
    0%, 72% { transform: translateX(-130%); }
    100% { transform: translateX(130%); }
}

.btn--ghost {
    background: var(--navy-900);
    color: var(--cream-100);
    box-shadow: var(--glow-gold);
}

.btn--ghost:hover { color: var(--cream-100); box-shadow: 0 0 0 1px var(--peach-300), 0 0 26px rgba(242, 194, 123, 0.45); }

.btn--sm {
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    font-size: 1.02rem;
}

.btn--lg {
    min-height: 58px;
    padding: 1rem 2rem;
    font-size: 1.3rem;
}

.btn--block { width: 100%; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    font-weight: 600;
    color: var(--peach-300);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ============================================
   TAGS / PILLS
   ============================================ */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--r-pill);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    background: var(--navy-900);
    color: var(--cream-100);
    border: 1px solid var(--gold-400);
}

.tag--teal { border-color: var(--teal-500); color: var(--teal-300); }
.tag--rose { border-color: var(--rose-500); color: var(--rose-300); }
.tag--peach { background: var(--peach-300); color: var(--navy-950); border-color: var(--peach-300); }

/* ============================================
   SECTIONS & BENTO
   ============================================ */
.section {
    position: relative;
    padding-block: var(--space-section);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal-300);
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.08rem;
    color: var(--text-muted);
}

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

.small-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.bento {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: start;
}

.panel {
    position: relative;
    background: var(--surface-panel);
    border-radius: var(--r-lg);
    box-shadow: var(--glow-gold);
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.panel--teal-surface { background: var(--surface-teal); }
.panel--teal { box-shadow: var(--glow-teal); }
.panel--rose { box-shadow: var(--glow-rose); }

.panel--blob-bl { border-radius: var(--r-lg) var(--r-lg) var(--r-lg) clamp(56px, 12vw, 140px); }
.panel--blob-br { border-radius: var(--r-lg) var(--r-lg) clamp(56px, 12vw, 140px) var(--r-lg); }
.panel--blob-tr { border-radius: var(--r-lg) clamp(56px, 12vw, 140px) var(--r-lg) var(--r-lg); }
.panel--blob-tl { border-radius: clamp(56px, 12vw, 140px) var(--r-lg) var(--r-lg) var(--r-lg); }

@media (min-width: 768px) {
    .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .bento > * { grid-column: span 12; }
    .bento > .span-4 { grid-column: span 4; }
    .bento > .span-5 { grid-column: span 5; }
    .bento > .span-6 { grid-column: span 6; }
    .bento > .span-7 { grid-column: span 7; }
    .bento > .span-8 { grid-column: span 8; }
}

/* Bento card (macro) */
.bento-card {
    position: relative;
    background: var(--surface-panel);
    border-radius: var(--r-md);
    padding: clamp(1.25rem, 3.5vw, 1.85rem);
    box-shadow: var(--glow-teal);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.bento-card--rose { box-shadow: var(--glow-rose); }
.bento-card--gold { box-shadow: var(--glow-gold); }

.bento-card:hover { transform: translateY(-4px); }
.bento-card--teal:hover { box-shadow: 0 0 0 1px var(--teal-300), 0 0 34px rgba(63, 184, 178, 0.5); }
.bento-card--rose:hover { box-shadow: 0 0 0 1px var(--rose-300), 0 0 34px rgba(224, 102, 138, 0.5); }
.bento-card--gold:hover { box-shadow: 0 0 0 1px var(--peach-300), 0 0 34px rgba(242, 194, 123, 0.5); }

.bento-card__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.bento-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--gold-400);
    border: 1px solid rgba(242, 194, 123, 0.6);
    background: var(--navy-800);
    box-shadow: 0 0 14px rgba(242, 194, 123, 0.25);
}

.bento-card__title { margin: 0; }

.bento-card__body > :last-child { margin-bottom: 0; }

.bento-card__body ul { padding-left: 1.15em; }
.bento-card__body li { margin-bottom: 0.35em; }
.bento-card__body li::marker { color: var(--gold-400); }

/* ============================================
   SIGNATURE CONTOUR LINE
   ============================================ */
.has-contour {
    position: relative;
    isolation: isolate;
}

.has-contour > :not(.contour) {
    position: relative;
    z-index: 1;
}

.contour {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.contour__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 4px rgba(242, 194, 123, 0.8));
    opacity: 0.6;
}

.contour__path {
    fill: none;
    stroke: var(--gold-400);
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
}

.contour__path--wide { display: none; }

.contour__spark {
    position: absolute;
    transform: translate(-50%, -50%);
    color: var(--peach-300);
    line-height: 0;
    filter: drop-shadow(0 0 6px rgba(255, 211, 161, 0.9));
    animation: twinkle 3.2s ease-in-out infinite;
}

.contour__spark--wide { display: none; }

@keyframes twinkle {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(0.7); }
}

@media (min-width: 1024px) {
    .contour__path--wide { display: inline; }
    .contour__path--narrow { display: none; }
    .contour__spark--wide { display: block; }
}

/* ============================================
   TABLES
   ============================================ */
.table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border-radius: var(--r-md);
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    min-width: 520px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.98rem;
}

.data-table th,
.data-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(201, 203, 234, 0.18);
}

.data-table thead th {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--cream-100);
    background: var(--navy-800);
}

.data-table tbody th {
    font-weight: 600;
    color: var(--cream-100);
}

.data-table td { color: var(--text-muted); }

.data-table tr > :first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--navy-900);
}

/* ============================================
   FAQ (native details)
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.faq-item {
    border-bottom: 1px solid rgba(242, 194, 123, 0.25);
}

.faq-item:last-child { border-bottom: 0; }

.faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding: 0.85rem 0;
    list-style: none;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--cream-100);
}

.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ""; }

.faq-item__q:hover { color: var(--peach-300); }

.faq-item__chev {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--gold-400);
    transition: transform 0.3s var(--ease);
}

.faq-item[open] .faq-item__chev { transform: rotate(180deg); }

.faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}

.faq-item[open]::details-content { block-size: auto; }

.faq-item__a {
    padding: 0 0 1.1rem;
    color: var(--text-muted);
}

.faq-item__a > :last-child { margin-bottom: 0; }

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    justify-content: center;
    padding: 1.1rem var(--gutter) calc(0.85rem + env(safe-area-inset-bottom));
    background: radial-gradient(120% 140% at 50% 120%, rgba(255, 192, 138, 0.5) 0%, rgba(58, 54, 132, 0.6) 45%, rgba(13, 15, 46, 0.96) 70%);
    border-top-left-radius: 50% 28px;
    border-top-right-radius: 50% 28px;
    box-shadow: 0 -1px 0 rgba(242, 194, 123, 0.7), 0 -10px 28px rgba(255, 192, 138, 0.25);
    visibility: hidden;
    transform: translateY(110%);
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
}

.sticky-cta.is-visible {
    visibility: visible;
    transform: translateY(0);
    transition: transform 0.35s var(--ease), visibility 0s;
}

.sticky-cta__btn {
    width: min(100%, 340px);
}

body.has-sticky-cta .site-footer { padding-bottom: 6.5rem; }

@media (min-width: 768px) {
    .sticky-cta { display: none; }
    body.has-sticky-cta .site-footer { padding-bottom: 2.5rem; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    margin-top: var(--space-section);
    padding: 3.5rem 0 2.5rem;
    background: radial-gradient(70% 60% at 50% 115%, rgba(255, 192, 138, 0.22), transparent 70%), var(--navy-950);
    border-top: 1px solid rgba(242, 194, 123, 0.6);
    box-shadow: 0 -8px 24px rgba(242, 194, 123, 0.12);
    overflow: clip;
}

.site-footer__spark {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--peach-300);
    line-height: 0;
    filter: drop-shadow(0 0 8px rgba(255, 211, 161, 0.95));
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.site-footer__about,
.site-footer__legal p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.site-footer__legal p:first-child { margin-top: 0; }

.site-footer__nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.25rem;
}

.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--cream-100);
    text-decoration: none;
    font-weight: 500;
}

.site-footer__nav a:hover { color: var(--peach-300); text-decoration: underline; }

@media (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: start;
    }
}

/* ============================================
   HOME: HERO
   ============================================ */
.hero {
    position: relative;
    isolation: isolate;
    padding-bottom: 1rem;
}

.hero__bg {
    position: relative;
    height: clamp(260px, 72vw, 520px);
    background-color: var(--navy-900);
    background-image: url("/assets/d3e6c795fa26f68aeeed148a7a2d20ac.webp");
    background-size: cover;
    background-position: 22% 40%;
    background-repeat: no-repeat;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 35%;
    background: linear-gradient(180deg, transparent, rgba(13, 15, 46, 0.75));
}

.hero__sheet {
    position: relative;
    z-index: 1;
    margin: -40px 0.75rem 0;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    background: var(--surface-panel-solid);
    border-radius: var(--r-lg);
    box-shadow: var(--glow-gold);
}

.hero__content { max-width: 600px; }

.hero__lead {
    font-size: 1.08rem;
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.hero__micro {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--teal-300);
}

.ed-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ed-badge__medal {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    color: var(--peach-300);
    background:
        radial-gradient(circle, var(--navy-800) 56%, transparent 58%),
        conic-gradient(from 210deg, #ffe0b5, #f4a45a, #d98a6c, #ffd3a1, #ffe0b5);
    box-shadow: 0 0 18px rgba(255, 192, 138, 0.45);
    animation: badge-pulse 2.6s ease-in-out 3;
    margin-bottom: 12px;
}

.ed-badge__medal::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -14px;
    width: 26px;
    height: 20px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #ffc08a, #d98a6c);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
    z-index: -1;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(255, 192, 138, 0.45); }
    50% { box-shadow: 0 0 34px rgba(255, 192, 138, 0.85); }
}

.ed-badge__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--cream-100);
}

.ed-badge__meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.rating-summary__label {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.rating-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    line-height: 1.25;
    background: var(--navy-800);
    color: var(--text-muted);
    border: 1px solid var(--teal-500);
}

.rating-chip strong { margin-right: 0.25rem; }
.rating-chip .icon { flex-shrink: 0; color: var(--teal-300); }
.rating-chip--check { border-color: var(--gold-400); }
.rating-chip--check .icon { color: var(--peach-300); }

@media (min-width: 1024px) {
    .hero {
        display: flex;
        justify-content: flex-end;
        min-height: clamp(620px, 80vh, 780px);
        padding: 0;
    }

    .hero__bg {
        position: absolute;
        inset: 0;
        height: auto;
        z-index: -1;
        background-position: 25% center;
    }

    .hero__bg::after { display: none; }

    .hero__sheet {
        display: flex;
        align-items: center;
        width: 52%;
        margin: 0;
        padding: 3.5rem max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 4rem clamp(4rem, 7vw, 7rem);
        background: rgba(21, 23, 63, 0.95);
        border-radius: 140px 0 0 300px;
    }
}

/* ============================================
   HOME: BENTO FLOW
   ============================================ */
.review-flow {
    padding-top: var(--space-section);
}

.home-bento { align-items: start; }

.bento-col {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

@media (min-width: 768px) {
    .home-bento > .col-5 { grid-column: span 5; }
    .home-bento > .col-7 { grid-column: span 7; }
    .home-bento > .col-6 { grid-column: span 6; }
    .home-bento > .verdict,
    .home-bento > .swipe,
    .home-bento > .pros-cons,
    .home-bento > .compare { grid-column: span 12; }
}

@media (min-width: 1024px) {
    .home-bento > .verdict { grid-column: span 5; }
    .home-bento > .swipe { grid-column: span 7; }
    .home-bento > .pros-cons,
    .home-bento > .compare { grid-column: span 6; }
}

.panel--grid {
    background-color: var(--surface-panel-solid);
    background-image:
        linear-gradient(rgba(143, 227, 220, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 227, 220, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Verdict */
.verdict__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.verdict__head h2 { margin-bottom: 0.25rem; }

.compass {
    flex-shrink: 0;
    width: clamp(80px, 20vw, 110px);
    filter: drop-shadow(0 0 10px rgba(255, 192, 138, 0.45));
}

.compass__needle {
    transform-box: view-box;
    transform-origin: 60px 60px;
    transform: rotate(25deg);
}

.verdict.is-visible .compass__needle { animation: needle-spin 2.4s var(--ease) 1 both; }

@keyframes needle-spin {
    from { transform: rotate(-200deg); }
    to { transform: rotate(25deg); }
}

.verdict__tag {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--teal-300);
}

.verdict-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: grid;
    gap: 0.6rem;
}

.verdict-list li { color: var(--text-muted); }

.verdict-list__key {
    display: inline-block;
    margin-right: 0.4rem;
    padding: 0.1rem 0.6rem;
    border-radius: var(--r-pill);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--navy-900);
}

.verdict-list__key--good { color: var(--teal-300); border: 1px solid var(--teal-500); }
.verdict-list__key--check { color: var(--peach-300); border: 1px solid var(--gold-400); }
.verdict-list__key--skip { color: var(--rose-300); border: 1px solid var(--rose-500); }

/* Swipe deck */
.swipe__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.swipe__head h2 { margin: 0; }

.swipe > p { color: var(--text-muted); }

.deck__stage {
    position: relative;
    height: 450px;
    margin-top: 1rem;
}

.deck__card {
    --tx: 0%;
    --sc: 0.7;
    position: absolute;
    top: 6px;
    left: 50%;
    z-index: 1;
    width: min(250px, 78%);
    padding: 1rem 1rem 1.1rem;
    border-radius: var(--r-md);
    background: var(--navy-900);
    border: 1px solid rgba(63, 184, 178, 0.7);
    box-shadow: 0 0 14px rgba(63, 184, 178, 0.2);
    text-align: center;
    visibility: hidden;
    touch-action: pan-y;
    user-select: none;
    transform: translateX(calc(-50% + var(--tx) + var(--drag-x, 0px))) scale(var(--sc)) rotate(var(--drag-rot, 0deg));
    transition: transform 0.45s var(--ease), box-shadow 0.3s ease, opacity 0.3s ease, visibility 0s;
}

.deck__card[data-pos="0"] {
    --sc: 1;
    z-index: 3;
    visibility: visible;
    cursor: grab;
    border-color: var(--peach-300);
    box-shadow: 0 0 0 1px rgba(255, 211, 161, 0.6), 0 0 30px rgba(255, 192, 138, 0.45);
}

.deck__card[data-pos="-1"],
.deck__card[data-pos="1"] {
    --sc: 0.86;
    z-index: 2;
    visibility: visible;
}

.deck__card[data-pos="-1"] { --tx: -32%; }
.deck__card[data-pos="1"] { --tx: 32%; }

.deck__card.is-dragging { transition: none; cursor: grabbing; }
.deck__card.is-flying { opacity: 0; }

@media (min-width: 768px) {
    .deck__card { width: 230px; }
    .deck__card[data-pos="-1"] { --tx: -62%; }
    .deck__card[data-pos="1"] { --tx: 62%; }
}

.deck__portrait {
    position: relative;
    width: 72%;
    margin: 0 auto 0.6rem;
    aspect-ratio: 1;
}

.deck__star-outline {
    position: absolute;
    inset: -7%;
    width: 114%;
    height: 114%;
    fill: none;
    stroke: var(--gold-400);
    stroke-width: 1.6;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(242, 194, 123, 0.9));
}

.deck__star {
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 2%, 61% 36%, 97% 36%, 68% 57%, 79% 92%, 50% 71%, 21% 92%, 32% 57%, 3% 36%, 39% 36%);
    background: var(--navy-800);
}

.deck__star img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    pointer-events: none;
}

.deck__label {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cream-100);
}

.deck__chips {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.deck__chips li {
    padding: 0.15rem 0.6rem;
    border-radius: var(--r-pill);
    font-size: 0.78rem;
    background: var(--navy-800);
    color: var(--teal-300);
    border: 1px solid var(--teal-500);
}

.deck__line {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--text-muted);
}

.deck__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.deck__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--rose-500);
    background: var(--navy-800);
    color: var(--rose-300);
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.deck__btn--like {
    border: 0;
    background: var(--grad-cta);
    color: #c2416a;
    box-shadow: var(--glow-cta);
}

.deck__btn:hover { transform: scale(1.1); }
.deck__btn--like:hover { color: #c2416a; }

.deck__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.deck__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold-400);
    background: var(--navy-800);
    color: var(--cream-100);
    cursor: pointer;
}

.deck__arrow:hover { box-shadow: 0 0 16px rgba(242, 194, 123, 0.5); }

.deck__dots { display: flex; }

.deck__dot {
    position: relative;
    width: 28px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.deck__dot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    border-radius: var(--r-pill);
    background: var(--indigo-600);
    transition: width 0.3s var(--ease), background-color 0.3s ease;
}

.deck__dot[aria-current="true"]::before {
    width: 20px;
    background: var(--peach-400);
}

/* Activity demo */
.activity {
    display: grid;
    gap: 1rem;
    background: var(--surface-panel-solid);
}

.activity__media {
    display: flex;
    justify-content: center;
}

.activity__media img {
    width: min(220px, 60vw);
    object-fit: contain;
}

.activity__body .tag { margin-bottom: 0.75rem; }
.activity__body > p { color: var(--text-muted); }

.activity__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.stat__value {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--peach-300);
}

.stat__value span { font-size: 0.5em; margin-left: 0.2rem; }

.stat__label {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    color: var(--teal-300);
}

@media (min-width: 1024px) {
    .activity { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
    .activity__media img { width: 100%; }
}

/* Free vs paid table */
.free-paid > p { color: var(--text-muted); }

.fp-table { border-spacing: 6px 0; }

.fp-table td.fp-free,
.fp-table th.fp-free {
    background: rgba(63, 184, 178, 0.1);
    border-left: 1px solid var(--teal-500);
    border-right: 1px solid var(--teal-500);
}

.fp-table td.fp-paid,
.fp-table th.fp-paid {
    background: rgba(224, 102, 138, 0.1);
    border-left: 1px solid var(--copper-400);
    border-right: 1px solid var(--copper-400);
}

.fp-table thead th.fp-free {
    text-align: center;
    color: var(--teal-300);
    background: linear-gradient(180deg, rgba(63, 184, 178, 0.35), rgba(63, 184, 178, 0.1));
    border-top: 1px solid var(--teal-500);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 16px rgba(63, 184, 178, 0.3);
}

.fp-table thead th.fp-paid {
    text-align: center;
    color: var(--cream-100);
    background: linear-gradient(180deg, rgba(224, 102, 138, 0.6), rgba(217, 138, 108, 0.2));
    border-top: 1px solid var(--copper-400);
    border-radius: 18px 18px 0 0;
}

.fp-table tbody tr:last-child td.fp-free { border-bottom-color: var(--teal-500); border-radius: 0 0 14px 14px; }
.fp-table tbody tr:last-child td.fp-paid { border-bottom-color: var(--copper-400); border-radius: 0 0 14px 14px; }

.fp-table td.fp-free,
.fp-table td.fp-paid { text-align: center; }

.mark {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--cream-100);
    font-size: 0.92rem;
}

.mark--muted { color: var(--text-muted); font-style: italic; }

.fp-note {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    margin: 1rem 0 1.25rem;
}

.fp-note .icon { flex-shrink: 0; margin-top: 0.2rem; color: var(--peach-300); }

/* Pros & cons */
.pc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 560px) {
    .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pc-tile { text-align: left; }
.pc-tile h3 { text-align: center; margin-bottom: 0.4rem; }

.pc-tile__art {
    display: block;
    margin: 0 auto 0.75rem;
    filter: drop-shadow(0 0 8px rgba(143, 227, 220, 0.6));
}

.pc-tile ul { padding-left: 1.15em; margin: 0; }
.pc-tile li { margin-bottom: 0.4em; color: var(--text-muted); font-size: 0.95rem; }
.pc-tile li::marker { color: var(--gold-400); }

/* Compare */
.compare > p { color: var(--text-muted); }

.infog {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.25rem 0 1.5rem;
}

.infog__node {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.infog__node p { margin: 0; line-height: 1.3; }
.infog__node strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.infog__node span { font-size: 0.85rem; color: var(--text-muted); }

.app-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s var(--ease);
}

.infog__node:hover .app-ico { transform: translateY(-3px) rotate(-4deg); }

.app-ico--violet { background: linear-gradient(140deg, #e0668a, #7a4fd1); }
.app-ico--white { background: #fff8f0; }
.app-ico--navy { background: linear-gradient(140deg, #282c68, #15173f); border: 1px solid rgba(242, 194, 123, 0.5); }

.infog__lines { display: none; }

@media (min-width: 768px) {
    .infog {
        grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
        row-gap: 1.75rem;
    }
    .infog__node--a { grid-column: 1; grid-row: 1; }
    .infog__node--b { grid-column: 1; grid-row: 2; }
    .infog__node--c { grid-column: 3; grid-row: 1; }
    .infog__node--d { grid-column: 3; grid-row: 2; }

    .infog__lines {
        display: block;
        grid-column: 2;
        grid-row: 1 / span 2;
        width: 100%;
        height: 100%;
        overflow: visible;
    }
}

.infog__line {
    fill: none;
    stroke: var(--gold-400);
    stroke-width: 1.4;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 3px rgba(242, 194, 123, 0.8));
}

.infog__dot {
    fill: none;
    stroke: var(--peach-300);
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 0 100;
    vector-effect: non-scaling-stroke;
}

.compare.is-visible .infog__dot { animation: dot-travel 3s linear 2 both; }
.compare.is-visible .infog__dot--late { animation-delay: 0.8s; }

@keyframes dot-travel {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -100; }
}

.compare-table { min-width: 560px; margin-bottom: 0.5rem; }
.compare .table-wrap { margin-bottom: 1rem; }

/* Safety (frameless) */
.safety { padding: 0.5rem 0; }

.safety__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.safety__art {
    position: relative;
    justify-self: center;
    filter: drop-shadow(0 0 14px rgba(63, 184, 178, 0.45));
}

.twinkle {
    position: absolute;
    color: var(--peach-300);
    line-height: 0;
    filter: drop-shadow(0 0 6px rgba(255, 211, 161, 0.9));
    animation: twinkle 3s ease-in-out infinite;
}

.twinkle:nth-of-type(2) { animation-delay: 1s; }
.twinkle:nth-of-type(3) { animation-delay: 2s; }

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

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

@media (min-width: 560px) {
    .safety__grid { grid-template-columns: auto minmax(0, 1fr); }
    .safety__lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.icon-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--text-muted);
}

.icon-list .icon { flex-shrink: 0; margin-top: 0.15rem; color: var(--gold-400); }

/* Steps */
.steps-tile > p { color: var(--text-muted); }

.steps {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.5rem;
    display: grid;
    gap: 2.5rem;
}

.step {
    position: relative;
    text-align: center;
}

.step h3 { margin: 0.75rem 0 0.3rem; font-size: 1.15rem; }
.step p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

.step__medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    color: var(--cream-100);
    border: 2px solid var(--gold-400);
    box-shadow: 0 0 20px rgba(242, 194, 123, 0.35);
}

.step__medal--gold { background: radial-gradient(circle, #3a3684, #15173f); color: var(--peach-300); }
.step__medal--violet { background: radial-gradient(circle at 35% 30%, #7a4fd1, #282c68); }
.step__medal--magenta { background: radial-gradient(circle at 35% 30%, #e0668a, #3a3684); }

.step__arrow {
    position: absolute;
    left: 50%;
    bottom: -2.2rem;
    transform: translateX(-50%) rotate(90deg);
    fill: none;
    stroke: var(--peach-300);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
    transition: stroke-dashoffset 1s var(--ease) 0.4s;
}

.steps-tile.is-visible .step__arrow,
html:not(.js) .step__arrow { stroke-dashoffset: 0; }

@media (min-width: 560px) {
    .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
    .step__arrow {
        left: auto;
        right: -1.6rem;
        top: 34px;
        bottom: auto;
        width: 36px;
        transform: none;
    }
}

.steps-tile__cta { width: 100%; }

@media (min-width: 560px) {
    .steps-tile__cta { width: auto; }
}

.steps-tile__note {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    margin: 1rem 0 0;
}

.steps-tile__note .icon { flex-shrink: 0; margin-top: 0.2rem; color: var(--teal-300); }

/* Disclosure (plain text on backdrop) */
.disclosure {
    position: relative;
    padding-top: 1rem;
}

.disclosure::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--grad-gold-line);
}

.disclosure h2 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.disclosure p { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* ============================================
   LEGAL PAGE
   ============================================ */
.legal-hero { padding-block: clamp(1.5rem, 5vw, 3rem) 0; }

.legal-hero__blob {
    position: relative;
    max-width: 820px;
    padding: clamp(1.75rem, 5vw, 3rem);
    background: var(--surface-panel-solid);
    border-radius: var(--r-lg) var(--r-lg) clamp(70px, 14vw, 160px) var(--r-lg);
}

.legal-hero__outline {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    filter: drop-shadow(0 0 5px rgba(242, 194, 123, 0.7));
}

.legal-hero__spark {
    position: absolute;
    color: var(--peach-300);
    line-height: 0;
    filter: drop-shadow(0 0 6px rgba(255, 211, 161, 0.9));
    animation: twinkle 3s ease-in-out infinite;
}

.legal-hero__spark--tl { left: 10px; top: 10px; }
.legal-hero__spark--tr { right: 10px; top: 10px; }
.legal-hero__spark--br { right: 24px; bottom: 24px; }

.legal-hero__meta { margin: 1rem 0 0.5rem; }

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 2rem 0;
    align-items: start;
}

.legal-toc {
    border-radius: var(--r-md);
    background: var(--surface-panel);
    box-shadow: var(--glow-teal);
    padding: 0.25rem 1.25rem;
}

.legal-toc__details { height: auto; }

.legal-toc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    cursor: pointer;
    list-style: none;
    color: var(--gold-400);
}

.legal-toc__summary::-webkit-details-marker { display: none; }
.legal-toc__details[open] .faq-item__chev { transform: rotate(180deg); }

.legal-toc__title { margin: 0; font-size: 1.3rem; }

.legal-toc__group {
    margin: 0.5rem 0 0.25rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--teal-300);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
}

.legal-toc__group--rose { color: var(--rose-300); margin-top: 1rem; }

.legal-toc__list {
    list-style: none;
    margin: 0 0 0.5rem;
    padding: 0 0 0 1rem;
    position: relative;
    border-left: 1px dashed var(--teal-500);
}

.legal-toc__list--rose { border-left-color: var(--rose-500); }

.legal-toc__list a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0.2rem 0.75rem;
    border-radius: var(--r-pill);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.legal-toc__list a::before {
    content: "";
    position: absolute;
    left: -1.28rem;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 6px rgba(242, 194, 123, 0.9);
}

.legal-toc__list a:hover { color: var(--cream-100); }

.legal-toc__list a.is-active {
    background: var(--peach-300);
    color: var(--navy-950);
    font-weight: 600;
}

.legal-main { display: grid; gap: 2rem; min-width: 0; }

.legal-intro { color: var(--text-muted); max-width: 70ch; }

.legal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.legal-card {
    position: relative;
    padding: clamp(1.25rem, 3.5vw, 1.75rem);
    border-radius: var(--r-md);
    background: var(--surface-panel-solid);
    box-shadow: var(--glow-teal);
}

.legal-card--rose { box-shadow: 0 0 0 1px rgba(217, 138, 108, 0.9), 0 0 22px rgba(224, 102, 138, 0.3); }

.legal-card h3 { margin-bottom: 0.5rem; }
.legal-card p, .legal-card li { color: var(--text-muted); font-size: 0.97rem; }
.legal-card li::marker { color: var(--gold-400); }
.legal-card ul { margin-bottom: 0.75rem; }
.legal-card > :last-child { margin-bottom: 0; }

.legal-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 0.6rem;
    border-radius: 50%;
    color: var(--gold-400);
    border: 1px solid rgba(242, 194, 123, 0.6);
    background: var(--navy-800);
}

.legal-divider { display: block; width: min(300px, 80%); height: auto; margin: 0 auto; }

.legal-cta {
    text-align: center;
    background:
        radial-gradient(60% 70% at 50% 100%, rgba(255, 192, 138, 0.3), transparent 70%),
        var(--surface-panel-solid);
}

.legal-cta p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; }

.legal-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

@media (min-width: 768px) {
    .legal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
}

@media (min-width: 1024px) {
    .legal-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 2rem; }
    .legal-toc { position: sticky; top: calc(var(--header-bottom) + 16px); max-height: calc(100vh - var(--header-bottom) - 32px); overflow-y: auto; }
}

/* ============================================
   REVEAL ANIMATION (one-way, JS-gated)
   ============================================ */
html.js [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(26px);
}

html.js [data-reveal] {
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .btn--primary::after { display: none; }

    html.js [data-reveal]:not(.is-visible) {
        opacity: 1;
        transform: none;
    }

    .faq-item::details-content { transition: none; }

    .ed-badge__medal,
    .twinkle,
    .verdict.is-visible .compass__needle,
    .compare.is-visible .infog__dot { animation: none; }

    .step__arrow { stroke-dashoffset: 0; }
}