/* unbounded-latin-500-normal */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/build/fonts/unbounded-latin-500-normal.464faa8e.woff2) format('woff2'), url(/build/fonts/unbounded-latin-500-normal.be92d7f3.woff) format('woff');
}
/* space-grotesk-latin-400-normal */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/build/fonts/space-grotesk-latin-400-normal.e4486ff0.woff2) format('woff2'), url(/build/fonts/space-grotesk-latin-400-normal.9a79ff92.woff) format('woff');
}
/* space-grotesk-latin-500-normal */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/build/fonts/space-grotesk-latin-500-normal.2641fa82.woff2) format('woff2'), url(/build/fonts/space-grotesk-latin-500-normal.b49ceea0.woff) format('woff');
}
/* space-grotesk-latin-600-normal */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/build/fonts/space-grotesk-latin-600-normal.8ff7300c.woff2) format('woff2'), url(/build/fonts/space-grotesk-latin-600-normal.ebac80b1.woff) format('woff');
}
/*
 * Landing page de l'app mobile Raverz.
 *
 * Les couleurs sont celles de raverz-mobile/constants/theme.ts (thème sombre), les
 * polices celles de son _layout.tsx (Unbounded pour les titres, Space Grotesk pour
 * le reste) : la vitrine et l'app doivent se ressembler.
 */

:root {
    --rv-bg: #07070d;
    --rv-surface: #14141f;
    --rv-surface-raised: #1d1c2e;
    --rv-border: #242338;
    --rv-border-strong: #36344f;
    --rv-text: #f1f0ff;
    --rv-text-secondary: #a9a7c9;
    --rv-text-muted: #807ea6;
    --rv-on-accent: #ffffff;
    --rv-accent: #8848f5;
    --rv-accent-text: #b99aff;
    --rv-accent-glow: #9a63ff;
    --rv-favorite: #e0246f;

    --rv-display: 'Unbounded', ui-sans-serif, system-ui, sans-serif;
    --rv-sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
    --rv-ease: cubic-bezier(0.22, 1, 0.36, 1);

    scroll-behavior: smooth;
}

.rv-landing {
    background: var(--rv-bg);
    color: var(--rv-text);
    font-family: var(--rv-sans);
    font-size: 1rem;
    line-height: 1.5rem;
    min-height: 100vh;
    overflow-x: clip;
}

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

/* :where() garde cette remise à zéro sous n'importe quelle classe de la page. */
:where(.rv-landing) :where(h1, h2, h3, p, ul) {
    margin: 0;
    padding: 0;
}

.rv-landing h1,
.rv-landing h2,
.rv-landing [data-tagline] {
    text-wrap: balance;
}

.rv-landing p {
    text-wrap: pretty;
}

.rv-landing ul {
    list-style: none;
}

.rv-landing section[id] {
    scroll-margin-top: 80px;
}

.rv-landing :focus-visible {
    outline: 2px solid var(--rv-accent-text);
    outline-offset: 2px;
}

.rv-shell {
    margin-inline: auto;
    max-width: 960px;
    padding-inline: 24px;
    width: 100%;
}

/* --- styles de texte --- */

.heading-1,
.heading-3,
.heading-4 {
    font-family: var(--rv-display);
    font-weight: 500;
}

.heading-1 {
    font-size: 3.75rem;
    letter-spacing: -0.02em;
    line-height: 3.75rem;
}

.heading-3 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    line-height: 2.5rem;
}

.heading-4 {
    font-size: 1.875rem;
    letter-spacing: -0.015em;
    line-height: 2.25rem;
}

.title-3 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;
}

.title-5 {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
}

.body-3 {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5rem;
}

.body-6 {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
}

.button-sm {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
}

.button-xsm {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1rem;
}

.caption-2 {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25rem;
}

.caption-5 {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1rem;
}

/* --- navigation --- */

.rv-skip {
    background: var(--rv-accent);
    border-radius: 8px;
    color: var(--rv-on-accent);
    left: 16px;
    opacity: 0;
    padding: 8px 12px;
    pointer-events: none;
    position: fixed;
    text-decoration: none;
    top: 16px;
    z-index: 30;
}

.rv-skip:focus-visible {
    opacity: 1;
    pointer-events: auto;
}

.rv-nav-wrap {
    display: flex;
    justify-content: center;
    left: 0;
    padding-inline: 16px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 16px;
    z-index: 20;
}

.rv-nav {
    align-items: center;
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--rv-surface-raised) 72%, transparent);
    border: 1px solid var(--rv-border-strong);
    border-radius: 16px;
    display: flex;
    gap: 16px;
    padding: 8px 8px 8px 16px;
    pointer-events: auto;
}

.rv-wordmark {
    color: var(--rv-text);
    font-family: var(--rv-display);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25rem;
    text-decoration: none;
}

.rv-nav-link {
    color: var(--rv-text-secondary);
    text-decoration: none;
    transition: opacity 300ms var(--rv-ease);
}

.rv-nav-link:hover {
    opacity: 0.7;
}

.rv-langs {
    background: var(--rv-surface);
    border-radius: 8px;
    display: flex;
    gap: 2px;
    padding: 2px;
}

.rv-lang {
    border-radius: 6px;
    color: var(--rv-text-secondary);
    padding: 4px 8px;
    text-decoration: none;
    transition: opacity 300ms var(--rv-ease);
}

.rv-lang:hover {
    opacity: 0.7;
}

.rv-lang[aria-current] {
    background: var(--rv-accent);
    color: var(--rv-on-accent);
}

/* --- hero --- */

.rv-hero {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100svh;
    padding-block: 96px 64px;
    text-align: center;
}

.rv-hero h1 {
    background: linear-gradient(90deg, var(--rv-text), var(--rv-text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    max-width: 680px;
    padding-bottom: 8px;
}

.rv-lede {
    color: var(--rv-text-secondary);
    margin-top: 16px;
    max-width: 680px;
}

/* Le bouton de l'app : Unbounded en capitales, et la lueur violette dessous. */
.rv-btn {
    align-items: center;
    background: var(--rv-accent);
    border-radius: 12px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--rv-accent-glow) 40%, transparent);
    color: var(--rv-on-accent);
    display: inline-flex;
    font-family: var(--rv-display);
    font-weight: 500;
    justify-content: center;
    letter-spacing: 0.02em;
    margin-top: 32px;
    min-height: 48px;
    padding: 8px 24px;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 300ms var(--rv-ease);
}

.rv-btn:hover {
    transform: translateY(-2px);
}

.rv-btn:active {
    transform: scale(0.98);
}

.rv-status {
    align-items: center;
    color: var(--rv-text-secondary);
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

/* L'équivalent CSS de litDot() : une lueur à peine plus courte que le point. */
.rv-dot {
    background: var(--rv-favorite);
    border-radius: 50%;
    box-shadow: 0 0 7px var(--rv-favorite);
    flex: none;
    height: 8px;
    width: 8px;
}

/* --- invitation (/u/{pseudo}) : le héros de la landing, avec le pseudo au-dessus --- */

.rv-invite-handle {
    color: var(--rv-accent-text);
    margin-top: 48px;
}

.rv-invite-help {
    color: var(--rv-text-muted);
    margin-top: 24px;
    max-width: 420px;
}

/* --- nouveau mot de passe (/reset/{jeton}) : le héros, avec un champ --- */

.rv-reset-heading {
    margin-top: 48px;
}

.rv-reset-form {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    max-width: 360px;
    text-align: left;
    width: 100%;
}

.rv-reset-label {
    color: var(--rv-text-secondary);
}

.rv-reset-input {
    background: var(--rv-surface);
    border: 1px solid var(--rv-border-strong);
    border-radius: 12px;
    color: var(--rv-text);
    font-family: var(--rv-sans);
    margin-top: 8px;
    min-height: 48px;
    padding: 12px 16px;
}

.rv-reset-input:focus-visible {
    border-color: var(--rv-accent-text);
    outline: 2px solid var(--rv-accent-text);
    outline-offset: 2px;
}

.rv-reset-hint {
    color: var(--rv-text-muted);
    margin-top: 8px;
}

.rv-reset-error {
    color: var(--rv-favorite);
    margin-top: 8px;
}

/* Un <button> qui prend l'allure du lien de l'app. */
.rv-reset-submit {
    border: 0;
    cursor: pointer;
    width: 100%;
}

/* --- sections --- */

.rv-section {
    display: grid;
    gap: 32px;
    padding-block: 64px;
}

.rv-features {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rv-feature {
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: 16px;
    display: grid;
    gap: 8px;
    padding: 24px;
}

.rv-feature p,
.rv-faq-item p {
    color: var(--rv-text-secondary);
}

.rv-tagline {
    display: flex;
    justify-content: center;
    padding-block: 96px;
}

.rv-tagline p {
    max-width: 680px;
}

.rv-tagline p > span {
    display: block;
}

.rv-animated .rv-word {
    opacity: 0.3;
    transition: opacity 500ms var(--rv-ease);
}

.rv-animated .rv-word.is-lit {
    opacity: 1;
}

.rv-faq {
    display: grid;
    gap: 8px;
}

.rv-faq-item {
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: 16px;
    transition: background-color 300ms var(--rv-ease);
}

.rv-faq-item:hover {
    background: var(--rv-surface-raised);
}

.rv-faq-item summary {
    border-radius: 16px;
    cursor: pointer;
    padding: 16px;
}

.rv-faq-item p {
    padding: 0 16px 16px;
}

.rv-footer {
    color: var(--rv-text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: space-between;
    padding-block: 32px;
}

.rv-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.rv-footer-links a {
    color: var(--rv-text-secondary);
    text-decoration: none;
}

.rv-footer-links a:hover {
    color: var(--rv-text);
}

/* --- pages légales : de la prose, à la mesure d'une colonne de lecture --- */

.rv-legal {
    padding-block: 120px 48px;
}

.rv-legal > * {
    max-width: 68ch;
}

.rv-legal h1 {
    color: var(--rv-text);
}

.rv-legal h2 {
    color: var(--rv-text);
    font-family: var(--rv-display);
    font-size: 1.125rem;
    font-weight: 500;
    margin-top: 40px;
}

.rv-legal p,
.rv-legal li {
    color: var(--rv-text-secondary);
    line-height: 1.6;
}

.rv-legal p {
    margin-top: 12px;
}

.rv-legal ul {
    margin-top: 12px;
    padding-left: 1.25em;
}

.rv-legal li + li {
    margin-top: 6px;
}

.rv-legal strong {
    color: var(--rv-text);
}

.rv-legal a {
    color: var(--rv-accent-text);
}

.rv-legal-updated {
    color: var(--rv-text-muted);
    margin-top: 8px;
}

/* Ce qui manque encore au texte, visible tant qu'il manque. */
.rv-todo {
    background: color-mix(in srgb, var(--rv-favorite) 22%, transparent);
    border-radius: 4px;
    color: var(--rv-text);
    padding: 0 4px;
}

/* --- apparition au défilement --- */

.rv-animated [data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 700ms var(--rv-ease),
        transform 700ms var(--rv-ease);
}

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

@media (max-width: 767px) {
    .rv-shell {
        padding-inline: 16px;
    }

    .rv-nav {
        gap: 12px;
        padding-left: 12px;
    }

    .heading-1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }

    .heading-3,
    .heading-4 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .rv-btn {
        width: 100%;
    }

    .rv-status {
        align-items: flex-start;
        text-align: left;
    }

    .rv-status .rv-dot {
        margin-top: 6px;
    }

    .rv-features {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        scroll-behavior: auto;
    }
}

