/* Abo Fles site — tokens from marketing/brand/DESIGN.md (one design system for every channel) */
:root {
  --bg: #0E0D0C;
  --surface: #1A1917;
  --surface2: #232120;
  --line: #34312E;
  --text: #F4F1EC;
  --muted: #A39D94;
  --dim: #6E6962;
  --gold: #F2B544;
  --gold-ink: #1A1917;
  --haiku: #2CC4B5;
  --sonnet: #9C83F5;
  --opus: #E8875A;
  --fable: #F2B544;
  --green: #6FD181;
  --yellow: #F0CF4A;
  --orange: #EE8A45;
  --red: #F06A60;
  --paper: #F4EFE6;
  --paper-deep: #E7DFD2;
  --ink: #1A1917;
  --saved: #1F9D55;

  --head: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --body: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ar: 'IBM Plex Sans Arabic', 'Geist', system-ui, sans-serif;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px;
}
::selection { background: var(--gold); color: var(--gold-ink); }
code, kbd, pre { font-family: var(--mono); }
:not(pre) > code {
  font-size: .88em; background: var(--surface2); border: 1px solid var(--line);
  padding: .08em .4em; border-radius: 6px; color: var(--text); white-space: nowrap;
}
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { left: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(42px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.gold { color: var(--gold); }
.lede { color: var(--muted); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; max-width: 60ch; }
.eyebrow { font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: 38px; }
.brand b { font: 800 20px/1 var(--head); letter-spacing: -0.03em; }
.brand span { font: 700 15px/1 'Marhey', var(--ar); color: var(--gold); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .ar { font-family: var(--ar); }
.gh { display: inline-flex; align-items: center; gap: 8px; }
.gh svg { width: 18px; height: 18px; }
.menu-btn { display: none; background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }
@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--surface2); border-radius: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 8px 30px -10px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn-gold:hover { background: #F6C35F; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn svg { width: 18px; height: 18px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- install / code block ---------- */
.cmd {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px 8px 8px 18px; font: 500 15px/1.4 var(--mono); max-width: 100%; text-align: left;
}
.cmd code { background: none; border: 0; padding: 0; white-space: pre; overflow-x: auto; flex: 1; color: var(--text); scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd .p { color: var(--gold); user-select: none; }
.copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px;
  background: var(--surface2); color: var(--muted); border: 1px solid var(--line); border-radius: 10px;
  font: 600 13px/1 var(--body); cursor: pointer; transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--text); border-color: var(--muted); }
.copy.done { color: var(--green); border-color: color-mix(in srgb, var(--green) 50%, var(--line)); }
.copy svg { width: 15px; height: 15px; }
pre.block {
  position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; overflow-x: auto; font-size: 14.5px; line-height: 1.65; color: var(--text);
}
pre.block .copy { position: absolute; top: 10px; right: 10px; }
.cmt { color: var(--dim); }

/* ---------- sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px;
  font-size: 14px; color: var(--muted); transition: border-color .2s;
}
.pill:hover { border-color: var(--gold); color: var(--text); }
.pill b { background: var(--gold); color: var(--gold-ink); border-radius: 999px; padding: 4px 10px; font: 700 12px/1 var(--mono); letter-spacing: .02em; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--dim); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.hero-art { position: relative; justify-self: center; width: min(440px, 100%); }
.shot {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #262624;
  box-shadow: 0 40px 80px -30px #000, 0 0 0 8px color-mix(in srgb, var(--surface) 70%, transparent);
}
.shot img { width: 100%; }
.hero-art .shot { transform: rotate(1.2deg); }
.hero-art .mascot { position: absolute; width: 150px; left: -70px; bottom: -36px; transform: rotate(-8deg); filter: drop-shadow(0 18px 24px #000a); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px;
  font: 500 13px/1 var(--mono); color: var(--text); box-shadow: 0 16px 30px -12px #000c;
}
.chip i { font-style: normal; }
.chip .m { font-weight: 700; }
.chip-1 { top: -18px; left: -56px; }
.chip-2 { top: 62%; right: -76px; }
.m-haiku { color: var(--haiku); } .m-sonnet { color: var(--sonnet); } .m-opus { color: var(--opus); } .m-fable { color: var(--fable); }
.float { animation: float 6s ease-in-out infinite; }
.float.d2 { animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { width: min(380px, 88%); margin-top: 12px; }
  .chip-1 { left: -24px; } .chip-2 { right: -20px; }
  .hero-art .mascot { width: 110px; left: -40px; }
}
@media (max-width: 520px) { .chip { display: none; } .hero-art .mascot { left: -18px; bottom: -24px; width: 96px; } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee p { white-space: nowrap; font: 700 19px/1 var(--head); letter-spacing: -0.01em; color: var(--muted); display: flex; align-items: center; gap: 48px; }
.marquee p::after { content: '🪙'; font-size: 16px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- before / after ---------- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs-card { border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 18px; align-content: start; }
.vs-card.bad { background: linear-gradient(180deg, color-mix(in srgb, var(--red) 8%, var(--surface)), var(--surface)); }
.vs-card.good { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 9%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--gold) 35%, var(--line)); }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; width: max-content; }
.tag.red { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.tag.gold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.lines { display: grid; gap: 10px; }
.line {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 500 14px/1.3 var(--mono);
}
.line span:first-child { color: var(--muted); }
.vs .note { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .vs { grid-template-columns: 1fr; } }

/* ---------- audience tabs ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.tab {
  min-height: 46px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  font: 700 15px/1 var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s;
}
.tab[aria-selected="true"] { background: var(--gold); color: var(--gold-ink); }
.tab:not([aria-selected="true"]):hover { color: var(--text); }
.panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
.panel[hidden] { display: none; }
.panel-copy { display: grid; gap: 16px; align-content: start; padding: 8px 0; }
.panel-copy ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.panel-copy li { display: flex; gap: 12px; color: var(--muted); }
.panel-copy li::before { content: '✓'; color: var(--gold); font-weight: 800; }
.term { background: #0A0908; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font: 500 13.5px/1.7 var(--mono); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.term-bar span { margin-left: 10px; color: var(--dim); font-size: 12.5px; }
.term-body { padding: 18px 20px; display: grid; gap: 6px; overflow-x: auto; }
.term-body .ask { color: var(--text); white-space: pre-wrap; }
.term-body .ask::before { content: '> '; color: var(--gold); }
.term-body .out { color: var(--muted); white-space: pre-wrap; }
.term-body .route { white-space: pre; }
.term-body .route b { color: var(--text); font-weight: 600; }
.t1 { color: var(--green); } .t2 { color: var(--yellow); } .t3 { color: var(--orange); } .t4 { color: var(--red); }
@media (max-width: 900px) { .panel { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; align-content: start; counter-increment: step; }
.step::before { content: counter(step); font: 800 15px/1 var(--mono); color: var(--gold-ink); background: var(--gold); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.step p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- features ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; display: grid; gap: 12px; align-content: start;
  transition: border-color .25s, transform .25s var(--ease), background .25s;
}
.card:hover { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); transform: translateY(-3px); }
.card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 24px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .joke { color: var(--gold); font-size: 14px; font-weight: 600; }
.card.new { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.card .badge { justify-self: start; font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--gold); color: var(--gold-ink); padding: 5px 8px; border-radius: 6px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ---------- receipt ---------- */
.receipt-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.receipt {
  justify-self: center; width: min(400px, 100%); background: var(--paper); color: var(--ink); padding: 30px 28px 40px;
  font: 500 14px/1.6 var(--mono); position: relative; transform: rotate(-2deg);
  box-shadow: 0 40px 60px -30px #000;
  --zig: radial-gradient(circle at 10px -4px, transparent 12px, var(--paper) 13px);
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat, radial-gradient(circle at 50% 100%, transparent 6px, #000 6.5px) bottom / 16px 12px repeat-x;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 12px) no-repeat, radial-gradient(circle at 50% 100%, transparent 6px, #000 6.5px) bottom / 16px 12px repeat-x;
}
.receipt h3 { font-family: var(--head); text-align: center; font-size: 24px; letter-spacing: -0.02em; }
.receipt .ar-name { text-align: center; font: 700 16px/1 'Marhey', var(--ar); margin: 4px 0 14px; color: #6b5a3e; }
.receipt .dash { border-top: 2px dashed #b9ad9a; margin: 14px 0; }
.receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .row span:first-child { color: #5d564c; }
.receipt .total { font-weight: 700; font-size: 16px; }
.receipt .stamp {
  position: absolute; right: 20px; bottom: 150px; transform: rotate(-14deg); border: 3px solid var(--saved); color: var(--saved);
  font: 800 20px/1 var(--head); padding: 8px 12px; border-radius: 8px; letter-spacing: .02em; opacity: .9; text-transform: uppercase;
}
.receipt .done { font-family: var(--body); font-size: 13.5px; line-height: 1.5; color: #3b3630; }
.receipt .thanks { text-align: center; color: #6b5a3e; font-size: 13px; margin-top: 8px; }
@media (max-width: 900px) { .receipt-wrap { grid-template-columns: 1fr; } }

/* ---------- pane strip ---------- */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.strip figure { margin: 0; display: grid; gap: 12px; }
.strip figcaption { color: var(--muted); font-size: 15px; }
.strip figcaption b { color: var(--text); display: block; font-size: 17px; }
.strip .shot { max-height: 560px; }
@media (max-width: 900px) { .strip { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* ---------- numbers ---------- */
.nums { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.num { padding: 28px 22px; display: grid; gap: 6px; border-right: 1px solid var(--line); }
.num:last-child { border-right: 0; }
.num b { font: 800 clamp(34px, 4vw, 48px)/1 var(--head); letter-spacing: -0.04em; }
.num span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .nums { grid-template-columns: repeat(2, 1fr); } .num { border-bottom: 1px solid var(--line); } .num:nth-child(2n) { border-right: 0; } .num:last-child { grid-column: 1 / -1; } }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 22px; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 26px/1 var(--body); color: var(--gold); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 22px 22px; color: var(--muted); display: grid; gap: 10px; }

/* ---------- final cta ---------- */
.final { text-align: center; }
.final .box {
  border-radius: 32px; border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); padding: clamp(40px, 7vw, 80px) var(--gutter);
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--gold) 16%, var(--surface)), var(--surface) 60%);
  display: grid; justify-items: center; gap: 22px; overflow: hidden; position: relative;
}
.final .box img { width: 140px; }
.final .cmd { width: min(560px, 100%); }

/* ---------- page hero (subpages) ---------- */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.page-hero .wrap { display: grid; gap: 20px; }
.crumbs { display: flex; gap: 8px; color: var(--dim); font-size: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- prose / docs ---------- */
.doc { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 14.5px; }
.toc a { text-decoration: none; color: var(--muted); padding: 7px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--surface); }
.prose { display: grid; gap: 22px; min-width: 0; max-width: 780px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 38px); margin-top: 28px; }
.prose h3 { margin-top: 10px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.prose a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 18px 20px; display: grid; gap: 8px; }
.callout p { color: var(--muted); }
.steps-v { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 18px !important; }
.steps-v > li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 6px 16px; color: var(--muted); }
.steps-v > li::before { content: counter(s); grid-row: span 3; width: 36px; height: 36px; border-radius: 10px; background: var(--surface2); border: 1px solid var(--line); display: grid; place-items: center; font: 700 15px/1 var(--mono); color: var(--gold); }
.steps-v > li > b { color: var(--text); font-size: 18px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; } .toc a { border: 1px solid var(--line); } }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 12px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); background: var(--surface2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
td:first-child { color: var(--text); }
td code { white-space: normal !important; }

/* changelog */
.versions td a { color: var(--gold); text-decoration: none; }
.versions td a:hover { text-decoration: underline; }
.rel { scroll-margin-top: 96px; border-top: 1px solid var(--line); padding-top: 28px; display: grid; gap: 14px; }
.rel h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: baseline; }
.rel h2 a.anchor { text-decoration: none; color: inherit; }
.rel .date { font: 500 14px/1 var(--mono); color: var(--dim); letter-spacing: 0; }
.rel .latest { font: 700 11px/1 var(--mono); background: var(--gold); color: var(--gold-ink); padding: 5px 8px; border-radius: 6px; letter-spacing: .06em; text-transform: uppercase; }
.rel ul { padding-left: 20px; }
.rel li { line-height: 1.65; }
.rel .links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.filter { width: 100%; min-height: 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); padding: 0 16px; font: 500 16px var(--body); }
.filter::placeholder { color: var(--dim); }

/* pane gallery */
.gallery { display: grid; gap: clamp(56px, 8vw, 96px); }
.gal-item { display: grid; grid-template-columns: 420px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; scroll-margin-top: 96px; }
.gal-item:nth-child(even) { grid-template-columns: 1fr 420px; }
.gal-item:nth-child(even) .shot { order: 2; }
.gal-copy { display: grid; gap: 16px; position: sticky; top: 110px; }
.gal-copy p, .gal-copy li { color: var(--muted); }
.gal-copy ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.pane-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.pane-nav a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 15px; color: var(--muted); }
.pane-nav a:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 900px) {
  .gal-item, .gal-item:nth-child(even) { grid-template-columns: 1fr; }
  .gal-item:nth-child(even) .shot { order: 0; }
  .gal-item .shot { max-width: 440px; }
  .gal-copy { position: static; }
}

/* agents */
.family { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.agent { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 8px; align-content: start; }
.agent header { display: flex; gap: 12px; align-items: center; }
.agent .e { width: 42px; height: 42px; border-radius: 12px; background: var(--surface2); display: grid; place-items: center; font-size: 21px; flex: none; }
.agent h3 { font-size: 19px; }
.agent code { font-size: 12px !important; }
.agent p { color: var(--muted); font-size: 15px; }
.matrix td, .matrix th { text-align: center; white-space: nowrap; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix td { font: 500 13.5px/1.3 var(--mono); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 12px; font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot a:hover { color: var(--text); }
.foot .about { display: grid; gap: 14px; align-content: start; }
.foot .about p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 20px; height: 20px; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 13.5px; }
@media (max-width: 800px) { .foot { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Arabic ---------- */
[dir="rtl"] body, body[dir="rtl"] { font-family: var(--ar); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--ar); letter-spacing: 0; line-height: 1.25; font-weight: 700; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-family: var(--ar); }
[dir="rtl"] .panel-copy li::before { content: '✓'; }
[dir="rtl"] .cmd { padding: 8px 18px 8px 8px; direction: ltr; }
[dir="rtl"] .chip-1 { left: auto; right: -64px; }
[dir="rtl"] .chip-2 { right: auto; left: -54px; }
[dir="rtl"] .hero-art .mascot { left: auto; right: -70px; transform: rotate(8deg) scaleX(-1); }
[dir="rtl"] .marquee-track { animation-direction: reverse; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* grid children may shrink below their content (long commands scroll inside .cmd instead of widening the page) */
.hero .wrap > *, .panel > *, .receipt-wrap > *, .doc > *, .gal-item > *, .vs > *, .steps > *, .grid > *, .strip > *, .final .box > * { min-width: 0; }
.hero-copy > * { max-width: 100%; }
.pill { flex-wrap: wrap; line-height: 1.35; }
@media (max-width: 520px) {
  .pill { border-radius: 16px; padding: 8px 12px; }
  .ctas .btn { flex: 1 1 auto; }
  .cmd { font-size: 13.5px; padding-left: 14px; }
}
.hero-copy, .final .box, .sec-head, .prose, .gal-copy, .panel-copy, .step, .card, .page-hero .wrap { grid-template-columns: minmax(0, 1fr); }
[style*="display:grid"] { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 520px) {
  .tabs { display: flex; width: 100%; flex-wrap: nowrap; }
  .tab { flex: 1 1 0; justify-content: center; padding: 0 6px; font-size: 13.5px; gap: 5px; }
}
.prose code, .rel code, td code, .callout code, .card code, .faq code { white-space: normal; overflow-wrap: anywhere; }
.steps-v > li { grid-template-columns: 40px minmax(0, 1fr); }
.steps-v > li > * { grid-column: 2; }
.marquee { direction: ltr; }
.skip { left: 12px; top: -80px; }
.skip:focus { top: 8px; }
html, body { overflow-x: clip; }
[dir="rtl"] .line, [dir="rtl"] .tag, [dir="rtl"] .pill b { font-family: var(--ar); letter-spacing: 0; text-transform: none; }
[dir="rtl"] .line [dir="ltr"] { font-family: var(--mono); }
