/* Smart Money, "Banca privada": warm black, ivory text, gold used sparingly,
   serif for titles and key figures. Same tokens as Theme.swift in the app. */
:root {
  --bg: #0b0d12;
  --surface: #14161c;
  --raised: #1c1f27;
  --hairline: rgba(255, 255, 255, 0.08);
  --accent: #FB651F;
  --on-accent: #0b0d12;
  --t1: #ffffff;
  --t2: #c3c9d4;
  --t3: #8b93a1;
  --green: #6fd6a0;
  --red: #ff8a73;
  --radius: 16px;
  --serif: "Avenir Next", "Nunito Sans", ui-sans-serif, system-ui, sans-serif;
  --din: "DIN Alternate", "Barlow", ui-sans-serif, system-ui, sans-serif;
  --sans: "Avenir Next", "Nunito Sans", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font: 15px/1.35 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.sheet-open { overflow: hidden; }
.glow {
  position: absolute; inset: 0 0 auto; height: 320px; pointer-events: none;
  background: linear-gradient(rgba(251, 101, 31, 0.10), transparent);
}
main {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px 8px;
}
.site-footer {
  position: relative; max-width: 720px; margin: 0 auto; display: flex; gap: 18px; flex-wrap: wrap;
  padding: 18px 24px calc(120px + env(safe-area-inset-bottom)); font-size: 12px; color: var(--t3);
}
.site-footer a, .site-footer button { color: var(--t3); font-size: 12px; }
.site-footer a:hover, .site-footer button:hover { color: var(--accent); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Type */
.overline {
  font-size: 11px; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--t3); white-space: nowrap;
}
.overline.t2 { color: var(--t2); }
.overline.gold, .gold { color: var(--accent); }
.green { color: var(--green); }
.red { color: var(--red); }
.t1 { color: var(--t1); }
.t2 { color: var(--t2); }
.t3 { color: var(--t3); }
.overline.soft { opacity: 0.8; }
.caption { font-size: 12px; }
.caption2 { font-size: 11px; }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.figure { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.figure-lg { font: 800 22px/1.15 var(--serif); font-variant-numeric: tabular-nums; }
.figure-xl { font: 800 36px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.serif-figure { font: 800 17px/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.serif-title { font: 800 20px/1.2 var(--serif); }
.serif-title.lg { font-size: 28px; margin-bottom: 18px; }
.serif-xl { font: 800 26px/1.15 var(--serif); }
.w52 { min-width: 52px; text-align: right; }
.pad4 { padding: 8px 4px 0; }

/* Header */
.screen-header { display: grid; gap: 6px; }
.screen-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.screen-header h1, .h-title { font: 800 34px/1.1 var(--serif); }
.subtitle { color: var(--t2); font-size: 15px; }
.glass-circle {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--t1);
  background: rgba(255, 255, 255, 0.07); border: 0.5px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.glass-circle:hover { background: rgba(255, 255, 255, 0.11); }

/* Search and segments */
.search {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 0 14px; min-height: 42px;
  background: var(--surface); border-radius: 12px; color: var(--t3);
}
.search input {
  flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--t1); font: inherit; font-size: 15px; padding: 10px 0;
}
.search input::placeholder { color: var(--t3); }
.search input::-webkit-search-cancel-button { filter: invert(0.6); }
.segments {
  display: flex; align-items: center; gap: 12px; margin-top: 8px;
  box-shadow: inset 0 -0.5px 0 var(--hairline);
}
.segment-scroll { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.segment-scroll::-webkit-scrollbar { display: none; }
.segment {
  padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--t3); white-space: nowrap;
  box-shadow: inset 0 -1.5px 0 transparent; transition: color 0.15s, box-shadow 0.2s;
}
.segment.on { color: var(--t1); box-shadow: inset 0 -1.5px 0 var(--accent); }
.segment:hover { color: var(--t1); }
.chamber {
  appearance: none; -webkit-appearance: none; background: none; border: 0; color: var(--accent);
  font: 500 14px var(--sans); padding: 8px 18px 8px 4px; cursor: pointer; max-width: 46%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23CFAE72' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}
.chamber option { background: var(--surface); color: var(--t1); }

/* Panels and ledgers */
.panel { background: var(--surface); border-radius: var(--radius); padding: 16px; }
.section-header {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 22px 4px 8px;
}
.ledger { display: grid; }
.ledger-cell {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px;
  background: var(--surface); position: relative; min-width: 0;
}
button.ledger-cell, a.ledger-cell { cursor: pointer; transition: background 0.12s; }
button.ledger-cell:hover, a.ledger-cell:hover { background: #1b1913; }
.ledger-cell.first, .ledger-cell.only { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.ledger-cell.last, .ledger-cell.only { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.ledger-cell.first::after, .ledger-cell.middle::after {
  content: ""; position: absolute; left: var(--inset, 16px); right: 0; bottom: 0; height: 0.5px; background: var(--hairline);
}
.row-main { display: grid; gap: 3px; flex: 1; min-width: 0; }
.row-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.row-title b { font-weight: 600; white-space: nowrap; }
.row-title .t3 { font-size: 13px; }
.row-sub { font-size: 13px; color: var(--t2); }
.row-end { display: grid; justify-items: end; gap: 4px; flex: none; }
.chevron { color: var(--t3); display: grid; }
.summary { display: flex; gap: 16px; margin-top: 18px; }
.summary-col { flex: 1; display: grid; gap: 4px; min-width: 0; }
.vrule { width: 0.5px; align-self: stretch; background: var(--hairline); flex: none; }
.footnote { color: var(--t3); font-size: 12px; padding: 16px 4px 0; line-height: 1.45; }
.progress { color: var(--t2); font-size: 13px; text-align: center; padding-top: 20px; }

/* Images */
.avatar { position: relative; width: var(--size); height: var(--size); flex: none; display: block; border-radius: calc(var(--size) * 0.24); overflow: hidden; }
.avatar.round { border-radius: 50%; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.2s; }
.avatar img.ok { opacity: 1; }
.avatar.logo img { object-fit: contain; background: #f5f3ee; padding: calc(var(--size) * 0.12); }
.avatar.logo.firm img { padding: calc(var(--size) * 0.22); }
.avatar.photo, .avatar.firm { box-shadow: inset 0 0 0 0.75px rgba(251, 101, 31, 0.35); }
.monogram {
  width: var(--size); height: var(--size); display: grid; place-items: center; flex: none;
  font: 400 calc(var(--size) * 0.38) / 1 var(--serif); color: var(--accent);
  background: var(--raised); box-shadow: inset 0 0 0 0.75px rgba(251, 101, 31, 0.35);
  border-radius: calc(var(--size) * 0.24);
}
.monogram.round { border-radius: 50%; }
.politician { position: relative; flex: none; width: var(--size); height: var(--size); }
.politician .avatar img { object-position: 50% 18%; }
.party {
  position: absolute; right: -1px; bottom: -1px; width: var(--dot); height: var(--dot); border-radius: 50%;
  box-shadow: 0 0 0 2px var(--surface);
}
.party.D { background: #3987e5; }
.party.R { background: #d95926; }
.party.I { background: #9085e9; }

/* Buttons */
.glass-button {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 20px;
  padding: 13px 16px; border-radius: 999px; color: var(--accent); font-weight: 600; font-size: 15px;
  background: rgba(255, 255, 255, 0.06); border: 0.5px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.glass-button:hover { background: rgba(255, 255, 255, 0.1); }

/* States */
.state { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 12px 12px; }
.state-icon { color: var(--t3); }
.state h3 { font: 800 20px/1.2 var(--serif); }
.state p { color: var(--t2); font-size: 14px; max-width: 420px; }
.state .glass-button { width: auto; padding: 11px 26px; }
.skeleton { pointer-events: none; }
.sk-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--raised); flex: none; }
.sk-lines { display: grid; gap: 7px; flex: 1; }
.sk-lines i { display: block; height: 11px; border-radius: 6px; background: var(--raised); width: 55%; }
.sk-lines i + i { width: 80%; opacity: 0.6; }
.skeleton, .dimmed { animation: pulse 1.4s ease-in-out infinite; }
.dimmed { opacity: 0.45; }
@keyframes pulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .skeleton, .dimmed { animation: none; } }

/* Sheet */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s ease-out;
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(30px); } }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 28px 28px 0 0; padding: 24px 20px calc(28px + env(safe-area-inset-bottom));
  border: 0.5px solid rgba(255, 255, 255, 0.1); border-bottom: 0;
  animation: rise 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) { .sheet-backdrop, .sheet { animation: none; } }
@media (min-width: 720px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 28px; border-bottom: 0.5px solid rgba(255, 255, 255, 0.1); }
}
.sheet-close { position: sticky; top: 0; margin-left: auto; z-index: 1; }
.sheet-body { display: grid; gap: 22px; margin-top: -24px; }
.sheet-body > .glass-button { margin-top: 0; }
.sheet-body .section-header { padding: 0 4px; margin-bottom: -14px; }
.sheet-head { display: flex; align-items: center; gap: 14px; padding-right: 52px; }
.sheet-head h2 { font: 800 28px/1.1 var(--serif); }
.big-figure { display: grid; gap: 4px; }
.detail-rows { padding: 0 16px; }
.detail-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 15px;
  box-shadow: inset 0 -0.5px 0 var(--hairline);
}
.detail-row:last-child { box-shadow: none; }
.detail-row > span:first-child { color: var(--t2); }
.detail-row > :last-child { font-weight: 500; text-align: right; }
.detail-row a:hover { color: var(--accent); }

/* Tab bar */
.tabbar {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(34, 31, 25, 0.62); border: 0.5px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.tab {
  display: grid; justify-items: center; gap: 2px; padding: 7px 14px 6px; border-radius: 999px; min-width: 76px;
  color: var(--t1); font-size: 11px; font-weight: 600;
}
.tab svg { opacity: 0.9; }
.tab.on { color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.tab:not(.on):hover { background: rgba(255, 255, 255, 0.05); }
.tab span { white-space: nowrap; }
@media (max-width: 440px) {
  .tabbar { gap: 0; padding: 4px; }
  .tab { min-width: 0; padding: 7px 11px 6px; font-size: 10.5px; }
}

/* Politicians carousel */
.carousel { display: flex; gap: 14px; overflow-x: auto; padding: 2px 4px 6px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.active-politician { display: grid; justify-items: center; gap: 3px; width: 66px; flex: none; transition: opacity 0.15s; }
.active-politician .name { font-size: 13px; font-weight: 500; max-width: 66px; margin-top: 4px; }
.active-politician.dim { opacity: 0.4; }
.active-politician.on .avatar { box-shadow: 0 0 0 2px var(--accent); }
.active-politician .party { box-shadow: 0 0 0 2px var(--bg); }

/* Wall Street */
.ws-card { display: grid; gap: 10px; width: 100%; min-width: 0; }
.ws-top { display: flex; align-items: center; gap: 12px; }
.ws-top > .overline { align-self: flex-start; padding-top: 4px; }
.ws-grade { font-size: 16px; padding-left: 52px; }
.news { display: flex; gap: 6px; align-items: flex-start; justify-content: space-between; color: var(--t2); font-size: 13px; padding-left: 52px; }
.news svg { flex: none; margin-top: 1px; }
.news:hover { color: var(--t1); }

/* Investors */
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 500; margin: 0 0 14px -4px; }
.investor-head { display: flex; align-items: center; gap: 14px; }
.investor-head p { font-size: 15px; margin-top: 3px; }
.blurb { margin: 16px 0; font-size: 15px; }
.key-figures { display: flex; gap: 14px; }
.key-figure { flex: 1; display: grid; gap: 4px; min-width: 0; }
.chart-panel { margin-top: 22px; display: grid; gap: 10px; padding: 18px; }
.chart-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chart-sel { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.history { padding: 4px 0 20px; }
.hplot { position: relative; height: 130px; margin-right: 52px; box-shadow: inset 0 -0.5px 0 var(--hairline); }
.hgrid { position: absolute; left: 0; right: 0; height: 0; border-top: 0.5px solid var(--hairline); }
.hgrid span { position: absolute; right: -52px; width: 48px; transform: translateY(-50%); font-size: 11px; color: var(--t3); font-variant-numeric: tabular-nums; }
.hbars { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.hbar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: pointer; }
.hbar i { display: block; width: 72%; border-radius: 3px 3px 0 0; background: var(--accent); opacity: 0.3; transition: opacity 0.12s; }
.hbar:hover i { opacity: 0.6; }
.hbar.on i { opacity: 1; }
.hyear { position: absolute; left: 14%; bottom: -19px; font-size: 11px; color: var(--t3); }
.page-inversores .segments { margin-top: 22px; }
.donut-panel { padding: 18px; display: grid; gap: 18px; }
.donut { position: relative; width: 240px; max-width: 100%; margin: 0 auto; }
.donut svg { display: block; width: 100%; height: auto; }
.donut path { stroke: var(--surface); stroke-width: 2; cursor: pointer; transition: opacity 0.15s; }
.donut path.dim { opacity: 0.35; }
.donut-center {
  position: absolute; inset: 0; margin: auto; width: 130px; height: 90px; pointer-events: none;
  display: grid; align-content: center; justify-items: center; gap: 3px; text-align: center;
}
.donut-center b { font-size: 14px; max-width: 120px; }
.legend { display: grid; }
.legend-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 6px; border-radius: 8px; }
.legend-row.on, .legend-row:hover { background: rgba(34, 31, 25, 0.6); }
.legend-row .row-main { gap: 1px; }
.legend-row b { font-weight: 600; font-size: 14px; }
.swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; display: inline-block; }
.swatch.sm { width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.chev { color: var(--t3); display: grid; transition: transform 0.2s; }
.chev.open { transform: rotate(180deg); }
.hair { border: 0; height: 0.5px; background: var(--hairline); margin: 0 0 0 22px; }
.rest-list { padding: 0 0 6px 22px; }
.rest-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; min-width: 0; }
.rest-row b { font-size: 13px; font-weight: 600; }
.rank { width: 30px; flex: none; color: var(--t3); font-size: 11px; font-variant-numeric: tabular-nums; }
.position-line { display: grid; gap: 9px; }
.pl-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pl-top .rank { width: 18px; font-size: 12px; }
.pl-top b { font-size: 14px; }
.weight-bar { height: 2px; border-radius: 2px; background: var(--raised); margin-left: 76px; }
.weight-bar i { display: block; height: 100%; border-radius: 2px; background: rgba(251, 101, 31, 0.8); min-width: 3px; }
.tag { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cash { margin-top: 12px; display: grid; gap: 14px; padding: 18px; }
.cash-bar { display: flex; gap: 2px; height: 12px; }
.cash-bar i { border-radius: 2px; min-width: 4px; }
.cash-bar i:first-child { border-radius: 4px 2px 2px 4px; }
.cash-bar i:last-child { border-radius: 2px 4px 4px 2px; }
.cash-parts { display: flex; gap: 14px; }
.cash-part { flex: 1; display: grid; gap: 4px; }
.row-sub.gold { color: var(--accent); }

/* Filters under a section */
.pills { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; }
.pill {
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--t2);
  background: var(--surface); box-shadow: inset 0 0 0 0.5px var(--hairline);
}
.pill.on { color: var(--on-accent); background: var(--accent); }
.pill:not(.on):hover { color: var(--t1); }
.note { color: var(--t2); font-size: 13px; padding: 14px 4px 0; line-height: 1.45; }

/* Groups, stacks and quotes */
.group-head { display: flex; align-items: center; gap: 12px; width: 100%; }
.stack { display: flex; align-items: center; }
.stack > * + * { margin-left: -7px; }
.stack .avatar { box-shadow: 0 0 0 2px var(--surface); }
.quote { font-size: 13px; color: var(--t2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quote.full { -webkit-line-clamp: unset; display: block; color: var(--t1); font-size: 15px; }
.badge {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 6px; background: var(--raised); color: var(--accent); margin-right: 6px; vertical-align: 1px;
}
.row-main.wide { gap: 6px; }
.change { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank.sm { width: 22px; font-size: 12px; }
.site-footer .langs { display: flex; gap: 12px; margin-left: auto; }
.site-footer .langs button.on { color: var(--accent); }

/* Company page */
.company, .company section { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.company .key-figure .overline { white-space: normal; }
.company section { gap: 10px; }
.company .chart-panel { margin-top: 0; }
.company .key-figures { margin-top: 18px; }
.note.flush { padding: 0 4px; }

/* Desktop (1024 px and wider): the tab bar becomes a sidebar on the left,
   with the footer at its foot, and sheets open as a panel on the right. */
.brand { display: none; }
@media (min-width: 1024px) {
  body { padding-left: 248px; }
  .glow { left: 248px; }
  main { max-width: 920px; padding: 44px 48px 8px; }
  .screen-header h1, .h-title { font-size: 40px; }

  .tabbar {
    left: 0; top: 0; bottom: 0; transform: none; width: 248px;
    flex-direction: column; gap: 2px; padding: 28px 16px 160px;
    border-radius: 0; border: 0; border-right: 0.5px solid var(--hairline);
    background: rgba(22, 20, 15, 0.92); box-shadow: none;
  }
  .brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 26px; font: 800 21px/1 var(--serif); }
  .brand-mark {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
    background: var(--bg); border: 0.5px solid rgba(251, 101, 31, 0.5); color: var(--accent); font: 800 22px/1 var(--serif);
  }
  .tab {
    display: flex; align-items: center; justify-items: start; gap: 12px; min-width: 0;
    padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--t2);
  }
  .tab.on { color: var(--t1); background: rgba(255, 255, 255, 0.06); box-shadow: inset 2px 0 0 var(--accent); }
  .tab.on svg { color: var(--accent); }
  .tab:not(.on):hover { color: var(--t1); }

  .site-footer {
    position: fixed; z-index: 11; left: 0; bottom: 0; width: 248px; max-width: none; margin: 0;
    flex-direction: column; gap: 10px; padding: 20px 26px 24px; border-right: 0.5px solid var(--hairline);
  }
  .site-footer .langs { margin-left: 0; }
  main { padding-bottom: 64px; }

  .sheet-backdrop { align-items: stretch; justify-content: flex-end; }
  .sheet {
    max-width: 540px; max-height: none; height: 100vh; border-radius: 0;
    border: 0; border-left: 0.5px solid rgba(255, 255, 255, 0.1);
    padding: 28px 32px 40px; animation: slide 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  @keyframes slide { from { transform: translateX(40px); opacity: 0.6; } }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) { .sheet { animation: none; } }


/* The Silicon Guys: tema noturno com a grelha de 72 px a 3,5 % (DESIGN.md), títulos em maiúsculas e a assinatura da marca. */
body { background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 72px 72px; background-attachment: fixed; }
.screen-header h1, .h-title, .sheet-head h2 { text-transform: uppercase; letter-spacing: -0.025em; line-height: 1; }
.brand small { display: block; margin-top: 3px; font: 600 10px/1 var(--din); letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); }
.site-footer a[href*="thesiliconguys"] { color: var(--accent); }

/* Prices and indices: TradingView widgets */
.indices { position: relative; z-index: 1; max-width: 720px; margin: 14px auto 0; min-height: 46px; padding: 0 20px; }
@media (min-width: 1024px) { .indices { max-width: 920px; padding: 0 48px; } }
.price-widget { margin: 4px 0 18px; min-height: 120px; }
.sp-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--orange, #FB651F); color: var(--orange, #FB651F); font-size: 11px; font-weight: 700; letter-spacing: .04em; vertical-align: middle; }
.signal { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; }
.signal + .signal { border-top: 1px solid rgba(255,255,255,.07); }
.signal-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: #6b7280; }
.signal-dot.green { background: var(--green); } .signal-dot.red { background: var(--red); }
.signal b { display: block; } .signal span.t2 { font-size: 14px; }

/* Company logos: no initials behind or while loading; they only appear if the logo does not exist */
.avatar.logo .monogram { visibility: hidden; }
.avatar.logo.failed .monogram { visibility: visible; }
.avatar.logo img { opacity: 0; transition: opacity .2s; }
.avatar.logo img.ok { opacity: 1; }
/* Index strip: dark box while TradingView loads */
.indices { background: transparent; }
.indices iframe { background: #131722; border-radius: 12px; }
.avatar.logo { background: #f5f3ee; }
.avatar.logo.failed { background: transparent; }

.explain { margin: 4px 0 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(251,101,31,.28); background: rgba(251,101,31,.06); }
.explain b { display: block; margin-bottom: 4px; font: 700 11px/1 var(--din); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.explain p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--t2); }

/* Navigation: the selected tab is the orange pill of the "Ver os packs" button */
.tab { position: relative; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.tab-ico { display: grid; place-items: center; }
.tab.on {
  color: #0b0d12; font-weight: 800; background: var(--accent);
  box-shadow: 0 10px 28px rgba(251, 101, 31, .38), 0 0 0 4px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.tab.on svg { color: #0b0d12; opacity: 1; }
@media (max-width: 1023px) {
  .tab.on { border-radius: 14px; }
}
@media (min-width: 1024px) {
  .tabbar { gap: 8px; background: linear-gradient(180deg, rgba(251, 101, 31, .10), rgba(22, 20, 15, .94) 38%), rgba(22, 20, 15, .94); }
  .brand-mark { box-shadow: 0 0 22px rgba(251, 101, 31, .45); }
  .tab { padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 15px; gap: 12px; }
  .tab-ico { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: background .18s ease, box-shadow .18s ease; }
  .tab:not(.on):hover { transform: translateX(5px); background: rgba(255, 255, 255, .05); }
  .tab:not(.on):hover .tab-ico { background: rgba(251, 101, 31, .16); box-shadow: inset 0 0 0 1px rgba(251, 101, 31, .45); }
  .tab:not(.on):hover svg { color: var(--accent); }
  .tab.on { box-shadow: 0 12px 32px rgba(251, 101, 31, .42), 0 0 0 5px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .4); animation: tab-glow 3.4s ease-in-out infinite; }
  .tab.on .tab-ico { background: #0b0d12; box-shadow: none; }
  .tab.on svg { color: var(--accent); }
  .tab.on::after { content: "→"; margin-left: auto; font-weight: 800; font-size: 18px; }
}
@keyframes tab-glow { 50% { box-shadow: 0 12px 40px rgba(251, 101, 31, .6), 0 0 0 7px rgba(255, 255, 255, .05), inset 0 1px 0 rgba(255, 255, 255, .4); } }
@media (prefers-reduced-motion: reduce) { .tab.on { animation: none !important; } .tab { transition: none; } }

/* Silício: silent, in the corner, opens the packs balloon */
@keyframes silicio-float { 50% { transform: translateY(-7px); } }
.silicio-ajuda { --s: 92px; position: fixed; right: 14px; bottom: 92px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
@media (min-width: 1024px) { .silicio-ajuda { --s: 132px; right: 26px; bottom: 18px; } }
.silicio-ajuda-corpo { width: var(--s); height: var(--s); padding: 0; background: none; border: 0; cursor: pointer; animation: silicio-float 3.2s ease-in-out infinite; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
.silicio-ajuda-corpo svg { width: 100%; height: 100%; }
.silicio-ajuda-corpo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 24px; }
.silicio-ajuda-balao { width: min(320px, calc(100vw - 28px)); background: #fff; color: #0b0d12; border-radius: 20px; padding: 18px 18px 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.silicio-ajuda-balao[hidden] { display: none; }
.silicio-ajuda-titulo { margin: 0; font-weight: 800; font-size: 1.05rem; line-height: 1.25; }
.silicio-ajuda-texto { margin: 6px 0 0; font-size: .92rem; line-height: 1.4; color: rgba(11, 13, 18, .72); }
.silicio-ajuda-cta { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 9999px; background: var(--accent); color: #0b0d12 !important; font-weight: 800; padding: 12px 18px; text-decoration: none; }
.silicio-ajuda-cta:hover { background: #ff7a3a; }
.silicio-ajuda-entrar { margin-top: 10px; display: block; text-align: center; font-size: .85rem; font-weight: 600; color: rgba(11, 13, 18, .6) !important; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .silicio-ajuda-corpo { animation: none; } }

@media (min-width: 1024px) {
  .tabbar { justify-content: center; }
  .tabbar .brand { position: absolute; top: 28px; left: 16px; padding-bottom: 0; }
}

/* Navbar of The Silicon Guys (same glass pill as thesiliconguys.com) */
body { padding-top: 96px; }
.navb { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; justify-content: center; padding: 14px clamp(12px, 3vw, 24px) 0; pointer-events: none; }
.navb > * { pointer-events: auto; }
.navb-pill { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; max-width: 1200px; height: 76px; gap: 10px; padding: 0 10px 0 24px; border-radius: 9999px; background: rgba(11, 13, 18, .74); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border: 1px solid rgba(255, 255, 255, .13); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 34px rgba(0, 0, 0, .42); transition: max-width .38s cubic-bezier(.4, 0, .2, 1), height .38s cubic-bezier(.4, 0, .2, 1), background .38s, box-shadow .38s; }
.navb-pill::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; border-radius: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); opacity: .75; pointer-events: none; }
.navb[data-scrolled="true"] .navb-pill { max-width: 1020px; height: 64px; background: rgba(11, 13, 18, .9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 14px 40px rgba(0, 0, 0, .5); }
.navb-logo { display: inline-flex; align-items: center; gap: 10px; border-radius: 9999px; transition: transform .38s; grid-column: 1; justify-self: start; }
.navb[data-scrolled="true"] .navb-logo { transform: scale(.9); }
.navb-logo img { height: 44px; width: 44px; border-radius: 9999px; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); }
.navb-marca { display: none; font: 800 1.05rem/1 var(--serif); color: #fff; text-transform: uppercase; letter-spacing: .04em; }
@media (min-width: 640px) { .navb-marca { display: inline; } }
.navb-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 12px 16px; border-radius: 14px; font-size: 1.02rem; font-weight: 600; color: rgba(255, 255, 255, .86); transition: color .18s, background .18s; }
.navb-link:hover { color: #fff; background: rgba(255, 255, 255, .09); }
.navb-link[aria-current="page"] { color: #FB651F; }
.navb-entrar { display: none; }
@media (min-width: 768px) { .navb-entrar { display: inline-flex; padding: 12px 10px; } }
@media (min-width: 1024px) { .navb-entrar { padding: 12px 16px; } }
.navb-cta { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 9999px; white-space: nowrap; background: #FB651F; color: #0b0d12; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 18px rgba(251, 101, 31, .32); transition: filter .16s, box-shadow .16s, transform .16s, height .38s, padding .38s; }
.navb-cta:hover { filter: brightness(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 24px rgba(251, 101, 31, .42); }
.navb-cta:active { transform: translateY(1px); }
.navb[data-scrolled="true"] .navb-cta { height: 46px; padding: 0 20px; }
.navb-burger { display: none; height: 52px; width: 52px; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, .13); background: none; color: #fff; cursor: pointer; transition: background .18s; }
.navb-burger:hover { background: rgba(255, 255, 255, .09); }
.navb-painel { position: absolute; top: calc(100% + 10px); left: 0; right: 0; display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 24px; background: rgba(16, 14, 20, .92); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.navb-painel[hidden] { display: none; }
.navb-painel .navb-link { justify-content: space-between; padding: 14px 16px; font-size: 1rem; }
.navb a:focus-visible, .navb button:focus-visible { outline: 2px solid #FB651F; outline-offset: 3px; }
.navb-links { display: none; align-items: center; gap: 2px; grid-column: 2; justify-self: center; }
.navb-direita { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) { .navb-links { display: flex; } .navb-burger { display: none !important; } .navb-painel { display: none !important; } }
@media (max-width: 767px) {
  body { padding-top: 78px; }
  .navb-burger { display: inline-flex; height: 42px; width: 42px; }
  .navb { padding: 10px 12px 0; }
  .navb-pill { height: 62px; gap: 8px; padding: 0 8px 0 14px; }
  .navb[data-scrolled="true"] .navb-pill { height: 56px; }
  .navb-logo img { height: 36px; width: 36px; }
  .navb-cta { height: 42px; padding: 0 16px; gap: 6px; font-size: .9rem; }
  .navb[data-scrolled="true"] .navb-cta { height: 38px; padding: 0 14px; }
  .navb-painel { border-radius: 20px; }
}
@media (min-width: 1024px) {
  .tabbar { top: 96px; padding-top: 22px; }
  .tabbar .brand { top: 22px; }
  .glow { top: 0; }
}
@media (prefers-reduced-motion: reduce) { .navb-pill, .navb-logo, .navb-cta { transition: none; } }

/* Desktop: the menu is a floating glass card like the navbar; it shrinks with the scroll */
@media (min-width: 1024px) {
  body { padding-left: 288px; }
  .glow { left: 0; }
  .tabbar {
    left: 24px; right: auto; top: calc(50% + 44px); bottom: auto; transform: translateY(-50%);
    width: 236px; height: auto; align-items: stretch; justify-content: flex-start; gap: 8px; padding: 26px 14px 18px;
    border-radius: 32px; border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(11, 13, 18, .74); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 10px 34px rgba(0, 0, 0, .42);
    transition: width .38s cubic-bezier(.4, 0, .2, 1), padding .38s cubic-bezier(.4, 0, .2, 1), background .38s, box-shadow .38s;
  }
  .tabbar::before { content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); opacity: .75; pointer-events: none; }
  .tabbar .brand { position: static; justify-content: center; padding: 0 0 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .08); transition: font-size .38s, padding .38s; }
  .brand > span { text-align: left; }
  .tab { justify-content: flex-start; }
  .site-footer {
    left: 24px; width: 236px; bottom: 18px; padding: 0 12px; align-items: center; text-align: center; gap: 6px;
    background: none; border: 0; font-size: 12px;
  }
  /* scrolled: narrower, tighter, the way the navbar closes up */
  body.scrolled .tabbar { width: 206px; padding: 18px 10px 12px; background: rgba(11, 13, 18, .9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 14px 40px rgba(0, 0, 0, .5); }
  body.scrolled .tabbar .brand { padding-bottom: 12px; font-size: 18px; }
  body.scrolled .tab { font-size: 14px; padding: 6px 12px 6px 6px; }
  body.scrolled .tab-ico { width: 32px; height: 32px; }
  body.scrolled .site-footer { width: 206px; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) { .tabbar, .tabbar .brand { transition: none; } }

.logo-credit { margin: 0; padding: 8px 20px 120px; text-align: center; font-size: 11px; }
.logo-credit a { color: var(--t3); opacity: .7; }
.logo-credit a:hover { color: var(--accent); opacity: 1; }
@media (min-width: 1024px) {
  .logo-credit { padding-bottom: 32px; }
  .site-footer { bottom: 22px; }
}
/* Wide screens: the content sits in the middle of the window, under the navbar, with the card in the left margin */
@media (min-width: 1500px) { body { padding-right: 288px; } }

/* Company summary: animated cards */
.resumo { margin: 4px 0 8px; }
.resumo-head { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 4px 12px; }
.resumo-head .overline { font: 700 11px/1 var(--din); letter-spacing: .22em; text-transform: uppercase; color: var(--t3); }
.resumo-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 720px) { .resumo-grid { grid-template-columns: 1fr 1fr; } .rc-wide { grid-column: 1 / -1; } }
.rc { position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: 22px; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); opacity: 0; transform: translateY(14px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms), box-shadow .25s, border-color .25s; }
.rc.in { opacity: 1; transform: none; }
.rc:hover { border-color: rgba(251, 101, 31, .45); box-shadow: 0 12px 34px rgba(251, 101, 31, .12), inset 0 1px 0 rgba(255, 255, 255, .08); }
.rc-label { font: 700 11px/1 var(--din); letter-spacing: .2em; text-transform: uppercase; color: var(--t3); margin-bottom: 12px; }
.rc-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rc-big b { font: 800 40px/1 var(--serif); letter-spacing: -.02em; }
.rc-big span { color: var(--t2); font-size: 14px; }
.rc-foot { margin: 12px 0 0; font-size: 12.5px; line-height: 1.4; color: var(--t3); }
.rc-empty { margin: 0; color: var(--t3); font-size: 14px; }
.chip { padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .07); }
.chip.green { color: var(--green); background: rgba(111, 214, 160, .12); } .chip.red { color: var(--red); background: rgba(255, 138, 115, .12); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 4px 0 8px; background: var(--t3); }
.dot.green { background: var(--green); } .dot.red { background: var(--red); } .dot.grey { background: #8b93a1; }
/* ring */
.rc-wide:first-child { display: flex; align-items: center; gap: 22px; }
.rc-ring { position: relative; width: 132px; height: 132px; flex: none; }
.rc-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rc-ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.rc-ring .track { stroke: rgba(255, 255, 255, .07); }
.rc-ring .seg { stroke-dasharray: 0 400; stroke-dashoffset: var(--off); transition: stroke-dasharray 1.2s cubic-bezier(.2, .8, .2, 1) .2s; }
.rc.in .seg { stroke-dasharray: var(--len) 400; }
.seg.green { stroke: var(--green); } .seg.red { stroke: var(--red); } .seg.grey { stroke: #8b93a1; }
.rc-ring-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.rc-ring-mid b { font: 800 34px/1 var(--serif); } .rc-ring-mid span { font-size: 11px; color: var(--t3); letter-spacing: .1em; text-transform: uppercase; }
.rc-ring-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: 1; }
.lg { display: grid; gap: 4px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border-left: 3px solid #8b93a1; }
.lg.green { border-color: var(--green); } .lg.red { border-color: var(--red); }
.lg b { font: 800 26px/1 var(--serif); } .lg span { font-size: 12px; color: var(--t2); }
/* insiders bars */
.vs { display: grid; gap: 12px; }
.vs-row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; font-size: 13px; color: var(--t2); }
.vs-row b { font: 700 15px/1 var(--serif); color: var(--t1); min-width: 62px; text-align: right; }
.vs-row .bar { display: block; height: 14px; border-radius: 999px; width: 0; background: var(--red); transition: width 1.1s cubic-bezier(.2, .8, .2, 1) .25s; }
.vs-row .bar.green { background: linear-gradient(90deg, #3fb984, var(--green)); } .vs-row .bar.red { background: linear-gradient(90deg, #e8664d, var(--red)); }
.rc.in .vs-row .bar { width: max(var(--w), 3px); }
/* investor faces */
.faces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.face { position: relative; display: block; border-radius: 50%; padding: 2px; box-shadow: 0 0 0 2px #8b93a1; opacity: 0; transform: scale(.4); }
.face .avatar { display: block; }
.face.up { box-shadow: 0 0 0 2px var(--green), 0 0 14px rgba(111, 214, 160, .35); } .face.down { box-shadow: 0 0 0 2px var(--red), 0 0 14px rgba(255, 138, 115, .3); }
.face.none { box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); } .face.none .avatar { filter: grayscale(1); opacity: .35; }
.rc.in .face { animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) forwards; animation-delay: calc(.25s + var(--i) * 45ms); }
.face.none { }
@keyframes pop { to { opacity: 1; transform: none; } }
/* mini bars */
.mini { display: flex; align-items: flex-end; gap: 7px; height: 70px; margin-top: 16px; }
.mini-col { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.mini-col i { display: block; width: 100%; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--accent), rgba(251, 101, 31, .35)); transform: scaleY(0); transform-origin: bottom; }
.rc.in .mini-col i { animation: grow .8s cubic-bezier(.2, .9, .3, 1) forwards; animation-delay: calc(.2s + var(--i) * 70ms); }
.mini-col:last-child i { background: linear-gradient(180deg, #ffb27f, var(--accent)); box-shadow: 0 0 16px rgba(251, 101, 31, .5); }
@keyframes grow { to { transform: scaleY(1); } }
/* events */
.evs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ev { display: grid; gap: 4px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); opacity: 0; transform: translateY(8px); }
.rc.in .ev { animation: pop .5s ease forwards; animation-delay: calc(.2s + var(--i) * 120ms); }
.ev b { font: 800 30px/1 var(--serif); } .ev span { font-size: 12.5px; color: var(--t2); } .ev small { font-size: 11px; color: var(--t3); }
.ev.green { border-color: rgba(111, 214, 160, .4); } .ev.green b { color: var(--green); }
.ev.red { border-color: rgba(255, 138, 115, .4); } .ev.red b { color: var(--red); }
.ev.on b { color: var(--accent); } .ev.off { opacity: .5 !important; }
@media (max-width: 560px) { .rc-wide:first-child { flex-direction: column; align-items: stretch; } .rc-ring { margin: 0 auto; } .evs { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rc, .face, .ev, .mini-col i { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; } .rc-ring .seg { stroke-dasharray: var(--len) 400; } .vs-row .bar { width: max(var(--w), 3px); } }

/* Ranked bars inside cards */
.hero { margin: 4px 0 18px; }
.hero .rc-wide:first-child { display: block; }
.tb { display: grid; gap: 4px; }
.tb-row { display: grid; grid-template-columns: minmax(86px, 150px) 1fr auto; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 12px; background: none; border: 0; color: inherit; text-align: left; font: inherit; cursor: default; transition: background .15s; }
a.tb-row, button.tb-row { cursor: pointer; }
a.tb-row:hover, button.tb-row:hover { background: rgba(255, 255, 255, .06); }
.tb-name { display: grid; min-width: 0; }
.tb-name b { font-size: 14px; font-weight: 700; } .tb-name small { font-size: 11.5px; color: var(--t3); }
.tb-bar { display: block; height: 12px; width: 0; border-radius: 999px; background: linear-gradient(90deg, #3fb984, var(--green)); transition: width 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(.2s + var(--i, 0) * 70ms); }
.tb-bar.red { background: linear-gradient(90deg, #e8664d, var(--red)); }
.tb-bar.orange { background: linear-gradient(90deg, #d94f0e, var(--accent)); box-shadow: 0 0 14px rgba(251, 101, 31, .3); }
.rc.in .tb-bar { width: var(--w); }
.tb-row em { font: 700 14px/1 var(--serif); font-style: normal; min-width: 54px; text-align: right; }
.vs-row .bar.orange { background: linear-gradient(90deg, #d94f0e, var(--accent)); }
@media (prefers-reduced-motion: reduce) { .tb-bar { width: var(--w); transition: none; } }

/* Global motion: every screen's headers, panels and rows come in the same way */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slide-in { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.screen-header h1, .h-title { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.screen-header .subtitle { animation: rise .55s cubic-bezier(.2, .8, .2, 1) .08s both; }
.explain { animation: rise .55s cubic-bezier(.2, .8, .2, 1) .14s both; }
.panel, .ledger { background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); border: 1px solid rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: border-color .25s, box-shadow .25s; }
.ledger { border-radius: var(--radius); overflow: hidden; }
.panel:hover { border-color: rgba(251, 101, 31, .35); }
.ledger-cell { animation: slide-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.ledger-cell:nth-child(2) { animation-delay: 40ms; } .ledger-cell:nth-child(3) { animation-delay: 80ms; } .ledger-cell:nth-child(4) { animation-delay: 120ms; }
.ledger-cell:nth-child(5) { animation-delay: 160ms; } .ledger-cell:nth-child(6) { animation-delay: 200ms; } .ledger-cell:nth-child(n+7) { animation-delay: 240ms; }
.ledger-cell.skeleton { animation: none; }
button.ledger-cell:hover, a.ledger-cell:hover { background: rgba(251, 101, 31, .08); }
a.ledger-cell:hover .row-title b, button.ledger-cell:hover .row-title b { color: var(--accent); }
.pill, .segment { transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
.pill:hover { transform: translateY(-1px); }
.segment.on { box-shadow: inset 0 -2px 0 var(--accent); }
@media (prefers-reduced-motion: reduce) { .screen-header h1, .h-title, .screen-header .subtitle, .explain, .ledger-cell { animation: none !important; } }
.hero .rc:not(:has(.tb)):not(:has(.vs)) { display: flex; flex-direction: column; justify-content: center; }
.hero .rc:not(:has(.tb)):not(:has(.vs)) .rc-big b { font-size: clamp(44px, 7vw, 64px); }

.disclaimer { margin: 0 auto; max-width: 560px; padding: 24px 20px 0; text-align: center; font-size: 11px; line-height: 1.5; color: var(--t3); opacity: .8; }
.logo-credit { padding-top: 6px; }

/* Phone polish */
.explain summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; margin: 0; font: 700 11px/1 var(--din); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.explain summary::-webkit-details-marker { display: none; }
.explain summary::after { content: "+"; font-size: 18px; line-height: 1; transition: transform .2s; }
.explain[open] summary::after { transform: rotate(45deg); }
.explain[open] p { margin-top: 8px; }
.explain b { display: none; }
@media (max-width: 719px) {
  /* summary cards slide sideways instead of stacking, so the list stays near the top */
  .hero { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 4px -20px 16px; padding: 0 20px 6px; scrollbar-width: none; }
  .hero::-webkit-scrollbar { display: none; }
  .hero > .rc { flex: 0 0 86%; scroll-snap-align: center; }
  .silicio-ajuda { --s: 66px; right: 6px; bottom: 96px; opacity: .92; }
  .resumo-grid:not(.hero) .rc-big b { font-size: 34px; }
}
