/* ============================================================
   Scanner-specific styles. Namespaced under .sc-* to stay isolated
   from the rest of the app — delete this file to fully revert.
   Reads from tokens.css for palette, radius, and shadow.
   ============================================================ */

/* Widen the main container for the scanner page only — the base .main is
   capped at 1080px which starves the results table. Scoped via the body
   class so no other page shifts. */
body.page-scanner .main {
  max-width: 1500px;
}
@media (min-width: 1700px) {
  body.page-scanner .main { max-width: 1600px; }
}

/* Safety net: prevent any future scanner element from re-introducing a
   horizontal bleed on mobile. The wide results table is contained inside
   .sc-table-wrap (overflow-x: auto), so nothing on the page should ever
   exceed viewport width. Scoped to the scanner page so other pages keep
   their default behaviour. */
body.page-scanner { overflow-x: clip; }

.sc-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);   /* 268 = wide enough for two MM/DD/YYYY date pickers side-by-side; minmax lets results shrink so .sc-table-wrap scrolls internally instead of pushing the page */
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}
@media (max-width: 900px) {
  /* minmax(0, 1fr) — not raw 1fr — so the results track can shrink below the
     table's min-content width. Without this, the nowrap cells in .sc-table
     push the grid track to ~2000px, inflating the filter card and pinning
     the two date inputs to opposite edges of a page wider than the viewport. */
  .sc-layout { grid-template-columns: minmax(0, 1fr); }
}

/* Curated-universe callout — sits above the layout grid, sets expectations
   so users don't wonder why fewer tickers vs the digest. */
.sc-curated {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 4px 0 12px;
}
.sc-curated-icon {
  flex: none;
  color: var(--accent-strong);
  font-size: 14px;
  line-height: 1.5;
}
.sc-curated-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-curated p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--body);
}
.sc-curated strong { color: var(--ink); font-weight: 600; }
.sc-curated-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -- FILTER PANEL ------------------------------------------------------ */

.sc-filters {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sc-filters-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.sc-filters-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

.sc-filters--locked > *:not(.sc-filters-header):not(.sc-filters-lock) {
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
}
.sc-filters--locked .sc-filters-header .link-btn {
  opacity: 0.35;
  pointer-events: none;
}

/* The Insider-only lock overlay */
.sc-filters-lock {
  position: relative;
  order: -1;
  background: var(--accent-tint);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 4px 0;
}
.sc-filters-lock-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
}
.sc-filters-lock-body {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--body);
}
.sc-filters-lock-cta { margin: 0; }

.sc-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sc-field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.sc-hint {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.sc-input {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
  min-height: 34px;
  min-width: 0;              /* required so this can shrink inside minmax(0,1fr) grid tracks */
  width: 100%;
  box-sizing: border-box;
}
/* Mobile: iOS Safari zooms in on any input with font-size < 16px on focus,
   which is disorienting across 14 filter inputs. Bump to 16px on phones and
   pad slightly more for a comfortable tap target. */
@media (max-width: 720px) {
  .sc-input {
    font-size: 16px;
    padding: 10px 12px;
    min-height: 44px;
  }
}
/* Date inputs need slightly tighter padding and a smaller font so
   MM/DD/YYYY + the calendar picker icon fit inside a narrow sidebar cell. */
.sc-input[type="date"] {
  padding: 8px 6px 8px 8px;
  font-size: 12.5px;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
/* Mobile: match the 16px iOS-zoom-avoiding override above. Date inputs have
   room to breathe on phones since .sc-daterange stretches to full column. */
@media (max-width: 720px) {
  .sc-input[type="date"] {
    font-size: 16px;
    padding: 10px 8px;
  }
}
/* Style the WebKit calendar picker so it's visible on dark theme (default
   is a black glyph that vanishes against the dark canvas). */
.sc-input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.6;
  cursor: pointer;
  filter: none;
  padding: 0 2px;
  margin-left: 2px;
}
.sc-input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 0.9; }
[data-theme="dark"] .sc-input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4);   /* flips the black glyph to a bright icon on the dark canvas */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sc-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.4);
  }
}
/* Hide the browser default number-input spinner — noisy inside our narrow panel */
.sc-input[type="number"]::-webkit-outer-spin-button,
.sc-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.sc-input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.sc-input:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.sc-input:disabled {
  background: var(--surface);
  color: var(--muted);
  cursor: not-allowed;
}
select.sc-input {
  padding: 4px 6px;
  min-height: auto;
}

/* Quick-range chips — one click sets both date pickers to a common preset. */
.sc-quickrange {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.sc-quickchip {
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--body);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.sc-quickchip:hover {
  border-color: var(--accent-line);
  background: var(--accent-tint);
  color: var(--accent-strong);
}
.sc-quickchip.sc-quickchip--active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--btn-fg);
  font-weight: 600;
}
.sc-quickchip:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* Mobile: bump chips to a thumb-friendly size. The default 24-26px height
   fails the 44px tap-target guideline; four quick-range chips clustered
   together become a mis-tap magnet. */
@media (max-width: 720px) {
  .sc-quickchip {
    padding: 8px 14px;
    font-size: 13px;
    min-height: 36px;
  }
}

.sc-daterange, .sc-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);   /* minmax(0,1fr) lets tracks shrink below intrinsic input width */
  gap: 6px;
  align-items: center;
}
.sc-dash {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.sc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--body);
  cursor: pointer;
  user-select: none;
  margin-top: 2px;
}

.sc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--chip-bg);
  font-size: 12px;
  color: var(--body);
  cursor: pointer;
  user-select: none;
}
.sc-chip input {
  margin: 0;
  cursor: pointer;
}
.sc-chip input:checked ~ span {
  color: var(--accent-strong);
  font-weight: 600;
}
.sc-chip:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-tint);
}
/* Mobile: enlarge check-chip tap target for one-thumb use across announce
   time / SMA / Fib / SMA50 chip groups. */
@media (max-width: 720px) {
  .sc-chip {
    padding: 9px 14px;
    font-size: 13px;
    min-height: 36px;
  }
}

.sc-universe {
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border-soft);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* -- RESULTS PANEL ----------------------------------------------------- */

.sc-results {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-sm);
}

.sc-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 12px;
  flex-wrap: wrap;
}
.sc-results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sc-results-actions .btn[hidden] { display: none !important; }
.sc-results-count {
  margin: 0;
  font-size: 13px;
  color: var(--body);
}
.sc-results-tier {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
}
.sc-results-tier--insider {
  background: var(--accent);
  color: var(--btn-fg);
}
.sc-results-tier--free {
  background: var(--champagne);
  color: var(--ink);
}
.sc-results-tier--anon {
  background: var(--chip-bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.sc-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

.sc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
}
.sc-table thead th {
  position: sticky;
  top: 0;
  background: var(--card-alt);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.sc-table thead th.sc-th-sort {
  cursor: pointer;
  user-select: none;
}
.sc-table thead th.sc-th-sort:hover {
  background: var(--surface);
}
.sc-table thead th.sc-th-active {
  color: var(--accent-strong);
}
.sc-sort-arrow {
  font-size: 10px;
  color: var(--muted);
  margin-left: 2px;
}
/* When a .tip-wrap sits inside a sortable column header, keep the tooltip
   trigger from stealing the header's default cursor + inheriting text-align.
   The .tip-btn itself has its own cursor. */
.sc-table thead th .tip-wrap { vertical-align: middle; }
.sc-table thead th.sc-th-sort { cursor: pointer; }

/* Column-header tooltips: flip to open BELOW the header instead of above.
   The default upward direction gets clipped by .sc-table-wrap's overflow
   (overflow-x:auto forces overflow-y:auto per spec) and covered by the
   .sc-results-header row. Flipping downward puts the tooltip over the
   first data rows where it can breathe. Kept desktop-only — mobile
   already docks the tooltip to viewport bottom (see components.css). */
@media (min-width: 481px) {
  .sc-table thead .tip-content {
    bottom: auto;
    top: calc(100% + 8px);
  }
  .sc-table thead .tip-content::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--ink);
  }
  [data-theme="dark"] .sc-table thead .tip-content::after {
    border-top-color: transparent;
    border-bottom-color: var(--champagne);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .sc-table thead .tip-content::after {
      border-top-color: transparent;
      border-bottom-color: var(--champagne);
    }
  }
}

.sc-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--body);
  white-space: nowrap;
}
.sc-table tbody tr:nth-child(even) td {
  background: var(--card-alt);   /* subtle zebra — scannability on longer lists */
}
.sc-table tbody tr:hover td {
  background: var(--surface);    /* hover wins over zebra */
}
.sc-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Signal cell tints — draw the eye to interesting rows without shouting.
   EMS ≥ 7 = historically big mover; Maevol Ratio < 1 = market pricing
   below historical realized. Both are long-vol signals in isolation and
   stronger together. Tints applied only to the specific cell that carries
   the signal, not the whole row, so the table stays readable. */
.sc-cell-signal-hi {
  color: var(--pos);
  font-weight: 600;
}
.sc-cell-signal-lo {
  color: var(--brass);
  font-weight: 600;
}
[data-theme="dark"] .sc-cell-signal-hi { color: #34D399; }   /* brighter green for the dark canvas */
[data-theme="dark"] .sc-cell-signal-lo { color: var(--champagne); }

/* Strategy column — tag chip + score badge. Tag chip color mirrors /digest's
   row-color convention (bull/bear/vol) so users see the same visual language
   in both places. Score is a subtle inline badge. */
.sc-col-strategy {
  white-space: nowrap;
  min-width: 130px;
}
.sc-strat-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--body);
  margin-right: 6px;
  font-family: var(--font-body);
}
.sc-strat-tag--bull    { border-color: var(--accent-line); color: var(--pos); background: var(--pos-tint); }
.sc-strat-tag--bear    { border-color: #E9B6BC; color: var(--neg-deep); background: var(--neg-tint); }
.sc-strat-tag--vol     { border-color: #E0C48A; color: #7A5514; background: #FBF3E1; }
[data-theme="dark"] .sc-strat-tag--bull  { color: #34D399; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.35); }
[data-theme="dark"] .sc-strat-tag--bear  { color: #F87171; background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.35); }
[data-theme="dark"] .sc-strat-tag--vol   { color: var(--champagne); background: rgba(228, 206, 151, 0.12); border-color: rgba(228, 206, 151, 0.35); }
.sc-strat-score {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sc-strat-none { color: var(--muted); }

/* ---- Anti-copy Tier 1 ----------------------------------------------------
   Casual deterrent: block text selection on the results table and filter
   panel, so users can't just highlight-and-copy the data into a spreadsheet.
   Not bulletproof (DevTools works, source view works), but stops 95% of
   casual redistribution attempts. Ticker links remain copyable so real
   users can still grab a symbol for their broker. Right-click on the
   scanner layout is blocked in scanner.js. */
.sc-table,
.sc-table thead,
.sc-table tbody,
.sc-table tbody tr,
.sc-table tbody td,
.sc-table thead th,
.sc-filters,
.sc-curated {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
/* Whitelist the ticker link + its parent cell so users can still copy
   the symbol into their broker's watchlist input. */
.sc-table .sc-col-ticker,
.sc-table .sc-col-ticker *,
.sc-ticker-link {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
}

.sc-col-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.sc-col-ticker { font-weight: 600; }
.sc-ticker-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}
.sc-ticker-link:hover { text-decoration: underline; }

.sc-announce {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--body);
}
.sc-announce--bmo { border-color: var(--accent-line); color: var(--accent-strong); background: var(--accent-tint); }
.sc-announce--amc { border-color: #E0C48A; color: #7A5514; background: #FBF3E1; }

.sc-est {
  display: inline-block;
  margin-left: 2px;
  color: var(--muted);
  font-weight: 500;
  cursor: help;
}

/* -- Empty state, pager, misc ----------------------------------------- */

.sc-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
}
.sc-empty p { margin: 4px 0; font-size: 14px; }
.sc-empty-hint { font-size: 12px; }

.sc-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 14px 0 4px;
}
/* The HTML `hidden` attribute is normally `display:none`, but any element
   with an explicit display rule (like our flex layouts above) will override
   it. Restore the intended behavior for scanner elements that use `hidden`. */
.sc-layout [hidden],
.sc-pager[hidden],
.sc-empty[hidden],
.sc-filters-lock[hidden] {
  display: none !important;
}
.sc-page-label {
  font-size: 12px;
  color: var(--body);
  min-width: 60px;
  text-align: center;
}
.sc-pager .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   Insider preview strip — FOMO teaser for anon/free tiers.
   Static hardcoded rows; live data never touches this block.
   Delete this whole section to fully revert. See scanner.html
   #sc-preview and scanner.js applyTierUI for the toggle.
   ============================================================ */
.sc-preview {
  position: relative;
  margin: 20px 0 4px;                  /* nested inside .sc-results — sits below pager/empty state */
  background:
    linear-gradient(180deg, var(--accent-tint) 0%, transparent 55%),
    var(--card);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;                    /* keep the SAMPLE ribbon inside rounded corners */
}
.sc-preview[hidden] { display: none !important; }

.sc-preview-head {
  position: relative;
  margin-bottom: 14px;
  padding-right: 84px;                 /* leaves room for the ribbon */
}
.sc-preview-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.sc-preview-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.sc-preview-ribbon {
  position: absolute;
  top: -2px;
  right: -4px;
  padding: 4px 12px;
  background: var(--brass);
  color: #0B1E3F;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.10);
}

.sc-preview-table-wrap {
  position: relative;
  overflow: hidden;                    /* clips the diagonal SAMPLE watermark */
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
  background: var(--card);
}
/* Diagonal "SAMPLE" watermark laid over the whole preview table. Replaces
   the previous blur approach — values are now readable (better marketing —
   users see concrete EMS/Ratio/IV numbers) and the watermark makes intent
   unmistakable. Brass color matches the palette, low opacity so it doesn't
   overpower the values it sits on. pointer-events:none so clicks pass through. */
.sc-preview-table-wrap::after {
  content: 'SAMPLE';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--brass);
  opacity: 0.10;
  transform: rotate(-14deg);
  pointer-events: none;
  z-index: 2;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
}
[data-theme="dark"] .sc-preview-table-wrap::after {
  color: var(--champagne);
  opacity: 0.14;
}
.sc-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 13px;
}
.sc-preview-table thead th {
  background: var(--card-alt);
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.sc-preview-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  color: var(--body);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.sc-preview-table tbody tr:last-child td { border-bottom: 0; }

/* Sample-preview tbody: values are readable now (the diagonal SAMPLE
   watermark above makes intent unmistakable and reads better than a
   blur). user-select stays off so nobody accidentally copy-pastes the
   fake sample numbers into a spreadsheet thinking they're live. */
.sc-preview-blur {
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* Signal colors — high EMS glows green, low coverage glows brass — hints
   at the "conviction" story the real table tells. Same tokens as
   .sc-cell-signal-hi/lo above. */
.sc-preview-hi { color: var(--pos); font-weight: 600; }
.sc-preview-lo { color: var(--brass); font-weight: 600; }
[data-theme="dark"] .sc-preview-hi { color: #34D399; }
[data-theme="dark"] .sc-preview-lo { color: var(--champagne); }

.sc-preview-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--border);
  background: var(--chip-bg);
  color: var(--body);
  margin-right: 6px;
}
.sc-preview-tag--bull  { border-color: var(--accent-line); color: var(--pos); background: var(--pos-tint); }
.sc-preview-tag--bear  { border-color: #E9B6BC; color: var(--neg-deep); background: var(--neg-tint); }
.sc-preview-tag--vol   { border-color: #E0C48A; color: #7A5514; background: #FBF3E1; }
.sc-preview-score {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sc-preview-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;                     /* stacks on narrow phones */
}
.sc-preview-cta-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--body);
  flex: 1 1 260px;
}
.sc-preview-btn {
  flex: 0 0 auto;
}

.sc-preview-fineprint {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.01em;
}

/* Narrative callout — turns the blurred table from a spec sheet into a
   "here's how you'd trade this" walkthrough. Sits between the sample
   table and the CTA so the eye flows: see it → understand it → act. */
.sc-preview-narrative {
  margin: 16px 0 0;
  padding: 16px 18px;
  background: var(--card-alt);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.sc-preview-narrative-eyebrow {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.sc-preview-narrative-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--body);
}
.sc-preview-narrative-body + .sc-preview-narrative-body {
  margin-top: 10px;
}
.sc-preview-narrative-body strong {
  color: var(--ink);
  font-weight: 600;
}
.sc-preview-narrative-body em {
  color: var(--accent-strong);
  font-style: normal;
  font-weight: 500;
}

@media (max-width: 720px) {
  .sc-preview { padding: 18px 16px 16px; }
  .sc-preview-title { font-size: 16px; }
  .sc-preview-head { padding-right: 72px; }
  .sc-preview-ribbon { font-size: 10px; padding: 3px 10px; }
  .sc-preview-cta { padding: 12px; }
  .sc-preview-cta-body { flex-basis: 100%; }
  .sc-preview-btn { width: 100%; text-align: center; justify-content: center; }
  .sc-preview-narrative { padding: 14px 14px; }
  .sc-preview-narrative-body { font-size: 13px; }
}
