/* Self-hosted fonts (SIL Open Font License) — no request to Google. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500 900;
    font-display: swap;
    src: url('/fonts/outfit-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Outfit';
    font-style: normal;
    font-weight: 500 900;
    font-display: swap;
    src: url('/fonts/outfit-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Silkscreen';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/silkscreen-latin-ext-400.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Silkscreen';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/silkscreen-latin-400.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Silkscreen';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/silkscreen-latin-ext-700.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Silkscreen';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/silkscreen-latin-700.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =============================================
   Selenia Store — design tokens
   Direction: a moonlit sky island. Night-indigo sky, the crescent from the
   logo, voxel art, chunky pixel-cut buttons; gold is kept for "buy".
============================================= */
:root {
    color-scheme: dark;

    /* --- night --- */
    --bg-0: #05040c;
    --bg-1: #0a0918;
    --bg-2: #110e26;
    --bg-3: #1c1842;

    --line: rgba(206, 194, 255, 0.11);
    --line-strong: rgba(206, 194, 255, 0.2);
    --line-soft: rgba(206, 194, 255, 0.065);

    /* --- brand --- */
    --amethyst: #a184f0;
    --amethyst-light: #cdb8ff;
    --amethyst-deep: #6f4fd0;
    --amethyst-glow: rgba(161, 132, 240, 0.35);

    --gold: #f4c948;
    --gold-light: #ffe08a;
    --gold-deep: #c9982c;
    --gold-glow: rgba(244, 201, 72, 0.35);
    --gold-grad: linear-gradient(180deg, #ffe48f 0%, #f6cd4c 48%, #e3ad31 100%);

    --emerald: #55e08a;
    --sky: #8fb6ff;

    /* --- text (all ≥ 4.5:1 on the card colour) --- */
    --text: #f5f2ff;
    --text-dim: #c0b7e2;
    --text-faint: #9389bb;
    --on-gold: #2a1c03;

    --error: #ff8a9e;

    /* --- shape --- */
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 26px;
    --r-pill: 999px;

    /* pixel-cut corners, like a block-game button */
    --px: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
        calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
        100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px),
        calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
        8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
    --px-sm: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px,
        100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%,
        3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));

    --shadow-md: 0 14px 34px -14px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 34px 70px -30px rgba(0, 0, 0, 0.85);

    --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-pixel: 'Silkscreen', 'Courier New', monospace;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-1);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--amethyst-deep);
    color: #fff;
}

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

/* =============================================
   Night sky — gradient, pixel stars, grain
============================================= */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1100px 680px at 78% -12%, rgba(126, 96, 232, 0.30), transparent 62%),
        radial-gradient(900px 620px at 4% -6%, rgba(58, 88, 196, 0.24), transparent 60%),
        radial-gradient(1000px 520px at 50% 108%, rgba(111, 79, 208, 0.14), transparent 70%),
        linear-gradient(180deg, #141139 0%, #0b0a1d 42%, #07060f 100%);
}

/* fine grain so the gradients don't band */
.backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* square "pixel" stars and a few cross-shaped sparkles */
.stars {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.stars::before,
.stars::after {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    animation: twinkle 6s ease-in-out infinite;
}

.stars::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cg fill='%23fff'%3E%3Crect x='32' y='48' width='2' height='2'/%3E%3Crect x='118' y='22' width='2' height='2'/%3E%3Crect x='214' y='86' width='2' height='2'/%3E%3Crect x='318' y='40' width='2' height='2'/%3E%3Crect x='388' y='128' width='2' height='2'/%3E%3Crect x='70' y='170' width='2' height='2'/%3E%3Crect x='182' y='204' width='2' height='2'/%3E%3Crect x='276' y='160' width='2' height='2'/%3E%3Crect x='352' y='236' width='2' height='2'/%3E%3Crect x='24' y='300' width='2' height='2'/%3E%3Crect x='132' y='344' width='2' height='2'/%3E%3Crect x='238' y='286' width='2' height='2'/%3E%3Crect x='330' y='362' width='2' height='2'/%3E%3Crect x='402' y='318' width='2' height='2'/%3E%3C/g%3E%3Cg fill='%23dccbff'%3E%3Crect x='155' y='118' width='8' height='2'/%3E%3Crect x='158' y='115' width='2' height='8'/%3E%3Crect x='292' y='300' width='8' height='2'/%3E%3Crect x='295' y='297' width='2' height='8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 420px 420px;
    opacity: 0.75;
}

.stars::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560'%3E%3Cg fill='%23c9d6ff'%3E%3Crect x='60' y='90' width='1' height='1'/%3E%3Crect x='170' y='40' width='1' height='1'/%3E%3Crect x='300' y='120' width='1' height='1'/%3E%3Crect x='470' y='70' width='1' height='1'/%3E%3Crect x='520' y='210' width='1' height='1'/%3E%3Crect x='110' y='260' width='1' height='1'/%3E%3Crect x='240' y='330' width='1' height='1'/%3E%3Crect x='390' y='280' width='1' height='1'/%3E%3Crect x='40' y='420' width='1' height='1'/%3E%3Crect x='200' y='480' width='1' height='1'/%3E%3Crect x='350' y='440' width='1' height='1'/%3E%3Crect x='500' y='510' width='1' height='1'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 560px 560px;
    background-position: 90px 140px;
    opacity: 0.6;
    animation-duration: 8s;
    animation-delay: 1.4s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50%      { opacity: 0.9; }
}

/* =============================================
   Shell + shared type
============================================= */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px 40px;
    position: relative;
    z-index: 1;
}

.container--narrow {
    max-width: 760px;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--amethyst-light);
    margin: 0 0 12px;
}

.kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

/* =============================================
   Buttons — chunky, pixel-cut corners
   The shape lives on ::before so the focus outline isn't clipped.
============================================= */
.btn-primary,
button#buy-button {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 26px 17px;
    border: 0;
    background: none;
    color: var(--on-gold);
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 750;
    letter-spacing: 0.01em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    filter: drop-shadow(0 14px 22px rgba(244, 201, 72, 0.22));
    transition: transform 0.14s var(--ease), filter 0.25s var(--ease);
}

.btn-primary::before,
button#buy-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    clip-path: var(--px);
    background:
        linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.6) 50%, transparent 58%) 100% 0 / 300% 100% no-repeat,
        var(--gold-grad);
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -4px 0 rgba(122, 72, 0, 0.38);
    transition: background-position 0.7s var(--ease), box-shadow 0.12s var(--ease);
}

.btn-primary:hover,
button#buy-button:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: drop-shadow(0 18px 28px rgba(244, 201, 72, 0.32));
}

.btn-primary:hover::before,
button#buy-button:hover:not(:disabled)::before {
    background-position: 0 0, 0 0;
}

.btn-primary:active,
button#buy-button:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-primary:active::before,
button#buy-button:active:not(:disabled)::before {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(122, 72, 0, 0.38);
}

.btn-primary:focus-visible,
button#buy-button:focus-visible {
    outline: 2px solid var(--amethyst-light);
    outline-offset: 4px;
}

.btn-price {
    font-family: var(--font-display);
    font-weight: 800;
    padding-left: 10px;
    border-left: 1px solid rgba(42, 28, 3, 0.25);
}

.btn-ghost {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 22px 17px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.14s var(--ease);
}

.btn-ghost::before,
.btn-ghost::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: var(--px);
}

.btn-ghost::before {
    inset: 0;
    background: var(--line-strong);
}

.btn-ghost::after {
    inset: 1px;
    background: rgba(18, 15, 42, 0.92);
    transition: background 0.2s var(--ease);
}

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

.btn-ghost:hover::after {
    background: rgba(40, 33, 86, 0.95);
}

/* =============================================
   Sticky glass navbar
============================================= */
.topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 24px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.topnav.is-stuck {
    background: rgba(9, 8, 22, 0.74);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-bottom-color: var(--line-soft);
}

.nav-inner {
    width: 100%;
    max-width: 1132px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-pixel);
    font-size: 16px;
    letter-spacing: 1px;
    color: var(--text);
    text-decoration: none;
    flex: none;
}

.wordmark .logo {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 0 10px rgba(200, 150, 255, 0.45));
    transition: transform 0.4s var(--ease);
}

.wordmark:hover .logo {
    transform: rotate(-14deg);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 14px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav-links a:hover {
    color: var(--text);
    background: rgba(206, 194, 255, 0.07);
}

.nav-spacer {
    flex: 1;
}

/* live server status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: var(--r-pill);
    background: rgba(85, 224, 138, 0.06);
    border: 1px solid rgba(85, 224, 138, 0.18);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-dim);
    white-space: nowrap;
}

.status-pill[hidden] {
    display: none;
}

.status-pill .led {
    width: 7px;
    height: 7px;
    background: var(--text-faint);
    flex: none;
}

.status-pill.is-online .led {
    background: var(--emerald);
    animation: ping 2s ease-out infinite;
}

.status-pill.is-offline {
    background: rgba(255, 138, 158, 0.06);
    border-color: rgba(255, 138, 158, 0.2);
}

.status-pill.is-offline .led {
    background: var(--error);
}

.status-pill strong {
    color: var(--text);
    font-weight: 700;
}

@keyframes ping {
    0%   { box-shadow: 0 0 0 0 rgba(85, 224, 138, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(85, 224, 138, 0); }
    100% { box-shadow: 0 0 0 0 rgba(85, 224, 138, 0); }
}

/* IP copy chip */
.lang-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1;
    color: var(--text-dim);
    text-decoration: none;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lang-link:hover {
    border-color: var(--line-strong);
    color: var(--text);
}

.ip-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(206, 194, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 5px 5px 5px 14px;
    font-size: 13px;
    color: var(--text-dim);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.ip-chip:hover {
    border-color: var(--line-strong);
    background: rgba(206, 194, 255, 0.08);
}

.ip-chip code {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.2px;
}

.ip-chip button {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: #1d1240;
    background: var(--amethyst-light);
    padding: 7px 12px;
    border-radius: var(--r-pill);
    transition: background 0.15s var(--ease), transform 0.1s var(--ease);
}

.ip-chip button:hover  { background: #e0d3ff; }
.ip-chip button:active { transform: scale(0.95); }

.ip-chip button:focus-visible {
    outline: 2px solid var(--amethyst-light);
    outline-offset: 2px;
}

.ip-chip button svg {
    width: 12px;
    height: 12px;
}

.nav-cta {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px 11px;
    color: var(--on-gold);
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.15s var(--ease);
}

.nav-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    clip-path: var(--px-sm);
    background: var(--gold-grad);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), inset 0 -3px 0 rgba(122, 72, 0, 0.35);
}

.nav-cta:hover {
    transform: translateY(-1px);
}

/* =============================================
   Hero
============================================= */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: 24px;
    padding: 34px 0 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 26px;
    padding: 8px 15px;
    border-radius: var(--r-pill);
    background: rgba(244, 201, 72, 0.08);
    border: 1px solid rgba(244, 201, 72, 0.24);
}

.eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--gold);
    box-shadow: 0 0 8px var(--gold);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(42px, 5.1vw, 66px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 0 0 22px;
    background: linear-gradient(175deg, #ffffff 0%, #f1ecff 45%, var(--amethyst-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero h1 .glow {
    background: linear-gradient(150deg, var(--gold-light) 10%, var(--gold) 50%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 24px rgba(244, 201, 72, 0.25));
}

.hero .lede {
    max-width: 460px;
    margin: 0 0 34px;
    color: var(--text-dim);
    line-height: 1.65;
    font-size: clamp(16px, 1.5vw, 18px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.trust-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-dim);
}

.trust-row svg {
    width: 15px;
    height: 15px;
    flex: none;
    color: var(--amethyst-light);
}

/* ---------- hero art: moon, clouds, the island ---------- */
.hero-art {
    position: relative;
    height: clamp(400px, 44vw, 560px);
    perspective: 1000px;
}

/* moonlight halo */
.hero-art::before {
    content: "";
    position: absolute;
    top: -16%;
    right: -14%;
    width: 58%;
    aspect-ratio: 1;
    background: radial-gradient(closest-side, rgba(196, 160, 255, 0.26), rgba(150, 110, 240, 0.09) 55%, transparent 75%);
    pointer-events: none;
}

.moon {
    position: absolute;
    top: -2%;
    right: -1%;
    width: clamp(84px, 9vw, 124px);
    height: auto;
    filter: drop-shadow(0 0 26px rgba(200, 150, 255, 0.55));
    animation: moon-sway 14s ease-in-out infinite;
}

@keyframes moon-sway {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-8px) rotate(-4deg); }
}

/* flat blocky clouds drifting behind the island */
.cloud {
    position: absolute;
    width: 170px;
    height: 42px;
    opacity: 0.075;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40'%3E%3Cg fill='%23e4d9ff'%3E%3Crect x='0' y='16' width='160' height='16'/%3E%3Crect x='24' y='8' width='72' height='8'/%3E%3Crect x='48' y='0' width='32' height='8'/%3E%3Crect x='104' y='8' width='32' height='8'/%3E%3Crect x='16' y='32' width='120' height='8'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
    animation: cloud-drift 46s ease-in-out infinite alternate;
}

.cloud--1 { top: 34%; left: -4%; }
.cloud--2 { top: 74%; right: -2%; width: 120px; height: 30px; animation-duration: 38s; animation-direction: alternate-reverse; }

@keyframes cloud-drift {
    from { transform: translateX(-24px); }
    to   { transform: translateX(36px); }
}

.island-parallax {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    transition: transform 0.6s var(--ease);
    will-change: transform;
}

.island-float {
    position: relative;
    isolation: isolate;
    animation: bob 6s ease-in-out infinite;
}

/* soft amethyst glow behind the island */
.island-float::before {
    content: "";
    position: absolute;
    inset: 8% -14% 18%;
    z-index: -1;
    background: radial-gradient(closest-side, rgba(157, 127, 232, 0.32), transparent);
}

.island {
    width: clamp(250px, 27vw, 360px);
    height: auto;
    filter: drop-shadow(0 34px 40px rgba(0, 0, 0, 0.5));
}

.float-block {
    position: absolute;
    height: auto;
    filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.45));
    animation: bob var(--dur, 7s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

.fb-1 { width: 46px; left: 6%;  top: 58%; --dur: 7.5s; --delay: -1.2s; }
.fb-2 { width: 34px; right: 5%; top: 56%; --dur: 6.5s; --delay: -3s; }
.fb-3 { width: 28px; left: 13%; top: 16%; --dur: 8.5s; --delay: -2.2s; opacity: 0.7; }
.fb-4 { width: 24px; right: 24%; top: 88%; --dur: 7s;  --delay: -0.6s; opacity: 0.6; }

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* =============================================
   Cards
============================================= */
.card {
    position: relative;
    padding: 32px;
    border: 1px solid transparent;
    border-radius: var(--r-xl);
    background:
        linear-gradient(180deg, rgba(29, 24, 64, 0.97), rgba(16, 13, 36, 0.97)) padding-box,
        linear-gradient(160deg, rgba(206, 194, 255, 0.3), rgba(206, 194, 255, 0.07) 45%, rgba(206, 194, 255, 0.14)) border-box;
    box-shadow: var(--shadow-lg);
}

.card h2 {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0 0 6px;
}

.card .description {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 15px;
    margin: 0 0 20px;
}

/* =============================================
   Store — perks, purchase panel, how it works
============================================= */
.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-areas:
        "perks buy"
        "how   buy";
    gap: 24px 28px;
    align-items: start;
    scroll-margin-top: 84px;
}

.perks   { grid-area: perks; }
.how     { grid-area: how; scroll-margin-top: 84px; }
.product { grid-area: buy; position: sticky; top: 88px; }

/* perks: one row per perk, voxel block as the icon */
.slots {
    list-style: none;
    margin: 0;
    padding: 0;
}

.slots li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.slots li:last-child {
    padding-bottom: 0;
}

.slots li small {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dim);
    line-height: 1.55;
}

.block-icon {
    width: 54px;
    height: 54px;
    flex: none;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
    transition: transform 0.35s var(--ease);
}

.slots li:hover .block-icon {
    transform: translateY(-5px) rotate(-4deg);
}

/* ---------- purchase panel ---------- */
.product {
    padding: 28px;
    background:
        radial-gradient(420px 220px at 88% -12%, rgba(244, 201, 72, 0.14), transparent 70%) padding-box,
        linear-gradient(180deg, rgba(35, 29, 76, 0.98), rgba(18, 15, 40, 0.98)) padding-box,
        linear-gradient(165deg, rgba(255, 224, 138, 0.62), rgba(206, 194, 255, 0.22) 32%, rgba(206, 194, 255, 0.08) 66%, rgba(244, 201, 72, 0.32)) border-box;
    box-shadow: var(--shadow-lg), 0 0 70px -24px rgba(244, 201, 72, 0.28);
}

.product-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rank-badge {
    width: 54px;
    height: 54px;
    flex: none;
    display: grid;
    place-items: center;
    clip-path: var(--px);
    background: var(--gold-grad);
    font-family: var(--font-pixel);
    font-size: 14px;
    font-weight: 700;
    color: var(--on-gold);
    box-shadow:
        inset 0 3px 0 rgba(255, 255, 255, 0.5),
        inset 0 -4px 0 rgba(122, 72, 0, 0.35);
}

.product h2 {
    margin: 0 0 3px;
    font-size: 23px;
    font-weight: 800;
}

.price-note {
    margin: 0;
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-faint);
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 22px 0;
    border-bottom: 1px dashed var(--line);
}

.price {
    font-family: var(--font-display);
    font-size: 50px;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1;
    background: linear-gradient(170deg, #fff1bd 5%, var(--gold) 50%, var(--gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 22px rgba(244, 201, 72, 0.3));
}

.price-sub {
    font-size: 13.5px;
    color: var(--text-dim);
    font-weight: 500;
}

/* ---------- form ---------- */
.field {
    margin-top: 22px;
}

label {
    display: block;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--text-dim);
}

.input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 6px 6px 7px;
    background: rgba(5, 4, 14, 0.55);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-md);
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.input-wrap:focus-within {
    border-color: var(--amethyst);
    box-shadow: 0 0 0 3px var(--amethyst-glow);
}

.input-wrap.is-valid {
    border-color: rgba(85, 224, 138, 0.55);
}

.input-wrap.is-valid:focus-within {
    box-shadow: 0 0 0 3px rgba(85, 224, 138, 0.22);
}

/* pixel player head — drawn locally, turns green once the name is valid */
.avatar {
    width: 40px;
    height: 40px;
    flex: none;
    display: grid;
    place-items: center;
    clip-path: var(--px-sm);
    background: rgba(206, 194, 255, 0.08);
    transition: background 0.25s var(--ease);
}

.avatar svg {
    width: 26px;
    height: 26px;
}

.px-hair  { fill: #5f4f92; transition: fill 0.25s var(--ease); }
.px-face  { fill: #b3a4e4; transition: fill 0.25s var(--ease); }
.px-eye   { fill: #1a0f2e; }
.px-mouth { fill: #6a5aa0; transition: fill 0.25s var(--ease); }

.input-wrap.is-valid .avatar   { background: rgba(85, 224, 138, 0.14); }
.input-wrap.is-valid .px-hair  { fill: #1e7a4c; }
.input-wrap.is-valid .px-face  { fill: #55e08a; }
.input-wrap.is-valid .px-mouth { fill: #14562f; }

.input-wrap input {
    flex: 1;
    min-width: 0;
    padding: 11px 4px;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 500;
    background: transparent;
    color: var(--text);
    border: 0;
}

.input-wrap input:focus {
    outline: none;
}

.input-wrap input::placeholder {
    color: var(--text-faint);
    font-weight: 400;
}

.check-mark {
    width: 20px;
    height: 20px;
    flex: none;
    margin-right: 8px;
    color: var(--emerald);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.2s var(--ease), transform 0.25s var(--ease);
}

.input-wrap.is-valid .check-mark {
    opacity: 1;
    transform: scale(1);
}

/* consent checkbox — kept fully legible: it's the legal waiver */
.consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0 0;
    padding: 14px;
    border-radius: var(--r-md);
    background: rgba(206, 194, 255, 0.045);
    border: 1px solid var(--line-soft);
    cursor: pointer;
    transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.consent:hover {
    border-color: var(--line);
}

.consent:has(input:checked) {
    border-color: rgba(161, 132, 240, 0.4);
    background: rgba(161, 132, 240, 0.08);
}

.consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    flex: none;
    margin: 0;
    border: 1.5px solid var(--line-strong);
    border-radius: 5px;
    background: rgba(5, 4, 14, 0.5);
    cursor: pointer;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.consent input[type="checkbox"]:hover {
    border-color: var(--amethyst);
}

.consent input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 10px;
    border-right: 2.5px solid #1d1240;
    border-bottom: 2.5px solid #1d1240;
    transform: rotate(45deg) scale(0.4);
    opacity: 0;
    transition: opacity 0.15s var(--ease), transform 0.2s var(--ease);
}

.consent input[type="checkbox"]:checked {
    background: var(--amethyst-light);
    border-color: var(--amethyst-light);
}

.consent input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}

.consent input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--amethyst-light);
    outline-offset: 2px;
}

.consent span {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0;
    color: var(--text-dim);
}

.consent + .consent {
    margin-top: 10px;
}

.consent .consent-en {
    display: block;
    margin-top: 4px;
    color: var(--text-faint);
}

.offer-fr {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-dim);
}

.consent a {
    color: var(--amethyst-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

button#buy-button {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    font-size: 16px;
}

button#buy-button:not(:disabled)::after {
    content: "→";
    font-weight: 700;
    transition: transform 0.2s var(--ease);
}

button#buy-button:hover:not(:disabled)::after {
    transform: translateX(4px);
}

button#buy-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(42, 28, 3, 0.3);
    border-top-color: var(--on-gold);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    color: var(--error);
    margin: 12px 0 0;
    min-height: 1em;
    font-size: 13.5px;
    line-height: 1.5;
}

.error:empty {
    margin: 0;
}

/* reassurance line under the CTA */
.panel-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12.5px;
    color: var(--text-faint);
}

.panel-foot svg {
    width: 13px;
    height: 13px;
    color: var(--emerald);
    flex: none;
}

/* ---------- how it works: a short pixel-dashed timeline ---------- */
.steps {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
}

.step {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    padding: 14px 0;
}

.step:last-child {
    padding-bottom: 0;
}

.step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 64px;
    bottom: -8px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, rgba(206, 194, 255, 0.35) 0 4px, transparent 4px 8px);
}

.step .num {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    clip-path: var(--px-sm);
    background: rgba(161, 132, 240, 0.16);
    box-shadow: inset 0 0 0 1px rgba(206, 194, 255, 0.3);
    font-family: var(--font-pixel);
    font-size: 13px;
    color: var(--amethyst-light);
}

.step h3 {
    margin: 2px 0 6px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.step p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-dim);
}

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

/* =============================================
   FAQ — intro on the left, questions on the right
============================================= */
.section {
    margin-top: 104px;
}

.faq-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr);
    gap: 56px;
    align-items: start;
    scroll-margin-top: 84px;
}

.faq-intro {
    position: sticky;
    top: 104px;
}

.faq-intro h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin: 0 0 14px;
}

.faq-intro p {
    margin: 0;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.65;
}

.faq-intro a {
    color: var(--amethyst-light);
    font-weight: 600;
    text-underline-offset: 3px;
}

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

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

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 21px 4px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-display);
    font-size: 17.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    transition: color 0.18s var(--ease);
}

.faq summary::-webkit-details-marker {
    display: none;
}

/* pixel plus that turns into a minus */
.faq summary::after {
    content: "";
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--text-faint);
    background:
        linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
    transition: background-size 0.25s var(--ease), color 0.2s var(--ease);
}

.faq details[open] summary::after {
    color: var(--amethyst-light);
    background-size: 14px 2px, 2px 0;
}

.faq summary:hover {
    color: var(--amethyst-light);
}

.faq .answer {
    padding: 0 40px 22px 4px;
    margin: 0;
    font-size: 15px;
    line-height: 1.72;
    color: var(--text-dim);
}

.faq .answer a {
    color: var(--amethyst-light);
    text-underline-offset: 2px;
}

/* =============================================
   Footer
============================================= */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 110px;
    padding: 52px 24px 34px;
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(10, 9, 24, 0), rgba(5, 4, 12, 0.85));
    font-size: 14px;
}

.footer-inner {
    max-width: 1132px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.footer-brand p {
    margin: 14px 0 0;
    color: var(--text-dim);
    font-size: 14px;
}

.footer-brand strong {
    color: var(--text);
    font-weight: 600;
}

.pay-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-faint);
}

.footer-brand .pay-line {
    font-size: 13px;
    color: var(--text-faint);
}

.pay-line svg {
    width: 14px;
    height: 14px;
    color: var(--emerald);
    flex: none;
}

.pay-line a {
    color: var(--text-dim);
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
}

.footer-col p {
    margin: 0;
    color: var(--text-faint);
}

.footer-col a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.18s var(--ease);
}

.footer-col a:hover {
    color: var(--amethyst-light);
}

.footer-title {
    margin: 0 0 3px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-faint);
}

.footer-col .footer-title {
    color: var(--text-faint);
}

.copyright {
    max-width: 1132px;
    margin: 42px auto 0;
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    line-height: 1.6;
    text-align: center;
    color: var(--text-faint);
}

/* compact footer for single-card pages (success) */
.mini-footer {
    margin-top: 56px;
    text-align: center;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 8px 22px;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13.5px;
    transition: color 0.18s var(--ease);
}

.legal-links a:hover {
    color: var(--amethyst-light);
}

.mini-footer .copyright {
    margin-top: 20px;
}

/* =============================================
   Toast
============================================= */
.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 100;
    transform: translate(-50%, 24px);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: var(--r-pill);
    background: rgba(22, 18, 46, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(206, 194, 255, 0.3);
    box-shadow: var(--shadow-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.toast svg {
    width: 15px;
    height: 15px;
    color: var(--emerald);
}

/* =============================================
   Scroll reveal
============================================= */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* the purchase panel is sticky: a transform on it would break that */
.product.reveal {
    transform: none;
}

/* =============================================
   Success page
============================================= */
.success-stage {
    position: relative;
    height: 210px;
    display: grid;
    place-items: center;
}

.success-stage::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 160px;
    background: radial-gradient(closest-side, rgba(85, 224, 138, 0.22), transparent);
}

.badge-wrap {
    position: relative;
    animation: bob 6s ease-in-out infinite;
}

.success-block {
    width: 116px;
    height: auto;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}

.checkmark {
    position: absolute;
    right: -14px;
    bottom: -6px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    clip-path: var(--px-sm);
    background: var(--gold-grad);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 0 rgba(122, 72, 0, 0.35);
}

.checkmark::before {
    content: "";
    width: 9px;
    height: 17px;
    border-right: 3.5px solid var(--on-gold);
    border-bottom: 3.5px solid var(--on-gold);
    transform: rotate(45deg) translate(-1px, -2px);
}

/* XP-orb style squares rising behind the card */
.orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    bottom: -20px;
    width: 8px;
    height: 8px;
    background: #a6f56d;
    box-shadow: 0 0 12px #a6f56d;
    animation: rise linear infinite;
}

.orb:nth-child(1) { left: 12%; animation-duration: 7s;   animation-delay: 0s; }
.orb:nth-child(2) { left: 28%; animation-duration: 9s;   animation-delay: 1.5s; }
.orb:nth-child(3) { left: 47%; animation-duration: 6.5s; animation-delay: 0.7s; }
.orb:nth-child(4) { left: 63%; animation-duration: 8.5s; animation-delay: 2.4s; }
.orb:nth-child(5) { left: 80%; animation-duration: 7.5s; animation-delay: 1s; }
.orb:nth-child(6) { left: 92%; animation-duration: 10s;  animation-delay: 3s; }

@keyframes rise {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 0.9; }
    90%  { opacity: 0.7; }
    100% { transform: translateY(-95vh) scale(0.6); opacity: 0; }
}

.success-card {
    max-width: 540px;
    margin: 0 auto;
    padding: 38px 36px 34px;
    text-align: center;
}

.success-card .kicker {
    color: var(--emerald);
}

.success-card h1 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    background: linear-gradient(160deg, #ffffff 20%, #8ff0b4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.success-card .description {
    margin: 0 0 6px;
    font-size: 15.5px;
}

.next-steps {
    list-style: none;
    margin: 26px 0 26px;
    padding: 0;
    text-align: left;
    border-top: 1px solid var(--line-soft);
}

.next-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 2px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
}

.next-steps .icon {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    clip-path: var(--px-sm);
    background: linear-gradient(180deg, #6ee89c, #2fae62);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.next-steps .icon svg {
    width: 14px;
    height: 14px;
    color: #08301c;
}

.next-steps small {
    display: block;
    margin-top: 3px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--text-dim);
}

.next-steps a {
    color: var(--amethyst-light);
    text-underline-offset: 2px;
}

.success-card .btn-primary {
    width: 100%;
}

/* =============================================
   Legal document pages (+ 404)
============================================= */
.legal-page {
    max-width: 820px;
    margin: 28px auto 0;
    padding: 46px 56px 52px;
    border: 1px solid transparent;
    border-radius: var(--r-xl);
    background:
        linear-gradient(180deg, rgba(29, 24, 64, 0.97), rgba(16, 13, 36, 0.97)) padding-box,
        linear-gradient(160deg, rgba(206, 194, 255, 0.3), rgba(206, 194, 255, 0.07) 45%, rgba(206, 194, 255, 0.14)) border-box;
    box-shadow: var(--shadow-lg);
}

.legal-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 28px;
    padding: 8px 15px;
    border-radius: var(--r-pill);
    background: rgba(206, 194, 255, 0.05);
    border: 1px solid var(--line);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--amethyst-light);
    text-decoration: none;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.legal-page .back-link:hover {
    background: rgba(161, 132, 240, 0.14);
    border-color: rgba(206, 194, 255, 0.3);
}

.legal-page h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4.2vw, 40px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    margin: 0 0 10px;
    background: linear-gradient(160deg, #ffffff 30%, var(--amethyst-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.legal-page .updated {
    color: var(--text-faint);
    font-size: 13px;
    margin: 0 0 34px;
}

.legal-page h2 {
    font-family: var(--font-display);
    font-size: 18.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--amethyst-light);
    margin: 36px 0 12px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
}

.legal-page h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.legal-page p,
.legal-page li {
    color: var(--text-dim);
    font-size: 15.5px;
    line-height: 1.75;
}

.legal-page ul,
.legal-page ol {
    padding-left: 22px;
}

.legal-page li {
    margin: 8px 0;
}

.legal-page li::marker {
    color: var(--amethyst);
}

.legal-page a {
    color: var(--amethyst-light);
    text-underline-offset: 2px;
}

.legal-page strong {
    color: var(--text);
    font-weight: 600;
}

.legal-page code {
    font-size: 0.92em;
    padding: 1px 6px;
    border-radius: 5px;
    background: rgba(206, 194, 255, 0.08);
    color: var(--text);
}

.legal-page .placeholder {
    color: var(--gold);
    background: rgba(244, 201, 72, 0.1);
    border: 1px solid rgba(244, 201, 72, 0.22);
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 0.95em;
}

.legal-page .fine-print {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--line-soft);
    font-size: 12.5px;
    color: var(--text-faint);
}

/* bilingual: FR / EN switcher and language headings */
.legal-page .lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -18px 0 34px;
    font-size: 13px;
    color: var(--text-faint);
}

.legal-page .lang-switch a {
    padding: 6px 13px;
    border-radius: var(--r-pill);
    background: rgba(206, 194, 255, 0.06);
    border: 1px solid var(--line);
    color: var(--text-dim);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.legal-page .lang-switch a:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(161, 132, 240, 0.12);
}

.legal-page h2.lang-heading {
    font-size: 24px;
    color: var(--text);
    margin-top: 60px;
    padding-top: 34px;
    border-top: 2px solid var(--line);
    scroll-margin-top: 90px;
}

.legal-page section:first-of-type > h2.lang-heading {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-page h2.lang-heading + h2 {
    margin-top: 22px;
    padding-top: 0;
    border-top: none;
}

/* 404 */
.lost-block {
    width: 64px;
    height: auto;
    margin-bottom: 18px;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.5));
    animation: tumble 5s ease-in-out infinite;
}

@keyframes tumble {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50%      { transform: translateY(10px) rotate(10deg); }
}

/* =============================================
   Responsive
============================================= */
@media (max-width: 1060px) {
    .nav-links { display: none; }
}

@media (max-width: 980px) {
    .checkout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "perks"
            "buy"
            "how";
        gap: 20px;
    }

    .product {
        position: static;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 8px 0 56px;
        text-align: center;
    }

    .hero-art {
        order: -1;
        height: 330px;
    }

    .hero .lede { margin-left: auto; margin-right: auto; }
    .hero-actions,
    .trust-row { justify-content: center; }

    .island { width: 240px; }
    .moon { width: 76px; right: 8%; top: 0; }

    .faq-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .faq-intro { position: static; }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .container { padding: 0 16px 32px; }

    .topnav { padding: 12px 16px; }
    .nav-inner { gap: 10px; }
    .status-pill { display: none; }
    .nav-cta { display: none; }

    .ip-chip {
        font-size: 12.5px;
        padding: 4px 4px 4px 12px;
    }

    .hero-art { height: 290px; }
    .island { width: 210px; }
    .fb-1 { left: 2%; }
    .fb-3 { left: 6%; }

    .card { padding: 24px 20px; border-radius: var(--r-lg); }
    .card h2 { font-size: 22px; }
    .price { font-size: 44px; }
    .block-icon { width: 46px; height: 46px; }

    .section { margin-top: 72px; }

    .faq summary { font-size: 16px; padding: 18px 2px; }
    .faq .answer { padding-right: 8px; }

    .site-footer { margin-top: 80px; padding: 40px 16px 28px; }

    .legal-page {
        padding: 28px 20px 32px;
        border-radius: var(--r-lg);
    }

    .legal-page .lang-switch { margin-top: -14px; }

    .success-card { padding: 30px 20px 26px; }

    .toast { bottom: 18px; }
}

@media (max-width: 480px) {
    /* Room for the FR/EN switch: the copy button shows only its icon
       (its aria-label still names it). */
    .ip-chip button { font-size: 0; gap: 0; padding: 8px 9px; }
    .lang-link { padding: 7px 9px; }
}

@media (max-width: 340px) {
    /* Smallest phones: logo only in the nav so it fits. */
    .topnav .wordmark { font-size: 0; gap: 0; }
}

@media (max-width: 380px) {
    .ip-chip code { font-size: 11.5px; }
    .wordmark { font-size: 14px; }
    .hero-actions > * { flex: 1 1 100%; }
}

/* =============================================
   Reduced motion
============================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .island-float,
    .float-block,
    .moon,
    .cloud,
    .stars::before,
    .stars::after,
    .status-pill.is-online .led,
    .badge-wrap,
    .lost-block,
    .orb {
        animation: none !important;
    }

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

    .island-parallax { transition: none; }
}
