/* Robtic public site: landing page, features, plans, terms, privacy. Plain CSS (the panel's own styles are built with it). */
@font-face {
    font-family: 'Assistant';
    src: url('/rl/robtic/fonts/assistant.ttf') format('truetype');
    font-weight: 1 999;
    font-display: swap;
}

:root {
    --bg: #070b14;
    --bg-2: #0b1222;
    --text: #e8eefb;
    --muted: #93a1ba;
    --line: rgba(255, 255, 255, 0.1);
    --glass: rgba(255, 255, 255, 0.04);
    --blue: #1793ff;
    --radius: 14px;
    --bar: 72px;
    --foot: #04070e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 'Assistant', 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Bar: the brand at the far left, the links in a pill in the middle, the buttons at the right ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--bar); display: flex; align-items: center; padding: 0 28px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); transform-origin: left center; }
.brand img { width: 34px; height: 34px; }
.nav-links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 11, 20, 0.45); backdrop-filter: blur(10px); }
.nav-links a { padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background 0.15s, color 0.15s; }
.nav-links a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.nav-links a.is-active { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.actions { margin-left: auto; display: flex; gap: 10px; }
.nav-links, .actions { transition: opacity 0.3s, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
/* Scrolled down: only the brand stays, a little bigger. */
.bar.is-collapsed .nav-links { opacity: 0; pointer-events: none; transform: translate(-50%, -10px); }
.bar.is-collapsed .actions { opacity: 0; pointer-events: none; transform: translateY(-10px); }
.bar.is-collapsed .brand { transform: scale(1.15); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform 0.15s, background 0.15s, border-color 0.15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #3aa3ff; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(7, 11, 20, 0.35); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }
.btn-lg { padding: 13px 26px; font-size: 16px; }

/* Centre nav: Dashboard and Community open a hover mega-menu. The triggers keep the .nav-links pill look. */
.nav-has-menu { display: flex; }
.nav-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border: 0; background: none; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.nav-trigger:hover, .nav-trigger.is-open { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.nav-trigger .caret { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; transition: transform 0.2s; }
.nav-trigger.is-open .caret { transform: rotate(180deg); }

.mega { position: fixed; top: calc(var(--bar) - 4px); left: 50%; z-index: 39; width: min(720px, calc(100vw - 24px)); transform: translate(-50%, 8px); opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1); }
.mega.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.bar.is-collapsed .mega { opacity: 0; pointer-events: none; }
.mega-in { display: grid; grid-template-columns: 1fr 236px; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(11, 18, 34, 0.82); backdrop-filter: blur(9px) saturate(120%); -webkit-backdrop-filter: blur(9px) saturate(120%); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7); }
.mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega-h { margin: 4px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 12px; transition: background 0.15s; }
.mega-item:hover { background: rgba(255, 255, 255, 0.05); }
.mega-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); transition: color 0.15s, border-color 0.15s; }
.mega-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mega-ic.is-brand svg { fill: currentColor; stroke: none; }
.mega-item:hover .mega-ic { color: var(--blue); border-color: rgba(23, 147, 255, 0.5); }
.mega-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-tx b { font-size: 14px; font-weight: 600; color: var(--text); }
.mega-tx small { font-size: 12.5px; color: var(--muted); }
.mega-item[aria-disabled="true"] .mega-tx b::after { content: 'Soon'; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); background: rgba(255, 255, 255, 0.07); vertical-align: middle; }
.mega-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 16px; border-radius: 14px; overflow: hidden; background: radial-gradient(340px 150px at 50% 0%, rgba(23, 147, 255, 0.28), transparent), var(--bg-2); border: 1px solid rgba(23, 147, 255, 0.25); }
.mega-card img { width: 64px; height: auto; margin-bottom: 4px; }
.mega-card b { font-size: 15px; font-weight: 700; color: var(--text); }
.mega-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Toast: the "coming soon" message at the bottom (landing-ui.js shows it). */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 16px); max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 18, 34, 0.82); backdrop-filter: blur(9px) saturate(120%); -webkit-backdrop-filter: blur(9px) saturate(120%); color: var(--text); font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.25s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.25s; }
.toast.is-shown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

@media (max-width: 760px) {
    .bar { padding: 0 16px; gap: 10px; }
    .brand span { display: none; }
    /* The centre pill and its hover mega-menus are replaced by the ⋮ sheet at this width. */
    .nav-links { display: none; }
    .mega { display: none; }
    .actions { order: 2; margin-left: auto; }
    .actions .btn-primary { display: none; } /* keep just "Sign in" beside the menu button */
    .m-kebab { display: inline-flex; order: 3; }
    /* The bar stays put when scrolled on phones — the menu button must never slide away. */
    .bar.is-collapsed .actions, .bar.is-collapsed .m-kebab { opacity: 1; pointer-events: auto; transform: none; }
    .bar.is-collapsed .brand { transform: none; }
    .bar.is-collapsed .brand span { display: none; }
}

/* ---------- Hero: the sky ---------- */
.sky { position: relative; overflow: hidden; padding: calc(var(--bar) + 80px) 0 40px; background: radial-gradient(1200px 520px at 50% -10%, rgba(23, 147, 255, 0.35), transparent 60%), linear-gradient(180deg, #0a1a33 0%, #0b1426 55%, var(--bg) 100%); }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: 0.55; background-image: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1px 1px at 40% 70%, #cfe3ff, transparent), radial-gradient(1.5px 1.5px at 85% 60%, #fff, transparent), radial-gradient(1px 1px at 10% 80%, #cfe3ff, transparent), radial-gradient(1px 1px at 60% 45%, #fff, transparent); }
.cloud { position: absolute; height: 60px; border-radius: 60px; background: rgba(255, 255, 255, 0.05); filter: blur(2px); pointer-events: none; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ''; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 70px; height: 70px; top: -32px; left: 30px; }
.cloud::after { width: 90px; height: 90px; top: -45px; right: 30px; }
.cloud.c1 { width: 220px; top: 22%; left: -260px; animation-duration: 70s; }
.cloud.c2 { width: 160px; top: 48%; left: -200px; animation-duration: 95s; animation-delay: -40s; opacity: 0.7; }
.cloud.c3 { width: 260px; top: 70%; left: -300px; animation-duration: 120s; animation-delay: -80s; opacity: 0.5; }
@keyframes drift { to { transform: translateX(calc(100vw + 600px)); } }
.hero { position: relative; text-align: center; }
.hero h1 { margin: 0 auto; max-width: 860px; font-size: clamp(38px, 6.4vw, 70px); line-height: 1.04; font-weight: 800; letter-spacing: -0.025em; }
.hero h1 span { background: linear-gradient(90deg, #6cc0ff, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 20px auto 0; max-width: 620px; font-size: 18px; color: var(--muted); }
.hero .ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Numbers under the hero. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 70px auto 0; max-width: 820px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); }
.stat { padding: 20px 12px; background: rgba(9, 15, 28, 0.85); text-align: center; }
.stat b { display: block; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- The card hanging from ropes ---------- */
.hang { position: relative; margin: 60px auto 0; max-width: 940px; padding-top: 130px; }
.swing { position: relative; transform-origin: 50% -130px; animation: swing 7s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.rope { position: absolute; top: -130px; width: 2px; height: 138px; background: linear-gradient(180deg, rgba(232, 238, 251, 0), rgba(232, 238, 251, 0.55) 30%, rgba(232, 238, 251, 0.7)); }
.rope.left { left: 18%; transform: skewX(14deg); transform-origin: bottom; }
.rope.right { right: 18%; transform: skewX(-14deg); transform-origin: bottom; }
.rope::after { content: ''; position: absolute; bottom: -6px; left: -4px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(232, 238, 251, 0.7); background: var(--bg-2); }
.shot { position: relative; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, 0.14); background: var(--bg-2); padding: 8px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(23, 147, 255, 0.08); }
.shot img.screen { border-radius: 9px; width: 100%; height: auto; }
.shot .dots { display: flex; gap: 6px; padding: 4px 6px 10px; }
.shot .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.peek { position: absolute; right: 26%; bottom: 100%; width: 240px; margin-bottom: -2px; pointer-events: none; }
@media (max-width: 720px) { .peek { width: 140px; right: 24%; } .hang { padding-top: 90px; } .rope { top: -90px; height: 98px; } }

/* ---------- Look inside: screenshots in a grid ---------- */
section.block { padding: 100px 0; }
.block h2 { margin: 0; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.02em; line-height: 1.1; }
.block p.sub { margin: 12px 0 0; max-width: 640px; color: var(--muted); font-size: 17px; }
.center { text-align: center; }
.center p.sub { margin-left: auto; margin-right: auto; }
.bento { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: repeat(6, 1fr); }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption { position: absolute; inset: auto 0 0 0; padding: 44px 20px 18px; background: linear-gradient(180deg, transparent, rgba(7, 11, 20, 0.94)); }
.tile figcaption b { display: block; font-size: 18px; }
.tile figcaption span { color: var(--muted); font-size: 14px; }
.tile.t-wide { grid-column: span 4; aspect-ratio: 16 / 9; }
.tile.t-tall { grid-column: span 2; }
.tile.t-half { grid-column: span 3; aspect-ratio: 16 / 10; }
@media (max-width: 860px) { .tile.t-wide, .tile.t-tall, .tile.t-half { grid-column: span 6; aspect-ratio: 16 / 10; } }
.more-link { display: inline-flex; margin-top: 30px; color: #6cc0ff; font-weight: 600; }
.more-link:hover { text-decoration: underline; }
.band { margin: 0 auto; padding: 48px; border-radius: 22px; border: 1px solid rgba(23, 147, 255, 0.3); background: radial-gradient(600px 200px at 50% 0%, rgba(23, 147, 255, 0.25), transparent), var(--bg-2); text-align: center; }
.band h2 { font-size: clamp(26px, 3.5vw, 38px); }
.band .ctas { display: flex; justify-content: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ---------- Page heads (features, plans, terms, privacy): the same sky ---------- */
.page-head { position: relative; overflow: hidden; padding: calc(var(--bar) + 70px) 0 50px; background: radial-gradient(1000px 420px at 50% -20%, rgba(23, 147, 255, 0.3), transparent 60%), linear-gradient(180deg, #0a1a33, var(--bg)); text-align: center; }
.page-head h1 { margin: 0; font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.025em; line-height: 1.05; }
.page-head p { margin: 14px auto 0; max-width: 600px; color: var(--muted); font-size: 17px; }
.page-head.narrow { text-align: left; }
.page-head.narrow .wrap { max-width: 800px; }
.page-head.narrow p { margin-left: 0; }

/* ---------- Features: one big screen at a time, opened as you scroll ---------- */
.story { position: relative; height: calc(var(--n) * 100vh); }
.story-stage { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(280px, 0.8fr) 1.4fr; align-items: center; gap: 48px; padding: var(--bar) 5vw 40px; overflow: hidden; }
.story-texts, .story-screens { position: relative; height: 100%; }
.st { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; will-change: opacity, transform; }
.st .num { font-size: 14px; font-weight: 700; color: #6cc0ff; letter-spacing: 0.12em; }
.st h2 { margin: 10px 0 12px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.025em; }
.st p { margin: 0; color: var(--muted); font-size: 18px; }
.st ul { margin: 20px 0 0; padding: 0; list-style: none; }
.st li { position: relative; padding-left: 26px; margin: 10px 0; color: #c6d1e4; }
.st li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 10px; height: 6px; border-left: 2px solid #3ddc97; border-bottom: 2px solid #3ddc97; transform: rotate(-45deg); }
.sc { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; will-change: transform, opacity; }
.sc .frame { width: 100%; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--bg-2); padding: 8px; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8), 0 0 80px -20px rgba(23, 147, 255, 0.25); }
.sc .frame .dots { display: flex; gap: 6px; padding: 4px 6px 10px; }
.sc .frame .dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.sc img { width: 100%; max-height: 62vh; object-fit: cover; object-position: top left; border-radius: 10px; }
.story-progress { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.story-progress i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); transition: background 0.3s, transform 0.3s; }
.story-progress i.on { background: var(--blue); transform: scale(1.6); }
@media (max-width: 860px) {
    .story-stage { grid-template-columns: 1fr; grid-template-rows: 250px 1fr; gap: 10px; padding-top: calc(var(--bar) + 10px); }
    .story-texts { height: 250px; }
    .st h2 { font-size: 30px; }
    .st p { font-size: 16px; }
    .st ul { display: none; }
    .story-progress { display: none; }
}
/* Without scripts (or with less motion), the story is a plain list. */
.story.static { height: auto; }
.story.static .story-stage { position: static; height: auto; display: block; padding: 40px 5vw; }
.story.static .story-texts, .story.static .story-screens { height: auto; }
.story.static .st, .story.static .sc { position: static; margin: 0 0 30px; }
.story.static .story-progress { display: none; }
.grid { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)); transition: transform 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(23, 147, 255, 0.35); }
.card .icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(23, 147, 255, 0.14); color: #6cc0ff; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin: 16px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Plans ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin-top: 26px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
.tabs button { padding: 8px 20px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tabs button.on { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.plans { display: grid; gap: 16px; margin: 40px auto 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.plans[hidden] { display: none; }
.plan { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)); text-align: left; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.plan:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.22); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.plan.recommended { border-color: rgba(23, 147, 255, 0.55); }
.plan .ribbon { position: absolute; right: -40px; top: 18px; width: 150px; transform: rotate(45deg); padding: 5px 0; background: linear-gradient(90deg, #0c62b3, var(--blue)); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }
.plan h3 { margin: 0; font-size: 20px; }
.plan .price { margin: 10px 0 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted); }
.plan .limits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan .limits span { display: block; font-size: 12px; color: var(--muted); }
.plan ul { flex: 1; margin: 0 0 22px; padding: 0; list-style: none; }
.plan li { display: flex; gap: 8px; margin: 7px 0; font-size: 14px; color: #c6d1e4; }
.plan li.no { color: #55627a; text-decoration: line-through; }
.plan li::before { content: '\2713'; color: #3ddc97; font-weight: 700; }
.plan li.no::before { content: '\00d7'; color: #55627a; }
.plan .btn { justify-content: center; }

/* ---------- Text pages ---------- */
.prose { max-width: 800px; padding-bottom: 80px; }
.prose h2 { margin: 40px 0 10px; font-size: 22px; }
.prose h3 { margin: 26px 0 8px; font-size: 17px; }
.prose p, .prose li { color: #c6d1e4; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose a { color: #6cc0ff; }
.prose a:hover { text-decoration: underline; }

/* ---------- Footer: three columns, then the big RobTic with the robot sitting on its T ---------- */
footer.foot { position: relative; overflow: hidden; background: radial-gradient(900px 400px at 50% 120%, rgba(23, 147, 255, 0.22), transparent 70%), var(--foot); }
.foot-wave { margin-top: 60px; }
.foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 46px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.foot-brand .logo img { width: 40px; height: 40px; }
.foot-brand h4, .foot-col h4 { margin: 6px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.socials { display: flex; align-items: center; gap: 4px; }
.socials .sep { width: 1px; height: 18px; margin: 0 6px; background: var(--line); }
.socials a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); color: var(--muted); transition: color 0.15s, border-color 0.15s, transform 0.15s; }
.socials a:hover { color: var(--text); border-color: rgba(23, 147, 255, 0.5); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.foot-right { display: flex; flex-wrap: wrap; gap: 56px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--muted); }
.foot-col h4 { margin: 6px 0 6px; }
.foot-col a { width: max-content; transition: color 0.15s; }
.foot-col a:hover { color: var(--text); }
@media (max-width: 640px) { .foot-right { gap: 30px; } }
.mark-wrap { position: relative; padding-top: clamp(110px, 15vw, 210px); text-align: center; }
.mark, .mark .t { font-weight: 900; background: linear-gradient(180deg, rgba(232, 238, 251, 0.9), rgba(23, 147, 255, 0.35) 70%, rgba(23, 147, 255, 0)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mark { display: inline-block; font-size: clamp(90px, 23vw, 360px); line-height: 0.78; letter-spacing: -0.05em; user-select: none; transform: translateY(8%); }
.mark .t { position: relative; display: inline-block; }
/* Sits on the top bar of the T: its bottom on the letter's cap line. */
.sitter { position: absolute; left: 50%; bottom: 79%; width: 0.6em; max-width: none; transform: translateX(-60%); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5)); }

/* ---------- A look inside: a strip of screens moving left; grey until hovered (which stops it) ---------- */
.marquee { position: relative; margin-top: 44px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee .track { display: flex; width: max-content; animation: slide 55s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee .set { display: flex; gap: 22px; padding-right: 22px; }
@keyframes slide { to { transform: translateX(-50%); } }
.mcard { flex: none; width: clamp(280px, 34vw, 480px); margin: 0; padding: 8px 8px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); filter: grayscale(1) brightness(0.75); transition: filter 0.4s, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s; }
.mcard:hover { filter: none; transform: translateY(-8px); border-color: rgba(23, 147, 255, 0.5); }
.mcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 11px; }
.mcard figcaption { padding: 12px 8px 0; }
.mcard figcaption b { display: block; font-size: 17px; }
.mcard figcaption span { color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .marquee { overflow-x: auto; } .marquee .track { animation: none; } }

/* Legal pages: a Terms | Privacy switch, and under it the pages of the group you're in (one per service, so the
   row can grow; on a phone it scrolls sideways instead of wrapping into a pile). */
.legal-nav { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 24px auto 0; max-width: 100%; }
.legal-groups { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--glass); }
.legal-groups a { padding: 8px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color 0.15s, background 0.15s; }
.legal-groups a:hover { color: var(--text); }
.legal-groups a.on { background: rgba(23, 147, 255, 0.18); color: var(--text); box-shadow: inset 0 0 0 1px rgba(23, 147, 255, 0.35); }
.legal-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 6px; max-width: 100%; }
.legal-tabs a { position: relative; padding: 6px 12px; font-size: 14px; color: var(--muted); white-space: nowrap; transition: color 0.15s; }
.legal-tabs a:hover { color: var(--text); }
.legal-tabs a.on { color: var(--text); }
.legal-tabs a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); }
@media (max-width: 640px) {
    .legal-tabs { flex-wrap: nowrap; justify-content: flex-start; align-self: stretch; overflow-x: auto; scrollbar-width: none; padding: 0 4px 4px;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
    .legal-tabs::-webkit-scrollbar { display: none; }
    .legal-tabs a:first-child { margin-left: auto; }
    .legal-tabs a:last-child { margin-right: auto; }
}

/* Legal/privacy pages: a minimal, centred reading column with the plans-page gradient header, and a plain
   sidebar (no background or borders) in the left margin listing the sections — click a title to jump to it.
   The article sits in the true centre column; the sidebar floats in the left gutter without pushing it off-centre. */
.legal-wrap { display: grid; grid-template-columns: 1fr minmax(0, 720px) 1fr; column-gap: 48px; align-items: start; max-width: 1240px; margin: 0 auto; padding: 60px 24px 96px; }
.legal { grid-column: 2; min-width: 0; color: var(--muted); font-size: 16px; line-height: 1.85; text-align: left; }
.legal > :first-child { margin-top: 0; }
.legal h2 { color: var(--text); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin: 46px 0 14px; scroll-margin-top: calc(var(--bar) + 28px); }
.legal h3 { color: var(--text); font-size: 17px; margin: 30px 0 8px; scroll-margin-top: calc(var(--bar) + 28px); }
.legal p { margin: 0 0 16px; }
.legal ul, .legal ol { margin: 0 0 18px; padding-left: 22px; }
.legal li { margin: 7px 0; }
.legal li::marker { color: var(--blue); }
.legal a { color: #6cc0ff; text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: #9ad2ff; }
.legal strong { color: var(--text); font-weight: 600; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.legal blockquote { margin: 0 0 22px; padding: 12px 16px; border: 1px solid rgba(245, 165, 36, 0.35); border-left-width: 3px; border-radius: 8px; background: rgba(245, 165, 36, 0.06); color: var(--text); font-size: 15px; }
.legal blockquote p { margin: 0; }
.legal blockquote strong { color: #f5a524; }
.legal code { background: var(--glass); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

.legal-toc { grid-column: 1; grid-row: 1; justify-self: end; width: 190px; position: sticky; top: calc(var(--bar) + 28px); }
.legal-toc h2 { margin: 0 0 16px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; color: var(--muted); opacity: 0.6; }
.legal-toc nav { display: flex; flex-direction: column; gap: 11px; }
.legal-toc a { font-size: 13.5px; line-height: 1.45; color: var(--muted); transition: color 0.15s; }
.legal-toc a:hover { color: var(--text); }

/* "Read also": the related pages, in the right margin (mirroring the contents on the left); under the article on
   narrower screens. */
.legal-rel { grid-column: 3; grid-row: 1; justify-self: start; width: 210px; position: sticky; top: calc(var(--bar) + 28px); }
.legal-rel h2 { margin: 0 0 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; color: var(--muted); opacity: 0.6; }
.legal-rel nav { display: flex; flex-direction: column; gap: 8px; }
.legal-rel a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); transition: border-color 0.15s, background 0.15s; }
.legal-rel a:hover { border-color: rgba(23, 147, 255, 0.45); background: rgba(23, 147, 255, 0.08); }
.legal-rel small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: #6cc0ff; }
.legal-rel span { display: block; margin-top: 2px; font-size: 14px; color: var(--text); }

@media (max-width: 1040px) {
    .legal-wrap { grid-template-columns: minmax(0, 720px); justify-content: center; }
    .legal { grid-column: 1; }
    .legal-toc { display: none; }
    .legal-rel { grid-column: 1; grid-row: auto; justify-self: stretch; width: auto; position: static; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
    .legal-rel nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}

/* Things rise gently into view (only when scripts run; without them everything just shows). */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .swing, .cloud { animation: none; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Plans: what the signed-in person has, and a dialog ---------- */
.mine { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 26px auto 0; }
.mine > div { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 200px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(9, 15, 28, 0.7); text-align: left; font-size: 14px; color: var(--muted); }
.mine .label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #6cc0ff; }
.mine b { font-size: 18px; color: var(--text); }
.mine .bad { color: #f87171; }
.mine .row { display: flex; gap: 8px; margin-top: 8px; }
.mine .btn { padding: 6px 14px; font-size: 13px; }
.plan .tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(23, 147, 255, 0.18); color: #6cc0ff; font-size: 11px; font-weight: 700; vertical-align: middle; }
.plan.is-current { border-color: rgba(61, 220, 151, 0.5); }
.plan.is-picked { box-shadow: 0 0 0 2px rgba(23, 147, 255, 0.7), 0 30px 60px -30px rgba(0, 0, 0, 0.7); }
.plan .then { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan button.btn { border: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.plan button.btn-ghost { border: 1px solid var(--line); }
.plan button[disabled] { opacity: 0.55; cursor: default; transform: none; }
.modal { padding: 0; border: 0; background: none; color: var(--text); max-width: min(460px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(4, 7, 12, 0.7); backdrop-filter: blur(3px); }
.modal-box { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); }
.modal-box h3 { margin: 0 0 8px; font-size: 20px; }
.modal-box p { margin: 0 0 12px; color: var(--muted); }
.modal-box label { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.modal-box input, .modal-box textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #070b14; color: var(--text); font: inherit; font-size: 14px; }
.modal-box textarea { min-height: 96px; resize: vertical; }
.modal-box .row { display: flex; gap: 8px; margin-top: 20px; }
.modal-box .row.end { justify-content: flex-end; }
.modal-box .btn { border: 0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.modal-box .btn-ghost { border: 1px solid var(--line); }
.modal-box .err { margin-top: 12px; color: #f87171; }

/* ---------- The site's own scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: #1f6fc4 #070b14; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #070b14; }
::-webkit-scrollbar-thumb { border: 2px solid #070b14; border-radius: 999px; background: linear-gradient(180deg, #3aa3ff, #0c62b3); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #6cc0ff, #1793ff); }
::selection { background: rgba(23, 147, 255, 0.35); color: #fff; }

/* Their own plan: a white ribbon. */
.plan .ribbon.mine-ribbon { background: linear-gradient(90deg, #dfe8f7, #ffffff); color: #0b1222; }
.plan.is-current { border-color: rgba(255, 255, 255, 0.5); }

/* Signed in: their picture in the bar opens the panel. */
.me { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); background: linear-gradient(135deg, #3aa3ff, #0c62b3); font-weight: 800; color: #fff; transition: transform 0.15s, border-color 0.15s; }
.me:hover { transform: scale(1.06); border-color: rgba(23, 147, 255, 0.8); }
.me img { width: 100%; height: 100%; object-fit: cover; }
.me { padding: 0; cursor: pointer; font: inherit; }
/* The avatar's menu: the same glass as the nav pill. */
.me-wrap { position: relative; }
.me-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(7, 11, 20, 0.82); backdrop-filter: blur(9px) saturate(120%); -webkit-backdrop-filter: blur(9px) saturate(120%); box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.8); animation: me-in 0.16s ease; }
@keyframes me-in { from { opacity: 0; transform: translateY(-6px); } }
.me-head { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.me-head b { display: block; font-size: 14px; }
.me-head span { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.me-menu a, .me-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; transition: background 0.15s, color 0.15s; }
.me-menu a:hover, .me-menu button:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.me-menu svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.me-menu .danger:hover { color: #ff7a87; background: rgba(255, 93, 108, 0.08); }
.me-menu button:disabled { opacity: 0.6; cursor: default; }
.me-sep { display: block; height: 1px; margin: 4px 6px; background: var(--line); }

/* The eyes while the page loads. */
#robtic-boot { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: #000; transition: opacity 0.4s ease; }
#robtic-boot.done { opacity: 0; pointer-events: none; }
html[data-booted] #robtic-boot { display: none !important; }
/* Safety net with no script at all: the eyes step aside after 6 seconds anyway. */
#robtic-boot { animation: robtic-boot-out 0.4s ease 6s forwards; }
@keyframes robtic-boot-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
#robtic-boot video { width: min(72vw, 440px); height: auto; }

/* 404 */
.lost { min-height: 100vh; display: flex; align-items: center; }
.lost .lost-art { width: min(300px, 70vw); height: auto; margin: 0 auto; animation: lost-float 4s ease-in-out infinite; }
.lost .lost-code { margin: 10px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.3em; color: var(--blue); }
@keyframes lost-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .lost .lost-art { animation: none; } }

/* Features (landing page): pictures that slide sideways along a wave while the page holds still. */
.deck { position: relative; background: var(--bg-2); }
.deck-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.deck-progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.deck-progress s { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(0); }
.deck-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.deck-head small { color: var(--muted); font-size: 14px; }
.deck-title { text-align: right; }
.deck-title .pill { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--blue); color: #04121f; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.deck-title h2 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: -0.025em; }
.deck-track { position: relative; display: flex; gap: 28px; width: max-content; padding: 40px calc(50vw - 190px); will-change: transform; }
.dk { flex: 0 0 380px; margin: 0; will-change: transform; outline: none; }
.dk-in { position: relative; overflow: hidden; border-radius: 22px; box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s; }
.dk-in img { display: block; width: 100%; height: auto; aspect-ratio: 640 / 440; }
.dk figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px; background: linear-gradient(180deg, transparent, rgba(4, 8, 18, 0.88) 45%); opacity: 0; transform: translateY(14px); transition: opacity 0.3s, transform 0.3s; }
.dk h3 { margin: 0 0 4px; font-size: 20px; color: #fff; }
.dk p { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.82); }
.dk:hover .dk-in, .dk:focus-visible .dk-in { transform: scale(1.07); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.dk:hover figcaption, .dk:focus-visible figcaption { opacity: 1; transform: none; }
/* Touch screens have no hover: the text always shows. */
@media (hover: none) { .dk figcaption { opacity: 1; transform: none; } }
/* Narrow screens: swipe them. */
.deck.is-swipe .deck-stage { position: static; height: auto; padding: 40px 0; }
.deck.is-swipe .deck-progress { display: none; }
.deck.is-swipe .deck-head { flex-direction: column-reverse; align-items: flex-start; }
.deck.is-swipe .deck-title { text-align: left; }
.deck.is-swipe .deck-track { width: auto; padding: 10px 20px 24px; overflow-x: auto; scroll-snap-type: x mandatory; }
.deck.is-swipe .dk { flex-basis: 84vw; max-width: 380px; scroll-snap-align: center; }

/* Wavy edges between sections; they wave more while the page scrolls. */
.wave { position: relative; height: 110px; margin: -1px 0; background: var(--from); }
.wave svg { display: block; width: 100%; height: 100%; }
.wave .w1 { fill: var(--to); }
.wave .w2 { fill: var(--to); opacity: 0.4; }
.wave .wl { fill: none; stroke: rgba(23, 147, 255, 0.55); stroke-width: 2; vector-effect: non-scaling-stroke; }

/* Back to the top. */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: rgba(11, 18, 34, 0.75); color: #fff; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45); opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.9); transition: opacity 0.3s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s, background 0.2s; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }
.to-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 2.5; }
.to-top .ring .fill { stroke: var(--blue); stroke-linecap: round; transition: stroke 0.2s; }
.to-top:hover .ring .fill { stroke: #fff; }
.to-top .arrow { position: relative; width: 22px; height: 22px; margin: auto; display: block; transition: transform 0.25s; }
.to-top:hover .arrow { transform: translateY(-3px); }
.to-top:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; } }

/* The landing page's sound button. */
.sky-sound { position: fixed; left: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 18, 34, 0.75); color: #dbe4f5; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background 0.2s, color 0.2s; }
.sky-sound:hover { background: rgba(23, 147, 255, 0.25); color: #fff; }
.sky-sound svg { width: 18px; height: 18px; }
.sky-sound .off, .sky-sound.is-off .on, .sky-sound.is-off .bars { display: none; }
.sky-sound.is-off .off { display: block; }
.sky-sound .bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sky-sound .bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--blue); animation: sky-bar 1.4s ease-in-out infinite; transform-origin: bottom; }
.sky-sound .bars i:nth-child(2) { animation-delay: .3s; }
.sky-sound .bars i:nth-child(3) { animation-delay: .6s; }
@keyframes sky-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@media (max-width: 640px) { .sky-sound { left: 16px; bottom: 16px; height: 40px; } }

/* Home: questions. */
section.faq { background: var(--bg-2); padding-top: 20px; }
.faq h2 { margin: 0 0 22px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; }
.faq-list { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 18px; position: relative; font-weight: 700; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 20px; transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); line-height: 1.65; }
.faq-more { margin: 22px 0 0; color: var(--muted); }
.faq-more a { color: #6cc0ff; text-decoration: underline; text-underline-offset: 3px; }

/* Discord bot hosting page. */
.crumbs { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.crumbs a { color: #6cc0ff; }
.page-head .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.prose ol { padding-left: 22px; }
.prose ol li { margin: 6px 0; }
.prose code { padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, 0.07); font-size: 0.9em; }
.prose a { color: #6cc0ff; }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap th, .table-wrap td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-wrap th { color: var(--text); font-weight: 700; background: rgba(255, 255, 255, 0.03); }
.table-wrap td { color: #c6d1e4; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* ---------- Public profile ---------- */
body:has(.pf) .nav-links { display: none; }
body:has(.pf) .actions { display: flex; }
body:has(.pf) .foot, body:has(.pf) .foot-wave { display: none; }
.pf { min-height: 100vh; }
.pf { padding-bottom: 90px; }
.pf-banner { height: clamp(190px, 28vw, 340px); background: linear-gradient(115deg, #0c4f9e 0%, #1793ff 55%, #6cc0ff 100%); background-size: cover; background-position: center; }
.pf-wrap { max-width: 860px; }
.pf-none { padding-top: calc(var(--bar) + 60px); text-align: center; }
.pf-none img { width: 170px; height: 170px; margin: 0 auto 8px; object-fit: contain; }
.pf-none h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pf-none p { margin: 6px 0 20px; color: var(--muted); }
.pf-head { display: flex; align-items: flex-end; gap: 20px; margin-top: -62px; flex-wrap: wrap; }
.pf-pic { position: relative; flex: none; width: 132px; height: 132px; border-radius: 50%; border: 5px solid var(--bg); background: linear-gradient(135deg, #3aa3ff, #0c62b3); display: grid; place-items: center; font-size: 48px; font-weight: 800; }
.pf-pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pf-pic i { position: absolute; right: 8px; bottom: 8px; width: 20px; height: 20px; border-radius: 50%; background: #37d08a; border: 4px solid var(--bg); }
.pf-name { flex: 1; min-width: 200px; padding-bottom: 6px; }
.pf-name h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pf-name p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.pf-edit { margin-bottom: 8px; }
.pf-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 22px; line-height: 1; }
.pf-badges li { cursor: default; }
.pf-bio { margin: 20px 0 0; font-size: 17px; color: #c9d4e8; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-chart { margin: 28px 0 0; padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.pf-chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pf-chart h2 { margin: 0; font-size: 16px; }
.pf-chart figcaption span { color: var(--muted); font-size: 13.5px; }
.pf-plot { position: relative; display: flex; align-items: stretch; height: 130px; border-bottom: 1px solid var(--line); }
.pf-day { flex: 1; min-width: 0; display: flex; align-items: flex-end; padding: 0 1px; outline: none; }
.pf-day i { display: block; width: 100%; background: var(--blue); border-radius: 4px 4px 0 0; transition: background 0.12s; }
.pf-day i.none { height: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 0; }
.pf-day:hover i, .pf-day:focus-visible i, .pf-day.on i { background: #6cc0ff; }
.pf-tip { position: absolute; top: -6px; z-index: 2; transform: translateX(-50%); padding: 5px 10px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; background: var(--bg-2); font-size: 13px; white-space: nowrap; pointer-events: none; }
.pf-tip b { display: block; }
.pf-tip span { color: var(--muted); font-size: 12px; }
.pf-axis { display: flex; justify-content: space-between; margin-top: 6px; color: var(--muted); font-size: 12px; }
.pf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 640px) { .pf-head { margin-top: -50px; } .pf-pic { width: 104px; height: 104px; } }

/* ---------- Settings ---------- */
/* Its own place: no site bar or footer, only Back. */
body:has(.st-app) .bar, body:has(.st-state) .bar, body:has(.st-app) .foot, body:has(.st-state) .foot,
body:has(.st-app) .foot-wave, body:has(.st-state) .foot-wave, body:has(.st-app) .to-top, body:has(.st-state) .to-top { display: none; }
.st-back { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 14px 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; transition: color 0.15s, border-color 0.15s; }
.st-back:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.st-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-open { display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: border-color 0.15s, background 0.15s; }
.st-open:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); }
.st-open h3 { margin: 0; font-size: 15px; font-weight: 600; }
.st-open p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.st-open svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-crumb { display: inline-block; margin-bottom: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.st-crumb:hover { color: var(--text); }
.st-dvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.st-dv { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.st-dv.here { border-color: rgba(23, 147, 255, 0.5); }
.st-dv-top { display: flex; align-items: center; gap: 12px; }
.st-dv-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(23, 147, 255, 0.12); color: #6cc0ff; }
.st-dv-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-dv b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.st-dv small { color: var(--muted); font-size: 13px; }
.st-dv dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 13.5px; }
.st-dv dt { color: var(--muted); }
.st-dv dd { margin: 0; overflow-wrap: anywhere; }
.st-dv .btn { align-self: flex-start; }
.st-pill { display: inline-block; margin-top: 2px; padding: 1px 9px; border-radius: 999px; background: rgba(23, 147, 255, 0.15); color: #6cc0ff; font-size: 12px; font-weight: 700; }
.st-app { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; max-width: 1020px; margin: 0 auto; padding: 36px 20px 90px; }
.st-side { position: sticky; top: 36px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.st-me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius); }
.st-me:hover { background: rgba(255, 255, 255, 0.05); }
.st-me img, .st-me > span { width: 42px; height: 42px; flex: none; border-radius: 50%; object-fit: cover; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #3aa3ff, #0c62b3); }
.st-me b { display: block; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; }
.st-me small { color: var(--muted); font-size: 12.5px; }
.st-side nav { display: flex; flex-direction: column; gap: 2px; }
.st-side h2 { margin: 0 0 4px; padding: 0 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #66748f; }
.st-side nav a { padding: 7px 10px; border-radius: 10px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: background 0.15s, color 0.15s; }
.st-side nav a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.st-side nav a.on { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.st-head { margin-bottom: 22px; }
.st-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.st-head p { margin: 4px 0 0; color: var(--muted); }
.st-head a { color: #6cc0ff; }
.st-card { padding: 20px 22px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); }
.st-card h2 { margin: 0; font-size: 16px; }
.st-sub { margin: 3px 0 14px; color: var(--muted); font-size: 14px; }
.st-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.st-card > .st-row:first-child { border-top: 0; padding-top: 0; }
.st-row h3 { margin: 0; font-size: 15px; font-weight: 600; }
.st-row p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.st-ctl { display: flex; align-items: center; gap: 12px; flex: none; }
.st-field { display: block; margin-bottom: 14px; }
.st-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.st-field input, .st-field textarea { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(0, 0, 0, 0.25); color: var(--text); font: inherit; resize: vertical; }
.st-field input:focus, .st-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 147, 255, 0.18); }
.st-field small { display: block; margin-top: 5px; color: #66748f; font-size: 12.5px; }
.st-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.st-app .btn { border: 1px solid transparent; font-family: inherit; cursor: pointer; }
.st-app .btn-ghost { border-color: var(--line); }
.st-app .btn:disabled, .st-link:disabled { opacity: 0.45; cursor: default; transform: none; }
.st-link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.st-link:hover { color: var(--text); }
.st-link.danger:hover { color: #ff7a87; }
.st-preview { position: relative; }
.st-banner { position: relative; display: block; aspect-ratio: 3 / 1; max-height: 210px; width: 100%; padding: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(115deg, #0c4f9e 0%, #1793ff 55%, #6cc0ff 100%); background-size: cover; background-position: center; color: #fff; font: inherit; cursor: pointer; }
.st-banner::after { content: ''; position: absolute; inset: 0; background: rgba(4, 7, 12, 0.45); opacity: 0; transition: opacity 0.15s; }
.st-banner:hover::after, .st-banner:focus-visible::after { opacity: 1; }
.st-pic { position: absolute; left: 22px; bottom: -40px; width: 92px; height: 92px; padding: 0; border-radius: 50%; border: 4px solid var(--bg); display: grid; place-items: center; font: inherit; font-size: 32px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #3aa3ff, #0c62b3); cursor: pointer; }
.st-pic img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.st-pic:hover img, .st-pic:focus-visible img { filter: brightness(0.6); }
.st-banner:disabled, .st-pic:disabled { cursor: default; }
.st-up { position: absolute; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); }
.st-up svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-banner .st-up { top: 12px; right: 12px; }
.st-pic .st-up { right: -4px; bottom: -4px; width: 30px; height: 30px; border: 3px solid var(--bg); }
.st-pic .st-up svg { width: 14px; height: 14px; }
.st-banner .st-spin, .st-pic .st-spin { position: absolute; z-index: 1; inset: 0; margin: auto; }
.st-rules { position: absolute; z-index: 1; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.15s; white-space: nowrap; }
.st-banner .st-rules { top: 18px; left: 16px; right: 56px; text-align: left; white-space: normal; }
/* Out of the layout until shown: even invisible, it would make a narrow page scroll sideways. */
.st-pic .st-rules { display: none; left: calc(100% + 12px); top: calc(50% + 24px); width: max-content; max-width: min(380px, calc(100vw - 170px)); padding: 5px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); white-space: normal; text-align: left; }
.st-pic:hover .st-rules, .st-pic:focus-visible .st-rules { display: block; }
.st-banner:hover .st-rules, .st-banner:focus-visible .st-rules, .st-pic:hover .st-rules, .st-pic:focus-visible .st-rules { opacity: 1; }
.st-under { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 18px; min-height: 52px; padding: 12px 0 12px 130px; }
.st-touch-rules { display: none; margin: 0 0 16px; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.st-touch-rules b { color: var(--text); font-weight: 600; }
.st-bio-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.st-bio { margin: 10px 0 0; color: var(--text); font-size: 14.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.st-bio.empty { color: var(--muted); }
.st-bio-box { margin-top: 12px; }
.st-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.st-value { flex-wrap: nowrap; }
.st-value > div:first-child { flex: 1; min-width: 0; }
.st-value > div:first-child p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-modal { width: min(460px, calc(100vw - 32px)); padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg-2); color: var(--text); }
.st-modal::backdrop { background: rgba(4, 7, 12, 0.7); backdrop-filter: blur(3px); }
.st-modal > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.st-modal h2 { margin: 0; font-size: 19px; font-weight: 700; }
.st-modal .st-sub { margin: 0 0 16px; overflow-wrap: anywhere; }
.st-modal .st-sub b { color: var(--text); font-weight: 600; }
.st-modal .btn { border: 1px solid transparent; font-family: inherit; cursor: pointer; }
.st-modal .btn:disabled, .st-modal .st-link:disabled { opacity: 0.45; cursor: default; transform: none; }
.st-x { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.st-x:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.st-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.st-steps { display: flex; gap: 8px; margin: 8px 0 18px; padding: 0; list-style: none; }
.st-steps li { flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; padding-top: 8px; border-top: 2px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.st-steps li.on, .st-steps li.done { border-top-color: var(--blue); }
.st-steps li.on { color: var(--text); }
.st-steps i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); font-size: 11.5px; font-style: normal; }
.st-steps li.on i, .st-steps li.done i { background: var(--blue); color: #fff; }
.st-err { margin: 0 0 14px; color: #ff9aa5; font-size: 14px; }
.st-confirm { border: 0; font-family: inherit; cursor: pointer; }
.st-confirm:disabled { opacity: 0.45; cursor: default; transform: none; }
.st-state .st-err { margin: 4px 0; color: #ff9aa5; }
.st-state .btn { margin-top: 12px; }
@media (hover: none) {
    .st-rules { display: none; }
    .st-touch-rules { display: block; }
}
.st-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.st-switch:first-child { border-top: 0; padding-top: 0; }
.st-switch input { position: absolute; opacity: 0; pointer-events: none; }
.st-switch i { flex: none; position: relative; width: 40px; height: 23px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); transition: background 0.15s; }
.st-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform 0.18s; }
.st-switch input:checked + i { background: var(--blue); }
.st-switch input:checked + i::after { transform: translateX(17px); }
.st-switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(23, 147, 255, 0.4); }
.st-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.st-item b { display: block; font-weight: 600; font-size: 14.5px; }
.st-item small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.st-app code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.st-2fa { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.st-2fa img { border-radius: 10px; background: #fff; }
.st-2fa > div { flex: 1; min-width: 230px; }
.st-2fa .st-field { margin-top: 12px; }
.st-inline { padding-top: 14px; border-top: 1px solid var(--line); }
.st-tokens { margin-top: 14px; padding: 14px; border: 1px solid rgba(245, 165, 36, 0.35); border-radius: 10px; background: rgba(245, 165, 36, 0.06); }
.st-tokens h3 { margin: 0; font-size: 15px; }
.st-tokens pre { margin: 0 0 12px; padding: 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); font-size: 13px; user-select: all; }
.st-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.st-seg button { padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.st-seg button.on { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.st-plan { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.st-plan small { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.st-plan h2 { margin: 2px 0 0; font-size: 26px; font-weight: 800; }
.st-card a:not(.btn) { color: #6cc0ff; }
.st-left { margin-top: 18px; }
.st-left > div { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.st-left p { margin: 0; color: var(--muted); font-size: 12.5px; }
.st-left p b { display: block; color: var(--text); font-size: 30px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.st-left small { margin: 0 0 2px auto; color: var(--muted); font-size: 12.5px; }
.st-left i { display: block; height: 6px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.st-left s { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.st-left i.low s { background: #f5a524; }
.st-gap { height: 12px; }
.st-pill.off { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.st-toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: min(520px, calc(100vw - 40px)); padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; animation: me-in 0.16s ease; }
.st-toast.ok { background: #0c2a1e; color: #37d08a; border: 1px solid rgba(55, 208, 138, 0.35); }
.st-toast.err { background: #2a0f15; color: #ff9aa5; border: 1px solid rgba(255, 93, 108, 0.4); }
.st-state { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 120px 20px; text-align: center; }
.st-state h1 { margin: 0; font-size: 24px; }
.st-state p { margin: 0; color: var(--muted); }
.st-spin { width: 26px; height: 26px; margin: 12px auto; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.14); border-top-color: var(--blue); animation: st-spin 0.8s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-tabs { display: flex; flex-direction: column; gap: 14px; }
.st-noun { display: inline; }
@media (max-width: 820px) {
    .st-app { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 16px 16px 72px; }
    .st-side { position: static; flex-flow: row wrap; align-items: center; gap: 10px; }
    .st-side .st-back { align-self: center; }
    .st-me { flex: 1; min-width: 0; justify-content: flex-end; padding: 4px; text-align: right; }
    .st-me > div { min-width: 0; }
    .st-me img, .st-me > span { order: 1; width: 36px; height: 36px; }
    .st-tabs { flex: 0 0 calc(100% + 32px); flex-direction: row; gap: 6px; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scrollbar-width: none; }
    .st-tabs::-webkit-scrollbar { display: none; }
    .st-side nav { display: contents; }
    .st-side h2 { display: none; }
    .st-side nav a { flex: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; font-size: 14px; }
    .st-side nav a.on { border-color: transparent; background: var(--blue); color: #fff; }
    .st-head h1 { font-size: 24px; }
    .st-card { padding: 16px; }
    .st-two { grid-template-columns: 1fr; gap: 0; }
    .st-row { flex-wrap: wrap; }
    .st-value { flex-wrap: nowrap; }
    .st-field input, .st-field textarea { font-size: 16px; }
    .st-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    .st-state { padding: 80px 16px; }
}
@media (max-width: 560px) {
    .st-noun { display: none; }
    .st-pic { left: 14px; bottom: -32px; width: 76px; height: 76px; font-size: 26px; }
    .st-pic .st-up { width: 26px; height: 26px; }
    .st-banner .st-up { top: 8px; right: 8px; width: 30px; height: 30px; }
    .st-under { min-height: 44px; padding: 10px 0 10px 100px; font-size: 13px; }
    /* The popup rises from the bottom, in reach of a thumb, and its buttons fill the row. */
    .st-modal { width: 100%; max-width: 100%; max-height: 90dvh; margin: auto 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); border-width: 1px 0 0; border-radius: 18px 18px 0 0; overflow-y: auto; }
    .st-modal .st-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
    .st-modal .btn { justify-content: center; padding: 12px 18px; }
    .st-modal .st-link { padding: 8px; text-align: center; }
    .st-steps span { display: none; }
    .st-steps li.on span { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .st-steps li { flex: 0 1 auto; padding-right: 4px; }
    .st-steps li.on { flex: 1; }
    .st-bio-head .btn { padding: 8px 14px; }
}

/* Security and Connections */
.st-error { margin: 0 0 12px; color: #ff7a87; font-size: 14px; }
.st-qr { display: block; margin: 0 auto 10px; border-radius: 10px; background: #fff; }
.st-key { margin: 0 0 14px; text-align: center; font-size: 13px; overflow-wrap: anywhere; color: var(--muted); }
.st-codes { margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass); font-size: 14px; line-height: 1.8; user-select: all; }
.st-modal .st-actions { display: flex; justify-content: flex-end; gap: 10px; }
.st-connected { display: inline-flex; align-items: center; gap: 6px; color: #5fd38d; }
.st-check { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* A code: one box per character. */
.st-otp { display: block; margin-bottom: 14px; }
.st-otp > span:first-child { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.st-otp-boxes { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.st-otp-box { display: grid; place-items: center; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--glass); color: var(--text); font-size: 18px; font-weight: 700; }
.st-otp-boxes input { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; outline: none; cursor: text; }
.st-otp-boxes input::selection { background: transparent; }
.st-otp-boxes:focus-within .st-otp-box.now { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 147, 255, 0.25); }

/* Switch account */
.st-accounts { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.st-accounts button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--glass); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.st-accounts button:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07); }
.st-accounts button:disabled { cursor: default; opacity: 0.75; }
.st-accounts i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: rgba(23, 147, 255, 0.2); font-style: normal; font-weight: 700; }
.st-accounts span { flex: 1; min-width: 0; }
.st-accounts b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-accounts small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-accounts em { flex: none; color: var(--muted); font-size: 12.5px; font-style: normal; }

/* Something is on its way. */
.top-progress { position: fixed; inset: 0 0 auto 0; z-index: 90; height: 3px; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.top-progress.on { opacity: 1; }
.top-progress::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 3px; background: var(--blue); box-shadow: 0 0 10px rgba(23, 147, 255, 0.8); animation: top-progress 1.1s ease-in-out infinite; }
@keyframes top-progress { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .top-progress::after { width: 100%; animation: none; } }
.st-spin.st-spin-sm { display: inline-block; width: 16px; height: 16px; margin: 0; border-width: 2px; vertical-align: middle; }
.st-accounts button:disabled em { opacity: 1; }

/* ---- Generic pill + FAQ ------------------------------------------------- */
.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--blue); color: #04121f; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

/* The FAQ gets its own tint (a blue glow over the darker base, settling to bg-2 so it flows into the footer wave). */
.faq-sec { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 55%, var(--bg-2) 100%); }
.faq-head { max-width: 640px; margin: 0 0 36px; }
.faq-head .pill { margin-bottom: 14px; }
.faq-head h2 { margin: 0; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.02em; line-height: 1.1; }
.faq-head .sub { margin: 12px 0 0; color: var(--muted); font-size: 17px; }

.faq-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }
.faq-grid-solo { grid-template-columns: 1fr; }

.faq-list { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)); overflow: hidden; transition: border-color 0.2s, background 0.2s; }
.faq-item.is-open { border-color: rgba(23, 147, 255, 0.4); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 20px; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.faq-chev { flex: none; color: var(--muted); transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.2s; }
.faq-item.is-open .faq-chev { transform: rotate(180deg); color: var(--blue); }
/* Smooth accordion: the answer row grows 0fr -> 1fr (its inner wrapper clips the overflow). */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-in { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 20px 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 10px 2px; font-size: 15px; font-weight: 600; color: var(--blue); width: max-content; }
.faq-more:hover { text-decoration: underline; }

.faq-art { display: flex; justify-content: center; align-items: flex-start; position: sticky; top: 120px; }
.faq-q-img { width: min(100%, 360px); height: auto; filter: drop-shadow(0 30px 50px rgba(23, 147, 255, 0.35)); animation: faq-float 6s ease-in-out infinite; }
@keyframes faq-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

@media (max-width: 820px) {
    .faq-grid { grid-template-columns: 1fr; gap: 28px; }
    .faq-art { order: -1; position: static; }
    .faq-q-img { width: 170px; }
}
@media (prefers-reduced-motion: reduce) { .faq-q-img { animation: none; } }

/* /faq page: a flat header (no glow), so it reads as one surface with the list below. */
.page-head.faq-top { background: var(--bg); }

/* ---- FAQ polish -------------------------------------------------------- */
/* A soft round glow that sits BEHIND the question mark and follows it — light, but never a rectangular panel. */
.faq-art::before { content: ''; position: absolute; top: 10%; left: 50%; width: 72%; aspect-ratio: 1 / 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(23, 147, 255, 0.3), transparent 68%); filter: blur(14px); z-index: 0; pointer-events: none; }
.faq-q-img { position: relative; z-index: 1; }

.faq-q:hover { background: rgba(255, 255, 255, 0.03); }
.faq-item:hover { border-color: rgba(255, 255, 255, 0.18); }
.faq-item.is-open { border-color: rgba(23, 147, 255, 0.4); box-shadow: 0 0 0 1px rgba(23, 147, 255, 0.12), 0 18px 40px -26px rgba(23, 147, 255, 0.55); }

.faq-more { align-self: flex-start; margin-top: 14px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.03); transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.faq-more:hover { text-decoration: none; border-color: rgba(23, 147, 255, 0.5); background: rgba(23, 147, 255, 0.08); transform: translateY(-1px); }

@media (max-width: 820px) { .faq-art { position: relative; } }

/* Generous vertical space so the FAQ sits centred in its own section — clear of the wave above and below, the airy
   feel of the features. On /faq the title (page-head) already gives the top space, so the list starts sooner. */
.faq-sec { padding-top: 150px; padding-bottom: 170px; }
.faq-sec.faq-page { padding-top: 40px; }

/* Home FAQ fills a full viewport with its content centred, like the features deck — so you see the FAQ alone, not
   the footer. The /faq page keeps normal flow (title + list together), with room before the footer wave. */
.faq-sec { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; padding-bottom: 120px; }
.faq-sec.faq-page { min-height: 0; display: block; padding-top: 40px; padding-bottom: 150px; }

/* "See all questions" is a plain text link again — underline only on hover, no button chrome. */
.faq-more { align-self: flex-start; margin-top: 10px; padding: 8px 2px; border: 0; border-radius: 0; background: none; transform: none; }
.faq-more:hover { text-decoration: underline; border: 0; background: none; transform: none; }

/* Normalise the two menu-card characters by height (they have different aspect ratios). */
.mega-card img { width: auto; height: 46px; max-width: 70%; object-fit: contain; object-position: left bottom; }

/* 404 page: strip the top bar down to just the RobTic logo — no centre nav, no Sign in / Get started. */
body:has(.notfound) .nav-links,
body:has(.notfound) .nav-has-menu,
body:has(.notfound) .mega,
body:has(.notfound) .actions,
body:has(.notfound) .m-kebab { display: none !important; }

/* ---------- Mobile nav: the ⋮ button opens a slide-in sheet with the whole nav ---------- */
.m-kebab { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(7, 11, 20, 0.5); color: var(--text); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.m-kebab:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.05); }
.m-kebab svg { width: 22px; height: 22px; }

.m-nav { display: none; position: fixed; inset: 0; z-index: 60; }
.m-nav.is-open { display: block; }
.m-scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: rgba(4, 7, 14, 0.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); cursor: default; animation: m-fade 0.2s ease; }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
.m-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(360px, 86vw); overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 4px; padding: calc(var(--bar) + 10px) 16px 28px; background: linear-gradient(180deg, rgba(13, 21, 40, 0.98), rgba(9, 14, 26, 0.98)); border-left: 1px solid var(--line); box-shadow: -30px 0 70px -20px rgba(0, 0, 0, 0.7); animation: m-slide 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes m-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
.m-link { padding: 12px; border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--text); }
.m-link:hover, .m-link:active { background: rgba(255, 255, 255, 0.05); }
.m-group { margin: 4px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.m-group-h { margin: 6px 12px 2px; font-size: 15px; font-weight: 700; color: var(--text); }
.m-sub { margin-bottom: 2px; }
.m-sub-h { margin: 8px 12px 2px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.m-item { border-radius: 12px; } /* reuses .mega-item: the icon + title + description row, with the "Soon" badge */
@media (prefers-reduced-motion: reduce) { .m-scrim, .m-panel { animation: none; } }

/* ---------- Mobile FAQ: swap the one big question mark for a few small floating ones ---------- */
.faq-cluster { display: none; }
.fqm { animation: faq-float 6s ease-in-out infinite; filter: drop-shadow(0 16px 26px rgba(23, 147, 255, 0.4)); }

@media (max-width: 820px) {
    /* On phones the cards are full width, so the question marks live in the open bands ABOVE the heading and
       BELOW "See all" — never behind the cards (where they'd be clipped and look accidental). The home FAQ also
       drops its full-viewport centring here so the section isn't mostly empty scroll. */
    .faq-sec { position: relative; overflow: hidden; }
    .faq-sec:not(.faq-page) { min-height: 0; display: block; padding-top: 104px; padding-bottom: 112px; }
    /* The cluster spans the whole section (including the top/bottom padding bands); the text sits above it. The
       .wrap stays unpositioned so the absolute cluster anchors to the section, not the content box. */
    .faq-head, .faq-list { position: relative; z-index: 1; }
    .faq-art { display: none; } /* drop the single big image on phones */
    .faq-cluster { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
    .fqm { position: absolute; animation-duration: 7s; }
    /* Small, soft ambient accents: a pair in the top-left band above the heading... */
    .fqm-a { top: 22px; left: 10px; width: 52px; opacity: 0.5; animation-delay: 0s; }
    .fqm-b { top: 56px; left: 54px; width: 32px; opacity: 0.32; animation-delay: -2.2s; }
    /* ...and one in the bottom-right corner, in the band below "See all questions". */
    .fqm-c { right: 14px; bottom: 22px; width: 62px; opacity: 0.55; animation-delay: -4s; }
}

/* Settings → Connections: the small window that connects GitHub or Discord */
.st-popup { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; color: var(--muted, #9aa7be); font-size: 15px; }
.st-popup .st-popup-err { color: #ff8a95; max-width: 360px; margin: 0; }

/* Phones and touch screens: no frosted-glass blur on what stays on screen while scrolling (the bar, the floating
   buttons, the toast). The blur had to be redrawn on every scroll frame; a solid background reads the same. */
@media (max-width: 760px), (pointer: coarse) {
    .nav-links, .to-top, .sky-sound, .toast, .me-menu, .mega-in { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    .to-top, .sky-sound, .toast { background: rgba(11, 18, 34, 0.94); }
    .me-menu, .mega-in { background: rgba(11, 18, 34, 0.98); }
}
