/*
 * FROME - shared styles
 * Soft stone + muted terracotta, Fraunces + Source Sans 3
 */

:root {
    --stone: #F4F0EA;
    --paper: #FBF8F4;
    --greige: #ECE6DE;
    --ink: #24262B;
    --ink-soft: #4A4D55;
    --muted: #5C5F66;
    --accent: #B8644A;
    --accent-strong: #A3553C;
    --accent-deep: #8E4833;
    --accent-tint: #F3E3DC;
    --line: rgba(36, 38, 43, 0.12);
    --line-strong: rgba(36, 38, 43, 0.22);

    --font-head: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --radius-panel: 32px;
    --radius-card: 24px;
    --radius-sm: 16px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(36, 38, 43, 0.04);
    --shadow-sm: 0 6px 20px rgba(36, 38, 43, 0.06);
    --shadow-md: 0 16px 40px rgba(36, 38, 43, 0.09);

    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --section-y: clamp(56px, 9vw, 112px);
    --header-bottom: 84px;

    --ease: cubic-bezier(0.22, 0.61, 0.36, 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%;
    text-size-adjust: 100%;
}

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

body {
    margin: 0;
    background: var(--stone);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

h3 { font-size: 1.3rem; line-height: 1.25; }

p { margin: 0 0 1em; }

a {
    color: var(--accent-strong);
    text-underline-offset: 0.15em;
}

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

img { display: block; }

[id] { scroll-margin-top: calc(var(--header-bottom) + 20px); }

main:focus { outline: none; }

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 300;
    background: var(--ink);
    color: var(--paper);
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus { top: 16px; color: var(--paper); }

.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;
}

/* ============================================
   LAYOUT PRIMITIVES
   ============================================ */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

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

.panel {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    padding: clamp(24px, 5vw, 64px);
    box-shadow: var(--shadow-xs);
}

.panel--greige {
    background: var(--greige);
    border-color: transparent;
    box-shadow: none;
}

.panel--greige .eyebrow { color: var(--accent-deep); }

.panel--dark {
    background: var(--ink);
    color: var(--paper);
    border-color: transparent;
}

.panel--dark h2,
.panel--dark h3 { color: var(--paper); }

.hairline {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 0;
}

/* ============================================
   TYPOGRAPHY HELPERS
   ============================================ */
.display {
    font-size: clamp(2.4rem, 1.5rem + 4vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
    font-weight: 400;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-strong);
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

.section-header {
    max-width: 720px;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.section-header--center {
    margin-inline: auto;
    text-align: center;
}

.section-header--center .eyebrow { justify-content: center; }

.section-title {
    font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
    line-height: 1.08;
}

.lead {
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.22rem);
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
}

.text-note {
    font-size: 0.95rem;
    color: var(--muted);
    margin: 0;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: var(--radius-pill);
    border: 1.5px solid transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; }
.btn--lg { min-height: 58px; padding: 0 34px; font-size: 1.08rem; }
.btn--block { width: 100%; }

.btn--primary {
    background: var(--accent-strong);
    color: #fff;
    box-shadow: 0 6px 16px rgba(163, 85, 60, 0.22);
}

.btn--primary:hover {
    background: var(--accent-deep);
    color: #fff;
    transform: translateY(-1px);
}

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

.btn--outline:hover {
    background: var(--ink);
    color: var(--paper);
}

.btn--light {
    background: var(--paper);
    color: var(--ink);
}

.btn--light:hover {
    background: #fff;
    color: var(--ink);
    transform: translateY(-1px);
}

.btn--text {
    min-height: 44px;
    padding: 0 2px;
    border-radius: 6px;
    color: var(--accent-strong);
    background: linear-gradient(currentColor, currentColor) left bottom / 0% 1.5px no-repeat;
    background-position: 0 calc(100% - 8px);
    transition: background-size 0.3s var(--ease), color 0.2s var(--ease);
}

.btn--text::after {
    content: "→";
    font-weight: 400;
}

.btn--text:hover,
.btn--text:focus-visible {
    color: var(--accent-deep);
    background-size: 100% 1.5px;
}

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

/* Store-style buttons */
.store-buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: 460px;
}

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

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 60px;
    padding: 10px 20px;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.store-btn:hover {
    background: #34363d;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.store-btn__glyph { flex: none; width: 26px; height: 26px; }

.store-btn__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.store-btn__small { font-size: 0.82rem; letter-spacing: 0.02em; }
.store-btn__big { font-size: 1.15rem; font-weight: 600; }

/* ============================================
   BRAND
   ============================================ */
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
}

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

.site-brand__text {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    line-height: 1;
}

.brand-mark { flex: none; display: block; }
.brand-mark__a { fill: var(--ink); transition: transform 0.35s var(--ease); }
.brand-mark__b { fill: var(--accent); fill-opacity: 0.92; transition: transform 0.35s var(--ease); }

.site-brand:hover .brand-mark__a { transform: translateX(1.5px); }
.site-brand:hover .brand-mark__b { transform: translateX(-1.5px); }

/* ============================================
   HEADER (floating rounded bar)
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 12px 0;
}

.site-header__bar {
    position: relative;
    isolation: isolate;
    max-width: var(--container);
    margin: 0 auto;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 6px 6px 16px;
    border-radius: var(--radius-pill);
}

.site-header__bar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: rgba(251, 248, 244, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled .site-header__bar::before {
    background: rgba(251, 248, 244, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-sm);
}

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

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

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

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

.menu-toggle__line {
    width: 18px;
    height: 1.75px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) { transform: translateY(5.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) { transform: translateY(-5.75px) rotate(-45deg); }

/* Mobile drawer (slide-down panel) */
.site-nav {
    position: fixed;
    top: var(--header-bottom);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    background: var(--stone);
    padding: 8px 12px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
}

.site-nav__inner {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 12px 20px 24px;
    box-shadow: var(--shadow-sm);
}

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

.site-nav__list li + li { border-top: 1px solid var(--line); }

.site-nav__link {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.site-nav__link:hover { color: var(--accent-strong); }

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

@media (min-width: 768px) {
    .site-header { padding: 16px 16px 0; }
    .site-header__bar { padding: 8px 8px 8px 22px; }
}

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

    .site-nav {
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        background: transparent;
        padding: 0;
        overflow: visible;
        transition: none;
    }

    .site-nav__inner {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

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

    .site-nav__list li + li { border-top: 0; }

    .site-nav__link {
        min-height: 44px;
        padding: 0 14px;
        border-radius: var(--radius-pill);
        font-size: 1rem;
        transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
    }

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

    .site-nav__cta { display: none; }

    .header-actions .header-cta {
        display: inline-flex;
        min-height: 48px;
        padding: 0 24px;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: clamp(24px, 4vw, 48px) 12px 12px;
}

.site-footer__panel {
    max-width: calc(var(--container) + 32px);
    margin: 0 auto;
    background: var(--greige);
    border-radius: var(--radius-panel);
    padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px) 24px;
}

.site-footer__grid {
    display: grid;
    gap: 32px;
}

.site-footer__desc {
    margin: 14px 0 0;
    max-width: 42ch;
    color: var(--ink-soft);
}

.site-footer__nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.site-footer__title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 10px;
}

.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;
    background: linear-gradient(var(--accent), var(--accent)) left calc(100% - 10px) / 0% 1.5px no-repeat;
    transition: background-size 0.3s var(--ease);
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
    background-size: 100% 1.5px;
    color: var(--ink);
}

.site-footer__bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line-strong);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.site-footer__bottom p { margin: 0; }

@media (min-width: 768px) {
    .site-footer { padding-inline: 16px; padding-bottom: 16px; }
    .site-footer__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; }
}

/* ============================================
   PROFILE CARDS + SCROLLER
   ============================================ */
.people-scroller { position: relative; }

.people-track {
    list-style: none;
    margin: 0;
    padding: 10px 4px 28px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    border-radius: var(--radius-card);
}

.people-track:focus-visible { outline-offset: 2px; }

.profile-card {
    flex: 0 0 min(80%, 300px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.profile-card:hover,
.profile-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.profile-card__media {
    padding: 10px 10px 0;
}

.profile-card__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 20px;
    background: var(--greige);
}

.profile-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 20px 22px;
    flex: 1;
}

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

.profile-card__age { color: var(--ink-soft); }

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

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    background: var(--greige);
    font-size: 0.9rem;
    color: var(--ink);
}

.profile-card__intro {
    margin: 0;
    color: var(--ink-soft);
}

.profile-card__looking {
    margin: auto 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-weight: 600;
    color: var(--ink);
}

.profile-card__looking span {
    color: var(--accent-strong);
    font-weight: 600;
}

@media (min-width: 768px) {
    .profile-card { flex-basis: calc((100% - 40px) / 2.4); }
}

@media (min-width: 1024px) {
    .profile-card { flex-basis: calc((100% - 60px) / 3.3); }
}

.scroller-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroller-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    background: transparent;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.scroller-btn svg { width: 20px; height: 20px; }

.scroller-btn:hover:not(:disabled) {
    background: var(--ink);
    color: var(--paper);
}

.scroller-btn:disabled {
    border-color: var(--line-strong);
    color: var(--muted);
    cursor: default;
}

/* ============================================
   FAQ ACCORDION (numbered)
   ============================================ */
.faq-list {
    border-top: 1px solid var(--line-strong);
}

.faq-item {
    border-bottom: 1px solid var(--line-strong);
}

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

.faq-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 22px 0;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
    line-height: 1.3;
    font-weight: 400;
}

.faq-item__num {
    flex: none;
    width: 2.2rem;
    font-weight: 300;
    font-style: italic;
    color: var(--accent-strong);
}

.faq-item__q { flex: 1; }

.faq-item__icon {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--line-strong);
    transition: transform 0.3s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 1.75px;
    background: var(--ink);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease);
}

.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item__trigger:hover .faq-item__icon { border-color: var(--ink); }

.faq-item__trigger[aria-expanded="true"] .faq-item__icon {
    background: var(--accent-tint);
    border-color: var(--accent);
}

.faq-item__trigger[aria-expanded="true"] .faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__panel {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.35s var(--ease);
}

.faq-item__inner {
    overflow: hidden;
    min-height: 0;
}

.faq-item__answer {
    padding: 0 0 24px calc(2.2rem + 16px);
    max-width: 70ch;
    color: var(--ink-soft);
}

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

.js .faq-item:not(.is-open) .faq-item__panel { grid-template-rows: 0fr; }

.js .faq-item:not(.is-open) .faq-item__inner {
    visibility: hidden;
    transition: visibility 0s linear 0.35s;
}

@media (max-width: 479px) {
    .faq-item__answer { padding-left: 0; }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-hero {
    padding-top: clamp(24px, 4vw, 48px);
}

.legal-hero__panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    padding: clamp(28px, 5vw, 56px);
    box-shadow: var(--shadow-xs);
}

.date-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 14px;
    margin: 0 0 20px;
    border-radius: var(--radius-pill);
    background: var(--accent-tint);
    color: var(--accent-deep);
    font-size: 0.92rem;
    font-weight: 600;
}

.legal-hero__title {
    font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.6rem);
    line-height: 1.05;
    margin-bottom: 14px;
}

.legal-hero__tagline {
    font-family: var(--font-head);
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
    font-weight: 300;
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.legal-hero__summary {
    max-width: 68ch;
    margin: 0;
    color: var(--ink-soft);
}

.legal-layout {
    display: grid;
    gap: 24px;
    padding-top: 24px;
    padding-bottom: clamp(48px, 7vw, 96px);
    align-items: start;
}

.legal-toc__desktop { display: none; }

.legal-toc__mobile {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

.legal-toc__summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 20px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-card);
}

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

.legal-toc__summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 1.75px solid var(--ink);
    border-bottom: 1.75px solid var(--ink);
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.25s var(--ease);
}

.legal-toc__mobile[open] .legal-toc__summary::after {
    transform: rotate(-135deg) translateY(-3px);
}

.legal-toc__mobile nav { padding: 0 20px 16px; }

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

.legal-toc__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 0 6px 14px;
    border-left: 2px solid var(--line);
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.98rem;
    line-height: 1.35;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.legal-toc__link:hover { color: var(--ink); border-left-color: var(--line-strong); }

.legal-toc__link.is-active {
    color: var(--ink);
    font-weight: 600;
    border-left-color: var(--accent);
}

.legal-toc__title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 12px;
}

.legal-content {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-panel);
    padding: clamp(24px, 5vw, 56px);
    min-width: 0;
}

.legal-content > section + section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}

.legal-content h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin: 28px 0 10px;
}

.legal-content p,
.legal-content li {
    color: var(--ink-soft);
    max-width: 72ch;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.3rem;
    margin: 0 0 1em;
}

.legal-content li { margin-bottom: 0.45em; }
.legal-content li::marker { color: var(--accent-strong); }

.legal-content strong { color: var(--ink); }

.legal-content .callout {
    background: var(--greige);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin: 20px 0;
}

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

.cookie-compare {
    margin: 20px 0 8px;
    border-top: 1px solid var(--line-strong);
}

.cookie-compare__row {
    display: grid;
    gap: 4px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

.cookie-compare__row--head { display: none; }

.cookie-compare__type {
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--ink);
}

@media (min-width: 768px) {
    .cookie-compare__row {
        grid-template-columns: 1.1fr 1.4fr 1.5fr;
        gap: 24px;
        align-items: baseline;
    }

    .cookie-compare__row--head {
        display: grid;
        font-size: 0.85rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--muted);
    }
}

.legal-back {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

@media (min-width: 1024px) {
    .legal-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 48px;
        padding-top: 40px;
    }

    .legal-toc__mobile { display: none; }

    .legal-toc__desktop {
        display: block;
        position: sticky;
        top: calc(var(--header-bottom) + 24px);
        max-height: calc(100vh - var(--header-bottom) - 48px);
        overflow-y: auto;
        padding-right: 8px;
    }
}

/* ============================================
   HOME PAGE
   ============================================ */
.section--tight-top { padding-top: 0; }

.line-icon {
    width: 28px;
    height: 28px;
    flex: none;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.line-icon .ac { stroke: var(--accent); }

/* Hero */
.hero {
    padding: clamp(24px, 5vw, 64px) 0 var(--section-y);
}

.hero__grid {
    display: grid;
    gap: 36px;
    align-items: center;
}

.hero__eyebrow {
    margin: 0 0 16px;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--accent-deep);
    max-width: 46ch;
}

.hero__title {
    font-size: clamp(2.2rem, 1.4rem + 3.6vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
}

.hero__sub {
    font-family: var(--font-head);
    font-weight: 300;
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
    color: var(--ink-soft);
    margin-bottom: 14px;
}

.hero__lead { max-width: 54ch; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__note {
    margin: 16px 0 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.hero__media {
    position: relative;
    isolation: isolate;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
}

.hero__media::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -14%;
    right: -16%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 100, 74, 0.18) 0%, rgba(244, 240, 234, 0) 70%);
}

.hero__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 13;
    object-fit: cover;
    object-position: 60% 30%;
    border-radius: var(--radius-panel);
    background: var(--greige);
}

.chat-snippet {
    position: absolute;
    left: 12px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: var(--paper);
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    max-width: 240px;
}

.chat-snippet__bubble {
    position: relative;
    padding: 9px 14px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.3;
}

.chat-snippet__bubble--in {
    background: var(--greige);
    color: var(--ink);
    border-bottom-left-radius: 6px;
    align-self: flex-start;
}

.chat-snippet__bubble--out {
    background: var(--ink);
    color: var(--paper);
    border-bottom-right-radius: 6px;
    align-self: flex-end;
    padding-right: 24px;
}

.chat-snippet__dot {
    position: absolute;
    right: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: var(--accent);
}

@media (min-width: 1024px) {
    .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
    .hero__media { margin-right: 0; }
    .chat-snippet { left: -48px; bottom: 48px; }
}

/* Value grid */
.value-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}

.value-item {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.value-item:first-child { border-top: 0; padding-top: 0; }

.value-item h3 { margin: 14px 0 8px; }
.value-item p { margin: 0; color: var(--ink-soft); }

@media (min-width: 768px) {
    .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
    .value-item:nth-child(2) { border-top: 0; padding-top: 0; }
}

@media (min-width: 1024px) {
    .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; }
    .value-item:nth-child(-n+3) { border-top: 0; padding-top: 0; }
    .value-item:nth-child(n+4) { padding-top: 28px; margin-top: 28px; }
}

/* People */
.people-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: clamp(20px, 3vw, 32px);
}

.people-head .section-header { margin-bottom: 0; }

.people-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 8px;
}

/* Steps */
.steps-wrap { position: relative; }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 32px;
    position: relative;
}

.steps__path {
    position: absolute;
    pointer-events: none;
    overflow: visible;
    left: 23px;
    top: 24px;
    width: 2px;
    height: calc(100% - 48px);
}

.steps__line {
    stroke: var(--ink);
    stroke-opacity: 0.3;
    stroke-width: 1;
}

.steps__line--h { display: none; }

.step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.step__icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--paper);
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.step__icon .line-icon { width: 24px; height: 24px; }

.step__num {
    display: block;
    font-family: var(--font-head);
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--accent-strong);
    margin-bottom: 8px;
}

.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); }

.steps__close {
    margin: 36px 0 0;
    text-align: center;
    font-family: var(--font-head);
    font-size: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
    color: var(--ink);
}

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

    .steps__path {
        top: 23px;
        left: calc((100% - 96px) / 8);
        width: calc(100% - (100% - 96px) / 4);
        height: 2px;
    }

    .steps__line--h { display: inline; }
    .steps__line--v { display: none; }

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

/* Features */
.features {
    display: grid;
    gap: 32px;
}

.benefit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line-strong);
}

.benefit {
    padding: 24px 0;
    border-bottom: 1px solid var(--line-strong);
}

.benefit p { margin: 0; color: var(--ink-soft); }

.benefit__title { margin-bottom: 8px; }

.benefit__title span {
    background: linear-gradient(var(--accent), var(--accent)) left bottom / 0% 2px no-repeat;
    padding-bottom: 3px;
    transition: background-size 0.35s var(--ease);
}

.benefit:hover .benefit__title span,
.benefit:focus-within .benefit__title span {
    background-size: 100% 2px;
}

.benefit--small p { font-size: 1rem; }
.benefit--small strong { color: var(--ink); }

@media (min-width: 1024px) {
    .features {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 72px;
        align-items: start;
    }

    .features__intro {
        position: sticky;
        top: calc(var(--header-bottom) + 32px);
    }
}

/* Safety tips */
.tips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 28px;
}

.tip h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.tip p { margin: 0; color: var(--ink-soft); }

.tip__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-tint);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tip__icon .line-icon { width: 24px; height: 24px; }

.safety__note {
    margin: 36px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    max-width: 72ch;
}

@media (min-width: 640px) {
    .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (min-width: 1024px) {
    .tips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
}

/* Emotional */
.moments {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.moments img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    background: var(--greige);
}

.moments__large {
    position: relative;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 11;
}

.moments__large img {
    position: absolute;
    inset: 0;
    object-position: 65% center;
}

.moments__small img { aspect-ratio: 1 / 1; height: auto; }

.emotional__copy {
    max-width: 660px;
    margin: clamp(32px, 5vw, 56px) auto 0;
    text-align: center;
}

.emotional__copy .lead { margin-bottom: 1em; }

@media (min-width: 768px) {
    .moments {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
        grid-template-rows: auto auto;
        gap: 24px;
    }

    .moments__large {
        grid-column: 1;
        grid-row: 1 / span 2;
        aspect-ratio: auto;
        min-height: 320px;
    }
}

/* App download */
.app-panel {
    display: grid;
    gap: 48px;
    align-items: center;
}

.app-panel__copy .lead { margin-bottom: 28px; }
.app-panel__note { margin-top: 16px; }

.phone-stage {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: center;
    padding: 12px 0 20px;
}

.phone-stage::before {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    top: 50%;
    width: min(420px, 110%);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 100, 74, 0.2) 0%, rgba(236, 230, 222, 0) 68%);
}

.phone {
    width: min(270px, 100%);
    padding: 11px;
    background: var(--ink);
    border-radius: 44px;
    box-shadow: var(--shadow-md);
    transform: rotate(4deg);
}

.phone__screen {
    position: relative;
    background: var(--paper);
    border-radius: 34px;
    padding: 34px 16px 18px;
    overflow: hidden;
}

.phone__notch {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 72px;
    height: 18px;
    margin-left: -36px;
    border-radius: 999px;
    background: var(--ink);
}

.phone__top { display: flex; justify-content: center; margin-bottom: 12px; }

.phone__brand {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.08em;
    font-size: 0.9rem;
}

.phone__title {
    font-family: var(--font-head);
    font-size: 1.35rem;
    margin: 0 0 8px;
}

.phone__list { list-style: none; margin: 0 0 16px; padding: 0; }

.phone__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.phone__avatar {
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--greige);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
}

.phone__avatar--tint { background: var(--accent-tint); color: var(--accent-deep); }

.phone__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.phone__name { font-weight: 700; font-size: 0.92rem; }

.phone__msg {
    font-size: 0.85rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    background: var(--accent-strong);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

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

/* FAQ */
.faq-wrap { max-width: calc(920px + var(--gutter) * 2); }

/* Final CTA */
.final-cta {
    overflow: hidden;
    text-align: center;
    padding-block: clamp(48px, 8vw, 96px);
}

.final-cta__shape {
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 340px;
    height: 340px;
    opacity: 0.08;
    pointer-events: none;
}

.final-cta__inner {
    position: relative;
    max-width: 640px;
    margin: 0 auto;
}

.final-cta .lead {
    color: #E4DDD3;
    margin-bottom: 32px;
}

.final-cta__note {
    margin: 16px 0 0;
    font-size: 0.95rem;
    color: #D6CFC5;
}

/* ============================================
   MOTION (soft fade-up)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .js [data-reveal] {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }

    .profile-card:hover,
    .profile-card:focus-within,
    .btn:hover,
    .store-btn:hover {
        transform: none;
    }
}