/* Anything — website. One stylesheet for every language; no build step. */

:root {
  --accent: #ec6a1e;
  --accent-strong: #d4520e;
  --accent-soft: rgba(236, 106, 30, 0.1);
  --icon-top: #fa9e33;
  --icon-bottom: #e6541a;

  --ink: #17181c;
  --ink-2: #4b4f58;
  --ink-3: #7c818b;
  --paper: #fbfaf8;
  --paper-2: #f3f1ed;
  --card: #ffffff;
  --line: rgba(23, 24, 28, 0.09);
  --code-bg: rgba(23, 24, 28, 0.05);

  --radius: 18px;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.06);
  --max: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light dark;
}

/* CJK text in each language's own fonts (macOS picks by lang; these help elsewhere). */
:root:lang(ja) {
  --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-display: var(--font);
}
:root:lang(zh-Hant) {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang TC", "Heiti TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-display: var(--font);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff8a3d;
    --accent-strong: #ffa060;
    --accent-soft: rgba(255, 138, 61, 0.14);
    --ink: #f2f2f4;
    --ink-2: #b9bcc4;
    --ink-3: #8a8e98;
    --paper: #111214;
    --paper-2: #17181b;
    --card: #1c1d21;
    --line: rgba(255, 255, 255, 0.09);
    --code-bg: rgba(255, 255, 255, 0.07);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--code-bg);
  border-radius: 6px;
  padding: 0.12em 0.4em;
}

kbd { font-family: var(--font); border: 1px solid var(--line); border-bottom-width: 2px; background: var(--card); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { width: min(var(--max), 100% - 48px); margin-inline: auto; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.8) blur(18px);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }

.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 650; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; margin: -3px; }

/* While Anything is in beta (BETA in build.py): after the name, and in the note above the headline. */
.beta-badge {
  display: inline-block; padding: 3px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 650; line-height: 1.25; letter-spacing: 0.02em;
}
.brand .beta-badge { margin-left: -2px; }

.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; }
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
/* Language menu: a <details>, so it works without JavaScript too. */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary { background: var(--code-bg); color: var(--ink); }
.lang-menu .globe { width: 16px; height: 16px; flex: none; }
.lang-menu .chevron { width: 10px; height: 10px; flex: none; opacity: 0.6; transition: transform 0.15s; }
.lang-menu[open] .chevron { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.lang-menu li a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink);
}
.lang-menu li a:hover { background: var(--code-bg); text-decoration: none; }
.lang-menu li a[aria-current="page"] { font-weight: 600; }
.lang-menu li a[aria-current="page"]::after { content: "✓"; color: var(--accent); }

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.button:hover { text-decoration: none; }
.button:active { transform: scale(0.98); }

.button-primary {
  background: linear-gradient(180deg, var(--icon-top), var(--icon-bottom));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 18px rgba(230, 84, 26, 0.32);
}
.button-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 24px rgba(230, 84, 26, 0.42); }

.button-small { font-size: 14px; padding: 7px 15px; }
.button-large { font-size: 18px; padding: 14px 28px; }
.button svg { width: 1.05em; height: 1.05em; }

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

.hero { padding: 84px 0 0; text-align: center; overflow: hidden; }

.hero-note {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  margin: -26px 0 26px; padding: 5px 16px 5px 5px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 14.5px; color: var(--ink-2); text-align: left; word-break: keep-all;
}

.hero h1 { font-size: clamp(32px, 6.4vw, 76px); font-weight: 700; letter-spacing: -0.03em; }
/* A line breaks only if it has to, and Chinese and Japanese only between words: at a space or a
   <wbr> in the content, never inside a word. */
.hero h1 .line { display: inline-block; word-break: keep-all; }
.hero h1 .soft { color: var(--ink-3); }

.hero .lede { max-width: 640px; margin: 22px auto 0; font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); }

.hero-cta { margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-meta { font-size: 13.5px; color: var(--ink-3); }
.hero-meta span + span::before { content: "·"; margin: 0 8px; }

/* The stage the demo panel floats on: a soft wallpaper, like a Mac desktop. */
.stage {
  position: relative;
  margin: 64px auto 0;
  width: min(1180px, 100% - 32px);
  padding: 76px 24px 40px;
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(60% 80% at 12% 18%, #ffb066 0%, transparent 60%),
    radial-gradient(55% 70% at 88% 10%, #ff7aa8 0%, transparent 62%),
    radial-gradient(60% 90% at 70% 100%, #7c8cff 0%, transparent 60%),
    radial-gradient(50% 70% at 10% 100%, #ffd27a 0%, transparent 60%),
    linear-gradient(135deg, #ffcf9e, #f6a6c1 50%, #a9b4ff);
}

@media (prefers-color-scheme: dark) {
  .stage {
    background:
      radial-gradient(60% 80% at 12% 18%, #7a3510 0%, transparent 60%),
      radial-gradient(55% 70% at 88% 10%, #6b1f4a 0%, transparent 62%),
      radial-gradient(60% 90% at 70% 100%, #26307a 0%, transparent 60%),
      radial-gradient(50% 70% at 10% 100%, #5a3a0e 0%, transparent 60%),
      linear-gradient(135deg, #3a1d0f, #3a1630 50%, #1b1f4d);
  }
}

.stage-shortcut {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}
.stage-shortcut kbd { background: rgba(255, 255, 255, 0.55); border-color: rgba(0, 0, 0, 0.08); color: rgba(0, 0, 0, 0.7); }
@media (prefers-color-scheme: dark) {
  .stage-shortcut { color: rgba(255, 255, 255, 0.6); }
  .stage-shortcut kbd { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.8); }
}

/* ---------- Demo panel (drawn to the app's sizes: 760 wide, 28 radius, 56 bar, 44 rows) ---------- */

.panel {
  --p-ink: rgba(0, 0, 0, 0.88);
  --p-ink-2: rgba(0, 0, 0, 0.5);
  --p-ink-3: rgba(0, 0, 0, 0.32);
  --p-line: rgba(0, 0, 0, 0.08);
  --p-sel: rgba(0, 0, 0, 0.07);
  --p-tag: rgba(0, 0, 0, 0.09);
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: left;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(36px) saturate(1.7);
  -webkit-backdrop-filter: blur(36px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 30px 70px rgba(60, 20, 40, 0.28), 0 4px 14px rgba(0, 0, 0, 0.08);
  color: var(--p-ink);
  font-family: var(--font);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .panel {
    --p-ink: rgba(255, 255, 255, 0.92);
    --p-ink-2: rgba(255, 255, 255, 0.55);
    --p-ink-3: rgba(255, 255, 255, 0.35);
    --p-line: rgba(255, 255, 255, 0.09);
    --p-sel: rgba(255, 255, 255, 0.1);
    --p-tag: rgba(255, 255, 255, 0.14);
    background: rgba(30, 30, 34, 0.6);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 70px rgba(0, 0, 0, 0.5);
  }
}

.panel-bar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; }
.panel-bar .glass-icon { width: 22px; height: 22px; flex: none; color: var(--p-ink-2); }

.panel-query {
  flex: 1;
  min-width: 0;
  font-size: 24px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.panel-query .placeholder { color: var(--p-ink-3); }
.panel-query .tag { background: var(--p-tag); border-radius: 7px; padding: 1px 5px; margin-right: 1px; }
.caret {
  display: inline-block;
  width: 2px;
  height: 28px;
  margin-left: 1px;
  background: var(--accent);
  border-radius: 1px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.panel-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--p-ink-3);
  white-space: nowrap;
  transition: opacity 0.2s;
}
.panel-hint svg { width: 14px; height: 14px; }

/* Like the app: only the field while there's nothing to show; the results grow out of it. */
.panel-holder { height: 336px; }
.panel-results {
  border-top: 1px solid var(--p-line);
  padding: 8px;
  height: 248px;
  overflow: hidden;
  transition: height 0.26s cubic-bezier(0.3, 0.7, 0.2, 1), padding 0.26s, opacity 0.18s;
}
.panel.collapsed .panel-results { height: 0; padding-block: 0; opacity: 0; border-top-color: transparent; }
.panel.collapsed .panel-status { height: 0; min-height: 0; padding-block: 0; border-top-color: transparent; }

.row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  column-gap: 12px;
  height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  animation: row-in 0.22s ease-out both;
}
.row.top { height: 52px; background: var(--p-sel); }
.row .ico { width: 32px; height: 32px; display: grid; place-items: center; }
.row .ico svg { width: 32px; height: 32px; display: block; }
.row .txt { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.row .name { font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row.top .name { font-size: 17px; font-weight: 600; }
.row .path { font-size: 12px; line-height: 1.3; color: var(--p-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .path mark { background: none; color: var(--p-ink); font-weight: 600; }
.row .detail { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--p-ink-3); white-space: nowrap; }
@keyframes row-in { from { opacity: 0; transform: translateY(3px); } }

.panel-status {
  overflow: hidden;
  transition: height 0.26s, padding 0.26s;
  border-top: 1px solid var(--p-line);
  padding: 7px 20px 8px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--p-ink-2);
  min-height: 30px;
}

/* App icons in the demo: plain squircles, not the real apps' artwork. */
.squircle {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0.5px 0 rgba(255, 255, 255, 0.4) inset, 0 1px 2px rgba(0, 0, 0, 0.18);
}
.squircle svg { width: 18px !important; height: 18px !important; }

/* Scene chips under the panel */
.scenes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.scenes button {
  font: inherit;
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.35);
  color: rgba(0, 0, 0, 0.7);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, color 0.2s;
}
.scenes button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.9); color: #000; }
@media (prefers-color-scheme: dark) {
  .scenes button { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); }
  .scenes button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.22); color: #fff; }
}

/* ---------- Sections ---------- */

section { padding: 112px 0; }
section.alt { background: var(--paper-2); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow, .section-head .eyebrow { font-size: 14px; font-weight: 650; color: var(--accent); letter-spacing: 0.02em; margin: 0 0 12px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); }

/* Numbers */
.numbers { padding: 72px 0; border-bottom: 1px solid var(--line); }
.numbers .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.number strong { display: block; font-family: var(--font-display); font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.number strong small { font-size: 0.55em; font-weight: 600; color: var(--ink-3); margin-left: 3px; }
.number span { display: block; margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.card h3 { font-size: 20px; font-weight: 650; margin: 16px 0 8px; }
.card p { font-size: 15.5px; color: var(--ink-2); }
.card p + p { margin-top: 10px; }
.card .symbol {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.card .symbol svg { width: 22px; height: 22px; }
.card .example { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }

/* Syntax */
.syntax { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.syntax .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.syntax-tip { margin-top: 26px; font-size: 15.5px; color: var(--ink-2); }
.syntax-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); overflow: hidden; }
.syntax-table div { display: grid; grid-template-columns: minmax(170px, 0.9fr) 1.1fr; gap: 20px; padding: 13px 22px; font-size: 15px; align-items: baseline; }
.syntax-table div + div { border-top: 1px solid var(--line); }
.syntax-table code { background: none; padding: 0; font-size: 14.5px; color: var(--ink); }
.syntax-table span { color: var(--ink-2); }

/* Plugins */
.plugins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plugins.three { grid-template-columns: repeat(3, 1fr); }
.group-title { font-size: 14px; font-weight: 650; color: var(--ink-3); margin: 0 0 14px; }
.plugins + .group-title { margin-top: 36px; }
.plugin { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow-soft); }
.plugin .squircle { width: 38px; height: 38px; border-radius: 9px; }
.plugin .squircle svg { width: 22px !important; height: 22px !important; }
.plugin h3 { font-size: 17px; font-weight: 650; margin: 14px 0 6px; display: flex; align-items: center; gap: 8px; }
.plugin p { font-size: 14.5px; color: var(--ink-2); }
.plugin-note { margin-top: 26px; text-align: center; font-size: 15px; color: var(--ink-3); }

/* Agents */
.agents { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.agents .card h3 { margin-top: 0; font-size: 22px; }
.agents ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15.5px; }
.agents li + li { margin-top: 6px; }
.clients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.clients span { font-size: 13.5px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }

.terminal {
  margin-top: 22px;
  background: #16171b;
  color: #e7e7ea;
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
}
.terminal .dim { color: #8b8f99; }
.terminal .acc { color: #ffa25e; }
.terminal .ok { color: #8ed49a; }

/* What's new */
.news { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.news ul { list-style: none; margin: 0; padding: 0; }
.news li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.news li:last-child { border-bottom: 1px solid var(--line); }
.news li strong { color: var(--ink); font-weight: 650; }

/* FAQ */
.faq { max-width: 780px; margin-inline: auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 36px 22px 0;
  font-size: 18px;
  font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); font-size: 16px; }
.faq details p + p { margin-top: -10px; }

/* Closing call to action */
.closing { text-align: center; padding: 120px 0 128px; }
.closing img { width: 128px; height: 128px; margin: -12px auto 10px; display: block; }
.closing h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 700; }
.closing p { margin: 16px auto 32px; max-width: 520px; color: var(--ink-2); font-size: 19px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; font-size: 13.5px; color: var(--ink-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.site-footer a { color: var(--ink-3); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .plugins, .plugins.three { grid-template-columns: repeat(2, 1fr); }
  .syntax, .news, .agents { grid-template-columns: 1fr; gap: 32px; }
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .hero { padding-top: 56px; }
  .grid, .plugins, .plugins.three { grid-template-columns: 1fr; }
  .numbers .wrap { grid-template-columns: 1fr; gap: 28px; }
  .stage { padding: 64px 12px 28px; border-radius: 20px 20px 0 0; }
  .panel { border-radius: 22px; }
  .panel-holder { height: 324px; }
  .panel-bar { height: 50px; padding: 0 16px; }
  .panel-query { font-size: 20px; }
  .caret { height: 22px; }
  .panel-hint { display: none; }
  .row { padding: 0 8px; column-gap: 10px; }
  .row .detail { display: none; }
  .syntax-table div { grid-template-columns: 1fr; gap: 2px; }
  .site-footer nav { margin-left: 0; }
  .site-header .wrap { gap: 12px; }
  .lang-menu summary { padding: 6px 8px; }
  /* Room for the download button: the globe alone (the menu says which language), and the beta
     note above the headline says what the badge would. */
  .lang-menu summary span, .brand .beta-badge { display: none; }
  .hero-note { margin-top: -18px; gap: 8px; padding: 4px 12px 4px 4px; font-size: 13px; }
}

/* The narrowest phones: the hero's own button is just below. */
@media (max-width: 370px) {
  .header-actions .button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .row { animation: none; }
}
