/* ============================================================
   OpenBar — master stylesheet
   Organised as: tokens → base → helpers → components → sections
   Runtime-dynamic values (chosen accent, per-theme colours) are
   passed in from the markup as CSS custom properties:
     --ob-accent / --ob-bob   set on .page
     --swatch / --swatch-glow set on each theme swatch
     --active-color / --active-glow set on the theme preview
   ============================================================ */

/* ---------- design tokens ---------- */
:root{
  /* surfaces */
  --bg:#13161b;
  --surface:#16191f;            /* default card */
  --panel:linear-gradient(180deg,#181c22,#14171c);
  --popover:linear-gradient(180deg,#2b313a,#242a32);

  /* accent */
  --ob-accent:#ff9100;
  --ob-bob:obFloat 6s ease-in-out infinite;
  --on-accent:#1a1207;          /* text/icon on an accent fill */

  /* text */
  --text:#c5cad2;               /* body default */
  --heading:#f5f7fa;
  --bright:#f3f5f8;
  --soft:#e8eaed;
  --muted:#9aa1ab;
  --muted-2:#8a929d;
  --muted-3:#7c848f;
  --faint:#6b7480;
  --faint-2:#5b636e;
  --faint-3:#4d5560;

  /* lines / fills */
  --line:rgba(255,255,255,.07);
  --line-soft:rgba(255,255,255,.06);
  --line-strong:rgba(255,255,255,.1);
  --line-hover:rgba(255,255,255,.16);
  --line-glass:rgba(255,255,255,.08);
  --fill:rgba(40, 40, 40, 0.40);
  --shade:rgba(0,0,0,.25);
  --accent-line:rgba(255,145,0,.3);
  --accent-tint:rgba(255,145,0,.12);

  /* sample palette reused across the picker / clipboard mockups */
  --c-blue:#2A6FDB;
  --c-green:#1F8A5B;
  --c-pink:#E0457B;
  --c-purple:#7C5CFF;
  --c-paper:#f4f5f7;

  /* type */
  --font-sans:'Hanken Grotesk',system-ui,sans-serif;
  --font-mono:'JetBrains Mono',monospace;

  /* shadow shared by floating popovers */
  --shadow-popover:0 18px 44px -14px rgba(0,0,0,.7);
}

/* ---------- base ---------- */
*{box-sizing:border-box}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--font-sans);
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
::selection{background:rgba(255,145,0,.28);color:#fff}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}

/* smooth in-page navigation — disabled when the user prefers reduced motion */
@media (prefers-reduced-motion: no-preference){
  html{scroll-behavior:smooth}
}
/* keep anchored sections clear of the sticky navbar */
:where(header,section)[id]{scroll-margin-top:80px}

@keyframes obFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes obGlow{0%,100%{opacity:.4}50%{opacity:.85}}
@keyframes obPulse{0%,100%{box-shadow:0 0 0 0 rgba(255,145,0,.5)}70%{box-shadow:0 0 0 9px rgba(255,145,0,0)}}

/* ---------- layout helpers ---------- */
.page{position:relative}

/* glow layer clips the ambient glows (so they can't cause a horizontal
   scrollbar) without putting overflow on .page — overflow on .page would
   break the sticky navbar. */
.glows{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none}
.glow{position:absolute;pointer-events:none;z-index:0}
.glow--top{top:-260px;left:50%;transform:translateX(-50%);width:1100px;height:700px;
  background:radial-gradient(closest-side,rgba(255,145,0,.16),transparent 70%)}
.glow--blue{top:1600px;left:-200px;width:760px;height:760px;
  background:radial-gradient(closest-side,rgba(43,111,219,.10),transparent 70%)}

.section{position:relative;z-index:1;max-width:1080px;margin-inline:auto;padding:0 28px}
.section--wide{max-width:1120px}
.section--narrow{max-width:820px}
.mt18{margin-top:18px}.mt64{margin-top:64px}.mt90{margin-top:90px}
.mt130{margin-top:130px}.mt140{margin-top:140px}

/* shared text bits */
.accent{color:var(--ob-accent)}
.mono{font-family:var(--font-mono)}
.eyebrow{font-family:var(--font-mono);font-size:12px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ob-accent);margin-bottom:18px}
.eyebrow--16{margin-bottom:16px}

.h2{margin:0;font-size:42px;line-height:1.08;letter-spacing:-.02em;font-weight:800;
  color:var(--heading);text-wrap:balance}
.h2--44{font-size:44px;line-height:1.07;letter-spacing:-.025em}
.h2--40{font-size:40px}
.h2--34{font-size:34px;line-height:1.12}

.lead{font-size:17px;line-height:1.6;color:var(--muted);text-wrap:pretty}

/* checkmark + label row (the inline check svg keeps stroke="var(--ob-accent)") */
.check{display:flex;align-items:center;gap:9px;font-size:14.5px;color:var(--text)}
.check--lg{gap:10px;font-size:15px}

/* generic 42px rounded icon tile */
.tile{display:grid;place-items:center;width:42px;height:42px;border-radius:11px}
.tile--fill{background:var(--fill);color:#aab1bb}
.tile--accent{background:var(--ob-accent);color:var(--on-accent)}

/* app tool icons — sourced from assets/svg as masks so they inherit
   currentColor (active/inactive/accent states all keep working) */
.uicon{display:inline-block;width:20px;height:20px;flex:none;background:currentColor;
  -webkit-mask:var(--i) center/contain no-repeat;mask:var(--i) center/contain no-repeat}
.uicon--measure{--i:url(./assets/svg/ui-measure.svg)}
.uicon--color{--i:url(./assets/svg/ui-color_picker.svg)}
.uicon--capture{--i:url(./assets/svg/ui-image_capture.svg)}
.uicon--special{--i:url(./assets/svg/ui-special_char.svg)}
.uicon--clipboard{--i:url(./assets/svg/ui-clipboard.svg)}
.uicon--settings{--i:url(./assets/svg/ui-options.svg)}
/* per-context sizing / colour */
.feat__icon .uicon{width:21px;height:21px}
.scene__cp .cp-head .uicon{width:15px;height:15px;color:var(--ob-accent)}
.cb__row--accent .sw .uicon{width:14px;height:14px}
.flow__panel .dock .uicon{width:15px;height:15px}
.theme-preview .dock .uicon{width:18px;height:18px}

/* ---------- buttons ---------- */
.btn-primary{display:flex;align-items:center;justify-content:center;gap:9px;
  padding:14px 24px;border-radius:12px;background:var(--ob-accent);color:var(--on-accent);
  font-weight:700;font-size:16px;box-shadow:0 10px 30px rgba(255,145,0,.32);
  transition:transform .15s,box-shadow .15s}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 14px 36px rgba(255,145,0,.46)}
.btn-primary.sm{gap:8px;padding:9px 16px;border-radius:10px;font-size:14px;
  box-shadow:0 6px 18px rgba(255,145,0,.28)}
.btn-primary.sm:hover{transform:translateY(-1px);box-shadow:0 9px 24px rgba(255,145,0,.4)}
.btn-primary.lg{padding:15px 26px;box-shadow:0 12px 32px rgba(255,145,0,.36)}
.btn-primary.lg:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(255,145,0,.5)}

.btn-ghost{display:flex;align-items:center;gap:9px;padding:14px 22px;border-radius:12px;
  background:var(--fill);border:1px solid rgba(255,255,255,.2);color:var(--soft);
  font-weight:600;font-size:16px;transition:background .15s,border-color .15s}
.btn-ghost:hover{background:rgba(255,255,255,.3);border-color:rgba(255,255,255,.42)}
.btn-ghost.lg{padding:15px 24px}
.btn-ghost.lg:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.12)}

/* ---------- nav ---------- */
.nav{position:sticky;top:0;z-index:50;display:flex;align-items:center;
  justify-content:space-between;gap:24px;padding:14px 28px;
  background:rgba(19,22,27,.72);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-soft)}
.nav__brand{display:flex;align-items:center;gap:11px}
.nav__name{font-weight:700;font-size:18px;letter-spacing:-.01em;color:var(--bright)}
.nav__links{display:flex;align-items:center;gap:30px;font-size:14.5px;color:var(--muted)}
.nav__links a{transition:color .15s}
.nav__links a:hover{color:var(--bright)}

.logo{display:block;width:30px;height:30px;border-radius:9px;object-fit:cover;
  box-shadow:0 4px 12px rgba(0,0,0,.4)}

/* ---------- hero (full-height layered parallax) ---------- */
.hero-px{
  position:relative; z-index:1; isolation:isolate;
  width:100%; overflow:hidden;
  margin-top:calc(-1 * var(--nav-h));   /* tuck the hero full-bleed up under the sticky nav */
  background:#13161b;                    /* shows briefly while images load */

  /* --- runtime wiring (do not need to tweak) --- */
  --nav-h:60px;          /* approx navbar height the hero tucks under */
  --hero-scroll:0;       /* px scrolled into the hero — JS writes this every frame */
  --hpx-bg-zoom:1.4;     /* background over-scale = its parallax slack; raise if the bg shows an edge */

  /* ===== ADJUST PARALLAX MOVEMENT HERE — bigger = more lag / feels further away ===== */
  --speed-bg:0.10;                 /* layer 1 · background  */
  --speed-fg:-0.30;                 /* layer 2 · foreground  */
  --speed-shine:var(--speed-fg);   /* layer 3 · shine — moves WITH the foreground */
  --speed-text:-0.60;               /* layer 4 · header text */
}

.hpx-layer{position:absolute; inset:0; background-position:center; background-repeat:no-repeat;
  pointer-events:none; will-change:transform; backface-visibility:hidden}
/* crop the background's bottom to the foreground's bottom edge as the foreground
   parallaxes up — so the background never extends below the foreground. The clip
   lives on this non-transforming wrapper, so it stays in the hero's frame. */
.hpx-bg-clip{position:absolute; inset:0; z-index:1;
  clip-path:inset(0 0 calc(var(--hero-scroll) * var(--speed-fg) * -1px) 0)}
.hpx-bg{z-index:1; background-image:url(./images/homepage_hero-background.jpg); background-size:contain;
  transform:translate3d(0,calc(var(--hero-scroll) * var(--speed-bg) * 1px),0) scale(var(--hpx-bg-zoom))}
.hpx-fg{z-index:2; background-image:url(./images/homepage_hero-forground.png); background-size:cover;
  transform:translate3d(0,calc(var(--hero-scroll) * var(--speed-fg) * 1px),0)}
.hpx-shine{z-index:5; background-image:url(./images/homepage_hero-shine.png); background-size:cover;
  mix-blend-mode:screen; opacity:.15;
  transform:translate3d(0,calc(var(--hero-scroll) * var(--speed-shine) * 1px),0)}

/* video playing in the laptop screen. .hpx-screen is a cover-box that coincides
   with the foreground image (aspect-ratio + min-w/h:100% + centred), so it tracks
   the laptop under cover-scaling AND the foreground parallax. The video sits at the
   laptop-screen box (measured from the mask) and is clipped to the screen's exact
   shape by mapping the mask's green region onto the element. */
.hpx-screen{position:absolute; left:50%; top:50%; z-index:-1; pointer-events:none;
  aspect-ratio:1672 / 941; min-width:100%; min-height:100%;
  transform:translate(-50%,-50%) translate3d(0,calc(var(--hero-scroll) * var(--speed-fg) * 1px),0);
  will-change:transform}
.hpx-screen__vid{position:absolute; left:33.79%; top:50.69%; width:31.40%; height:32.63%;
  object-fit:cover; background:#05070b; transform-origin:0 0; backface-visibility:hidden;
  pointer-events:auto; cursor:pointer}
/* play affordance shown over the video centre while it's paused */
.hpx-playbtn{position:absolute; left:50%; top:67%; transform:translate(-50%,-50%); z-index:1;
  display:grid; place-items:center; width:54px; height:54px; border-radius:50%;
  background:rgba(13,15,19,.5); color:#fff; border:1px solid rgba(255,255,255,.28);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  pointer-events:none; opacity:0; transition:opacity .2s ease}
.hpx-playbtn svg{margin-left:3px}
.hpx-screen.is-paused .hpx-playbtn{opacity:1}

/* floating dust — canvas drawn above the image layers, below the text.
   width/height:100% are required: a <canvas> is a replaced element (intrinsic
   300x150), so inset:0 alone won't stretch it to fill the hero. */
.hpx-dust{position:absolute; inset:0; width:100%; height:90vh; z-index:3; display:block; pointer-events:none}
.hpx-content{position:relative; z-index:4; min-height:100svh; pointer-events:none;
  display:flex; flex-direction:column; align-items:center; text-align:center;
  padding:calc(var(--nav-h) + 25vh) 28px 2vh}
@supports not (min-height:100svh){ .hpx-content{min-height:100vh} }
.hpx-content::before{content:''; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(180deg, rgba(13,15,19,.6) 0%, rgba(13,15,19,0) 30%)}
/* badge + title move together as the header text layer */
.hpx-head{display:flex; flex-direction:column; align-items:center; gap:10px;
  transform:translate3d(0,calc(var(--hero-scroll) * var(--speed-text) * 1px),0); will-change:transform}
.hpx-badge{display:inline-flex; align-items:center; gap:9px; padding:6px 13px 6px 9px; border-radius:999px;
  background:rgba(13,15,19,.4); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.14); font-family:var(--font-mono); font-size:11.5px;
  letter-spacing:.12em; text-transform:uppercase; color:var(--text)}
.hpx-dot{width:7px; height:7px; border-radius:50%; background:var(--ob-accent);
  box-shadow:0 0 9px var(--ob-accent); animation:obGlow 2.4s ease-in-out infinite}
.hpx-title{margin:0; max-width:920px; font-weight:800; letter-spacing:-.03em; line-height:1.04;
  font-size:clamp(38px,7vw,72px); color:var(--heading); text-wrap:balance;
  text-shadow:0 2px 30px rgba(0,0,0,1)}
.hpx-bottom{margin-top:auto; display:flex; flex-direction:column; align-items:center; gap:22px; max-width:640px}
.hpx-copy{margin:0; font-size:clamp(16px,1.6vw,19px); line-height:1.55; color:var(--text);
  text-wrap:pretty; text-shadow:0 1px 16px rgba(0,0,0,1)}
.hpx-actions{display:flex; align-items:center; justify-content:center; gap:14px; flex-wrap:wrap}
.hpx-actions a{pointer-events:auto}
.hpx-note{display:flex; align-items:center; justify-content:center; gap:8px; font-size:13px;
  color:var(--muted-2); text-shadow:0 1px 12px rgba(0,0,0,.7)}
.hpx-note span{font-family:var(--font-mono); letter-spacing:.02em}

@media (prefers-reduced-motion: reduce){
  .hero-px{--speed-bg:0; --speed-fg:0; --speed-shine:0; --speed-text:0}
}

/* ---------- hero product scene ---------- */
.scene-wrap{position:relative;z-index:1;max-width:1080px;margin:18px auto 0;padding:0 28px}
.scene{position:relative;border-radius:20px;padding:1px;
  background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.02));
  box-shadow:0 40px 90px -30px rgba(0,0,0,.8)}
.scene__inner{position:relative;border-radius:19px;overflow:hidden;
  background:linear-gradient(180deg,#1c2129,#161a20)}
.scene__bar{display:flex;align-items:center;gap:8px;padding:13px 16px;
  border-bottom:1px solid rgba(255,255,255,.05);background:rgba(255,255,255,.015)}
.scene__bar .label{font-family:var(--font-mono);font-size:12px;color:var(--faint-2)}
.scene__winctl{margin-left:auto;display:flex;align-items:center;gap:2px;color:var(--faint)}
.scene__winctl span{display:grid;place-items:center;width:30px;height:22px;border-radius:5px}
.scene__canvas{position:relative;height:430px;background:
  radial-gradient(120% 80% at 80% 0%, rgba(43,111,219,.12), transparent 55%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.018) 0 2px, transparent 2px 22px),
  #11151b}
.scene__label{position:absolute;left:50%;top:24px;transform:translateX(-50%);
  font-family:var(--font-mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#3c444f}

/* canvas placeholder blocks */
.cv{position:absolute;border-radius:12px;border:1px solid var(--line-soft);background:rgba(255,255,255,.02)}
.cv--1{left:40px;top:40px;width:240px;height:130px}
.cv--2{left:40px;top:190px;width:150px;height:150px}
.cv--3{left:210px;top:190px;width:70px;height:70px;border-radius:50%;
  border-color:rgba(255,145,0,.25);background:rgba(255,145,0,.05)}
.cv--4{right:46px;top:60px;width:300px;height:260px;
  background:linear-gradient(160deg,rgba(255,255,255,.03),transparent)}

/* measurement marquee inside the scene */
.marquee{position:absolute;left:40px;top:40px;width:240px;height:130px;
  border:1.5px dashed var(--ob-accent);border-radius:4px;box-shadow:0 0 0 1px rgba(255,145,0,.15)}
.marquee__tag{position:absolute;left:50%;top:-13px;transform:translateX(-50%);padding:2px 7px;
  border-radius:5px;background:var(--ob-accent);color:var(--on-accent);font-family:var(--font-mono);
  font-size:11px;font-weight:600;white-space:nowrap}

/* floating color-picker popover inside the scene */
.scene__cp{position:absolute;right:90px;top:96px;width:226px;border-radius:14px;
  background:var(--popover);border:1px solid var(--line-strong);
  box-shadow:0 24px 60px -16px rgba(0,0,0,.75);padding:14px}
.scene__cp .cp-head{display:flex;align-items:center;gap:8px;margin-bottom:12px;
  font-size:13px;font-weight:600;color:var(--soft)}
.cp-wheel-wrap{display:flex;justify-content:center;margin-bottom:12px}
.cp-wheel{position:relative;width:118px;height:118px;border-radius:50%;border:3px solid #3a414c;
  box-shadow:0 8px 22px rgba(0,0,0,.55),inset 0 0 0 1px rgba(255,255,255,.06);overflow:hidden;
  background:linear-gradient(135deg,#ff9d2e,#ff6a3d 45%,#2A6FDB)}
.cp-wheel .net{position:absolute;inset:0;
  background-image:linear-gradient(rgba(0,0,0,.18) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(0,0,0,.18) 1px,transparent 1px);
  background-size:15px 15px}
.cp-wheel .pin{position:absolute;left:50%;top:50%;width:15px;height:15px;transform:translate(-50%,-50%);
  outline:2px solid #fff;box-shadow:0 0 0 1px #000}
.cp-readout{display:flex;align-items:center;gap:9px;padding:8px;border-radius:9px;background:var(--shade)}
.cp-readout .chip{width:26px;height:26px;border-radius:7px;background:var(--ob-accent);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.cp-readout .val{font-family:var(--font-mono);font-size:13px}
.cp-readout .val .hex{color:var(--bright);font-weight:600}
.cp-readout .val .rgb{color:var(--muted-3);font-size:11px}
.cp-readout svg{margin-left:auto}
.swatches{display:flex;gap:6px}
.swatches span{flex:1;border-radius:4px}
.scene__cp .swatches{margin-top:10px}
.scene__cp .swatches span{height:14px}

/* sample-colour fills */
.s-blue{background:var(--c-blue)}
.s-green{background:var(--c-green)}
.s-pink{background:var(--c-pink)}
.s-purple{background:var(--c-purple)}
.s-paper{background:var(--c-paper)}

/* the floating dock inside the scene */
.dock-wrap{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);
  animation:var(--ob-bob,obFloat 6s ease-in-out infinite)}
.dock-bar{display:flex;align-items:center;gap:4px;padding:8px;border-radius:16px;
  background:linear-gradient(180deg,#30363f,#22272e);border:1px solid var(--line-strong);
  box-shadow:0 22px 50px -12px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.1)}
.dock-grip{display:grid;place-items:center;width:26px;color:var(--faint-3)}
.dock-active{position:relative;box-shadow:0 6px 16px rgba(255,145,0,.4)}
.dock-opts{color:var(--muted-3)}
.dock-sep{width:1px;height:26px;background:var(--line-strong);margin:0 3px}
.dock-aot{position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);display:flex;
  align-items:center;gap:5px;padding:2px 8px;border-radius:999px;background:#1a1e24;
  border:1px solid var(--accent-line);font-family:var(--font-mono);font-size:9.5px;
  color:var(--ob-accent);animation:obPulse 2.6s infinite}
.dock-aot span{width:5px;height:5px;border-radius:50%;background:var(--ob-accent)}

/* ---------- stats strip ---------- */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;border-radius:16px;overflow:hidden;
  background:var(--line-soft);border:1px solid var(--line-soft)}
.stat{padding:26px 24px;background:var(--surface)}
.stat__num{font-family:var(--font-mono);font-size:34px;font-weight:600;color:var(--bright)}
.stat__num.accent{color:var(--ob-accent)}
.stat__label{margin-top:5px;font-size:13.5px;color:var(--muted-2)}

/* ---------- problem ---------- */
.problem__grid{display:grid;grid-template-columns:1.05fr .95fr;gap:54px;align-items:center}
.problem__copy p{margin:22px 0 0}
.problem__copy p+p{margin-top:18px}
.problem__cards{display:grid;gap:16px}
.mini-card{border-radius:16px;border:1px solid var(--line);background:var(--surface);padding:20px 22px}
.mini-card__head{font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--faint);margin-bottom:14px}
.steps{display:flex;flex-direction:column;gap:11px}
.steps .step{display:flex;align-items:center;gap:11px;color:var(--muted);font-size:14.5px}
.steps .n{width:22px;height:22px;border-radius:6px;background:var(--fill);color:var(--faint);
  display:grid;place-items:center;font-family:var(--font-mono);font-size:11px}
.mini-card--accent{border-color:var(--accent-line);
  background:linear-gradient(180deg,rgba(255,145,0,.09),rgba(255,145,0,.02))}
.mini-card--accent .mini-card__head{color:var(--ob-accent)}
.flowline{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:16px;font-weight:600;color:var(--bright)}
.flowline .pill{display:flex;align-items:center;gap:7px;padding:8px 13px;border-radius:9px;background:var(--shade)}
.flowline .pill--done{background:var(--ob-accent);color:var(--on-accent)}

/* ---------- features ---------- */
.features__head{text-align:center;max-width:720px;margin:0 auto}
.features__grid{display:grid;grid-template-columns:380px 1fr;gap:28px;margin-top:50px;align-items:start}
.feat-list{display:flex;flex-direction:column;gap:10px}
.feat{position:relative;overflow:hidden;text-align:left;display:flex;gap:14px;padding:18px;
  border-radius:14px;background:var(--surface);border:1px solid var(--line);transition:border-color .15s}
.feat:hover{border-color:var(--line-hover)}
.feat__bar{position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--ob-accent)}
.feat__sheen{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,145,0,.08),transparent 60%)}
.feat__icon{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:11px;
  background:var(--fill);color:var(--ob-accent)}
.feat__txt{position:relative}
.feat__title{display:block;font-size:16px;font-weight:700;color:var(--bright)}
.feat__desc{display:block;margin-top:3px;font-size:13.5px;color:var(--muted-2);line-height:1.4}

.stage{position:relative;min-height:430px;border-radius:20px;border:1px solid var(--line-glass);
  background:
   radial-gradient(120% 90% at 70% 0%, rgba(255,145,0,.08), transparent 55%),
   repeating-linear-gradient(135deg, rgba(255,255,255,.015) 0 2px, transparent 2px 22px),
   linear-gradient(180deg,#181c22,#14171c);
  overflow:hidden;display:grid;place-items:center;padding:36px}
.caption{margin-top:24px}
.caption p{margin:0;text-align:center;font-size:16px;color:var(--muted);max-width:680px;margin-inline:auto}

/* shared popover card used by the feature previews */
.card-popover{border-radius:16px;background:var(--popover);border:1px solid var(--line-strong);
  box-shadow:var(--shadow-popover);padding:18px}

/* popover card header (used by several preview cards) */
.head{display:flex;align-items:center;gap:8px;margin-bottom:14px;
  font-size:13px;font-weight:600;color:var(--soft)}
.head--between{justify-content:space-between}
.head .hint{font-family:var(--font-mono);font-size:11px;color:var(--faint)}

/* segmented toggle (units / capture modes) */
.seg{display:flex;gap:5px;padding:4px;border-radius:9px;background:rgba(0,0,0,.3)}
.seg span{flex:1;text-align:center;border-radius:6px;color:var(--muted);font-family:var(--font-mono);font-size:12px;padding:6px}
.seg span.on{background:var(--ob-accent);color:var(--on-accent);font-weight:600}

/* F0 measure preview */
.mz{display:flex;flex-direction:column;align-items:center;gap:22px}
.mz__rect{position:relative;width:300px;height:150px;border:1.5px dashed var(--ob-accent);border-radius:6px}
.mz__rect .tag{position:absolute;left:50%;top:-13px;transform:translateX(-50%);padding:3px 9px;
  border-radius:6px;background:var(--ob-accent);color:var(--on-accent);font-family:var(--font-mono);
  font-size:12px;font-weight:600}
.mz__rect .handle{position:absolute;right:-9px;top:-9px;width:14px;height:14px;border-radius:50%;
  background:#fff;border:3px solid var(--ob-accent)}
.mz__card{width:280px;border-radius:14px;background:var(--popover);border:1px solid var(--line-strong);
  box-shadow:var(--shadow-popover);padding:16px}
.mz__fields{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:12px}
.field{padding:10px 12px;border-radius:9px;background:var(--shade)}
.field .k{font-family:var(--font-mono);font-size:11px;color:var(--muted-3)}
.field .v{font-family:var(--font-mono);font-size:17px;color:var(--bright);font-weight:600}
.field .v u{font-size:11px;color:var(--muted-3);font-style:normal;text-decoration:none}

/* F1 colour preview */
.cp-card{width:260px;border-radius:16px;background:var(--popover);border:1px solid var(--line-strong);
  box-shadow:var(--shadow-popover);padding:18px}
.cp-card .cp-wheel-wrap{margin-bottom:14px}
.cp-card .cp-wheel{width:140px;height:140px}
.cp-card .cp-wheel .net{background-size:16px 16px}
.cp-card .cp-wheel .pin{width:16px;height:16px}
.cp-card .cp-readout{gap:10px;padding:10px;border-radius:10px;margin-bottom:9px}
.cp-card .cp-readout .chip{width:30px;height:30px;border-radius:8px}
.cp-card .cp-readout .hex{font-size:15px}
.cp-card .swatches span{height:16px;border-radius:5px}

/* F2 capture preview */
.cap{width:300px}
.cap__seg{margin-bottom:14px}
.cap__seg span{padding:7px;font-family:var(--font-sans);font-size:13px}
.cap__stage{position:relative;height:140px;border-radius:11px;border:1px solid var(--line-glass);
  background:repeating-linear-gradient(135deg,rgba(255,255,255,.03) 0 2px,transparent 2px 12px),#14171c;
  display:grid;place-items:center;margin-bottom:14px}
.cap__stage .ph{font-family:var(--font-mono);font-size:12px;color:var(--faint-2)}
.cap__stage .delay{position:absolute;top:9px;right:9px;display:flex;align-items:center;gap:5px;padding:3px 8px;
  border-radius:6px;background:rgba(0,0,0,.5);font-family:var(--font-mono);font-size:11px;color:var(--ob-accent)}
.cap__actions{display:flex;gap:9px}
.cap__actions span{flex:1;text-align:center;padding:11px;border-radius:9px;font-size:14px;font-weight:600}
.cap__actions .copy{background:var(--ob-accent);color:var(--on-accent)}
.cap__actions .save{background:var(--line-soft);color:var(--soft)}

/* F3 special chars preview */
.sp{width:300px}
.sp__tabs{display:flex;gap:7px;margin-bottom:14px;flex-wrap:wrap}
.sp__tabs span{padding:5px 11px;border-radius:999px;background:var(--fill);color:var(--muted);font-size:12px}
.sp__tabs span.on{background:var(--ob-accent);color:var(--on-accent);font-weight:600}
.sp__grid{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}
.sp__grid span{aspect-ratio:1;display:grid;place-items:center;border-radius:8px;background:var(--shade);
  color:var(--soft);font-size:18px}
.sp__grid span.on{background:var(--ob-accent);color:var(--on-accent)}

/* F4 clipboard preview */
.cb{width:300px;padding:16px}
.cb__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.cb__head .t{font-size:13px;font-weight:600;color:var(--soft)}
.cb__head .local{font-family:var(--font-mono);font-size:11px;color:var(--faint)}
.cb__list{display:flex;flex-direction:column;gap:8px}
.cb__row{display:flex;align-items:center;gap:11px;padding:10px;border-radius:10px;background:var(--shade)}
.cb__row .sw{width:26px;height:26px;border-radius:7px}
.cb__row .txt{flex:1;font-family:var(--font-mono);font-size:13px;color:var(--soft)}
.cb__row .txt--plain{font-family:var(--font-sans)}
.cb__row .glyph{display:grid;place-items:center;background:var(--line-soft);color:var(--muted);
  font-family:var(--font-mono);font-size:12px}
.cb__row .thumb{background:repeating-linear-gradient(135deg,rgba(255,255,255,.08) 0 2px,transparent 2px 6px),#1a1e24}
.cb__row--accent{background:rgba(255,145,0,.08);border:1px solid rgba(255,145,0,.25)}
.cb__row--accent .sw{background:rgba(255,145,0,.15);display:grid;place-items:center;color:var(--ob-accent)}
.cb__row--accent .txt{color:var(--bright)}

/* ---------- workflow / in your flow ---------- */
.split{display:grid;grid-template-columns:1fr 1fr;gap:54px;align-items:center}
.flow__sub{margin:22px 0 26px;font-size:17px;line-height:1.6;color:var(--muted);text-wrap:pretty}
.flow__checks{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.flow__panel{display:flex;flex-direction:column;align-items:center;gap:18px;border-radius:20px;
  border:1px solid var(--line-glass);background:var(--panel);padding:44px 28px}
.dock{display:flex;align-items:center;gap:6px;padding:7px 9px;border-radius:13px;
  background:linear-gradient(180deg,#30363f,#22272e);border:1px solid var(--line-strong);
  box-shadow:0 10px 24px rgba(0,0,0,.5)}
.dock span{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;color:var(--muted)}
.dock span.on{background:var(--ob-accent);color:var(--on-accent)}
.flow__pop{width:210px;border-radius:13px;background:var(--popover);border:1px solid var(--line-strong);
  box-shadow:0 16px 38px -12px rgba(0,0,0,.65);padding:14px}
.flow__pop .t{font-size:12.5px;font-weight:600;color:var(--soft);margin-bottom:10px}
.flow__pop .cells{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.flow__pop .cells span{height:30px;border-radius:7px;background:var(--shade)}
.flow__pop .cells span.on{background:var(--ob-accent)}
.kbd-row{display:flex;align-items:center;gap:7px;font-family:var(--font-mono);font-size:11.5px;color:var(--faint)}
kbd{padding:2px 7px;border-radius:5px;background:var(--line-soft);border:1px solid var(--line-strong);color:#aab1bb}
.kbd-row .gap{margin-left:4px}

/* ---------- privacy ---------- */
.privacy{border-radius:24px;border:1px solid var(--line-glass);
  background:radial-gradient(120% 120% at 0% 0%, rgba(255,145,0,.07), transparent 50%),var(--panel);
  padding:48px;display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.privacy h2{margin:0}
.privacy__sub{margin:22px 0 0;font-size:17px;line-height:1.6;color:var(--muted);text-wrap:pretty}
.privacy__checks{display:flex;flex-direction:column;gap:12px;margin-top:26px}
.privacy__art{display:grid;place-items:center}
.lockbox{position:relative;width:200px;height:160px;border-radius:18px;border:1px solid var(--line-strong);
  background:linear-gradient(180deg,#23282f,#1a1e24);display:grid;place-items:center;
  box-shadow:0 20px 50px -16px rgba(0,0,0,.6)}
.lockbox .net{position:absolute;inset:0;border-radius:18px;
  background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:20px 20px}
.lockbox .badge{position:relative;display:grid;place-items:center;width:72px;height:72px;border-radius:20px;
  background:var(--accent-tint);border:1px solid var(--accent-line);color:var(--ob-accent)}
.lockbox .tag{position:absolute;bottom:-11px;padding:3px 10px;border-radius:999px;background:var(--bg);
  border:1px solid var(--line-strong);font-family:var(--font-mono);font-size:10.5px;color:var(--muted-2)}

/* ---------- themes ---------- */
.themes__head{text-align:center;max-width:680px;margin:0 auto 44px}
.themes__head .lead{margin-top:20px}
.themes__head .lead .hl{color:var(--text)}
.themes__grid{display:grid;grid-template-columns:1fr 320px;gap:40px;align-items:center}
.swatch-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}
.swatch{position:relative;display:flex;align-items:center;gap:12px;padding:13px 15px;border-radius:13px;
  background:var(--surface);border:1px solid var(--line);transition:border-color .15s,background .15s}
.swatch:hover{border-color:rgba(255,255,255,.18)}
.swatch .dot{flex:none;width:26px;height:26px;border-radius:8px;background:var(--swatch);
  box-shadow:0 0 0 1px rgba(255,255,255,.12),0 4px 12px var(--swatch-glow)}
.swatch .name{font-size:14.5px;font-weight:600;color:var(--soft)}
.swatch .tick{margin-left:auto;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;
  background:var(--swatch);color:var(--bg)}
.theme-preview{display:flex;flex-direction:column;align-items:center;gap:16px;border-radius:20px;
  border:1px solid var(--line-glass);background:var(--panel);padding:40px 24px}
.theme-preview .name{font-family:var(--font-mono);font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--faint)}
.theme-preview .dock{gap:5px;padding:8px;border-radius:15px;box-shadow:0 16px 38px -12px rgba(0,0,0,.65)}
.theme-preview .dock span{width:38px;height:38px;border-radius:10px}
.theme-preview .dock span.on{color:var(--on-accent);background:var(--active-color);
  box-shadow:0 5px 14px var(--active-glow)}
/* the .uicon is itself a <span>, so `.dock span{color:var(--muted)}` targets it
   directly and would tint it grey — override it white on every active dock tile
   (themes preview + "In your flow") so the glyph reads against the accent. */
.dock span.on .uicon{color:#fff}
.theme-preview .dock span.off{background:var(--fill);color:#aab1bb}
.theme-preview .readout{width:100%;padding:12px;border-radius:11px;background:var(--shade);
  display:flex;align-items:center;gap:10px}
.theme-preview .readout .chip{width:24px;height:24px;border-radius:7px;background:var(--active-color)}
.theme-preview .readout .hex{font-family:var(--font-mono);font-size:13px;color:var(--soft)}

/* ---------- platform ---------- */
.platform__grid{display:grid;grid-template-columns:1fr 1.4fr;gap:48px;align-items:start}
.platform__grid .lead{margin:0 0 22px}
.platform__rows{display:flex;flex-direction:column;gap:10px}
.plat-row{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:12px;
  background:var(--surface);border:1px solid var(--line)}
.plat-row .ico{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;
  background:var(--accent-tint);color:var(--ob-accent)}
.plat-row .txt{font-size:15px;color:var(--soft)}
.plat-row .txt strong{color:var(--bright);font-weight:700}

/* ---------- faq ---------- */
.faq__head{text-align:center;margin-bottom:40px}
.faq__list{display:flex;flex-direction:column;gap:10px}
.faq-item{border-radius:14px;border:1px solid var(--line);background:var(--surface);overflow:hidden}
.faq-item__q{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:19px 22px;text-align:left}
.faq-item__q .q{font-size:16.5px;font-weight:600;color:var(--bright)}
.faq-item__q .sign{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:8px;
  background:var(--fill);color:var(--ob-accent);font-size:18px;font-weight:600;line-height:1;
  transition:transform .3s ease}
.faq-item[data-open="true"] .faq-item__q .sign{transform:rotate(45deg)}
/* answer expands via grid-template-rows 0fr -> 1fr (animates to natural height) */
.faq-item__a-wrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows .32s ease}
.faq-item[data-open="true"] .faq-item__a-wrap{grid-template-rows:1fr}
.faq-item__a{overflow:hidden;min-height:0;opacity:0;transition:opacity .25s ease}
.faq-item[data-open="true"] .faq-item__a{opacity:1}
.faq-item__a-in{padding:0 22px 21px;font-size:15.5px;line-height:1.6;color:var(--muted)}
@media (prefers-reduced-motion: reduce){
  .faq-item__a-wrap,.faq-item__a,.faq-item__q .sign{transition:none}
}

/* ---------- final cta ---------- */
.cta{position:relative;overflow:hidden;border-radius:24px;border:1px solid var(--accent-line);
  background:radial-gradient(120% 140% at 50% 0%, rgba(255,145,0,.16), transparent 55%),
            linear-gradient(180deg,#1c1d1e,#161719);
  padding:64px 40px;text-align:center}
.cta__glow{position:absolute;top:-160px;left:50%;transform:translateX(-50%);width:600px;height:360px;
  background:radial-gradient(closest-side,rgba(255,145,0,.22),transparent 70%);pointer-events:none}
.cta__inner{position:relative}
.cta__title{margin:0 auto;max-width:640px;font-size:48px;line-height:1.06;letter-spacing:-.025em;
  font-weight:800;color:#f7f8fa;text-wrap:balance}
.cta__sub{margin:20px auto 0;max-width:520px;font-size:18px;line-height:1.55;color:var(--muted)}
.cta__actions{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:34px}
.cta__note{margin-top:20px;font-family:var(--font-mono);font-size:12.5px;color:var(--faint)}

/* ---------- footer ---------- */
.footer{position:relative;z-index:1;max-width:1080px;margin:90px auto 0;padding:40px 28px 56px;
  border-top:1px solid var(--line-soft)}
.footer__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:32px}
.footer__brand{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.footer__logo{display:block;width:28px;height:28px;border-radius:8px;object-fit:cover}
.footer__name{font-weight:700;font-size:16px;color:var(--bright)}
.footer__about{margin:0;max-width:260px;font-size:13.5px;line-height:1.55;color:var(--faint)}
.footer__col .title{font-family:var(--font-mono);font-size:11px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--faint-2);margin-bottom:14px}
.footer__links{display:flex;flex-direction:column;gap:9px;font-size:14px;color:var(--muted)}
.footer__links a{transition:color .15s}
.footer__links a:hover{color:var(--bright)}
.footer__bar{margin-top:40px;padding-top:22px;border-top:1px solid rgba(255,255,255,.05);
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  font-family:var(--font-mono);font-size:12px;color:var(--faint-2)}

/* ---------- responsive ---------- */
@media (max-width:900px){
  .nav__links{display:none}
  .problem__grid,.split,.privacy,.platform__grid,.features__grid,.themes__grid{
    grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .flow__checks{grid-template-columns:1fr}
}
@media (max-width:560px){
  .h2,.h2--44,.h2--40{font-size:32px}
  .cta__title{font-size:34px}
  .privacy{padding:32px 22px}
  .footer__grid{grid-template-columns:1fr 1fr}
}

/* mobile hero: drop the parallax scene and STACK the content in normal flow.
   The video now lives inside .hpx-content (between the heading and the copy in the
   markup), so it simply flows between them — heading, video, copy/buttons — and
   nothing overlaps. All scoped to the breakpoint; desktop keeps the absolute
   laptop-screen video. */
@media (max-width:768px){
  .hpx-bg-clip, .hpx-fg, .hpx-shine, .hpx-dust{display:none}
  .hpx-content{justify-content:center; gap:5vh; padding:calc(var(--nav-h) + 5vh) 22px 8vh}
  .hpx-head{width:100%; transform:none}
  .hpx-screen{position:relative; left:auto; top:auto; z-index:auto; width:100%; max-width:540px;
    height:auto; min-width:0; min-height:0; aspect-ratio:auto; transform:none}
  .hpx-screen__vid{position:static; left:auto; top:auto; width:100%; height:auto;
    object-fit:contain; background:transparent; transform:none !important}
  .hpx-playbtn{top:50%; left:50%}
  .hpx-bottom{width:100%; margin-top:0}
}

/* ---------- static interactive states (vanilla JS, no runtime) ----------
   The homepage is plain HTML now; app.js toggles `.is-active` to switch the
   active feature, its stage panel, and caption. Inactive ones are hidden here. */
.feat:not(.is-active) .feat__bar,
.feat:not(.is-active) .feat__sheen{display:none}
.stage-panel{display:none}
.stage-panel.is-active{display:block}
.caption p:not(.is-active){display:none}

/* ---------- legal / EULA page ---------- */
.legal-back{font-size:14.5px;color:var(--muted);transition:color .15s}
.legal-back:hover{color:var(--bright)}
.legal{position:relative;z-index:1;max-width:780px;margin:0 auto;padding:60px 28px 8px}
.legal__head{padding-bottom:30px;margin-bottom:34px;border-bottom:1px solid var(--line)}
.legal__title{margin:12px 0 0;font-size:clamp(32px,5vw,44px);line-height:1.06;
  letter-spacing:-.02em;font-weight:800;color:var(--heading)}
.legal__meta{margin:14px 0 0;font-family:var(--font-mono);font-size:13px;letter-spacing:.02em;color:var(--muted-2)}
.legal__intro{margin:22px 0 0;font-size:16px;line-height:1.7;color:var(--muted);text-wrap:pretty}
.legal__notice{margin:0 0 36px;padding:16px 18px;border-radius:12px;
  border:1px solid var(--accent-line);background:var(--accent-tint);
  font-size:14.5px;line-height:1.6;color:var(--text)}
.legal__notice strong{color:var(--heading);font-weight:700}
.legal__body{display:flex;flex-direction:column;gap:28px}
.legal__sec h2{margin:0 0 12px;padding-bottom:10px;border-bottom:1px solid var(--line-soft);
  font-size:17px;font-weight:700;letter-spacing:-.01em;color:var(--bright)}
.legal__sec p{margin:0 0 12px;font-size:15.5px;line-height:1.7;color:var(--muted);text-wrap:pretty}
.legal__sec p:last-child{margin-bottom:0}
.legal__sec ul{margin:0 0 12px;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.legal__sec li{font-size:15.5px;line-height:1.6;color:var(--muted)}
.legal__closing{font-size:16px;line-height:1.7;color:var(--text);text-wrap:pretty}
.legal a{color:var(--ob-accent)}
.legal a:hover{text-decoration:underline}
.footer__about a{color:var(--ob-accent)}
.footer__about a:hover{text-decoration:underline}

/* ---------- documentation page ---------- */
.docs{position:relative;z-index:1;max-width:1080px;margin:0 auto;padding:54px 28px 8px;
  display:grid;grid-template-columns:228px 1fr;gap:54px;align-items:start}

/* sticky table of contents */
.docs__toc{position:sticky;top:96px;align-self:start}
.docs__toc-title{font-family:var(--font-mono);font-size:11px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--muted-3);margin:0 0 14px;padding-left:13px}
.docs__toc a{display:block;padding:7px 0 7px 13px;font-size:14px;line-height:1.35;
  color:var(--muted);border-left:2px solid var(--line);transition:color .15s,border-color .15s}
.docs__toc a:hover{color:var(--bright);border-left-color:var(--line-hover)}
.docs__toc a.is-active{color:var(--ob-accent);border-left-color:var(--ob-accent)}

/* main column */
.docs__main{min-width:0;max-width:760px}
.docs__head{padding-bottom:28px;margin-bottom:8px;border-bottom:1px solid var(--line)}
.docs__title{margin:12px 0 0;font-size:clamp(32px,5vw,46px);line-height:1.05;
  letter-spacing:-.02em;font-weight:800;color:var(--heading)}
.docs__meta{margin:14px 0 0;font-family:var(--font-mono);font-size:13px;letter-spacing:.02em;color:var(--muted-2)}
.docs__intro{margin:20px 0 0;font-size:16.5px;line-height:1.7;color:var(--muted);text-wrap:pretty}

.docs__sec{padding-top:48px;scroll-margin-top:88px}
.docs__sec h2{margin:0 0 16px;font-size:25px;font-weight:800;letter-spacing:-.02em;color:var(--heading)}
.docs__sec h3{margin:30px 0 10px;font-size:16.5px;font-weight:700;letter-spacing:-.01em;color:var(--bright)}
.docs__sec p{margin:0 0 13px;font-size:15.5px;line-height:1.72;color:var(--muted);text-wrap:pretty}
.docs__sec ul{margin:0 0 14px;padding-left:20px;display:flex;flex-direction:column;gap:9px}
.docs__sec li{font-size:15.5px;line-height:1.6;color:var(--muted)}
.docs__sec li strong,.docs__sec p strong{color:var(--soft);font-weight:600}
.docs__sec a{color:var(--ob-accent)}
.docs__sec a:hover{text-decoration:underline}
.docs__sec code{font-family:var(--font-mono);font-size:13px;background:var(--fill);
  border:1px solid var(--line);border-radius:5px;padding:1.5px 6px;color:var(--soft)}

/* tool header: real toolbar glyph + name */
.doc-tool{display:flex;align-items:center;gap:13px;margin:0 0 16px}
.doc-tool__icon{display:grid;place-items:center;width:42px;height:42px;flex:none;
  border-radius:11px;background:var(--accent-tint);border:1px solid var(--accent-line);color:var(--ob-accent)}
.doc-tool__icon svg{width:22px;height:22px;display:block}
.doc-tool h2{margin:0}
.doc-tool__key{margin-left:auto}

/* numbered steps */
.docs__steps{margin:4px 0 16px;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.docs__steps li{position:relative;padding-left:40px;font-size:15.5px;line-height:1.6;color:var(--muted)}
.docs__steps li::before{counter-increment:s;content:counter(s);position:absolute;left:0;top:-1px;
  width:26px;height:26px;display:grid;place-items:center;border-radius:50%;
  background:var(--fill);border:1px solid var(--line-strong);
  font-family:var(--font-mono);font-size:12px;color:var(--ob-accent)}
.docs__steps{counter-reset:s}

/* callout note */
.docs__note{margin:18px 0;padding:15px 17px;border-radius:12px;
  border:1px solid var(--accent-line);background:var(--accent-tint);
  font-size:14.5px;line-height:1.6;color:var(--text)}
.docs__note strong{color:var(--heading);font-weight:700}

/* keycaps */
kbd.key{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;
  padding:0 7px;border-radius:6px;background:var(--popover);border:1px solid var(--line-strong);
  box-shadow:0 1.5px 0 var(--shade);font-family:var(--font-mono);font-size:12.5px;
  font-weight:600;color:var(--soft);line-height:1}

/* shortcut table */
.sc-table{width:100%;border-collapse:collapse;margin:6px 0 8px}
.sc-table caption{caption-side:top;text-align:left;font-family:var(--font-mono);font-size:11px;
  letter-spacing:.13em;text-transform:uppercase;color:var(--muted-3);padding:18px 0 10px}
.sc-table td{padding:9px 12px 9px 0;border-bottom:1px solid var(--line-soft);
  font-size:14.5px;color:var(--muted);vertical-align:middle}
.sc-table td:first-child{width:120px;white-space:nowrap}
.sc-table tr:last-child td{border-bottom:none}

/* spec chips (units, formats) */
.chips{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 16px;padding:0;list-style:none}
.chips li{padding:6px 12px;border-radius:999px;background:var(--surface);
  border:1px solid var(--line);font-family:var(--font-mono);font-size:12.5px;color:var(--soft)}
.chips li.accent{border-color:var(--accent-line);background:var(--accent-tint);color:var(--ob-accent)}

/* theme swatches — each --c is the theme's real accent color from the app */
.theme-chips{margin:6px 0 16px;padding:0;list-style:none;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(208px,1fr));gap:10px}
.theme-chips li{display:flex;align-items:center;gap:11px;padding:11px 14px;
  border-radius:12px;background:var(--surface);border:1px solid var(--line)}
.theme-chips .dot{width:13px;height:13px;flex:none;border-radius:50%;
  background:var(--c);box-shadow:0 0 11px -1px var(--c),inset 0 0 0 1px rgba(255,255,255,.18)}
.theme-chips .nm{font-size:14px;font-weight:500;color:var(--soft)}
.theme-chips .hx{margin-left:auto;font-family:var(--font-mono);font-size:11.5px;color:var(--muted-3)}

/* ---------- trust & privacy page ---------- */
.pledge{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin:0 0 38px}
.pledge__card{padding:20px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.pledge__ico{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;margin-bottom:13px;
  background:var(--accent-tint);border:1px solid var(--accent-line);color:var(--ob-accent)}
.pledge__card h3{margin:0 0 6px;font-size:15.5px;font-weight:700;letter-spacing:-.01em;color:var(--bright)}
.pledge__card p{margin:0;font-size:14px;line-height:1.55;color:var(--muted)}

.trust-table{width:100%;border-collapse:collapse;margin:8px 0 6px}
.trust-table th{text-align:left;font-family:var(--font-mono);font-size:11px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted-3);font-weight:500;padding:0 16px 10px 0;border-bottom:1px solid var(--line)}
.trust-table td{padding:13px 16px 13px 0;border-bottom:1px solid var(--line-soft);
  font-size:14.5px;line-height:1.5;color:var(--muted);vertical-align:top}
.trust-table td:last-child,.trust-table th:last-child{padding-right:0}
.trust-table tr:last-child td{border-bottom:none}
.trust-table strong{color:var(--soft);font-weight:600}
.trust-table .tag{display:inline-block;font-family:var(--font-mono);font-size:11px;letter-spacing:.04em;
  padding:3px 9px;border-radius:999px;white-space:nowrap}
.trust-table .tag--local{color:#46c98b;background:rgba(70,201,139,.12);border:1px solid rgba(70,201,139,.3)}

@media (max-width:620px){
  .pledge{grid-template-columns:1fr}
}
.privacy__more{display:inline-flex;align-items:center;gap:8px;margin-top:24px;
  font-size:15px;font-weight:600;color:var(--ob-accent);transition:gap .15s}
.privacy__more:hover{gap:12px}

@media (max-width:860px){
  .docs{grid-template-columns:1fr;gap:0}
  .docs__toc{display:none}
}
