/*
 * 2nd Chances - design system
 * Warm cream surfaces, charcoal-navy ink, honey-gold accent.
 */

:root {
    --cream: #FBF4EA;
    --cream-soft: #FDF9F3;
    --sand: #F3E8D7;
    --beige: #EDE0CC;
    --ink: #1F2A37;
    --ink-soft: #46505E;
    --gold: #C9963F;
    --gold-light: #E9C27A;
    --gold-deep: #8A5D1C;
    --terracotta: #C8794A;
    --line: rgba(201, 150, 63, 0.55);
    --line-soft: rgba(201, 150, 63, 0.28);
    --grad-gold: linear-gradient(135deg, #EDCB86 0%, #DDA75A 55%, #CF8A52 100%);
    --grad-gold-hover: linear-gradient(135deg, #F1D296 0%, #E2AF63 55%, #D3925A 100%);
    --shadow-sm: 0 2px 8px rgba(120, 82, 30, 0.08);
    --shadow-md: 0 10px 30px rgba(120, 82, 30, 0.12);
    --shadow-glow: 0 8px 28px rgba(221, 167, 90, 0.35);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 28px;
    --radius-pill: 999px;
    --font-head: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --container: 1240px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section-y: clamp(3.5rem, 8vw, 6rem);
    --header-h: 68px;
    --header-bottom: 68px;
    --bar-h: 0px;
    --focus: 0 0 0 3px var(--cream), 0 0 0 6px var(--gold);
}

/* ============ 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 { max-width: 100%; overflow-x: auto; }
.table-wrapper { 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, 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) + 16px);
}
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-x: hidden;
    padding-bottom: var(--bar-h);
}
body.menu-open { overflow: hidden; }
img { display: block; }
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 4.2vw + 1rem, 3.9rem); }
h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.125rem, 0.4vw + 1rem, 1.3rem); }
p { margin: 0 0 1em; }
a { color: var(--gold-deep); }
a:hover { color: var(--ink); }
ul, ol { padding-left: 1.25rem; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.eyebrow {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.75rem;
}
.lead { font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 200;
    background: var(--ink);
    color: var(--cream);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: var(--cream); }

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.8rem 1.75rem;
    border: 0;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn--primary {
    background: var(--grad-gold);
    color: var(--ink);
    box-shadow: var(--shadow-glow);
}
.btn--primary:hover { background: var(--grad-gold-hover); transform: translateY(-1px); box-shadow: 0 12px 32px rgba(221, 167, 90, 0.45); }
.btn--secondary {
    background: var(--cream-soft);
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn--secondary:hover { border-color: var(--gold); transform: translateY(-1px); }
.btn--text {
    background: transparent;
    color: var(--gold-deep);
    padding-inline: 0.25rem;
    text-decoration: underline;
    text-underline-offset: 0.25em;
    text-decoration-thickness: 1px;
}
.btn--text:hover { color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0.6rem 1.25rem; font-size: 1rem; }
.btn--lg { min-height: 56px; padding: 1rem 2.4rem; font-size: 1.125rem; }
.btn--block { width: 100%; }
.btn:focus-visible { box-shadow: var(--focus); border-radius: var(--radius-pill); }

/* ============ Icons ============ */
.icon { width: 24px; height: 24px; flex: none; }
.icon-badge {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--cream-soft);
    border: 1px solid var(--line);
    color: var(--gold-deep);
}
.icon-badge .icon { width: 22px; height: 22px; }

/* ============ Connection seams ============ */
.seam {
    position: absolute;
    width: clamp(180px, 32vw, 420px);
    height: auto;
    pointer-events: none;
    z-index: 0;
    fill: none;
    stroke-linecap: round;
}
.seam__glow { stroke: rgba(233, 194, 122, 0.45); stroke-width: 7; }
.seam__line { stroke: var(--gold); stroke-width: 1.6; }
.seam--tl { top: 0; left: 0; }
.seam--tr { top: 0; right: 0; transform: scaleX(-1); }
.seam--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.seam--br { bottom: 0; right: 0; transform: scale(-1, -1); }
.seam--faint { opacity: 0.45; }
.seam--legal { width: clamp(160px, 26vw, 340px); opacity: 0.55; }

/* ============ Header ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(251, 244, 234, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--header-h);
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gold-deep);
    flex: none;
}
.site-brand__mark { width: 34px; height: 24px; color: var(--gold); }
.site-brand__text {
    font-family: var(--font-head);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.site-brand:hover { color: var(--ink); }

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

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}
.menu-toggle__bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    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);
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 120;
    background: var(--cream);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.25rem var(--gutter) 2rem;
    display: none;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid var(--line-soft);
}
.site-nav.is-open { display: flex; }
.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list li { border-bottom: 1px solid var(--line-soft); }
.site-nav__link {
    display: flex;
    align-items: center;
    min-height: 56px;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
}
.site-nav__link:hover { color: var(--gold-deep); }
.site-nav__note { margin: 0.75rem 0 0; text-align: center; color: var(--ink-soft); font-size: 0.9375rem; }

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

@media (min-width: 1024px) {
    :root { --header-h: 76px; }
    .menu-toggle { display: none; }
    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        padding: 0;
        background: transparent;
        border: 0;
        overflow: visible;
        flex: 1;
        justify-content: center;
    }
    .site-nav__list { display: flex; gap: 0.25rem; }
    .site-nav__list li { border: 0; }
    .site-nav__link {
        min-height: 44px;
        padding: 0 0.85rem;
        font-family: var(--font-body);
        font-size: 1rem;
        border-radius: var(--radius-pill);
        border: 1px solid transparent;
        transition: border-color .2s ease, color .2s ease;
    }
    .site-nav__link:hover { border-color: var(--line); }
    .site-nav__drawer-cta { display: none; }
    .site-brand__text { font-size: 1.65rem; }
}

/* ============ Shared section primitives ============ */
.section { position: relative; padding-block: var(--section-y); }
.section > .container,
.panel > .panel__inner { position: relative; z-index: 1; }
.section--sand { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }

/* Two-column mosaic: each half is an independent panel */
.mosaic { display: grid; grid-template-columns: minmax(0, 1fr); }
.mosaic__col { display: flex; flex-direction: column; min-width: 0; }
.panel {
    position: relative;
    overflow: clip;
    padding: var(--section-y) var(--gutter);
    flex: 1 1 auto;
}
.panel__inner { max-width: 640px; margin-inline: auto; }
.panel--sand { background: var(--sand); }
.panel__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
@media (min-width: 1024px) {
    .mosaic { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .panel { padding: clamp(4rem, 6vw, 5.5rem) clamp(2rem, 4vw, 3.5rem); }
}

/* ============ Benefit rows ============ */
.benefit-list { display: grid; gap: 1.25rem; }
.benefit { display: flex; gap: 1rem; align-items: flex-start; }
.benefit__title { font-size: 1.125rem; margin: 0.15rem 0 0.25rem; }
.benefit__text { margin: 0; color: var(--ink-soft); }

/* ============ Profile cards ============ */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.75rem, 2vw, 1.25rem);
    list-style: none;
    margin: 0;
    padding: 0;
}
.profile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 1.25rem 0.85rem 1.1rem;
    background: rgba(253, 249, 243, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md), 0 0 24px rgba(233, 194, 122, 0.25);
    transition: transform .25s ease, box-shadow .25s ease;
}
.profile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md), 0 0 32px rgba(233, 194, 122, 0.45); }
.profile__avatar {
    width: clamp(72px, 18vw, 96px);
    height: clamp(72px, 18vw, 96px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold-light);
    box-shadow: 0 0 0 4px var(--cream-soft), 0 0 0 5px var(--line);
    margin-bottom: 0.85rem;
}
.profile__name { font-size: 1.125rem; margin: 0 0 0.5rem; }
.profile__age { font-weight: 500; color: var(--ink-soft); }
.profile__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0 0 0.6rem;
    padding: 0;
}
.tag {
    font-size: 0.875rem;
    line-height: 1.3;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-pill);
    background: var(--sand);
    border: 1px solid var(--line-soft);
    color: var(--ink);
}
.profile__intro { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); }
@media (min-width: 1280px) {
    .profile-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============ Steps ============ */
.steps {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 1.5rem 1.1rem;
    background: var(--cream-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.step__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--cream);
    border: 1px solid var(--line);
    color: var(--gold-deep);
    margin-bottom: 0.85rem;
}
.step__icon .icon { width: 34px; height: 34px; }
.step__num {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-deep);
}
.step__title { margin: 0.35rem 0 0.4rem; font-size: 1.125rem; }
.step__text { margin: 0; font-size: 1rem; color: var(--ink-soft); }
@media (min-width: 600px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .steps--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.85rem; }
    .steps--row .step { padding: 1.4rem 0.85rem; }
}

/* ============ Safety cards ============ */
.safety-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}
.safety-card {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 1.5rem 1.25rem;
    background: var(--cream-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.safety-card__icon { display: inline-flex; color: var(--gold-deep); margin-bottom: 0.75rem; }
.safety-card__icon .icon { width: 44px; height: 44px; }
.safety-card__title { font-size: 1.125rem; margin-bottom: 0.5rem; }
.safety-card__text { color: var(--ink-soft); margin-bottom: 0.5rem; font-size: 1rem; }
.safety-card__list { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: 1rem; }
.safety-card__list li + li { margin-top: 0.3rem; }
.safety-card__list li::marker { color: var(--gold); }
@media (min-width: 768px) {
    .safety-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 0.75rem; align-items: start; position: relative; z-index: 1; }
.faq-item {
    background: var(--cream-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 56px;
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    border-radius: var(--radius-sm);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__chevron { color: var(--gold-deep); transition: transform .25s ease; }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item__a { padding: 0 1.1rem 1.1rem; color: var(--ink-soft); }
.faq-item__a p { margin: 0; }

/* ============ Store badges ============ */
.store-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0.5rem 1.1rem 0.5rem 0.9rem;
    background: #111418;
    color: #fff;
    border: 1px solid #111418;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-body);
    text-align: left;
    transition: transform .2s ease, box-shadow .2s ease;
}
.store-badge:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.store-badge:focus-visible { box-shadow: var(--focus); border-radius: 12px; }
.store-badge__glyph { width: 26px; height: 26px; flex: none; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge__small { font-size: 0.75rem; letter-spacing: 0.02em; }
.store-badge__big { font-size: 1.1875rem; font-weight: 700; }

/* ============ Legal pages ============ */
.legal-hero {
    position: relative;
    overflow: clip;
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line-soft);
}
.legal-hero__inner { position: relative; z-index: 1; max-width: 860px; }
.legal-hero__title { font-size: clamp(2rem, 3vw + 1rem, 3.2rem); }
.legal-hero__date { font-weight: 500; color: var(--ink-soft); margin-bottom: 0.75rem; }
.legal-hero__lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 680px; margin: 0; }

.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-block: clamp(2rem, 5vw, 4rem);
}
.legal-toc {
    background: var(--cream-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    align-self: start;
}
.legal-toc__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0.75rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    border-radius: var(--radius);
}
.legal-toc__summary::-webkit-details-marker { display: none; }
.legal-toc__chevron { color: var(--gold-deep); transition: transform .25s ease; }
.legal-toc[open] .legal-toc__chevron { transform: rotate(180deg); }
.legal-toc__list { margin: 0; padding: 0 1.1rem 1rem 2.2rem; }
.legal-toc__list li { padding: 0.15rem 0; }
.legal-toc__list li::marker { color: var(--gold-deep); }
.legal-toc__list a {
    display: inline-block;
    padding: 0.35rem 0;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9375rem;
    line-height: 1.4;
}
.legal-toc__list a:hover { color: var(--gold-deep); text-decoration: underline; }

.prose { max-width: 760px; min-width: 0; }
.prose h2 {
    font-size: clamp(1.4rem, 1vw + 1rem, 1.75rem);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-soft);
}
.prose > h2:first-child, .prose > section:first-child > h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.25em; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--gold-deep); }
.prose section { overflow: visible; scroll-margin-top: calc(var(--header-h) + 16px); }
.callout {
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
    background: var(--sand);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout p:last-child { margin: 0; }
.data-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 1rem; }
.data-table th, .data-table td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.data-table thead th { background: var(--sand); font-family: var(--font-head); font-weight: 600; }
.table-wrapper { margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream-soft); }
.legal-return {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--cream-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.legal-return p { margin: 0; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.data-table tbody th { font-weight: 700; }
@media (min-width: 768px) {
    .data-table { min-width: 0; }
}
@media (min-width: 1024px) {
    .legal-layout { grid-template-columns: 260px minmax(0, 760px); gap: 3.5rem; justify-content: center; }
    .legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
    .legal-toc__summary { cursor: pointer; }
    .legal-toc__chevron { display: none; }
}

/* ============ Footer ============ */
.site-footer {
    position: relative;
    overflow: clip;
    background: var(--cream);
    border-top: 1px solid var(--line-soft);
    padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem;
}
.site-footer__inner { position: relative; z-index: 1; }
.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}
.site-footer__brand p { margin: 0.85rem 0 0; color: var(--ink-soft); max-width: 340px; }
.site-footer__title {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.75rem;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--ink);
    text-decoration: none;
}
.site-footer__col li a:hover { color: var(--gold-deep); text-decoration: underline; }
.site-footer__col p { color: var(--ink-soft); margin-bottom: 0.25rem; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 0.9375rem;
    color: var(--ink-soft);
}
.site-footer__bottom p { margin: 0; }
.seam--footer { width: clamp(160px, 24vw, 320px); }
@media (min-width: 600px) {
    .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
}

/* ============ Mobile action bar ============ */
.mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem var(--gutter) calc(0.65rem + env(safe-area-inset-bottom));
    background: var(--cream-soft);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(120, 82, 30, 0.1);
}
.mobile-bar__text { margin: 0; font-weight: 500; font-size: 0.9375rem; line-height: 1.3; }
@media (max-width: 767.98px) {
    :root { --bar-h: calc(68px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
    .mobile-bar { display: none; }
}

/* ============ Home: hero ============ */
.hero {
    position: relative;
    overflow: clip;
    display: flex;
    align-items: flex-end;
    padding: clamp(200px, 56vw, 440px) 0 1.5rem;
    border-bottom: 1px solid var(--gold);
}
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("./assets/400f7aa3605c9d22af173bb9161f96bb.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 70% center;
}
.hero__inner { position: relative; z-index: 1; }
.hero__panel {
    max-width: 600px;
    padding: 1.5rem 1.25rem;
    background: rgba(251, 244, 234, 0.93);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.hero__panel h1 { margin-bottom: 0.4em; }
.hero__lead { color: var(--ink); margin-bottom: 1.25rem; }
.hero__actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}
.hero__actions::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 50%;
    width: 260px;
    height: 140px;
    transform: translateY(-50%);
    background: radial-gradient(closest-side, rgba(233, 194, 122, 0.45), rgba(233, 194, 122, 0));
    z-index: -1;
    pointer-events: none;
}
.hero__note { margin: 0.9rem 0 0; font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); }
@media (min-width: 1024px) {
    .hero {
        min-height: max(600px, 88vh);
        align-items: center;
        padding: 4rem 0;
    }
    .hero__bg { background-position: center; }
    .hero__bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(251, 244, 234, 0.94) 0%, rgba(251, 244, 234, 0.78) 32%, rgba(251, 244, 234, 0) 55%);
    }
    .hero__panel {
        max-width: 560px;
        padding: 0;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border: 0;
        box-shadow: none;
    }
}

/* ============ Home: panel helpers ============ */
.seam--panel { width: clamp(160px, 22vw, 300px); }
.panel__bg--frost { background-image: url("./assets/7cecaa63929107d0b668ef3a9b9b6981.webp"); background-position: center top; }
.panel__bg--lake { background-image: url("./assets/725c622ead4dfa84d3c1b0d8590bc013.webp"); background-position: 22% center; }
.panel__bg--sunset { background-image: url("./assets/774d5415edb9c70da492cc17cfe9472a.webp"); background-position: center 60%; }

/* Value proposition */
.vp { display: grid; gap: 2rem; }
.vp__media {
    margin: 0 0 0 calc(-1 * var(--gutter));
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
}
.vp__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (min-width: 1024px) {
    .panel--vp { padding-left: 0; }
    .panel--vp .panel__inner { max-width: none; margin: 0; }
    .vp { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
    .vp__media { margin: 0; aspect-ratio: auto; height: 100%; min-height: 460px; }
}

/* Matches */
.panel--matches .section-head h2 { margin-bottom: 0.4em; }
.matches__net { position: relative; }
.net {
    position: absolute;
    inset: -4% -3%;
    width: 106%;
    max-width: none;
    height: 108%;
    z-index: 0;
    fill: none;
    stroke: var(--gold);
    stroke-width: 1.4;
    opacity: 0.5;
    pointer-events: none;
}
.net path { vector-effect: non-scaling-stroke; }
.matches__net .profile-grid { position: relative; z-index: 1; }
.profile-grid > li { min-width: 0; }
.matches__cta { display: flex; justify-content: center; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
@media (min-width: 1024px) {
    .panel--matches .panel__inner { max-width: 680px; }
}
@media (min-width: 1280px) and (max-width: 1439.98px) {
    .profile-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
    .panel--matches { padding-inline: 2rem; }
    .profile-grid--four .profile { padding-inline: 0.6rem; }
}

/* How it works */
.how__seam {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    z-index: 0;
    fill: none;
    pointer-events: none;
}
.how__seam path { vector-effect: non-scaling-stroke; stroke-linecap: round; }
.how__seam-glow { stroke: rgba(233, 194, 122, 0.4); stroke-width: 6; }
.how__seam-line { stroke: var(--gold); stroke-width: 1.5; }
.how__cta { display: flex; justify-content: center; margin-top: 1.5rem; }
@media (min-width: 1024px) {
    .panel--how .panel__inner, .panel--trust .panel__inner, .panel--faq .panel__inner { max-width: 680px; }
}
@media (min-width: 1280px) and (max-width: 1439.98px) {
    .steps--row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Trust */
.panel--trust { background: var(--beige); }
.safety__link {
    display: none;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    max-width: none;
    height: 2px;
    z-index: 0;
    fill: none;
    stroke: var(--gold);
    stroke-width: 2;
    pointer-events: none;
}
.safety__link path { vector-effect: non-scaling-stroke; }
.safety__answer {
    margin-top: 2rem;
    padding: 1.4rem 1.4rem 1.2rem;
    background: var(--cream-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.safety__answer h3 { margin-bottom: 0.5rem; }
.safety__answer p:last-child { margin-bottom: 0; }
.safety__links { font-size: 1rem; color: var(--ink-soft); }
@media (min-width: 768px) and (max-width: 1023.98px), (min-width: 1440px) {
    .safety__link { display: block; }
}
@media (min-width: 1024px) and (max-width: 1439.98px) {
    .panel--trust .safety-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Features */
.features { display: grid; gap: 2rem; }
.features__media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 480px;
    margin-right: calc(-1 * var(--gutter));
    padding: 2.5rem 1rem;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background-image: url("./assets/9fec49a0cc3c6ae59817e35ad02a7679.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
@media (min-width: 1024px) {
    .panel--features { display: flex; padding-right: 0; }
    .panel--features .panel__inner { flex: 1; display: flex; width: 100%; max-width: none; margin: 0; }
    .features { flex: 1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; }
    .features__media { margin-right: 0; align-self: stretch; min-height: 560px; }
}

/* Phone mockups */
.phone {
    position: relative;
    width: 230px;
    max-width: 100%;
    aspect-ratio: 9 / 18.5;
    padding: 10px;
    background: #14171C;
    border-radius: 38px;
    box-shadow: 0 24px 50px rgba(40, 28, 10, 0.35), inset 0 0 0 2px #2B3038;
    transform: rotate(-4deg);
}
.phone__notch {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 38%;
    height: 20px;
    transform: translateX(-50%);
    background: #14171C;
    border-radius: 0 0 14px 14px;
    z-index: 2;
}
.phone__screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    height: 100%;
    padding: 2.5rem 1rem 1rem;
    border-radius: 29px;
    background: var(--cream-soft);
    overflow: hidden;
    font-family: var(--font-body);
    color: var(--ink);
    text-align: center;
}
.ph-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(160deg, var(--sand), var(--beige));
    border: 3px solid var(--gold-light);
    box-shadow: 0 0 0 4px var(--cream-soft), 0 0 0 5px var(--line);
    margin-bottom: 0.25rem;
}
.ph-name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.ph-sub { font-size: 0.75rem; color: var(--ink-soft); line-height: 1.3; }
.ph-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; }
.ph-chips span {
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--sand);
    border: 1px solid var(--line-soft);
}
.ph-field {
    width: 100%;
    margin-top: auto;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    text-align: left;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
}
.ph-btn {
    width: 100%;
    padding: 0.55rem;
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-pill);
    background: var(--grad-gold);
}

/* App */
.app { display: grid; gap: 2.5rem; align-items: center; }
.app__body .store-badges { margin-top: 1.5rem; }
.app__device { position: relative; display: grid; place-items: center; padding: 1rem 0; }
.app__device::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    max-width: 100%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(233, 194, 122, 0.5), rgba(233, 194, 122, 0));
}
.phone--app { transform: rotate(5deg); width: 210px; }
.phone--app .phone__screen {
    background: linear-gradient(180deg, var(--cream-soft) 0%, #F7DCC2 100%);
    padding-top: 3rem;
    gap: 0.75rem;
}
.ph-appicon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--cream-soft);
    color: var(--gold);
    box-shadow: var(--shadow-md);
}
.ph-appicon svg { width: 40px; height: 28px; }
.ph-welcome { font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin-bottom: 0.5rem; }
.ph-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.55rem 0.6rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 14px;
}
.ph-dot { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--gold-light); }
.ph-dot--alt { background: #E8B79A; }
.ph-lines { display: grid; gap: 5px; flex: 1; }
.ph-lines span { height: 6px; border-radius: 4px; background: var(--beige); }
.ph-lines span:first-child { width: 60%; background: #D9C3A2; }
@media (min-width: 600px) {
    .app { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
@media (min-width: 1024px) {
    .panel--app .panel__inner { max-width: 680px; }
}

/* Emotional */
.panel--emotion {
    display: flex;
    align-items: flex-end;
    padding-top: clamp(260px, 70vw, 440px);
}
.panel--emotion .panel__inner { width: 100%; }
.emotion__copy {
    padding: 1.5rem 1.25rem;
    background: rgba(251, 244, 234, 0.93);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.emotion__copy p { margin: 0; color: var(--ink); }
@media (min-width: 1024px) {
    .panel--emotion { align-items: center; min-height: 560px; padding-top: clamp(4rem, 6vw, 5.5rem); }
    .panel__bg--lake::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(251, 244, 234, 0) 30%, rgba(251, 244, 234, 0.72) 52%, rgba(251, 244, 234, 0.86) 100%);
    }
    .panel--emotion .panel__inner { max-width: none; margin: 0; display: flex; justify-content: flex-end; }
    .emotion__copy {
        width: 56%;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        text-align: center;
    }
}

/* FAQ */
.faq-item__a a { color: var(--gold-deep); }

/* Final CTA */
.panel--final { display: flex; align-items: center; justify-content: center; min-height: 460px; }
.panel--final .panel__inner { width: 100%; }
.final__copy { position: relative; text-align: center; max-width: 520px; margin-inline: auto; padding: 1.5rem 0.5rem; }
.final__copy::before {
    content: "";
    position: absolute;
    inset: -30% -25%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(253, 249, 243, 0.92), rgba(253, 249, 243, 0.6) 55%, rgba(253, 249, 243, 0));
    pointer-events: none;
}
.final__copy p { color: var(--ink); }
.final__copy .btn { margin-top: 0.5rem; }
.final__note { margin: 0.9rem 0 0; font-size: 0.9375rem; font-weight: 500; }

/* ============ Reveal (transform only, content always visible) ============ */
.js .reveal { transform: translateY(18px); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal { transform: none; }
}