/* ==========================================================================
   Aprox — website stylesheet
   Terminal black and white with the LED green of the app icon as the only
   accent. Dark is the default; light follows the system or the theme toggle.
   ========================================================================== */

:root {
  --bg: #0a0b0d;
  --bg-2: #0f1114;
  --surface: #13161a;
  --surface-2: #191d22;
  --border: #23282f;
  --border-strong: #323941;
  --text: #ecefe9;
  --text-2: #a7b0ab;
  --text-3: #6f7a74;
  --accent: #5dcb7a;
  --accent-strong: #7fe39b;
  --accent-ink: #04140a;
  --accent-soft: rgba(93, 203, 122, .12);
  --accent-line: rgba(93, 203, 122, .35);
  --warn: #ff8a3d;
  --danger: #ff6b6b;
  --glow: 0 0 0 1px rgba(93, 203, 122, .25), 0 20px 80px -20px rgba(93, 203, 122, .35);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -24px rgba(0, 0, 0, .8);
  --grid-line: rgba(255, 255, 255, .035);
  --code-bg: #0d0f12;
  --header-bg: rgba(10, 11, 13, .72);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fbfbf9;
  --bg-2: #f3f4f1;
  --surface: #ffffff;
  --surface-2: #f4f5f2;
  --border: #e3e5e0;
  --border-strong: #cfd3cc;
  --text: #0b0d0c;
  --text-2: #3f4743;
  --text-3: #6c756f;
  --accent: #1f9d4a;
  --accent-strong: #167a39;
  --accent-ink: #ffffff;
  --accent-soft: rgba(31, 157, 74, .09);
  --accent-line: rgba(31, 157, 74, .35);
  --glow: 0 0 0 1px rgba(31, 157, 74, .18), 0 20px 60px -24px rgba(31, 157, 74, .25);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -22px rgba(0, 0, 0, .22);
  --grid-line: rgba(0, 0, 0, .045);
  --code-bg: #0b0d0c;
  --header-bg: rgba(251, 251, 249, .78);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbfbf9;
    --bg-2: #f3f4f1;
    --surface: #ffffff;
    --surface-2: #f4f5f2;
    --border: #e3e5e0;
    --border-strong: #cfd3cc;
    --text: #0b0d0c;
    --text-2: #3f4743;
    --text-3: #6c756f;
    --accent: #1f9d4a;
    --accent-strong: #167a39;
    --accent-ink: #ffffff;
    --accent-soft: rgba(31, 157, 74, .09);
    --accent-line: rgba(31, 157, 74, .35);
    --glow: 0 0 0 1px rgba(31, 157, 74, .18), 0 20px 60px -24px rgba(31, 157, 74, .25);
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -22px rgba(0, 0, 0, .22);
    --grid-line: rgba(0, 0, 0, .045);
    --code-bg: #0b0d0c;
    --header-bg: rgba(251, 251, 249, .78);
    color-scheme: light;
  }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-2); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Screenshots come in a light and a dark variant; only the one matching the
   active theme is displayed (and, being lazy, only that one is downloaded). */
.light-only { display: none !important; }
:root[data-theme="light"] .light-only { display: block !important; }
:root[data-theme="light"] .dark-only { display: none !important; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .light-only { display: block !important; }
  :root:not([data-theme="dark"]) .dark-only { display: none !important; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand .cursor {
  display: inline-block; width: .55em; height: 1.05em; margin-left: 2px;
  background: var(--accent); vertical-align: -.15em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .02em;
  color: var(--text-2); padding: 8px 12px; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"]::before { content: "> "; color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--border); background: transparent;
  color: var(--text-2); cursor: pointer; transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn .icon { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .i-moon { display: none; }
}
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 16px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s, transform .18s;
  }
  .nav a { font-size: 15px; padding: 12px 8px; }
  body.nav-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .header-actions .btn { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 11px;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 30px -10px var(--accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-3); background: var(--surface-2); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn .icon { width: 17px; height: 17px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px;
  border-radius: 12px; background: #000; color: #fff; border: 1px solid #3a3f45;
  transition: transform .15s, border-color .15s;
}
.store-badge:hover { transform: translateY(-1px); border-color: #6a737c; }
.store-badge svg { width: 26px; height: 26px; fill: #fff; stroke: none; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 11px; opacity: .8; letter-spacing: .01em; }
.store-badge strong { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Typography helpers ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--accent); text-transform: none;
}
.eyebrow::before { content: "$"; color: var(--text-3); }
.eyebrow.no-prompt::before { content: none; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pill a { color: var(--text); }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 14px; }
.section-head p { margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 75% 35%, var(--accent-soft), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.6vw, 80px); letter-spacing: -.045em; margin-top: 22px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin-top: 22px; font-size: clamp(18px, 1.8vw, 21px); color: var(--text-2); max-width: 560px; }
.hero .store-badges { margin-top: 34px; }
.hero .hero-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-3); }
.hero .hero-links a { color: var(--text-2); border-bottom: 1px dashed var(--border-strong); }
.hero .hero-links a:hover { color: var(--accent); border-color: var(--accent); }

.typed { font-family: var(--font-mono); color: var(--accent); }
.typed::after { content: "▍"; animation: blink 1.1s steps(1) infinite; margin-left: 2px; }

/* Hero stage: rotates through every device. Wide devices (tablets, Mac)
   start in the column and run off the right edge of the viewport. */
.hero-stage-wrap {
  --bleed: calc(max(0px, (100vw - var(--wrap)) / 2) + var(--gutter));
  --k: .9;
  position: relative; min-width: 0;
  margin-right: calc(-1 * var(--bleed));
}
.hero-stage { position: relative; height: calc(640px * var(--k)); }
.slide {
  position: absolute; top: 50%; left: 0; right: var(--bleed); margin: 0;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(28px, -50%) scale(.97);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .9s;
}
.slide.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(0, -50%);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}
.slide-ipad, .slide-android-tablet, .slide-mac { right: auto; justify-content: flex-start; left: calc(24px * var(--k)); }

.dev { position: relative; flex: none; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .95), var(--glow); }
.dev img { display: block; width: 100%; background: #000; }

/* iPhone: rounded titanium bezel and Dynamic Island */
.dev-iphone {
  width: calc(272px * var(--k)); padding: calc(9px * var(--k)); border-radius: calc(48px * var(--k));
  background: linear-gradient(150deg, #4a5059, #15181c 45%, #2c3137);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 1px #50565e, 0 50px 100px -40px rgba(0, 0, 0, .95), var(--glow);
}
.dev-iphone img { border-radius: calc(39px * var(--k)); aspect-ratio: 1320 / 2868; object-fit: cover; }
.dev-iphone::after {
  content: ""; position: absolute; left: 50%; top: calc(19px * var(--k)); transform: translateX(-50%);
  width: 31%; height: calc(24px * var(--k)); border-radius: 999px; background: #000;
}

/* Android phone: slim even bezel and punch-hole camera */
.dev-android {
  width: calc(288px * var(--k)); padding: calc(7px * var(--k)); border-radius: calc(36px * var(--k));
  background: linear-gradient(150deg, #33373d, #0d0f12 50%, #23272c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px #41464d, 0 50px 100px -40px rgba(0, 0, 0, .95), var(--glow);
}
.dev-android img { border-radius: calc(30px * var(--k)); aspect-ratio: 1080 / 1920; object-fit: cover; }
.dev-android::after {
  content: ""; position: absolute; left: 50%; top: calc(19px * var(--k)); transform: translateX(-50%);
  width: calc(12px * var(--k)); height: calc(12px * var(--k)); border-radius: 50%; background: #000;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .06);
}

/* iPad (landscape): even bezel, camera on the long edge */
.dev-ipad {
  width: calc(800px * var(--k)); padding: calc(17px * var(--k)); border-radius: calc(34px * var(--k));
  background: linear-gradient(150deg, #3f444b, #121417 50%, #262a30);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 0 0 1px #4a5058, 0 50px 100px -40px rgba(0, 0, 0, .95), var(--glow);
}
.dev-ipad img { border-radius: calc(18px * var(--k)); aspect-ratio: 4 / 3; object-fit: cover; object-position: left top; }
.dev-ipad::after {
  content: ""; position: absolute; left: 50%; top: calc(6px * var(--k)); transform: translateX(-50%);
  width: calc(6px * var(--k)); height: calc(6px * var(--k)); border-radius: 50%; background: #05070a;
}

/* Android tablet (landscape, 16:10) */
.dev-android-tablet {
  width: calc(880px * var(--k)); padding: calc(15px * var(--k)); border-radius: calc(26px * var(--k));
  background: linear-gradient(150deg, #383c42, #0f1114 50%, #24282d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 0 0 1px #454a51, 0 50px 100px -40px rgba(0, 0, 0, .95), var(--glow);
}
.dev-android-tablet img { border-radius: calc(12px * var(--k)); aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.dev-android-tablet::after {
  content: ""; position: absolute; left: 50%; top: calc(5px * var(--k)); transform: translateX(-50%);
  width: calc(6px * var(--k)); height: calc(6px * var(--k)); border-radius: 50%; background: #05070a;
}

/* Mac: MacBook display with notch, and the base */
.dev-mac { width: calc(900px * var(--k)); box-shadow: none; }
.dev-mac .screen {
  position: relative; padding: calc(13px * var(--k)) calc(13px * var(--k)) calc(15px * var(--k));
  border-radius: calc(20px * var(--k)) calc(20px * var(--k)) calc(4px * var(--k)) calc(4px * var(--k));
  background: #0b0c0e; box-shadow: 0 0 0 1px #3d434a, inset 0 0 0 1px rgba(255, 255, 255, .06), 0 50px 100px -40px rgba(0, 0, 0, .95), var(--glow);
}
.dev-mac .screen img { border-radius: calc(7px * var(--k)); aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.dev-mac .screen::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 1;
  width: calc(110px * var(--k)); height: calc(18px * var(--k)); border-radius: 0 0 calc(9px * var(--k)) calc(9px * var(--k)); background: #0b0c0e;
}
.dev-mac .base {
  position: relative; height: calc(18px * var(--k)); margin: 0 calc(-60px * var(--k));
  border-radius: calc(2px * var(--k)) calc(2px * var(--k)) calc(18px * var(--k)) calc(18px * var(--k));
  background: linear-gradient(#5b6168, #2c3035 55%, #16181b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.dev-mac .base::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: calc(140px * var(--k)); height: calc(7px * var(--k)); border-radius: 0 0 calc(8px * var(--k)) calc(8px * var(--k)); background: #1d2024;
}

/* Apple Watch: rounded rectangle case, Digital Crown and side button */
.dev-apple-watch {
  width: calc(250px * var(--k)); padding: calc(15px * var(--k)); border-radius: calc(64px * var(--k));
  background: linear-gradient(150deg, #55595f, #16181b 50%, #303439);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px #5a6067, 0 50px 100px -40px rgba(0, 0, 0, .95), var(--glow);
}
.dev-apple-watch img { border-radius: calc(50px * var(--k)); aspect-ratio: 422 / 514; object-fit: cover; }
.dev-apple-watch::before {
  content: ""; position: absolute; right: calc(-11px * var(--k)); top: 24%;
  width: calc(12px * var(--k)); height: calc(46px * var(--k)); border-radius: calc(4px * var(--k));
  background: repeating-linear-gradient(#6b7077 0 2px, #3c4045 2px 4px);
}
.dev-apple-watch::after {
  content: ""; position: absolute; right: calc(-6px * var(--k)); top: 52%;
  width: calc(6px * var(--k)); height: calc(60px * var(--k)); border-radius: calc(3px * var(--k)); background: #3c4045;
}

/* Pixel Watch: round dome with crown */
.dev-pixel-watch {
  width: calc(300px * var(--k)); padding: calc(20px * var(--k)); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a4f55, #121417 62%, #2b2f34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 1px #555b62, 0 50px 100px -40px rgba(0, 0, 0, .95), var(--glow);
}
.dev-pixel-watch img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
.dev-pixel-watch::after {
  content: ""; position: absolute; right: calc(-12px * var(--k)); top: 50%; transform: translateY(-50%);
  width: calc(14px * var(--k)); height: calc(36px * var(--k)); border-radius: calc(6px * var(--k));
  background: repeating-linear-gradient(#6b7077 0 2px, #3c4045 2px 4px);
}

/* Device switch under the stage */
.device-switch {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-right: var(--bleed);
  justify-content: center; position: relative; z-index: 2;
}
.device-switch button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3);
  transition: color .15s, border-color .15s, background .15s;
}
.device-switch button .icon { width: 15px; height: 15px; }
.device-switch button:hover { color: var(--text); border-color: var(--border-strong); }
.device-switch button[aria-selected="true"] { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.device-switch .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.device-switch button[aria-selected="true"] .bar { animation: device-progress var(--rotate-ms, 4800ms) linear forwards; }
.hero-stage-wrap.paused .device-switch .bar { animation-play-state: paused; }
@keyframes device-progress { to { width: 100%; } }

@media (max-width: 1180px) { .hero-stage-wrap { --k: .8; } }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-stage-wrap { --k: .78; margin-top: 8px; }
  .device-switch { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hero-stage-wrap { --k: .62; }
  .device-switch span { display: none; }
  .device-switch button { padding: 0 10px; }
  .device-switch button[aria-selected="true"] span { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active { transition: none; }
  .device-switch button[aria-selected="true"] .bar { animation: none; width: 100%; }
}

/* ---------- Device frames ---------- */

.device-phone {
  width: min(300px, 78vw);
  padding: 10px; border-radius: 48px;
  background: linear-gradient(160deg, #2b3036, #0d0f12 60%);
  box-shadow: 0 0 0 1px #3b4148, 0 40px 80px -30px rgba(0, 0, 0, .9), var(--glow);
}
.device-phone img { border-radius: 38px; width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; background: #000; }

.device-tablet {
  padding: 12px; border-radius: 30px;
  background: linear-gradient(160deg, #2b3036, #0d0f12 60%);
  box-shadow: 0 0 0 1px #3b4148, 0 40px 90px -30px rgba(0, 0, 0, .85);
}
.device-tablet img { border-radius: 19px; width: 100%; background: #000; }

.device-mac {
  border-radius: 14px; overflow: hidden; background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong), 0 40px 90px -30px rgba(0, 0, 0, .85);
}
.device-mac .bar { display: flex; gap: 7px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.device-mac .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4048; }
.device-mac .bar i:nth-child(1) { background: #ff5f57; }
.device-mac .bar i:nth-child(2) { background: #febc2e; }
.device-mac .bar i:nth-child(3) { background: #28c840; }

.device-watch {
  width: 190px; padding: 12px; border-radius: 52px;
  background: linear-gradient(160deg, #3a3f45, #121417 60%);
  box-shadow: 0 0 0 1px #4a5058, 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.device-watch img { border-radius: 40px; background: #000; }
.device-watch.round { width: 200px; border-radius: 50%; padding: 14px; }
.device-watch.round img { border-radius: 50%; }

/* ---------- Strip ---------- */

.logo-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.logo-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 22px; padding-bottom: 22px; }
.logo-strip .item { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-2); }
.logo-strip .item .icon { color: var(--accent); }

/* ---------- Feature grid (bento) ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > * { min-width: 0; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 21px; margin-top: 16px; }
.card p { margin-top: 10px; color: var(--text-2); font-size: 16px; }
.card .card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.card .card-icon .icon { width: 22px; height: 22px; }
.card ul.ticks { margin-top: 16px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.card.media-card { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding-bottom: 0; }
.card.media-card .shot { align-self: end; }
.card.media-card .shot > img { border-radius: 18px 18px 0 0; border: 1px solid var(--border-strong); border-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: var(--font-mono); font-size: 13.5px; color: var(--accent); }
.card .more:hover { text-decoration: underline; text-underline-offset: 3px; }
.card .more .icon { width: 15px; height: 15px; }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4, .span-6 { grid-column: span 2; }
  .card.media-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4, .span-6 { grid-column: span 1; }
}

ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
ul.ticks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; }
ul.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .42em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- Showcase (tabs with screenshots) ---------- */

.showcase { display: grid; grid-template-columns: 380px 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.showcase-tabs { display: grid; gap: 8px; }
.showcase-tab {
  text-align: left; background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  padding: 16px 18px; cursor: pointer; transition: background .15s, border-color .15s;
}
.showcase-tab strong { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.showcase-tab strong .icon { color: var(--text-3); }
.showcase-tab span { display: block; margin-top: 6px; color: var(--text-2); font-size: 15px; display: none; }
.showcase-tab:hover { background: var(--surface); }
.showcase-tab[aria-selected="true"] { background: var(--surface); border-color: var(--border-strong); }
.showcase-tab[aria-selected="true"] strong .icon { color: var(--accent); }
.showcase-tab[aria-selected="true"] span { display: block; }
.showcase-stage { display: flex; justify-content: center; }
.showcase-panel[hidden] { display: none; }
.showcase-panel { display: flex; justify-content: center; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
@media (max-width: 980px) {
  .showcase { grid-template-columns: 1fr; }
}

/* ---------- Terminal block ---------- */

.terminal {
  background: var(--code-bg); color: #d7f5df; border-radius: var(--radius-lg);
  border: 1px solid #22282f; box-shadow: var(--shadow); overflow: hidden;
  font-family: var(--font-mono); font-size: 14px; line-height: 1.75;
}
.terminal .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid #1c2127; color: #6f7a74; font-size: 12.5px; }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3037; }
.terminal .bar b { margin-left: 10px; font-weight: 500; }
.terminal pre { margin: 0; padding: 18px 20px 22px; overflow-x: auto; white-space: pre; }
.terminal .p { color: #5dcb7a; }
.terminal .c { color: #6f7a74; }
.terminal .w { color: #ffffff; }
.terminal .o { color: #ffb37a; }

/* ---------- Platforms ---------- */

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform { display: flex; flex-direction: column; }
.platform .shot { margin-top: 22px; display: flex; justify-content: center; align-items: flex-end; flex: 1; }
.platform .shot img { border-radius: 12px; border: 1px solid var(--border-strong); }
.platform .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  font-family: var(--font-mono); font-size: 12px; padding: 3px 9px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.tag.pro { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
@media (max-width: 980px) { .platforms { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 980px; margin: 0 auto; }
.plan { padding: 32px; }
.plan.featured { border-color: var(--accent-line); box-shadow: var(--glow); }
.plan .plan-name { font-family: var(--font-mono); font-size: 14px; color: var(--text-2); display: flex; align-items: center; gap: 10px; }
.plan .plan-price { font-size: 40px; font-weight: 700; letter-spacing: -.03em; margin-top: 12px; }
.plan .plan-price small { font-size: 16px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan > p { margin-top: 8px; color: var(--text-2); }
.plan ul.ticks { margin-top: 22px; }
.plan .btn { margin-top: 28px; width: 100%; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 22px; color: var(--accent); font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 22px; color: var(--text-2); }
.faq details > div p + p { margin-top: 10px; }
.faq details a { color: var(--accent); }

/* ---------- CTA ---------- */

.cta {
  position: relative; overflow: hidden; text-align: center;
  border: 1px solid var(--border-strong); border-radius: 28px;
  padding: clamp(44px, 7vw, 84px) clamp(20px, 5vw, 64px);
  background: radial-gradient(70% 90% at 50% 0%, var(--accent-soft), transparent 70%), var(--surface);
}
.cta h2 { font-size: clamp(30px, 4.4vw, 50px); }
.cta p { margin: 18px auto 0; max-width: 620px; color: var(--text-2); font-size: 18px; }
.cta .store-badges { justify-content: center; margin-top: 32px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 0; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: .04em; }
.footer-grid ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--text-2); font-size: 15px; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid .about p { margin-top: 14px; color: var(--text-2); font-size: 15px; max-width: 340px; }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 13.5px; color: var(--text-3);
}
.footer-bottom .mono { font-size: 12.5px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid .about { grid-column: 1 / -1; } }

/* ---------- Page header (inner pages) ---------- */

.page-hero { position: relative; padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 80% at 85% 0%, var(--accent-soft), transparent 70%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); margin-top: 14px; }
.page-hero p.lead { margin-top: 16px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 720px; }

/* ---------- Prose (legal pages and wiki articles) ---------- */

.prose { color: var(--text); font-size: 17px; line-height: 1.75; max-width: 760px; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: 28px; margin-top: 2.1em; padding-top: .2em; letter-spacing: -.02em; }
.prose h3 { font-size: 21px; margin-top: 1.8em; letter-spacing: -.015em; }
.prose h4 { font-size: 17px; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose strong { font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li > ul, .prose li > ol { margin-top: .4em; }
.prose ol { counter-reset: step; list-style: none; padding-left: 0; }
.prose ol > li { counter-increment: step; position: relative; padding-left: 42px; }
.prose ol > li::before {
  content: counter(step); position: absolute; left: 0; top: .12em;
  width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.prose ul > li::marker { color: var(--accent); }
.prose code {
  font-family: var(--font-mono); font-size: .88em; padding: .12em .4em; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.prose pre {
  background: var(--code-bg); color: #d7f5df; border: 1px solid #22282f; border-radius: var(--radius);
  padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.65;
}
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.prose img { border-radius: 14px; border: 1px solid var(--border-strong); margin-left: auto; margin-right: auto; }
.prose img { max-height: 720px; width: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { margin-top: 10px; text-align: center; color: var(--text-3); font-size: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: .03em; background: var(--surface-2); }
.prose blockquote {
  margin-left: 0; margin-right: 0; padding: 14px 18px 14px 18px;
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text-2);
}
.prose blockquote > * + * { margin-top: .6em; }
.prose blockquote strong:first-child { color: var(--text); }
.prose kbd {
  font-family: var(--font-mono); font-size: .82em; padding: .1em .45em; border-radius: 6px;
  border: 1px solid var(--border-strong); border-bottom-width: 2px; background: var(--surface);
}

/* Markdig alert blocks: > [!NOTE] / [!TIP] / [!IMPORTANT] / [!WARNING] / [!CAUTION] */
.prose .markdown-alert { margin-left: 0; padding: 14px 18px; border: 1px solid var(--border); border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--text-2); }
.prose .markdown-alert-title { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--accent); margin: 0 0 6px; }
.prose .markdown-alert-title svg { width: 15px; height: 15px; fill: currentColor; }
.prose .markdown-alert-warning, .prose .markdown-alert-caution { border-left-color: var(--warn); }
.prose .markdown-alert-warning .markdown-alert-title, .prose .markdown-alert-caution .markdown-alert-title { color: var(--warn); }

.container-page { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }

/* ---------- Wiki ---------- */

.wiki-search { position: relative; max-width: 640px; margin-top: 28px; }
.wiki-search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.wiki-search input {
  width: 100%; height: 56px; padding: 0 64px 0 50px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text);
  font-family: var(--font-mono); font-size: 15.5px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.wiki-search input::placeholder { color: var(--text-3); }
.wiki-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.wiki-search kbd {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
  border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 7px;
}
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6); max-height: min(60vh, 520px); overflow-y: auto; padding: 6px;
}
.search-results[hidden] { display: none; }
.search-results a { display: block; padding: 11px 14px; border-radius: 10px; }
.search-results a:hover, .search-results a.active { background: var(--surface-2); }
.search-results a strong { display: block; font-size: 15.5px; }
.search-results a span { display: block; color: var(--text-3); font-size: 13.5px; margin-top: 2px; }
.search-results a mark { background: var(--accent-soft); color: var(--accent); border-radius: 3px; padding: 0 2px; }
.search-results .empty { padding: 14px; color: var(--text-3); font-family: var(--font-mono); font-size: 14px; }

.wiki-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wiki-cat { display: flex; flex-direction: column; }
.wiki-cat h3 a:hover { color: var(--accent); }
.wiki-cat ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 2px; }
.wiki-cat ul a { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--text-2); font-size: 15.5px; }
.wiki-cat ul a::before { content: "›"; font-family: var(--font-mono); color: var(--text-3); }
.wiki-cat ul a:hover { color: var(--accent); }
.wiki-cat .count { margin-top: auto; padding-top: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-3); }
@media (max-width: 980px) { .wiki-cats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .wiki-cats { grid-template-columns: 1fr; } }

.wiki-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr) 220px; gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.wiki-layout.no-toc { grid-template-columns: 264px minmax(0, 1fr); }
.wiki-sidebar { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding: 4px 6px 24px 0; scrollbar-width: thin; }
.wiki-sidebar .wiki-search { margin: 0 0 18px; }
.wiki-sidebar .wiki-search input { height: 42px; font-size: 14px; padding-left: 40px; border-radius: 10px; padding-right: 12px; }
.wiki-sidebar .wiki-search .icon { left: 13px; width: 17px; height: 17px; }
.wiki-sidebar .wiki-search kbd { display: none; }
.wiki-nav-group + .wiki-nav-group { margin-top: 18px; }
.wiki-nav-group > a, .wiki-nav-group > span {
  display: flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: .04em; color: var(--text-3); padding: 4px 8px; text-transform: uppercase;
}
.wiki-nav-group > a:hover { color: var(--text); }
.wiki-nav-group ul { list-style: none; padding: 0; margin: 6px 0 0; border-left: 1px solid var(--border); margin-left: 8px; }
.wiki-nav-group li a {
  display: block; padding: 5px 10px 5px 14px; margin-left: -1px; border-left: 1px solid transparent;
  color: var(--text-2); font-size: 14.5px; line-height: 1.45;
}
.wiki-nav-group li a:hover { color: var(--text); border-left-color: var(--border-strong); }
.wiki-nav-group li a[aria-current="page"] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }

.wiki-toc { position: sticky; top: calc(var(--header-h) + 20px); font-size: 14px; }
.wiki-toc h4 { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }
.wiki-toc ul { list-style: none; padding: 0; margin: 12px 0 0; border-left: 1px solid var(--border); }
.wiki-toc a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-3); line-height: 1.4; }
.wiki-toc a.sub { padding-left: 26px; font-size: 13.5px; }
.wiki-toc a:hover { color: var(--text); }
.wiki-toc a.active { color: var(--accent); border-left-color: var(--accent); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .6; }

.article-head h1 { font-size: clamp(32px, 4.2vw, 46px); margin-top: 14px; }
.article-head .lead { margin-top: 14px; font-size: 19px; color: var(--text-2); max-width: 720px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.article-body { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--border); }

.article-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; max-width: 760px; }
.article-pager a { display: block; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .15s; }
.article-pager a:hover { border-color: var(--accent-line); }
.article-pager small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.article-pager strong { display: block; margin-top: 4px; font-size: 16px; }
.article-pager .next { text-align: right; grid-column: 2; }
.article-help { margin-top: 28px; max-width: 760px; padding: 18px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-2); font-size: 15px; }
.article-help a { color: var(--accent); }

.cat-articles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 900px; }
.cat-articles a { display: block; padding: 20px 22px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); transition: border-color .15s, transform .15s; }
.cat-articles a:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.cat-articles strong { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; }
.cat-articles span { display: block; margin-top: 6px; color: var(--text-2); font-size: 15px; }
@media (max-width: 760px) { .cat-articles { grid-template-columns: 1fr; } }

.wiki-mobile-nav { display: none; }
@media (max-width: 1180px) {
  .wiki-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .wiki-toc { display: none; }
}
@media (max-width: 860px) {
  .wiki-layout, .wiki-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
  .wiki-sidebar { position: static; max-height: none; overflow: visible; padding: 0; }
  .wiki-sidebar .wiki-nav { display: none; }
  .wiki-sidebar.open .wiki-nav { display: block; margin-top: 8px; }
  .wiki-mobile-nav { display: flex; width: 100%; justify-content: space-between; align-items: center; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-family: var(--font-mono); font-size: 14px; }
  .article-pager { grid-template-columns: 1fr; }
  .article-pager .next { grid-column: 1; }
}

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand .cursor, .typed::after { animation: none; }
}
