/* Layout concept: an asymmetric split hero (copy on the start side, a live key-cap demo on
   the end side), a three-step row, a four-column key-cap bento, a settings split, a download
   band and a FAQ. One brand blue, neutral cool surfaces, key caps as the recurring object. */
/* Assistant (body, one variable file per script) and Secular One (headings), served from
   this site: the same files Google Fonts used to send, from @fontsource. The browser
   fetches a file only when the page has a character in its range; the Hebrew and Latin
   ones are preloaded in index.html. Licences: /licenses/Assistant-OFL.txt and
   /licenses/SecularOne-OFL.txt. */
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/flipit/fonts/assistant-hebrew-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/flipit/fonts/assistant-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/flipit/fonts/assistant-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Secular One";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/flipit/fonts/secular-one-hebrew-400-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: "Secular One";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/flipit/fonts/secular-one-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Secular One";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/flipit/fonts/secular-one-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #ECECF0;
  --fg: #111318;
  --muted: #5C5F66;
  --line: #DFDFE5;
  --accent: #111318;
  --accent-hover: #000000;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6E6EB;
  --key-face: #FFFFFF;
  --key-side: #CDCDD4;
  --key-hi: rgb(255 255 255 / .75);
  --ok: #1E9E64;
  --shadow-md: 0 14px 34px -14px rgb(17 19 24 / .22), 0 2px 6px rgb(17 19 24 / .06);
  --font-display: "Secular One", "Heebo", "Arial Hebrew", Arial, sans-serif;
  --font-body: "Assistant", "Heebo", "Arial Hebrew", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-lg: 18px;   /* large surfaces: cards, demo, screenshot, bento cells */
  --radius-sm: 12px;   /* compact surfaces: key caps, FAQ rows, badges */
  --radius-pill: 999px;/* buttons */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0C0F;
    --surface: #15161A;
    --surface-2: #1C1D22;
    --fg: #F2F2F5;
    --muted: #9A9CA3;
    --line: #2A2B31;
    --accent: #F2F2F5;
    --accent-hover: #FFFFFF;
    --accent-ink: #0B0C0F;
    --accent-soft: #26272D;
    --key-face: #202126;
    --key-side: #050506;
    --key-hi: rgb(255 255 255 / .08);
    --ok: #38C684;
    --shadow-md: 0 18px 40px -16px rgb(0 0 0 / .6), 0 2px 6px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B0C0F;
  --surface: #15161A;
  --surface-2: #1C1D22;
  --fg: #F2F2F5;
  --muted: #9A9CA3;
  --line: #2A2B31;
  --accent: #F2F2F5;
  --accent-hover: #FFFFFF;
  --accent-ink: #0B0C0F;
  --accent-soft: #26272D;
  --key-face: #202126;
  --key-side: #050506;
  --key-hi: rgb(255 255 255 / .08);
  --ok: #38C684;
  --shadow-md: 0 18px 40px -16px rgb(0 0 0 / .6), 0 2px 6px rgb(0 0 0 / .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.05rem/1.7 var(--font-body);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); }
h3 { font: 700 1.15rem/1.35 var(--font-body); margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* The one side gutter: physical left/right on purpose, the safe-area insets are physical too. */
.wrap {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.section > .wrap > h2 { max-width: 20ch; }

/* ---- buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: var(--radius-pill);
  font: 700 1rem var(--font-body);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 10px 22px -12px color-mix(in srgb, var(--accent) 45%, transparent);
}
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--sm { min-height: 40px; padding: 0 1.1em; font-size: .95rem; }
.btn--lg { min-height: 56px; padding: 0 1.9em; font-size: 1.1rem; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-hover); }
  .btn--ghost:hover { border-color: var(--muted); }
}

/* ---- nav ------------------------------------------------------------------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav__inner { height: 64px; display: flex; align-items: center; gap: 20px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 800 1.25rem/1 var(--font-body); letter-spacing: -0.01em; text-decoration: none;
}
.brand img { width: 30px; height: 30px; }
.brand span { direction: ltr; unicode-bidi: isolate; }
.by {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px;
  border-radius: var(--radius-pill); border: 1px solid var(--line);
  color: var(--muted); font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: color 150ms ease, border-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) { .by:hover { color: var(--fg); border-color: var(--muted); } }
@media (max-width: 480px) { .by { display: none; } }
.nav__links { display: flex; gap: 2px; margin-inline-start: 6px; }
.nav__links a { white-space: nowrap;
  text-decoration: none; color: var(--muted); font-weight: 600;
  padding: 8px 12px; border-radius: var(--radius-pill);
  transition: color 150ms ease, background-color 150ms ease;
}
.nav__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: transparent; color: var(--fg);
  font: 700 .9rem var(--font-body); cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease-out), border-color 150ms ease;
}
.lang:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover { color: var(--fg); background: var(--surface-2); }
  .lang:hover { border-color: var(--muted); }
}
@media (max-width: 860px) { .nav__links { display: none; } }
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---- hero ------------------------------------------------------------------ */
.hero {
  padding-block: clamp(40px, 6vw, 84px) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 .kbd {
  display: inline-block; padding: 0 .3em; margin-inline: .05em;
  border-radius: .22em; line-height: 1.25;
  background: var(--key-face); color: var(--accent);
  border: 1px solid var(--line); box-shadow: 0 .12em 0 var(--key-side);
  font-size: .86em; vertical-align: .04em;
}
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* ---- live demo ------------------------------------------------------------- */
.demo {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  overflow: hidden; min-width: 0;
}
.demo__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .95rem;
}
.demo__layout {
  font: 700 .8rem/1 var(--font-mono);
  background: var(--accent-soft); color: var(--accent);
  padding: 6px 10px; border-radius: var(--radius-pill); min-width: 2.8em; text-align: center;
}
.demo__text {
  display: block; width: 100%; min-height: 132px; resize: none;
  border: 0; outline: 0; background: transparent; color: var(--fg);
  padding: 20px 22px; font: 400 1.35rem/1.5 var(--font-body);
}
.demo__text::placeholder { color: color-mix(in srgb, var(--muted) 65%, transparent); }
.demo__text:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent-soft); }
.demo__keys {
  display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px;
  padding: 16px 22px 20px; border-top: 1px solid var(--line);
}
.keywrap { display: grid; justify-items: center; gap: 6px; }
.key {
  font: 700 .95rem/1 var(--font-mono); color: var(--fg);
  background: var(--key-face); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-width: 56px; cursor: pointer;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
  box-shadow: inset 0 1px 0 var(--key-hi), 0 4px 0 var(--key-side), 0 10px 16px -8px rgb(14 21 48 / .3);
  transition: transform 110ms var(--ease-out), box-shadow 110ms var(--ease-out);
}
.key--lg { font-size: 1.3rem; padding: 18px 26px; color: var(--accent); }
.key:active, .key.is-pressed {
  transform: translateY(3px);
  box-shadow: inset 0 1px 0 var(--key-hi), 0 1px 0 var(--key-side), 0 3px 6px -4px rgb(14 21 48 / .3);
}
.key__label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.demo__hint { margin-inline-start: auto; align-self: center; font-size: .9rem; color: var(--muted); }

/* ---- steps ----------------------------------------------------------------- */
.steps {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
}
.step {
  display: grid; gap: 8px; align-content: start;
  padding-block-start: 18px; border-block-start: 2px solid var(--line);
}
.step__n { font: 400 2.2rem/1 var(--font-display); color: var(--accent); }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

/* ---- key-cap bento ---------------------------------------------------------- */
.bento {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto); gap: 16px; margin-block-start: 36px;
}
.cell {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: grid; gap: 8px; align-content: end; min-width: 0; overflow: hidden;
}
.cell .key { justify-self: start; cursor: default; pointer-events: none; margin-block-end: 8px;
  box-shadow: inset 0 1px 0 var(--key-hi), 0 3px 0 var(--key-side); }
.cell p { color: var(--muted); font-size: .98rem; }
.cell--f10 {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(160deg, #2A2C33 0%, #0B0C0F 100%);
  color: #FFFFFF; border-color: transparent;
}
.cell--f10 p { color: rgb(255 255 255 / .78); }
.cell--f10 .key { color: #111318; background: #FFFFFF; border-color: #FFFFFF; --key-side: #B9B9C2; --key-hi: rgb(255 255 255 / .9); }
.cell__demo {
  align-self: start; margin-block-end: auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
  font: 400 clamp(1.3rem, 1rem + 1.4vw, 2rem)/1.3 var(--font-body);
}
.cell__demo .before { opacity: .72; }
.cell__demo .arrow { opacity: .6; display: inline-block; }
[dir="rtl"] .cell__demo .arrow { transform: scaleX(-1); }
.cell--dots {
  background-image: radial-gradient(color-mix(in srgb, var(--line) 90%, transparent) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
}
.cell--tint { background: var(--surface-2); }

/* F10 explainer */
.f10 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-block-start: 36px; }
.f10__step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 24px; display: grid; gap: 8px; align-content: start; min-width: 0;
}
.f10__n { font: 400 2rem/1 var(--font-display); color: var(--accent); }
.f10__step h3 { margin: 0; }
.f10__step p { color: var(--muted); font-size: .98rem; }
.fn {
  margin-block-start: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px); display: grid; gap: 20px;
}
.fn__head { display: grid; gap: 10px; max-width: 64ch; }
.fn__badge {
  justify-self: start; font-size: .8rem; font-weight: 700; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 4px 10px;
}
.fn__head h3 { margin: 0; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.fn__head p { color: var(--muted); }
.fn__fixes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fn__fixes li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0;
}
.fn__fixes h4 { margin: 0 0 4px; font-size: 1.02rem; }
.fn__fixes p { color: var(--muted); font-size: .94rem; }
.keycombo { display: inline-flex; align-items: center; gap: 6px; direction: ltr; justify-self: start; }
kbd {
  font: 700 .82rem/1 var(--font-mono); color: var(--fg);
  background: var(--key-face); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 9px; min-width: 34px; text-align: center;
  box-shadow: inset 0 1px 0 var(--key-hi), 0 2px 0 var(--key-side);
}
.keycombo .plus { color: var(--muted); font-size: .85rem; }
.fn .note { margin: 0; }
@media (max-width: 860px) { .f10, .fn__fixes { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell--f10 { grid-row: span 1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .cell--f10 { grid-column: span 1; }
}

/* ---- settings split -------------------------------------------------------- */
.control {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.checks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.08rem; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--fg); margin-block-start: .3em; }
.control__shot {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--surface);
}
.control__shot img { width: 100%; }
@media (max-width: 900px) { .control { grid-template-columns: 1fr; } .control__shot { max-width: 560px; } }

/* ---- download band --------------------------------------------------------- */
.download { background: var(--surface-2); border-block: 1px solid var(--line); }
.download__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.download__inner { display: grid; gap: 22px; justify-items: start; max-width: 720px; min-width: 0; }
.download__art { margin: 0; justify-self: center; }
.download__art img { width: 100%; max-width: 400px; filter: drop-shadow(0 26px 40px rgb(0 0 0 / .22)); }
@media (max-width: 900px) { .download__grid { grid-template-columns: 1fr; } .download__art img { max-width: 260px; } }

/* ---- coffee ---------------------------------------------------------------- */
.coffee { border-block-start: 1px solid var(--line); }
.coffee__inner { display: grid; gap: 18px; justify-items: start; max-width: 640px; }
.coffee__inner p { color: var(--muted); font-size: 1.1rem; }
.bit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.bit__label { color: var(--muted); font-weight: 600; }
.bit__number { font: 800 1.7rem/1 var(--font-body); letter-spacing: .02em; direction: ltr; font-variant-numeric: tabular-nums; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-weight: 600; }
.facts li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 22px; }
.install { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 6px; }
.note { font-size: .92rem; color: var(--muted); max-width: 62ch; }

/* Windows-only notice by the download buttons. The head script marks non-Windows systems on
   <html> (data-os) before the first paint, so the note is there from the start or never at all.
   It does not animate: it is information that should simply be present. */
.os-note { display: none; }
:root[data-os] .os-note {
  display: flex; align-items: flex-start; gap: 10px;
  justify-self: start; max-width: 60ch; margin: 0;
  padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--muted); font-size: .95rem; line-height: 1.6;
}
.os-note svg { flex: none; width: 18px; height: 18px; margin-block-start: .2em; color: var(--fg); }
.os-note > span { min-width: 0; }
.os-note strong { color: var(--fg); font-weight: 700; }
/* Every platform name is real text in the page (readable, copyable, translatable);
   only the one matching data-os is displayed. */
.os-name > span { display: none; }
:root[data-os="mac"] [data-os-name="mac"],
:root[data-os="iphone"] [data-os-name="iphone"],
:root[data-os="ipad"] [data-os-name="ipad"],
:root[data-os="android"] [data-os-name="android"],
:root[data-os="chromeos"] [data-os-name="chromeos"],
:root[data-os="linux"] [data-os-name="linux"] { display: inline; }

/* Download count by each download button. Desktop: hover or keyboard focus shows it. Any
   device: it appears after a click with the new number, then hides. Nothing shows until the
   count has loaded, and never while it is zero. Tooltip-sized motion: 150ms, from its button. */
.dl { position: relative; display: inline-flex; }
.dl__count {
  position: absolute; bottom: calc(100% + 10px);
  inset-inline: 0; margin-inline: auto; width: max-content; /* centred over the button */
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--fg); color: var(--bg);
  font: 600 .85rem/1.4 var(--font-body); white-space: nowrap;
  pointer-events: none; z-index: 2;
  opacity: 0; transform: translateY(4px) scale(.97); transform-origin: 50% 100%;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.dl--below .dl__count { bottom: auto; top: calc(100% + 10px); transform: translateY(-4px) scale(.97); transform-origin: 50% 0; }
.dl[data-count] > .btn:focus-visible + .dl__count,
.dl[data-count].is-shown > .dl__count { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .dl[data-count] > .btn:hover + .dl__count { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dl__count, .dl--below .dl__count { transform: none; transition: opacity 150ms ease; }
}

/* ---- faq ------------------------------------------------------------------- */
.faq__list { margin-block-start: 28px; display: grid; gap: 10px; max-width: 780px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: 1.05rem;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.faq__item summary::-webkit-details-marker { display: none; }
.chev { margin-inline-start: auto; flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform 200ms var(--ease-out); }
.faq__item[open] .chev { transform: rotate(180deg); }
.faq__body { overflow: hidden; padding: 0 20px; }
.faq__body p { padding-block: 0 18px; color: var(--muted); }
.feedback { margin-block-start: 26px; max-width: 780px; color: var(--muted); }
.feedback a { color: var(--fg); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
@media (hover: hover) and (pointer: fine) { .feedback a:hover { text-decoration-thickness: 2px; } }
.faq__body code { font: 600 .92em var(--font-mono); background: var(--surface-2); padding: .1em .4em; border-radius: 6px; direction: ltr; unicode-bidi: isolate; }

/* ---- footer ---------------------------------------------------------------- */
.footer { padding-block: 40px; border-block-start: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-inline-start: auto; }
.footer nav a { text-decoration: none; color: var(--muted); }
.footer__credit { margin-block-start: 20px; padding-block-start: 18px; border-block-start: 1px solid var(--line); }
.footer__credit a { color: var(--fg); font-weight: 600; text-decoration-color: var(--line); text-underline-offset: 3px; }
.footer__contact { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-block-start: 8px; }
.footer__contact a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__credit a:hover { text-decoration-color: var(--accent); } }

/* ---- motion ---------------------------------------------------------------- */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .key, .lang, .chev { transition: none; }
}

/* stagger indexes (set as data attributes for CSP) */
.reveal[data-i="1"] { --i: 1; }
.reveal[data-i="2"] { --i: 2; }
.reveal[data-i="3"] { --i: 3; }
.reveal[data-i="4"] { --i: 4; }
.reveal[data-i="5"] { --i: 5; }
