/*
 * Cheers Review - design system
 * Warm cream base, navy feature bands, apricot surfaces, terracotta accent.
 */

:root {
    --cream: #FBF3EA;
    --cream-2: #FFF9F2;
    --peach: #F8E2CC;
    --apricot: #F6B07A;
    --apricot-tint: #FCE4CF;
    --apricot-line: #E39A63;
    --terracotta: #D9785A;
    --terracotta-hover: #E28B6F;
    --terracotta-text: #A44A2E;
    --navy: #2F4468;
    --navy-line: #3B5280;
    --brown: #4A1E1A;
    --on-accent: #2A0F0C;
    --text: #3B2A26;
    --text-muted: #6A4E46;
    --on-navy: #FBF3EA;
    --on-navy-muted: #E6D7C6;
    --border: #4A1E1A;
    --line-soft: #EAD7C3;

    --font-head: "Bitter", "Rockwell", "Roboto Slab", Georgia, serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(74, 30, 26, 0.08);
    --shadow: 0 10px 28px rgba(74, 30, 26, 0.12);
    --shadow-lg: 0 18px 44px rgba(47, 30, 26, 0.2);

    --container: 1200px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-y: clamp(3.5rem, 8vw, 6rem);
    --header-h: 68px;
    --header-bottom: 68px;

    --jigsaw-apricot: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%3E%3Cpath%20d='M0%2032h23a9%209%200%201%201%2018%200h23M32%200v23a9%209%200%201%200%200%2018v23'%20fill='none'%20stroke='%23E39A63'%20stroke-width='1.5'/%3E%3C/svg%3E");
    --jigsaw-navy: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%3E%3Cpath%20d='M0%2032h23a9%209%200%201%201%2018%200h23M32%200v23a9%209%200%201%200%200%2018v23'%20fill='none'%20stroke='%23435B8A'%20stroke-width='1.5'/%3E%3C/svg%3E");
    --jigsaw-terracotta: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%3E%3Cpath%20d='M0%2032h23a9%209%200%201%201%2018%200h23M32%200v23a9%209%200%201%200%200%2018v23'%20fill='none'%20stroke='%23D9785A'%20stroke-width='1.6'/%3E%3C/svg%3E");
}

/* ============================================
   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 {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
}

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

h1 { font-size: clamp(2rem, 1.3rem + 3.6vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); font-weight: 600; }

p {
    margin: 0 0 1em;
}

a {
    color: var(--terracotta-text);
}

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

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

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    background: var(--brown);
    color: var(--cream);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
}

.skip-link:focus {
    top: 1rem;
    color: var(--cream);
}

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

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

/* ============================================
   BANDS & SECTION HEADINGS
   ============================================ */
.band {
    position: relative;
    padding-block: var(--section-y);
}

.band--cream { background: var(--cream); }
.band--peach { background: var(--peach); }
.band--apricot { background: var(--apricot); }

.band--navy {
    background: var(--navy);
    color: var(--on-navy-muted);
}

.band--navy h2,
.band--navy h3 {
    color: var(--on-navy);
}

.band--navy :focus-visible,
.on-dark :focus-visible {
    outline-color: var(--cream);
}

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
}

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

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

.band--navy .section-lead { color: var(--on-navy-muted); }
.band--apricot .section-lead { color: var(--brown); }

.eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--terracotta-text);
    margin-bottom: 0.75rem;
}

/* Jigsaw pattern surfaces */
.jigsaw-grid--apricot { background-image: var(--jigsaw-apricot); background-size: 64px 64px; }
.jigsaw-grid--navy { background-image: var(--jigsaw-navy); background-size: 64px 64px; }
.jigsaw-grid--terracotta { background-image: var(--jigsaw-terracotta); background-size: 64px 64px; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.btn--primary {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--on-accent);
    box-shadow: 0 6px 16px rgba(217, 120, 90, 0.32);
}

.btn--primary:hover {
    background: var(--terracotta-hover);
    border-color: var(--terracotta-hover);
    color: var(--on-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(217, 120, 90, 0.4);
}

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

.btn--outline:hover {
    background: var(--terracotta);
    color: var(--on-accent);
    transform: translateY(-2px);
}

.band--navy .btn--outline,
.on-dark .btn--outline {
    color: var(--on-navy);
}

.band--navy .btn--outline:hover,
.on-dark .btn--outline:hover {
    color: var(--on-accent);
}

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

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

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

.btn:active { transform: translateY(0); }

/* Store badges */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 48px;
    min-width: 150px;
    padding: 0.45rem 1rem;
    background: #111;
    color: #fff;
    border: 1.5px solid #3a3a3a;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.store-badge__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.store-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.store-badge__small {
    font-size: 0.75rem;
    font-weight: 500;
}

.store-badge__big {
    font-size: 1.0625rem;
    font-weight: 700;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cream);
    border-top: 6px solid var(--apricot);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 62px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
    color: var(--brown);
    flex: 0 0 auto;
}

.site-brand:hover { color: var(--brown); }

.site-brand__text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--brown);
    cursor: pointer;
}

.menu-toggle__bar {
    display: block;
    width: 24px;
    height: 2.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) { transform: translateY(7.5px) 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(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.site-nav {
    display: none;
    position: fixed;
    top: var(--header-bottom);
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 99;
    background: var(--cream);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem var(--gutter) 2rem;
    border-top: 1px solid var(--line-soft);
}

.site-nav.is-open {
    display: block;
}

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

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

.site-nav__link:hover {
    color: var(--terracotta-text);
}

@media (min-width: 360px) {
    .header-actions .header-cta { display: inline-flex; }
}

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

    .site-nav {
        display: block;
        position: static;
        padding: 0;
        border: 0;
        overflow: visible;
        background: transparent;
        margin-left: auto;
    }

    .site-nav__list {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        margin: 0;
    }

    .site-nav__link {
        min-height: 44px;
        padding: 0.5rem 0.7rem;
        border: 0;
        border-radius: 8px;
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 0.9875rem;
        color: var(--text);
    }

    .site-nav__link:hover {
        background: var(--apricot-tint);
        color: var(--brown);
    }

    .site-nav__cta { display: none; }

    .header-actions .header-cta {
        display: inline-flex;
        margin-left: 0.75rem;
    }

    .header-inner { min-height: 74px; }
}

/* ============================================
   PHONE MOCKUP
   ============================================ */
.phone {
    position: relative;
    width: clamp(220px, 62vw, 280px);
    aspect-ratio: 9 / 18.5;
    padding: 11px;
    background: #1F1A1A;
    border-radius: 42px;
    box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a3232;
}

.phone::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 22px;
    background: #1F1A1A;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}

.phone__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 32px;
    background: var(--cream);
    padding: 2.5rem 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    color: var(--text);
}

.phone__bar {
    display: block;
    height: 9px;
    border-radius: 6px;
    background: #DCCBBB;
    width: 70%;
}

.phone__bar--short { width: 48%; }

.phone__chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border: 1.5px solid var(--terracotta);
    border-radius: 999px;
    background: var(--apricot-tint);
    color: var(--brown);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* ============================================
   PUZZLE PIECE
   ============================================ */
.puzzle-piece {
    display: block;
    width: 120px;
    height: auto;
    overflow: visible;
}

.puzzle-piece path { stroke: var(--brown); }
.puzzle-piece--apricot path { fill: var(--apricot); }
.puzzle-piece--peach path { fill: #F2A06E; }
.puzzle-piece--terracotta path { fill: var(--terracotta); }
.puzzle-piece--navy path { fill: var(--navy); }
.puzzle-piece--cream path { fill: var(--cream); }

.puzzle-piece__label {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 42px;
    fill: var(--brown);
}

/* ============================================
   PROFILE CARDS
   ============================================ */
.profile-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--cream-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.profile-card__img {
    width: 100%;
    aspect-ratio: 8 / 7;
    height: auto;
    object-fit: cover;
    object-position: center 25%;
    border-bottom: 1.5px solid var(--border);
}

.profile-card__body {
    padding: 1.1rem 1.15rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-card__name {
    margin: 0;
    font-size: 1.3rem;
}

.profile-card__age {
    font-weight: 600;
    color: var(--terracotta-text);
}

.profile-card__intro {
    margin: 0;
    font-size: 0.975rem;
    color: var(--text-muted);
}

.chip-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: var(--apricot-tint);
    border: 1px solid #EDBF98;
    color: var(--brown);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Carousel dots (mobile) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1.25rem;
}

.carousel-dot {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.carousel-dot::before {
    content: "";
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #D8C3B1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot[aria-current="true"]::before {
    background: var(--brown);
    transform: scale(1.15);
}

@media (min-width: 1024px) {
    .carousel-dots { display: none; }
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.feature-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--cream-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.feature-card__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 1rem;
    border-bottom: 1.5px solid var(--border);
}

.feature-card__tab--apricot { background: var(--apricot); }
.feature-card__tab--navy { background: var(--navy); }
.feature-card__tab--terracotta { background: var(--terracotta); }

.feature-card__icon {
    width: 84px;
    height: auto;
    overflow: visible;
}

.feature-card__piece { fill: var(--cream); stroke: var(--brown); }
.feature-card__glyph { stroke: var(--brown); }
.feature-card__tab--navy .feature-card__piece { fill: var(--apricot); stroke: var(--cream); }

.feature-card__body {
    padding: 1.25rem 1.25rem 1.4rem;
}

.feature-card__title {
    margin-bottom: 0.75rem;
}

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

.dot-list li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.45rem;
}

.dot-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--terracotta);
}

/* ============================================
   FACT BOX & EDITORIAL TAG
   ============================================ */
.fact-box {
    background: var(--cream-2);
    border: 1.5px solid var(--line-soft);
    border-left: 5px solid var(--terracotta);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    margin: 1.5rem 0;
}

.fact-box__title {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--brown);
    font-size: 1.0625rem;
    margin-bottom: 0.6rem;
}

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

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.45rem;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--terracotta) url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='m6.5%2012.5%203.5%203.5%207.5-8'%20fill='none'%20stroke='%232A0F0C'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.editorial-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--brown);
    font-size: 1.0625rem;
}

.editorial-tag svg {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--cream-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    padding: 0.8rem 1.1rem;
    background: var(--apricot-tint);
    color: var(--brown);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.0625rem;
    line-height: 1.35;
    cursor: pointer;
    list-style: none;
}

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

.faq-item__q:hover { background: #FAD7B8; }

.faq-item__q:focus-visible {
    outline-offset: -3px;
    border-radius: var(--radius-sm);
}

.faq-item__chevron {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item[open] .faq-item__q { border-bottom: 1.5px solid var(--line-soft); }

.faq-item__a {
    padding: 1rem 1.1rem 0.25rem;
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-hero {
    padding-block: clamp(2.75rem, 7vw, 4.5rem);
    text-align: center;
}

.legal-hero::before,
.legal-hero::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(36px, 9vw, 140px);
    background-image: var(--jigsaw-terracotta);
    background-size: 64px 64px;
    pointer-events: none;
}

.legal-hero::before { left: 0; background-position: right top; }
.legal-hero::after { right: 0; background-position: left top; }

.legal-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding-inline: clamp(2.75rem, 10vw, 3rem);
}

.legal-hero__intro {
    font-size: 1.0625rem;
    color: var(--brown);
    max-width: 640px;
    margin-inline: auto;
}

.legal-hero__updated {
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 0.5rem;
}

.legal-hero__note {
    display: inline-block;
    margin: 0.5rem 0 0;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--cream);
    color: var(--brown);
    font-size: 0.9375rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-block: clamp(2rem, 5vw, 4rem) var(--section-y);
}

.legal-toc {
    background: var(--cream-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.legal-toc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0.75rem 1.1rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--brown);
    cursor: pointer;
    list-style: none;
}

.legal-toc__summary::-webkit-details-marker { display: none; }
.legal-toc__summary::marker { content: ""; }

.legal-toc__chevron { transition: transform 0.25s ease; }
.legal-toc[open] .legal-toc__chevron { transform: rotate(180deg); }

.legal-toc__list {
    list-style: none;
    margin: 0;
    padding: 0 0.75rem 1rem;
}

.legal-toc__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.75rem;
    border-left: 3px solid transparent;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.35;
}

.legal-toc__link:hover {
    color: var(--brown);
    background: var(--apricot-tint);
}

.legal-toc__link.is-active {
    border-left-color: var(--terracotta);
    color: var(--brown);
    font-weight: 700;
}

.prose {
    max-width: 760px;
    min-width: 0;
}

.prose h2 {
    font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem);
    margin-top: 2.5rem;
    scroll-margin-top: calc(var(--header-h) + 16px);
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
    margin-top: 1.75rem;
}

.prose ul li,
.prose ol li {
    margin-bottom: 0.4rem;
}

.prose a:not([class]) {
    color: var(--terracotta-text);
}

.prose .callout {
    background: var(--apricot-tint);
    border-radius: var(--radius-sm);
    border-left: 5px solid var(--terracotta);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

.legal-back {
    margin-top: 2.5rem;
}

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

.cookie-card {
    background: var(--cream-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.prose .cookie-card h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 0.6rem;
}

.cookie-card__dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--terracotta);
}

.cookie-card p:last-child { margin-bottom: 0; }

@media (min-width: 1024px) {
    .legal-layout {
        grid-template-columns: 260px minmax(0, 760px);
        justify-content: center;
        gap: 3.5rem;
        align-items: start;
    }

    .legal-toc-wrap {
        position: sticky;
        top: calc(var(--header-h) + 1.25rem);
    }

}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--cream);
    border-top: 1px solid var(--line-soft);
    padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
    color: var(--text);
}

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

.footer-desc {
    margin-top: 0.75rem;
    color: var(--text-muted);
    max-width: 420px;
}

.footer-title {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--brown);
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--text);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--terracotta-text);
    text-decoration: underline;
}

.footer-disclosure {
    margin-top: 2rem;
    padding: 1.1rem 1.25rem;
    background: var(--apricot-tint);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--brown);
}

.footer-disclosure p { margin: 0; }

.footer-copy {
    margin: 1.5rem 0 0;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: 3rem;
    }
}

/* ============================================
   HOME: HERO
   ============================================ */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: max(480px, calc(100svh - var(--header-h)));
    padding-block: 6rem 2.25rem;
    background-color: #5A3A2A;
    color: var(--cream);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("./assets/e5e5a7eaa228b98fad0874a433b32df7.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 64% 22%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(44, 20, 14, 0.88) 0%, rgba(44, 20, 14, 0.72) 45%, rgba(44, 20, 14, 0) 80%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 880px;
    text-align: center;
}

.hero h1 {
    color: var(--cream);
    text-shadow: 0 2px 14px rgba(30, 12, 8, 0.45);
    margin-bottom: 0.5em;
}

.hero__intro {
    font-size: clamp(1rem, 0.95rem + 0.35vw, 1.1875rem);
    color: #FFF4E8;
    max-width: 660px;
    margin: 0 auto 0.85rem;
    text-shadow: 0 1px 8px rgba(30, 12, 8, 0.4);
}

.hero__note {
    font-size: 0.875rem;
    color: #F3E3D0;
    margin: 0 auto 1.25rem;
}

@media (min-width: 1024px) {
    .hero {
        min-height: clamp(620px, calc(100vh - var(--header-h)), 820px);
        padding-bottom: 4rem;
    }

    .hero::after {
        background: linear-gradient(to top, rgba(44, 20, 14, 0.8) 0%, rgba(44, 20, 14, 0.6) 38%, rgba(44, 20, 14, 0) 62%);
    }
}

/* ============================================
   HOME: OVERVIEW
   ============================================ */
.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.overview-copy > .btn { margin-top: 0.25rem; }

.overview-media {
    position: relative;
    display: flex;
    justify-content: center;
    padding-block: 2.5rem;
}

.overview-panel {
    position: absolute;
    top: 0;
    bottom: calc(-1 * var(--section-y));
    left: 42%;
    right: -50vw;
    background-color: var(--apricot);
    background-image: var(--jigsaw-apricot);
    background-size: 64px 64px;
}

.overview-panel__edge {
    position: absolute;
    top: 0;
    left: -13px;
    width: 26px;
    height: 100%;
}

.overview-media .phone {
    z-index: 1;
}

.overview-icon {
    width: 112px;
    height: 70px;
    margin: 0.75rem 0 0.25rem;
}

@media (min-width: 1024px) {
    .overview-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        gap: 4rem;
    }

    .overview-panel {
        top: calc(-1 * var(--section-y));
    }
}

/* ============================================
   HOME: HOW IT WORKS
   ============================================ */
.steps {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 1100px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
}

.step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step .puzzle-piece {
    width: 110px;
    margin-bottom: 0.75rem;
}

.step h3 {
    color: var(--on-navy);
    margin-bottom: 0.4rem;
}

.step p {
    max-width: 300px;
    margin: 0;
    color: var(--on-navy-muted);
}

.step__link--h { display: none; }

.step__link--v {
    width: 40px;
    height: 64px;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }

    .step { padding-top: var(--drop, 0px); }
    .step:nth-child(2) { --drop: 3rem; }
    .step:nth-child(3) { --drop: 6rem; }
    .step:nth-child(4) { --drop: 9rem; }

    .step p { max-width: 250px; }

    .step__link--v { display: none; }

    .step__link--h {
        display: block;
        position: absolute;
        top: calc(var(--drop, 0px) + 1.5rem);
        right: -4.5rem;
        width: 90px;
        height: 54px;
    }
}

/* ============================================
   HOME: PROFILES
   ============================================ */
.profiles { padding-bottom: calc(var(--section-y) * 0.5); }

.profiles-carousel {
    position: relative;
}

.profiles-strip { display: none; }

.profiles-track {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0.5rem 0.25rem 1.25rem;
    margin-inline: -0.25rem;
}

.profiles-track::-webkit-scrollbar { display: none; }

.profiles-track > .profile-card {
    flex: 0 0 min(78%, 300px);
    scroll-snap-align: center;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .profiles-track > .profile-card { flex-basis: 44%; }
}

@media (min-width: 1024px) {
    .profiles-strip {
        display: block;
        position: absolute;
        left: -22px;
        right: -22px;
        top: 34%;
        height: 96px;
        background-color: var(--apricot);
        background-image: var(--jigsaw-terracotta);
        background-size: 64px 64px;
        border: 1.5px solid var(--border);
        border-radius: 48px;
    }

    .profiles-track {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.75rem;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .section-cta { margin-top: 2.5rem; }
}

/* ============================================
   HOME: FEATURES
   ============================================ */
.features { padding-top: calc(var(--section-y) * 0.6); }

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

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

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

/* ============================================
   HOME: PROS & CONS
   ============================================ */
.pc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pc-card {
    display: flex;
    flex-direction: column;
    background: var(--cream-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.pc-card__head {
    padding: 0.9rem 1rem;
    text-align: center;
    border-bottom: 1.5px solid var(--border);
}

.pc-card__head h3 {
    margin: 0;
    font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
    font-weight: 700;
}

.pc-card--pros .pc-card__head { background: var(--apricot); }
.pc-card--cons .pc-card__head { background: var(--terracotta); }
.pc-card--cons .pc-card__head h3 { color: var(--on-accent); }

.pc-card__body {
    padding: 1.35rem 1.4rem 1.5rem;
}

.pc-verdict {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1.5px dashed #E2C7AE;
}

.pc-verdict p:last-child { margin-bottom: 0; }

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

/* ============================================
   HOME: SAFETY
   ============================================ */
.safety-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    max-width: 1040px;
    margin: 0 auto;
}

.safety-card {
    background: var(--cream-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    box-shadow: var(--shadow-sm);
}

.safety-card h3 {
    text-align: center;
    margin-bottom: 1rem;
}

.safety-card p:last-child { margin-bottom: 0; }

.safety-link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.safety-link--h svg { width: 240px; height: 48px; }
.safety-link--v { display: none; }

@media (min-width: 1024px) {
    .safety-grid {
        grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
        gap: 1.25rem;
    }

    .safety-link--h { display: none; }
    .safety-link--v { display: flex; }
    .safety-link--v svg { width: 60px; height: 300px; }
}

/* ============================================
   HOME: WHY CONSIDER
   ============================================ */
.why {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 660px;
    padding-block: var(--section-y);
    background-color: #5A3A2A;
    color: #FBEFE2;
}

.why::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("./assets/a0372743eb929fe02bb776a141404de9.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 72% center;
}

.why::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(44, 20, 14, 0.9) 0%, rgba(44, 20, 14, 0.7) 55%, rgba(44, 20, 14, 0) 88%);
}

.why .container { position: relative; z-index: 1; }

.why__content { max-width: 520px; }

.why h2 { color: var(--cream); }

.why p { color: #FBEFE2; }

.why__content .btn { margin-top: 0.5rem; }

@media (min-width: 1024px) {
    .why {
        align-items: center;
        min-height: clamp(560px, 72vh, 720px);
    }

    .why::after {
        background: linear-gradient(to right, rgba(44, 20, 14, 0.82) 0%, rgba(44, 20, 14, 0.68) 38%, rgba(44, 20, 14, 0) 58%);
    }

    .why__content { max-width: 470px; }
}

/* ============================================
   HOME: MOBILE APP
   ============================================ */
.app-band { padding-bottom: calc(var(--section-y) * 0.5); }

.app-pattern {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 30%;
    background-image: var(--jigsaw-navy);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(to left, #000 35%, transparent);
    mask-image: linear-gradient(to left, #000 35%, transparent);
    pointer-events: none;
}

.app-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.eyebrow--light { color: var(--apricot); }

.app-copy .btn { margin-top: 0.5rem; }

.app-media {
    display: flex;
    justify-content: center;
}

.phone--app {
    width: clamp(240px, 70vw, 300px);
}

.app-screen {
    gap: 0.6rem;
    padding: 2.5rem 1rem 1.1rem;
}

.app-screen__photo {
    flex: 1 1 auto;
    width: 100%;
    height: 0;
    min-height: 70px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 18px;
}

.app-screen__name {
    margin: 0.2rem 0 0;
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--brown);
    font-size: 1.125rem;
}

.app-screen__chip {
    font-size: 0.78rem;
}

.app-screen__badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.15rem;
}

.app-screen .store-badge {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    justify-content: center;
}

.navy-curve {
    display: block;
    line-height: 0;
    background: var(--cream);
}

.navy-curve svg {
    display: block;
    width: 100%;
    height: clamp(36px, 6vw, 96px);
}

@media (min-width: 1024px) {
    .app-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 4rem;
    }
}

/* ============================================
   HOME: FAQ & FINAL CTA
   ============================================ */
.faq { padding-top: calc(var(--section-y) * 0.6); }

.faq-more {
    text-align: center;
    margin: 1.75rem auto 0;
    max-width: 640px;
    color: var(--text-muted);
}

.cta-bridge {
    position: relative;
    z-index: 2;
    height: 0;
    display: flex;
    justify-content: center;
}

.cta-bridge__piece {
    width: 64px;
    height: 57px;
    transform: translateY(-50%);
}

.final-cta {
    text-align: center;
    padding-block: clamp(4rem, 9vw, 6.5rem);
}

.final-cta::before,
.final-cta::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(32px, 9vw, 140px);
    background-image: var(--jigsaw-apricot);
    background-size: 64px 64px;
    pointer-events: none;
}

.final-cta::before { left: 0; }
.final-cta::after { right: 0; }

.final-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding-inline: clamp(2.5rem, 10vw, 3rem);
}

.final-cta p { color: var(--brown); }

.final-cta__note {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 1.25rem 0 0;
}

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

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

    .btn:hover,
    .store-badge:hover,
    .profile-card:hover,
    .feature-card:hover {
        transform: none;
    }
}