/*
 * FROME Review - design system
 * Coral Compact: cream surfaces, light serif display, one coral accent.
 */

:root {
    --bg: #FAF5EE;
    --panel: #EFE5D6;
    --surface: #FFFFFF;
    --text: #2B2A33;
    --muted: #5B5862;
    --line: #DDD1C0;
    --accent: #D4745E;
    --accent-hover: #E08870;
    --accent-ink: #A24C38;
    --on-accent: #1F1E25;
    --graphite: #2B2A33;

    --font-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
    --font-body: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --shadow: 0 14px 34px -16px rgba(43, 42, 51, 0.22), 0 2px 6px rgba(43, 42, 51, 0.06);
    --shadow-lift: 0 20px 40px -16px rgba(43, 42, 51, 0.28), 0 4px 10px rgba(43, 42, 51, 0.08);

    --container: 1200px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4rem, 8vw, 7rem);
    --header-h: 68px;
    --header-bottom: 68px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ============ 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, dd { 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(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; }

a { color: inherit; }

a:not([class]) { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; }
a:not([class]):hover { color: var(--accent-ink); }

h1, h2, h3, h4 { margin: 0 0 0.6em; color: var(--text); }

h1, h2 {
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 5.2vw + 1rem, 4.9rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 2.8vw + 1.2rem, 3.4rem); line-height: 1.08; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.125rem; line-height: 1.35; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; }

strong { font-weight: 600; }

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

main:focus { outline: none; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 200;
    background: var(--surface);
    color: var(--text);
    padding: 0.75rem 1.1rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow);
    text-decoration: none;
    font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

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

.section { padding-block: var(--section-y); }
.section--panel { background: var(--panel); }

.eyebrow {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 0.9rem;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { margin-bottom: 0.45em; }
.section-intro { color: var(--muted); font-size: 1.125rem; max-width: 40rem; }
.section-head--center .section-intro { margin-inline: auto; }

.aside-note {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 1.35rem;
    line-height: 1.4;
    color: var(--muted);
}

.muted { color: var(--muted); }

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

.btn--primary {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 8px 20px -10px rgba(212, 116, 94, 0.7);
}
.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -10px rgba(212, 116, 94, 0.75);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}
.btn--outline:hover { background: var(--surface); }

.btn--text {
    min-height: 44px;
    padding: 0 0.25rem;
    background: none;
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 0.3em;
    text-decoration-thickness: 1.5px;
    font-weight: 500;
}
.btn--text:hover { color: var(--accent-ink); }

.btn--sm { min-height: 44px; padding: 0 1.2rem; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 2.25rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn:focus-visible,
.store-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-pill); }

.cta-note { font-size: 0.875rem; color: var(--muted); margin-top: 0.85rem; }

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

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 56px;
    padding: 0.5rem 1.4rem 0.5rem 1.1rem;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--graphite);
    color: #FFFFFF;
    font-family: var(--font-body);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.store-btn:hover { background: #3A3944; transform: translateY(-1px); box-shadow: var(--shadow); }
.store-btn__icon { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn__small { font-size: 0.75rem; font-weight: 400; }
.store-btn__big { font-size: 1.0625rem; font-weight: 600; }

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

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

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

.site-brand__text {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    line-height: 1;
    white-space: nowrap;
}

.wordmark-o {
    display: inline-block;
    width: 0.56em;
    height: 0.56em;
    margin: 0 0.04em;
    border: 2.5px solid var(--accent);
    border-radius: 50%;
    color: transparent;
    overflow: hidden;
    line-height: 0.56em;
    font-size: inherit;
    vertical-align: -0.02em;
}

.wordmark-review {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: 1.18em;
    letter-spacing: 0;
    margin-left: 0.08em;
}

.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;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    cursor: pointer;
}
.menu-toggle:focus-visible { border-radius: 50%; }

.menu-toggle__bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

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

/* Mobile overlay navigation */
.site-nav {
    position: fixed;
    top: var(--header-bottom);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
}

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

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list li { border-bottom: 1px solid var(--line); }

.site-nav__link {
    display: flex;
    align-items: center;
    min-height: 56px;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 2rem;
    line-height: 1.1;
    text-decoration: none;
    color: var(--text);
}
.site-nav__link:hover { color: var(--accent-ink); }

.site-nav__cta { display: grid; gap: 0.25rem; }
.site-nav__note { font-size: 0.875rem; color: var(--muted); text-align: center; margin: 0.5rem 0 0; }

@media (min-width: 480px) {
    .header-actions .header-cta { display: inline-flex; }
    .site-brand__text { font-size: 1.5rem; }
}

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

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

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

    .site-nav__link {
        min-height: 44px;
        padding: 0 0.75rem;
        font-family: var(--font-body);
        font-weight: 500;
        font-size: 0.9375rem;
        position: relative;
    }
    .site-nav__link::after {
        content: "";
        position: absolute;
        left: 0.75rem;
        right: 0.75rem;
        bottom: 8px;
        height: 1.5px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s var(--ease);
    }
    .site-nav__link:hover { color: var(--text); }
    .site-nav__link:hover::after { transform: scaleX(1); }

    .site-nav__cta { display: none; }
}

/* ============ Disclosure strip ============ */
.disclosure-strip {
    background: var(--panel);
    border-bottom: 1px solid var(--line);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
}
.disclosure-strip p { margin: 0; padding-block: 0.65rem; }
.disclosure-strip a { text-decoration: underline; text-underline-offset: 0.15em; }

/* ============ Profile card row ============ */
.scroller { position: relative; }

.scroller__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(250px, 78%);
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    padding: 0.5rem var(--gutter) 1.5rem;
    margin-inline: calc(var(--gutter) * -1);
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--panel);
    overscroll-behavior-x: contain;
}
.scroller__track::-webkit-scrollbar { height: 6px; }
.scroller__track::-webkit-scrollbar-track { background: var(--panel); border-radius: 6px; }
.scroller__track::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
.scroller__track:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--radius); }
.scroller__track > * { scroll-snap-align: start; }

.scroller__controls { display: none; gap: 0.5rem; }

.scroller__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.scroller__btn:hover { box-shadow: var(--shadow); border-color: var(--text); }
.scroller__btn:disabled { cursor: default; color: var(--muted); box-shadow: none; border-color: var(--line); }
.scroller__btn svg { width: 18px; height: 18px; }
.scroller__btn:focus-visible { border-radius: 50%; }

@media (min-width: 768px) {
    .scroller__track { grid-auto-columns: minmax(270px, 42%); }
    .scroller__controls { display: flex; }
}
@media (min-width: 1024px) {
    .scroller__track { grid-auto-columns: calc((100% - 3 * 1.25rem) / 3.35); }
}

.profile-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
}

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

.profile-card__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }

.profile-card__name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1.1;
    margin: 0;
}
.profile-card__age { color: var(--muted); }

.profile-card__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.profile-card__tags li {
    font-size: 0.875rem;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-pill);
    background: var(--bg);
    border: 1px solid var(--line);
}

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

/* ============ Divided list ============ */
.divided-list { border-top: 1px solid var(--line); }

.divided-item {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.4rem;
    border-bottom: 1px solid var(--line);
}

.divided-item__num {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--accent-ink);
}

.divided-item__label { font-family: var(--font-body); font-weight: 600; font-size: 1.0625rem; margin: 0 0 0.35rem; }
.divided-item__text { margin: 0; color: var(--muted); }

@media (min-width: 768px) {
    .divided-list--two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); border-top: 0; }
    .divided-list--two .divided-item { border-top: 1px solid var(--line); border-bottom: 0; }
    .divided-list--two .divided-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ============ FAQ accordion ============ */
.faq-list { max-width: 52rem; border-top: 1px solid var(--line); }

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

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

.faq-item__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    min-height: 64px;
    padding: 1.15rem 0;
    border: 0;
    background: none;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}
.faq-item__trigger:hover .faq-item__q { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.25em; }

.faq-item__icon {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
}
.faq-item__icon::before,
.faq-item__icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    margin: -0.75px 0 0 -6px;
    background: var(--text);
    transition: transform 0.25s var(--ease);
}
.faq-item__icon::after { transform: rotate(90deg); }
.faq-item__trigger[aria-expanded="true"] .faq-item__icon { border-color: var(--accent); }
.faq-item__trigger[aria-expanded="true"] .faq-item__icon::after { transform: rotate(0deg); }

.faq-item__panel[hidden] { display: none; }
.faq-item__answer { padding: 0 3rem 1.4rem 0; color: var(--muted); }
.faq-item__answer p:last-child { margin-bottom: 0; }

/* ============ Summary box (legal) ============ */
.summary-box {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 0.5rem 1.5rem;
    margin-block: 1.5rem 2.5rem;
}
.summary-box__list { list-style: none; margin: 0; padding: 0; }
.summary-box__list li {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
    font-size: 0.975rem;
}
.summary-box__list li:last-child { border-bottom: 0; }

/* ============ Legal pages ============ */
.legal { padding-block: clamp(3rem, 6vw, 5rem) var(--section-y); }

.legal__layout { display: grid; gap: 2.5rem; }

.legal__header { max-width: 72ch; }
.legal__updated { font-size: 0.9375rem; color: var(--muted); }
.legal__lead { font-size: 1.125rem; }

.legal__toc { display: none; }

.legal__body { max-width: 72ch; }
.legal__body section { padding-block: 2rem; border-top: 1px solid var(--line); overflow: visible; }
.legal__body h2 { font-size: clamp(1.85rem, 1.6vw + 1.3rem, 2.4rem); }
.legal__body h3 { margin-top: 1.25rem; }
.legal__body ul { padding-left: 1.25rem; }
.legal__body li { margin-bottom: 0.45rem; }

.legal__back { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }

@media (min-width: 1024px) {
    .legal__layout { grid-template-columns: minmax(0, 1fr) 15rem; column-gap: 4rem; align-items: start; }
    .legal__toc {
        display: block;
        position: sticky;
        top: calc(var(--header-h) + 2rem);
        grid-column: 2;
        grid-row: 1 / span 2;
        font-size: 0.9375rem;
    }
    .legal__toc-title { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
    .legal__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
    .legal__toc a { display: block; padding: 0.4rem 0 0.4rem 1rem; text-decoration: none; color: var(--muted); }
    .legal__toc a:hover { color: var(--text); }
}

/* Cookie table */
.cookie-table-wrap {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem 1.25rem;
    margin-top: 1.5rem;
}
.cookie-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.cookie-table th,
.cookie-table td { text-align: left; vertical-align: top; padding: 0.9rem 0.75rem 0.9rem 0; border-bottom: 1px solid var(--line); }
.cookie-table thead th { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cookie-table tbody tr:last-child th,
.cookie-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 767px) {
    .cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .cookie-table tr { display: block; padding-block: 0.75rem; border-bottom: 1px solid var(--line); }
    .cookie-table tbody tr:last-child { border-bottom: 0; }
    .cookie-table th,
    .cookie-table td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.75rem; padding: 0.35rem 0; border: 0; }
    .cookie-table [data-label]::before { content: attr(data-label); font-weight: 600; color: var(--muted); font-size: 0.8125rem; }
}

/* ============ Footer ============ */
.site-footer {
    background: var(--panel);
    border-top: 1px solid var(--line);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
    font-size: 0.9375rem;
}

.site-footer__grid { display: grid; gap: 2rem; margin-bottom: 2.5rem; }

.site-footer__desc { color: var(--muted); max-width: 26rem; margin-top: 0.75rem; }

.site-footer__heading {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: none;
}
.site-footer__list a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.25em; }

.site-footer__disclosure {
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: var(--text);
    max-width: 60rem;
}
.site-footer__copy { color: var(--muted); margin: 0; }

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

/* ============ Home: hero ============ */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 7vw, 6rem); }

.hero__grid { display: grid; gap: 2.5rem; align-items: center; }

.hero__title { margin-bottom: 0.5em; }
.hero__line { display: block; }
.hero__line + .hero__line { color: var(--muted); }

.hero__intro { font-size: 1.125rem; max-width: 34rem; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.75rem; }

.hero__media { position: relative; padding-bottom: 2rem; }

.hero__photo {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 6 / 7;
    background: var(--panel);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }

.chat-fragment {
    position: absolute;
    right: 0.75rem;
    bottom: 0;
    width: min(270px, 78%);
    padding: 1rem 1rem 1.1rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.chat-fragment__dot {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.chat-bubble {
    margin: 0;
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    line-height: 1.4;
    border-radius: 16px;
    max-width: 88%;
}
.chat-bubble--in { background: var(--bg); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.chat-bubble--out { background: var(--panel); align-self: flex-end; border-bottom-right-radius: 6px; }

@media (min-width: 1024px) {
    .hero__grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(3rem, 5vw, 5rem); }
    .hero__media { grid-column: 1; grid-row: 1; }
    .hero__content { grid-column: 2; grid-row: 1; }
    .chat-fragment { right: -1.5rem; }
    .hero__media { padding-right: 1.5rem; }
}

/* ============ Home: how ============ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }

.step { position: relative; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }

.step__num {
    position: absolute;
    top: 1rem;
    right: 0;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 4.5rem;
    line-height: 1;
    color: #EBC2B6;
}
.step__icon { width: 32px; height: 32px; color: var(--text); margin-bottom: 1rem; }
.step__title { margin-bottom: 0.4rem; padding-right: 3.5rem; }
.step__text { margin: 0; color: var(--muted); }

.how__aside { margin: 2.5rem 0 0; max-width: 40rem; }

@media (min-width: 1024px) {
    .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 0; }
    .step { padding: 0.5rem 1.75rem 1rem; border-bottom: 0; border-left: 1px solid var(--line); }
    .step:first-child { border-left: 0; padding-left: 0; }
    .step__num { position: static; display: block; margin-bottom: 0.75rem; }
    .step__title { padding-right: 0; }
}

/* ============ Home: profiles ============ */
.scroller__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.scroller__hint { margin: 0; font-size: 0.875rem; color: var(--muted); }
.profiles__cta { margin-top: 2rem; }

/* ============ Home: overview ============ */
.overview__grid { display: grid; gap: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose h3:first-child { margin-top: 0; }
.prose { max-width: 42rem; }

.facts-panel {
    background: var(--panel);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    align-self: start;
}
.facts-panel__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}
.facts-panel__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts-panel__list li { padding-block: 0.85rem; border-bottom: 1px solid var(--line); font-size: 0.975rem; }
.facts-panel__note { margin: 1rem 0 0; font-size: 0.875rem; color: var(--muted); }

@media (min-width: 1024px) {
    .overview__grid { grid-template-columns: minmax(0, 1fr) 21rem; gap: 4rem; }
    .facts-panel { position: sticky; top: calc(var(--header-h) + 2rem); margin-top: 1rem; }
    .overview { overflow: visible; }
}

/* ============ Home: features ============ */
.features__note { margin: 2.5rem 0 0; max-width: 44rem; }

/* ============ Home: why ============ */
.why__grid { display: grid; gap: 2.5rem; align-items: center; }

.photo-pair { position: relative; padding-bottom: 24%; }
.photo-pair img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.photo-pair__main { width: 82%; aspect-ratio: 4 / 3; }
.photo-pair__inset {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52%;
    aspect-ratio: 4 / 3;
    border: 6px solid var(--bg);
    object-position: 30% center;
}

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

/* ============ Home: pros & cons ============ */
.pc-grid { display: grid; gap: 1.5rem; }

.pc-panel {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.75rem 1.5rem 1rem;
}
.pc-panel__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
}
.pc-mark { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; }
.pc-mark::before,
.pc-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
    border-radius: 2px;
}
.pc-mark--plus::before,
.pc-mark--plus::after { background: var(--accent); }
.pc-mark--plus::after { transform: rotate(90deg); }
.pc-mark--dash::before { background: var(--muted); }
.pc-mark--dash::after { display: none; }

.pc-list { list-style: none; margin: 0; padding: 0; }
.pc-list li { padding-block: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.pc-list li strong { color: var(--text); }

.verdict { margin-top: 2.5rem; max-width: 46rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.verdict__title { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; }
.verdict p { margin: 0; }

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

/* ============ Home: safety ============ */
.safety__note {
    max-width: 46rem;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    background: var(--panel);
    border-radius: var(--radius-sm);
    font-size: 0.975rem;
}

/* ============ Home: app ============ */
.app__grid { display: grid; gap: 3rem; align-items: center; }
.app__text .store-row { margin-top: 1.75rem; }

.phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
    padding-block: 2rem;
}
.phone-stage::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(420px, 92%);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--bg);
}

.phone {
    position: relative;
    width: min(300px, 82%);
    aspect-ratio: 9 / 18.5;
    padding: 12px;
    background: var(--graphite);
    border-radius: 42px;
    box-shadow: var(--shadow-lift);
    transform: rotate(4deg);
}
.phone__notch {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 72px;
    height: 18px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: var(--graphite);
    z-index: 2;
}
.phone__screen {
    height: 100%;
    background: var(--surface);
    border-radius: 32px;
    padding: 3rem 1rem 1rem;
    overflow: hidden;
}
.phone__header {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0 0 0.75rem;
}
.phone__list { list-style: none; margin: 0; padding: 0; }
.phone__row { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.8rem; border-bottom: 1px solid var(--line); }
.phone__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--panel);
    font-weight: 600;
    font-size: 0.9375rem;
}
.phone__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.phone__name { font-weight: 600; font-size: 0.9375rem; }
.phone__snippet { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

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

/* ============ Home: closing ============ */
.closing-card {
    max-width: 52rem;
    margin-inline: auto;
    text-align: center;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
}
.closing-card__title { font-size: clamp(2.3rem, 3.4vw + 1.2rem, 3.8rem); }
.closing-card__text { max-width: 36rem; margin: 0 auto 1.75rem; }
.closing-card__links { margin: 1.5rem 0 0; font-size: 0.875rem; color: var(--muted); }

/* ============ Reveal motion ============ */
.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal-ready .reveal { opacity: 1; transform: none; }
    .btn--primary:hover,
    .store-btn:hover { transform: none; }
}