/* ReviewPulse design system for the app, loaded last (Nov 2026).
   Same type and palette as the landing page (Taste Skill kit: Bricolage Grotesque display, Figtree text,
   DM Mono figures; the brand's amber on warm near-black). One card style, one button style,
   sentence-case labels (no tracked capitals), quieter colour: the interface stays mostly neutral and
   amber marks only actions, the current item and the one figure that matters. */

:root, :root[data-theme="dark"] {
  --font: Figtree, system-ui, sans-serif;
  --display: "Bricolage Grotesque", Figtree, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --frame: #0f0e0c; --card: #171512; --raised: #1e1c18; --active: #27241f;
  --border: #2b2823; --rule: #221f1b; --control: #3b3730;
  --text: #f3efe7; --muted: #b0a99c; --faint: #8d877b;
  --accent: #ffb547; --accent-ink: #ffd08a; --accent-soft: rgba(255, 181, 71, .12);
  --radius-card: 14px;
}
:root[data-theme="light"] {
  --frame: #f6f3ee; --card: #ffffff; --raised: #f3efe8; --active: #ebe5da;
  --border: #e3ddd2; --rule: #ece7de; --control: #cfc8bb;
  --text: #15130f; --muted: #57514a; --faint: #6f695f;
  --accent: #9a5b00; --accent-ink: #7a4500; --accent-soft: #fbefdc;
}
html, body { background: var(--frame); }
body { font-family: var(--font); font-feature-settings: "ss01"; -webkit-font-smoothing: antialiased; }

/* headings: display face, medium weight, tight tracking, never bold-and-big */
h1, h2, .title-row h1, .card-h h2, .rs-top h2, .gd-head h2 {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; font-variation-settings: "wdth" 96;
}
.title-row h1 { font-size: clamp(30px, 1.6vw + 18px, 44px); line-height: 1.08; }
.card-h h2 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; }
h3, h4 { font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; }

/* labels in sentence case, 13px, no tracked capitals */
.nav-group, .kpi .l, .tbl th, .rp-roles button, .rp-ticker-h, .rp-trial-tag, .hud, .eyebrow, .label, .t-label {
  text-transform: none !important; letter-spacing: 0 !important; font-family: var(--font) !important;
  font-size: 13px !important; font-weight: 500 !important;
}
.kpi .v, .num, .tbl td.num { font-variant-numeric: tabular-nums; }
.kpi .v { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }

/* one card */
.card, .kpi, .boss, .locked, .lay-col, .mk-idea, .cm-paste, .plan {
  border-radius: var(--radius-card) !important; background: var(--card) !important;
  box-shadow: inset 0 0 0 1px var(--border) !important;
}
.card { transition: box-shadow 180ms ease, transform 180ms ease; }
a.card:hover, .card.link:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--control) !important; }

/* one button: solid amber for the main action, quiet outline for the rest; step on hover, press on click */
.btn { border-radius: 10px !important; font-family: var(--font) !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important;
  transition: transform 120ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary, .btn.xp, .band-btn { background: var(--accent) !important; color: #1a1408 !important; border: 0 !important; clip-path: none !important; }
:root[data-theme="light"] .btn.primary, :root[data-theme="light"] .btn.xp { background: #15130f !important; color: #f6f3ee !important; }
.btn.primary::after, .btn.xp::after, .btn.primary::before, .btn.xp::before { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* sidebar and top bar: flat, one hairline */
.side { border-right: 1px solid var(--border); }
.top { border-bottom: 1px solid var(--border); }
.nav a { border-radius: 8px; font-size: 14px; }
.nav a[aria-current="page"] { background: var(--active); color: var(--text); }
.nav a[aria-current="page"]::before { background: var(--accent); }
.brand { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }

/* no glows, gradients or neon text anywhere in the app */
.kpi.lead .v, .hstats b, .rp-track b { text-shadow: none !important; filter: none !important; }
[class*="glow"]::before, [class*="glow"]::after { box-shadow: none !important; }

/* tables and lists breathe */
.tbl td, .tbl th { padding-top: 11px; padding-bottom: 11px; }
.tbl tr + tr td { border-top: 1px solid var(--rule); }

/* long method notes fold into one line ("How this is calculated"), see redesign.js */
details.rp-how { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
details.rp-how > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
details.rp-how > summary::-webkit-details-marker { display: none; }
details.rp-how > summary::before { content: ""; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor;
  background: radial-gradient(circle at 50% 34%, currentColor 1.4px, transparent 1.6px), linear-gradient(currentColor, currentColor) 50% 70% / 1.5px 5px no-repeat; }
details.rp-how > summary:hover { color: var(--text); }
details.rp-how[open] > summary { margin-bottom: 6px; }
details.rp-how > p { margin: 0; max-width: 72ch; }

/* the app home (/start) keeps the search first; the landing page carries the marketing */
.home2 .h2-art .rp-itc-hero { display: none; }

@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none !important; }
  .btn:hover, a.card:hover { transform: none; }
}

/* sentence case everywhere: no tracked capitals in any screen (overrides the older per-screen styles) */
.shell *, .shell *::before, .shell *::after { text-transform: none !important; }
.shell :is(small, label, th, button, .chip, .tag, .badge, .pill, .seg, .tab, [class*="label"], [class*="eyebrow"], [class*="kicker"], [class*="hud"], [class*="group"], [class*="-h"]) { letter-spacing: 0 !important; }
.shell :is(h1, h2) { letter-spacing: -0.03em !important; }
.shell .kpi .v, .shell .price, .shell [class*="price"] b { font-family: var(--display); letter-spacing: -0.02em !important; }
