
/* Light theme.
   An inline script in <head> always resolves a concrete theme onto <html>
   (stored preference, else the OS setting), so this needs no duplicate
   prefers-color-scheme block — the attribute is the single switch.

   Two structural choices drive the whole palette:

   1. The page is a hue-less off-white while text and rules carry a cool cast.
      A uniformly blue-tinted light theme reads cheap; a uniformly grey one
      reads dead. Splitting them is what makes it feel considered.
   2. Panels are pure white *above* an off-white page, so cards separate by
      being lighter than their surroundings — the inverse of the dark theme,
      where panels are lighter than a near-black page. Same relationship,
      opposite direction.

   Values are not mechanical inversions of the dark set: saturated colors that
   read well on near-black wash out on white, so everything darkens here. */
:root[data-theme="light"] {
  color-scheme: light;

  --bg: #f8faf7;
  --surface-inset: #eeeff1;
  --panel: #ffffff;
  --surface-overlay: #e9eaed;

  --ink: #21242c;
  --ink-soft: #434956;
  --ink-mute: #6c727f;
  --ink-faint: #8b919c;

  --hairline-ghost: #ebedef;
  --hairline: #d5d7dd;
  --hairline-strong: #b0b5bf;

  /* Light Monokai: brand green, magenta, orange, teal and violet pulled from
     the classic dark-editor palette, each darkened past its own reference
     lightness to clear contrast on a light page — same exercise the old
     emerald/red pair did, just with Monokai's hues instead. */
  --gain: #2f7a35;
  --gain-soft: #4a8f3f;
  --loss: #c81361;
  --loss-soft: #d6266f;

  /* Monokai's cyan, darkened for text/link contrast rather than the
     desaturated slate this used to be — still restrained, just with hue. */
  --accent: #2f7a35;
  /* Content links stay blue, not brand green, so they read as links. The dark
     theme's light blue (tokens.css) is unreadable on a light background, so
     this is the same hue pushed to AA contrast. */
  --link: #2b7bc4;
  --link-hover: #1d5f9e;
  --alert: #b5540a;

  --success: #2f7a35;
  --success-strong: #2f7a35;
  --success-hover: #276a2d;
  --danger: #c81361;
  --danger-strong: #e0177f;
  --danger-deep: #7a0f3f;
  --warning: #b5540a;
  --warning-soft: #c96a12;

  --on-accent: #ffffff;
  --btn-bg: #0b0f0c;
  --btn-ink: #ffffff;
  --btn-hover-bg: #2f7a35;
  --shadow-card: 0 1px 2px rgba(20, 40, 20, 0.06), 0 10px 30px rgba(20, 40, 20, 0.09);
  --on-success: #ffffff;
  --on-warning: #ffffff;
  --on-warning-soft: #422006;

  --chrome-bg: #ffffff;
  --field-bg: #ffffff;
  --field-placeholder: #8b919c;

  /* Raised surfaces go lighter than the #fafafa page; inset surfaces go
     darker. This is the pair that inverts between themes. */
  --panel-raised: #ffffff;
  --panel-raised-deep: #f6f7f9;
  --panel-inset: #f1f2f5;
  --panel-inset-deep: #e9ebef;
  --panel-scrim: #eceef1;

  --chart-surface: #ffffff;
  --chart-axis-text: #6c727f;
  --chart-border: #d5d7dd;
  --grid-line: rgba(33, 36, 44, 0.07);
  --chart-crosshair: rgba(108, 114, 127, 0.7);
  --chart-overlay: #6c727f;
  --chart-ma50: #7c3aed;
  --chart-level: #8b919c;
  --chart-band-fallback: #8b919c;
  --chart-alert: #b5540a;
  --chart-alert-pending: #c96a12;

  /* Per-ticker identity, re-picked for the light surface rather than
     inverted — same reasoning as the rest of this file's palette. Validated
     against this theme's own gain/loss/accent/warning/ma50, not the dark
     set's numbers. */
  --ticker-1: #009880;
  --ticker-2: #712f7d;
  --ticker-3: #0089fc;
  --ticker-4: #b383c6;
}

* {
  box-sizing: border-box;
}

/* Was a two-tone radial wash here (accent top-left, alert bottom-right). Cut
   it: charts and panels cover the page edge-to-edge on every screen that
   matters, so there was rarely enough bare page left to show it. Same two
   tones now live on .site-bar/.site-rail instead — the one surface every
   page actually leaves visible. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

/* Plain links (no class) get the shared link color; classed links style
   themselves. :where keeps this at zero specificity so any component wins. */
a:where(:not([class])) {
  color: var(--link);
}

a:where(:not([class])):hover {
  color: var(--link-hover);
}

.site-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--bar-height) + var(--rail-strip-height));
  padding-left: var(--rail-width);
  box-sizing: border-box;
  transition: padding-right 0.22s ease;
}

/* Push page content over for the Ask Scout rail instead of overlaying it —
   only once there's enough width left over to be worth it (rail + drawer
   already claim ~33rem at their widest; below this it overlays instead, see
   indicator_and_scout.css). Reserved unconditionally, same as the left
   rail's padding-left, since the rail is persistent chrome at this width —
   --scout-drawer-width itself shrinks to the collapsed value there. Skipped
   on the homepage: body[data-hide-ask-scout] hides the drawer there too
   (see indicator_and_scout.css's .site-ai rule) since the hero's own chat
   already is Scout — reserving width for chrome that never renders left a
   dead strip on the right of the page. */
@media (min-width: 1080px) {
  body:not([data-hide-ask-scout]) .site-shell {
    padding-right: var(--scout-drawer-width);
  }
}

/* min-height, not height: a short dashboard (the default 5 tiles) should
   still fill the screen like the old fixed 2/4-chart layout did, but the
   grid's content height is now user-controlled (drag/resize/add tiles) and
   can exceed one viewport. A hard height clipped that overflow instead of
   growing the page — tiles dragged into the lower rows visually bled past
   the footer instead of pushing it down. */
.metrics {
  max-width: var(--shell-max);
  width: 100%;
  margin: 0 auto;
  padding: 0.15rem 0.3rem 0.2rem;
  display: grid;
  gap: 0.2rem;
  min-height: calc(100vh - var(--bar-height) - var(--rail-strip-height));
  min-height: calc(100dvh - var(--bar-height) - var(--rail-strip-height));
  grid-template-rows: auto minmax(0, 1fr) auto;
  box-sizing: border-box;
}

.metrics__header {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.metrics__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
}

.metrics__intro {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  flex: 1;
}

.site-signin {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-inset);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-signin:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.site-signin--quiet {
  background: transparent;
  cursor: pointer;
  /* font-family only: the `font` shorthand also reset .site-signin's
     0.72rem size, so "Sign Out" rendered larger than its neighbours. */
  font-family: inherit;
}

/* Primary call to action beside the quiet Sign In: filled, same footprint. */
.site-signup {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--btn-bg);
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-signup:hover {
  filter: brightness(1.08);
}

.site-bar__account {
  /* No margin-left: auto here — .site-bar__end (indicator_and_scout.css)
     already right-aligns its contents via justify-content, as part of
     centering .stock-search between it and .site-bar__start. */
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-bar__account > form {
  margin: 0;
  display: inline-flex;
}

.site-bar__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  color: var(--ink-mute);
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.site-bar__theme:hover {
  color: var(--ink);
  border-color: var(--hairline);
  background: var(--surface-overlay);
}

.site-bar__theme:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Both glyphs ship in the markup; the active theme picks one. Swapping in CSS
   keeps the icon correct on the very first paint. */
.site-bar__theme-icon--sun {
  display: none;
}

:root[data-theme="light"] .site-bar__theme-icon--moon {
  display: none;
}

:root[data-theme="light"] .site-bar__theme-icon--sun {
  display: inline;
}

.alerts-page {
  max-width: 36rem;
}

.alerts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.alerts-list__group {
  display: grid;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-inset);
}

.alerts-list__group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.alerts-list__group-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.alerts-list__series {
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

a.alerts-list__series:hover {
  color: var(--accent);
}

.alerts-list__conditions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.alerts-list__condition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.alerts-list__condition:first-child {
  padding-top: 0;
  border-top: none;
}

.alerts-list__levels {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.alerts-list__remove {
  flex: 0 0 auto;
  padding: 0.35rem 0.65rem;
  border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--border));
  border-radius: 8px;
  background: transparent;
  color: var(--danger);
  font-size: 0.75rem;
  cursor: pointer;
}

.alerts-list__remove:hover {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger-strong) 14%, transparent);
}

.alerts-list__remove-form {
  margin: 0;
}

.alerts-page__empty {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.watchlists-page {
  max-width: 36rem;
}

/* Signed-in scan view: wider than the guest/auth shell. */
.auth.watchlists-page--wide {
  width: min(100% - 1.25rem, 64rem);
  max-width: none;
}

.watchlists-create {
  margin: 0 0 1.25rem;
}

.watchlists-create__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.watchlists-create__input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-inset);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
}

.watchlists-create__input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.watchlists-create__submit {
  padding: 0.65rem 1rem;
  border: 1px solid var(--btn-bg);
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.watchlists-create__submit:hover {
  background: var(--btn-hover-bg);
  border-color: var(--btn-hover-bg);
}

.watchlists-themes {
  margin: 0 0 1.25rem;
}

.watchlists-themes__title {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.watchlists-themes__hint {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.watchlists-themes__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.watchlists-themes__form {
  margin: 0;
}

.watchlists-themes__chip {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--hairline, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, var(--panel));
  color: var(--ink-soft, var(--text));
  font: inherit;
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.watchlists-themes__chip:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--hairline, var(--border)));
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
}

.watchlists-themes__save-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.watchlists-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

/* [hidden] alone loses to the class's own `display: grid` in the cascade —
   toggled by watchlists_panel_controller.js when the last/first card is
   removed/added without a page reload. */
.watchlists-list[hidden] {
  display: none;
}

.watchlists-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-inset);
}

.watchlists-list__item--stack {
  display: grid;
  gap: 0.7rem;
}

.watchlists-rsi {
  margin: 0 0 1.25rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-inset-deep);
}

.watchlists-rsi__title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.watchlists-rsi__lead,
.watchlists-rsi__meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.watchlists-rsi__form {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.7rem;
}

.watchlists-rsi__levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
}

.watchlists-rsi__check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
}

.watchlists-rsi__submit {
  justify-self: start;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.watchlists-rsi__submit:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

.watchlists-rsi__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.watchlists-add-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.watchlists-add-ticker__input {
  flex: 1 1 7rem;
  min-width: 0;
  max-width: 10rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 55%, var(--panel));
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.watchlists-add-ticker__submit {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.watchlists-add-ticker__submit:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
}

.watchlists-tickers__sort {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.35rem;
}

.watchlists-tickers__sort-btn {
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-family: var(--mono);
  cursor: pointer;
}

.watchlists-tickers__sort-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
}

.watchlists-tickers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.watchlists-tickers__item {
  display: grid;
  grid-template-columns: 4.25rem 4.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem 0.65rem;
  padding: 0.2rem 0;
}

.watchlists-tickers__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.watchlists-tickers__link:hover {
  text-decoration: underline;
}

/* The ticker's identity color — same swatch this symbol gets in the compare
   picker/chip and on its line if it's ever overlaid on a price chart. A
   scanning aid across rows and, once you've compared a ticker, a link back
   to it: not a status signal, so it stays off the gain/loss axis. */
.watchlists-tickers__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex: none;
}

.watchlists-tickers__spark {
  display: block;
  width: 72px;
  height: 22px;
  color: var(--gain-soft);
}

.watchlists-tickers__spark.is-down {
  color: var(--loss-soft);
}

.watchlists-tickers__spark--empty {
  width: 72px;
  height: 22px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--border) 55%, transparent);
}

.watchlists-tickers__stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.watchlists-tickers__price {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
}

.watchlists-tickers__sma.is-up {
  color: var(--gain-soft);
}

.watchlists-tickers__sma.is-down {
  color: var(--loss-soft);
}

.watchlists-tickers__sma-label {
  color: var(--muted);
  font-size: 0.68rem;
}

.watchlists-tickers__alerts {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.watchlists-tickers__alert {
  padding: 0.12rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: color-mix(in srgb, var(--panel-inset) 70%, transparent);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.watchlists-tickers__alert:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: var(--text);
}

.watchlists-tickers__alert--price {
  color: var(--text);
}

.watchlists-tickers__alert--rsi {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
}

.watchlists-tickers__alert--sma {
  border-color: color-mix(in srgb, var(--chart-ma50, #a78bfa) 40%, var(--border));
}

.watchlists-tickers__alert--move {
  border-color: color-mix(in srgb, var(--warning, #f59e0b) 40%, var(--border));
}

.watchlists-tickers__remove {
  padding: 0.2rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border));
  border-radius: 6px;
  background: transparent;
  color: var(--danger);
  font-size: 0.7rem;
  cursor: pointer;
}

.watchlists-tickers__remove-form {
  margin: 0;
}

@media (max-width: 560px) {
  .watchlists-tickers__item {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    grid-template-areas:
      "ticker stats remove"
      "spark stats remove";
  }

  .watchlists-tickers__link { grid-area: ticker; }
  .watchlists-tickers__spark,
  .watchlists-tickers__spark--empty { grid-area: spark; }
  .watchlists-tickers__stats { grid-area: stats; }
  .watchlists-tickers__remove-form { grid-area: remove; }
}

.watchlists-list__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.85rem;
}

.watchlists-rename {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 14rem;
}

.watchlists-rename__input {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 18rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 55%, var(--panel));
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

.watchlists-rename__input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.watchlists-rename__submit {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.watchlists-rename__submit:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
}

.watchlists-list__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
}

.watchlists-list__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-family: var(--mono);
}

.watchlists-list__delete {
  padding: 0.3rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--border));
  border-radius: 6px;
  background: transparent;
  color: var(--danger);
  font-size: 0.72rem;
  cursor: pointer;
}

.watchlists-list__delete:hover {
  border-color: var(--danger);
}

.watchlists-list__delete-form {
  margin: 0;
}

.watchlists-page--wide .watchlists-tickers__item {
  grid-template-columns: 5rem 4.5rem minmax(12rem, 1fr) auto;
}

.watchlists-gate__header {
  text-align: center;
}

.watchlists-gate__header .auth__lead {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.watchlists-gate {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
}

.watchlists-gate__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.watchlists-gate__cta:hover {
  background: color-mix(in srgb, var(--text) 88%, var(--accent));
}

.watchlists-gate__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.watchlists-gate__preview {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 70%, transparent), transparent),
    var(--panel-scrim);
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

.watchlists-gate__preview-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 70%, var(--panel));
  overflow: hidden;
}

.watchlists-gate__preview-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

.watchlists-gate__preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.watchlists-gate__preview-list li {
  display: grid;
  grid-template-columns: 3.5rem 2.5rem 3.2rem 3.6rem 1fr;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.watchlists-gate__preview-list li:last-child {
  border-bottom: 0;
}

.watchlists-gate__preview-list li > span:first-child {
  color: var(--text);
  font-weight: 500;
}

.watchlists-gate__preview-spark {
  width: 2.5rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.85;
}

.watchlists-gate__preview-list .is-up {
  color: var(--gain);
}

.watchlists-gate__preview-list .is-down {
  color: var(--loss);
}

.alerts-gate__header {
  text-align: center;
}

.alerts-gate__header .auth__lead {
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.alerts-gate {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin: 0 0 1.75rem;
}

.alerts-gate__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.alerts-gate__cta:hover {
  background: color-mix(in srgb, var(--text) 88%, var(--accent));
}

.alerts-gate__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.alerts-gate__preview {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--panel) 70%, transparent), transparent),
    var(--panel-scrim);
  opacity: 0.92;
  pointer-events: none;
  user-select: none;
}

.alerts-gate__preview-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 70%, var(--panel));
  overflow: hidden;
}

.alerts-gate__preview-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
}

.alerts-gate__preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.alerts-gate__preview-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.alerts-gate__preview-list li:last-child {
  border-bottom: 0;
}

.alerts-gate__preview-list li > span:first-child {
  color: var(--text);
  font-weight: 500;
}

.metrics__toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 0.55rem;
  flex: 0 1 auto;
  min-width: 0;
}


/* Brand layer. Shared button and card shape, loaded last so it applies on top
   of each component's own rule. Colors come from the tokens above. */
.metric-chart__send,
.bottom-tracker__alert-cta-submit,
.auth__submit,
.stock-congress__submit,
.tl-form__submit,
.site-signup,
.reports-request__submit,
.watchlists-create__submit,
.pricing-plan--pro .pricing-plan__cta:not(.pricing-plan__cta--soon) {
  border-radius: var(--radius-control);
}

.metric-chart__send:hover,
.bottom-tracker__alert-cta-submit:hover,
.auth__submit:hover,
.stock-congress__submit:hover,
.tl-form__submit:hover,
.site-signup:hover {
  background: var(--btn-hover-bg);
  filter: none;
}

.metric-chart,
.pulse-score,
.bottom-tracker__card,
.bottom-tracker[data-view="charts"] .bottom-tracker__card,
.recently-viewed,
.scout-hero__stage,
.proof-step,
.proof-ticker,
.proof-alert {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* Scout illustrations (ScoutImageHelper). The dark twin of an image swaps in
   with the theme; art with no dark twin sits on a light plate instead. */
.scout-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.scout-img--dark {
  display: none;
}

:root:not([data-theme="light"]) .scout-img--light {
  display: none;
}

:root:not([data-theme="light"]) .scout-img--dark {
  display: block;
}

.scout-plate {
  padding: 0.75rem;
  border-radius: var(--radius-card);
  background: #f8faf7;
  box-sizing: border-box;
}

.scout-img--avatar {
  flex: none;
  border-radius: 50%;
}

.scout-hero__mascot {
  margin: 0 auto 0.5rem;
}

.scout-empty__art {
  margin: 0 auto 0.5rem;
}

.alerts-page__empty .scout-empty__art,
.reports-empty .scout-empty__art {
  display: block;
}

.signup__art {
  width: 100%;
  max-width: 26rem;
  margin: 0.5rem auto 0;
}

.signup__icon .scout-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pricing-plan__art {
  width: 100%;
  max-width: 11rem;
  margin: 0 0 0.75rem;
}

.reports-header__art {
  float: right;
  width: 11rem;
  margin: 0 0 0.75rem 1rem;
}

.tl-banner {
  width: 100%;
  margin: 0 0 1rem;
  border-radius: var(--radius-card);
}

.indicator-page__art {
  float: right;
  width: 5.5rem;
  margin: 0 0 0.5rem 1rem;
}

.tl-hero__avatar {
  margin: 0 0 0.75rem;
}

/* /admin/queue: the owner's read-only queue view. */
.queue-admin {
  max-width: 62rem;
  margin: 1.5rem auto 4rem;
  padding: 0 1rem;
}

.queue-admin__meta {
  margin: 0.25rem 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.queue-health,
.queue-error {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
}

.queue-health--ok {
  border-color: color-mix(in srgb, var(--gain) 45%, var(--hairline));
  color: var(--gain);
}

.queue-health--stalled,
.queue-error {
  border-color: color-mix(in srgb, var(--loss) 55%, var(--hairline));
  color: var(--loss);
}

.queue-health ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.queue-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.queue-count {
  flex: 1 1 8rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
}

.queue-count span {
  display: block;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 600;
}

.queue-admin table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.queue-admin th,
.queue-admin td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--hairline-ghost);
  text-align: left;
}

.queue-admin th {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.queue-stale td {
  color: var(--loss);
  font-weight: 600;
}

.queue-buckets td {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Pricing: deep research reports ------------------------------------------- */

/* A stage with a soft green glow along its top edge. Dark by default, and a
   near-white version when the app is in its light theme (see the override
   below). Every colour in the stage reads from the variables set here. */
.pricing-page--report {
  width: min(100% - 2rem, 72rem);
}

.pricing-stage {
  --text: #eef1f6;
  --muted: #a3acba;
  --border: rgba(255, 255, 255, 0.11);
  --panel: rgba(255, 255, 255, 0.035);
  --accent: #5dd68a;
  --stage-base: #0a0c10;
  --stage-glow: rgba(70, 205, 120, 0.2);
  --stage-edge: transparent;
  --stage-shadow: none;
  --stage-link: #86e3a9;
  --tier-shadow: none;
  --free-edge: rgba(93, 214, 138, 0.55);
  --free-fill-top: rgba(93, 214, 138, 0.1);
  --free-fill-bottom: rgba(93, 214, 138, 0.02);
  --free-glow: 0 0 0 1px rgba(93, 214, 138, 0.18), 0 24px 60px -24px rgba(70, 205, 120, 0.4);
  --live-bg: #4cd37f;
  --live-ink: #04130a;
  --live-hover: #66e093;
  --callout-edge: rgba(93, 214, 138, 0.3);
  --callout-fill: rgba(93, 214, 138, 0.07);
  --sample-bg: rgba(255, 255, 255, 0.05);
  --sample-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --toggle-track: rgba(255, 255, 255, 0.06);
  --toggle-on: rgba(255, 255, 255, 0.14);
  --toggle-on-shadow: none;
  /* The rating chip reads the app's status colours; pick ones that suit the stage. */
  --success: #7fe3a2;
  --danger: #ff8f8f;
  --warning: #f3c969;
  --panel-inset-deep: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 3.75rem) clamp(1.1rem, 4vw, 3.25rem) clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--stage-edge);
  border-radius: 1.1rem;
  background:
    radial-gradient(60rem 26rem at 50% -8rem, var(--stage-glow), transparent 65%),
    var(--stage-base);
  box-shadow: var(--stage-shadow);
  color: var(--text);
  color-scheme: dark;
}

/* Light theme: a near-white stage with the app's own green. */
:root[data-theme="light"] .pricing-stage {
  --text: #0b1a14;
  --muted: #56655c;
  --border: rgba(11, 26, 20, 0.12);
  --panel: #ffffff;
  --accent: #2a7d36;
  --stage-base: #fbfdfb;
  --stage-glow: rgba(46, 139, 60, 0.14);
  --stage-edge: #dde6df;
  --stage-shadow: 0 1px 2px rgba(11, 26, 20, 0.05), 0 22px 56px -24px rgba(20, 60, 30, 0.2);
  --stage-link: #2a7d36;
  --tier-shadow: 0 1px 2px rgba(11, 26, 20, 0.05);
  --free-edge: rgba(46, 139, 60, 0.6);
  --free-fill-top: rgba(46, 139, 60, 0.09);
  --free-fill-bottom: #ffffff;
  --free-glow: 0 0 0 1px rgba(46, 139, 60, 0.14), 0 24px 56px -26px rgba(46, 139, 60, 0.4);
  --live-bg: #2e8b3c;
  --live-ink: #ffffff;
  --live-hover: #24762f;
  --callout-edge: rgba(46, 139, 60, 0.3);
  --callout-fill: rgba(46, 139, 60, 0.07);
  --sample-bg: #ffffff;
  --sample-shadow: 0 1px 2px rgba(11, 26, 20, 0.05), 0 20px 44px -24px rgba(20, 60, 30, 0.28);
  --toggle-track: #e9efea;
  --toggle-on: #ffffff;
  --toggle-on-shadow: 0 1px 3px rgba(11, 26, 20, 0.18);
  --success: #1f7a33;
  --danger: #b3261e;
  --warning: #8a5d00;
  --panel-inset-deep: #eef3ef;
  color-scheme: light;
}

.pricing-stage a {
  color: var(--stage-link);
}

.pricing-reports {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.25rem);
}

.pricing-reports h1,
.pricing-reports h2,
.pricing-reports h3,
.pricing-reports p {
  margin: 0;
}

.pricing-hero {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.pricing-reports h1 {
  font-size: clamp(1.85rem, 5.2vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.pricing-reports h1 span {
  display: block;
}

.pricing-reports h1 span + span {
  color: var(--muted);
}

.pricing-reports__lede {
  max-width: 32em;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.pricing-reports__status,
.pricing-sample__meta {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Credit Packs / Monthly Plans: one switch above the cards, no page reload. */
.pricing-toggle {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.pricing-toggle__bar {
  align-self: flex-start;
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--toggle-track);
}

.pricing-toggle__tab {
  padding: 0.5rem 1.15rem;
  white-space: nowrap;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.pricing-toggle__tab:hover {
  color: var(--text);
}

.pricing-toggle__tab.is-active {
  background: var(--toggle-on);
  box-shadow: var(--toggle-on-shadow);
  color: var(--text);
}

.pricing-toggle__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pricing-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pricing-panel[hidden] {
  display: none;
}

/* Four tiers in a row; the free one is lit because it is the one live action. */
.pricing-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.pricing-tier {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.2rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--panel);
  box-shadow: var(--tier-shadow);
}

.pricing-tiers--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-tier__unit {
  margin-left: 0.2rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-checks--compact {
  gap: 0.5rem;
  margin: 0.4rem 0 1.3rem;
  font-size: 0.9rem;
}

.pricing-checks--compact li {
  padding-left: 1.6rem;
}

.pricing-checks--compact li::before {
  width: 1rem;
  height: 1rem;
}

.pricing-checks--compact li::after {
  left: 0.37rem;
  width: 0.26rem;
  height: 0.48rem;
}

.pricing-tier--free {
  border-color: var(--free-edge);
  background: linear-gradient(180deg, var(--free-fill-top), var(--free-fill-bottom));
  box-shadow: var(--free-glow);
}

.pricing-tier__name {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.pricing-tier__price {
  margin-top: 0.35rem;
  font-size: clamp(2.1rem, 3.4vw, 2.7rem);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.pricing-tier__note {
  min-height: 2.6em;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.pricing-tier__cta {
  margin-top: auto;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.pricing-tier__cta--live {
  border-color: transparent;
  background: var(--live-bg);
  color: var(--live-ink);
  text-decoration: none;
}

.pricing-tier__cta--live:hover {
  background: var(--live-hover);
}

.pricing-stage .pricing-tier__cta--live {
  color: var(--live-ink);
}

.pricing-tier__cta--soon {
  color: var(--muted);
  cursor: default;
}

.pricing-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--callout-edge);
  border-radius: 0.8rem;
  background: var(--callout-fill);
}

.pricing-callout__text {
  font-size: 1rem;
  line-height: 1.45;
}

.pricing-callout__text strong {
  margin-right: 0.3rem;
}

.pricing-bulk {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(3, max-content);
  gap: 0.5rem clamp(1rem, 3vw, 2.25rem);
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-bulk__item {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.6rem;
  align-items: baseline;
}

.pricing-bulk__name {
  color: var(--muted);
  font-size: 0.85rem;
}

.pricing-bulk__price {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pricing-bulk__each {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.pricing-panel .pricing-reports__status {
  margin-top: -0.25rem;
}

/* What you get: a checklist beside a page from the sample report. */
.pricing-included {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}

.pricing-included h2,
.pricing-faq h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.pricing-checks {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.pricing-checks li {
  position: relative;
  padding-left: 1.85rem;
}

/* A green disc with a tick drawn from two borders. */
.pricing-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--live-bg);
}

.pricing-checks li::after {
  content: "";
  position: absolute;
  left: 0.42rem;
  top: 0.3em;
  width: 0.3rem;
  height: 0.55rem;
  border: solid var(--live-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pricing-sample {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.4rem 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--sample-bg);
  box-shadow: var(--sample-shadow);
}

.pricing-sample__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pricing-sample__ticker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.pricing-sample__excerpt {
  font-size: 1.05rem;
  line-height: 1.6;
}

.pricing-reports__sample-link {
  font-weight: 600;
}

/* Pro, coming soon: tick what you'd want, then join the waitlist. */
.pricing-pro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: 1.5rem clamp(1.5rem, 5vw, 3.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: var(--panel);
  box-shadow: var(--tier-shadow);
}

.pricing-pro__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.pricing-pro__badge {
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--free-edge);
  border-radius: 999px;
  color: var(--stage-link);
  font-size: 0.78rem;
  font-weight: 600;
}

.pricing-pro h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.pricing-pro__lede {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-pro__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-pro__features {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  border: 0;
}

.pricing-pro__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.pricing-pro__feature:last-child {
  border-bottom: 1px solid var(--border);
}

.pricing-pro__feature input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--live-bg);
  cursor: pointer;
}

.pricing-pro__feature strong,
.pricing-pro__feature small {
  display: block;
}

.pricing-pro__feature small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.pricing-pro__submit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pricing-pro__email {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.pricing-pro__email::placeholder {
  color: var(--muted);
}

.pricing-pro__email:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.pricing-pro__button {
  margin-top: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
}

/* FAQ: the heading on the left, the questions on the right. */
.pricing-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(1.25rem, 5vw, 3.5rem);
  align-items: start;
}

.pricing-faq__item {
  border-top: 1px solid var(--border);
}

.pricing-faq__item:last-child {
  border-bottom: 1px solid var(--border);
}

.pricing-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  cursor: pointer;
  list-style: none;
}

.pricing-faq__item summary::-webkit-details-marker {
  display: none;
}

.pricing-faq__item summary::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.pricing-faq__item[open] summary::after {
  transform: rotate(-135deg);
}

.pricing-faq__item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.pricing-faq h3 {
  font-size: 0.97rem;
  font-weight: 500;
}

.pricing-faq__item p {
  max-width: 44em;
  padding: 0 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

/* The shared disclaimer carries a large top margin meant for full pages. */
.pricing-reports__fine {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: -0.5rem;
}

.pricing-reports__fine .research-disclaimer {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.pricing-reports__fine .page-updated {
  margin: 0;
}

@media (max-width: 960px) {
  .pricing-tiers,
  .pricing-tiers--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pricing-bulk {
    grid-template-columns: 1fr;
    justify-content: start;
  }

  .pricing-included,
  .pricing-pro,
  .pricing-faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pricing-tiers,
  .pricing-tiers--three {
    grid-template-columns: 1fr;
  }

  .pricing-stage {
    padding: 1.5rem 1rem 1.25rem;
    border-radius: 0.9rem;
  }

  .pricing-toggle__bar {
    align-self: stretch;
  }

  .pricing-toggle__tab {
    flex: 1;
    padding: 0.5rem 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-faq__item summary::after,
  .pricing-toggle__tab {
    transition: none;
  }
}

/* Your Reports list on /reports: sits under the request form. */
.my-reports {
  margin-top: 1.9rem;
}

.my-reports .reports-examples__title {
  margin-bottom: 0.4rem;
}
