/**
 * @file: styles.css
 * @description: TrackerScout landing — palette copied from the extension (ext/theme.css)
 * plus the layout of the single page.
 */

/* Light is the default palette. The dark values apply either when the visitor picked
   the dark theme explicitly, or — in "auto" — when the OS asks for dark. The media
   query is scoped to [data-theme="auto"] on purpose: without that scope an explicit
   light theme would lose to a dark system setting. */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --panel: #f4f5f7;
  --fg: #1a1c20;
  --muted: #5b6270;
  --line: #dcdfe5;
  --accent: #7a5c1a;
  --accent-fill: #c9a04a;
  --accent-fg: #ffffff;
  --hit: #fff3bf;

  --shadow: 0 18px 50px rgba(20, 22, 28, 0.10);
  --radius: 14px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16181d;
  --panel: #1d2027;
  --fg: #e8e8e8;
  --muted: #9aa3af;
  --line: #2c313a;
  --accent: #e0b45c;
  --accent-fill: #c9a04a;
  --accent-fg: #16181d;
  --hit: #4a3c14;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

:root[data-theme="auto"] {
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    color-scheme: dark;
    --bg: #16181d;
    --panel: #1d2027;
    --fg: #e8e8e8;
    --muted: #9aa3af;
    --line: #2c313a;
    --accent: #e0b45c;
    --accent-fill: #c9a04a;
    --accent-fg: #16181d;
    --hit: #4a3c14;

    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

a { color: var(--accent); }

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 72px 0; }
.section__title {
  font-size: clamp(24px, 3.4vw, 30px);
  margin-bottom: 28px;
}

/* Pulled up under the heading; sections without a subtitle keep the plain 28px gap. */
.section__sub {
  margin: -18px 0 28px;
  color: var(--muted);
  font-size: 16px;
  max-width: 60ch;
}

/* Secondary route to the extension: deliberately small and quiet — the Web Store button
   is the primary path, the manual install is a fallback. */
.altlink {
  margin: 14px 0 0;
  font-size: 13.5px;
}

.altlink a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}

.altlink a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- header ---------- */

.header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
}

.brand__mark { width: 28px; height: 28px; border-radius: 7px; }

/* On /install the brand is a link back to the main page. */
a.brand { color: inherit; text-decoration: none; }

.controls { display: flex; align-items: center; gap: 10px; }

/* Segmented switches, styled after the extension's theme toggle. */
.switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.switch__btn:hover { color: var(--fg); }

.switch__btn[aria-pressed="true"] {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.switch__icon { width: 17px; height: 17px; }

.switch--lang .switch__btn { min-width: 38px; font-weight: 600; letter-spacing: 0.02em; }

/* Single-item group: the support link lives in the same row as the switches, so it borrows
   their chrome instead of being the one text link among icon controls. */
.switch--support .switch__btn { text-decoration: none; }
.switch--support .switch__btn:hover { color: var(--accent); }

.switch__btn[aria-current="page"] {
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* ---------- hero ---------- */

.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 6vw, 72px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 56px);
  margin-bottom: 12px;
}

.hero__tagline {
  font-size: clamp(19px, 2.4vw, 22px);
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 16px;
}

.hero__sub {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 46ch;
}

.hero__micro {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- screenshot frame ---------- */

.frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow);
}

.frame img { border-radius: 8px; }

/* ---------- hero slider ---------- */

/* The first slide is in the flow and sets the height; the rest are stacked on top of it. */
.hero-slider { position: relative; }

.hero-slider__img {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slider__img:first-of-type { position: relative; }

.hero-slider__img:not(:first-of-type) {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
}

.hero-slider__img.is-active { opacity: 1; }

.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(6px);
}

.hero-slider__dot {
  appearance: none;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider__dot:hover { background: var(--muted); }
.hero-slider__dot.is-active { background: var(--accent); transform: scale(1.15); }

/* ---------- gallery ---------- */

.gallery { margin: 0; }

.gallery__tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.gallery__tabs::-webkit-scrollbar { display: none; }

.gallery__tab {
  appearance: none;
  flex: none;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.gallery__tab:hover { color: var(--fg); }

.gallery__tab[aria-selected="true"] {
  background: var(--accent-fill);
  border-color: transparent;
  color: #16181d;
  font-weight: 600;
}

.gallery figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* ---------- CTA ---------- */

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 24px;
  border-radius: 12px;
  background: #16181d;
  background-image: linear-gradient(
    180deg,
    #1d2027 0%,
    #14161a 100%
  );
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.15s ease,
              background 0.15s ease;
}

.cta:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 160, 74, 0.6);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.35),
    0 0 20px color-mix(in srgb, var(--accent-fill) 35%, transparent);
}

.cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .cta {
  background: #222631;
  background-image: linear-gradient(
    180deg,
    #272b38 0%,
    #1d212b 100%
  );
  border-color: rgba(201, 160, 74, 0.3);
}

:root[data-theme="dark"] .cta:hover {
  border-color: rgba(201, 160, 74, 0.8);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .cta {
    background: #222631;
    background-image: linear-gradient(
      180deg,
      #272b38 0%,
      #1d212b 100%
    );
    border-color: rgba(201, 160, 74, 0.3);
  }

  :root[data-theme="auto"] .cta:hover {
    border-color: rgba(201, 160, 74, 0.8);
  }
}

.cta__icon {
  width: 24px;
  height: 24px;
  flex: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.cta__glyph {
  width: 20px;
  height: 20px;
  flex: none;
  margin-inline-start: 16px;
}

/* Gold Primary CTA (.cta--gold) for ZIP download */

.cta--gold {
  background: #b8882b;
  background-image: linear-gradient(
    180deg,
    #dcae4d 0%,
    #b8882b 100%
  );
  background-clip: padding-box;
  color: #101216;
  font-weight: 650;
  font-size: 16px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.16),
    0 0 14px rgba(201, 160, 74, 0.25);
  padding: 0 18px 0 12px;
  gap: 12px;
  height: 52px;
  border-radius: 12px;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.15s ease;
}

.cta--gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.22),
    0 0 20px rgba(201, 160, 74, 0.40);
}

.cta--gold:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

:root[data-theme="dark"] .cta--gold {
  background: #ba8a2d;
  background-image: linear-gradient(
    180deg,
    #e5b958 0%,
    #ba8a2d 100%
  );
  background-clip: padding-box;
  color: #101216;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(220, 174, 77, 0.30);
}

:root[data-theme="dark"] .cta--gold:hover {
  filter: brightness(1.05);
  box-shadow:
    0 8px 26px rgba(0, 0, 0, 0.40),
    0 0 24px rgba(220, 174, 77, 0.45);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .cta--gold {
    background: #ba8a2d;
    background-image: linear-gradient(
      180deg,
      #e5b958 0%,
      #ba8a2d 100%
    );
    background-clip: padding-box;
    color: #101216;
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow:
      0 4px 18px rgba(0, 0, 0, 0.35),
      0 0 18px rgba(220, 174, 77, 0.30);
  }

  :root[data-theme="auto"] .cta--gold:hover {
    filter: brightness(1.05);
    box-shadow:
      0 8px 26px rgba(0, 0, 0, 0.40),
      0 0 24px rgba(220, 174, 77, 0.45);
  }
}

.cta__icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(16, 18, 22, 0.10);
  box-shadow: inset 0 0 0 1px rgba(16, 18, 22, 0.08);
  flex: none;
}

.cta__glyph--animated {
  width: 20px;
  height: 20px;
  margin: 0;
  color: #101216;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta--gold:hover .cta__glyph--animated {
  transform: translateY(-1px) scale(1.08);
}

.cta__tag {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(16, 18, 22, 0.12);
  color: #101216;
  border: 1px solid rgba(16, 18, 22, 0.08);
  margin-inline-start: 4px;
}

/* Ghost variant: same geometry, no weight — used where the store button must stay primary. */
.cta--ghost {
  background: var(--panel);
  background-image: none;
  color: var(--fg);
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 0 22px;
  gap: 10px;
}

.cta--ghost:hover {
  filter: none;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.cta--ghost:active { box-shadow: none; }

/* ---------- features ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.card__icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-bottom: 12px;
}

.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.badge {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--hit);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 2px;
}

/* ---------- privacy ---------- */

.privacy { background: var(--panel); border-block: 1px solid var(--line); }

.privacy__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Cards, not a bare list: on the panel background the old flat text had nothing to sit on. */
.privacy__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.privacy__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hit);
  color: var(--accent);
  margin-bottom: 14px;
}

.privacy__icon svg { width: 21px; height: 21px; }

.privacy__card h3 { font-size: 16.5px; margin-bottom: 8px; }
.privacy__card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- outro ---------- */

.outro { text-align: center; padding: 76px 0; }
.outro h2 { font-size: clamp(24px, 3.6vw, 32px); margin-bottom: 24px; }

/* ---------- install page ---------- */

.doc { padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 6vw, 72px); }
.doc__inner { max-width: 760px; }

.doc__back {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}

.doc__back:hover { color: var(--accent); }

.doc h1 { font-size: clamp(28px, 4.4vw, 38px); margin-bottom: 14px; }
.doc h2 { font-size: clamp(20px, 2.8vw, 23px); margin: 44px 0 18px; }

.doc__lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  max-width: 58ch;
}

.doc__download {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0 0;
}

.doc__meta { font-size: 13.5px; color: var(--muted); }
.doc__note { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.steps__item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 62px;
  position: relative;
  counter-increment: step;
}

.steps__item::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hit);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps h3 { font-size: 16.5px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.steps__code { margin: 0 0 8px; }

.steps__code code {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13.5px;
  color: var(--fg);
}

/* ---------- notes (What to know — compact 2x2 grid) ---------- */

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

.notes__item {
  background: color-mix(in srgb, var(--panel) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.notes__item:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--panel);
}

.notes h3 {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--fg);
  margin: 0 0 5px 0;
  line-height: 1.35;
}

.notes p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 14px;
  color: var(--fg);
  user-select: all;
}

.doc .altlink { margin-top: 32px; }

/* ---------- support form ---------- */

.form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
  max-width: 560px;
}

.form__row { display: grid; gap: 7px; }

.form__label {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--fg);
}

.form__field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  font-size: 15px;
  color: var(--fg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__field::placeholder { color: var(--muted); opacity: 0.75; }

.form__field:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

.form__field:focus-visible {
  outline: none;
  border-color: var(--accent-fill);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-fill) 25%, transparent);
}

textarea.form__field { resize: vertical; min-height: 120px; line-height: 1.5; }

.form__hint { margin: 0; font-size: 13px; color: var(--muted); }

/* Off-screen rather than display:none — a bot that skips hidden inputs would skip the trap. */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions { margin-top: 2px; }

.form__status {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.form__status:empty { display: none; }
.form__status.is-ok { color: var(--accent); font-weight: 600; }
.form__status.is-err { color: #c2452f; }

:root[data-theme="dark"] .form__status.is-err { color: #ef7a63; }

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .form__status.is-err { color: #ef7a63; }
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
}

.footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--fg); text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .cards, .privacy__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 56px 0; }
}

@media (max-width: 620px) {
  .cards, .privacy__list, .notes { grid-template-columns: minmax(0, 1fr); }
  .header__inner { justify-content: center; }
  .hero__sub { font-size: 16px; }
  .cta { width: 100%; justify-content: center; }
  .outro { padding: 56px 0; }
  .hero-slider__dots { bottom: 10px; }
  .doc__download { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta { transition: none; }
  .cta:hover, .cta:active { transform: none; }
  .hero-slider__img { transition: none; }
  .hero-slider__dot { transition: none; }
}

/* ---------- viewer demo ---------- */

.vdemo {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 28px;
}

/* ---------- the post as the forum draws it ---------- */

.vdemo__post {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.vdemo__post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.vdemo__post-title {
  font-weight: 600;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vdemo__post-badge {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.vdemo__post-body {
  display: flex;
  gap: 18px;
  padding: 16px;
  align-items: flex-start;
}

.vdemo__cover {
  flex: 0 0 auto;
  width: 140px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.vdemo__post-text {
  min-width: 0;
  flex: 1 1 auto;
}

.vdemo__spoiler {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

/* The previews are deliberately small: that is the size a board actually shows,
   and the whole point of the viewer is that this size answers nothing. */
.vdemo__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vdemo__thumb {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  overflow: hidden;
  cursor: zoom-in;
  line-height: 0;
  transition: border-color .15s, transform .15s;
}

.vdemo__thumb img {
  width: 120px;
  height: auto;
  display: block;
}

.vdemo__thumb:hover {
  border-color: var(--accent-fill);
  transform: translateY(-2px);
}

.vdemo__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- call to action ---------- */

.vdemo__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.vdemo__cta {
  cursor: pointer;
  font: inherit;
}

.vdemo__cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  max-width: 44ch;
}

@media (max-width: 640px) {
  .vdemo__post-body { flex-direction: column; }
  .vdemo__cover { width: 120px; }
  .vdemo__thumb img { width: 96px; }
}

/* ---------- what it gives, in four scannable cards ---------- */

.vdemo__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.vdemo__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}

.vdemo__card-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.vdemo__card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.vdemo__card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- the quiet line under it all ---------- */

.vdemo__hosts-more { font-size: 14px; }

.vdemo__hosts-more summary {
  color: var(--accent);
  cursor: pointer;
  width: fit-content;
}

.vdemo__hosts-more p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 52ch;
}

.vdemo__hosts-domains {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.vdemo__hosts-domains li {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--hit);
  color: var(--fg);
  font-size: 13px;
}

/* The feature card points at the live demo above instead of retelling it. */
.card__link {
  margin: 10px 0 0;
  font-size: 14px;
}

.card__link a { color: var(--accent); }

@media (max-width: 620px) {
  .vdemo__card { padding: 15px; }
}
