/* The shared look of the collector, the extension and the dashboard: Whatnot's
   yellow, near-black pill buttons, heavy headings, rounded panels.

   Light is the default and dark follows the computer's setting. A page may
   also choose for itself by putting data-theme="light" or "dark" on <html>
   (the dashboard's Settings does); that choice wins over the computer's. */
:root {
  color-scheme: light dark;
  --brand: #ffe000;
  --bg: #ffffff;
  --card: #f5f5f5;
  --text: #1c1c1c;
  --muted: #6e6e6e;
  --line: #e4e4e4;
  --accent: #1c1c1c;
  --on-accent: #ffffff;
  --good: #1a8a4a;
  --warn: #b26a00;
  --bad: #d92d20;
}
:root[data-theme="light"] {
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0f;
    --card: #1c1c1c;
    --text: #ffffff;
    --muted: #a3a3a3;
    --line: #2e2e2e;
    --accent: #ffe000;
    --on-accent: #1c1c1c;
    --good: #4ade80;
    --warn: #ffb020;
    --bad: #ff6b60;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0f0f;
  --card: #1c1c1c;
  --text: #ffffff;
  --muted: #a3a3a3;
  --line: #2e2e2e;
  --accent: #ffe000;
  --on-accent: #1c1c1c;
  --good: #4ade80;
  --warn: #ffb020;
  --bad: #ff6b60;
}

/* The public page (spec 030). Colours come from the shared tokens, so it has
   the same light and dark looks as the dashboard. */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px / 1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    sans-serif;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 900;
}
h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  text-align: center;
  margin-bottom: 28px;
}
h3 {
  font-size: 22px;
  font-weight: 800;
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
.fine {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* buttons */
.primary,
.ghost {
  display: inline-block;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.primary {
  background: var(--brand);
  color: #1c1c1c;
}
.primary:hover {
  filter: brightness(0.94);
}
.ghost {
  background: none;
  border-color: var(--line);
  color: var(--text);
}
.ghost:hover {
  background: var(--card);
}
.big {
  padding: 12px 22px;
  font-size: 17px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* top bar */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.bar nav {
  display: flex;
  gap: 18px;
  margin-right: auto;
}
.bar nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}
.bar nav a:hover {
  color: var(--text);
}
.bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
#theme {
  padding: 6px 10px;
}

main > section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(16px, 4vw, 40px);
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 34em;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 24px 0 10px;
}

/* the example panels: drawn in the page, with made-up data */
figure {
  margin: 0;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 18px 50px rgb(0 0 0 / 0.14);
}
.panel-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 800;
  padding: 2px 4px 10px;
}
.panel-bar span {
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
}
.sample {
  margin: 10px 4px 0;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.card p {
  margin: 6px 0 0;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.row {
  font-size: 14px;
}
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.pill.whale {
  background: var(--brand);
  border-color: var(--brand);
  color: #1c1c1c;
}
.pill.gold {
  background: #d4a017;
  border-color: #d4a017;
  color: #1c1c1c;
}
.rank {
  display: grid;
  gap: 10px;
  padding: 6px 4px;
}
.rank-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 70px;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.rank-row i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}
.rank-row b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.w9 {
  width: 9%;
}
.w20 {
  width: 20%;
}
.w21 {
  width: 21%;
}
.w46 {
  width: 46%;
}
.w52 {
  width: 52%;
}
.w78 {
  width: 78%;
}
.w100 {
  width: 100%;
}
.streams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.stream {
  display: grid;
  gap: 2px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  min-width: 0;
}
.stream span,
.stream small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream strong {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.mini th,
.mini td {
  padding: 8px 6px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.mini th:first-child,
.mini td:first-child {
  text-align: left;
}
.mini th {
  color: var(--muted);
  font-size: 12px;
}
.mini tr:last-child td {
  border-bottom: 0;
}

/* features */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  margin-bottom: clamp(40px, 7vw, 80px);
}
.feature:last-child {
  margin-bottom: 0;
}
.feature.flip > div {
  order: 2;
}
.feature p {
  color: var(--muted);
}
.feature ul,
.plan ul,
.plain ul {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.feature li,
.plan li,
.plain li {
  padding-left: 26px;
  position: relative;
}
.feature li::before,
.plan li::before,
.plain li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 900;
  color: var(--good);
}

/* how it works */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.steps li,
.plain {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
}
.steps p {
  margin: 0;
  color: var(--muted);
}
.step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #1c1c1c;
  font-weight: 900;
  margin-bottom: 14px;
}
.plain {
  margin-top: 16px;
}
.plain h3 {
  font-size: 18px;
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  align-items: stretch;
}
.plans.single {
  grid-template-columns: minmax(0, 420px);
  justify-content: center;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.plan.featured {
  border: 2px solid var(--brand);
}
.plan p {
  margin: 0;
}
.plan ul {
  flex: 1;
  align-content: start;
  margin-bottom: 22px;
}
.plan .big {
  text-align: center;
}
.price {
  font-size: 40px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.price small {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.badge {
  align-self: flex-start;
  background: var(--brand);
  color: #1c1c1c;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* questions */
.questions {
  max-width: 760px;
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  padding: 16px 28px 16px 0;
  list-style: none;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
}
details[open] summary::after {
  content: "−";
}
.answer {
  margin: 0 0 18px;
  color: var(--muted);
}

.closing {
  text-align: center;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 4vw, 40px) 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
.foot nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}
.foot .fine {
  flex-basis: 100%;
  margin: 0;
}

/* the plain pages: terms and privacy */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}
.doc h1 {
  font-size: 34px;
}
.doc .notice {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 18px;
}

@media (max-width: 860px) {
  .hero,
  .feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .feature.flip > div {
    order: 0;
  }
  .steps,
  .plans {
    grid-template-columns: minmax(0, 1fr);
  }
  .bar nav {
    display: none;
  }
  .bar-actions {
    margin-left: auto;
  }
  .bar {
    gap: 10px;
  }
  .bar-actions .primary,
  .bar-actions .ghost {
    padding: 6px 11px;
    font-size: 14px;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 430px) {
  .bar {
    gap: 6px;
  }
  .bar .brand {
    font-size: 18px;
  }
  .bar-actions {
    gap: 6px;
  }
  .bar-actions .primary,
  .bar-actions .ghost {
    padding: 6px 9px;
    font-size: 13px;
  }
}
