/*
 * JOYMEET - CSS STYLES
 * Canonical design tokens live in this file.
 * Night-sky constellation identity: midnight indigo, marigold, luminous violet.
 */

:root {
    /* Surfaces */
    --c-bg: #13113A;
    --c-bg-deep: #0F0D30;
    --c-navy: #1C1A4B;
    --c-drawer: #17154A;
    --c-graphite: #24233A;
    --c-glass: rgba(70, 62, 150, 0.35);
    --c-glass-soft: rgba(70, 62, 150, 0.22);
    --c-glass-deep: rgba(15, 13, 48, 0.62);
    --c-steel: rgba(62, 92, 158, 0.55);
    --c-steel-border: rgba(186, 208, 255, 0.38);
    --c-warm-surface: rgba(112, 78, 58, 0.48);

    /* Lines */
    --c-border-peach: rgba(251, 214, 170, 0.45);
    --c-border-lavender: rgba(195, 192, 224, 0.3);
    --c-hairline: rgba(251, 214, 170, 0.15);
    --c-hairline-lav: rgba(195, 192, 224, 0.15);

    /* Brand */
    --c-primary: #F6B93B;
    --c-primary-hover: #FFC857;
    --c-primary-press: #E8A923;
    --c-on-primary: #1A1530;
    --c-accent: #9B6BFF;

    /* Text */
    --c-heading: #FBE7CF;
    --c-text: #C3C0E0;
    --c-muted: #A9A6CC;
    --c-link: #FFD58A;

    /* Constellation */
    --c-thread: #F9C994;
    --c-node: #FFF1DC;

    /* Interest pill tints (muted) */
    --pill-mint-bg: rgba(124, 207, 170, 0.16);
    --pill-mint-fg: #B4EBD3;
    --pill-sky-bg: rgba(122, 170, 236, 0.18);
    --pill-sky-fg: #BBD6F7;
    --pill-coral-bg: rgba(238, 130, 112, 0.18);
    --pill-coral-fg: #F7BEB2;
    --pill-lilac-bg: rgba(170, 135, 240, 0.2);
    --pill-lilac-fg: #D6C4F8;
    --pill-apricot-bg: rgba(240, 178, 110, 0.18);
    --pill-apricot-fg: #F8D3A8;

    /* Type */
    --font-head: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fs-h1: clamp(2.375rem, 1.5rem + 3.8vw, 4.5rem);
    --fs-h2: clamp(1.875rem, 1.35rem + 2.1vw, 2.875rem);
    --fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.9375rem;
    --fs-lede: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);

    /* Shape */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 24px;
    --r-device: 36px;
    --r-pill: 999px;

    /* Depth */
    --glow-amber: 0 0 0 1px rgba(246, 185, 59, 0.06), 0 16px 44px -18px rgba(246, 185, 59, 0.55), 0 0 26px -8px rgba(246, 185, 59, 0.28);
    --glow-amber-strong: 0 0 0 1px rgba(246, 185, 59, 0.18), 0 18px 50px -14px rgba(246, 185, 59, 0.7), 0 0 34px -4px rgba(246, 185, 59, 0.4);
    --glow-violet: 0 0 60px -10px rgba(155, 107, 255, 0.55);
    --shadow-soft: 0 22px 50px -24px rgba(5, 4, 20, 0.85);

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

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur-fast: 160ms;
    --dur: 300ms;

    /* Shared glyph */
    --star-marigold: url("data:image/svg+xml,%3Csvg%20xmlns=%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20fill=%27%23F6B93B%27%20d=%27M12%201c1%208%203%2010%2011%2011-8%201-10%203-11%2011-1-8-3-10-11-11%208-1%2010-3%2011-11z%27%2F%3E%3C%2Fsvg%3E");
}

/* ============================================
   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;
}

/* ============================================
   1. BASE
   ============================================ */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: clip;
    background-color: var(--c-bg);
    background-image:
        radial-gradient(1100px 700px at 88% -8%, rgba(155, 107, 255, 0.16), transparent 60%),
        radial-gradient(900px 640px at -12% 34%, rgba(155, 107, 255, 0.09), transparent 62%),
        linear-gradient(180deg, #13113A 0%, #1C1A4B 48%, #15133F 100%);
    color: var(--c-text);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    margin: 0 0 0.5em;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.005em;
    color: var(--c-heading);
    text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }

p {
    margin: 0 0 1em;
}

img {
    display: block;
}

a {
    color: var(--c-link);
    transition: color var(--dur-fast) ease;
}

a:hover {
    color: var(--c-heading);
}

button {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 3px;
}

[tabindex="-1"]:focus {
    outline: none;
}

[id] {
    scroll-margin-top: calc(var(--header-h) + 1rem);
}

::selection {
    background: rgba(246, 185, 59, 0.35);
    color: var(--c-heading);
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    border-radius: var(--r-sm);
    background: var(--c-primary);
    color: var(--c-on-primary);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 0.75rem;
    color: var(--c-on-primary);
}

/* ============================================
   2. LAYOUT
   ============================================ */

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

.section {
    position: relative;
    padding-block: clamp(4rem, 9vw, 7rem);
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section-head {
    max-width: 640px;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

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

.section-title {
    font-size: var(--fs-h2);
}

.section-intro {
    margin: 0;
    font-size: var(--fs-lede);
    color: var(--c-text);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-primary);
}

.lede {
    font-size: var(--fs-lede);
}

/* ============================================
   3. BUTTONS & BADGES
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform var(--dur-fast) var(--ease),
        box-shadow 220ms var(--ease),
        background-color 220ms var(--ease),
        border-color 220ms var(--ease),
        color 220ms var(--ease);
}

.btn__icon {
    flex: none;
    width: 20px;
    height: 20px;
    transition: transform 220ms var(--ease);
}

.btn:hover .btn__icon {
    transform: translateX(2px);
}

.btn--primary {
    background: var(--c-primary);
    color: var(--c-on-primary);
    box-shadow:
        0 0 0 1px rgba(246, 185, 59, 0.55),
        0 8px 26px -8px rgba(246, 185, 59, 0.6),
        0 0 22px -2px rgba(246, 185, 59, 0.32);
}

.btn--primary:hover {
    background: var(--c-primary-hover);
    color: var(--c-on-primary);
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(255, 200, 87, 0.75),
        0 12px 32px -8px rgba(246, 185, 59, 0.75),
        0 0 36px 0 rgba(246, 185, 59, 0.45);
}

.btn--primary:active,
.btn--primary.is-pressed {
    background: var(--c-primary-press);
    transform: translateY(0) scale(0.97);
}

.btn--ghost {
    background: rgba(251, 214, 170, 0.06);
    color: var(--c-heading);
    border-color: var(--c-border-peach);
}

.btn--ghost:hover {
    background: rgba(246, 185, 59, 0.14);
    border-color: var(--c-primary);
    color: var(--c-heading);
    box-shadow: 0 0 24px -6px rgba(246, 185, 59, 0.45);
}

.btn--ghost:active,
.btn--ghost.is-pressed {
    transform: scale(0.97);
}

.btn--text {
    min-height: 44px;
    padding: 0.5rem 0.25rem;
    background: none;
    color: var(--c-primary);
    border-radius: var(--r-xs);
    text-decoration: underline;
    text-decoration-color: rgba(246, 185, 59, 0.5);
    text-underline-offset: 0.25em;
}

.btn--text:hover {
    color: var(--c-primary-hover);
    text-decoration-color: currentColor;
}

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

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

.btn--block {
    width: 100%;
}

.play-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 56px;
    padding: 0.5rem 1.25rem 0.5rem 1rem;
    background: #000;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: var(--r-sm);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform var(--dur-fast) var(--ease), border-color 220ms ease, box-shadow 220ms ease;
}

.play-badge:hover {
    transform: translateY(-1px);
    border-color: var(--c-border-peach);
    box-shadow: 0 10px 28px -12px rgba(246, 185, 59, 0.5);
}

.play-badge:active,
.play-badge.is-pressed {
    transform: scale(0.97);
}

.play-badge__icon {
    flex: none;
    width: 24px;
    height: 26px;
}

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

.play-badge__small {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.play-badge__big {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.play-badge--sm {
    min-height: 48px;
    padding: 0.375rem 1rem 0.375rem 0.8rem;
}

.play-badge--sm .play-badge__icon {
    width: 20px;
    height: 22px;
}

.play-badge--sm .play-badge__big {
    font-size: 1.0625rem;
}

/* ============================================
   4. HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(19, 17, 58, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--c-hairline);
    transition: background-color 220ms ease;
}

.site-header.is-scrolled::before,
body.menu-open .site-header::before {
    background: rgba(19, 17, 58, 0.92);
}

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

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

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

.site-brand__text {
    display: inline-flex;
    align-items: flex-start;
    font-family: var(--font-head);
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.005em;
}

.site-brand__star {
    width: 0.42em;
    height: 0.42em;
    margin: -0.12em 0.02em 0 0.02em;
    fill: var(--c-primary);
    filter: drop-shadow(0 0 4px rgba(246, 185, 59, 0.75));
}

.menu-toggle {
    order: 3;
    display: inline-flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(251, 214, 170, 0.06);
    border: 1px solid var(--c-hairline);
    border-radius: var(--r-sm);
    color: var(--c-heading);
    cursor: pointer;
}

.menu-toggle__bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 220ms var(--ease), opacity 160ms ease;
}

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

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

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

.header-actions {
    order: 2;
    margin-left: auto;
    display: flex;
    align-items: center;
}

.header-actions .header-cta {
    min-height: 44px;
    padding: 0.5rem 1.15rem;
}

.header-cta__long {
    display: none;
}

/* Mobile drawer */
.site-nav {
    position: fixed;
    top: var(--header-bottom);
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--c-drawer);
    background-image: radial-gradient(600px 400px at 100% 0%, rgba(155, 107, 255, 0.18), transparent 70%);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    transform: translateY(-12px);
    transition: transform 220ms var(--ease), visibility 0s linear 220ms;
}

.site-nav.is-open {
    visibility: visible;
    transform: none;
    transition: transform 220ms var(--ease), visibility 0s;
}

.site-nav__list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__link {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--c-hairline);
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--c-heading);
    text-decoration: none;
}

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

.site-nav__cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-nav__note {
    margin: 0;
    font-size: var(--fs-small);
    color: var(--c-muted);
}

@media (min-width: 560px) {
    .header-cta__long {
        display: inline;
    }
}

@media (min-width: 1024px) {
    .site-header__inner {
        gap: 1.5rem;
        min-height: 72px;
    }

    .site-brand__text {
        font-size: 1.75rem;
    }

    .menu-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        order: 2;
        flex: 1;
        flex-direction: row;
        justify-content: center;
        gap: 0;
        padding: 0;
        background: none;
        overflow: visible;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .site-nav__list {
        flex-direction: row;
        gap: 0.25rem;
    }

    .site-nav__link {
        min-height: 44px;
        padding: 0.5rem 0.9rem;
        border: 0;
        border-radius: var(--r-pill);
        font-family: var(--font-body);
        font-size: 0.975rem;
        font-weight: 500;
        color: var(--c-text);
        transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
    }

    .site-nav__link:hover {
        color: var(--c-heading);
        background: rgba(251, 214, 170, 0.07);
    }

    .site-nav__cta {
        display: none;
    }

    .header-actions {
        order: 3;
        margin-left: 0;
    }

    .header-actions .header-cta {
        padding-inline: 1.4rem;
    }
}

/* ============================================
   5. FOOTER
   ============================================ */

.site-footer {
    position: relative;
    padding-top: clamp(3rem, 6vw, 4.5rem);
    background: var(--c-graphite);
    border-top: 1px solid var(--c-hairline-lav);
    color: var(--c-muted);
    font-size: var(--fs-small);
}

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

.site-footer__brand,
.site-footer__app {
    grid-column: 1 / -1;
}

.site-brand--footer .site-brand__text {
    font-size: 1.75rem;
}

.site-footer__desc {
    max-width: 34ch;
    margin: 0.75rem 0 0;
    color: var(--c-muted);
}

.site-footer__title {
    margin: 0 0 0.5rem;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-heading);
}

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

.site-footer__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--c-muted);
    text-decoration: none;
}

.site-footer__list a:hover {
    color: var(--c-heading);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-footer__app-text {
    max-width: 32ch;
    margin: 0 0 1rem;
}

.site-footer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.25rem 1.5rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-block: 1.5rem;
    border-top: 1px solid var(--c-hairline-lav);
    font-size: 0.875rem;
}

.site-footer__bottom p {
    margin: 0;
}

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

    .site-footer__brand,
    .site-footer__app {
        grid-column: auto;
    }

    .site-footer__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   6. SHARED PRIMITIVES
   ============================================ */

.glass {
    background: var(--c-glass);
    border: 1px solid var(--c-border-peach);
    border-radius: var(--r-lg);
    box-shadow: var(--glow-amber);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.star-glyph {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: var(--c-primary);
    vertical-align: -0.1em;
}

/* Interest pills */
.pill {
    --pill-bg: var(--pill-lilac-bg);
    --pill-fg: var(--pill-lilac-fg);
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.75rem;
    border-radius: var(--r-pill);
    background: var(--pill-bg);
    color: var(--pill-fg);
    border: 1px solid color-mix(in srgb, var(--pill-fg) 22%, transparent);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.pill--mint { --pill-bg: var(--pill-mint-bg); --pill-fg: var(--pill-mint-fg); }
.pill--sky { --pill-bg: var(--pill-sky-bg); --pill-fg: var(--pill-sky-fg); }
.pill--coral { --pill-bg: var(--pill-coral-bg); --pill-fg: var(--pill-coral-fg); }
.pill--lilac { --pill-bg: var(--pill-lilac-bg); --pill-fg: var(--pill-lilac-fg); }
.pill--apricot { --pill-bg: var(--pill-apricot-bg); --pill-fg: var(--pill-apricot-fg); }

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Outlined label chip ("Sample", "Example story") */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.7rem;
    border: 1px solid rgba(251, 231, 207, 0.6);
    border-radius: var(--r-pill);
    background: rgba(19, 17, 58, 0.55);
    color: var(--c-heading);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Star bullet list */
.star-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.star-list > li {
    position: relative;
    padding-left: 1.75rem;
}

.star-list > li + li {
    margin-top: 0.75rem;
}

.star-list > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 15px;
    height: 15px;
    background: var(--star-marigold) center / contain no-repeat;
    filter: drop-shadow(0 0 4px rgba(246, 185, 59, 0.6));
}

/* Code-built device frame (hero + features phones) */
.device {
    position: relative;
    padding: 10px;
    border-radius: var(--r-device);
    background: #0E0C2C;
    border: 1px solid rgba(251, 214, 170, 0.38);
    box-shadow:
        0 0 0 4px rgba(19, 17, 58, 0.9),
        0 0 42px -6px rgba(249, 201, 148, 0.35),
        var(--shadow-soft);
}

.device__screen {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--r-device) - 10px);
    background: var(--c-navy);
}

/* Constellation SVG art (signature motif) */
.cst {
    display: block;
    overflow: visible;
    pointer-events: none;
    filter: drop-shadow(0 0 3px rgba(249, 201, 148, 0.75)) drop-shadow(0 0 10px rgba(246, 185, 59, 0.3));
}

.cst__glow {
    fill: none;
    stroke: var(--c-thread);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.18;
}

.cst__line {
    fill: none;
    stroke: var(--c-thread);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cst__line--dashed {
    stroke-dasharray: 4 6;
}

.cst__bloom {
    fill: var(--c-primary);
    opacity: 0.32;
}

.cst__star,
.cst__node {
    fill: var(--c-node);
}

/* Page-wide thread layer: placed inside a positioned section */
.thread {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.55;
}

.thread svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   7. ACCORDION
   ============================================ */

.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 680px;
    margin-inline: auto;
}

.accordion__item {
    border: 1px solid var(--c-border-lavender);
    border-radius: var(--r-sm);
    background: rgba(70, 62, 150, 0.24);
    transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.accordion__item.is-open {
    border-color: var(--c-primary);
    background: var(--c-warm-surface);
    box-shadow: 0 0 26px -10px rgba(246, 185, 59, 0.45);
}

.accordion__heading {
    margin: 0;
    font-size: inherit;
}

.accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 56px;
    padding: 0.875rem 1.125rem;
    background: none;
    border: 0;
    border-radius: var(--r-sm);
    color: var(--c-heading);
    font-family: var(--font-head);
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
}

.accordion__trigger:hover .accordion__question {
    color: #FFF4E6;
}

.accordion__icon {
    position: relative;
    flex: none;
    width: 18px;
    height: 18px;
    transition: transform 220ms var(--ease);
}

.accordion__icon::before,
.accordion__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--c-primary);
    transform: translate(-50%, -50%);
    transition: transform 220ms var(--ease);
}

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

.accordion__item.is-open .accordion__icon {
    transform: rotate(180deg);
}

.accordion__item.is-open .accordion__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.accordion__panel {
    display: grid;
    grid-template-rows: 1fr;
    transition: grid-template-rows 220ms var(--ease), visibility 0s linear 0s;
}

.js .accordion__item:not(.is-open) .accordion__panel {
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 220ms var(--ease), visibility 0s linear 220ms;
}

.accordion__inner {
    min-height: 0;
    overflow: hidden;
}

.accordion__body {
    padding: 0 1.125rem 1.125rem;
}

.accordion__body p {
    margin: 0;
    color: var(--c-text);
}

/* ============================================
   8. LEGAL DOCUMENTS
   ============================================ */

.doc-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(220px, 30vw, 300px);
    padding-block: clamp(2.25rem, 6vw, 3.75rem);
    border-bottom: 1px solid var(--c-hairline);
    background-color: var(--c-bg);
}

.doc-hero--shield {
    background-image:
        radial-gradient(60% 95% at 6% 0%, rgba(155, 107, 255, 0.4), transparent 65%),
        radial-gradient(48% 80% at 100% 100%, rgba(246, 185, 59, 0.16), transparent 65%);
}

.doc-hero--triangle {
    background-image:
        radial-gradient(60% 95% at 96% 0%, rgba(155, 107, 255, 0.4), transparent 65%),
        radial-gradient(48% 80% at 0% 100%, rgba(246, 185, 59, 0.16), transparent 65%);
}

.doc-hero--circle {
    background-image:
        radial-gradient(55% 110% at 50% 40%, rgba(155, 107, 255, 0.32), transparent 68%),
        radial-gradient(40% 70% at 85% 100%, rgba(246, 185, 59, 0.12), transparent 65%);
}

.doc-hero__inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.doc-hero__title {
    margin-bottom: 0.75rem;
    font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
}

.doc-hero__intro {
    max-width: 62ch;
    margin: 0;
    font-size: var(--fs-lede);
}

.doc-hero__art {
    display: none;
    width: 220px;
    height: auto;
}

@media (min-width: 768px) {
    .doc-hero__inner {
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    .doc-hero__art {
        display: block;
    }
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    margin: 0 0 0.75rem;
    padding: 0;
    list-style: none;
    font-size: var(--fs-small);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 0.5rem;
    color: var(--c-muted);
}

.breadcrumb a {
    color: var(--c-muted);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.breadcrumb a:hover {
    color: var(--c-heading);
}

.breadcrumb [aria-current="page"] {
    color: var(--c-heading);
}

.updated-pill {
    display: inline-flex;
    align-items: center;
    margin: 0 0 1rem;
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--c-border-peach);
    border-radius: var(--r-pill);
    background: rgba(19, 17, 58, 0.5);
    color: var(--c-heading);
    font-size: 0.875rem;
    font-weight: 500;
}

.doc-layout {
    display: grid;
    gap: 2rem;
    align-items: start;
    padding-block: 2.5rem 5rem;
}

@media (min-width: 1024px) {
    .doc-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 4rem;
        padding-block: 4rem 6rem;
    }
}

/* Table of contents */
.doc-toc {
    position: relative;
}

.doc-toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 52px;
    padding: 0.75rem 1rem;
    background: var(--c-glass);
    border: 1px solid var(--c-border-peach);
    border-radius: var(--r-sm);
    color: var(--c-heading);
    font-family: var(--font-head);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
}

.doc-toc__chevron {
    flex: none;
    transition: transform 220ms var(--ease);
}

.doc-toc.is-open .doc-toc__chevron {
    transform: rotate(180deg);
}

.doc-toc__title {
    display: none;
}

.doc-toc__list {
    margin: 0.5rem 0 0;
    padding: 0.5rem;
    list-style: none;
    border: 1px solid var(--c-border-lavender);
    border-radius: var(--r-sm);
    background: rgba(15, 13, 48, 0.85);
}

.js .doc-toc:not(.is-open) .doc-toc__list {
    display: none;
}

.doc-toc__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 44px;
    padding: 0.4rem 0.75rem;
    border-radius: var(--r-xs);
    color: var(--c-muted);
    font-size: var(--fs-small);
    line-height: 1.3;
    text-decoration: none;
}

.doc-toc__link::before {
    content: "";
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(195, 192, 224, 0.55);
    transition: transform 220ms var(--ease), background 220ms ease;
}

.doc-toc__link:hover {
    color: var(--c-heading);
    background: rgba(251, 214, 170, 0.06);
}

.doc-toc__link[aria-current="true"] {
    color: var(--c-heading);
}

.doc-toc__link[aria-current="true"]::before {
    width: 12px;
    height: 12px;
    border-radius: 0;
    background: var(--star-marigold) center / contain no-repeat;
    filter: drop-shadow(0 0 5px rgba(246, 185, 59, 0.8));
    margin-left: -3px;
}

@media (min-width: 1024px) {
    .doc-toc {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }

    .doc-toc__toggle {
        display: none;
    }

    .doc-toc__title {
        display: block;
        margin: 0 0 0.75rem;
        font-family: var(--font-head);
        font-size: 0.9375rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--c-heading);
    }

    .doc-toc__list,
    .js .doc-toc:not(.is-open) .doc-toc__list {
        display: block;
        margin: 0;
        padding: 0 0 0 0.25rem;
        border: 0;
        border-left: 1px solid var(--c-hairline);
        border-radius: 0;
        background: none;
    }

    .doc-toc__link {
        min-height: 36px;
        padding: 0.35rem 0.6rem;
    }
}

/* Document content + gutter thread */
.doc-content {
    position: relative;
    min-width: 0;
    max-width: 74ch;
}

.doc-section {
    overflow: visible;
    margin-top: 2.75rem;
}

.doc-content > .doc-section:first-child,
.doc-content > :first-child {
    margin-top: 0;
}

.doc-section > h2 {
    position: relative;
    font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}

@media (min-width: 768px) {
    .doc-content {
        padding-left: 2.5rem;
    }

    .doc-content::before {
        content: "";
        position: absolute;
        left: 0.75rem;
        top: 0.5rem;
        bottom: 0;
        width: 1px;
        background: linear-gradient(to bottom, rgba(251, 214, 170, 0.38), rgba(251, 214, 170, 0.06));
    }

    .doc-section > h2::before {
        content: "";
        position: absolute;
        left: calc(0.75rem - 2.5rem - 7px);
        top: 0.3em;
        width: 15px;
        height: 15px;
        background: var(--star-marigold) center / contain no-repeat;
        filter: drop-shadow(0 0 4px rgba(246, 185, 59, 0.45));
        opacity: 0.6;
        transition: opacity 300ms ease, transform 300ms var(--ease), filter 300ms ease;
    }

    .doc-section.is-active > h2::before {
        opacity: 1;
        transform: scale(1.25);
        filter: drop-shadow(0 0 10px rgba(246, 185, 59, 0.95));
    }
}

/* Prose */
.prose {
    color: var(--c-text);
}

.prose p,
.prose li {
    font-size: var(--fs-body);
}

.prose h3 {
    margin-top: 1.75rem;
    font-size: var(--fs-h3);
}

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

.prose li {
    margin-bottom: 0.5rem;
    padding-left: 0.25rem;
}

.prose li::marker {
    color: var(--c-primary);
}

.prose strong {
    color: var(--c-heading);
    font-weight: 600;
}

.prose a {
    color: var(--c-link);
    text-decoration-color: rgba(255, 213, 138, 0.55);
}

.prose a:hover {
    color: var(--c-heading);
    text-decoration-color: currentColor;
}

/* Summary box */
.summary-box {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    background: var(--c-glass);
    border: 1px solid var(--c-border-peach);
    border-radius: var(--r-lg);
    box-shadow: var(--glow-amber);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.summary-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--c-primary), #E0962A);
}

.summary-box__title {
    font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

/* Contact card */
.contact-card {
    margin-top: 1rem;
    padding: 1.5rem;
    background: var(--c-glass);
    border: 1px solid var(--c-border-peach);
    border-radius: var(--r-lg);
    box-shadow: var(--glow-amber);
}

.contact-card__list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
}

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

.contact-card__row dt {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.contact-card__row dd {
    margin: 0;
    color: var(--c-heading);
    overflow-wrap: anywhere;
}

.contact-card__note {
    margin: 1.25rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--c-hairline-lav);
}

@media (min-width: 560px) {
    .contact-card__row {
        grid-template-columns: 150px minmax(0, 1fr);
        gap: 1rem;
        align-items: baseline;
    }
}

/* Document table */
.doc-table-wrap {
    margin: 1.5rem 0;
    overflow: hidden;
    background: var(--c-glass);
    border: 1px solid var(--c-border-peach);
    border-radius: var(--r-lg);
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-small);
}

.doc-table caption {
    padding: 1rem 1rem 0;
    text-align: left;
    color: var(--c-muted);
}

.doc-table th {
    padding: 0.875rem 1rem;
    background: rgba(251, 214, 170, 0.08);
    color: var(--c-heading);
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 600;
    text-align: left;
}

.doc-table td {
    padding: 0.875rem 1rem;
    border-top: 1px solid var(--c-hairline-lav);
    vertical-align: top;
}

.doc-table tbody tr:nth-child(even) {
    background: rgba(195, 192, 224, 0.06);
}

@media (max-width: 639.98px) {
    .doc-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .doc-table,
    .doc-table tbody,
    .doc-table tr,
    .doc-table td {
        display: block;
        width: 100%;
    }

    .doc-table tr {
        padding: 0.875rem 1rem;
        border-top: 1px solid var(--c-hairline-lav);
    }

    .doc-table tbody tr:first-child {
        border-top: 0;
    }

    .doc-table td {
        padding: 0.3rem 0;
        border: 0;
    }

    .doc-table td::before {
        content: attr(data-label);
        display: block;
        font-family: var(--font-head);
        font-weight: 600;
        color: var(--c-heading);
    }
}

/* ============================================
   9. MOTION
   ============================================ */

@keyframes cst-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.82); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(12px);
        transition:
            opacity var(--dur) var(--ease) var(--reveal-delay, 0ms),
            transform var(--dur) var(--ease) var(--reveal-delay, 0ms);
    }

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

    .cst--draw .cst__line,
    .cst--draw .cst__glow {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: cst-draw 1.8s var(--ease) 0.2s forwards;
    }

    .twinkle {
        transform-box: fill-box;
        transform-origin: center;
        animation: twinkle 3.6s ease-in-out infinite;
    }

    .pulse-glow {
        animation: pulse-glow 4s ease-in-out infinite;
    }

    .loop-anim.is-offscreen,
    .loop-anim.is-offscreen * {
        animation-play-state: paused;
    }
}

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

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

/* ============================================
   10. HOME - SIGNATURE THREAD
   ============================================ */

.thread {
    display: none;
}

.thread__node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--c-node);
    box-shadow: 0 0 0 3px rgba(246, 185, 59, 0.22), 0 0 14px 3px rgba(246, 185, 59, 0.55);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.thread__node--lg {
    width: 14px;
    height: 14px;
}

.thread__fade {
    stroke: url(#thread-fade);
}

.landing-flow {
    position: relative;
}

.landing-flow::before {
    content: "";
    position: absolute;
    top: 2rem;
    bottom: 2rem;
    left: 6px;
    width: 1px;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(249, 201, 148, 0.4) 4%, rgba(249, 201, 148, 0.22) 96%, transparent);
}

@media (min-width: 1024px) {
    .thread {
        display: block;
    }

    .landing-flow::before {
        display: none;
    }
}

/* ============================================
   11. HOME - HERO
   ============================================ */

.hero {
    position: relative;
    overflow: clip;
    padding-block: 1.5rem 3.5rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("/assets/878e3e04783cac76e5608aba4b32cac1.webp") 64% 30% / cover no-repeat;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 17, 58, 0.6) 0%, rgba(19, 17, 58, 0.38) 45%, rgba(19, 17, 58, 0.82) 86%, var(--c-bg) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.5rem;
}

.hero__copy .eyebrow .star-glyph {
    width: 0.9em;
    height: 0.9em;
}

.hero__title {
    margin-bottom: 0.45em;
    font-size: clamp(2.375rem, 1.45rem + 3vw, 4rem);
    line-height: 1.04;
}

.hero__title-soft {
    display: block;
    font-weight: 600;
    color: #FFF1DC;
}

.hero__lede {
    max-width: 34rem;
    margin-bottom: 1.5rem;
    font-size: var(--fs-lede);
    color: var(--c-text);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero__actions .btn,
.hero__actions .play-badge {
    width: 100%;
    min-height: 52px;
    justify-content: center;
}

.hero__micro {
    margin: 1rem 0 0;
    font-size: var(--fs-small);
    color: var(--c-muted);
}

@media (min-width: 560px) {
    .hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .hero__actions .btn,
    .hero__actions .play-badge {
        width: auto;
        min-height: 56px;
    }
}

/* Hero phone mockup */
.hero-visual {
    position: relative;
    width: min(78%, 340px);
    margin: 0 auto;
    aspect-ratio: 440 / 560;
    container-type: inline-size;
}

.hero-phone {
    position: absolute;
    left: 20%;
    top: 7%;
    width: 56%;
    height: 85%;
    display: flex;
    padding: 2.2cqw;
    border-radius: 8cqw;
}

.hero-phone__screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2.4cqw 2.4cqw 2cqw;
    border-radius: 6cqw;
    background: linear-gradient(180deg, #1F1C52, #17154A);
}

.hero-phone__status {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5cqw;
    color: var(--c-muted);
}

.hero-phone__notch {
    width: 13cqw;
    height: 1.5cqw;
    border-radius: var(--r-pill);
    background: rgba(195, 192, 224, 0.35);
}

.hero-phone__gear {
    position: absolute;
    right: 1cqw;
    top: 50%;
    width: 3.4cqw;
    height: 3.4cqw;
    transform: translateY(-50%);
}

.hero-phone__stack {
    position: relative;
    flex: 1;
    margin-top: 2cqw;
}

.hero-phone__ghost {
    position: absolute;
    top: 6%;
    bottom: 6%;
    width: 30%;
    border-radius: 3.5cqw;
    background: rgba(70, 62, 150, 0.9);
    border: 1px solid var(--c-border-peach);
    opacity: 0.4;
}

.hero-phone__ghost--left { left: -22%; }
.hero-phone__ghost--right { right: -22%; }

.hero-card {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8%;
    right: 8%;
    display: flex;
    flex-direction: column;
    gap: 1.3cqw;
    padding: 1.8cqw;
    border: 1px solid var(--c-border-peach);
    border-radius: 4cqw;
    background: rgba(38, 34, 92, 0.96);
    box-shadow: 0 10px 28px -12px rgba(5, 4, 20, 0.8), 0 0 18px -6px rgba(246, 185, 59, 0.35);
}

.hero-card__img {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    border-radius: 3cqw;
}

.hero-card__name {
    margin: 0.4cqw 0 0;
    font-family: var(--font-head);
    font-size: 4.4cqw;
    font-weight: 700;
    line-height: 1.05;
    color: var(--c-heading);
}

.hero-card__meta {
    margin: 0.4cqw 0 0;
    font-size: 2.8cqw;
    line-height: 1.3;
    color: var(--c-muted);
}

.hero-card__lines {
    display: grid;
    gap: 0.9cqw;
    margin-top: 1.4cqw;
}

.hero-card__lines span {
    display: block;
    height: 1.1cqw;
    border-radius: var(--r-pill);
    background: rgba(195, 192, 224, 0.28);
}

.hero-card__lines span:last-child {
    width: 60%;
}

.hero-card__actions {
    display: flex;
    justify-content: center;
    gap: 2.6cqw;
    margin-top: 1.8cqw;
}

.hero-card__action {
    display: grid;
    place-items: center;
    width: 7.4cqw;
    height: 7.4cqw;
    border-radius: 50%;
    background: rgba(251, 231, 207, 0.1);
    border: 1px solid rgba(251, 231, 207, 0.22);
}

.hero-card__action svg {
    width: 3.6cqw;
    height: 3.6cqw;
}

.hero-card__action--pass { color: var(--pill-coral-fg); }
.hero-card__action--like { color: var(--c-primary); }
.hero-card__action--chat { color: var(--pill-sky-fg); }

.hero-phone__dots {
    display: flex;
    justify-content: center;
    gap: 1.2cqw;
    margin-top: 2cqw;
}

.hero-phone__dots span {
    width: 1.3cqw;
    height: 1.3cqw;
    border-radius: 50%;
    background: rgba(195, 192, 224, 0.4);
}

.hero-phone__dots span:first-child {
    background: var(--c-primary);
}

.hero-cst {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.cst__line--cross {
    opacity: 0.6;
}

.hero-cst__tail {
    display: none;
}

@media (min-width: 768px) {
    .hero-visual {
        width: 380px;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding-block: clamp(3rem, 5vw, 5rem) clamp(4.5rem, 8vw, 7rem);
    }

    .hero__inner {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
        align-items: center;
        gap: 3rem;
    }

    .hero-visual {
        width: min(100%, 460px);
        margin: 0;
        justify-self: end;
    }

    .hero-cst__tail {
        display: inline;
    }
}

/* ============================================
   12. HOME - WHY JOYMEET
   ============================================ */

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

.why__copy .section-head {
    margin-bottom: 2rem;
}

.why__art {
    position: relative;
    order: -1;
    width: min(100%, 300px);
    margin-inline: auto;
}

.why__art::before {
    content: "";
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(155, 107, 255, 0.34), rgba(155, 107, 255, 0.1) 60%, transparent);
    pointer-events: none;
}

.why-art {
    position: relative;
    width: 100%;
    height: auto;
    overflow: visible;
}

.why-art__avatar {
    filter: drop-shadow(0 0 10px rgba(251, 231, 207, 0.45));
}

.benefits {
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.benefit__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

.benefit__title .star-glyph {
    flex: none;
    width: 0.8em;
    height: 0.8em;
    filter: drop-shadow(0 0 4px rgba(246, 185, 59, 0.7));
}

.benefit p {
    margin: 0;
}

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

    .why__art {
        width: 380px;
    }
}

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

    .why__art {
        order: 0;
        width: min(100%, 500px);
    }
}

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

.steps-wrap {
    position: relative;
}

.steps__wave {
    display: none;
}

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

.steps::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 68px;
    bottom: 1rem;
    border-left: 2px dashed rgba(249, 201, 148, 0.45);
}

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

.step > :not(.step__medal) {
    grid-column: 2;
}

.step__medal {
    grid-column: 1;
    grid-row: 1 / span 3;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 3px solid transparent;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 35%, #2A2665, #17154A 70%) padding-box,
        linear-gradient(150deg, #8C5A2C, #F6B93B 45%, #FFD58A 60%, #A86B30) border-box;
    box-shadow: 0 0 0 4px rgba(246, 185, 59, 0.08), 0 0 28px -4px rgba(246, 185, 59, 0.55);
    color: var(--c-heading);
}

.step__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
}

.step__num {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.step__title {
    margin: 0.55rem 0 0.35rem;
}

.step__text {
    margin: 0;
}

.step__doodle {
    width: 100px;
    height: auto;
    margin-top: 0.75rem;
    overflow: visible;
}

.steps__cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

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

    .steps::before {
        display: none;
    }

    .steps__wave {
        display: block;
        position: absolute;
        top: 42px;
        left: 16.67%;
        width: 66.67%;
        height: 44px;
        transform: translateY(-50%);
        overflow: visible;
    }

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

    .step__medal {
        width: 84px;
        height: 84px;
    }

    .step__num {
        font-size: 2.125rem;
    }

    .step__title {
        margin-top: 1.25rem;
    }

    .step__text {
        max-width: 30ch;
    }

    .step__doodle {
        width: 130px;
        margin-top: 1.5rem;
    }
}

/* ============================================
   14. HOME - DISCOVER PROFILES
   ============================================ */

.profiles__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: -1rem 0 1.5rem;
    font-size: var(--fs-small);
    color: var(--c-muted);
    text-align: center;
}

.profiles__label .star-glyph {
    flex: none;
    width: 0.85em;
    height: 0.85em;
}

.profiles-stage {
    position: relative;
}

.profiles-branch {
    display: none;
}

.profiles-scroller {
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.5rem var(--gutter) 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: rgba(246, 185, 59, 0.45) transparent;
    overscroll-behavior-x: contain;
}

.profiles-scroller:focus-visible {
    outline-offset: -2px;
    border-radius: var(--r-lg);
}

.profiles-list {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profiles-list > li {
    display: flex;
    flex: 0 0 85%;
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .profiles-list > li {
        flex-basis: 46%;
    }
}

.profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--c-glass);
    border: 1px solid var(--c-border-peach);
    border-radius: var(--r-lg);
    box-shadow: var(--glow-amber);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms ease;
}

.profile-card:hover,
.profile-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(251, 214, 170, 0.75);
    box-shadow: var(--glow-amber-strong);
}

.profile-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-md);
    background: var(--c-navy);
}

.profile-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    transition: transform 400ms var(--ease);
}

.profile-card:hover .profile-card__media img {
    transform: scale(1.03);
}

.profile-card__chip {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
}

.profile-card__detail {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2.25rem 0.85rem 0.8rem;
    background: linear-gradient(180deg, transparent, rgba(15, 13, 48, 0.94) 45%);
    color: var(--c-heading);
    font-size: 0.9375rem;
    line-height: 1.35;
}

.profile-card__detail strong {
    color: var(--c-primary);
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
    .profile-card__detail {
        transform: translateY(101%);
        transition: transform 260ms var(--ease);
    }

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

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

.profile-card__name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.profile-card__loc {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: -0.25rem 0 0;
    font-size: var(--fs-small);
    color: var(--c-muted);
}

.profile-card__loc svg {
    flex: none;
    width: 16px;
    height: 16px;
}

.profile-card__note {
    margin: 0;
    font-size: var(--fs-small);
    line-height: 1.45;
    color: var(--c-text);
}

.compat {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--c-hairline-lav);
    border-radius: var(--r-sm);
    background: rgba(15, 13, 48, 0.58);
    box-shadow: inset 0 2px 8px rgba(5, 4, 20, 0.45);
}

.compat__label {
    margin: 0 0 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.compat__row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.compat__track {
    flex: 1;
    height: 8px;
    border-radius: var(--r-pill);
    background: rgba(195, 192, 224, 0.18);
    overflow: hidden;
}

.compat__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #E8A923, var(--c-primary-hover));
    box-shadow: 0 0 10px rgba(246, 185, 59, 0.6);
}

.compat__count {
    flex: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--c-heading);
}

.profile-card__cta {
    margin-top: auto;
}

.profiles-cst {
    display: none;
}

@media (min-width: 1024px) {
    .profiles {
        padding-bottom: 0;
    }

    .profiles-scroller {
        margin: 0;
        padding: 0.5rem 0 0;
        overflow: visible;
    }

    .profiles-list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .profiles-branch {
        display: block;
        position: absolute;
        top: -56px;
        right: -30px;
        width: 100px;
        height: 100px;
        overflow: visible;
    }

    .profiles-cst {
        display: block;
        position: relative;
        height: 8rem;
        opacity: 0.85;
    }

    .profiles-cst svg {
        width: 100%;
        height: 100%;
        overflow: visible;
    }
}

/* ============================================
   15. HOME - FEATURES
   ============================================ */

.features__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.feature-list {
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: rgba(251, 231, 207, 0.9);
    color: var(--c-navy);
    transition: box-shadow 220ms ease;
}

.feature__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature__icon .feature__fill {
    fill: currentColor;
    stroke: none;
}

.feature:hover .feature__icon {
    box-shadow: 0 0 0 3px rgba(246, 185, 59, 0.55), 0 0 18px -2px rgba(246, 185, 59, 0.6);
}

.feature__title {
    margin: 0.35rem 0 0.3rem;
}

.feature__text {
    margin: 0;
}

.feature-visual {
    position: relative;
    width: min(80%, 340px);
    margin: 0 auto;
    aspect-ratio: 440 / 600;
    container-type: inline-size;
}

.feature-phone {
    position: absolute;
    left: 22%;
    top: 6%;
    width: 56%;
    height: 88%;
    padding: 1.8cqw;
    border-radius: 9cqw;
    background: #060512;
    border: 1px solid rgba(251, 214, 170, 0.4);
    box-shadow:
        0 0 0 1px rgba(19, 17, 58, 0.9),
        0 0 42px -6px rgba(249, 201, 148, 0.35),
        var(--shadow-soft);
}

.feature-phone__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 7.4cqw;
    background: var(--c-navy);
}

.feature-phone__screen::before {
    content: "";
    position: absolute;
    top: 1.8cqw;
    left: 50%;
    z-index: 3;
    width: 17cqw;
    height: 4cqw;
    border-radius: var(--r-pill);
    background: #060512;
    transform: translateX(-50%);
}

.feature-phone__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 28%;
}

.feature-phone__thumb {
    position: absolute;
    top: 9cqw;
    right: 3cqw;
    z-index: 2;
    width: 13cqw;
    aspect-ratio: 400 / 560;
    overflow: hidden;
    border: 2px solid rgba(251, 231, 207, 0.85);
    border-radius: 2.4cqw;
    box-shadow: 0 6px 18px -6px rgba(5, 4, 20, 0.8);
}

.feature-phone__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-phone__ui {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1cqw;
    height: 30%;
    padding: 3cqw 3.6cqw 3.6cqw;
    background: linear-gradient(180deg, transparent, rgba(15, 13, 48, 0.9) 40%);
}

.feature-phone__name {
    margin: 0;
    font-family: var(--font-head);
    font-size: 4.8cqw;
    font-weight: 700;
    line-height: 1.05;
    color: var(--c-heading);
}

.feature-phone__meta {
    margin: 0;
    font-size: 2.8cqw;
    line-height: 1.3;
    color: var(--c-text);
}

.feature-phone__lines {
    display: grid;
    gap: 0.9cqw;
}

.feature-phone__lines span {
    display: block;
    height: 1cqw;
    border-radius: var(--r-pill);
    background: rgba(195, 192, 224, 0.3);
}

.feature-phone__lines span:last-child {
    width: 55%;
}

.feature-phone__controls {
    display: flex;
    justify-content: center;
    gap: 3.2cqw;
    margin-top: 1.4cqw;
}

.feature-phone__control {
    display: grid;
    place-items: center;
    width: 8.4cqw;
    height: 8.4cqw;
    border-radius: 50%;
    background: rgba(251, 231, 207, 0.14);
    border: 1px solid rgba(251, 231, 207, 0.3);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.feature-phone__control svg {
    width: 4cqw;
    height: 4cqw;
}

.feature-phone__control--pass { color: var(--pill-coral-fg); }
.feature-phone__control--chat { color: var(--pill-sky-fg); }
.feature-phone__control--like { color: var(--c-primary); }

.feature-cst {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.feature-cst__cross {
    opacity: 0.5;
}

@media (min-width: 768px) {
    .feature-list {
        gap: 1.75rem;
    }

    .feature-visual {
        width: 380px;
    }
}

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

    .feature-visual {
        order: -1;
        width: min(100%, 440px);
    }
}

/* ============================================
   16. HOME - TRUST & SAFETY
   ============================================ */

.safety-panel {
    position: relative;
    max-width: 920px;
    margin-inline: auto;
    padding: clamp(1.75rem, 4vw, 3rem);
    background: rgba(62, 92, 158, 0.55);
    border: 1px solid var(--c-steel-border);
    border-radius: var(--r-xl);
    box-shadow: 0 0 60px -12px rgba(110, 150, 240, 0.5), var(--shadow-soft);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.safety-panel .section-head {
    margin-bottom: 2rem;
}

.safety-panel .section-intro {
    color: #E1E5F6;
}

.safety-panel .eyebrow {
    color: var(--c-primary-hover);
}

.safety-panel__in,
.safety-panel__out,
.safety-panel__node {
    display: none;
}

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

.safety-item__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.safety-item__icon {
    flex: none;
    width: 26px;
    height: 26px;
    fill: none;
    stroke: var(--c-heading);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 6px rgba(251, 231, 207, 0.35));
}

.safety-item p {
    margin: 0;
    color: #E1E5F6;
}

.safety-tips {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 920px;
    margin: 1.75rem auto 0;
    font-size: var(--fs-small);
    color: var(--c-text);
}

.safety-tips .star-glyph {
    flex: none;
    margin-top: 0.25em;
    filter: drop-shadow(0 0 4px rgba(246, 185, 59, 0.6));
}

.safety-tips strong {
    color: var(--c-heading);
    font-weight: 600;
}

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

@media (min-width: 1024px) {
    .safety-panel__in {
        display: block;
        position: absolute;
        right: 0;
        bottom: 100%;
        width: 140px;
        height: clamp(4rem, 9vw, 7rem);
        overflow: visible;
        opacity: 0.55;
    }

    .safety-panel__node {
        display: block;
        top: 0;
        left: 100%;
    }

    .safety-panel__out {
        display: block;
        position: absolute;
        top: 55%;
        left: 100%;
        width: 90px;
        height: calc(45% + 6rem);
        overflow: visible;
        opacity: 0.55;
    }
}

/* ============================================
   17. HOME - STORIES
   ============================================ */

.stories-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.stories-grid > li {
    display: flex;
}

.story-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0.85rem 0.85rem 1.5rem;
    border: 1px solid var(--c-border-peach);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(70, 62, 150, 0.35) 0%, rgba(70, 62, 150, 0.3) 55%, rgba(246, 185, 59, 0.18) 100%);
    box-shadow: 0 28px 40px -26px rgba(246, 185, 59, 0.6), 0 0 0 1px rgba(246, 185, 59, 0.04);
    transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}

.story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 32px 46px -24px rgba(246, 185, 59, 0.72), 0 0 0 1px rgba(246, 185, 59, 0.1);
}

.story-card__media {
    overflow: hidden;
    aspect-ratio: 12 / 7;
    border-radius: var(--r-md);
    background: var(--c-navy);
}

.story-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 40%;
    transition: transform 500ms var(--ease);
}

.story-card:hover .story-card__media img {
    transform: scale(1.03);
}

.story-card__body {
    padding: 1.1rem 0.4rem 0;
}

.story-card__title {
    margin: 0.85rem 0 0.4rem;
}

.story-card__body p {
    margin: 0;
}

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

/* ============================================
   18. HOME - FINAL CTA
   ============================================ */

.final-cta {
    position: relative;
    overflow: clip;
    isolation: isolate;
    padding-block: clamp(5rem, 11vw, 8.5rem);
    text-align: center;
}

.final-cta__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url("/assets/ec59f8ebaf28f59f85047781c1e09368.webp") 50% 45% / cover no-repeat;
}

.final-cta__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 65% at 50% 50%, rgba(19, 17, 58, 0.72), rgba(19, 17, 58, 0.2) 75%),
        linear-gradient(180deg, rgba(21, 19, 63, 1) 0%, rgba(21, 19, 63, 0) 18%, rgba(21, 19, 63, 0) 82%, rgba(36, 35, 58, 0.85) 100%);
}

.final-cta__cst {
    display: none;
}

.final-cta > .container {
    position: relative;
    z-index: 1;
}

.final-cta__inner {
    max-width: 560px;
    margin-inline: auto;
}

.final-cta__title {
    font-size: var(--fs-h2);
}

.final-cta__text {
    margin-bottom: 1.75rem;
    font-size: var(--fs-lede);
    color: #DAD7F0;
}

.final-cta__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}

.final-cta__actions .btn,
.final-cta__actions .play-badge {
    justify-content: center;
    min-height: 52px;
}

.final-cta__micro {
    margin: 1rem 0 0;
    font-size: var(--fs-small);
    color: var(--c-muted);
}

@media (min-width: 560px) {
    .final-cta__actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .final-cta__actions .btn,
    .final-cta__actions .play-badge {
        min-height: 56px;
    }
}

@media (min-width: 1024px) {
    .final-cta__cst {
        display: block;
        position: absolute;
        top: 12%;
        bottom: 12%;
        z-index: 0;
        width: 20%;
        height: 76%;
        overflow: visible;
    }

    .final-cta__cst--left {
        left: 2%;
    }

    .final-cta__cst--right {
        right: 2%;
    }
}