/* ElBeeHQ — follows the ElBee Player design system:
   amber palette from the app icon, "Liquid Glass" translucent surfaces,
   native system type, and light/dark from the visitor's system setting. */

:root {
  /* Brand (from the app icon) */
  --honey: #FFD27A;
  --amber: #FFB020;
  --ember: #FF8A1F;
  --live: #FF3B30;
  --brand-gradient: linear-gradient(135deg, var(--honey), var(--amber) 50%, var(--ember));

  /* Light appearance */
  --bg: #F5F2EC;
  --text: #1D1D1F;
  --text2: #45454D;
  --text3: #5A5A63;
  --accent-text: #9A5B00;
  --panel: rgba(255, 255, 255, 0.62);
  --panel2: rgba(255, 255, 255, 0.78);
  --line: rgba(0, 0, 0, 0.1);
  --hover: rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(60, 40, 0, 0.08);
  --window-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 40px 90px rgba(60, 40, 0, 0.18);
  --glow-a: rgba(255, 176, 32, 0.42);
  --glow-b: rgba(255, 138, 31, 0.27);
  --glow-c: rgba(255, 210, 122, 0.5);
  --window-glow: 0 0 140px rgba(255, 176, 32, 0.28);

  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F11;
    --text: #F5F5F7;
    --text2: rgba(235, 235, 245, 0.74);
    --text3: rgba(235, 235, 245, 0.62);
    --accent-text: #FFC85C;
    --panel: rgba(30, 30, 32, 0.58);
    --panel2: rgba(22, 22, 24, 0.7);
    --line: rgba(255, 255, 255, 0.09);
    --hover: rgba(255, 255, 255, 0.07);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --window-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 40px 90px rgba(0, 0, 0, 0.6);
    --glow-a: rgba(255, 176, 32, 0.3);
    --glow-b: rgba(255, 138, 31, 0.19);
    --glow-c: rgba(255, 176, 32, 0.26);
    --window-glow: 0 0 160px rgba(255, 176, 32, 0.2);
    --live: #FF453A;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

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

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.02em; }

/* Soft amber light behind everything, so the glass has something to blur */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
/* Larger than the window and drifting very slowly, like the glow on the app's launch screen. Moving it with a
   transform keeps the drift off the main thread. */
.ambient::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(55vmax 40vmax at 20% 5%, var(--glow-a), transparent 62%),
    radial-gradient(45vmax 38vmax at 90% 30%, var(--glow-b), transparent 62%),
    radial-gradient(40vmax 30vmax at 35% 100%, var(--glow-b), transparent 62%);
  animation: drift 48s ease-in-out infinite alternate;
}
@keyframes drift {
  50% { transform: translate3d(3%, 2%, 0) scale(1.04); }
  100% { transform: translate3d(-2%, 3%, 0) scale(1.02); }
}

/* A warm light behind the hero icon */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10px;
  left: 50%;
  width: min(720px, 100%);
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--glow-c), transparent);
  pointer-events: none;
}

/* Liquid Glass surface */
.glass {
  background: var(--panel);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Navigation */
.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1080px;
  margin: 12px auto 0;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
}

@media (max-width: 1104px) { .nav { margin-inline: 12px; } }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--text2); }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary {
  background: var(--brand-gradient);
  color: #1D1406;
  box-shadow: 0 6px 20px rgba(255, 138, 31, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { filter: brightness(1.05); }

.btn-secondary { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.btn-secondary:hover { background: var(--hover); }

.btn-small { padding: 7px 16px; font-size: 14px; }

/* Hero */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 16px 40px;
  text-align: center;
}

.hero-icon {
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 14px 28px rgba(255, 138, 31, 0.3));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 { font-size: clamp(44px, 8vw, 80px); font-weight: 700; line-height: 1.02; }

.lede {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--text2);
  font-size: clamp(18px, 2.4vw, 21px);
}

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.meta { margin: 16px 0 0; color: var(--text3); font-size: 14px; }

/* App window mock-up: the Live TV page */
.window {
  display: grid;
  grid-template-columns: 196px 1fr;
  margin: 56px auto 0;
  max-width: 1040px;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  background: var(--panel2);
  border: 1px solid var(--line);
  box-shadow: var(--window-shadow), var(--window-glow);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  font-size: 12px;
  line-height: 1.35;
}

.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--hover);
  color: var(--text2);
  font-size: 9.5px;
  font-weight: 700;
  vertical-align: 1px;
}
.tag-amber { border-color: rgba(255, 176, 32, 0.55); color: var(--accent-text); }

.m-bar { display: inline-block; height: 4px; border-radius: 2px; background: var(--hover); overflow: hidden; }
.m-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand-gradient); }

.m-field {
  padding: 6px 10px 6px 26px;
  border-radius: 8px;
  background: var(--hover) no-repeat 9px 50% / 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23888' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E");
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
}

/* Sidebar */
.m-sidebar {
  display: flex;
  flex-direction: column;
  padding: 12px 8px 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.m-lights { display: flex; align-items: center; gap: 7px; padding: 2px 6px 14px; }
.m-lights i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.m-lights i:nth-child(2) { background: #FEBC2E; }
.m-lights i:nth-child(3) { background: #28C840; }
.m-sidebar-toggle { margin-left: auto; width: 15px; height: 12px; border: 1.5px solid var(--text3); border-radius: 3px; box-shadow: inset 4px 0 0 -2px var(--text3); }
.m-all { margin: 12px 8px 4px; font-weight: 600; }
.m-sidebar ul { list-style: none; margin: 0; padding: 0; flex: 1; }
.m-sidebar li { padding: 5px 8px; border-radius: 8px; font-weight: 600; white-space: nowrap; }
.m-sidebar li.m-group { margin-top: 8px; padding-bottom: 2px; color: var(--text3); font-size: 10.5px; font-weight: 600; }
.m-sidebar li.selected {
  background: linear-gradient(90deg, rgba(255, 176, 32, 0.24), rgba(255, 138, 31, 0.12));
  box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.55);
}
.m-playlist {
  display: flex;
  justify-content: space-between;
  margin: 8px -8px 0;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.m-icons { display: flex; gap: 10px; color: var(--text3); }
.m-icons b { font-weight: 400; }

/* Main column */
.m-main { min-width: 0; display: flex; flex-direction: column; }

.m-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.m-tools { display: flex; gap: 12px; padding: 6px 10px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); }
.m-tools i { width: 13px; height: 11px; border: 1.5px solid var(--text2); border-radius: 3px; }
.m-tools .t-grid { border-style: dotted; }
.m-tools .t-refresh { width: 12px; height: 12px; border-radius: 50%; border-top-color: transparent; }
.m-tabs {
  display: flex;
  gap: 2px;
  margin: 0 auto;
  padding: 3px;
  border-radius: 999px;
  background: var(--hover);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.m-tabs span { padding: 3px 10px; border-radius: 999px; color: var(--text2); }
.m-tabs .on { color: var(--accent-text); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.6); background: rgba(255, 176, 32, 0.14); }
.m-search { flex: 0 1 190px; }
.m-search { padding: 5px 10px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Banner */
.m-banner {
  display: grid;
  grid-template-columns: 1fr 42%;
  gap: 20px;
  align-items: center;
  padding: 14px 18px 18px 24px;
  background:
    radial-gradient(70% 120% at 85% 40%, rgba(255, 176, 32, 0.16), transparent 70%),
    linear-gradient(180deg, transparent, var(--hover));
  border-bottom: 1px solid var(--line);
}
.m-banner p { margin: 0; }
.m-kicker { color: var(--text2); }
.m-kicker strong { color: var(--text); }
.m-playing { padding: 1px 6px; border-radius: 4px; background: var(--amber); color: #1D1406; font-size: 9.5px; font-weight: 800; letter-spacing: 0.08em; }
.m-title { margin: 6px 0 4px !important; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.m-time { display: flex; align-items: center; gap: 8px; color: var(--text2); }
.m-time .m-bar { width: 34%; }
.m-desc { margin: 8px 0 12px !important; color: var(--text2); }
.m-actions { display: flex; align-items: center; gap: 8px; }
.m-watch { padding: 5px 14px; border-radius: 999px; background: var(--amber); color: #1D1406; font-weight: 700; }
.m-circle { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hover); border: 1px solid var(--line); color: var(--text2); font-size: 13px; }
.m-circle .rec { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--text2); box-shadow: inset 0 0 0 2px var(--panel2), inset 0 0 0 5px var(--text2); }
.m-nextup { margin-left: 6px; color: var(--text2); white-space: nowrap; }

.m-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background:
    radial-gradient(circle at 38% 42%, rgba(255, 210, 122, 0.5), transparent 32%),
    radial-gradient(circle at 75% 30%, rgba(255, 90, 60, 0.35), transparent 30%),
    linear-gradient(135deg, #2B2F48, #13141F 75%);
  box-shadow: 0 0 36px rgba(255, 176, 32, 0.22), 0 2px 6px rgba(0, 0, 0, 0.25);
}
.m-muted {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(30, 30, 32, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

/* Channel list */
.m-list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 14px 18px 8px; }
.m-list-head p { margin: 0; }
.m-cat { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.m-count { color: var(--text2); }
.m-filters { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.m-seg { display: flex; padding: 2px; border-radius: 8px; background: var(--hover); }
.m-seg span { padding: 3px 9px; border-radius: 6px; color: var(--text2); }
.m-seg .on { background: var(--panel2); box-shadow: inset 0 0 0 1px rgba(255, 176, 32, 0.5); color: var(--text); font-weight: 600; }
.m-sort { color: var(--text2); }
.m-sort b { color: var(--accent-text); }
.m-find { width: 130px; }

.m-rows { display: grid; gap: 6px; padding: 0 18px 18px; }
.m-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 12px;
  align-items: center;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--hover);
  border: 1px solid var(--line);
}
.m-row.selected {
  background: linear-gradient(90deg, rgba(255, 176, 32, 0.18), rgba(255, 138, 31, 0.08));
  border-color: rgba(255, 176, 32, 0.6);
}
.m-logo {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #fff;
  color: var(--logo);
  box-shadow: inset 0 0 0 3px var(--logo);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
}
.m-chan, .m-prog { display: grid; gap: 3px; min-width: 0; }
.m-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-num { display: flex; align-items: center; gap: 5px; color: var(--text3); }
.m-prog > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-prog em { margin-left: 4px; color: var(--text3); font-style: normal; }
.m-prog .m-bar { width: 100%; }
.m-next { color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.eq { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 9px; }
.eq i { width: 2px; background: var(--amber); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 50%; }
.eq i:nth-child(2) { height: 100%; animation-delay: -0.3s; }
.eq i:nth-child(3) { height: 70%; animation-delay: -0.6s; }
@keyframes eq { 50% { transform: scaleY(0.4); } }
.eq i { transform-origin: bottom; }

@media (max-width: 1000px) {
  .m-extra, .m-search, .m-sort { display: none; }
}
@media (max-width: 860px) {
  .window { grid-template-columns: 1fr; }
  .m-sidebar, .m-tools, .m-next { display: none; }
  .m-row { grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .m-toolbar, .m-filters, .m-desc, .m-nextup { display: none; }
  .m-banner { grid-template-columns: 1fr; padding: 14px; }
  .m-preview { order: -1; }
  .m-list-head, .m-rows { padding-inline: 12px; }
  .m-row { grid-template-columns: 30px minmax(0, 1fr); }
  .m-prog { grid-column: 2; }
  .m-row:nth-child(n + 5) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; } }

/* Sections */
.section { max-width: 1080px; margin: 0 auto; padding: 56px 16px; }

.section > h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; text-align: center; margin-bottom: 32px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.card { padding: 24px; border-radius: var(--radius); }
.card svg,
.privacy-head svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card svg .fill { fill: var(--ember); stroke: none; }
.card h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: var(--text2); font-size: 15px; }

/* Privacy */
.privacy { padding: 32px; border-radius: 22px; }
.privacy-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.privacy-head svg { width: 34px; height: 34px; flex: none; }
.privacy-head h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; }

.privacy-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text2);
  font-size: 15px;
}
.privacy-list strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; }

.disclaimer { max-width: 720px; margin: 24px auto 0; color: var(--text3); font-size: 13px; text-align: center; }

/* Footer */
.footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  border-top: 1px solid var(--line);
  color: var(--text3);
  font-size: 14px;
  text-align: center;
}
.footer p { margin: 6px 0 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.copyright { font-size: 12px; }

/* Smaller screens */
@media (max-width: 860px) {
  .grid, .privacy-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
  .hero-icon { width: 104px; height: 104px; }
  .grid, .privacy-list { grid-template-columns: 1fr; }
  .privacy { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ambient::before { animation: none; }
  .btn { transition: none; }
}

/* Install note under the download button */
.install-note { max-width: 560px; margin: 10px auto 0; color: var(--text3); font-size: 13px; }
.install-note strong { color: var(--text2); }

/* Current page in the navigation */
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Changelog page */
.page-head { max-width: 760px; margin: 0 auto; padding: 64px 16px 8px; text-align: center; }
.page-icon { width: 72px; height: 72px; margin: 0 auto 16px; filter: drop-shadow(0 10px 20px rgba(255, 138, 31, 0.28)); }
.page-head h1 { font-size: clamp(36px, 6vw, 56px); }

.releases { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; display: grid; gap: 16px; }
.releases-status { color: var(--text2); text-align: center; }

.release { border-radius: var(--radius); scroll-margin-top: 96px; }
.release summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: baseline;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.release summary::-webkit-details-marker { display: none; }
.release summary:hover .release-version { color: var(--accent-text); }

.release-title { display: flex; align-items: center; gap: 10px; }
.release-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--text3);
  border-bottom: 2px solid var(--text3);
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
}
.release[open] .release-title::before { transform: rotate(45deg); }

.release-version { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.release time { color: var(--text3); font-size: 14px; white-space: nowrap; }
.release-summary { grid-column: 1 / -1; padding-left: 18px; color: var(--text2); font-size: 15px; }

.badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #1D1406;
  font-size: 12px;
  font-weight: 700;
}

.notes { padding: 0 24px 22px 42px; color: var(--text2); font-size: 15px; }
.notes h3, .notes h4 { margin: 20px 0 6px; color: var(--text); font-size: 16px; font-weight: 600; }
.notes p { margin: 8px 0; }
.notes ul { margin: 6px 0; padding-left: 18px; }
.notes li { margin: 6px 0; }
.notes li::marker { color: var(--amber); }
.notes strong { color: var(--text); }
.notes code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--hover);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
}
.release-download { margin-top: 16px !important; font-weight: 600; }

@media (max-width: 560px) {
  .release summary { grid-template-columns: 1fr; padding: 18px; }
  .release-summary { padding-left: 0; }
  .notes { padding: 0 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .release-title::before { transition: none; }
}

/* Footer links and legal line (every page) */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 14px 0 0; }
.footer-links a { color: var(--text2); }
.footer-legal { max-width: 640px; margin: 14px auto 0 !important; font-size: 12px; line-height: 1.5; }

/* Page section navigation */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.chips a {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.chips a:hover { background: var(--hover); text-decoration: none; }

/* Documentation sections (Support, Privacy, Legal) */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 8px; scroll-margin-top: 80px; }
.doc > h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; margin-bottom: 18px; }
.doc-lede { margin: -6px 0 18px; color: var(--text2); }
.doc code, .prose code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--hover);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
}

.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 20px 22px 20px 64px; border-radius: var(--radius); counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #1D1406;
  font-weight: 700;
  font-size: 15px;
}
.step h3 { margin: 2px 0 6px; font-size: 18px; font-weight: 600; }
.step p { margin: 6px 0 0; color: var(--text2); font-size: 15px; }
.step strong { color: var(--text); }

.settings-mock {
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel2);
  border: 1px solid var(--line);
  font-size: 13px;
}
.settings-mock-title { margin: 0 0 8px !important; color: var(--text) !important; font-weight: 600; }
.settings-mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--hover);
}
.settings-mock-button {
  flex: none;
  padding: 3px 12px;
  border-radius: 6px;
  background: var(--panel2);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.45);
  font-weight: 500;
}

.callout { margin-top: 16px; padding: 20px 22px; border-radius: var(--radius); }
.callout h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.callout p { margin: 0; color: var(--text2); font-size: 15px; }
.code {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 10px;
  background: var(--hover);
  border: 1px solid var(--line);
}
.code code { flex: 1; min-width: 0; padding: 0; background: none; overflow-x: auto; white-space: nowrap; }
.copy-button {
  flex: none;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.copy-button:hover { background: var(--hover); }

.faq { display: grid; gap: 10px; }
.faq-item { border-radius: 14px; }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-text); font-size: 20px; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 20px 16px; color: var(--text2); font-size: 15px; }
.faq-answer p { margin: 0; }

.table-wrap { border-radius: var(--radius); overflow: hidden; }
.shortcuts { width: 100%; border-collapse: collapse; font-size: 15px; }
.shortcuts th, .shortcuts td { padding: 10px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.shortcuts th { color: var(--text3); font-size: 13px; font-weight: 600; }
.shortcuts tr:last-child td { border-bottom: 0; }
.shortcuts td:last-child { color: var(--text2); }
kbd {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--panel2);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line);
  font-family: var(--font);
  font-size: 14px;
  white-space: nowrap;
}

/* Contact form */
.contact-form { display: grid; gap: 14px; padding: 24px; border-radius: var(--radius); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.contact-form .optional { color: var(--text3); font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 176, 32, 0.3);
}
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.form-note { margin: 0; color: var(--text3); font-size: 13px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Privacy and Legal text */
.prose { margin-top: 32px; margin-bottom: 56px; padding: 32px; border-radius: 22px; }
.prose h2 { margin: 28px 0 8px; font-size: 20px; font-weight: 700; scroll-margin-top: 90px; }
.prose p, .prose li { color: var(--text2); font-size: 15px; }
.prose p { margin: 8px 0; }
.prose ul { margin: 8px 0; padding-left: 20px; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--text); }
.prose .updated { margin: 0; color: var(--text3); font-size: 13px; }
.prose .summary {
  margin: 18px 0 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(255, 176, 32, 0.16), rgba(255, 138, 31, 0.06));
  border: 1px solid rgba(255, 176, 32, 0.4);
}
.prose .summary p { margin: 0; color: var(--text); }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .step { padding: 18px 18px 18px 58px; }
  .step::before { left: 16px; }
  .settings-mock-row { flex-direction: column; align-items: flex-start; }
  .prose { padding: 22px 18px; }
  .shortcuts th, .shortcuts td { padding: 9px 12px; }
}

/* Contact: GitHub issues or a private message */
.contact-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.contact-option { display: block; padding: 20px 22px; border-radius: var(--radius); color: var(--text); }
.contact-option:hover { text-decoration: none; background: var(--panel2); }
.contact-option h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.contact-option p { margin: 0 0 10px; color: var(--text2); font-size: 14px; }
.contact-option-link { color: var(--accent-text); font-size: 14px; font-weight: 600; }
.contact-form { scroll-margin-top: 90px; }
@media (max-width: 560px) { .contact-options { grid-template-columns: 1fr; } }

/* A release's theme, under its version */
.release-theme { grid-column: 1 / -1; padding-left: 18px; color: var(--text); font-size: 16px; font-weight: 600; }
@media (max-width: 560px) { .release-theme { padding-left: 0; } }

/* Phone menu: a button that shows the page links under the top bar */
.nav-toggle {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 560px) {
  .nav-links { gap: 10px; }
  .nav-toggle { display: grid; }
  .nav { flex-wrap: wrap; }
  .nav.menu-open { align-items: flex-start; border-radius: 22px; }
  .nav.menu-open .brand { margin-top: 4px; }
  .nav.menu-open .nav-links { flex-wrap: wrap; justify-content: flex-end; flex: 1; }
  .nav.menu-open .nav-links a:not(.btn) {
    display: block;
    order: 3;
    flex-basis: 100%;
    padding: 10px 6px;
    border-top: 1px solid var(--line);
    color: var(--text);
    font-size: 16px;
  }
}

/* Phones and tablets: the app is for the Mac */
.phone-note {
  max-width: 420px;
  margin: 14px auto 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--hover);
  color: var(--text2);
  font-size: 14px;
}
