/* vectorapp.lol: one stylesheet for every page (inner pages: src/site.ts layout(); home page: public/site/home.html).
   The app's look (android/.../ui/Theme.kt): charcoal page, matte cards, solid logo-red buttons. Red is kept for actions. */
:root { --bg: #111116; --card: #17171d; --card-hi: #1c1c23; --line: #ffffff14; --line-hi: #ffffff2b; --text: #f3f3f5; --body: #c4c4cd; --muted: #93939e; --red: #e3121b; --red-hi: #ee1f28; --red-text: #ff8a91; --bezel: #09090c; --wrap: 1160px; }
* { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.6; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
h1, h2, h3, .hero-tag { text-wrap: balance; }
p, li { text-wrap: pretty; }
/* the side margins clear a notch or Dynamic Island when a phone is on its side */
.wrap, .page { position: relative; width: min(100% - 2 * max(20px, env(safe-area-inset-left), env(safe-area-inset-right)), var(--wrap)); margin-inline: auto; }
/* under the status bar (iOS): a solid colour Safari also tints its bar with */
.safe-top { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: env(safe-area-inset-top); background: var(--bg); pointer-events: none; }

/* ---- the bar across the top: logo, page links, Discord, language, Log in, Download ---- */
.nav { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); background: #111116d9; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
/* the wordmark reads left to right in every language */
.brand { display: inline-flex; align-items: baseline; direction: ltr; color: #d9d9e0; font-size: 27px; font-weight: 850; letter-spacing: -.075em; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
.brand-v { position: relative; z-index: 1; display: inline-block; width: 1.02em; height: .775em; margin-right: -.22em; vertical-align: -.01em; background: url(/site/v.png) center / contain no-repeat; }
.links { display: flex; gap: 2px; }
.links a { padding: 7px 12px; border-radius: 10px; color: #c4c4cd; font-size: 14px; font-weight: 550; transition: color .15s, background .15s; }
.links a:hover { color: #fff; background: #ffffff0a; }
.links a[aria-current] { color: #fff; background: #ffffff0f; }
.nav-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.nav-sep { width: 1px; height: 22px; margin: 0 6px; background: #ffffff1f; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--red); border-radius: 11px; background: #ffffff08; color: #fff; transition: background .15s; }
.icon-btn:hover { background: #ffffff14; }
.icon-btn svg { width: 20px; height: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 16px; border: 1px solid transparent; border-radius: 11px; background: var(--red); color: #fff; font: inherit; font-size: 14px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--red-hi); }
.btn.ghost { border-color: var(--line-hi); background: #ffffff08; }
.btn.ghost:hover { background: #ffffff12; }
.btn.plain { background: transparent; color: #d9d9e0; }
.btn.plain:hover { background: #ffffff0d; color: #fff; }
.btn.big { min-height: 48px; padding: 12px 22px; border-radius: 13px; font-size: 15px; }
.arr { flex: none; width: 16px; height: 16px; }
[dir="rtl"] .arr, [dir="rtl"] .f-go { transform: scaleX(-1); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--red-text); font-size: 15px; font-weight: 600; }
.text-link:hover { color: #ffb3b8; }

/* Log in: a panel under the button (home.js shows a refused login's reason in it) */
.top-pop { position: relative; }
.top-pop > summary { list-style: none; }
.top-pop > summary::-webkit-details-marker { display: none; }
.pop-panel { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 25; width: min(300px, calc(100vw - 28px)); max-height: calc(100vh - 74px); max-height: calc(100dvh - 74px); overflow-y: auto; padding: 18px; border: 1px solid var(--line-hi); border-radius: 16px; background: var(--card-hi); box-shadow: 0 24px 70px #0009; animation: pop .16s ease-out; }
.pop-panel h3 { margin: 0 0 12px; font-size: 15px; font-weight: 650; }
.pop-panel label { display: block; margin: 0 0 4px; color: #aaaab4; font-size: 12px; }
.pop-panel input { width: 100%; margin: 0 0 10px; padding: 10px 11px; border: 1px solid var(--line-hi); border-radius: 11px; background: #131318; color: var(--text); font: inherit; font-size: 16px; }
.pop-panel input:focus { outline: none; border-color: var(--red); }
.pop-panel button { width: 100%; padding: 10px; border: 0; border-radius: 11px; background: var(--red); color: #fff; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
.pop-panel button:hover { background: var(--red-hi); }
.pop-alt { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; padding: 9px; border: 1px solid #b196ff40; border-radius: 11px; background: #a68aff10; color: #d6caff; font-size: 13px; font-weight: 600; }
.pop-alt:hover { background: #a68aff1c; }
.pop-alt svg { width: 15px; height: 15px; }
.pop-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.pop-why { margin: -4px 0 12px; color: #ffc2c7; font-size: 13px; }
.pop-error { margin: 0 0 10px; padding: 8px 10px; border: 1px solid #ff455155; border-radius: 9px; background: #ed203018; color: #ffc2c7; font-size: 13px; }
.pop-error:empty { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
/* the language menu (src/i18n.ts langMenu): a flag button with a red rim, the languages in two columns under it */
.lang-pop { position: relative; }
.lang-pop > summary { list-style: none; display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 11px; border: 1px solid var(--red); border-radius: 11px; background: #ffffff08; color: #d9d9e0; font-size: 12px; font-weight: 600; cursor: pointer; }
.lang-pop > summary::-webkit-details-marker { display: none; }
.lang-pop > summary:hover { background: #ffffff12; }
.lang-pop .flag { flex: none; width: 20px; height: 13.33px; border-radius: 2px; box-shadow: 0 0 0 1px #ffffff1f; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 25; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; width: min(360px, calc(100vw - 28px)); max-height: min(70vh, 520px); overflow-y: auto; padding: 6px; border: 1px solid var(--line-hi); border-radius: 14px; background: var(--card-hi); box-shadow: 0 18px 50px #0008; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: #d9d9e0; font-size: 13px; white-space: nowrap; }
.lang-menu a:hover { background: #ffffff10; }
.lang-menu a[aria-current] { background: #3a0b0e; color: #ffdad6; }
/* phones: the page links move into a menu */
.menu-pop { display: none; position: relative; }
.menu-pop > summary { list-style: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-hi); border-radius: 11px; background: #ffffff08; cursor: pointer; }
.menu-pop > summary::-webkit-details-marker { display: none; }
.menu-pop > summary svg { width: 18px; height: 18px; }
.menu-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 25; display: grid; width: min(240px, calc(100vw - 28px)); padding: 6px; border: 1px solid var(--line-hi); border-radius: 14px; background: var(--card-hi); box-shadow: 0 18px 50px #0008; }
.menu-panel a { padding: 11px 12px; border-radius: 9px; font-size: 14px; font-weight: 550; }
.menu-panel a:hover { background: #ffffff10; }
/* signed in to the hub (nav.js): Log in gives way to a button into the hub */
.hub-btn { display: none; }
html.signed-in .hub-btn { display: inline-flex; }
html.signed-in .top-pop.login, html.signed-in .login-btn { display: none; }

/* ---- home page: hero, a soft glow behind the phone and nowhere else ---- */
.hero { position: relative; overflow: hidden; overflow: clip; }
.hero::before { content: ""; position: absolute; top: -12%; inset-inline-end: -4%; width: 58%; height: 118%; pointer-events: none; background: radial-gradient(closest-side, #e3121b24, transparent); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 56px 0 72px; }
.logo { position: relative; display: inline-block; direction: ltr; margin: 0 0 20px; padding-right: .075em; color: #d9d9e0; font-size: clamp(64px, 7.4vw, 96px); font-weight: 850; line-height: 1; letter-spacing: -.075em; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
/* the V is the app icon's (site/v.png); a background, so no long-press "save image" */
.logo-v { position: relative; z-index: 1; display: inline-block; width: 1.02em; height: .775em; margin-right: -.22em; vertical-align: -.01em; background: url(/site/v.png) center / contain no-repeat; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
/* over "ector" only (starts after the V: 1.02em - .22em) */
.logo-shine { opacity: .45; position: absolute; top: 0; bottom: 0; left: .8em; right: 0; padding-right: .075em; color: transparent; pointer-events: none; background: linear-gradient(110deg, transparent 35%, #ffffff30 44%, #fff 50%, #ffffff30 56%, transparent 65%); background-size: 250% 100%; background-position: var(--shine-position, 50%) 0; -webkit-background-clip: text; background-clip: text; }
.hero-tag { margin: 0 0 12px; max-width: 560px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.03em; }
.hero-lead { margin: 0 0 28px; max-width: 480px; color: #a8a8b3; font-size: 17px; line-height: 1.55; }
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.dl { display: flex; flex: 0 1 250px; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border: 1px solid transparent; border-radius: 14px; background: var(--red); color: #fff; transition: background .15s; }
.dl:hover { background: var(--red-hi); }
.dl-icon { width: 26px; height: 26px; flex: none; }
.dl-text { display: grid; gap: 1px; min-width: 0; }
.dl-text b { font-size: 15px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.dl-text small { color: #ffffffc9; font-size: 12px; line-height: 1.3; text-wrap: balance; }
/* one red button: Android on a computer and on Android (home.js sets data-platform), iOS on an iPhone or iPad */
.dl-android { order: -1; }
.dl-ios, html[data-platform="ios"] .dl-android { border-color: var(--line-hi); background: #ffffff0a; }
.dl-ios:hover, html[data-platform="ios"] .dl-android:hover { background: #ffffff14; }
.dl-ios small, html[data-platform="ios"] .dl-android small { color: var(--muted); }
html[data-platform="ios"] .dl-android { order: 0; }
html[data-platform="ios"] .dl-ios { order: -1; border-color: transparent; background: var(--red); }
html[data-platform="ios"] .dl-ios:hover { background: var(--red-hi); }
html[data-platform="ios"] .dl-ios small { color: #ffffffc9; }
.note { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
/* the hero's phone: site/media/hero.* once that file is there, until then the app's settings screen (src/modes.ts appShot) */
.app-frame { position: relative; justify-self: center; width: min(100%, 316px); padding: 8px; border-radius: 44px; background: var(--bezel); box-shadow: 0 0 0 1px var(--line-hi), 0 30px 80px #000a; }
.app-screen { position: relative; aspect-ratio: 9 / 19.5; overflow: hidden; border-radius: 36px; background: var(--bg); text-align: start; }
.app-frame .m-phone { padding: 10px; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 12.5px; }
.app-frame .m-phone::after { content: ""; position: absolute; inset: auto 0 0; height: 88px; background: linear-gradient(#11111600, var(--bg)); pointer-events: none; }
.app-frame .m-foot { display: none; }
.app-frame .m-sec summary { pointer-events: none; }
/* the hero's picture: the app's run overlay as it shows over the game (site/media/run-card.mp4, a sim run; it replaced
   the drawn phone 2026-11-20) */
.run-card { position: relative; z-index: 1; justify-self: center; display: block; width: min(100%, 440px); height: auto; aspect-ratio: 556 / 326; border-radius: 7.2% / 12.3%; background: #111116; box-shadow: 0 0 0 1px #ffffff0d, 0 30px 80px #000c, 0 0 120px #e3121b22; }
@media (max-width: 1000px) { .run-card { width: min(100%, 400px); } }

/* ---- home page: sections ---- */
.block { padding: 60px 0; }
.head { max-width: 660px; margin: 0 0 32px; }
.block h2 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }
.sub { margin: 10px 0 0; color: #a8a8b3; font-size: 17px; line-height: 1.55; }
.block .more { margin-top: 24px; }
.f-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.f-card { position: relative; display: block; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .15s, background .15s; }
.f-card:hover { border-color: var(--line-hi); background: var(--card-hi); }
.f-icon { display: block; width: 24px; height: 24px; margin-bottom: 14px; color: var(--red-text); }
.f-icon svg { display: block; width: 24px; height: 24px; }
.f-go { position: absolute; top: 22px; inset-inline-end: 20px; width: 18px; height: 18px; color: #6f6f7a; transition: color .15s; }
.f-card:hover .f-go { color: #fff; }
.f-card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
.f-card p { margin: 0; color: #a8a8b3; font-size: 14.5px; line-height: 1.55; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { padding-top: 16px; border-top: 1px solid var(--line-hi); }
.step::before { counter-increment: step; content: counter(step); display: block; margin-bottom: 8px; color: var(--red-text); font-size: 15px; font-weight: 700; }
.step h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-weight: 650; }
.step p { margin: 0; color: #a8a8b3; font-size: 14.5px; line-height: 1.55; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 56px; align-items: start; }
.faq-wrap .head { margin: 0; }
.faq-all { margin: 14px 0 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 16px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover::after { color: #fff; }
.faq p { margin: -4px 0 18px; max-width: 68ch; color: #a8a8b3; font-size: 15px; line-height: 1.6; }
.faq p a, .page p a, .page li a { color: #fff; text-decoration: underline; text-decoration-color: #ffffff59; text-underline-offset: 3px; }
.faq p a:hover, .page p a:hover, .page li a:hover { text-decoration-color: #fff; }
.cta-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.block .cta-band h2 { margin: 0 0 6px; font-size: clamp(24px, 2.8vw, 30px); }
.cta-band p { margin: 0; color: #a8a8b3; font-size: 15px; line-height: 1.5; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- pictures and videos of the app (src/site.ts SLOTS): a frame with a placeholder until the file is there ---- */
.gallery { display: grid; gap: 28px; }
.gallery-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; width: 100%; max-width: 800px; margin-inline: auto; }
.gallery-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.media { margin: 0; min-width: 0; }
.media-frame { background: var(--bezel); box-shadow: 0 0 0 1px var(--line-hi), 0 20px 50px #0007; }
.media.phone .media-frame { padding: 6px; border-radius: 32px; }
.media.phone .media-screen { aspect-ratio: 9 / 19.5; border-radius: 26px; }
.media.wide .media-frame { overflow: hidden; border-radius: 14px; }
.media-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.media-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ffffff1f; }
.media.wide .media-screen { aspect-ratio: 16 / 10; }
.media.big .media-screen { aspect-ratio: 16 / 9; }
.media-screen { overflow: hidden; background: var(--card); }
/* a real picture decides the frame's shape, so nothing gets cropped; only a very long capture is cut, at the bottom */
.media.phone .media-screen:has(> img, > video), .media.wide .media-screen:has(> img, > video), .app-screen:has(> img, > video) { aspect-ratio: auto; }
.media-screen > :is(img, video), .app-screen > :is(img, video) { display: block; width: 100%; height: auto; max-height: 820px; object-fit: cover; object-position: top; }
.media.wide .media-screen > :is(img, video) { max-height: 560px; }
.media.big .media-screen > :is(img, video) { max-height: 720px; }
/* holds the frame's place until the file has loaded, then the file's own shape wins */
.media.phone .media-screen > :is(img, video), .app-screen > :is(img, video) { aspect-ratio: auto 9 / 19.5; }
.media.wide .media-screen > :is(img, video) { aspect-ratio: auto 16 / 10; }
.media.big .media-screen > :is(img, video) { aspect-ratio: auto 16 / 9; }
.media-empty { display: grid; place-content: center; justify-items: center; gap: 10px; height: 100%; padding: 8px; }
.media-empty::before { content: ""; width: 42px; height: 32px; background: url(/site/v.png) center / contain no-repeat; opacity: .2; filter: grayscale(1); }
.media-empty span { color: var(--muted); font-size: 13px; text-align: center; }
.media figcaption { margin-top: 12px; color: #a8a8b3; font-size: 14px; line-height: 1.4; text-align: center; }

/* ---- plan cards (src/site.ts planCard), the same on the home page and Membership ---- */
.p-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.p-card { position: relative; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.p-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; min-height: 26px; }
.p-head h2, .page .p-head h2, .block .p-head h2 { margin: 0; font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: normal; }
.p-badge { padding: 2px 9px; border-radius: 100px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 650; line-height: 1.5; }
.p-price { margin: 12px 0 2px; color: #fff; font-size: 36px; font-weight: 750; line-height: 1.15; letter-spacing: -.035em; }
.p-price small { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.page .p-phones, .p-phones { margin: 4px 0 0; color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.4; }
.page .p-each, .p-each { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.p-btn { display: flex; align-items: center; justify-content: center; min-height: 42px; margin: 0 0 16px; padding: 9px 10px; border: 1px solid var(--line-hi); border-radius: 12px; background: #ffffff0a; color: #fff; font-size: 14px; font-weight: 650; text-align: center; transition: background .15s; }
a.p-btn:hover { background: #ffffff14; }
.p-btn.soon { color: var(--muted); cursor: default; }
.p-card ul { display: grid; gap: 8px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); list-style: none; }
.page .p-card li, .p-card li { position: relative; padding-inline-start: 20px; color: #b4b4be; font-size: 13.5px; line-height: 1.45; }
.p-card li::before, .ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 5px; width: 9px; height: 4.5px; border-left: 1.7px solid var(--red-text); border-bottom: 1.7px solid var(--red-text); transform: rotate(-45deg); }
.page .p-card li.all-modes, .p-card li.all-modes, .p-card.hot li:first-child, .p-card.plan-platinum li:first-child { color: #fff; font-weight: 600; }
.page .p-card li.all-modes a, .p-card li.all-modes a { color: #fff; text-decoration: underline; text-decoration-color: var(--red-text); text-underline-offset: 3px; }
.page .p-card li.all-modes a:hover, .p-card li.all-modes a:hover { color: var(--red-text); }
/* Gold in red, Platinum with a pale metal rim */
.p-card.hot { border-color: #e3121b99; background: linear-gradient(180deg, #e3121b14, transparent 45%), var(--card); }
.hot .p-btn:not(.soon) { border-color: transparent; background: var(--red); }
.hot a.p-btn:not(.soon):hover { background: var(--red-hi); }
.p-card.plan-platinum { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(140deg, #d8d8e0, #70707b 35%, #36363f 60%, #c9c9d2) border-box; }
.plan-platinum .p-badge { background: #e4e4ea; color: #111116; }

/* ---- inner pages ---- */
.page { padding: 56px 0 96px; }
.page h1 { margin: 0 0 12px; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.12; font-weight: 700; letter-spacing: -.035em; hyphens: auto; }
.page h2 { margin: 52px 0 14px; font-size: 22px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; }
.page h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.page p, .page li { color: var(--body); }
.page > p, .page > ul, .page > table { max-width: 72ch; }
.page .lead { margin: 0 0 32px; max-width: 62ch; color: #a8a8b3; font-size: 18px; line-height: 1.5; }
.page .muted { color: var(--muted); font-size: 14px; }
.page .updated { color: var(--muted); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.page .card h2, .page .card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: normal; }
.page .card p { margin: 0; color: #a8a8b3; font-size: 14.5px; line-height: 1.55; }
.page > .card { margin: 0 0 16px; }
a.card { display: block; transition: border-color .15s, background .15s; }
a.card:hover { border-color: var(--line-hi); background: var(--card-hi); }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; }
.page td, .page th { padding: 9px 6px; border-bottom: 1px solid var(--line); color: var(--body); text-align: start; }
.page .faq { max-width: 820px; margin-top: 28px; }
.page .faq p { color: #a8a8b3; }
.showcase { margin: 0 0 12px; }
.page > .gallery-phones, .page > .gallery-wide { margin-block: 20px 28px; }
.gallery-wide + .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.legal h2 { margin-top: 32px; font-size: 18px; }
.legal p, .legal li { font-size: 15px; }
.legal > ul { padding-inline-start: 20px; }
.legal li { margin: 6px 0; }
/* /modes/<id>: what it does, beside a still copy of the app's settings (src/modes.ts) */
.page .crumbs { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.page .crumbs a { color: var(--body); text-decoration: none; }
.page .crumbs a:hover { color: #fff; }
.mode-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.mode-split.solo { grid-template-columns: minmax(0, 1fr); max-width: 72ch; }
.mode-split h2:first-child { margin-top: 0; }
.ticks { margin: 0; padding: 0; list-style: none; }
.page .ticks li { position: relative; margin: 10px 0; padding-inline-start: 22px; }
.ticks li::before { top: .55em; }
.mode-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: #a8a8b3; font-size: 15px; font-weight: 550; }
.mode-nav a:hover { color: #fff; }

/* a still copy of the app's settings (src/modes.ts preview) */
.m-phone { padding: 12px; border: 1px solid var(--line-hi); border-radius: 28px; background: var(--bg); box-shadow: 0 20px 50px #0007; font-size: 13px; line-height: 1.4; }
.m-bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 10px; }
.m-logo { direction: ltr; color: #d9d9e0; font-size: 20px; font-weight: 850; letter-spacing: -.07em; }
.m-logo .brand-v { position: relative; z-index: 1; display: inline-block; width: 1.02em; height: .775em; margin-right: -.22em; vertical-align: -.01em; background: url(/site/v.png) center / contain no-repeat; }
.m-tab { padding: 4px 10px; border-radius: 10px; background: #3a0b0e; color: #ffdad6; font-size: 12px; font-weight: 600; }
.m-start { margin: 0 0 10px; padding: 10px; border-radius: 14px; background: var(--red); color: #fff; font-weight: 650; text-align: center; }
.m-sec { margin: 0 0 8px; border: 1px solid var(--line); border-radius: 16px; background: #ffffff0a; }
.m-sec[open] { border-color: #e3121b73; }
.m-sec summary { list-style: none; display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.m-sec summary::-webkit-details-marker { display: none; }
.m-sec summary::after { content: "›"; color: #a3a3ad; transition: transform .15s; }
.m-sec[open] summary::after { transform: rotate(90deg); }
[dir="rtl"] .m-sec[open] summary::after { transform: rotate(-90deg); }
.m-rows { padding: 0 14px 8px; }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; border-top: 1px solid #ffffff0d; }
.m-row.col { flex-direction: column; align-items: stretch; justify-content: center; padding: 8px 0; }
.m-row.off { opacity: .45; }
.m-label { color: #e6e6ea; line-height: 1.3; }
.m-sub { margin: 10px 0 2px; color: #a3a3ad; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.m-switch { flex: none; position: relative; width: 34px; height: 20px; border-radius: 20px; background: #30303a; }
.m-switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #a3a3ad; }
.m-switch.on { background: var(--red); }
.m-switch.on::after { inset-inline-start: 17px; background: #fff; }
.m-box, .m-drop { flex: none; max-width: 55%; overflow: hidden; padding: 4px 9px; border: 1px solid var(--line); border-radius: 10px; background: #16161c; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.m-box { min-width: 44px; text-align: center; }
.m-box.wide { min-width: 90px; text-align: start; }
.m-drop::after { content: " ▾"; color: #a3a3ad; }
.m-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.m-chip { padding: 3px 8px; border: 1px solid var(--line); border-radius: 9px; color: #a3a3ad; font-size: 11px; }
.m-chip.on { border-color: #e3121b73; background: #3a0b0e; color: #ffdad6; }
.page .m-foot { margin: 10px 4px 2px; color: var(--muted); font-size: 12px; }

/* ---- footer ---- */
.foot { padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot p { margin: 12px 0 0; max-width: 300px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.foot h4 { margin: 4px 0 10px; color: #d9d9e0; font-size: 14px; font-weight: 650; }
.foot nav { display: grid; gap: 2px; }
.foot nav a { padding: 4px 0; color: #a3a3ad; font-size: 14px; }
.foot nav a:hover { color: #fff; }

/* big negative tracking breaks joined scripts and looks cramped in these languages */
html:is(:lang(ar), :lang(hi), :lang(th), :lang(ko), :lang(ja), :lang(zh)) :is(h2, h3, .page h1, .hero-tag, .p-price) { letter-spacing: normal; }

/* "What it looks like" on a wide screen: the heading in its own column beside the phones, the hub's pictures under both */
@media (min-width: 1001px) {
  .screens .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 28px 32px; align-items: start; }
  .screens .head { margin: 0; }
  .screens .gallery { display: contents; }
  .screens .gallery-phones { max-width: none; gap: 24px; }
  .screens .gallery-wide { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .links, .nav-sep { display: none; }
  .menu-pop { display: block; }
  .hero::before { inset-inline-end: 0; width: 100%; height: 70%; top: auto; bottom: 0; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 40px 0 56px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-tag, .hero-lead { margin-inline: auto; }
  .dl-row { width: 100%; justify-content: center; }
  .dl { text-align: start; }
  .p-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .cta-band { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .mode-split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .mode-split .m-phone { width: 100%; max-width: 400px; margin-inline: auto; }
  .f-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* small tablets and phones on their side: the language menu hangs from the bar, so all of it stays on screen */
@media (min-width: 561px) and (max-width: 760px) {
  .lang-pop { position: static; }
  .lang-menu { top: calc(100% - 2px); inset-inline-end: 0; }
}
@media (max-width: 720px) {
  /* phones scroll sideways here; the page itself never does */
  .gallery-phones { display: flex; gap: 14px; width: auto; max-width: none; margin-inline: -20px; padding: 2px 20px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery-phones::-webkit-scrollbar { display: none; }
  .gallery-phones .media { flex: 0 0 min(64%, 240px); scroll-snap-align: center; }
  .gallery-wide { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .wrap, .page { width: calc(100% - 28px); }
  .nav .wrap { gap: 10px; height: 60px; }
  .icon-btn, .nav .dl-btn { display: none; }
  .brand { font-size: 24px; }
  .page { padding: 32px 0 64px; }
  .page .lead { font-size: 17px; }
  .lang-menu, .pop-panel { position: fixed; left: 14px; right: 14px; top: calc(64px + env(safe-area-inset-top)); width: auto; }
  .hero .wrap { padding: 28px 0 48px; }
  .dl { flex: 1 1 100%; }
  .block { padding: 52px 0; }
  .head { margin-bottom: 24px; }
  .gallery-phones { margin-inline: -14px; padding-inline: 14px; }
  .f-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .f-card { padding: 18px; }
  .f-go { top: 18px; inset-inline-end: 16px; }
  .p-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .p-card { padding: 18px; }
  .p-price { font-size: 32px; }
  .cta-band { padding: 24px 18px; }
  .cta-actions .btn { width: 100%; }
  .foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .lang-menu a { gap: 7px; padding-inline: 8px; }
  .lang-pop > summary span { display: none; }
  .nav-end { gap: 6px; }
  .brand { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo-shine { display: none; }
}

/* ---- the top bar's buttons, quieter (the user, 2026-11-20: "I don't like how the buttons at top look"): Download is
   the only red one; Discord (its own logo) and the language menu are plain icons that light up on hover; Log in and
   the phone menu get the same thin grey rim; all 36 px tall. Was a red rim on Discord and the flag. ---- */
.nav-end { gap: 6px; }
.nav-sep { display: none; }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #a8a8b3; transition: background .15s, color .15s; }
.icon-btn:hover { background: #ffffff0f; color: #5865f2; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn svg path { fill: currentColor; }
.lang-pop > summary { min-height: 36px; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: #a8a8b3; font-size: 13px; transition: background .15s, color .15s; }
.lang-pop > summary:hover, .lang-pop[open] > summary { background: #ffffff0f; color: #fff; }
.lang-pop > summary::after { content: ""; width: 6px; height: 6px; margin: -3px 1px 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); opacity: .8; }
.nav .btn { min-height: 36px; padding: 7px 15px; border-radius: 10px; }
.nav .login-btn, .nav .hub-btn, .nav .top-pop.login > summary { margin-inline-start: 4px; border-color: #ffffff24; color: #e8e8ee; }
.nav .login-btn:hover, .nav .hub-btn:hover, .nav .top-pop.login > summary:hover, .nav .top-pop.login[open] > summary { border-color: #ffffff3d; background: #ffffff0d; }
.menu-pop > summary { width: 36px; height: 36px; border-color: #ffffff24; border-radius: 10px; background: transparent; color: #e8e8ee; }
.menu-pop > summary:hover, .menu-pop[open] > summary { background: #ffffff0f; }

/* compact pass (2026-11-20, the user: "cleaner and more compact"): shorter top bar, tighter sections,
   smaller cards and slimmer drop-down menus. Last in the file so it wins over the rules above. */
.nav .wrap { height: 56px; gap: 22px; }
.block { padding: 44px 0; }
.block .more { margin-top: 18px; }
.f-grid, .p-grid { gap: 12px; }
.f-card, .p-card, .card { padding: 16px 18px; border-radius: 12px; }
.f-card h3, .p-head h2, .page .p-head h2, .block .p-head h2, .page .card h2, .page .card h3 { font-size: 16px; }
.f-card p, .page .card p { font-size: 14px; line-height: 1.5; }
.cta-band { padding: 24px 28px; border-radius: 14px; gap: 20px; }
.page { padding: 40px 0 72px; }
.page h2 { margin: 40px 0 10px; font-size: 20px; }
.page > .card { margin: 0 0 12px; }
.mode-nav { margin-top: 28px; padding-top: 14px; }
.foot { padding: 36px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot .wrap { gap: 24px; }
.pop-panel, .menu-panel, .lang-menu { top: calc(100% + 6px); border-radius: 12px; }
.pop-panel { padding: 14px; }
.pop-panel h3 { margin: 0 0 10px; }
.pop-panel input { padding: 8px 10px; border-radius: 9px; }
.pop-panel button { padding: 9px; border-radius: 9px; }
.menu-panel { padding: 4px; width: min(220px, calc(100vw - 28px)); }
.menu-panel a { padding: 8px 10px; border-radius: 7px; font-size: 13.5px; }
.lang-menu a { padding: 6px 9px; border-radius: 7px; }
@media (max-width: 760px) {
  .nav .wrap { height: 54px; }
  .block { padding: 32px 0; }
  .page { padding: 28px 0 56px; }
  .f-card, .p-card, .card { padding: 14px 16px; }
}
