:root {
  --bg: #0b0d12;
  --surface: #141821;
  --border: #262c3d;
  --text: #f2f4f7;
  --muted: #98a2b6;
  --accent: #8c7cff;
  --accent-soft: #b3a6ff;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --border: #dde1ea;
    --text: #141821;
    --muted: #535c70;
    --accent: #6552e6;
    --accent-soft: #6552e6;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent-soft); }
.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 40px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.lang { color: var(--muted); font-size: 15px; }
h1 { font-size: clamp(28px, 6vw, 40px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 36px 0 8px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, li { color: var(--text); }
.lede { color: var(--muted); font-size: 19px; }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin: 24px 0; }
ul { padding-left: 22px; }
footer { border-top: 1px solid var(--border); margin-top: 56px; padding-top: 20px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }
.hero-logo svg { width: 96px; height: 110px; }
.cta { display: inline-block; margin-top: 8px; padding: 14px 22px; border-radius: 14px; background: var(--accent); color: var(--bg); font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: light) { .cta { color: #ffffff; } }

/* Cube diagrams take their greys from here, so one markup fits both schemes. */
:root { --tile: #1b2030; --off: #394155; --offline: #262c3d; }
@media (prefers-color-scheme: light) { :root { --tile: #eef0f6; --off: #c9cfdb; --offline: #dde1ea; } }
.sections { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
.sections a { color: var(--text); text-decoration: none; }
footer .lang { flex-basis: 100%; }
.crumbs { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.small { font-size: 14px; }
code { font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, monospace; }
.case-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.case-head h1 { margin-bottom: 4px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 24px 0; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.fact .label { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.fact .value { font-size: 18px; font-weight: 700; }
code.alg { display: block; font-size: 20px; margin: 4px 0; overflow-wrap: anywhere; }
ul.algs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
ul.algs code.alg { font-size: 17px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.case-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text); text-decoration: none; }
.case-tile:hover { border-color: var(--accent); }
.case-tile .case-name { font-weight: 700; }
.case-tile code { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.practice .cta { margin-top: 0; }
.card > h2:first-child { margin-top: 0; }

/* Ads (web/pages/ads.ts): fixed sizes, so nothing moves when an ad arrives or never does. Between
   sections on narrow screens; from 1440px (room beside the 760px column) one slot in a side column instead. Never on the landing,
   legal or support pages. */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 32px 0; }
.ad-label { width: 320px; max-width: 100%; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.ad ins { background: var(--surface); border-radius: 8px; overflow: hidden; }
.ad-inline ins { max-width: 100%; }
.ad-rail { display: none; }
.ad-rail .ad-label { width: 300px; }
@media (min-width: 1440px) {
  .ad-inline { display: none; }
  .ad-rail { display: flex; position: fixed; top: 112px; left: calc(50% + 404px); margin: 0; }
}

/* The landing (web/pages/landing.ts), dark only like the app. Sora and JetBrains Mono come as small
   Latin subsets (public/site-fonts); the page shows in the system font until they arrive. */
@font-face { font-family: "Sora"; font-weight: 400; font-display: swap; src: url(/site-fonts/sora-regular.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url(/site-fonts/sora-semibold.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url(/site-fonts/sora-bold.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url(/site-fonts/jetbrains-mono-bold.woff2) format("woff2"); }
body.landing {
  --bg: #0b0d12; --surface: #141821; --line: #1b2030; --border: #262c3d; --edge: #1f2433;
  --text: #eef1f6; --soft: #c9cfdb; --muted: #98a2b6; --faint: #7c8598;
  --accent: #8c7cff; --accent-soft: #b3a6ff; --accent-pale: #d4ccff;
  color-scheme: dark; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 Sora, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.landing a { color: var(--accent-soft); }
.landing a:hover { color: var(--accent-pale); }
.landing h1, .landing h2, .landing p, .landing ul { margin: 0; }
.landing ul { padding: 0; }
.landing h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -1px; line-height: 1.12; text-wrap: balance; }
.landing .i { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.l-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.l-wrap.narrow { max-width: 860px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent-soft); }
.l-top { border-bottom: 1px solid var(--line); }
.l-bar { display: flex; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.landing .brand { gap: 10px; color: var(--text); font-size: 18px; letter-spacing: -0.3px; }
.landing .brand:hover { color: var(--text); }
.landing .dojo { color: var(--accent); }
.l-nav { flex: 1; display: flex; gap: 4px; }
.l-nav a { height: 40px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-size: 15px; text-decoration: none; display: flex; align-items: center; }
.l-nav a:hover { color: var(--text); background: var(--line); }
.landing .btn { height: 40px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: var(--bg); font-size: 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.landing .btn:hover { background: var(--accent-soft); color: var(--bg); }
.btn .i { stroke-width: 2.4; }
.landing .btn-lg { height: 56px; padding: 0 26px; border-radius: 16px; font-size: 17px; }
.hero { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(36px, 4.4vw, 62px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.hero .lede { max-width: 580px; font-size: 19px; line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; font-size: 14px; color: var(--muted); }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.stores .badge { display: block; line-height: 0; }
.stores img { height: 48px; width: auto; }
.soon-label { flex-basis: 100%; font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.hero-shots { flex: 0 1 470px; min-width: 0; height: 600px; position: relative; display: flex; justify-content: center; }
.hero-shots .phone { position: absolute; }
.hero-shots .phone:first-child { left: 0; top: 56px; }
.hero-shots .phone:last-child { right: 0; top: 0; }
.phone { margin: 0; flex: none; width: 258px; max-width: 100%; padding: 8px; border-radius: 40px; background: var(--line); border: 1px solid var(--border); }
.phone img { display: block; width: 242px; max-width: 100%; height: auto; aspect-ratio: 242 / 523; border-radius: 32px; background: var(--bg); object-fit: cover; object-position: top; }
ul.numbers { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 24px; padding: 24px 28px; margin-bottom: 40px; border-radius: 24px; background: var(--surface); border: 1px solid var(--edge); }
.numbers li { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.numbers .n, .device-metric .value { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1.3; color: var(--text); font-variant-numeric: tabular-nums; }
.feature { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; justify-content: center; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.feature.rev { flex-direction: row-reverse; }
.feature-copy { flex: 1 1 420px; min-width: 0; max-width: 600px; display: flex; flex-direction: column; gap: 18px; }
.feature-copy > p { font-size: 17px; line-height: 1.6; color: var(--soft); text-wrap: pretty; }
.landing code { font-family: "JetBrains Mono", ui-monospace, monospace; color: var(--accent-pale); white-space: nowrap; }
ul.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--soft); }
.checks .i { margin-top: 3px; color: var(--accent); stroke-width: 2.6; }
.note { padding: 16px 18px; border-radius: 18px; background: #1a1838; border: 1px solid #2a2550; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.55; color: var(--soft); }
.note strong { color: var(--accent-pale); }
.belts { display: flex; flex-wrap: wrap; gap: 8px; }
.belts span { width: 48px; height: 12px; border-radius: 4px; display: flex; justify-content: center; overflow: hidden; }
.belts i { width: 10px; height: 12px; }
.belts .black { background: var(--bg); border: 1px solid #394155; justify-content: flex-end; }
.belts .black i { background: var(--accent); }
.more { align-self: flex-start; min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; text-decoration: none; }
.more .i { stroke-width: 2.4; }
.band { border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.band > .l-wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.band-head { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.band-head p { font-size: 17px; line-height: 1.6; color: var(--soft); }
ul.devices { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.device { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--edge); display: flex; flex-direction: column; gap: 14px; }
.device-head { display: flex; align-items: center; gap: 10px; }
.device-head .i { color: var(--accent-soft); }
.device-name { font-size: 15px; font-weight: 600; }
.device-kind { margin-left: auto; font-size: 12px; color: var(--muted); }
.device-metric { display: flex; flex-direction: column; gap: 2px; }
.device-metric .label { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.device-sync { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); }
.device-sync .i { color: var(--accent-soft); }
#faq > .l-wrap { gap: 20px; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { min-height: 64px; padding: 16px 0; display: flex; align-items: center; gap: 16px; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: 1; }
.faq summary .i { color: var(--muted); transition: transform 0.15s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 40px 20px 0; font-size: 16px; line-height: 1.6; color: var(--soft); }
.final { padding-bottom: 72px; }
.final-card { padding: 48px 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.final-card p { max-width: 520px; font-size: 17px; line-height: 1.55; color: var(--soft); }
.final-card .stores { justify-content: center; }
.final-card .soon-label { text-align: center; }
.l-foot { border-top: 1px solid var(--line); }
.l-foot > .l-wrap { padding-top: 48px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-brand p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.l-foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot-title { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.l-foot ul { list-style: none; padding: 0; }
.l-foot li a { min-height: 32px; display: flex; align-items: center; color: var(--soft); font-size: 15px; text-decoration: none; }
.l-foot li a:hover { color: var(--text); }
.foot-lang { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.foot-lang > span { display: flex; align-items: center; gap: 8px; margin-right: 8px; font-size: 14px; color: var(--muted); }
.foot-lang nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
.foot-lang nav a { min-height: 36px; padding: 0 12px; border-radius: 10px; color: var(--muted); font-size: 14px; text-decoration: none; display: flex; align-items: center; }
.foot-lang nav a[aria-current] { background: var(--line); color: var(--text); font-weight: 600; }
.foot-legal { padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; color: var(--faint); }
.landing :focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
@media (max-width: 760px) {
  .l-wrap { padding-left: 16px; padding-right: 16px; }
  .l-nav { display: none; }
  .l-bar { justify-content: space-between; }
}

/* The language suggestion (web/pages/lang-suggest.ts): fixed, so it moves nothing when it appears. */
.lang-suggest { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 10; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 32px); padding: 4px 4px 4px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); font-size: 15px; font-weight: 600; }
.lang-suggest a { color: var(--text); text-decoration: none; white-space: nowrap; }
.lang-suggest button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.lang-suggest button:hover { color: var(--text); background: var(--border); }
