/* BabelWurm — project page
   Dusk over the Wurm landscape, content on a parchment scroll (from the logo),
   pewter-silver details and a sealing-wax red for the download action. */

@font-face { font-family: "Alegreya"; font-weight: 500; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-weight: 500; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Alegreya"; font-weight: 500; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; font-weight: 700; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-weight: 700; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Alegreya"; font-weight: 700; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; font-weight: 400; font-style: italic; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya"; font-weight: 400; font-style: italic; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Alegreya"; font-weight: 400; font-style: italic; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-sans-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Alegreya Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-sans-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Alegreya Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-sans-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Alegreya Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, 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: "Alegreya Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/BabelWurm/assets/fonts/alegreya-sans-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --dusk-high: #17202b;
  --dusk-low: #3a4650;
  --moss: #2b3a2c;
  --moss-deep: #1c2a1e;
  --parchment: #efe4cc;
  --parchment-shade: #e3d4b3;
  --parchment-edge: #c9b38a;
  --ink: #2a1f17;
  --ink-soft: #5e4d3a;
  --pewter: #c3cbcf;
  --pewter-dim: #8d999f;
  --wax: #8f2a20;
  --wax-hover: #a6352a;
  --brass: #7f5b1c;
  --serif: "Alegreya", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--moss-deep);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #e2b04a; outline-offset: 3px; border-radius: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--parchment); color: var(--ink); padding: .5rem 1rem; z-index: 10; border-radius: 4px; }
.skip:focus { top: 1rem; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem); letter-spacing: -.005em; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; line-height: 1.55; max-width: 34em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 700 1.05rem/1 var(--sans);
  padding: .9rem 1.35rem; border-radius: 6px; text-decoration: none;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-wax { background: var(--wax); color: #fbefe0; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.btn-wax:hover { background: var(--wax-hover); }
.btn-pewter { color: var(--pewter); border-color: rgba(195,203,207,.45); }
.btn-pewter:hover { border-color: var(--pewter); background: rgba(195,203,207,.08); }
.btn-ink { color: var(--ink); border-color: rgba(42,31,23,.4); }
.btn-ink:hover { border-color: var(--ink); background: rgba(42,31,23,.05); }

/* ---------- header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: var(--pewter);
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font: 700 1.35rem/1 var(--serif); color: #e7ecee; }
.brand img { width: 44px; height: 44px; }
.site-nav { margin-left: auto; display: flex; gap: 1.4rem; font-size: 1rem; }
.site-nav a { text-decoration: none; color: var(--pewter); }
.site-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .site-nav { display: none; } }

/* language switcher */
.lang-switch { position: relative; margin-left: 1.2rem; font-size: 1rem; }
.site-nav + .lang-switch { margin-left: 1.2rem; }
@media (max-width: 860px) { .lang-switch, .site-nav + .lang-switch { margin-left: auto; } }
.lang-switch summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem;
  padding: .35rem .7rem; border-radius: 6px; border: 1px solid rgba(195,203,207,.35); color: var(--pewter);
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: #fff; border-color: var(--pewter); }
.lang-switch summary svg { width: 18px; height: 18px; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + .4rem); z-index: 20; margin: 0; padding: .35rem; list-style: none;
  min-width: 13rem; background: #1f2830; border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
}
.lang-switch li a { display: block; padding: .45rem .7rem; border-radius: 5px; color: #dfe5e8; text-decoration: none; }
.lang-switch li a:hover { background: rgba(255,255,255,.07); }
.lang-switch li a[aria-current="page"] { color: #e8c37a; font-weight: 700; }
.tongues a { color: inherit; text-decoration-color: var(--parchment-edge); }
.tongues a:hover { color: var(--wax); }
.footer-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; margin-bottom: 1.2rem; font-size: .95rem; }
.footer-langs [aria-current] { color: #e7ecee; font-weight: 700; }

/* ---------- hero: dusk over the Wurm landscape ---------- */
.hero {
  position: relative; overflow: hidden; color: #e7ecee;
  background: linear-gradient(180deg, var(--dusk-high) 0%, #26323d 45%, var(--dusk-low) 70%, #6b6250 92%);
  padding: clamp(6.5rem, 12vw, 9rem) clamp(1rem, 4vw, 3rem) clamp(9rem, 16vw, 13rem);
}
.landscape { position: absolute; inset: auto 0 0 0; width: 100%; height: clamp(220px, 34vw, 480px); pointer-events: none; }
.hero-inner {
  position: relative; z-index: 1; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.3rem); font-weight: 700; letter-spacing: -.01em; color: #f1f3f4; }
.hero h1 .h1-sub { display: block; font-weight: 500; font-size: .52em; line-height: 1.25; color: var(--pewter); margin-top: .45em; letter-spacing: 0; }
.hero .lede { color: #d5dcdf; margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.platforms { margin-top: 1.4rem; font-size: .98rem; color: var(--pewter-dim); }
.platforms strong { color: var(--pewter); font-weight: 500; }
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* the live chat demo — styled like BabelWurm's own overlay */
.demo {
  font: 400 14.5px/1.45 var(--ui); color: #e3e5e8;
  background: rgba(30, 33, 38, .66);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
  display: grid; grid-template-columns: 1fr 34px;
}
.demo-tabs { grid-column: 1 / -1; display: flex; gap: 2px; padding: 6px 8px 0; background: rgba(20, 22, 26, .55); border-bottom: 1px solid rgba(255,255,255,.08); }
.demo-tab { padding: 4px 10px; border-radius: 6px 6px 0 0; color: #9aa0a9; font-size: 13px; white-space: nowrap; }
.demo-tab.active { background: rgba(43, 45, 49, .9); color: #fff; font-weight: 600; }
.demo-tab.unread { color: #5aa2ff; font-weight: 600; }
.demo-log { height: 272px; overflow: hidden; padding: 10px 14px; display: flex; flex-direction: column; justify-content: flex-end; }
.demo-msg { margin-bottom: 9px; }
.demo-time { color: #7fb2ff; }
.demo-name { font-weight: 700; }
.demo-orig { color: #8d939c; }
.demo-tr { color: #f0f2f4; }
.demo-tag { color: #8d939c; font-size: .92em; }
.demo-side { display: flex; flex-direction: column; gap: 5px; align-items: center; padding: 8px 0; background: rgba(20, 22, 26, .55); border-left: 1px solid rgba(255,255,255,.08); }
.demo-side span { width: 22px; height: 22px; border-radius: 5px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #c7ccd1; }
.demo-side span:first-child { color: #ff6b5f; }
.demo-side svg { width: 12px; height: 12px; }
.demo-caption { font-size: .95rem; color: #a9b3b8; margin-top: .8rem; }
/* the one orchestrated motion: a line arrives, then its translation is inked in */
.demo-msg.arriving { animation: arrive .35s ease-out both; }
.demo-msg.arriving .demo-tr { animation: ink .7s .55s ease-out both; }
@keyframes arrive { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ink { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { .demo-msg.arriving, .demo-msg.arriving .demo-tr { animation: none; } }

/* ---------- the parchment scroll ---------- */
.scroll {
  position: relative; z-index: 2;
  width: min(1180px, calc(100% - 28px)); margin: -6.5rem auto 0;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255,250,235,.55), transparent 60%),
    radial-gradient(90% 50% at 10% 100%, rgba(170,140,90,.18), transparent 70%),
    var(--parchment);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(120, 90, 50, .25), 0 40px 80px -30px rgba(0,0,0,.55);
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 6vw, 5.5rem) clamp(2rem, 5vw, 4rem);
}
/* rollers at the top and bottom of the sheet, like the logo's scroll */
.scroll::before, .scroll::after {
  content: ""; position: absolute; left: -14px; right: -14px; height: 26px; border-radius: 13px;
  background: linear-gradient(180deg, #d9c49a 0%, #f2e6c9 35%, #c6ad7c 70%, #a88c5c 100%);
  box-shadow: 0 6px 12px -6px rgba(0,0,0,.45);
}
.scroll::before { top: -13px; }
.scroll::after { bottom: -13px; }
.scroll section { max-width: 1000px; margin: 0 auto; }
.scroll section + section { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.scroll h2 { color: var(--ink); }
.scroll code { font: 500 .88em var(--ui); background: rgba(120,90,50,.1); padding: .08em .35em; border-radius: 3px; }
.scroll a:not(.btn) { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.scroll a:not(.btn):hover { color: var(--wax); }
.section-intro { max-width: var(--measure); color: var(--ink-soft); font-size: 1.15rem; margin-top: .9rem; }

/* intro + multilingual line */
.intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.intro h2 { margin-bottom: 1.3rem; }
.intro p { max-width: var(--measure); }
.intro p:first-of-type::first-letter { font: 700 3.4em/0.8 var(--serif); float: left; padding: .08em .08em 0 0; color: var(--wax); }
.tongues { list-style: none; margin: 0; padding: 1.1rem 1.3rem; border-left: 3px solid var(--parchment-edge); background: rgba(255,250,238,.45); font: 400 italic 1.08rem/1.75 var(--serif); color: var(--ink-soft); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* features: a ledger, grouped, not a grid of identical cards */
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.6rem clamp(2rem, 5vw, 4rem); margin-top: 2.4rem; }
.ledger-group h3 { display: flex; align-items: center; gap: .6rem; padding-bottom: .55rem; margin-bottom: 1rem; border-bottom: 1px solid var(--parchment-edge); }
.ledger-group h3 svg { width: 28px; height: 28px; color: var(--wax); flex: none; }
.ledger dl { margin: 0; }
.ledger dt { font-weight: 700; margin-top: .9rem; }
.ledger dd { margin: .15rem 0 0; color: var(--ink-soft); }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } }

.figure { margin: 2.2rem 0 0; }
.figure img { border-radius: 8px; box-shadow: 0 0 0 1px rgba(60,40,20,.25), 0 22px 40px -22px rgba(40,25,10,.7); }
.figure figcaption { font: 400 italic 1rem/1.5 var(--serif); color: var(--ink-soft); margin-top: .7rem; }

/* spotlights */
.spotlight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.spotlight.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.spotlight.flip .spot-text { order: 2; }
.spot-text ul { padding-left: 1.1rem; margin: 1rem 0 0; }
.spot-text li { margin: .45rem 0; }
.spot-text li::marker { color: var(--wax); }
kbd { font: 600 .85em/1 var(--ui); padding: .18em .45em; border-radius: 4px; border: 1px solid var(--parchment-edge); background: #f8f0dd; box-shadow: inset 0 -1px 0 var(--parchment-edge); white-space: nowrap; }
@media (max-width: 860px) { .spotlight, .spotlight.flip { grid-template-columns: 1fr; } .spotlight.flip .spot-text { order: 0; } }

/* the overlay shown where it lives: over the landscape */
.stage {
  position: relative; border-radius: 8px; overflow: hidden; padding: 16% 5% 6%;
  background: linear-gradient(180deg, #1d2833 0%, #33414d 40%, #5d5f58 68%, #8a7756 86%);
  box-shadow: 0 0 0 1px rgba(60,40,20,.25), 0 22px 40px -22px rgba(40,25,10,.7);
}
.stage .landscape { height: 72%; }
.stage picture { position: relative; display: block; }
.stage picture img { width: 100%; }

/* how it works — a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .8rem;
  border-radius: 50%; background: var(--wax); color: #fbefe0; font: 700 1.25rem/1 var(--serif);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.25), 0 0 0 4px rgba(143,42,32,.15);
}
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* languages */
.lang-cloud { margin-top: 1.6rem; columns: 4 9rem; column-gap: 2rem; font-size: 1rem; line-height: 1.75; color: var(--ink-soft); }
.lang-cloud span { display: block; break-inside: avoid; }
.lang-cloud .ui { color: var(--ink); font-weight: 700; }
.lang-note { margin-top: 1.2rem; font-size: 1rem; color: var(--ink-soft); }
.lang-note strong { color: var(--ink); }

/* download — the one dark band on the scroll */
.download {
  background: linear-gradient(180deg, #232c34, #1b232a); color: #dfe5e8;
  border-radius: 8px; padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.download h2 { color: #f1f3f4; }
.download .section-intro { color: #b9c3c8; }
.download a:not(.btn) { color: #e8c37a; }
.platform-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.platform { padding: 1.3rem 1.3rem 1.4rem; border-top: 2px solid rgba(195,203,207,.35); display: flex; flex-direction: column; align-items: flex-start; }
.platform > .btn { margin-top: auto; }
.platform code.file { display: block; width: fit-content; max-width: 100%; margin-top: .25rem; }
.platform h3 { color: #f1f3f4; display: flex; align-items: center; gap: .55rem; }
.platform h3 svg { width: 24px; height: 24px; color: var(--pewter); }
.platform ul { list-style: none; margin: .8rem 0 1.2rem; padding: 0; font-size: 1rem; color: #b9c3c8; }
.platform li { margin: .35rem 0; }
.platform code { font: 500 .88em var(--ui); color: #e3e8ea; background: rgba(255,255,255,.06); padding: .1em .35em; border-radius: 3px; overflow-wrap: anywhere; }
.platform .btn { font-size: 1rem; padding: .75rem 1.1rem; }
.download-foot { margin-top: 1.6rem; font-size: 1rem; color: #b9c3c8; }
@media (max-width: 900px) { .platform-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 1.8rem; border-top: 1px solid var(--parchment-edge); }
.faq details { border-bottom: 1px solid var(--parchment-edge); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0; position: relative;
  font: 700 1.2rem/1.35 var(--serif); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .85rem; font: 400 1.6rem/1 var(--serif); color: var(--wax); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.2rem; max-width: var(--measure); color: var(--ink-soft); }
.faq .answer p:last-child { margin-bottom: 0; }

/* credits */
.credits { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.6rem 2.4rem; align-items: start; }
.credits img { width: 132px; height: 132px; }
.credits dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .45rem 1.4rem; margin: 1rem 0 0; }
.credits dt { color: var(--ink-soft); }
.credits dd { margin: 0; }
@media (max-width: 640px) { .credits { grid-template-columns: 1fr; } .credits dl { grid-template-columns: 1fr; } .credits dt { margin-top: .5rem; } }

/* ---------- footer ---------- */
.site-footer {
  color: var(--pewter-dim); font-size: .95rem; text-align: center;
  padding: 4.5rem 1.5rem 2.5rem; max-width: 72ch; margin: 0 auto;
}
.site-footer a { color: var(--pewter); }
.site-footer p { margin: .4rem 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; margin-bottom: 1.2rem; font-size: 1rem; }

@media (max-width: 640px) {
  .scroll { padding-left: 1.1rem; padding-right: 1.1rem; }
  .download { padding: 1.5rem 1.1rem; }
  .platform { padding: 1.1rem 0 1.2rem; }
  .stage { padding: 12% 2.5% 3%; }
  .demo-tabs { overflow: hidden; }
}
