/*
 * HIBBLY REVIEW - design system
 * Celestial coral-to-indigo premium UI. Canonical tokens live here.
 */

:root {
    /* Palette */
    --coral: #ff8a75;
    --coral-deep: #f2705c;
    --coral-soft: #ffb49c;
    --peach: #ffd9c2;
    --cream: #fff3e6;
    --cream-dim: #f6e3d4;
    --indigo: #2b3563;
    --indigo-deep: #1b2444;
    --indigo-mid: #3a4272;
    --violet: #574a7c;

    /* Surfaces */
    --surface-glass: rgba(37, 46, 88, 0.55);
    --surface-glass-strong: rgba(27, 36, 68, 0.78);
    --surface-line: rgba(255, 233, 214, 0.22);
    --surface-line-strong: rgba(255, 168, 143, 0.55);

    /* Text */
    --text: #fff4ea;
    --text-muted: #d3d8ee;
    --text-dark: #22284a;

    /* Type */
    --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Rhythm */
    --container: 1200px;
    --gutter: 20px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 88px;

    /* Effects */
    --shadow-soft: 0 18px 44px rgba(14, 20, 45, 0.35);
    --shadow-lift: 0 26px 60px rgba(14, 20, 45, 0.45);
    --glow-coral: 0 0 44px rgba(255, 138, 117, 0.45);

    --header-bottom: 66px;
}

/* ============================================
   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;
    scroll-padding-top: 84px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--indigo);
    background-image:
        radial-gradient(1200px 640px at 50% -8%, rgba(255, 138, 117, 0.95), rgba(255, 138, 117, 0) 70%),
        radial-gradient(900px 620px at 8% 42%, rgba(220, 124, 140, 0.35), rgba(220, 124, 140, 0) 72%),
        radial-gradient(1000px 700px at 96% 68%, rgba(120, 104, 168, 0.4), rgba(120, 104, 168, 0) 70%),
        linear-gradient(180deg, #4a4a79 0%, #3b4270 28%, #4b4576 52%, #333c6b 74%, var(--indigo-deep) 100%);
    background-attachment: scroll;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 var(--space-4);
    color: var(--cream);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); }

p { margin: 0 0 var(--space-4); }

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

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

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--cream);
    color: var(--text-dark);
    padding: 12px 18px;
    border-radius: 0 0 10px 0;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}

/* ============================================
   LAYOUT HELPERS
   ============================================ */

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

.section {
    position: relative;
    padding-block: var(--space-8);
}

.section--tight { padding-block: var(--space-7); }

.section-head {
    max-width: 760px;
    margin: 0 auto var(--space-6);
}
.section-head--center { text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
    margin: 0 0 var(--space-2);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--peach);
}

.section-title { margin-bottom: var(--space-3); }

.section-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0;
}

.prose p,
.prose li { color: var(--text-muted); }
.prose h3 { margin-top: var(--space-6); }

/* Glass surface primitive */
.panel {
    position: relative;
    background: var(--surface-glass);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: var(--space-5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.panel--coral { border-color: var(--surface-line-strong); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--surface-line);
    background: var(--surface-glass-strong);
    font-weight: 600;
    color: var(--cream);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(27, 36, 68, 0.88);
    color: var(--cream);
    border: 1px solid var(--surface-line-strong);
}
.chip svg { width: 14px; height: 14px; fill: var(--coral-soft); }

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #55e08b;
    display: inline-block;
    margin-right: 8px;
}
.dot--live {
    box-shadow: 0 0 0 0 rgba(85, 224, 139, 0.65);
    animation: dotPulse 2s ease-out infinite;
}
@keyframes dotPulse {
    70% { box-shadow: 0 0 0 10px rgba(85, 224, 139, 0); }
    100% { box-shadow: 0 0 0 0 rgba(85, 224, 139, 0); }
}

/* Signature constellation connector */
.constellation-arc {
    display: block;
    width: 100%;
    height: 90px;
    filter: drop-shadow(0 0 12px rgba(255, 196, 168, 0.55));
}
.constellation-arc--flip { transform: scaleX(-1); }

/* ============================================
   BUTTONS (cloaked CTA controls)
   ============================================ */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn__label { position: relative; z-index: 1; }

.btn--primary {
    background: linear-gradient(100deg, var(--coral-deep) 0%, var(--coral) 45%, var(--peach) 100%);
    color: #2a1b23;
    box-shadow: 0 14px 30px rgba(242, 112, 92, 0.38);
}
.btn--primary::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(255, 180, 156, 0.75);
    animation: pulseRing 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes pulseRing {
    0% { transform: scale(0.98); opacity: 0.8; }
    70% { transform: scale(1.1); opacity: 0; }
    100% { transform: scale(1.1); opacity: 0; }
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(242, 112, 92, 0.5); }

.btn--ghost {
    background: rgba(255, 243, 230, 0.06);
    border-color: var(--surface-line-strong);
    color: var(--cream);
}
.btn--ghost:hover { background: rgba(255, 243, 230, 0.14); }

.btn--lg {
    min-height: 58px;
    padding: 17px 40px;
    font-size: 1.1rem;
}

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

.cta-wrap { margin-top: var(--space-5); text-align: center; }
.cta-wrap--block { width: 100%; }
.cta-note {
    margin: var(--space-3) 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 138, 117, 0.34), rgba(43, 53, 99, 0.24));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 233, 214, 0.16);
    pointer-events: none;
}

.site-header__inner {
    position: relative;
    max-width: var(--container);
    margin-inline: auto;
    padding: 10px var(--gutter);
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--cream);
    min-height: 44px;
}
.site-brand__mark { width: 36px; height: 36px; flex: none; }
.site-brand__text {
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions .header-cta { display: none; }

.nav-toggle {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid var(--surface-line);
    background: rgba(27, 36, 68, 0.55);
    cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--cream);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.primary-nav {
    display: none;
}
.primary-nav.is-open {
    display: block;
    position: fixed;
    top: var(--header-bottom);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    overflow-y: auto;
    background: var(--indigo-deep);
    padding: var(--space-5) var(--gutter) var(--space-7);
    z-index: 99;
    animation: drawerIn 0.22s ease-out;
}
@keyframes drawerIn {
    from { transform: translateY(-10px); }
    to { transform: translateY(0); }
}

.primary-nav__list {
    list-style: none;
    margin: 0 0 var(--space-5);
    padding: 0;
}
.primary-nav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 4px 6px;
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 233, 214, 0.12);
}
.primary-nav__link:hover { color: var(--peach); }

body.nav-open { overflow: hidden; }

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

.site-footer {
    background: linear-gradient(180deg, rgba(20, 27, 54, 0.85), #141b36);
    border-top: 1px solid rgba(255, 233, 214, 0.14);
    margin-top: var(--space-8);
}
.site-footer__inner {
    max-width: var(--container);
    margin-inline: auto;
    padding: var(--space-7) var(--gutter) var(--space-6);
}
.footer-grid {
    display: grid;
    gap: var(--space-6);
}
.footer-brand__row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-brand__text {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--coral-soft);
}
.footer-brand__mark { width: 32px; height: 32px; }
.footer-brand__copy {
    margin-top: var(--space-3);
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 42ch;
}
.footer-col__title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--peach);
    margin: 0 0 var(--space-3);
}
.footer-col__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-col__list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-col__list a:hover { color: var(--cream); text-decoration: underline; }

.footer-bottom {
    margin-top: var(--space-6);
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255, 233, 214, 0.14);
}
.footer-disclosure {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}
.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================
   RATINGS
   ============================================ */

.stars {
    display: inline-flex;
    gap: 3px;
}
.star {
    width: 18px;
    height: 18px;
    fill: rgba(255, 243, 230, 0.28);
}
.star--on { fill: #ffca8a; }

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

.profile-grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: minmax(0, 1fr);
}

.profile-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-glass-strong);
    border: 1px solid var(--surface-line-strong);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift), var(--glow-coral);
    border-color: var(--coral);
}
.profile-card__media {
    position: relative;
    aspect-ratio: 4 / 5;
}
.profile-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
}
.profile-card__media .chip {
    position: absolute;
    left: 12px;
    bottom: 12px;
}
.profile-card__body {
    padding: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
}
.profile-card__meta {
    margin: 0;
    font-weight: 700;
    color: var(--cream);
}
.profile-card__status {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
}

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

.steps-grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: minmax(0, 1fr);
    position: relative;
}
.step-card {
    text-align: center;
    padding: var(--space-5) var(--space-4);
}
.step-card__orb {
    width: 92px;
    height: 92px;
    margin: 0 auto var(--space-4);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 32% 28%, rgba(255, 220, 200, 0.9), rgba(255, 138, 117, 0.75) 45%, rgba(87, 74, 124, 0.9) 100%);
    box-shadow: 0 0 40px rgba(255, 138, 117, 0.45);
}
.step-card__orb svg { width: 42px; height: 42px; fill: #fff6ec; }
.step-card__number {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--peach);
}
.step-card__title { margin-bottom: var(--space-2); }
.step-card__text { color: var(--text-muted); margin: 0; }

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonial-row {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: minmax(0, 1fr);
}
.testimonial-card {
    background: var(--surface-glass);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    text-align: center;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.testimonial-card__avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-3);
    border: 2px solid var(--coral-soft);
}
.testimonial-card__label {
    margin: var(--space-2) 0 var(--space-3);
    font-weight: 700;
    color: var(--cream);
    font-size: 0.92rem;
}
.testimonial-card__quote {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.97rem;
}
.testimonial-card--featured {
    border-color: var(--coral);
    box-shadow: var(--shadow-lift), 0 0 48px rgba(255, 138, 117, 0.4);
}

/* ============================================
   TABLES
   ============================================ */

.table-panel {
    border: 1px solid var(--surface-line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    padding: var(--space-3);
    box-shadow: var(--shadow-soft);
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.data-table th,
.data-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 233, 214, 0.14);
    min-height: 48px;
}
.data-table thead th {
    font-family: var(--font-body);
    color: var(--peach);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.data-table tbody tr:nth-child(even) { background: rgba(255, 243, 230, 0.05); }
.data-table tbody th { color: var(--cream); font-weight: 700; }
.data-table td { color: var(--text-muted); }

/* ============================================
   ACCORDION (custom disclosure)
   ============================================ */

.accordion {
    display: grid;
    gap: var(--space-3);
    align-items: start;
}
.accordion__item {
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    background: var(--surface-glass);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.accordion__trigger {
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 14px 18px;
    background: none;
    border: 0;
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.accordion__icon {
    flex: none;
    width: 26px;
    height: 26px;
    fill: var(--coral-soft);
    transition: transform 0.3s ease;
}
.accordion__trigger[aria-expanded="true"] { color: var(--peach); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(180deg); }
.accordion__item:has(.accordion__trigger[aria-expanded="true"]) {
    background: rgba(255, 138, 117, 0.18);
    border-color: var(--surface-line-strong);
}
.accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.accordion__panel-inner {
    padding: 0 18px 18px;
    color: var(--text-muted);
}

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

.legal-hero {
    position: relative;
    padding: var(--space-8) 0 var(--space-6);
    background: linear-gradient(100deg, rgba(255, 138, 117, 0.85), rgba(43, 53, 99, 0.85));
    border-bottom: 1px solid var(--surface-line);
}
.legal-hero__inner {
    max-width: 820px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.legal-hero__meta {
    margin: var(--space-3) 0 0;
    font-size: 0.9rem;
    color: var(--cream-dim);
}
.legal-hero .constellation-arc { height: 60px; margin-top: var(--space-4); }

.legal-layout {
    display: grid;
    gap: var(--space-6);
    align-items: start;
    padding-block: var(--space-7);
}
.legal-toc {
    background: var(--surface-glass-strong);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    padding: var(--space-4);
}
.legal-toc__title {
    margin: 0 0 var(--space-2);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--peach);
    font-weight: 700;
}
.legal-toc__list { list-style: none; margin: 0; padding: 0; }
.legal-toc__link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
}
.legal-toc__link::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--surface-line-strong);
    flex: none;
}
.legal-toc__link:hover { color: var(--cream); }
.legal-toc__link.is-active { color: var(--cream); font-weight: 600; }
.legal-toc__link.is-active::before { background: var(--coral); border-color: var(--coral); }

.legal-body { min-width: 0; }
.legal-section {
    background: rgba(255, 243, 230, 0.06);
    border-left: 3px solid var(--coral);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}
.legal-section + .legal-section { border-top: 1px solid rgba(255, 233, 214, 0.12); }
.legal-section__title {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: var(--space-3);
}
.legal-section__num { color: var(--coral-soft); }
.legal-section__body p,
.legal-section__body li {
    color: var(--text-muted);
    max-width: 70ch;
}
.legal-section__body strong { color: var(--cream); }
.legal-section__body a { color: var(--peach); }

.legal-cta {
    margin-top: var(--space-5);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}
.legal-cta a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid var(--surface-line-strong);
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
}
.legal-cta a:hover { background: rgba(255, 243, 230, 0.12); }

/* ============================================
   SCROLL REVEAL
   ============================================ */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

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

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

    .section { padding-block: var(--space-9); }

    .profile-grid,
    .steps-grid,
    .testimonial-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }

    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: var(--space-5);
    }
    .footer-disclosure { max-width: 68ch; margin-bottom: 0; }

    .legal-layout {
        grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
        max-width: var(--container);
        margin-inline: auto;
        padding-inline: var(--gutter);
    }
    .legal-toc { position: sticky; top: 92px; }

    .site-header__inner { padding-block: 12px; }

    .header-actions .header-cta {
        display: inline-flex;
        min-height: 44px;
        padding: 11px 22px;
        font-size: 0.95rem;
    }

    .nav-toggle { display: none; }

    .primary-nav {
        display: flex;
        align-items: center;
        margin-left: auto;
        position: static;
        background: none;
        padding: 0;
        overflow: visible;
    }
    .primary-nav.is-open { position: static; animation: none; background: none; padding: 0; }
    .primary-nav__list {
        display: flex;
        align-items: center;
        gap: 4px;
        margin: 0;
    }
    .primary-nav__link {
        min-height: 40px;
        padding: 8px 12px;
        border: 0;
        border-radius: 999px;
        font-size: 0.92rem;
        background: rgba(255, 243, 230, 0.1);
        transition: background 0.2s ease;
    }
    .primary-nav__link:hover { background: rgba(255, 243, 230, 0.24); color: var(--cream); }
    .primary-nav__cta { display: none; }

    .header-actions { margin-left: var(--space-4); }
}

@media (min-width: 1024px) {
    body { font-size: 17px; }

    .testimonial-row {
        align-items: center;
        gap: var(--space-4);
    }
    .testimonial-card { transform: translateY(14px); }
    .testimonial-card--featured { transform: scale(1.08) translateY(0); z-index: 2; }

    .constellation-arc { height: 130px; }
}

@media (min-width: 1280px) {
    :root { --gutter: 40px; }
}

/* ============================================
   HOME - HERO
   ============================================ */

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

.container--narrow { max-width: 860px; }

.hero {
    position: relative;
    isolation: isolate;
    margin-top: calc(-1 * var(--header-bottom));
    padding-top: calc(var(--header-bottom) + var(--space-6));
    padding-bottom: var(--space-6);
    overflow: clip;
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("/assets/08c8625b661cc4b3cf4ee09cd3e1f3aa.webp");
    background-size: cover;
    background-position: 52% 22%;
    background-repeat: no-repeat;
}
.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(36, 44, 84, 0.34) 0%, rgba(36, 44, 84, 0.12) 34%, rgba(32, 40, 76, 0.62) 100%);
}

.hero__inner {
    display: grid;
    gap: var(--space-6);
    align-items: center;
}

.hero__copy h1 { text-shadow: 0 3px 22px rgba(20, 25, 50, 0.55); }
.hero__deck {
    color: var(--cream-dim);
    font-size: 1rem;
    max-width: 58ch;
    text-shadow: 0 2px 16px rgba(20, 25, 50, 0.6);
}
.hero__deck strong { color: var(--cream); }

.hero__signals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-5);
}

.rating-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--surface-line);
    background: var(--surface-glass-strong);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.rating-badge__star { width: 34px; height: 34px; fill: #ffca8a; flex: none; }
.rating-badge__score {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.45rem;
    line-height: 1.1;
    color: var(--cream);
}
.rating-badge__score span { font-size: 0.95rem; color: var(--peach); }
.rating-badge__label {
    margin: 2px 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.verified-seal {
    display: grid;
    place-items: center;
    gap: 2px;
    width: 104px;
    height: 104px;
    padding: 8px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.15;
    color: #2a1b23;
    border-radius: 48% 52% 44% 56% / 52% 46% 54% 48%;
    background: linear-gradient(140deg, var(--peach), var(--coral-soft) 55%, var(--coral));
    box-shadow: 0 0 34px rgba(255, 180, 156, 0.55);
}
.verified-seal svg { width: 20px; height: 20px; fill: #2a1b23; }

.live-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 12px 18px;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid var(--surface-line-strong);
    background: var(--surface-glass-strong);
    color: var(--cream);
    font-size: 0.92rem;
    box-shadow: var(--shadow-soft);
}
.live-counter strong {
    font-family: var(--font-head);
    font-size: 1.25rem;
    margin-right: 4px;
}

/* ---------- Quiz card ---------- */
.quiz {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid var(--surface-line-strong);
    background: rgba(29, 37, 72, 0.82);
    box-shadow: var(--shadow-lift);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-5);
}
.quiz__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-4);
}
.quiz__mark { width: 32px; height: 32px; flex: none; }
.quiz__title {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--cream);
}
.quiz__counter {
    margin: 0 0 0 auto;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--peach);
}

.quiz__track {
    list-style: none;
    margin: 0 0 var(--space-5);
    padding: 0;
    display: grid;
    gap: 10px;
}
.quiz__track-item {
    display: grid;
    gap: 6px;
}
.quiz__track-label {
    display: block;
    padding: 9px 14px;
    border-radius: 10px;
    border: 1px solid var(--surface-line);
    background: rgba(255, 243, 230, 0.06);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}
.quiz__track-item.is-current .quiz__track-label,
.quiz__track-item.is-done .quiz__track-label { color: var(--cream); border-color: var(--surface-line-strong); }
.quiz__bar {
    display: block;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 243, 230, 0.16);
    overflow: hidden;
}
.quiz__bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--coral-deep), var(--peach));
    transition: width 0.45s ease;
}
.quiz__track-item.is-current .quiz__bar i { width: 55%; }
.quiz__track-item.is-done .quiz__bar i { width: 100%; }

.quiz__panel[hidden] { display: none; }
.quiz__question {
    margin: 0 0 var(--space-4);
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--cream);
}
.quiz__options {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.quiz__options--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz__option {
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--surface-line);
    background: rgba(255, 243, 230, 0.07);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.quiz__option:hover {
    background: rgba(255, 180, 156, 0.24);
    border-color: var(--surface-line-strong);
    transform: translateY(-2px);
}
.quiz__option.is-picked {
    background: linear-gradient(110deg, var(--coral-deep), var(--coral-soft));
    color: #2a1b23;
    border-color: transparent;
}
.quiz__back {
    margin-top: var(--space-4);
    min-height: 44px;
    padding: 8px 4px;
    background: none;
    border: 0;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.quiz__back:hover { color: var(--cream); }

.quiz__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}
.quiz__input {
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    margin-bottom: var(--space-4);
    border-radius: 14px;
    border: 1px solid var(--surface-line-strong);
    background: rgba(18, 24, 48, 0.72);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 1.05rem;
    letter-spacing: 0.12em;
}
.quiz__input::placeholder { color: #9aa3c4; }
.quiz__error {
    margin: -8px 0 var(--space-3);
    color: #ffb0a0;
    font-size: 0.88rem;
    font-weight: 600;
}
.quiz__error[hidden] { display: none; }
.quiz__note {
    margin: var(--space-3) 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.quiz__result { text-align: center; }
.quiz__result-count {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(3rem, 12vw, 4.2rem);
    line-height: 1;
    color: var(--peach);
    text-shadow: 0 0 34px rgba(255, 180, 156, 0.55);
}
.quiz__result-text {
    margin: var(--space-2) 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cream);
}
.quiz__result-summary {
    margin: 0 0 var(--space-4);
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ============================================
   HOME - OVERVIEW
   ============================================ */

.overview-layout {
    display: grid;
    gap: var(--space-6);
    align-items: start;
}
.overview-art {
    display: block;
    width: 68%;
    max-width: 320px;
    height: auto;
    margin: 0 auto var(--space-4);
}
.overview-copy p { color: var(--text-muted); }
.overview-copy strong { color: var(--cream); }

.compare-table thead th:first-child { width: 34%; }
.compass-disc {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #fff3e6, var(--coral) 70%);
    box-shadow: 0 0 12px rgba(255, 138, 117, 0.6);
}
.compass-disc--alt { background: radial-gradient(circle at 34% 30%, #e7ecff, var(--indigo-mid) 70%); box-shadow: none; }

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.3;
}
.badge--good { background: rgba(255, 138, 117, 0.25); border: 1px solid var(--surface-line-strong); color: var(--cream); }
.badge--mid { background: rgba(255, 243, 230, 0.08); border: 1px solid var(--surface-line); color: var(--text-muted); }

.table-note {
    margin: var(--space-3) 0 0;
    padding: 0 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.section-disclaimer {
    max-width: 70ch;
    margin: 0 auto var(--space-6);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   HOME - HOW IT WORKS
   ============================================ */

.how-steps { position: relative; }
.how-steps__art { display: none; }

/* ============================================
   HOME - PROS & CONS
   ============================================ */

.proscons {
    display: grid;
    gap: var(--space-4);
    align-items: stretch;
}
.proscons__panel {
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-soft);
}
.proscons__panel--pros {
    background: linear-gradient(160deg, var(--coral) 0%, var(--coral-deep) 100%);
    color: #2c1a20;
}
.proscons__panel--pros .proscons__title { color: #fff6ec; }
.proscons__panel--cons {
    background: linear-gradient(160deg, var(--indigo-mid) 0%, var(--indigo-deep) 100%);
    border: 1px solid var(--surface-line);
}
.proscons__title { text-align: center; margin-bottom: var(--space-4); }
.proscons__list { list-style: none; margin: 0; padding: 0; }
.proscons__list li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0 8px 30px;
    font-size: 0.97rem;
    border-bottom: 1px solid rgba(255, 243, 230, 0.18);
}
.proscons__list li:last-child { border-bottom: 0; }
.proscons__panel--pros .proscons__list li { color: #fff3e6; }
.proscons__panel--cons .proscons__list li { color: var(--text-muted); }
.proscons__list li::before {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    line-height: 1;
}
.proscons__panel--pros .proscons__list li::before { content: "\2726"; color: #fff6ec; }
.proscons__panel--cons .proscons__list li::before { content: "\25BE"; color: var(--coral-soft); }

.proscons__takeaway {
    max-width: 74ch;
    margin: var(--space-5) auto 0;
    padding: var(--space-4) var(--space-5);
    border-left: 3px solid var(--coral);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: rgba(255, 243, 230, 0.07);
    color: var(--text-muted);
}

/* ============================================
   HOME - TESTIMONIALS
   ============================================ */

.testimonials { position: relative; }
.testimonials::before {
    content: "";
    position: absolute;
    inset: 12% 0 12%;
    background:
        radial-gradient(420px 300px at 50% 55%, rgba(255, 180, 156, 0.3), rgba(255, 180, 156, 0) 70%),
        radial-gradient(520px 340px at 12% 40%, rgba(255, 138, 117, 0.14), rgba(255, 138, 117, 0) 72%),
        radial-gradient(520px 340px at 88% 60%, rgba(255, 138, 117, 0.14), rgba(255, 138, 117, 0) 72%);
    pointer-events: none;
}
.testimonials__sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.testimonials__sparkles svg {
    position: absolute;
    width: 20px;
    height: 20px;
    fill: #fff1e2;
    filter: drop-shadow(0 0 8px rgba(255, 196, 168, 0.9));
}
.testimonials__sparkles svg:nth-child(1) { top: 26%; left: 8%; width: 26px; height: 26px; }
.testimonials__sparkles svg:nth-child(2) { top: 40%; right: 10%; }
.testimonials__sparkles svg:nth-child(3) { bottom: 16%; left: 22%; width: 14px; height: 14px; }
.testimonials__sparkles svg:nth-child(4) { bottom: 22%; right: 24%; width: 16px; height: 16px; }
.testimonials .container { position: relative; }

/* ============================================
   HOME - SAFETY
   ============================================ */

.safety-layout {
    display: grid;
    gap: var(--space-6);
    align-items: center;
}
.safety-art {
    position: relative;
    display: grid;
    place-items: center;
}
.safety-art::before {
    content: "";
    position: absolute;
    width: 118%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 233, 214, 0.34) 0%, rgba(255, 180, 156, 0.16) 45%, rgba(255, 180, 156, 0) 72%);
}
.safety-art img {
    position: relative;
    width: 78%;
    max-width: 360px;
    height: auto;
}
.safety-list, .safety-habits { padding-left: 1.2em; }
.safety-list li, .safety-habits li { margin-bottom: 10px; }
.safety-list strong { color: var(--cream); }

/* ============================================
   HOME - FAQ + FINAL CTA
   ============================================ */

.accordion__heading {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: inherit;
}

.final-cta {
    position: relative;
    overflow: clip;
    margin-top: var(--space-8);
    padding-block: var(--space-8);
    text-align: center;
    background: linear-gradient(120deg, var(--coral-deep) 0%, #9a5f81 48%, var(--indigo-deep) 100%);
}
.final-cta__ribbon {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.55;
    pointer-events: none;
}
.final-cta__inner { position: relative; max-width: 680px; }
.final-cta p { color: var(--cream-dim); }
.final-cta__legal {
    margin: var(--space-4) 0 0;
    font-size: 0.82rem;
    color: #f0e3dc;
}
.final-cta__legal a { color: #fff3e6; }

/* ---------- Mobile-only adjustments ---------- */

@media (max-width: 767px) {
    .compare-table,
    .compare-table tbody,
    .compare-table tr,
    .compare-table th,
    .compare-table td { display: block; width: 100%; }
    .compare-table thead { display: none; }
    .compare-table tr {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 233, 214, 0.16);
    }
    .compare-table tbody tr:last-child { border-bottom: 0; }
    .compare-table tbody th {
        padding: 6px 10px;
        font-family: var(--font-head);
        font-size: 1.05rem;
    }
    .compare-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 48px;
        padding: 6px 10px;
        border: 0;
        text-align: right;
    }
    .compare-table td::before {
        content: attr(data-label);
        flex: none;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--peach);
    }

    .testimonial-row {
        display: flex;
        gap: var(--space-4);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--space-3);
        -webkit-overflow-scrolling: touch;
    }
    .testimonial-row > * {
        flex: 0 0 84%;
        scroll-snap-align: center;
    }
}

@media (min-width: 768px) {
    .hero { padding-bottom: var(--space-7); }
    .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-7); }
    .hero__deck { font-size: 1.05rem; }
    .quiz { padding: var(--space-6); }
    .quiz__options { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .overview-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
    .overview-art { float: left; width: 42%; margin: 0 var(--space-4) var(--space-3) 0; }

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

    .safety-layout { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

@media (min-width: 1024px) {
    .hero { padding-top: calc(var(--header-bottom) + var(--space-8)); padding-bottom: var(--space-8); }
    .hero__inner { min-height: 560px; gap: var(--space-9); }

    .how-steps__art {
        display: block;
        width: 100%;
        max-width: 980px;
        margin: 0 auto calc(-1 * var(--space-5));
    }
    .how-steps .step-card__orb { display: none; }
    .how-steps .step-card { padding-top: 0; }
}

/* ============================================
   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;
    }

    [data-reveal] { opacity: 1; transform: none; }
    .btn--primary::after { display: none; }
    .testimonial-card, .testimonial-card--featured { transform: none; }
}