/* ============================================================
   TOKENS
   Two radii. Every spacing value a multiple of 4. Display type
   is line-height 1.0 and tracking -0.05em, without exception.
   ============================================================ */
:root {
  --ink:        #14121F;
  --surface:    #1E1A2E;
  --surface-2:  #262137;
  --surface-3:  #2F2942;
  --line:       #322B47;
  --text:       #E8E4F2;
  --text-dim:   #A79FC0;
  --text-faint: #8A82A8;
  --indigo:     #6C5CE7;
  --violet:     #A855C7;
  --spark:      #FFD36B;
  --good:       #5BD6A0;
  --bad:        #FF6B7A;
  --sel:        rgba(108, 92, 231, .26);

  --r-lg: 20px;
  --r-sm: 8px;

  --measure: 66ch;
  --wide: 76rem;

  --step--1: clamp(.78rem, .76rem + .12vw, .86rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1:  clamp(1.3rem, 1.2rem + .5vw, 1.6rem);
  --step-2:  clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  --step-3:  clamp(2.5rem, 1.7rem + 3.6vw, 4.75rem);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #F6F3EF; --surface: #FFFFFF; --surface-2: #EFEAE4; --surface-3: #E4DCD2;
    --line: #DDD4C9; --text: #1A1726; --text-dim: #55506B; --text-faint: #857E9B;
    --indigo: #5245C4; --violet: #8B3FA8; --spark: #A8730B;
    --good: #16794F; --bad: #C0344A; --sel: rgba(82, 69, 196, .14);
  }
}
:root[data-theme="light"] {
  --ink: #F6F3EF; --surface: #FFFFFF; --surface-2: #EFEAE4; --surface-3: #E4DCD2;
  --line: #DDD4C9; --text: #1A1726; --text-dim: #55506B; --text-faint: #857E9B;
  --indigo: #5245C4; --violet: #8B3FA8; --spark: #A8730B;
  --good: #16794F; --bad: #C0344A; --sel: rgba(82, 69, 196, .14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--measure); margin-inline: auto; padding-inline: 24px; }
.wide { max-width: var(--wide); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3, .ui { font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; }
code, pre, .mono, kbd { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }

/* Display type: line-height 1.0, tracking -0.05em. No exceptions. */
h1, h2 { line-height: 1; letter-spacing: -.05em; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 800; }
h2 { font-size: var(--step-2); font-weight: 600; }
h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }

.serif-accent { font-style: italic; font-family: "Source Serif 4", serif; font-weight: 400; }

.grad {
  background: linear-gradient(102deg, var(--indigo), var(--violet) 58%, var(--spark));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ============================================================
   MOTION — exactly three effects, CSS only, no library.
   ============================================================ */
/* Visible by default. If the script never runs — blocked, failed, or a static
   snapshot — the page still reads. Only once `reveal` is set on <html> does
   anything start hidden. */
.rv { transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
html.reveal .rv { opacity: 0; }
html.reveal .rv-up { transform: translateY(30px); }
html.reveal .rv-x  { transform: translateX(var(--rv-x, -20px)); }
html.reveal .rv-xr { transform: translateX(var(--rv-xr, 20px)); }
html.reveal .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.reveal .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
  .demo * { animation: none !important; }
  .caret { animation: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-block: clamp(72px, 12vh, 128px) 48px; }
.eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: var(--step--1);
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint);
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.standfirst { font-size: var(--step-1); color: var(--text-dim); margin: 24px 0 28px; line-height: 1.45; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "IBM Plex Mono", monospace; font-size: var(--step--1);
  color: var(--text-dim); border: 1px solid var(--line); background: var(--surface);
  padding: 8px 14px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--spark); flex: none; }

/* ============================================================
   THE PANEL — a faithful recreation of the app's search window
   ============================================================ */
.demo {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 32px 80px -24px rgba(0,0,0,.55);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
}
.demo-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.tl { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.demo-title {
  margin-inline-start: 8px; font-family: "IBM Plex Mono", monospace;
  font-size: var(--step--1); color: var(--text-faint);
}
.demo-body { display: grid; grid-template-columns: 148px minmax(0, 1fr); min-height: 340px; }
@media (max-width: 46rem) { .demo-body { grid-template-columns: minmax(0, 1fr); } .side { display: none; } }

.side { border-inline-end: 1px solid var(--line); padding: 12px 8px; background: var(--surface-2); }
.side-h {
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); padding: 0 8px; margin: 12px 0 6px; font-weight: 600;
}
.side-i {
  display: flex; align-items: center; gap: 8px; padding: 5px 8px;
  border-radius: var(--r-sm); font-size: 12px; color: var(--text-dim);
}
.side-i.on { background: var(--sel); color: var(--text); }
.side-i .sq { width: 12px; height: 12px; border-radius: 3px; background: currentColor; opacity: .5; flex: none; }
.side-i .ct { margin-inline-start: auto; font-size: 10px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.main { display: flex; flex-direction: column; }
.search {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
}
.mag { width: 14px; height: 14px; border: 1.5px solid var(--text-faint); border-radius: 50%; flex: none; position: relative; }
.mag::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--text-faint); bottom: -2px; inset-inline-end: -4px; transform: rotate(45deg); }
.q { font-size: 17px; color: var(--text); display: flex; align-items: center; min-height: 24px; }
.q-txt { white-space: pre; }
.caret { width: 1.5px; height: 19px; background: var(--indigo); margin-inline-start: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sortpill {
  margin-inline-start: auto; font-family: "IBM Plex Mono", monospace; font-size: 10px;
  color: var(--text-faint); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px;
}

.rows { padding: 8px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border-radius: var(--r-sm); transition: background .28s ease, opacity .32s ease, transform .32s ease;
}
.row .ic {
  width: 26px; height: 26px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  background: color-mix(in srgb, var(--indigo) 18%, transparent); color: var(--indigo);
}
.row .ic.img { background: color-mix(in srgb, var(--spark) 20%, transparent); color: var(--spark); }
.row .ic.code { background: color-mix(in srgb, var(--violet) 20%, transparent); color: var(--violet); }
.row .tx { min-width: 0; flex: 1; }
.row .t1 { display: block; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t2 { display: block; font-size: 10px; color: var(--text-faint); font-family: "IBM Plex Mono", monospace; margin-top: 2px; }
.row .kb {
  font-family: "IBM Plex Mono", monospace; font-size: 9px; color: var(--text-faint);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px; flex: none;
}
.row.sel { background: var(--sel); }
.row.gone { opacity: 0; transform: translateY(-4px); pointer-events: none; }

.foot {
  border-top: 1px solid var(--line); padding: 8px 16px;
  display: flex; gap: 14px; align-items: center;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; color: var(--text-faint);
}
.foot .hint { display: flex; align-items: center; gap: 4px; }
.foot b { color: var(--text-dim); font-weight: 400; border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.foot .count { margin-inline-start: auto; }

/* --- demo 1: typing a query, results filtering --- */
.d1 .q-txt::after { content: ""; }
.d1 .q-txt { animation: type1 13s steps(1) infinite; }
@keyframes type1 {
  0%,6%   { content: ""; }
  8%      { content: "s"; }
  10%     { content: "su"; }
  12%     { content: "sub"; }
  14%     { content: "subm"; }
  16%     { content: "subma"; }
  18%     { content: "submar"; }
  20%,92% { content: "submarine"; }
  100%    { content: ""; }
}
/* content animation is unreliable across engines; drive width instead */
.d1 .q-txt {
  animation: reveal1 13s cubic-bezier(.5,0,.5,1) infinite;
  overflow: hidden; display: inline-block; vertical-align: bottom;
}
@keyframes reveal1 {
  0%, 6%   { width: 0; }
  22%, 90% { width: 5.7em; }
  96%,100% { width: 0; }
}
.d1 .row { animation: none; }
.d1 .row.drop { animation: drop1 13s ease infinite; }
@keyframes drop1 {
  0%, 20%   { opacity: 1; transform: none; max-height: 46px; }
  30%, 90%  { opacity: 0; transform: translateY(-6px); max-height: 0; margin-bottom: -2px; }
  96%, 100% { opacity: 1; transform: none; max-height: 46px; }
}
.d1 .row.hit { animation: hit1 13s ease infinite; }
@keyframes hit1 {
  0%, 28%  { background: transparent; }
  36%, 90% { background: var(--sel); }
  96%,100% { background: transparent; }
}

/* --- interactive panel: a real one, not a loop --- */
.live .search { cursor: text; }
.live input.qin {
  all: unset; flex: 1; font-size: 17px; color: var(--text);
  font-family: "Bricolage Grotesque", system-ui, sans-serif; min-width: 0;
  /* A long placeholder used to slide under the sort pill on a narrow screen. */
  text-overflow: ellipsis; overflow: hidden; white-space: nowrap;
}
.live input.qin::placeholder { color: var(--text-faint); }
.live .row { cursor: pointer; }
.live .row:hover { background: color-mix(in srgb, var(--line) 45%, transparent); }
.live .row.cur { background: var(--sel); box-shadow: inset 2px 0 0 var(--indigo); }
.live .empty { padding: 28px 16px; text-align: center; color: var(--text-faint); font-size: 12.5px; }
.toast {
  position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px);
  background: var(--indigo); color: #fff; font-family: "IBM Plex Mono", monospace;
  font-size: 11px; padding: 8px 14px; border-radius: 999px;
  opacity: 0; transition: opacity .22s, transform .22s; pointer-events: none; white-space: nowrap;
  max-width: 90%; overflow: hidden; text-overflow: ellipsis;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.livewrap { position: relative; }
.try-note {
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--text-faint);
  margin-top: 16px;
}
.try-note b { color: var(--text-dim); font-weight: 400; border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }

/* --- demo 2: shift-arrow multi-select --- */
.d2 .row.s1 { animation: sel2a 9s ease infinite; }
.d2 .row.s2 { animation: sel2b 9s ease infinite; }
.d2 .row.s3 { animation: sel2c 9s ease infinite; }
@keyframes sel2a { 0%,8% { background: transparent; } 14%,88% { background: var(--sel); } 94%,100% { background: transparent; } }
@keyframes sel2b { 0%,22% { background: transparent; } 28%,88% { background: var(--sel); } 94%,100% { background: transparent; } }
@keyframes sel2c { 0%,36% { background: transparent; } 42%,88% { background: var(--sel); } 94%,100% { background: transparent; } }
.d2 .foot .count { animation: cnt2 9s steps(1) infinite; }
@keyframes cnt2 { 0%,13% { opacity: .45; } 14%,100% { opacity: 1; } }

/* --- the flavor stack: the signature element --- */
.flavors { position: relative; height: 210px; margin: 8px 0 0; }
.flav {
  position: absolute; left: 50%; top: 0;
  width: min(320px, 78%); padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--text-dim);
  display: flex; justify-content: space-between; gap: 12px;
  transition: transform .6s cubic-bezier(.2,.7,.3,1), opacity .6s;
}
.flav .sz { color: var(--text-faint); font-variant-numeric: tabular-nums; }
.flav:nth-child(1) { transform: translate(-50%, 0) ; z-index: 5; background: var(--surface-3); color: var(--text); }
.flav:nth-child(2) { transform: translate(-50%, 34px) scale(.97); z-index: 4; }
.flav:nth-child(3) { transform: translate(-50%, 68px) scale(.94); z-index: 3; opacity: .85; }
.flav:nth-child(4) { transform: translate(-50%, 102px) scale(.91); z-index: 2; opacity: .7; }
.flav:nth-child(5) { transform: translate(-50%, 136px) scale(.88); z-index: 1; opacity: .55; }
.flavwrap:hover .flav:nth-child(1) { transform: translate(-50%, -6px); }
.flavwrap:hover .flav:nth-child(2) { transform: translate(-50%, 36px) scale(.985); }
.flavwrap:hover .flav:nth-child(3) { transform: translate(-50%, 78px) scale(.97); opacity: 1; }
.flavwrap:hover .flav:nth-child(4) { transform: translate(-50%, 120px) scale(.955); opacity: .9; }
.flavwrap:hover .flav:nth-child(5) { transform: translate(-50%, 162px) scale(.94); opacity: .8; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(56px, 9vh, 100px); }
.section-note { color: var(--text-dim); margin: 12px 0 36px; }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 62rem) { .split { grid-template-columns: 1fr 1.15fr; gap: 60px; } .split.rev > *:first-child { order: 2; } }

.term { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin: 28px 0; }
.term-bar { padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-family: "IBM Plex Mono", monospace; font-size: var(--step--1); color: var(--text-faint); }
.term-body { padding: 14px 16px; overflow-x: auto; }
.term pre { margin: 0; font-size: var(--step--1); line-height: 1.8; white-space: pre; }
.c-dim { color: var(--text-faint); } .c-bad { color: var(--bad); } .c-good { color: var(--good); }

.finding { border-top: 1px solid var(--line); padding: 28px 0; display: grid; gap: 12px; }
@media (min-width: 60rem) { .finding { grid-template-columns: 120px 1fr; gap: 32px; } }
.finding-label { font-family: "IBM Plex Mono", monospace; font-size: var(--step--1); text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); padding-top: 4px; }
.finding h3 { font-size: var(--step-1); font-weight: 600; margin-bottom: 8px; }
.finding p { margin: 0 0 12px; color: var(--text-dim); }
.finding p:last-child { margin-bottom: 0; }
.finding strong { color: var(--text); font-weight: 600; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 46rem) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 68rem) { .grid { grid-template-columns: repeat(3, 1fr); } }
.cell { background: var(--surface); padding: 24px; }
.cell h3 { font-size: var(--step-0); font-weight: 600; margin-bottom: 8px; }
.cell p { margin: 0; font-size: var(--step--1); color: var(--text-dim); line-height: 1.6; }
kbd { font-size: .82em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--text); font-family: "IBM Plex Mono", monospace; }

.bilingual { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 28px 0; }
@media (min-width: 46rem) { .bilingual { grid-template-columns: 1fr 1fr; } }
.bilingual > div { background: var(--surface); padding: 24px; }
.bilingual .he { direction: rtl; text-align: right; }
.bilingual .tag { font-family: "IBM Plex Mono", monospace; font-size: var(--step--1); color: var(--text-faint); text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 8px; }
.bilingual p { margin: 0; }

.cta {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 40px 32px; text-align: center; margin-top: 40px;
}
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--text-dim); margin: 0 auto 24px; max-width: 46ch; }
.btnrow { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Bricolage Grotesque", system-ui, sans-serif; font-size: 14px; font-weight: 600;
  padding: 12px 20px; border-radius: var(--r-sm); text-decoration: none;
  border: 1px solid transparent; transition: transform .18s ease, opacity .18s ease;
}
.btn:focus-visible { outline: 2px solid var(--spark); outline-offset: 3px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--text-dim); background: transparent; }
.cta-fine {
  font-family: "IBM Plex Mono", monospace; font-size: 11px;
  color: var(--text-faint); margin-top: 20px; line-height: 1.7;
}

.stats { display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-top: 28px; }
.stat .n { font-family: "Bricolage Grotesque", sans-serif; font-size: var(--step-2); font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; display: block; }
.stat .l { font-family: "IBM Plex Mono", monospace; font-size: var(--step--1); color: var(--text-faint); }

/* ============================================================
   LANGUAGE LINK
   ============================================================ */
.lang {
  font-family: "IBM Plex Mono", monospace; letter-spacing: normal; text-transform: none;
  color: var(--text-dim); text-decoration: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 12px; margin-inline-start: 12px; flex: none;
}
.lang:hover { color: var(--text); border-color: var(--text-faint); }
.eyebrow::after { order: -1; }

/* ============================================================
   THEMES — the six looks from Settings → Appearance, with the
   app's own colour values.
   ============================================================ */
.themebar {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px;
}
.theme-b {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--text-dim);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
  transition: border-color .18s ease, color .18s ease;
}
.theme-b:hover { color: var(--text); }
.theme-b[aria-pressed="true"] { color: var(--text); border-color: var(--text-faint); background: var(--surface-2); }
.theme-b:focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1px solid rgba(255,255,255,.14); }

/* Each theme repaints only the panel below it, using the values the app ships. */
.themed[data-theme-name="midnight"] { --surface:#0B1426; --surface-2:#14213D; --surface-3:#1B2B4F; --line:#22355C; --text:#EAF1FF; --text-dim:#A8BCDC; --text-faint:#6F87AB; --indigo:#5AC8FA; --sel:rgba(90,200,250,.20); }
.themed[data-theme-name="paper"]    { --surface:#F7F3EA; --surface-2:#EFE8DA; --surface-3:#E6DDCA; --line:#DAD0BC; --text:#241E16; --text-dim:#5A5145; --text-faint:#6E6556; --indigo:#B4531F; --sel:rgba(180,83,31,.16); }
.themed[data-theme-name="graphite"] { --surface:#1C1C1E; --surface-2:#2C2C2E; --surface-3:#3A3A3C; --line:#3A3A3C; --text:#F2F2F7; --text-dim:#AEAEB2; --text-faint:#8E8E93; --indigo:#FF9F0A; --sel:rgba(255,159,10,.18); }
.themed[data-theme-name="aurora"]   { --surface:#2A1B4D; --surface-2:#22284A; --surface-3:#123C45; --line:#3A3566; --text:#EAF6FF; --text-dim:#B3C6DA; --text-faint:#7F93AB; --indigo:#64D2FF; --sel:rgba(100,210,255,.20); }
.themed[data-theme-name="aurora"] .demo { background: linear-gradient(150deg, #2A1B4D, #0E3B43); }
.themed[data-theme-name="glass"] .demo { background: color-mix(in srgb, var(--surface) 62%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.themed .demo, .themed .demo * { transition: background-color .32s ease, color .32s ease, border-color .32s ease; }

/* ============================================================
   THE FAN — a session's screenshots, stacked like a hand of cards
   ============================================================ */
.fanwrap { display: grid; place-items: center; padding: 8px 0 4px; }
.fan {
  position: relative; width: min(340px, 100%); height: 168px;
  border: 0; background: none; padding: 0; cursor: pointer; display: block;
}
.fan:focus-visible { outline: 2px solid var(--spark); outline-offset: 6px; border-radius: var(--r-sm); }
.card {
  position: absolute; left: 50%; top: 14px; width: 112px; height: 84px;
  margin-left: -56px; border-radius: 6px; border: 3px solid #fff; background: var(--surface-3);
  box-shadow: 0 1px 3px rgba(0,0,0,.30); overflow: hidden;
  transform-origin: 50% 100%;
  transition: transform .42s cubic-bezier(.2,.7,.3,1);
}
.card i { position: absolute; left: 8px; right: 8px; height: 5px; border-radius: 2px; background: var(--line); }
.card i:nth-child(1) { top: 12px; } .card i:nth-child(2) { top: 24px; right: 30px; } .card i:nth-child(3) { top: 36px; right: 20px; }
.fan-more {
  position: absolute; inset-inline-end: 6px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; padding: 3px 9px; border-radius: 999px;
}
.fan-note { font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--text-faint); margin-top: 6px; text-align: center; }

/* ============================================================
   EVENTS — a session card, as the sidebar section shows it
   ============================================================ */
.sess { background: color-mix(in srgb, var(--line) 18%, transparent); border-radius: var(--r-sm); padding: 12px; }
.sess-h { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.sess-h .scope { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--indigo); flex: none; position: relative; }
.sess-h .scope::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--indigo); }
.sess-h .nm { font-weight: 600; color: var(--text); }
.sess-h .when { margin-inline-start: auto; color: var(--text-dim); font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.sess-h .cnt { color: var(--text-faint); font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.menubar {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 5px 11px; font-family: "IBM Plex Mono", monospace; font-size: 11px; color: var(--text-dim);
}
.menubar .scope { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--spark); position: relative; }
.menubar .scope::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--spark); }
.menubar .n { color: var(--text); font-variant-numeric: tabular-nums; }

/* ============================================================
   WHAT'S NEW — the release, in the app's own words
   ============================================================ */
.release { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 46rem) { .release { grid-template-columns: 1fr 1fr; } }
.rel { background: var(--surface); padding: 20px 24px; }
.rel .k { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.rel h3 { font-size: var(--step-0); font-weight: 600; margin: 6px 0 6px; }
.rel p { margin: 0; font-size: var(--step--1); color: var(--text-dim); line-height: 1.6; }

footer { border-top: 1px solid var(--line); padding-block: 40px 64px; color: var(--text-faint); font-size: var(--step--1); }
footer p { margin: 0 0 8px; }

/* ============================================================
   HEBREW — the same design, read the other way. Heebo carries the
   Hebrew; the mono and display faces stay for Latin and for the key
   caps, which are the same symbols in both languages.
   ============================================================ */
html[lang="he"] body { font-family: "Heebo", "Source Serif 4", system-ui, sans-serif; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3, html[lang="he"] .ui,
html[lang="he"] .btn, html[lang="he"] .demo { font-family: "Heebo", "Bricolage Grotesque", system-ui, sans-serif; }
html[lang="he"] .serif-accent { font-family: "Heebo", serif; font-style: normal; font-weight: 800; }
html[lang="he"] h1, html[lang="he"] h2 { letter-spacing: -.02em; line-height: 1.12; }
html[lang="he"] .standfirst, html[lang="he"] .section-note { line-height: 1.6; }
/* The card stack and the fan are centred by a negative half-width, which is a
   left-hand measurement; in RTL the browser mirrors `left: 50%`, so pin both. */
[dir="rtl"] .flav, [dir="rtl"] .card { left: 50%; right: auto; }
[dir="rtl"] .toast { left: 50%; right: auto; }
/* Latin runs inside Hebrew keep their own direction rather than flipping. */
[dir="rtl"] .term-body, [dir="rtl"] .term-bar, [dir="rtl"] .flav, [dir="rtl"] .swatch + * { unicode-bidi: plaintext; }
[dir="rtl"] .rv-x { --rv-x: 20px; }
[dir="rtl"] .rv-xr { --rv-xr: -20px; }

/* A key cap is a key cap in any language: ⌘1 never becomes 1⌘. */
[dir="rtl"] .kb, [dir="rtl"] kbd, [dir="rtl"] .foot b, [dir="rtl"] .try-note b,
[dir="rtl"] .demo-title, [dir="rtl"] .sz, [dir="rtl"] .stat .n,
[dir="rtl"] .fan-more, [dir="rtl"] .menubar .n { direction: ltr; unicode-bidi: isolate; }
/* macOS keeps the window buttons on the left, Hebrew system or not. */
[dir="rtl"] .demo-chrome { direction: ltr; }
[dir="rtl"] .demo-chrome .demo-title { text-align: left; }
