:root {
  --bg: #12061a;
  --bg-elev: #1a0a22;
  --bg-card: rgba(34, 14, 42, 0.92);
  --line: rgba(155, 89, 182, 0.2);
  --accent: #9B59B6;
  --accent-bright: #D7A6F0;
  --accent-dim: rgba(155, 89, 182, 0.16);
  --text: #f7eefb;
  --muted: #b89ab8;
  --up: #3dffb0;
  --down: #ff6b8a;
  --flat: #a8c4b4;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(14, 2, 18, 0.45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: Manrope, system-ui, sans-serif; min-height: 100%; }
body { min-height: 100dvh; overflow-x: hidden; }
.bg-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(155,89,182,.24), transparent 55%),
    radial-gradient(700px 380px at 100% 10%, rgba(215,166,240,.12), transparent 50%),
    linear-gradient(180deg, #082818 0%, #12061a 45%, #040c0a 100%);
}
.skip { position: absolute; left: 12px; top: -40px; background: var(--accent); color: #14061a; padding: 8px 12px; border-radius: 8px; font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }
.site-header, main, .site-footer { width: min(760px, calc(100% - 32px)); margin: 0 auto; }
.site-header { padding: 22px 0 8px; }
.pp-back {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid rgba(215,166,240,.28); background: rgba(40,12,48,.75);
  color: #f7eefb; text-decoration: none; font: 700 13px/1.2 Manrope, system-ui, sans-serif; width: fit-content;
}
.pp-back:hover, .pp-back:focus-visible { border-color: var(--accent-bright); color: var(--accent-bright); outline: none; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-bright); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 12px var(--accent); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 18px; }
.wordmark { display: flex; align-items: center; gap: 12px; }
.brand-name { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 34px; font-weight: 800; letter-spacing: .04em; line-height: .9; text-transform: uppercase; }
.brand-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.page-title { margin: 0 0 10px; font-size: clamp(1.7rem, 7vw, 2.55rem); line-height: 1.08; letter-spacing: -.03em; }
.lede { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(40,12,48,.85);
  color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none;
}
.meta-chip.source { color: var(--accent-bright); }
.card, .block { margin: 16px 0; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card);
  box-shadow: var(--shadow); padding: 16px;
}
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.block-head h2 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 1.55rem; letter-spacing: .04em; text-transform: uppercase; }
.block-sub { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; text-align: right; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quote-card {
  appearance: none; width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit;
  border: 1px solid var(--line); border-radius: 18px; background: rgba(24,10,32,.92); padding: 14px;
  min-height: 120px;
}
.quote-card:hover, .quote-card:focus-visible { border-color: var(--accent); outline: none; }
.quote-card .sym { margin: 0; color: var(--accent-bright); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.quote-card .name { margin: 4px 0 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.quote-card .price { margin: 12px 0 0; font-family: "Barlow Condensed", sans-serif; font-size: 1.85rem; font-weight: 800; line-height: 1; }
.quote-card .chg { margin: 8px 0 0; font-size: 13px; font-weight: 700; }
.quote-list { display: grid; gap: 8px; }
.quote-row {
  appearance: none; width: 100%; text-align: left; cursor: pointer; color: inherit; font: inherit;
  display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; align-items: center;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(24,10,32,.92);
  padding: 14px 12px; min-height: 56px;
}
.quote-row:hover, .quote-row:focus-visible { border-color: var(--accent); outline: none; }
.quote-row .sym { font-weight: 800; }
.quote-row .name { color: var(--muted); font-size: 12px; font-weight: 600; }
.quote-row .price { font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; font-weight: 800; text-align: right; }
.quote-row .chg { font-size: 13px; font-weight: 700; min-width: 72px; text-align: right; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--flat); }
.fail { border-color: rgba(255,107,138,.4); }
.btn-go {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 12px; min-height: 48px;
  padding: 12px 16px; border-radius: 14px; background: var(--accent); color: #12061a; font-weight: 800;
  text-decoration: none; width: 100%;
}
.note { color: var(--muted); font-size: 13px; line-height: 1.45; }
.note p { margin: 0; }
.site-footer { padding: 24px 0 40px; color: var(--muted); font-size: 13px; }
.site-footer .signed { color: var(--accent-bright); font-weight: 700; }
.sheet {
  width: min(420px, calc(100% - 24px)); border: 1px solid var(--line); border-radius: 20px;
  background: #1a0a22; color: var(--text); padding: 0; box-shadow: var(--shadow);
}
.sheet::backdrop { background: rgba(12,2,16,.72); }
.sheet form { margin: 0; padding: 16px; }
.sheet header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet h3 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 1.4rem; letter-spacing: .04em; text-transform: uppercase; }
.sheet-close { appearance: none; border: 0; background: transparent; color: var(--muted); font-size: 18px; min-width: 44px; min-height: 44px; cursor: pointer; }
.sheet-dl { margin: 12px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
.sheet-dl dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.sheet-dl dd { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; font-weight: 800; text-align: right; }
.sheet-note { color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (max-width: 520px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote-row { grid-template-columns: 1fr auto; }
  .quote-row .price { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .quote-row .chg { grid-column: 1; }
}
