/*
 * Joymeet - shared styles
 * Canonical design tokens live in this file.
 */

:root {
    /* Brand */
    --plum: #5E3A86;
    --plum-dark: #47295F;
    --plum-light: #8F67C0;
    --plum-tint: #EEE8F6;
    --tangerine: #F0742C;
    --tangerine-hover: #F38A4C;
    --tangerine-text: #B04A16;
    --teal: #2C9A97;
    --teal-dark: #1E7472;

    /* Neutrals */
    --canvas: #E4E2EC;
    --surface: #FFFFFF;
    --surface-soft: #F6F5FA;
    --ink: #1F1B2D;
    --muted: #5A566A;
    --line: #ECEAF2;
    --line-strong: #D9D5E4;

    /* Gradients */
    --grad-brand: linear-gradient(120deg, #B04A16 0%, #7A4A8C 52%, #1E7472 100%);
    --grad-tile: linear-gradient(135deg, var(--tangerine) 0%, var(--plum) 100%);

    /* Type */
    --font-head: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Shape & depth */
    --radius-panel: 28px;
    --radius-card: 18px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --shadow-soft: 0 1px 2px rgba(31, 27, 45, 0.04), 0 8px 24px rgba(58, 36, 86, 0.08);
    --shadow-lift: 0 2px 4px rgba(31, 27, 45, 0.06), 0 18px 40px rgba(58, 36, 86, 0.16);
    --shadow-phone: 0 30px 60px rgba(46, 24, 72, 0.28);

    /* Layout */
    --container: 1240px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --header-h: 64px;
    --header-bottom: 64px;

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 1024px) {
    :root { --header-h: 72px; --header-bottom: 72px; }
}

/* ============================================
   OVERFLOW PREVENTION - Safety Net
   ============================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

img, video, iframe, embed, object, svg {
    max-width: 100%;
    height: auto;
}

[class*="grid"] > *,
[class*="flex"] > * {
    min-width: 0;
}

pre, code, .code-block, [class*="code"] {
    max-width: 100%;
    overflow-x: auto;
}

pre code,
.code-block code {
    display: block;
    min-width: 0;
}

.table-wrapper,
[class*="table-"] {
    max-width: 100%;
    overflow-x: auto;
}

p, li, td, th {
    overflow-wrap: break-word;
}

details {
    height: fit-content;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article)
  a:not([class]) {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

input, textarea, select {
    max-width: 100%;
}

section {
    overflow: clip;
}

/* ============================================
   BASE
   ============================================ */

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    overflow-x: clip;
}

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

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: inherit;
    margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.375rem); }
h3 { font-size: 1.1875rem; }

p { margin: 0 0 1rem; }

a { color: var(--plum); }
a:hover { color: var(--plum-dark); }

img { display: block; }

button { font: inherit; }

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

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

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

.skip-link:focus {
    top: 0.75rem;
}

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

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    opacity: 0;
    transition: opacity 0.25s var(--ease);
    pointer-events: none;
}

.site-header.is-scrolled,
.site-header.is-menu-open {
    color: var(--ink);
    border-bottom-color: var(--line-strong);
}

.site-header.is-scrolled::before,
.site-header.is-menu-open::before {
    opacity: 1;
}

.site-header.is-menu-open::before {
    background: var(--surface);
}

.site-header:not(.is-scrolled):not(.is-menu-open) :focus-visible {
    outline-color: #FFFFFF;
}

.site-header__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: var(--header-h);
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 0.75rem;
}

@media (min-width: 400px) {
    .site-header__bar { padding-inline: var(--gutter); }
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    color: inherit;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    flex: none;
}

.site-brand:hover { color: inherit; }

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

.site-brand__mark {
    width: 26px;
    height: 26px;
    flex: none;
}

@media (min-width: 1024px) {
    .site-brand { font-size: 1.5rem; }
    .site-brand__mark { width: 30px; height: 30px; }
}

.logo-mark .lm-t { stroke: var(--tangerine); }
.logo-mark .lm-p { stroke: var(--plum-light); }
.logo-mark .lm-g { stroke: var(--teal); }

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex: none;
}

.site-header__actions .header-cta {
    min-height: 44px;
    padding: 0 0.875rem;
    font-size: 0.9375rem;
    box-shadow: none;
}

.site-header.is-scrolled .site-header__actions .header-cta,
.site-header.is-menu-open .site-header__actions .header-cta {
    background: var(--plum);
    color: #FFFFFF;
}

.site-header.is-scrolled .site-header__actions .header-cta:hover,
.site-header.is-menu-open .site-header__actions .header-cta:hover {
    background: var(--plum-dark);
}

@media (min-width: 400px) {
    .site-header__actions .header-cta { padding: 0 1.125rem; }
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: var(--radius-pill);
    cursor: pointer;
}

.menu-toggle__bars {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 18px;
    height: 12px;
}

.menu-toggle__bars span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* Mobile / tablet drawer */
.site-nav {
    display: none;
    position: fixed;
    top: var(--header-bottom);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 59;
    padding: 0.75rem var(--gutter) 2rem;
    background: var(--surface);
    color: var(--ink);
    overflow-y: auto;
    overscroll-behavior: contain;
}

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

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

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

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

@media (max-width: 359px) {
    .site-brand { font-size: 1.125rem; gap: 0.375rem; }
    .site-brand__mark { width: 22px; height: 22px; }
    .site-header__actions { gap: 0.375rem; }
    .site-header__actions .header-cta { padding: 0 0.75rem; font-size: 0.875rem; }
}

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

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

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

    .site-nav__link {
        min-height: 44px;
        padding: 0 0.875rem;
        border: 0;
        border-radius: var(--radius-pill);
        color: inherit;
        font-family: var(--font-body);
        font-size: 1rem;
        font-weight: 600;
        transition: background-color 0.2s var(--ease);
    }

    .site-nav__link:hover {
        color: inherit;
        background: rgba(255, 255, 255, 0.16);
    }

    .site-header.is-scrolled .site-nav__link:hover {
        background: var(--plum-tint);
        color: var(--plum);
    }

    .site-header__actions {
        margin-left: 1rem;
    }

    .site-header__actions .header-cta {
        min-height: 46px;
        padding: 0 1.375rem;
        font-size: 1rem;
    }
}

/* ============================================
   BUTTONS & BADGES
   ============================================ */

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

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--light {
    background: #FFFFFF;
    color: var(--plum);
    box-shadow: 0 6px 18px rgba(31, 27, 45, 0.18);
}

.btn--light:hover {
    color: var(--plum-dark);
    box-shadow: 0 10px 24px rgba(31, 27, 45, 0.24);
}

.btn--plum {
    background: var(--plum);
    color: #FFFFFF;
}

.btn--plum:hover {
    background: var(--plum-dark);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(94, 58, 134, 0.28);
}

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

.btn--tangerine:hover {
    background: var(--tangerine-hover);
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(240, 116, 44, 0.32);
}

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

.btn--lg {
    min-height: 56px;
    padding: 0 2rem;
    font-size: 1.0625rem;
}

[data-dest].is-going {
    animation: cta-press 0.35s var(--ease);
}

@keyframes cta-press {
    0% { transform: scale(1); }
    40% { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.link-quiet {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 44px;
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.25em;
    text-decoration-thickness: 1px;
}

.link-quiet:hover { color: #FFFFFF; text-decoration-thickness: 2px; }

.play-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 60px;
    padding: 0.5rem 1.25rem 0.5rem 1rem;
    background: #000000;
    color: #FFFFFF;
    border: 1px solid #A6A6A6;
    border-radius: var(--radius-sm);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.play-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.play-badge:active { transform: scale(0.98); }

.play-badge__icon {
    width: 28px;
    height: 30px;
    flex: none;
}

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

.play-badge__small {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.play-badge__big {
    font-family: var(--font-head);
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ============================================
   SHARED PRIMITIVES
   ============================================ */

.panel {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-soft);
}

.section-head {
    max-width: 40rem;
    margin: 0 auto 2rem;
    text-align: center;
}

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

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

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: var(--plum-tint);
    color: var(--plum);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Kaleidoscope shards */
.shards {
    position: absolute;
    display: block;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.shard--tan { fill: var(--tangerine); fill-opacity: 0.7; }
.shard--teal { fill: var(--teal); fill-opacity: 0.65; }
.shard--plum { fill: var(--plum); fill-opacity: 0.6; }
.shard-ring { fill: none; stroke: var(--teal); stroke-width: 18; stroke-opacity: 0.6; }

/* Horizontal snap rows (profiles, stories) */
.snap-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 74%);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    padding: 1rem 0.25rem 1.5rem;
    margin: 0;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

.snap-row > * {
    scroll-snap-align: start;
}

.snap-row:focus-visible {
    outline-offset: 2px;
}

@media (min-width: 600px) {
    .snap-row { grid-auto-columns: minmax(220px, 44%); }
}

@media (min-width: 1280px) {
    .snap-row {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
        scroll-snap-type: none;
        padding-inline: 0;
    }

    .snap-row--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Reveal on scroll (JS-gated so content is visible without JS) */
.js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

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

/* ============================================
   PROFILE CARD (product demo)
   ============================================ */

.profile-card {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0.625rem 0.625rem 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.profile-card__media img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 30%;
    border-radius: var(--radius-sm);
}

.profile-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    padding: 0.75rem 0.375rem 0;
}

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

.profile-card__area,
.profile-card__vibe {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
}

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

.profile-card__more {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s var(--ease);
}

.profile-card__more > p {
    min-height: 0;
    overflow: hidden;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: var(--tangerine-text);
    font-weight: 600;
}

.profile-card:hover .profile-card__more,
.profile-card:focus-within .profile-card__more {
    grid-template-rows: 1fr;
}

@media (hover: none) {
    .profile-card__more { grid-template-rows: 1fr; }
}

.profile-card__cta {
    margin-top: auto;
    align-self: flex-start;
}

.profile-card .chip-list + .profile-card__more,
.profile-card__more + .profile-card__cta {
    margin-top: 0.25rem;
}

/* ============================================
   STORY CARD (illustrative)
   ============================================ */

.story-card {
    position: relative;
    z-index: 1;
    height: calc(100% - 2.25rem);
    margin-top: 2.25rem;
    padding: 3.25rem 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.story-card__avatar {
    position: absolute;
    top: -2.25rem;
    left: 50%;
    translate: -50% 0;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-soft);
}

.story-card__tag {
    display: inline-block;
    margin-bottom: 0.625rem;
    padding: 0.125rem 0.625rem;
    background: var(--plum-tint);
    color: var(--plum);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
}

.story-card__title {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.story-card__text {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

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

.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: 1.0625rem;
}

.faq-item__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 56px;
    padding: 1rem 0.25rem;
    background: none;
    border: 0;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.faq-item__trigger:hover { color: var(--plum); }

.faq-item__chevron {
    width: 20px;
    height: 20px;
    flex: none;
    color: var(--plum);
    transition: transform 0.25s var(--ease);
}

.faq-item__trigger[aria-expanded="true"] .faq-item__chevron {
    transform: rotate(180deg);
}

.faq-item__panel {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 0.28s var(--ease), visibility 0s linear 0s;
}

.faq-item__panel.is-collapsed {
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.28s var(--ease), visibility 0s linear 0.28s;
}

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

.faq-item__inner p {
    margin: 0 0 1.25rem;
    padding-right: 2rem;
    color: var(--muted);
    font-size: 1.0625rem;
}

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

.legal-hero {
    position: relative;
    min-height: calc(var(--header-h) + 200px);
    padding: calc(var(--header-h) + 2rem) 0 calc(60px + 2.25rem);
    background: var(--grad-brand);
    color: #FFFFFF;
    text-align: center;
}

.legal-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 80% at 50% 40%, rgba(31, 27, 45, 0.18), transparent 70%);
    pointer-events: none;
}

.legal-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 46rem;
}

.legal-hero h1 {
    margin-bottom: 0.75rem;
    color: #FFFFFF;
}

.legal-hero__summary {
    max-width: 40rem;
    margin: 0 auto 1rem;
    font-size: 1.125rem;
}

.legal-hero__meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.25rem 0.875rem;
    background: rgba(31, 27, 45, 0.28);
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
    font-weight: 600;
}

.legal-hero :focus-visible { outline-color: #FFFFFF; }

.legal-hero__shards { width: 110px; }
.legal-hero__shards--left { left: -55px; top: 58%; }
.legal-hero__shards--right { right: -55px; top: 18%; }

.legal-hero--terms .legal-hero__shards--right { width: 130px; top: 30%; }
.legal-hero--cookie .legal-hero__shards--left { top: 40%; }

@media (min-width: 768px) {
    .legal-hero__shards { width: clamp(180px, 22vw, 320px); }
    .legal-hero__shards--left { left: -40px; top: 32%; }
    .legal-hero__shards--right { right: -40px; top: 12%; }
    .legal-hero--terms .legal-hero__shards--right { width: clamp(220px, 26vw, 360px); top: 8%; right: -30px; }
    .legal-hero--cookie .legal-hero__shards--left { top: 22%; left: -10px; }
}

@media (min-width: 1024px) {
    .legal-hero {
        min-height: calc(var(--header-h) + 260px);
        padding-top: calc(var(--header-h) + 3rem);
    }
}

.legal-layout {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    margin-top: -60px;
    padding-bottom: 1rem;
}

.legal-toc {
    padding: 0.875rem 1rem;
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.legal-toc__title {
    margin: 0 0 0.375rem;
    font-family: var(--font-head);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
}

.legal-toc__list {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0.25rem 0 0.375rem;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
}

.legal-toc__list li { flex: none; }

.legal-toc__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.875rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.legal-toc__list a:hover,
.legal-toc__list a[aria-current="location"] {
    border-color: var(--plum);
    color: var(--plum);
    background: var(--plum-tint);
}

.legal-doc {
    padding: 2rem 1.25rem 2.5rem;
    background: var(--surface);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-soft);
}

@media (min-width: 768px) {
    .legal-doc { padding: 3rem 3rem 3.5rem; }
}

@media (min-width: 1024px) {
    .legal-layout {
        grid-template-columns: 250px minmax(0, 1fr);
        align-items: start;
        gap: 2rem;
    }

    .legal-toc {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
        padding: 1.25rem;
        max-height: calc(100vh - var(--header-h) - 3rem);
        overflow-y: auto;
    }

    .legal-toc__list {
        flex-direction: column;
        gap: 0.125rem;
        overflow: visible;
    }

    .legal-toc__list a {
        display: flex;
        min-height: 40px;
        padding: 0.375rem 0.75rem;
        border: 0;
        border-radius: 10px;
        white-space: normal;
        line-height: 1.3;
        font-weight: 400;
    }

    .legal-toc__list a[aria-current="location"] { font-weight: 600; }

    .legal-doc { padding: 3.5rem 4rem 4rem; }
}

/* Readable document typography */
.prose {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--ink);
}

.prose > * {
    max-width: 70ch;
}

.prose h2 {
    margin: 2.75rem 0 0.875rem;
    font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
}

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

.prose h3 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.25rem;
}

.prose h2,
.prose h3 {
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

.prose p { margin: 0 0 1.125rem; }

.prose ul,
.prose ol {
    margin: 0 0 1.25rem;
    padding-left: 1.375rem;
}

.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--plum); }

.prose a {
    color: var(--plum);
    font-weight: 600;
}

.prose strong { font-weight: 600; }

.prose .callout {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--surface-soft);
    border-left: 4px solid var(--tangerine);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.prose th,
.prose td {
    padding: 0.75rem 0.875rem;
    border-bottom: 1px solid var(--line-strong);
    text-align: left;
    vertical-align: top;
}

.prose thead th {
    font-family: var(--font-head);
    font-weight: 600;
    background: var(--surface-soft);
}

.contact-card {
    margin: 1.25rem 0;
    padding: 1.25rem 1.5rem;
    background: var(--surface-soft);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
}

.contact-card dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.contact-card__row {
    display: grid;
    gap: 0.125rem;
}

.contact-card dt {
    font-family: var(--font-head);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
}

.contact-card dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (min-width: 600px) {
    .contact-card__row {
        grid-template-columns: 9rem minmax(0, 1fr);
        gap: 1rem;
    }
}

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

.site-footer {
    position: relative;
    overflow: clip;
    padding: 3rem 0 3.5rem;
}

.page-home .site-footer {
    padding-top: 0;
}

.footer-shards {
    display: none;
    width: 280px;
    bottom: -70px;
}

.footer-shards--left { left: -60px; }
.footer-shards--right { right: -60px; }

@media (min-width: 768px) {
    .footer-shards { display: block; }
}

.footer-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.75rem;
    padding: 2.5rem 1.5rem 2rem;
    background: var(--surface);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-soft);
}

.page-home .footer-card {
    border-radius: 0 0 var(--radius-panel) var(--radius-panel);
}

.footer-card__tagline {
    max-width: 30rem;
    margin: 0.5rem 0 0;
    color: var(--muted);
}

.footer-label {
    margin: 0 0 0.25rem;
    font-family: var(--font-head);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.footer-nav a:hover {
    color: var(--plum);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.footer-card__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.footer-age {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.9375rem;
    font-weight: 600;
}

.footer-copy {
    flex-basis: 100%;
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

@media (min-width: 768px) {
    .footer-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-card {
        justify-items: center;
        gap: 0.5rem;
        padding: 2.5rem 3rem 2.25rem;
        text-align: center;
    }

    .footer-card__brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0.75rem;
    }

    .footer-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .footer-nav ul { justify-content: center; }

    .footer-card__bottom {
        justify-content: center;
        width: 100%;
        margin-top: 0.75rem;
    }

    .footer-copy { text-align: center; }
}

/* ============================================
   HOME PAGE
   ============================================ */

:root {
    --container-wide: 1360px;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    color: #FFFFFF;
    background-color: #9A5A6E;
    padding: calc(var(--header-h) + 2rem) 0 0;
}

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

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(36, 18, 48, 0.52) 0%, rgba(36, 18, 48, 0.36) 50%, rgba(36, 18, 48, 0) 85%);
    pointer-events: none;
}

.hero__inner {
    display: grid;
    gap: 2rem;
}

.hero__copy {
    max-width: 36rem;
}

.hero h1 {
    color: #FFFFFF;
    font-size: clamp(2.125rem, 1.45rem + 2.7vw, 3.375rem);
    line-height: 1.08;
    margin-bottom: 1rem;
    text-shadow: 0 1px 18px rgba(31, 27, 45, 0.25);
}

.hero__lead {
    max-width: 32rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.hero__note {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
}

.hero :focus-visible {
    outline-color: #FFFFFF;
}

/* App preview (code-native phones) */
.app-preview {
    --s: 0.78;
    position: relative;
    height: 300px;
}

.app-stage {
    position: absolute;
    top: 0;
    left: 50%;
    width: 380px;
    height: 460px;
    transform: translateX(-50%) scale(var(--s));
    transform-origin: top center;
}

.app-stage__shards {
    position: absolute;
    top: -40px;
    left: -50px;
    width: 480px;
    height: 540px;
    max-width: none;
    overflow: visible;
    pointer-events: none;
}

.app-stage__shards--back { z-index: 0; }
.app-stage__shards--front { z-index: 3; }

.phone {
    position: absolute;
    width: 210px;
    padding: 11px;
    background: #FFFFFF;
    border-radius: 34px;
    box-shadow: var(--shadow-phone);
    color: var(--ink);
    animation: phone-float 6s ease-in-out infinite;
}

.phone--discover { left: 0; top: 0; height: 420px; z-index: 1; }
.phone--chat { left: 160px; top: 32px; height: 392px; z-index: 2; animation-delay: -3s; }

@keyframes phone-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.phone__screen {
    display: flex;
    flex-direction: column;
    gap: 9px;
    height: 100%;
    padding: 14px 12px 10px;
    background: var(--surface-soft);
    border-radius: 24px;
    overflow: hidden;
}

.ui-bar {
    display: block;
    width: 80%;
    height: 7px;
    background: var(--line-strong);
    border-radius: 4px;
}

.ui-bar--short { width: 40px; }
.ui-bar--thin { width: 55%; height: 5px; background: #E6E3EE; }

.ui-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-title {
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
}

.ui-avatars {
    display: flex;
    gap: 7px;
}

.ui-avatars span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #D9CCEA;
}

.ui-avatars span:nth-child(1) { background: #F8C9AC; box-shadow: 0 0 0 2px var(--surface-soft), 0 0 0 4px var(--plum-light); }
.ui-avatars span:nth-child(2) { background: #B6E0DE; }
.ui-avatars span:nth-child(4) { background: #F3D9C8; }
.ui-avatars span:nth-child(5) { background: #CDE7E6; }

.ui-thumbs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ui-thumb {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px 5px 8px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(31, 27, 45, 0.08);
}

.ui-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.ui-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
}

.ui-rows li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ui-dot {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E2DEEC;
}

.ui-lines {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
}

.ui-tabs {
    display: flex;
    justify-content: space-around;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.ui-tabs svg { width: 18px; height: 18px; }

.ui-chat-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
}

.ui-chat-head svg { width: 12px; height: 12px; flex: none; }

.ui-chat-head img {
    flex: none;
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
}

.ui-chat-meta {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.ui-chat-name {
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
}

.ui-thread {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.bubble {
    max-width: 84%;
    margin: 0;
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.35;
    border-radius: 14px;
}

.bubble--out {
    align-self: flex-end;
    background: var(--teal-dark);
    color: #FFFFFF;
    border-bottom-right-radius: 4px;
}

.bubble--in {
    align-self: flex-start;
    background: #FFFFFF;
    color: var(--ink);
    border: 1px solid var(--line);
    border-bottom-left-radius: 4px;
}

.ui-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px 6px 12px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 12px;
}

.ui-input svg { width: 22px; height: 22px; }

@media (min-width: 400px) {
    .app-preview { --s: 0.88; height: 330px; }
}

@media (min-width: 768px) {
    .app-preview { --s: 1; height: 380px; }
}

@media (min-width: 1024px) {
    .hero {
        padding: calc(var(--header-h) + 3.5rem) 0 calc(120px + 2.5rem);
    }

    .hero::before { background-position: center 30%; }

    .hero::after {
        background: linear-gradient(90deg, rgba(36, 18, 48, 0.52) 0%, rgba(36, 18, 48, 0.34) 40%, rgba(36, 18, 48, 0) 62%);
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        gap: 3rem;
        min-height: 470px;
    }

    .app-preview { height: 470px; }
}

/* ---------- Panels ---------- */

.home-container {
    max-width: var(--container-wide);
}

.page-home .site-footer .container {
    max-width: var(--container-wide);
}

.home-wrap {
    position: relative;
    z-index: 1;
    margin-top: -1.5rem;
}

.home-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--surface);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-soft);
}

.home-sec {
    position: relative;
    z-index: 1;
    container-type: inline-size;
    padding: 2.75rem 1.25rem;
}

.home-sec h2 {
    font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem);
}

.home-sec .section-head {
    margin-bottom: 1.75rem;
}

.home-sec .section-head > :last-child {
    margin-bottom: 0;
}

@media (max-width: 1023px) {
    .home-sec + .home-sec {
        border-top: 1px solid var(--line);
    }
}

@media (min-width: 768px) {
    .home-sec { padding: 3.5rem 2.5rem; }
}

@media (min-width: 1024px) {
    .home-wrap { margin-top: -120px; }

    .home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(4, auto);
        column-gap: 1.5rem;
        background: none;
        border-radius: 0;
        box-shadow: none;
    }

    .home-grid::before,
    .home-grid::after {
        content: "";
        grid-row: 1 / -1;
        background: var(--surface);
        border-radius: var(--radius-panel);
        box-shadow: var(--shadow-soft);
    }

    .home-grid::before { grid-column: 1; }
    .home-grid::after { grid-column: 2; }

    .home-sec {
        padding: 2.75rem 1.75rem;
        overflow: visible;
    }

    .sec-why { grid-column: 1; grid-row: 1; padding-top: 3rem; }
    .sec-how { grid-column: 2; grid-row: 1; padding-top: 4.5rem; }
    .sec-profiles { grid-column: 1; grid-row: 2; }
    .sec-safety { grid-column: 2; grid-row: 2; }
    .sec-features { grid-column: 1; grid-row: 3; }
    .sec-trust-cta { grid-column: 2; grid-row: 3; align-self: center; }
    .sec-stories { grid-column: 1; grid-row: 4; padding-bottom: 3.25rem; }
    .sec-faq { grid-column: 2; grid-row: 4; padding-bottom: 3.25rem; }
}

/* Canvas shards in the outer gutters */
.canvas-shards {
    display: none;
    width: 200px;
}

@media (min-width: 768px) {
    .canvas-shards { display: block; }
    .canvas-shards--1 { left: -120px; top: 9%; }
    .canvas-shards--2 { right: -125px; top: 26%; width: 230px; }
    .canvas-shards--3 { left: -115px; top: 54%; }
    .canvas-shards--4 { right: -130px; top: 78%; width: 240px; }
}

/* ---------- Why ---------- */

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

.why-card {
    grid-column: 1 / -1;
    padding: 1.5rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.why-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lift);
}

.why-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.875rem;
}

.why-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.0625rem;
}

.why-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.why-photo {
    position: relative;
    order: -1;
    width: min(170px, 100%);
    margin: 0;
}

.why-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
}

.why-photo--friends {
    justify-self: end;
    translate: 10% 0;
    z-index: 1;
}

.why-photo--portrait {
    justify-self: start;
    translate: -10% 14%;
    margin-bottom: 1.75rem;
    z-index: 2;
}

.why-photo__shards {
    position: absolute;
    top: -14%;
    left: -14%;
    width: 128%;
    height: 128%;
    max-width: none;
    overflow: visible;
    pointer-events: none;
}

@container (min-width: 360px) {
    .why-card { grid-column: auto; }
}

@container (min-width: 480px) {
    .why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 0.875rem;
    }

    .why-photo {
        order: 0;
        width: 118%;
        margin: 0;
        translate: none;
    }

    .why-card--1 { grid-column: 1; grid-row: 1; }
    .why-card--2 { grid-column: 2; grid-row: 1; }
    .why-photo--friends { grid-column: 3; grid-row: 1; justify-self: start; }
    .why-photo--portrait { grid-column: 1; grid-row: 2; justify-self: end; }
    .why-card--3 { grid-column: 2; grid-row: 2; }
    .why-card--4 { grid-column: 3; grid-row: 2; }
    .why-card { padding: 1.375rem 0.875rem; }
}

/* ---------- How it works ---------- */

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

.step {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.step:nth-last-child(2)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 72px;
    bottom: -2rem;
    width: 72px;
    background: var(--surface);
}

.step__tile {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    background: var(--grad-tile);
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(94, 58, 134, 0.22);
}

.step__tile svg { width: 36px; height: 36px; }

.step__num {
    position: absolute;
    top: -9px;
    left: -9px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: var(--plum);
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    font-family: var(--font-head);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
}

.step__body h3 {
    margin: 0.25rem 0 0.375rem;
    font-size: 1.125rem;
}

.step__body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.steps__rail {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.steps__connector {
    position: absolute;
    max-width: none;
}

.steps__connector--h { display: none; }

.steps__connector--v {
    left: 29px;
    top: 36px;
    width: 14px;
    height: calc(100% - 36px);
}

@container (min-width: 380px) {
    .steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .step {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        text-align: center;
    }

    .step:nth-last-child(2)::after { display: none; }

    .steps__connector--v { display: none; }

    .steps__connector--h {
        display: block;
        left: 16.667%;
        top: 29px;
        width: 66.667%;
        height: 14px;
    }

    .step__body h3 { margin-top: 0.5rem; }
}

/* ---------- Profiles & stories ---------- */

.sample-label,
.stories-caption {
    display: inline-flex;
    margin: 0.75rem 0 0;
    padding: 0.25rem 0.875rem;
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
    font-weight: 600;
}

.sample-label {
    background: #FDEEE4;
    color: var(--tangerine-text);
}

.stories-caption {
    background: var(--plum-tint);
    color: var(--plum);
}

.shard-stage {
    position: relative;
}

.shard-band {
    position: absolute;
    top: -1.5rem;
    left: -2rem;
    z-index: 0;
    width: calc(100% + 4rem);
    height: calc(100% + 3rem);
    max-width: none;
    pointer-events: none;
}

.shard-stage .snap-row {
    position: relative;
    z-index: 1;
}

.sec-stories .snap-row {
    padding-top: 0.5rem;
}

@media (min-width: 1280px) {
    .sec-profiles { padding-inline: 1.25rem; }

    .sec-profiles .snap-row { gap: 0.75rem; }

    .sec-profiles .profile-card { padding: 0.5rem 0.5rem 0.875rem; }

    .sec-profiles .profile-card__body { padding: 0.625rem 0.25rem 0; }

    .sec-profiles .profile-card__name { font-size: 1.0625rem; }

    .sec-profiles .profile-card__area,
    .sec-profiles .profile-card__vibe,
    .sec-profiles .profile-card__more > p { font-size: 0.875rem; }

    .sec-profiles .chip { max-width: 100%; }

    .sec-stories .snap-row { gap: 0.875rem; }

    .sec-stories .story-card { padding: 3rem 1rem 1.25rem; }

    .sec-stories .story-card__text { font-size: 0.9375rem; }
}

/* ---------- Features ---------- */

.feature-grid {
    display: grid;
    gap: 1rem;
}

@container (min-width: 400px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container (min-width: 720px) {
    .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.feature-card {
    position: relative;
    z-index: 1;
    padding: 1.375rem 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.feature-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.875rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
}

.feature-card h3::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin-top: 0.5rem;
    background: var(--plum);
    border-radius: 2px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.features-ornament {
    display: none;
}

@media (min-width: 1024px) {
    .features-ornament {
        display: block;
        position: absolute;
        right: -50px;
        top: 36%;
        z-index: 2;
        width: 104px;
        height: 163px;
        pointer-events: none;
    }
}

/* ---------- Trust & safety ---------- */

.trust-grid {
    display: grid;
    gap: 1.5rem;
}

.trust-emblem {
    justify-self: center;
    width: min(220px, 70%);
    filter: drop-shadow(0 14px 22px rgba(58, 36, 86, 0.22));
}

.trust-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.875rem;
    align-items: start;
}

.trust-item__icon {
    width: 44px;
    height: 44px;
}

.trust-item h3 {
    margin-bottom: 0.25rem;
    font-size: 1.0625rem;
}

.trust-item p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

@container (min-width: 460px) {
    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1.75rem;
        row-gap: 1.5rem;
        align-items: center;
    }

    .trust-emblem {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 100%;
        max-width: 230px;
    }

    .trust-item--privacy { grid-column: 2; grid-row: 1; }
    .trust-item--block { grid-column: 2; grid-row: 2; }
    .trust-item--control { grid-column: 1; grid-row: 3; align-self: start; }
    .trust-item--respect { grid-column: 2; grid-row: 3; align-self: start; }
}

/* ---------- Trust CTA ---------- */

.trust-cta {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

.trust-cta__copy p {
    color: var(--muted);
}

.trust-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
    margin-top: 1.25rem;
}

.trust-cta__copy .trust-cta__link {
    margin: 0;
}

.trust-cta__link a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--plum);
    font-weight: 600;
}

.trust-cta__emblem {
    justify-self: center;
    width: min(190px, 60%);
    filter: drop-shadow(0 14px 22px rgba(58, 36, 86, 0.2));
}

@container (min-width: 460px) {
    .trust-cta { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
    .trust-cta__emblem { width: 100%; max-width: 210px; }
}

/* ---------- Final CTA ---------- */

.final-cta {
    position: relative;
    margin-top: 1.5rem;
}

.final-cta__band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 1.25rem;
    justify-items: center;
    padding: 3rem 1.25rem 3.25rem;
    background-color: #8A5A78;
    border-radius: var(--radius-panel) var(--radius-panel) 0 0;
    color: #FFFFFF;
    text-align: center;
}

.final-cta__band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url("/assets/8686f5066d4802c745d5089762386170.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.final-cta__band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(70% 95% at 50% 50%, rgba(36, 18, 48, 0.5), rgba(36, 18, 48, 0.22) 85%);
    pointer-events: none;
}

.final-cta__band :focus-visible {
    outline-color: #FFFFFF;
}

.final-cta__content {
    width: 100%;
    max-width: 36rem;
}

.final-cta h2 {
    color: #FFFFFF;
}

.final-cta__text {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.final-cta__btn,
.final-cta__badge {
    width: 100%;
    justify-content: center;
}

@media (min-width: 600px) {
    .final-cta__btn,
    .final-cta__badge { width: auto; }
}

@media (min-width: 1024px) {
    .final-cta__band {
        grid-template-columns: 1fr minmax(0, 36rem) 1fr;
        align-items: center;
        padding: 3.5rem 3rem;
    }

    .final-cta__content { grid-column: 2; }

    .final-cta__badge {
        grid-column: 3;
        justify-self: end;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@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;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .btn:hover,
    .play-badge:hover,
    .profile-card:hover,
    .profile-card:focus-within,
    .story-card:hover,
    .why-card:hover,
    .feature-card:hover {
        transform: none;
    }

    .phone {
        animation: none;
    }
}