:root {
  color-scheme: light dark;
  --ink: #1d1d1f; --muted: #5f6066; --bg: #ffffff; --soft: #f5f5f7; --line: #e3e3e8;
  --navy: #001943; --navy-2: #0a2457; --link: #0062c4; --accent: #5a2be0; --focus: #2997ff;
  --grad: linear-gradient(90deg, #00e9fa 0%, #008afa 30%, #2445ff 50%, #7020fc 72%, #b400fa 100%);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #f5f5f7; --muted: #a8a8ae; --bg: #000000; --soft: #111114; --line: #2a2a30; --link: #2997ff; --accent: #a98bff; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.skip { position: absolute; left: 16px; top: -48px; z-index: 20; padding: 8px 14px; border-radius: 8px;
  background: var(--bg); color: var(--ink); box-shadow: 0 0 0 2px var(--focus); }
.skip:focus { top: 8px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 8px 24px; padding: 12px max(16px, calc((100% - 1080px) / 2));
  background: var(--bg); background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line); }
.home { display: block; }
.logo { display: block; height: 32px; width: auto; }
nav { display: flex; flex-wrap: wrap; gap: 0 4px; font-size: 15px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); opacity: .78; }
nav a[aria-current="page"] { opacity: 1; font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }

/* Sections */
main { display: block; }
.hero { padding: 88px 16px 80px; text-align: center; }
.dark { background: var(--navy); color: #f5f5f7; }
.dark.niva { background: radial-gradient(120% 90% at 50% 0%, var(--navy-2) 0%, var(--navy) 60%); }
.dark a:not(.btn) { color: #8fcbff; }
.eyebrow { margin: 0 0 8px; font-size: 17px; font-weight: 600; background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, .big { margin: 0 auto 16px; max-width: 900px; font-size: clamp(36px, 6vw, 56px); line-height: 1.07;
  letter-spacing: -0.025em; font-weight: 700; }
.lead { margin: 0 auto 16px; font-size: clamp(19px, 2.6vw, 24px); font-weight: 600; letter-spacing: -0.01em; }
.sub { margin: 0 auto; max-width: 700px; font-size: 18px; color: #cdd2e6; }
.status-line { margin: 24px 0 0; font-size: 15px; color: #cdd2e6; }
.status-line.light-bg { margin: 0 0 12px; color: var(--muted); }
.badge { display: inline-block; margin-right: 8px; padding: 4px 12px; border-radius: 980px; font-size: 13px;
  font-weight: 600; letter-spacing: .01em; background: rgba(143, 203, 255, .16); color: #bfe2ff; }
.light-bg .badge { background: #ece8ff; color: #3d1fb0; }
@media (prefers-color-scheme: dark) { .light-bg .badge { background: #2a2050; color: #d5c8ff; } }
.actions { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.actions.left { justify-content: flex-start; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 980px;
  background: #0071e3; color: #fff; font-size: 16px; font-weight: 500; }
.btn:hover { background: #0077ed; text-decoration: none; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }

.band { max-width: 1080px; margin: 0 auto; padding: 72px 16px; }
.band.soft { max-width: none; background: var(--soft); padding-left: max(16px, calc((100% - 1080px) / 2));
  padding-right: max(16px, calc((100% - 1080px) / 2)); }
.band h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; text-align: center; }
.intro { max-width: 720px; margin: 0 auto 40px; text-align: center; font-size: 18px; color: var(--muted); }
.kicker { margin: 32px 0 0; text-align: center; font-size: 20px; font-weight: 600; }
.note { margin: 32px auto 0; max-width: 720px; text-align: center; font-size: 15px; color: var(--muted); }

/* Cards: equal heights, balanced columns */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid, .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.band:not(.soft) .card { background: var(--soft); border-color: transparent; }
.card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* Long-form text */
.prose { max-width: 760px; }
.prose h2 { text-align: left; font-size: clamp(26px, 3.4vw, 32px); margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 6px; font-size: 19px; }
.prose p, .prose li { color: var(--muted); }
.prose .kicker { text-align: left; color: var(--ink); }
.band.soft.prose > * { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Product */
.product { max-width: 760px; margin: 24px auto 0; background: var(--soft); border-radius: 24px; padding: 40px 36px; }
.product-name { margin: 0 0 4px; font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.02em; }
.lead-dark { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.product p { color: var(--muted); }
.product .lead-dark { color: var(--ink); }

/* Ecosystem diagram */
.figure { margin: 48px auto 0; max-width: 520px; text-align: center; }
.ecosystem { display: block; width: 100%; height: auto; }
.eco-people circle { fill: var(--accent); opacity: .75; }
.eco-label, .eco-muted { font-size: 14px; fill: var(--muted); font-family: inherit; }
.eco-on { font-size: 20px; font-weight: 700; fill: #fff; font-family: inherit; }
.eco-on.small { font-size: 13px; font-weight: 500; }
.eco-future { fill: none; stroke: var(--muted); stroke-opacity: .5; stroke-width: 2; stroke-dasharray: 6 6; }
.eco-link line { stroke: var(--muted); stroke-opacity: .4; stroke-width: 2; }
.eco-base { fill: var(--navy); }
.eco-base-t { font-size: 18px; font-weight: 700; fill: #fff; font-family: inherit; }
.eco-base-s { font-size: 13px; fill: #cdd2e6; font-family: inherit; }
@media (prefers-color-scheme: dark) { .eco-base { fill: #0a2457; } }
figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Privacy and account-deletion pages inside the site */
.legal h1 { font-size: clamp(30px, 5vw, 44px); text-align: left; margin: 0 0 8px; }
.legal .meta { font-size: 14px; }
.legal ul, .legal ol { color: var(--muted); padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal em { color: var(--ink); font-style: normal; font-weight: 600; }
.legal strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 16px 0 8px; }
.legal table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.legal th { color: var(--ink); font-weight: 600; }

/* Footer */
footer { text-align: center; padding: 40px 16px 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer p { margin: 8px 0; }
footer p a { display: inline-block; padding: 6px 2px; }
.foot-mark { display: block; margin: 0 auto 8px; height: 31px; width: auto; }
.foot-nav { justify-content: center; font-size: 14px; }
.foot-nav a { opacity: 1; color: var(--link); }
.tag { font-size: 17px; color: var(--ink); }

@media (max-width: 600px) {
  .hero { padding: 64px 16px 56px; }
  .band { padding: 56px 16px; }
  .sub, .intro { font-size: 17px; }
  .product { padding: 28px 20px; }
  nav a { padding: 0 8px; }
}

/* FAQ */
.faqs { max-width: 800px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-size: 18px; font-weight: 600;
  position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--muted); }
.faq[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.faq p { margin: 0 0 18px; color: var(--muted); font-size: 17px; line-height: 1.55; }

/* App store buttons */
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 160px; min-height: 52px;
  padding: 6px 18px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.35);
  font-size: 19px; font-weight: 600; line-height: 1.15; text-align: left; text-decoration: none; }
.store small { font-size: 11px; font-weight: 400; opacity: .85; }
.store.soon { opacity: .6; cursor: default; }
/* Languages */
.eyebrow.center { text-align: center; }
.lang-summary { max-width: 760px; margin: 0 auto 28px; text-align: center; font-size: 17px; }
.table-wrap { max-width: 860px; margin: 0 auto; overflow-x: auto; }
table.langs { width: 100%; border-collapse: collapse; font-size: 16px; }
table.langs caption { text-align: left; color: var(--muted); font-size: 14px; padding-bottom: 8px; }
table.langs th, table.langs td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.langs th { font-size: 14px; color: var(--muted); font-weight: 600; }
.native { color: var(--muted); }
.lstatus { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.lstatus.verified { background: #e3f6e8; color: #116329; }
.lstatus.testing { background: #fff4d6; color: #7a5200; }
.lstatus.experimental { background: #efe7ff; color: #5a2be0; }
.lstatus.planned { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.legend { max-width: 860px; margin: 14px auto 0; font-size: 14px; color: var(--muted); }
@media (prefers-color-scheme: dark) {
  .lstatus.verified { background: #0f3a1d; color: #8ee6a8; }
  .lstatus.testing { background: #3a2d05; color: #ffd66b; }
}

/* Beta tester portal */
.bt-card { max-width: 760px; margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.bt-card label, .bt-field label { display: block; font-weight: 600; margin: 0 0 6px; font-size: 15px; }
.bt-card input, .bt-card select, .bt-card textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: var(--bg); color: var(--ink); }
.bt-card textarea { min-height: 88px; }
.bt-card .btn { margin-top: 14px; }
.bt-field { margin-bottom: 16px; }
.bt-msg { min-height: 1.4em; color: var(--muted); }
.bt-who { font-weight: 600; }
.bt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bt-tabs button { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--soft);
  color: var(--ink); font: inherit; cursor: pointer; }
.bt-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
