/* Landing page. Standalone; colour values are the same as the main site's assets/css/poly.css. */
:root {
    --px-brand: #2E5CFF;
    --px-brand-strong: #1F4AE8;
    --px-brand-light: #6B8CFF;
    --px-yes: #3DD68C;
    --px-bg: #101217;
    --px-surface: #1B1E25;
    --px-surface-2: #23272F;
    --px-text: #FFFFFF;
    --px-text-2: #C9CDD4;
    --px-muted: #8A919E;
    --px-faint: #5F6672;
    --px-border: #262A32;
    --px-border-strong: #343944;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--px-bg); color: var(--px-text); }
body {
    min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px; letter-spacing: -.005em; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(46, 92, 255, .45); }

/* ── Main: everything centred ────────────────────────────────────────── */
.lp-main { position: relative; flex: 1; display: grid; place-items: center; padding: 48px 16px; overflow: hidden; }
.lp-main::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: linear-gradient(var(--px-border) 1px, transparent 1px), linear-gradient(90deg, var(--px-border) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 75%);
}
.lp-glow {
    position: absolute; left: 50%; top: 50%; width: 720px; height: 480px; max-width: 140vw; transform: translate(-50%, -50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(46, 92, 255, .28), transparent);
}
.lp-box { position: relative; width: 100%; max-width: 560px; text-align: center; animation: lp-rise .7s ease-out both; }

.lp-logo { display: flex; justify-content: center; margin-bottom: 32px; }
.lp-logo-img { display: block; max-width: min(260px, 70vw); max-height: 96px; width: auto; height: auto; }
.lp-logo-text { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.lp-title { margin: 0 0 12px; font-size: clamp(30px, 6vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; }
.lp-sub { margin: 0 0 36px; color: var(--px-text-2); font-size: clamp(16px, 2.4vw, 18px); line-height: 1.6; }

/* The big button */
.lp-continue {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    width: 100%; max-width: 420px; min-height: 68px; padding: 18px 32px; border-radius: 16px;
    background: var(--px-brand); color: #fff; font-size: 21px; font-weight: 700; letter-spacing: -.01em;
    box-shadow: 0 16px 40px rgba(46, 92, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.lp-continue::after {
    content: ""; position: absolute; inset: -6px; border-radius: 20px; border: 2px solid rgba(46, 92, 255, .5);
    animation: lp-ring 2.4s ease-out infinite; pointer-events: none;
}
.lp-continue svg { transition: transform .15s; }
.lp-continue:hover { background: var(--px-brand-strong); color: #fff; transform: translateY(-2px); box-shadow: 0 20px 48px rgba(46, 92, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .18); }
.lp-continue:hover svg { transform: translateX(4px); }
.lp-continue:active { transform: none; }
.lp-continue:focus-visible { outline: 3px solid var(--px-brand-light); outline-offset: 4px; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.lp-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px; padding: 20px 16px 24px; border-top: 1px solid var(--px-border); color: var(--px-faint); font-size: 13px; }
.lp-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.lp-footer a { color: var(--px-muted); }
.lp-footer a:hover { color: var(--px-text); }
.lp-footer p { margin: 0; }

/* ── Text pages (legal.php) ──────────────────────────────────────────── */
.lp-page-head { padding: 18px 16px; border-bottom: 1px solid var(--px-border); }
.lp-page-head .lp-logo { justify-content: flex-start; margin: 0 auto; max-width: 760px; }
.lp-logo-sm .lp-logo-img { max-height: 36px; }
.lp-logo-sm .lp-logo-text { font-size: 22px; }
.lp-page { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 48px 16px; }
.lp-page h1 { margin: 0 0 20px; font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.lp-page h2 { margin: 28px 0 10px; font-size: 20px; font-weight: 700; }
.lp-page p, .lp-page li { color: var(--px-text-2); font-size: 16px; line-height: 1.7; }
.lp-page a { color: var(--px-brand-light); }

/* ── Motion ──────────────────────────────────────────────────────────── */
@keyframes lp-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lp-ring { 0% { opacity: .9; transform: scale(.97); } 100% { opacity: 0; transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
    .lp-box, .lp-continue::after { animation: none; }
}
