/*
 * JEWZZ Review - design system
 * Light, warm cream/champagne surfaces, deep brown type, soft gold accents,
 * powder-blue haze and a continuous gold constellation thread.
 */

:root {
    --cream: #FBF6EE;
    --champagne: #F3E6D0;
    --sand: #F1E4CC;
    --white: #FFFFFF;
    --brown: #5A3A1E;
    --brown-deep: #3E2712;
    --text: #4A3626;
    --muted: #6B5743;
    --gold: #C9A56A;
    --gold-light: #E9D3A8;
    --gold-mid: #D9B97F;
    --gold-pale: #F7EBD3;
    --gold-ink: #845E2C;
    --taupe: #A8988A;
    --blue-haze: #D7E3F1;
    --line: #E8D9BF;
    --line-soft: #EFE4D2;
    --success: #3E9B5A;

    --font-display: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

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

    --shadow-soft: 0 10px 30px -14px rgba(90, 58, 30, .28);
    --shadow-card: 0 18px 40px -20px rgba(90, 58, 30, .35);
    --glow-gold: 0 0 0 1px rgba(201, 165, 106, .35), 0 12px 30px -12px rgba(201, 165, 106, .65);

    --container: 1120px;
    --gutter: 18px;
    --section-space: 64px;
    --header-bottom: 64px;
    --mobile-cta-h: 68px;
    --ease-spring: cubic-bezier(.34, 1.56, .64, 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;
    scroll-padding-top: calc(var(--header-bottom) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--cream);
    background-image:
        radial-gradient(ellipse 38% 22% at 0% 30%, rgba(215, 227, 241, .85), transparent 70%),
        radial-gradient(ellipse 36% 20% at 100% 58%, rgba(215, 227, 241, .8), transparent 70%),
        radial-gradient(ellipse 34% 18% at 0% 82%, rgba(215, 227, 241, .7), transparent 70%),
        linear-gradient(180deg, var(--cream) 0%, #F8EFE1 45%, var(--champagne) 100%);
    background-repeat: no-repeat;
    overflow-x: hidden;
    padding-bottom: calc(var(--mobile-cta-h) + env(safe-area-inset-bottom));
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--brown);
    line-height: 1.18;
    margin: 0 0 .5em;
    font-weight: 500;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 6.5vw, 3.1rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 4.8vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 3vw, 1.35rem); }

p { margin: 0 0 1em; }

a {
    color: var(--gold-ink);
    transition: color .2s ease;
}

a:hover { color: var(--brown); }

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

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

strong { color: var(--brown-deep); font-weight: 600; }

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--brown);
    color: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top .2s ease;
}

.skip-link:focus { top: 12px; color: var(--white); }

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

.container--narrow { max-width: calc(720px + var(--gutter) * 2); }

main {
    position: relative;
    z-index: 1;
    display: block;
}

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

/* ============================================
   CONSTELLATION THREAD (page-wide background layer)
   ============================================ */
.page-sky {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-sky::before,
.page-sky::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 64px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='180'%20height='1000'%20viewBox='0%200%20180%201000'%3E%3Cg%20fill='none'%20stroke='%23C9A56A'%20stroke-width='1.2'%20stroke-opacity='.6'%3E%3Cpolyline%20points='40,0%20120,140%2060,300%20140,420%2090,560%2030,700%20110,820%2040,1000'/%3E%3Cpolyline%20stroke-opacity='.35'%20points='120,140%20178,190'/%3E%3Cpolyline%20stroke-opacity='.35'%20points='140,420%20178,470'/%3E%3Cpolyline%20stroke-opacity='.35'%20points='110,820%20178,860'/%3E%3C/g%3E%3Cg%20fill='%23F6E3B8'%20fill-opacity='.55'%3E%3Ccircle%20cx='120'%20cy='140'%20r='8'/%3E%3Ccircle%20cx='140'%20cy='420'%20r='8'/%3E%3Ccircle%20cx='30'%20cy='700'%20r='8'/%3E%3Ccircle%20cx='110'%20cy='820'%20r='6'/%3E%3C/g%3E%3Cg%20fill='%23D9B676'%3E%3Ccircle%20cx='60'%20cy='300'%20r='2.2'/%3E%3Ccircle%20cx='90'%20cy='560'%20r='2.2'/%3E%3Ccircle%20cx='178'%20cy='190'%20r='1.8'/%3E%3Ccircle%20cx='178'%20cy='470'%20r='1.8'/%3E%3Cpath%20d='M120%20131l2%207%207%202-7%202-2%207-2-7-7-2%207-2z'/%3E%3Cpath%20d='M140%20411l2%207%207%202-7%202-2%207-2-7-7-2%207-2z'/%3E%3Cpath%20d='M30%20691l2%207%207%202-7%202-2%207-2-7-7-2%207-2z'/%3E%3Cpath%20d='M110%20813l1.6%205.4%205.4%201.6-5.4%201.6-1.6%205.4-1.6-5.4-5.4-1.6%205.4-1.6z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-y;
    background-size: 64px 356px;
}

.page-sky::before { left: 0; }

.page-sky::after {
    right: 0;
    transform: scaleX(-1);
    background-position: 0 160px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 48px;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    white-space: nowrap;
    transition: transform .25s var(--ease-spring), box-shadow .25s ease, background-color .25s ease, color .2s ease;
}

.btn__arrow {
    width: 18px;
    height: 18px;
    flex: none;
    transition: transform .25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--gold {
    color: var(--brown-deep);
    background: linear-gradient(135deg, #E6CC96 0%, var(--gold) 100%);
    box-shadow: 0 8px 20px -10px rgba(140, 100, 45, .7);
}

.btn--gold::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s ease;
}

.btn--gold:hover {
    color: var(--brown-deep);
    box-shadow: var(--glow-gold);
}

.btn--gold:hover::after { transform: translateX(120%); }

.btn--white {
    color: var(--brown);
    background: var(--white);
    box-shadow: 0 6px 18px -10px rgba(90, 58, 30, .55);
}

.btn--white:hover { color: var(--brown-deep); box-shadow: 0 10px 24px -10px rgba(90, 58, 30, .6); }

.btn--outline {
    color: var(--brown);
    background: transparent;
    border-color: var(--gold);
}

.btn--outline:hover { color: var(--brown-deep); background: var(--gold-pale); }

.btn--sm {
    min-height: 44px;
    padding: 9px 18px;
    font-size: .95rem;
}

.btn--lg {
    min-height: 54px;
    padding: 14px 34px;
    font-size: 1.12rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: .35em;
    font-weight: 500;
    color: var(--gold-ink);
    text-decoration: underline;
    text-underline-offset: .2em;
    text-decoration-color: var(--gold);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(232, 217, 191, .8);
    transition: box-shadow .25s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(251, 246, 238, .9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(90, 58, 30, .45); }

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

.site-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-decoration: none;
    min-height: 44px;
    align-self: center;
    padding-top: 8px;
}

.site-brand__text {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1.75rem;
    letter-spacing: .06em;
    line-height: 1;
    color: var(--gold-ink);
}

.site-brand__tag {
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions .header-cta {
    padding-inline: 16px;
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
}

.menu-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--brown);
    transition: transform .25s ease, opacity .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); }

/* Mobile drawer */
.site-nav {
    position: fixed;
    top: var(--header-bottom);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px var(--gutter) calc(28px + env(safe-area-inset-bottom));
    background: var(--cream);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}

.site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s ease, transform .25s ease, visibility 0s;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 4px 4px;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--brown);
    text-decoration: none;
}

.site-nav__link:hover { color: var(--gold-ink); }

.site-nav .site-nav__cta { width: 100%; }

.site-nav__note {
    margin: 0;
    text-align: center;
    font-size: .9rem;
    color: var(--muted);
}

@media (max-width: 359px) {
    .site-brand__tag { display: none; }
    .header-actions .header-cta { padding-inline: 12px; font-size: .9rem; }
}

@media (min-width: 768px) {
    .menu-toggle { display: none; }

    .site-header__inner { min-height: 72px; gap: 20px; }

    .site-nav {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 0;
        padding: 0;
        margin-left: auto;
        background: none;
        border: 0;
        overflow: visible;
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .site-nav__list { display: flex; gap: 2px; }

    .site-nav__link {
        min-height: 44px;
        padding: 6px 10px;
        border: 0;
        font-size: .98rem;
        position: relative;
    }

    .site-nav__link::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 8px;
        height: 2px;
        border-radius: 2px;
        background: var(--gold);
        transform: scaleX(0);
        transition: transform .25s ease;
    }

    .site-nav__link:hover::after { transform: scaleX(1); }

    .site-nav .site-nav__cta,
    .site-nav .site-nav__note { display: none; }
}

@media (min-width: 1024px) {
    .site-nav__link { padding-inline: 14px; }
    .site-nav__link::after { left: 14px; right: 14px; }
}

/* ============================================
   SECTION HEADING
   ============================================ */
.section-head {
    max-width: 760px;
    margin: 0 auto 32px;
}

.section-head--center { text-align: center; }
.section-head--left { margin-left: 0; }

.section-head__title { margin-bottom: 14px; }

.section-head__rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
}

.section-head--left .section-head__rules { align-items: flex-start; }

.section-head__rules span {
    display: block;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(201, 165, 106, .35), #CDBFA8, rgba(201, 165, 106, .35));
}

.section-head__rules span:first-child { width: min(240px, 60%); }
.section-head__rules span:last-child { width: min(160px, 40%); }

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

/* ============================================
   CARDS, CHIPS, LISTS
   ============================================ */
.card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    background: var(--white);
    border: 1px solid var(--line);
    font-size: .875rem;
    font-weight: 500;
    color: var(--brown);
    line-height: 1.3;
}

.chip__icon {
    width: 12px;
    height: 12px;
    color: var(--gold);
    flex: none;
}

.dot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.dot-list li {
    position: relative;
    padding-left: 24px;
}

.dot-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .55em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 165, 106, .22);
}

.dot-list--muted li::before {
    background: var(--taupe);
    box-shadow: 0 0 0 3px rgba(168, 152, 138, .2);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--brown);
    color: var(--white);
    font-size: .8rem;
    font-weight: 600;
}

.footnote {
    margin: 14px auto 0;
    max-width: 640px;
    text-align: center;
    font-size: .875rem;
    font-style: italic;
    color: var(--muted);
}

/* ============================================
   TABLES
   ============================================ */
.table-wrap {
    position: relative;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: .95rem;
}

.data-table caption {
    caption-side: top;
    text-align: left;
    padding: 12px 16px 4px;
    font-size: .875rem;
    color: var(--muted);
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

.data-table thead th {
    background: #F7EEDD;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brown);
    text-align: center;
    white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: 0; }

.data-table tbody th {
    font-weight: 500;
    color: var(--brown);
}

.data-table .col-hl {
    background: var(--gold-pale);
}

.data-table thead .col-hl {
    background: linear-gradient(135deg, #E6CC96, var(--gold));
    color: var(--brown-deep);
}

.data-table .center { text-align: center; }

.data-table.is-sticky {
    min-width: 640px;
}

.data-table.is-sticky th:first-child,
.data-table.is-sticky td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--white);
    box-shadow: 1px 0 0 var(--line);
}

.data-table.is-sticky thead th:first-child { background: #F7EEDD; z-index: 2; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
    display: grid;
    gap: 12px;
    align-items: start;
    max-width: 780px;
    margin-inline: auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
    transition: border-radius .3s ease, box-shadow .3s ease;
    interpolate-size: allow-keywords;
}

.faq-item[open] {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 56px;
    padding: 14px 22px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 500;
    color: var(--brown);
}

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

.faq-item__q:focus-visible {
    outline: 2px solid var(--gold-ink);
    outline-offset: 2px;
    border-radius: 26px;
}

.faq-item__chev {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--gold-ink);
    transition: transform .3s ease;
}

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

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

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

.faq-item__a {
    padding: 0 22px 20px;
    color: var(--text);
}

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

/* ============================================
   STAR DIVIDER
   ============================================ */
.star-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-block: 40px;
}

.star-divider::before,
.star-divider::after {
    content: "";
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold));
}

.star-divider::after { background: linear-gradient(90deg, var(--gold), transparent); }

.star-divider svg {
    width: 40px;
    height: 40px;
    flex: none;
    filter: drop-shadow(0 0 6px rgba(217, 182, 118, .8));
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 24px;
    padding: 48px 0 28px;
    background: var(--sand);
    border-top: 1px solid var(--line);
    overflow: hidden;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.site-footer__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brown);
}

.site-footer__text {
    margin: 0;
    font-size: .92rem;
    color: var(--text);
}

.site-footer__links {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--text);
    text-decoration: none;
    font-size: .95rem;
}

.site-footer__links a:hover { color: var(--gold-ink); text-decoration: underline; }

.site-brand--footer { padding-top: 0; }

.site-footer__bottom {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid var(--gold);
    text-align: center;
}

.site-footer__bottom p {
    margin: 0;
    font-size: .875rem;
    color: var(--muted);
}

.site-footer__star {
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: 46px;
    height: 46px;
    filter: drop-shadow(0 0 8px rgba(217, 182, 118, .9));
    pointer-events: none;
}

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

@media (min-width: 1024px) {
    .site-footer__grid { grid-template-columns: 1fr .8fr 1fr 1.4fr; gap: 40px; }
}

/* ============================================
   STICKY MOBILE CTA
   ============================================ */
.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--mobile-cta-h);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(90deg, #A8813F, #94702F);
    box-shadow: 0 -10px 24px -16px rgba(90, 58, 30, .55);
    transition: transform .35s ease, visibility 0s linear 0s;
}

.mobile-cta__text {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1rem;
    color: var(--white);
}

.js .mobile-cta:not(.is-visible) {
    transform: translateY(110%);
    visibility: hidden;
    transition: transform .35s ease, visibility 0s linear .35s;
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .mobile-cta { display: none; }
}

/* ============================================
   RESPONSIVE SPACING & SKY
   ============================================ */
@media (min-width: 768px) {
    :root {
        --gutter: 28px;
        --section-space: 84px;
    }

    .page-sky::before,
    .page-sky::after {
        width: 130px;
        background-size: 130px 722px;
    }
}

@media (min-width: 1024px) {
    :root { --section-space: 96px; }

    .page-sky::before,
    .page-sky::after {
        width: 180px;
        background-size: 180px 1000px;
    }
}

@media (min-width: 1280px) {
    .page-sky::before,
    .page-sky::after {
        width: 220px;
        background-size: 220px 1222px;
    }
}

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

.section--tight { padding-block: calc(var(--section-space) * .6); }

.section-note {
    margin: 28px auto 0;
    max-width: 680px;
    text-align: center;
    color: var(--text);
}

/* Hero */
.hero {
    position: relative;
    padding-bottom: 36px;
}

.hero__media { position: relative; }

.hero__photos {
    display: flex;
    height: clamp(440px, 120vw, 640px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.hero__photos::-webkit-scrollbar { display: none; }

.hero__photo {
    flex: 0 0 100%;
    scroll-snap-align: start;
    background-repeat: no-repeat;
    background-size: cover;
    background-color: var(--champagne);
}

.hero__photo--park {
    background-image: url("/assets/db52c48eeec3f80d58dd9124efe784f3.webp");
    background-position: 50% 32%;
}

.hero__photo--city {
    background-image: url("/assets/9a06671eaa0e0650104049f0e531689b.webp");
    background-position: 62% 22%;
}

.hero__sky {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero__lines { opacity: .85; }

.hero__stars .tw {
    animation: twinkle 4.5s ease-in-out infinite;
}

.hero__stars .tw:nth-child(3n+1) { animation-delay: -1.5s; }
.hero__stars .tw:nth-child(3n+2) { animation-delay: -3s; }
.hero__stars .tw:nth-child(4n) { animation-duration: 6s; }

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

.hero__dots {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: rgba(62, 39, 18, .35);
}

.hero__dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: .55;
    transition: opacity .25s ease, width .25s ease;
}

.hero__dots span.is-active { opacity: 1; width: 20px; border-radius: 4px; }

.hero__panel {
    position: relative;
    z-index: 2;
    margin-top: -110px;
}

.hero__glass {
    max-width: 640px;
    margin-inline: auto;
    padding: 24px 20px;
    text-align: center;
    background: rgba(251, 246, 238, .88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.hero__eyebrow {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

.hero__glass h1 { margin-bottom: 12px; }

.hero__sub {
    margin: 0 auto 18px;
    max-width: 520px;
    font-size: 1.02rem;
    color: var(--text);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.hero__glass .chips { justify-content: center; }

@media (min-width: 768px) {
    .hero__photos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: clamp(520px, 62vw, 680px);
        overflow: visible;
    }

    .hero__dots { display: none; }

    .hero__panel { margin-top: -190px; }

    .hero__glass { padding: 32px 36px; }

    .hero__actions { flex-direction: row; justify-content: center; gap: 18px; }
}

/* Verdict */
.verdict-wrap {
    position: relative;
    isolation: isolate;
}

.verdict-wrap::before {
    content: "";
    position: absolute;
    inset: -40px -20px;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(233, 211, 168, .55), transparent 65%);
    pointer-events: none;
}

.verdict-card { padding: 26px 22px; }

.verdict-card__lead { font-size: 1.06rem; color: var(--brown-deep); }

.verdict-card__legit {
    padding: 12px 14px;
    border-left: 3px solid var(--gold);
    background: var(--gold-pale);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.verdict-card .dot-list { margin-bottom: 20px; }

.verdict-card__cta { text-align: center; margin-bottom: 16px; }

.verdict-card__meta {
    margin: 0;
    font-size: .85rem;
    color: var(--muted);
    text-align: center;
}

@media (min-width: 768px) {
    .verdict-card { padding: 34px 40px; }
}

/* Audience fit */
.fit-grid {
    display: grid;
    gap: 28px;
    max-width: 900px;
    margin-inline: auto;
}

.fit-col h3 { font-size: 1.1rem; font-weight: 600; }

@media (min-width: 768px) {
    .fit-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}

/* Pros & cons */
.pc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

.pc-table thead th {
    padding: 10px 12px;
    background: #F7EEDD;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brown);
    text-align: center;
    border-bottom: 1px solid var(--line);
}

.pc-table td {
    padding: 11px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--line-soft);
}

.pc-table th + th,
.pc-table td + td { border-left: 1px solid var(--line); }

.pc-table tbody tr:last-child td { border-bottom: 0; }

.pc-cell { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }

.pc-icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }

@media (min-width: 768px) {
    .pc-table { font-size: 1rem; }
    .pc-table td { padding: 13px 20px; }
}

/* Pricing */
.price-table td { vertical-align: middle; }

.price-table__foot th,
.price-table__foot td { font-weight: 500; color: var(--brown); }

.price-extras {
    display: grid;
    gap: 20px;
    margin-top: 32px;
}

.price-extras h3 { font-size: 1.15rem; font-weight: 600; }

.table-wrap--flat { box-shadow: none; }

.bench-table thead th { text-align: left; }

.price-extras__note {
    margin: 12px 0 0;
    font-size: .88rem;
    color: var(--muted);
}

@media (min-width: 768px) {
    .price-extras { grid-template-columns: 1fr 1fr; }
}

/* Mid CTA band */
.cta-band {
    position: relative;
    padding-block: 48px;
    background: linear-gradient(120deg, var(--gold-light) 0%, var(--gold-mid) 100%);
}

.cta-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.cta-band h2 { color: var(--brown-deep); margin-bottom: 8px; }

.cta-band p { margin: 0; color: var(--brown-deep); max-width: 560px; }

.cta-band__stars {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 180px;
    height: 144px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .cta-band__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-right: 160px;
    }
    .cta-band__stars { width: 220px; height: 176px; right: 2%; }
}

/* How it works */
.steps {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 960px;
    display: grid;
    gap: 16px;
}

.steps__item {
    position: relative;
    padding: 18px 18px 18px 68px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.steps__item h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 4px; }

.steps__item p { margin: 0; font-size: .95rem; }

.steps__num {
    position: absolute;
    left: 18px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E6CC96, var(--gold));
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brown-deep);
}

@media (min-width: 768px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
}

.carousel {
    position: relative;
    isolation: isolate;
    margin-top: 44px;
}

.carousel::before {
    content: "";
    position: absolute;
    inset: 20px -20%;
    z-index: -1;
    background:
        radial-gradient(ellipse 45% 55% at 30% 55%, rgba(215, 227, 241, .9), transparent 70%),
        radial-gradient(ellipse 45% 55% at 70% 50%, rgba(251, 246, 238, .95), transparent 70%);
    pointer-events: none;
}

.carousel__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.carousel__label {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brown);
}

.carousel__label span {
    display: block;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: .85rem;
    color: var(--muted);
}

.activity-demo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-size: .85rem;
    color: var(--text);
}

.activity-demo__dot {
    position: relative;
    width: 10px;
    height: 10px;
    flex: none;
    border-radius: 50%;
    background: var(--success);
}

.activity-demo__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(2.8); opacity: 0; }
}

.carousel__track {
    position: relative;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    padding: 30px calc(50% - 110px) 30px;
}

.carousel__track::-webkit-scrollbar { display: none; }

.profile-card {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-soft);
    transform: scale(.92);
    transition: transform .5s var(--ease-spring), box-shadow .3s ease;
}

.profile-card.is-center {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 26px 44px -20px rgba(120, 80, 30, .55);
}

.carousel__track.is-moving[data-dir="next"] .profile-card:not(.is-center) { transform: scale(.92) rotate(-2deg); }
.carousel__track.is-moving[data-dir="prev"] .profile-card:not(.is-center) { transform: scale(.92) rotate(2deg); }

.profile-card__photo {
    display: block;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    background: var(--champagne);
}

.profile-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    transition: filter .3s ease, transform .5s ease;
}

.profile-card:not(.is-center) .profile-card__photo img { filter: saturate(.8); }

.profile-card:hover .profile-card__photo img { transform: scale(1.04); }

.profile-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px 14px;
}

.profile-card__name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--brown);
}

.profile-card__meta { font-size: .85rem; color: var(--muted); }

.profile-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

.profile-card__tags .chip { padding: 3px 10px; font-size: .78rem; }

.profile-card__cta {
    align-self: center;
    margin-top: 6px;
    visibility: hidden;
    transform: translateY(6px);
    transition: transform .3s ease, visibility 0s linear .3s;
}

.profile-card.is-center .profile-card__cta {
    visibility: visible;
    transform: none;
    transition: transform .3s ease, visibility 0s;
}

.carousel__arrow { display: none; }

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 2px;
}

.carousel__dot {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.carousel__dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    transition: background .25s ease, transform .25s ease;
}

.carousel__dot.is-active::before {
    background: var(--gold);
    transform: scale(1.4);
}

@media (min-width: 768px) {
    .carousel__head { flex-direction: row; justify-content: space-between; text-align: left; }

    .carousel__track { padding-inline: calc(50% - 120px); gap: 20px; }

    .profile-card { flex-basis: 240px; }

    .carousel__arrow {
        position: absolute;
        top: 52%;
        z-index: 3;
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: var(--cream);
        color: var(--brown);
        cursor: pointer;
        box-shadow: var(--shadow-soft);
        transition: transform .25s var(--ease-spring), box-shadow .25s ease;
    }

    .carousel__arrow::before {
        content: "";
        position: absolute;
        inset: -14px;
        z-index: -1;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(246, 227, 184, .9), transparent 65%);
    }

    .carousel__arrow svg { width: 20px; height: 20px; }
    .carousel__arrow:hover { transform: scale(1.08); box-shadow: var(--glow-gold); }
    .carousel__arrow--prev { left: 8px; }
    .carousel__arrow--next { right: 8px; }
}

/* Safety */
.safety-grid {
    display: grid;
    gap: 22px;
    max-width: 960px;
    margin-inline: auto;
}

.safety-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.safety-item__icon { width: 46px; height: 46px; flex: none; }

.safety-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }

.safety-item p { margin: 0; }

@media (min-width: 768px) {
    .safety-grid { grid-template-columns: 1fr 1fr; gap: 32px 48px; }
}

/* Comparison */
.compare-shell { position: relative; }

.compare-shell::after {
    content: "";
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    width: 36px;
    border-radius: 0 var(--radius) var(--radius) 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95));
    pointer-events: none;
}

.compare-table { min-width: 780px; }

.compare-table td { font-size: .92rem; }

.mark {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    vertical-align: middle;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 165, 106, .25);
}

@media (min-width: 1024px) {
    .compare-shell::after { display: none; }
}

/* Reader goals */
.goals {
    position: relative;
    isolation: isolate;
    max-width: 980px;
    margin-inline: auto;
}

.goals::before {
    content: "";
    position: absolute;
    inset: -30px -10%;
    z-index: -2;
    background:
        radial-gradient(ellipse 50% 60% at 75% 60%, rgba(215, 227, 241, .9), transparent 70%),
        radial-gradient(ellipse 50% 60% at 25% 40%, rgba(247, 235, 211, .9), transparent 70%);
    pointer-events: none;
}

.goals__lines,
.goals__node { display: none; }

.goals__grid {
    display: grid;
    gap: 26px;
}

.goal { margin: 0; }

.goal__bubble {
    position: relative;
    padding: 20px 20px 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.goal__bubble::after {
    content: "";
    position: absolute;
    left: 28px;
    bottom: -8px;
    width: 14px;
    height: 14px;
    background: var(--white);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transform: rotate(45deg);
}

.goal__quote { width: 28px; height: 22px; margin-bottom: 8px; }

.goal__bubble p { margin: 0; color: var(--brown-deep); }

.goal__who {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-left: 14px;
}

.goal__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold-pale);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--line), 0 0 14px rgba(217, 182, 118, .55);
    overflow: hidden;
}

.goal__avatar svg { width: 34px; height: 34px; }

.goal__tag {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-ink);
}

@media (min-width: 768px) {
    .goals { padding-bottom: 30px; }

    .goals__lines {
        display: block;
        position: absolute;
        inset: 0;
        z-index: -1;
        width: 100%;
        height: 100%;
    }

    .goals__node {
        display: block;
        position: absolute;
        z-index: -1;
        width: 12px;
        height: 12px;
        margin: -6px 0 0 -6px;
        border-radius: 50%;
        background: #F6E3B8;
        box-shadow: 0 0 10px 3px rgba(217, 182, 118, .75);
    }

    .goals__node--sm { width: 8px; height: 8px; margin: -4px 0 0 -4px; }

    .goals__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }

    .goal:nth-child(2) { margin-top: 90px; }
}

/* Final CTA */
.final-cta__card {
    position: relative;
    text-align: center;
    padding: 8px 8px 0;
}

.final-cta__card .star-divider { margin-block: 0 24px; }

.final-cta__card p { max-width: 560px; margin-inline: auto; }

.final-cta__micro {
    margin-top: 14px;
    font-size: .9rem;
    color: var(--muted);
}

/* Legal page */
.legal-intro__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.legal-intro__head h1 { margin-bottom: 8px; }

.legal-sprig {
    width: 96px;
    height: 64px;
    flex: none;
    opacity: .7;
}

.legal-updated {
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
}

.legal-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.legal-jump__pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 20px;
    border: 1px solid var(--gold);
    border-radius: var(--radius-pill);
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--brown);
    text-decoration: none;
    transition: background-color .25s ease, transform .25s var(--ease-spring);
}

.legal-jump__pill:hover {
    background: var(--gold-pale);
    transform: translateY(-2px);
}

.legal-section { padding-block: calc(var(--section-space) * .5); }

.legal-block {
    margin-bottom: 22px;
    padding-left: 16px;
    border-left: 2px solid var(--gold);
}

.legal-block h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }

.legal-block p:last-child { margin-bottom: 0; }

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
    display: grid;
    gap: 8px;
}

.legal-list li {
    position: relative;
    padding-left: 24px;
}

.legal-list li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .5em;
    width: 12px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Cpath%20d='M8%201.5l1.6%204.9%204.9%201.6-4.9%201.6L8%2014.5l-1.6-4.9L1.5%208l4.9-1.6z'%20fill='none'%20stroke='%23C9A56A'%20stroke-width='1.4'%20stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.legal-back { margin-top: 8px; font-size: .95rem; }

.legal-divider svg {
    display: block;
    width: 100%;
    height: 40px;
    filter: drop-shadow(0 0 6px rgba(217, 182, 118, .7));
}

.legal-cta { text-align: center; }

/* Pause continuous animation off-screen or in hidden tabs */
.is-paused *,
.is-paused *::after,
.doc-hidden [data-anim] *,
.doc-hidden [data-anim] *::after {
    animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
    .hero__stars .tw,
    .activity-demo__dot::after { animation: none; }
    .profile-card,
    .carousel__track.is-moving .profile-card:not(.is-center) { transition: none; }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.js [data-reveal] {
    transition: opacity .7s ease, transform .7s ease;
}

.js [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(16px);
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }

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

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