/*
 * Cheers - shared design system
 * Canonical design tokens live in this file.
 */

:root {
    --cream: #FBF4EA;
    --cream-2: #F7EBDB;
    --sand: #F1E2CF;
    --line: #E6D2B8;
    --ink: #1E2333;
    --ink-soft: #464B5C;
    --burgundy: #6B2A20;
    --terracotta: #A64A33;
    --terracotta-deep: #7C3324;
    --honey: #E2A44C;
    --honey-soft: #F3CF92;
    --honey-deep: #8A5A12;
    --store-black: #16171B;
    --white: #FFFFFF;

    --font-head: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(107, 42, 32, 0.08);
    --shadow: 0 10px 30px rgba(107, 42, 32, 0.12);
    --shadow-lg: 0 24px 60px rgba(107, 42, 32, 0.18);

    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4rem, 9vw, 7.5rem);
    --header-h: 68px;
    --header-bottom: 68px;

    --focus-inner: var(--cream);
    --focus-outer: var(--ink);
    --ease: cubic-bezier(.2, .7, .2, 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 {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

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

body.menu-open { overflow: hidden; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.015em;
    color: var(--burgundy);
    margin: 0 0 0.6em;
    font-optical-sizing: auto;
}

h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.25; }

p { margin: 0 0 1em; }

a { color: var(--terracotta-deep); }
a:hover { color: var(--terracotta); }

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

img { display: block; }

strong { font-weight: 700; color: inherit; }

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

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

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

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

/* ============================================
   SECTIONS & TYPE UTILITIES
   ============================================ */

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

.section--sand { background: var(--sand); }
.section--cream-2 { background: var(--cream-2); }

.band-dark {
    --focus-inner: var(--terracotta-deep);
    --focus-outer: var(--cream);
    position: relative;
    background: linear-gradient(135deg, var(--terracotta-deep) 0%, var(--terracotta) 100%);
    color: var(--cream);
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--cream); }
.band-dark a:not([class]) { color: var(--honey-soft); }

.section-head {
    max-width: 46rem;
    margin: 0 auto clamp(2rem, 4vw, 3.25rem);
}
.section-head--center { text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }

.section-title { margin-bottom: 0.45em; }

.section-intro {
    font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
    color: var(--ink-soft);
    margin: 0;
}
.band-dark .section-intro { color: var(--cream); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin: 0 0 0.75rem;
}
.band-dark .eyebrow { color: var(--honey-soft); }

.lead {
    font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
    line-height: 1.55;
}

.note {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.band-dark .note { color: var(--cream); }

/* ============================================
   BRAND SYMBOL
   ============================================ */

.brand-symbol { display: block; flex: none; }
.brand-symbol__a { fill: var(--honey); }
.brand-symbol__b { fill: var(--terracotta); fill-opacity: 0.88; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1.6rem;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn:focus-visible,
.store-btn:focus-visible {
    outline: 3px solid var(--focus-outer);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--focus-inner);
    border-radius: var(--radius-pill);
}
.store-btn:focus-visible { border-radius: 14px; }

.btn--primary {
    background: var(--terracotta);
    color: var(--cream);
    box-shadow: 0 6px 16px rgba(124, 51, 36, 0.25);
}
.btn--primary:hover {
    background: var(--terracotta-deep);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 51, 36, 0.3);
}

.btn--honey {
    background: var(--honey-soft);
    color: var(--burgundy);
    box-shadow: 0 6px 18px rgba(30, 35, 51, 0.18);
}
.btn--honey:hover {
    background: var(--cream);
    color: var(--burgundy);
    transform: translateY(-2px);
}

.btn--ghost {
    background: transparent;
    border-color: currentColor;
    color: var(--cream);
}
.btn--ghost:hover {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--burgundy);
}

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

.btn--sm { min-height: 44px; padding: 0.55rem 1.15rem; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0.9rem 2rem; font-size: 1.0625rem; }
.btn--block { display: flex; width: 100%; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem;
}

/* Store buttons */
.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 56px;
    min-width: 186px;
    padding: 0.55rem 1.25rem 0.55rem 1rem;
    background: var(--store-black);
    color: var(--white);
    border: 1px solid #3A3B42;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.store-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.store-btn__glyph { width: 26px; height: 26px; flex: none; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn__small { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.02em; }
.store-btn__big { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-h);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    color: var(--terracotta-deep);
    flex: none;
    min-height: 44px;
}
.site-brand:hover { color: var(--terracotta); }
.site-brand__mark { width: 34px; height: 34px; }
.site-brand__text {
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 600;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

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

.site-nav__link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}
.site-nav__link:hover { color: var(--terracotta-deep); }

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

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    color: var(--burgundy);
}
.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .25s var(--ease), opacity .2s;
}
.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 */
@media (max-width: 767.98px) {
    .site-nav {
        display: none;
        position: fixed;
        top: var(--header-bottom);
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        z-index: 99;
        background: var(--cream);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 1.25rem var(--gutter) 2rem;
        border-top: 1px solid var(--line);
    }
    .site-nav.is-open { display: block; }
    .site-nav__list li + li { border-top: 1px solid var(--line); }
    .site-nav__link {
        min-height: 56px;
        font-family: var(--font-head);
        font-size: 1.375rem;
        font-weight: 600;
        color: var(--burgundy);
    }
    .site-nav__cta { margin-top: 1.75rem; }
    .site-nav__note { margin: 0.75rem 0 0; text-align: center; font-size: 0.9375rem; color: var(--ink-soft); }
}

@media (max-width: 359.98px) {
    .header-actions .header-cta { display: none; }
    .site-brand__text { font-size: 1.5rem; }
}

@media (min-width: 768px) {
    :root { --header-h: 76px; }
    .site-nav {
        display: flex;
        align-items: center;
        margin-left: auto;
    }
    .site-nav__list { display: flex; gap: clamp(0.75rem, 2.2vw, 2rem); }
    .site-nav__link {
        min-height: 44px;
        font-size: 0.9875rem;
        position: relative;
    }
    .site-nav__link::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: 8px;
        height: 2px;
        background: var(--honey);
        border-radius: 2px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform .25s var(--ease);
    }
    .site-nav__link:hover::after { transform: scaleX(1); }
    .site-nav__cta { display: none; }
    .header-actions { margin-left: clamp(0.75rem, 2vw, 1.75rem); }
    .menu-toggle { display: none; }
    .site-brand__mark { width: 38px; height: 38px; }
    .site-brand__text { font-size: 2rem; }
}

/* ============================================
   WAVES & SCALLOPS (signature motifs)
   ============================================ */

.wave {
    position: absolute;
    left: 0;
    width: 100%;
    height: clamp(44px, 7vw, 110px);
    pointer-events: none;
    z-index: 2;
}
.wave--bottom { bottom: -1px; }
.wave--top { top: -1px; transform: scaleY(-1); }
.wave--bottom.wave--mirror { transform: scaleX(-1); }
.wave--top.wave--mirror { transform: scale(-1, -1); }
.wave__base { fill: var(--wave-fill, var(--cream)); }
.wave__accent { fill: var(--wave-accent, var(--honey)); }

.scallop {
    display: block;
    width: 100%;
    height: clamp(40px, 5vw, 72px);
    pointer-events: none;
}
.scallop circle { stroke: var(--cream); stroke-width: 4; }
.scallop__honey { fill: var(--honey); }
.scallop__terra { fill: var(--terracotta); }

/* ============================================
   FEATURE ITEMS
   ============================================ */

.feature-item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.feature-item__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--cream-2);
    border: 1px solid var(--line);
    color: var(--terracotta);
}
.section--sand .feature-item__icon { background: var(--cream); }
.feature-item__icon svg { width: 30px; height: 30px; }
.feature-item__title {
    font-size: 1.1875rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    position: relative;
}
.feature-item__title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: var(--honey);
}
.feature-item__text { margin: 0; color: var(--ink-soft); }

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

.profile-card {
    display: grid;
    grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.875rem;
    background: var(--cream);
    border: 1px solid var(--honey-soft);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.profile-card__media {
    border-radius: 14px;
    overflow: hidden;
    background: var(--sand);
    align-self: stretch;
}
.profile-card__media img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    object-position: center 25%;
}
.profile-card__body { padding: 0.25rem 0.25rem 0.25rem 0; }
.profile-card__name { font-size: 1.375rem; margin-bottom: 0.5rem; }
.profile-card__age { font-weight: 600; color: var(--terracotta); }
.profile-card__intro { margin: 0.75rem 0 0.75rem; font-size: 1rem; color: var(--ink); }
.profile-card__friend {
    margin: 0;
    padding-top: 0.625rem;
    border-top: 1px dashed var(--line);
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--ink-soft);
}
.profile-card__friend-label { font-style: normal; font-weight: 700; color: var(--terracotta-deep); }

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.chip {
    padding: 0.25rem 0.7rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--burgundy);
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}

@media (max-width: 419.98px) {
    .profile-card { grid-template-columns: minmax(0, 1fr); }
    .profile-card__media img { aspect-ratio: 4 / 4; min-height: 0; height: auto; }
}

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

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    max-width: 52rem;
    margin-inline: auto;
}

.faq-item__heading { margin: 0; font-size: inherit; }

.faq-item__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 58px;
    padding: 0.85rem 1.25rem 0.85rem 1.5rem;
    background: var(--cream);
    color: var(--burgundy);
    border: 2px solid var(--terracotta);
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.faq-item__trigger:hover { background: var(--cream-2); }
.faq-item__trigger[aria-expanded="true"] {
    background: var(--terracotta);
    color: var(--cream);
}
.faq-item__trigger:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
    border-radius: var(--radius-pill);
}
.faq-item__chevron { flex: none; transition: transform .25s var(--ease); }
.faq-item__trigger[aria-expanded="true"] .faq-item__chevron { transform: rotate(180deg); }

.faq-item__panel { padding: 1rem 1.5rem 0.5rem; }
.faq-item__panel[hidden] { display: none; }
.faq-item__answer p:last-child { margin-bottom: 0; }

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

.legal-hero {
    position: relative;
    background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(5rem, 10vw, 8rem);
}
.legal-hero__inner { position: relative; z-index: 1; }
.legal-hero__title { max-width: 18ch; margin-bottom: 0.35em; }
.legal-hero__updated {
    display: inline-block;
    margin: 0 0 1.25rem;
    padding: 0.35rem 0.9rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--burgundy);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
}
.legal-hero__intro { max-width: 62ch; font-size: 1.125rem; color: var(--ink-soft); margin: 0; }
.legal-hero__symbol {
    position: absolute;
    right: -40px;
    top: 50%;
    width: clamp(160px, 26vw, 340px);
    height: auto;
    transform: translateY(-55%);
    opacity: 0.16;
    z-index: 0;
}

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

.legal-toc {
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.25rem 1.25rem;
}
.legal-toc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--burgundy);
    cursor: pointer;
    list-style: none;
}
.legal-toc__summary::-webkit-details-marker { display: none; }
.legal-toc__summary::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 2px solid var(--terracotta);
    border-bottom: 2px solid var(--terracotta);
    transform: rotate(45deg) translateY(-3px);
    transition: transform .2s var(--ease);
}
.legal-toc[open] .legal-toc__summary::after { transform: rotate(-135deg) translateY(-3px); }
.legal-toc__list { margin: 0 0 1rem; padding-left: 1.25rem; }
.legal-toc__list li { margin: 0; }
.legal-toc__list a {
    display: block;
    padding: 0.45rem 0;
    min-height: 40px;
    font-size: 0.9875rem;
    color: var(--ink);
    text-decoration: none;
}
.legal-toc__list a:hover { color: var(--terracotta-deep); text-decoration: underline; }

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

.prose { max-width: 68ch; }
.prose h2 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    margin-top: 2.75rem;
    padding-top: 0.25rem;
    scroll-margin-top: calc(var(--header-h) + 1.25rem);
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 1.75rem; margin-bottom: 0.5rem; color: var(--terracotta-deep); }
.prose ul, .prose ol { margin: 0 0 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--terracotta); }
.prose a:not(.btn) { color: var(--terracotta-deep); font-weight: 500; }

.callout {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-left: 5px solid var(--honey);
    border-radius: var(--radius-sm);
}
.callout p:last-child { margin-bottom: 0; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9875rem;
    background: var(--cream);
}
.data-table th, .data-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.data-table thead th { background: var(--sand); color: var(--burgundy); font-weight: 700; }

.legal-return {
    margin-top: 3rem;
    padding: 1.75rem;
    background: var(--sand);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.legal-return p { margin: 0; font-weight: 500; }

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

.site-footer {
    background: var(--cream-2);
    border-top: 1px solid var(--line);
    padding-top: clamp(3rem, 6vw, 4.5rem);
    font-size: 0.9875rem;
}
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
.site-footer__desc { max-width: 36ch; margin: 0.9rem 0 0; color: var(--ink-soft); }
.site-footer__heading {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
}
.site-footer__list a:hover { color: var(--terracotta-deep); text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-top: 2.5rem;
    padding-block: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.9375rem;
}
.site-footer__bottom p { margin: 0; }

@media (min-width: 768px) {
    .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
}

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

.hero {
    --focus-inner: var(--terracotta-deep);
    --focus-outer: var(--cream);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: min(calc(100svh - var(--header-h)), 880px);
    padding: 8rem 0 calc(clamp(44px, 7vw, 110px) + 2rem);
    background-color: var(--terracotta-deep);
    color: var(--cream);
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("./assets/ee97caac61b164c10b79fedcb05ec8eb.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 78% 18%;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(124, 51, 36, 0.95) 0%, rgba(124, 51, 36, 0.88) 50%, rgba(124, 51, 36, 0.35) 78%, rgba(124, 51, 36, 0.05) 100%);
}
.hero__inner { position: relative; z-index: 3; }
.hero__content { max-width: 38rem; }
.hero__eyebrow { color: var(--honey-soft); }
.hero__title {
    color: var(--cream);
    font-size: clamp(2rem, 1.1rem + 3.4vw, 3.75rem);
    margin-bottom: 0.45em;
}
.hero__lead { color: var(--cream); margin-bottom: 1.5rem; }
.hero__note { color: var(--cream); margin: 1rem 0 0; }

@media (min-width: 1024px) {
    .hero {
        align-items: center;
        min-height: clamp(580px, 84vh, 780px);
        padding-top: 4rem;
    }
    .hero__bg { background-position: right center; }
    .hero::before {
        background: linear-gradient(90deg, rgba(124, 51, 36, 0.88) 0%, rgba(124, 51, 36, 0.72) 32%, rgba(124, 51, 36, 0) 56%);
    }
    .hero__content { max-width: 34rem; }
}

/* ============================================
   HOME - VALUE PROPOSITION
   ============================================ */

.value__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.value__copy p { color: var(--ink-soft); }
.value-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}
.value-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--ink-soft);
}
.value-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--honey);
    box-shadow: 5px 0 0 var(--terracotta);
}
.value-list strong { color: var(--burgundy); }
.value__art { display: grid; place-items: center; }
.network { width: min(100%, 420px); height: auto; }
.network__line--honey { stroke: var(--honey); }
.network__line--terra { stroke: var(--terracotta); stroke-opacity: 0.7; }
.net-node circle:first-child { fill: var(--cream); stroke: var(--terracotta); stroke-width: 2; }
.net-node__head, .net-node__body { fill: none; stroke: var(--terracotta); stroke-width: 2; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
    .js .network .net-node { opacity: 0; transition: opacity .6s var(--ease); }
    .js .network.is-visible .net-node { opacity: 1; }
    .js .network .net-node:nth-of-type(2) { transition-delay: .08s; }
    .js .network .net-node:nth-of-type(3) { transition-delay: .16s; }
    .js .network .net-node:nth-of-type(4) { transition-delay: .24s; }
    .js .network .net-node:nth-of-type(5) { transition-delay: .32s; }
    .js .network .net-node:nth-of-type(6) { transition-delay: .40s; }
    .js .network .net-node:nth-of-type(7) { transition-delay: .48s; }
    .js .network .net-node:nth-of-type(8) { transition-delay: .56s; }
}

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

/* ============================================
   HOME - DISCOVER
   ============================================ */

.discover__symbol {
    position: absolute;
    top: 50%;
    width: clamp(280px, 40vw, 560px);
    height: auto;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}
.discover__symbol rect { fill: none; stroke: var(--terracotta); stroke-opacity: 0.08; stroke-width: 1.2; }
.discover__symbol--left { left: -16vw; }
.discover__symbol--right { right: -16vw; }
.discover__inner { position: relative; z-index: 1; }
.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: 1020px;
    margin-inline: auto;
}
.discover__caption {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.9375rem;
    color: var(--ink-soft);
}
.discover__cta { display: flex; justify-content: center; margin-top: 1.5rem; }

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

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

.steps-track { position: relative; }
.steps-inner { position: relative; }
.ribbon { position: absolute; pointer-events: none; z-index: 0; overflow: visible; }
.ribbon path { fill: none; stroke-linecap: round; }
.ribbon__body { stroke-width: 10; }
.ribbon__echo { stroke-width: 22; stroke-opacity: 0.22; }
.ribbon--h { display: none; }
.ribbon--v { left: 0; top: 0; width: 72px; height: 100%; }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2.25rem;
    position: relative;
    z-index: 1;
}
.step {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.step__badge {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 6px 10px rgba(107, 42, 32, 0.22));
}
.step__badge .brand-symbol { position: absolute; inset: 0; width: 100%; height: 100%; }
.step__badge .brand-symbol__b { fill: var(--terracotta-deep); fill-opacity: 0.92; }
.step__num {
    position: relative;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--cream);
    text-shadow: 0 1px 3px rgba(80, 25, 15, 0.7);
}
.step__title { font-size: 1.3rem; margin: 0.6rem 0 0.4rem; }
.step__body p { margin: 0; color: var(--ink-soft); }

@media (min-width: 768px) {
    .ribbon--v { display: none; }
    .ribbon--h { display: block; left: 0; top: -4px; width: 100%; height: 80px; }
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
    .step { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
    .step__title { margin-top: 1rem; }
}

/* ============================================
   HOME - FEATURES & SAFETY
   ============================================ */

.feature-item__icon .ic-accent { stroke: var(--honey); }
.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem 3.5rem;
    max-width: 1000px;
    margin-inline: auto;
}
.safety-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    max-width: 1080px;
    margin-inline: auto;
}
.safety-grid .feature-item {
    height: 100%;
    padding: 1.5rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.safety-grid .feature-item__icon { background: var(--cream-2); }
.safety-notes {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    max-width: 1080px;
    margin: 2rem auto 0;
}
.safety-note {
    padding: 1.75rem;
    background: var(--cream);
    border-radius: var(--radius);
    border-left: 5px solid var(--honey);
    box-shadow: var(--shadow-sm);
}
.safety-note h3 { margin-bottom: 0.6rem; }
.safety-note p { color: var(--ink-soft); }
.safety-note p:last-child { margin-bottom: 0; }

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

/* ============================================
   HOME - FRIENDS BAND
   ============================================ */

.friends {
    --focus-inner: var(--terracotta-deep);
    --focus-outer: var(--cream);
    position: relative;
    isolation: isolate;
    background-color: var(--terracotta-deep);
    color: var(--cream);
}
.friends__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("./assets/e57393617f87354ff6cd3990224ff61f.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 72% center;
}
.friends::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(124, 51, 36, 0.95) 0%, rgba(124, 51, 36, 0.88) 58%, rgba(124, 51, 36, 0.25) 88%);
}
.friends__edge { position: relative; z-index: 1; line-height: 0; }
.friends__edge--top { background: linear-gradient(180deg, var(--sand) 50%, transparent 50%); }
.friends__edge--bottom { background: linear-gradient(180deg, transparent 50%, var(--terracotta-deep) 50%); }
.friends__body { position: relative; z-index: 1; padding-block: 14rem 3.5rem; }
.friends__content { max-width: 34rem; }
.friends__eyebrow { color: var(--honey-soft); }
.friends h2 { color: var(--cream); }
.friends__content p { color: var(--cream); }
.friends__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    font-weight: 700;
    color: var(--honey-soft);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.friends__link:hover { color: var(--cream); }

@media (min-width: 1024px) {
    .friends::before {
        background: linear-gradient(90deg, rgba(124, 51, 36, 0.88) 0%, rgba(124, 51, 36, 0.7) 34%, rgba(124, 51, 36, 0) 56%);
    }
    .friends__bg { background-position: right center; }
    .friends__body { padding-block: 6rem; }
    .friends__content { max-width: 32rem; }
}

/* ============================================
   HOME - APP DOWNLOAD
   ============================================ */

.download {
    padding: var(--section-y) 0 calc(var(--section-y) + clamp(44px, 7vw, 110px));
    background: linear-gradient(135deg, var(--terracotta-deep) 0%, var(--terracotta) 100%);
}
.download__grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.download__copy { order: -1; }
.download__copy p { color: var(--cream); }
.download__note { margin: 1rem 0 0; }
.download__stage {
    position: relative;
    display: grid;
    place-items: center;
    padding: 1.5rem 0;
}
.download__stage::before {
    content: "";
    position: absolute;
    inset: -10% -5%;
    background: radial-gradient(circle at 50% 50%, rgba(243, 207, 146, 0.55) 0%, rgba(226, 164, 76, 0.22) 38%, rgba(226, 164, 76, 0) 68%);
    pointer-events: none;
}

.phone {
    position: relative;
    width: min(290px, 78vw);
    padding: 12px;
    background: var(--store-black);
    border-radius: 44px;
    box-shadow: 0 30px 60px rgba(40, 10, 5, 0.45), inset 0 0 0 2px #2D2E35;
    transform: rotate(-4deg);
}
.phone::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 50%;
    width: 92px;
    height: 24px;
    transform: translateX(-50%);
    background: var(--store-black);
    border-radius: 14px;
    z-index: 2;
}
.phone__screen {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 2.6rem 1rem 0.8rem;
    background: var(--cream);
    border-radius: 33px;
    overflow: hidden;
    color: var(--ink);
}
.phone__top { display: flex; align-items: center; justify-content: space-between; }
.phone__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-head);
    font-style: italic;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--terracotta-deep);
}
.phone__mark { width: 22px; height: 22px; }
.phone__menu { display: grid; gap: 4px; }
.phone__menu span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink-soft); }
.phone__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 18px;
    background: var(--sand);
}
.phone__name {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--burgundy);
}
.phone__name span { color: var(--terracotta); }
.phone__chips .chip { font-size: 0.75rem; padding: 0.15rem 0.55rem; }
.phone__intro { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-soft); }
.phone__nav {
    display: flex;
    justify-content: space-around;
    padding-top: 0.7rem;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
}
.phone__nav svg { width: 22px; height: 22px; }
.phone__nav .is-active { color: var(--terracotta); }

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

/* ============================================
   HOME - FINAL CTA
   ============================================ */

.final {
    position: relative;
    padding: calc(var(--section-y) + clamp(44px, 7vw, 110px)) 0 var(--section-y);
    background: linear-gradient(180deg, var(--honey-soft) 0%, var(--honey) 100%);
}
.final__symbol {
    position: absolute;
    right: -70px;
    top: 50%;
    width: 280px;
    height: auto;
    transform: translateY(-30%);
    z-index: 0;
    opacity: 0.35;
    filter: drop-shadow(0 0 40px rgba(255, 244, 228, 0.7));
}
.final__symbol .brand-symbol__a { fill: var(--cream); fill-opacity: 0.75; }
.final__symbol .brand-symbol__b { fill: var(--honey-soft); fill-opacity: 0.9; }
.final__inner { position: relative; z-index: 1; }
.final__content { max-width: 36rem; }
.final__content .lead { color: var(--ink); margin-bottom: 1.75rem; }
.final__note { color: var(--ink); margin: 1rem 0 0; }

@media (min-width: 1024px) {
    .final { background: linear-gradient(100deg, var(--honey-soft) 0%, var(--honey) 50%, var(--terracotta) 100%); }
    .final__symbol { right: 8%; width: 380px; opacity: 1; transform: translateY(-40%) rotate(-6deg); }
}

/* ============================================
   REVEAL (one-way, JS-enhanced)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity .6s var(--ease), transform .6s var(--ease);
    }
    .js [data-reveal].is-visible {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    .btn:hover, .store-btn:hover, .profile-card:hover { transform: none; }
}