/* =========================================================================
   Prismarr — prismarr.com
   Plain CSS, no build step. Dark theme by default; [data-theme="light"]
   on <html> switches to the light palette.
   ========================================================================= */

:root {
  /* Brand */
  --accent: #9b5de5;          /* top bar, icons, glow, borders */
  --accent-strong: #7b3fc4;   /* buttons (white text passes AA) */
  --accent-stronger: #6a32ad; /* button hover, mobile menu */
  --spectrum: linear-gradient(90deg, #ff5f6d 0%, #ffc371 33%, #5ee08b 66%, #5ab4ff 100%);

  /* Status */
  --success: #27c24c;
  --warning: #ff902b;
  --danger: #c4273c;

  /* Dark page (default) */
  --bg: #202020;
  --bg-alt: #252525;
  --card: #2a2a2a;
  --border: #3a3a3a;
  --text: #cccccc;
  --heading: #e1e2e3;
  --muted: #8c8c8c;
  --muted-strong: #a6a6a6;    /* muted text on cards (AA on #2a2a2a) */
  --link: #c9a7f5;
  --focus: #c9a7f5;
  --frame: #1a1a1a;
  --frame-bar: #171717;
  --code-bg: #171717;
  --code-text: #e1e2e3;
  --shadow: 0 24px 48px -18px rgba(0, 0, 0, .75), 0 2px 8px rgba(0, 0, 0, .35);
  --glow: rgba(155, 93, 229, .38);

  --font: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --radius: 10px;
  --bar-h: 64px;
  --container: 1240px;
  --gutter: 16px;

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-alt: #ececf1;
  --card: #ffffff;
  --border: #dcdce3;
  --text: #3a3a3f;
  --heading: #1d1d22;
  --muted: #62626a;
  --muted-strong: #5a5a62;
  --link: #6f35b8;
  --focus: #6f35b8;
  --frame: #ffffff;
  --frame-bar: #f0f0f4;
  --code-bg: #1e1e24;
  --code-text: #ececf1;
  --shadow: 0 24px 48px -20px rgba(40, 20, 70, .28), 0 2px 8px rgba(40, 20, 70, .08);
  --glow: rgba(155, 93, 229, .30);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

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

img { height: auto; }

h1, h2, h3 {
  color: var(--heading);
  margin: 0;
  line-height: 1.2;
}

h1, h2 { font-weight: 300; letter-spacing: -.01em; }
h3 { font-weight: 400; }

p { margin: 0; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

strong { font-weight: 500; color: var(--heading); }

code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .08em .38em;
  overflow-wrap: anywhere;
}

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--accent-stronger);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1800px) {
  :root { --container: 1440px; }
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--accent);
  color: #fff;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--bar-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
}
.brand img { width: 144px; height: 36px; }
.topbar :focus-visible { outline-color: #fff; }

.nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* White on #9b5de5 is only 4.1:1, so links sit on a darker chip (6:1+) */
.nav-link {
  display: block;
  padding: 7px 14px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, .22);
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.nav-link:hover { background: rgba(0, 0, 0, .34); }
.nav-link.is-active {
  background: #fff;
  color: var(--accent-stronger);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, .22);
  color: #fff;
  cursor: pointer;
  transition: background-color .15s ease;
}
.icon-btn:hover { background: rgba(0, 0, 0, .34); }
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.menu-toggle { display: none; }
.menu-line { transition: transform .2s ease, opacity .2s ease; transform-origin: 12px 12px; }
.menu-toggle[aria-expanded="true"] .menu-line-1 { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-line-2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-line-3 { transform: translateY(-5px) rotate(-45deg); }

.spectrum {
  height: 3px;
  background: var(--spectrum);
}

@media (max-width: 767.98px) {
  .menu-toggle { display: inline-grid; }
  .topbar-actions { margin-left: auto; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--bar-h) + 3px);
    margin: 0;
    background: var(--accent-stronger);
    box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .6);
    display: none;
  }
  .nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 16px;
  }
  .nav-link {
    background: transparent;
    padding: 12px 14px;
    font-size: 1rem;
  }
  .nav-link:hover { background: rgba(0, 0, 0, .2); }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  border: 1px solid var(--accent-strong);
}
.btn-primary:hover { background: var(--accent-stronger); border-color: var(--accent-stronger); text-decoration: none; }

.btn-outline {
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(155, 93, 229, .14); text-decoration: none; }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

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

.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-copy { text-align: center; }

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.75rem);
  max-width: 16ch;
  margin: 0 auto;
}

.hero-sub {
  max-width: 44rem;
  margin: 20px auto 0;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin-top: 22px;
  font-size: .9rem;
  color: var(--muted);
}
.hero-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-stage {
  position: relative;
  margin-top: 56px;
  max-width: calc(1100px + 2 * var(--gutter));
}

@media (min-width: 1800px) {
  .hero-stage { max-width: calc(1320px + 2 * var(--gutter)); }
}

.hero-glow {
  position: absolute;
  inset: -12% -8% -6%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 48% at 50% 48%, var(--glow), transparent 74%),
    radial-gradient(28% 24% at 14% 74%, rgba(255, 95, 109, .14), transparent 72%),
    radial-gradient(28% 24% at 86% 74%, rgba(90, 180, 255, .14), transparent 72%);
}

/* ---------- App frame (around every screenshot) ---------- */

.app-frame {
  position: relative;
  display: block;
  width: 100%;
  background: var(--frame);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  background: var(--frame-bar);
  border-bottom: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: .8rem;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-mark {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: url("../brand/prismarr-mark-color.svg") center / contain no-repeat;
}

/* ---------- Clickable screenshots ---------- */

.shot { margin: 0; min-width: 0; }

.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
}

button.app-frame { border: 1px solid var(--border); }

.shot-open img {
  width: 100%;
  background: var(--frame);
}

.shot-open::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(20, 20, 20, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4h5v5M9 20H4v-5M20 4l-6 6M4 20l6-6'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.shot-open:hover::after,
.shot-open:focus-visible::after { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .shot .app-frame { transition: transform .25s ease, border-color .25s ease; }
  .shot .app-frame:hover { transform: translateY(-3px); }
}
.shot .app-frame:hover { border-color: var(--accent); }

.app-frame:focus-visible { outline-offset: 4px; border-radius: var(--radius); }

/* ---------- Slider ---------- */

.slider { position: relative; z-index: 1; }

.slides { display: grid; }

.slide {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .6s ease, visibility 0s;
}

.slide .shot-open { position: relative; }

.slider-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.slider-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--heading);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.slider-btn:hover { border-color: var(--accent); }
.slider-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.slider-pause .icon-play { display: none; }
.slider-pause.is-paused .icon-play { display: block; fill: currentColor; stroke-width: 1.5; }
.slider-pause.is-paused .icon-pause { display: none; }

.slider-dots {
  display: flex;
  align-items: center;
  gap: 2px;
}

.slider-dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  border-radius: 50%;
}
.slider-dot::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--muted);
  transition: background-color .2s ease, transform .2s ease;
}
.slider-dot:hover::before { background: var(--heading); }
.slider-dot[aria-current="true"]::before {
  background: var(--accent);
  transform: scale(1.25);
}

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

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }

.lead {
  margin-top: 14px;
  font-size: 1.075rem;
  color: var(--muted);
}

.shots { padding: 48px 0 0; }

.shot-row { padding: 64px 0 72px; }

.shot-row-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.shot-row h3 {
  text-align: center;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 300;
}

.row-sub {
  max-width: 44rem;
  margin: 12px auto 36px;
  text-align: center;
  color: var(--muted);
}
.shot-row-alt .row-sub,
.shot-row-alt .lead { color: var(--muted-strong); }

.shot-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  /* Desktop shot (16:10 + 30px bar) beside a phone shot, matched in height */
  .grid-phone {
    grid-template-columns: minmax(0, 3.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 28px;
  }
}

.shot-phone {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}
.shot-phone .app-frame { border-radius: 22px; }
.shot-phone .shot-open::after { right: 10px; bottom: 10px; }

/* ---------- Features ---------- */

.features { padding: 104px 0 96px; }

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

.feature {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--accent);
  opacity: .8;
}

.feature-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: rgba(155, 93, 229, .14);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.feature p { color: var(--text); font-size: .975rem; }

.also {
  margin-top: 56px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(155, 93, 229, .08), transparent 70%), var(--card);
}

.also-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.also-list {
  display: grid;
  gap: 12px 40px;
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 860px) {
  .also-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.also-list li {
  position: relative;
  padding-left: 30px;
}

.also-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b5de5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Download ---------- */

.download {
  padding: 96px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.download .lead { color: var(--muted-strong); }

.tabs {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tab-list {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-list::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.tab svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab:hover { color: var(--heading); background: rgba(155, 93, 229, .06); }
.tab[aria-selected="true"] { color: var(--heading); }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
}
.tab:focus-visible { outline-offset: -3px; }

.tab-panel { padding: 30px 28px 34px; }
.tab-panel:focus-visible { outline-offset: -3px; }

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 48px;
}
.steps > li:last-child { padding-bottom: 0; }

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 500;
  font-size: .9rem;
}

.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 14.5px;
  top: 34px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.steps p + p,
.steps .code + p { margin-top: 10px; }

.tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-strong);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.code {
  position: relative;
  margin-top: 10px;
  border-radius: 8px;
  background: var(--code-bg);
  border: 1px solid #333;
}

.code pre {
  margin: 0;
  padding: 14px 92px 14px 16px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  color: var(--code-text);
  font-family: var(--mono);
  font-size: .925rem;
  line-height: 1.5;
}

.code pre::before {
  content: "$ ";
  color: #a98ad8;
  user-select: none;
}

.code .nw { white-space: nowrap; }

.code code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
  color: inherit;
}

.copy-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-width: 70px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #4a4a52;
  border-radius: 6px;
  background: #26262c;
  color: #e1e2e3;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.copy-btn:hover { border-color: var(--accent); background: #2e2e36; }
.copy-btn.is-copied { border-color: var(--success); }
.copy-btn:focus-visible { outline-color: #c9a7f5; }

.table-wrap { overflow-x: auto; }

.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .975rem;
}

.req-table th,
.req-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.req-table thead th {
  padding-top: 0;
  color: var(--muted-strong);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.req-table tbody th { color: var(--heading); font-weight: 500; }
.req-table tbody tr:last-child th,
.req-table tbody tr:last-child td { border-bottom: 0; }

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid;
}
.pill-req { color: var(--heading); border-color: var(--accent); background: rgba(155, 93, 229, .14); }
.pill-rec { color: var(--heading); border-color: var(--warning); background: rgba(255, 144, 43, .12); }
.pill-opt { color: var(--muted-strong); border-color: var(--border); }

@media (max-width: 560px) {
  .tab { padding: 0 12px; gap: 6px; }
  .tab-panel { padding: 24px 16px 28px; }
  .steps > li { padding-left: 42px; }
  .req-table th,
  .req-table td { padding: 12px 8px; }
  .code pre { padding-right: 76px; font-size: .875rem; }
  .copy-btn { min-width: 0; padding: 0 10px; right: 6px; }
  .req-table thead th:nth-child(3),
  .req-table tbody td:nth-child(3) { display: none; }
}

@media (max-width: 420px) {
  .tab svg { display: none; }
  .tab-panel { padding: 22px 12px 26px; }
  .steps > li { padding-left: 38px; }
  .steps > li::before { width: 28px; height: 28px; }
  .steps > li:not(:last-child)::after { left: 13.5px; }
  .code pre { font-size: .8125rem; padding-left: 12px; }
}

/* ---------- Support ---------- */

.support { padding: 96px 0 104px; }

.support-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.support-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.support-card:hover { border-color: var(--accent); text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .support-card:hover { transform: translateY(-2px); }
}

.support-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.support-title {
  color: var(--heading);
  font-size: 1.15rem;
  font-weight: 500;
}

.support-text { color: var(--text); font-size: .95rem; }

.support-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--link);
  font-weight: 500;
  font-size: .95rem;
}

.support-empty {
  text-align: center;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 30px;
  font-size: .9rem;
  color: var(--muted);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--spectrum);
  opacity: .55;
}
.footer-inner { text-align: center; }
.footer .sep { margin: 0 6px; }

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(12, 12, 14, .94);
  color: #e1e2e3;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox :focus-visible { outline-color: #c9a7f5; }

.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 64px 16px;
}

.lightbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.lightbox-count { font-size: .9rem; color: #b8b8be; }

.lightbox-figure {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100% - 70px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
  background: #1a1a1a;
}

.lightbox-caption {
  max-width: 60rem;
  text-align: center;
  font-size: .925rem;
  line-height: 1.5;
  color: #c4c4ca;
}

.lightbox-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #44444c;
  border-radius: 50%;
  background: rgba(40, 40, 46, .9);
  color: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.lightbox-btn:hover { border-color: #9b5de5; background: rgba(60, 50, 76, .95); }
.lightbox-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

@media (max-width: 640px) {
  .lightbox-inner { padding: 8px 12px 76px; }
  .lightbox-prev,
  .lightbox-next { top: auto; bottom: 18px; transform: none; }
  .lightbox-prev { left: calc(50% - 56px); }
  .lightbox-next { right: calc(50% - 56px); }
  .lightbox-caption { font-size: .85rem; }
}

body.has-lightbox { overflow: hidden; }

/* ---------- Small screens ---------- */

@media (max-width: 600px) {
  .hero { padding: 48px 0 64px; }
  .hero-stage { margin-top: 40px; }
  .shots { padding-top: 24px; }
  .shot-row { padding: 48px 0 56px; }
  .features,
  .download,
  .support { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .btn { width: 100%; max-width: 320px; }
  .brand img { width: 128px; height: 32px; }
  .frame-bar { height: 26px; font-size: .75rem; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

/* ---------- 404 page ---------- */

.notfound {
  min-height: calc(100vh - var(--bar-h) - 90px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}
.notfound .notfound-code {
  margin: 0;
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 300;
  line-height: 1;
  background: var(--spectrum);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-top: 12px; }
.notfound p { margin: 14px auto 28px; color: var(--muted); max-width: 32rem; }
