:root {
  color-scheme: dark;
  --bg: #0a0f1d; --panel: #111a2e; --panel-2: #16223b; --line: #24314d;
  --fg: #e9edf5; --muted: #a3afc5; --accent: #5cb2ff; --primary: #2f6fdb; --rec: #d4363f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-wrap: anywhere; }
a { color: var(--accent); }
img, video, svg { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.doc { max-width: 780px; }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }

/* header, language switcher */
.top { border-bottom: 1px solid var(--line); background: rgba(10, 15, 29, .94); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--fg); text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--fg); }
.langs { position: relative; font-size: 15px; }
.langs summary { cursor: pointer; color: var(--accent); list-style: none; padding: 6px 2px; display: flex; align-items: center; gap: 6px; }
.langs .globe { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.langs .code { font-size: 13px; font-weight: 700; letter-spacing: .05em; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: " ▾"; }
.langs ul { position: absolute; right: 0; top: 100%; margin: 4px 0 0; padding: 6px 0; list-style: none; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; min-width: 180px; }
.langs li a { display: flex; align-items: center; gap: 12px; padding: 9px 16px; color: var(--fg); text-decoration: none; }
.langs li .code { color: var(--muted); width: 22px; font-size: 12px; }
.langs li a[aria-current] { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.langs li a:hover { background: var(--panel); }

/* home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 56px; }
.hero h1 { font-size: 54px; line-height: 1.05; margin: 0 0 6px; letter-spacing: -.02em; }
.hero .tagline { font-size: 25px; line-height: 1.3; color: var(--accent); margin: 0 0 20px; font-weight: 600; }
.hero .lead { font-size: 19px; margin: 0 0 28px; max-width: 34em; }
.hero .note { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.hero .shot img { border-radius: 18px; box-shadow: 0 24px 80px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badges a { display: block; line-height: 0; }
.badges img { height: 52px; width: auto; }
.badges a.windows { display: flex; align-items: center; gap: 7px; height: 52px; padding: 0 13px 0 9px; border: 1px solid #a6a6a6; border-radius: 9px; background: #000; color: #fff; text-decoration: none; line-height: 1.1; }
.badges a.windows:hover { border-color: #fff; }
.badges a.windows .pc { width: 24px; height: 24px; flex: none; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badges a.windows small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .06em; color: #d0d0d0; }
.badges a.windows strong { display: block; font-size: 19px; font-weight: 600; white-space: nowrap; }
section { padding: 56px 0; border-top: 1px solid var(--line); }
/* the Windows download only shows once its button (or the FAQ link) points the URL at #windows — no script */
#windows:not(:target) { display: none; }
#windows { scroll-margin-top: 112px; }   /* clears the sticky header, which wraps to ~105 px on a phone */
section h2 { font-size: 34px; line-height: 1.2; margin: 0 0 14px; letter-spacing: -.01em; }
section .intro { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 46em; }
.tap-demo { max-width: 760px; margin: 0 auto; }
.tap-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.cycle { display: grid; gap: 6px; }
.state { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.state.rec { border-left: 4px solid var(--rec); }
.state.frozen { border-left: 4px solid var(--primary); }
.state .head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.state .chip { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .04em; padding: 3px 10px; border-radius: 7px; }
.state .bar { flex: 1; height: 6px; border-radius: 3px; }
.state.rec .chip, .state.rec .bar { background: var(--rec); }
.state.frozen .chip, .state.frozen .bar { background: var(--primary); }
.state p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.turn { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; }
.turn .glyph { font-size: 24px; line-height: 1; color: var(--fg); }
.turn:not(.back) .glyph { transform: rotate(90deg); }
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mode { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; text-align: center; }
.mode h3 { margin: 12px 0 4px; font-size: 19px; color: var(--accent); letter-spacing: .02em; }
.mode p { margin: 0; color: var(--muted); }
.pict { width: 160px; margin: 0 auto; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pict .dot, .mini .dot { fill: var(--accent); stroke: none; }
.pict .fill, .mini .fill { fill: var(--accent); stroke: none; }
.highlights { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 24px; margin-top: 24px; }
.hl { display: flex; align-items: flex-start; gap: 14px; }
.hl .mini { width: 40px; height: 40px; margin-top: 2px; }
.hl p { margin: 0; color: var(--muted); }
.hl strong { color: var(--fg); }
.quickstart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 18px; }
.qs { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; }
.qs h3 { margin: 0 0 12px; font-size: 20px; }
.qs ol { margin: 0; padding: 0; list-style: none; counter-reset: qs; display: grid; gap: 12px; }
.qs li { display: flex; align-items: center; gap: 12px; counter-increment: qs; }
.qs li::before { content: counter(qs); color: var(--muted); font-weight: 700; width: 1em; }
.mini { width: 32px; height: 32px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.privacy { background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px; }
.privacy h2 { margin-bottom: 18px; }
.privacy ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.privacy li { position: relative; padding-left: 30px; }
.privacy li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #4cd07d; font-weight: 700; }
.privacy p { margin: 0; color: var(--muted); }
.media { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.media figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.media figcaption { padding: 10px 14px; color: var(--muted); font-size: 15px; }
.button { display: inline-block; background: var(--primary); color: #fff; text-decoration: none; padding: 12px 20px; border-radius: 10px; font-weight: 600; }
.hints { margin: 0 0 18px; padding-left: 20px; color: var(--muted); font-size: 15px; }
.hints li { margin: 4px 0; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.muted { color: var(--muted); }
.feedback { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.feedback p { margin: 0; color: var(--muted); max-width: 44em; }
.feedback .button { white-space: nowrap; }
.cta { text-align: center; }
.cta .badges { justify-content: center; }

/* text pages */
main.doc { padding-bottom: 40px; }
.doc h1 { font-size: 32px; line-height: 1.25; margin: 36px 0 8px; }
.doc h2 { font-size: 23px; margin: 36px 0 8px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc section.qa { padding: 0; border-top: 0; }
.doc .qa h2 { font-size: 21px; margin: 32px 0 6px; }
.doc .qa p { margin: 0; }
pre { background: var(--panel-2); padding: 12px; border-radius: 8px; overflow-x: auto; }
pre code { padding: 0; background: none; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; display: block; overflow-x: auto; }
th, td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; vertical-align: top; overflow-wrap: normal; }
blockquote { margin: 12px 0; padding: 4px 14px; border-left: 3px solid var(--accent); color: var(--muted); }

/* footer */
.bottom { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.bottom .wrap { padding-top: 20px; padding-bottom: 36px; }
.bottom p { margin: 0 0 8px; }
.bottom a { color: var(--muted); display: inline-block; padding: 4px 0; }
.bottom .legal { font-size: 12px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 42px; }
  .hero .tagline { font-size: 21px; }
  .modes, .quickstart, .highlights, .tap-layout { grid-template-columns: minmax(0, 1fr); }
  .tap-layout { gap: 20px; }
  .mode { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 14px; align-items: center; text-align: left; padding: 16px 18px; }
  .mode .pict { width: 96px; grid-row: 1 / span 2; }
  .mode h3 { margin: 0; align-self: end; font-size: 17px; }
  .mode p { align-self: start; }
  .privacy ul { grid-template-columns: 1fr; }
  section h2 { font-size: 28px; }
}

/* tap animation (generated by scripts/site_svg.py) */
.tap-demo { margin: 0; }
.tap-demo svg { width: 100%; height: auto; display: block; }
.tap-demo .phone { fill: #16223b; stroke: #2f4170; stroke-width: 2; }
.tap-demo .screen { fill: #05070d; }
.tap-demo .gym { stroke: #3a4a6e; stroke-width: 4; fill: none; stroke-linecap: round; }
.tap-demo .cable { stroke: #26324f; stroke-width: 2; fill: none; }
.tap-demo .bar { fill: #c9d3e6; stroke: #05070d; stroke-width: 2; }
.tap-demo .dock { fill: #111a2e; opacity: .92; }
.tap-demo .gymnast { stroke: #e9edf5; stroke-linecap: round; fill: none; }
.tap-demo .gymnast .arms { stroke-width: 6; }
.tap-demo .gymnast .torso { stroke-width: 12; }
.tap-demo .gymnast .legs { stroke-width: 8; }
.tap-demo .gymnast circle { fill: #e9edf5; stroke: #05070d; stroke-width: 2; }
.tap-demo .chip text, .tap-demo .lbl { font: 600 15px system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; fill: #fff; }
.tap-demo .lbl.muted { fill: #9aa6bd; font-weight: 500; }
.tap-demo .info { font: 500 14px system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; fill: #9aa6bd; }
.tap-demo .track { fill: #24314d; }
.tap-demo .rec-bar { fill: var(--rec); transform-box: fill-box; transform-origin: left center; }
.tap-demo .frozen-seg { fill: var(--primary); }
.tap-demo .frames { fill: url(#gp-frames); }
.tap-demo .slider-line { stroke: #3a4a6e; stroke-width: 6; stroke-linecap: round; }
.tap-demo .slider-fill { fill: var(--primary); transform-box: fill-box; transform-origin: left center; }
.tap-demo .handle { fill: var(--primary); stroke: #fff; stroke-width: 3; }
.tap-demo .ring { fill: none; stroke: #fff; stroke-width: 3; }
.tap-demo .finger { fill: #fff; }
@keyframes gp-swing { 0% { transform: rotate(180deg); animation-timing-function: ease-out; } 10% { transform: rotate(360deg); animation-timing-function: ease-in; } 20% { transform: rotate(540deg); animation-timing-function: ease-out; } 30% { transform: rotate(720deg); } 36% { transform: rotate(720deg); animation-timing-function: steps(18, end); } 62% { transform: rotate(630deg); } 75% { transform: rotate(630deg); } 75.01% { transform: rotate(450deg); animation-timing-function: ease-in; } 80% { transform: rotate(540deg); animation-timing-function: ease-out; } 90% { transform: rotate(720deg); animation-timing-function: ease-in; } 100% { transform: rotate(900deg); animation-timing-function: ease-out; } }
.tap-anim .swing { animation: gp-swing 8.0s linear infinite; transform-box: view-box; transform-origin: 320px 150px; }
@keyframes gp-live { 0.000% { opacity: 1; } 30.000% { opacity: 0; } 75.000% { opacity: 1; } 100.000% { opacity: 0; } }
@keyframes gp-frozen { 0.000% { opacity: 0; } 30.000% { opacity: 1; } 75.000% { opacity: 0; } 100.000% { opacity: 0; } }
.tap-anim .when-live { animation: gp-live 8.0s step-end infinite; }
.tap-anim .when-frozen { animation: gp-frozen 8.0s step-end infinite; }
@keyframes gp-rec { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tap-anim .rec-bar { animation: gp-rec 8.0s linear infinite; }
@keyframes gp-handle { 0% { transform: translateX(0); } 36.0% { transform: translateX(0); animation-timing-function: steps(18, end); } 62.0%, 100% { transform: translateX(-90px); } }
.tap-anim .handle-move { animation: gp-handle 8.0s linear infinite; }
@keyframes gp-fill { 0% { transform: scaleX(1); } 36.0% { transform: scaleX(1); animation-timing-function: steps(18, end); } 62.0%, 100% { transform: scaleX(0.7353); } }
.tap-anim .slider-fill { animation: gp-fill 8.0s linear infinite; }
@keyframes gp-tap { 0%, 26.0% { opacity: 0; transform: scale(.6); } 29.0% { opacity: 1; transform: scale(1); } 34.0% { opacity: 0; transform: scale(1.5); } 71.0% { opacity: 0; transform: scale(.6); } 74.0% { opacity: 1; transform: scale(1); } 79.0%, 100% { opacity: 0; transform: scale(1.5); } }
.tap-anim .tap { animation: gp-tap 8.0s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.tap-static { display: none; }
.tap-static .states { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; }
.tap-static figure { margin: 0; }
.tap-static .arrow { color: var(--muted); font-size: 28px; }
.tap-static figcaption { text-align: center; color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .tap-demo .tap-anim { display: none; }
  .tap-demo .tap-static { display: block; }
}
/* the track is 560 px wide in the viewBox; the frozen segment marks what was recorded before the tap */
