/* =========================================
   PLVRS — Editorial brutalist, paper + ink
   ========================================= */

:root {
  --paper:        #f1ece1;   /* off-white warm */
  --paper-2:      #e8e2d3;   /* subtle band */
  --ink:          #14130f;
  --ink-soft:     #2a2823;
  --muted:        #6b665a;
  --line:         #cfc8b6;
  --line-soft:    #dfd9c9;
  --red:          #d2321b;   /* tinta editorial */
  --red-deep:     #9c2010;
  --highlight:    #ffe680;   /* margin annotation */

  --f-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --f-serif:   "Instrument Serif", "Times New Roman", serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "Menlo", monospace;

  --maxw: 1400px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 420;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(rgba(20,19,15,0.05) 1px, transparent 1px),
    radial-gradient(rgba(20,19,15,0.04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

::selection { background: var(--red); color: var(--paper); }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; background: none; border: none; outline: none; resize: none; }
a { color: inherit; text-decoration: none; }

/* =========================================
   Layout primitives
   ========================================= */

.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .shell { padding: 0 18px; } }

.rule       { border: 0; border-top: 1px solid var(--line); margin: 0; }
.rule-thick { border: 0; border-top: 2px solid var(--ink); margin: 0; }
.rule-red   { border: 0; border-top: 1.5px solid var(--red); margin: 0; }

.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker-red { color: var(--red); }

.tag-mono {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.italic-serif {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
}

/* =========================================
   Header
   ========================================= */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.masthead-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
}
.brand-mark {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-mark .dot { color: var(--red); }
.brand-sub {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-sections {
  display: flex; gap: 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-link {
  padding: 6px 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:first-child { border-left: none; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--red); }
.nav-link .num { opacity: 0.55; margin-right: 6px; }

.masthead-meta {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 900px) {
  .nav-sections { display: none; }
  .masthead-meta { display: none; }
}

/* =========================================
   Hero
   ========================================= */

.hero {
  padding: 20px 0 0;
  border-bottom: 2px solid var(--ink);
}
.hero-edition {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-edition .dash { color: var(--red); }

.hero-compact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: end;
  padding: 18px 0 16px;
}
@media (max-width: 820px) {
  .hero-compact { grid-template-columns: 1fr; gap: 12px; padding: 14px 0; }
}

.hero-tagline {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
  max-width: 11ch;
}
.hero-tagline em {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.015em;
}
.hero-tagline .dot-red { color: var(--red); }

.hero-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(72px, 13vw, 180px);
  line-height: 0.85;
  letter-spacing: -0.06em;
  margin: 0;
  color: var(--ink);
}
.hero-brand .dot-red { color: var(--red); }

.hero-subtitle {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  margin-top: 4px;
}
.hero-subtitle em {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
}

.hero-strapline {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 42ch;
}
.hero-strapline .marker {
  background: var(--highlight);
  padding: 0 0.2em;
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 0.85em;
  letter-spacing: 0.02em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-meta.inline {
  grid-template-columns: repeat(4, 1fr);
  border-top: 1.5px solid var(--ink);
  border-bottom: none;
  margin-top: 4px;
}
.hero-meta .cell {
  padding: 14px 16px 16px 0;
  border-right: 1px solid var(--line);
}
.hero-meta.inline .cell {
  padding: 14px 18px 16px;
  border-right: 1px solid var(--line);
}
.hero-meta.inline .cell:first-child { padding-left: 0; }
.hero-meta.inline .cell:last-child { border-right: none; padding-right: 0; }
.hero-meta .cell:nth-child(2n) { border-right: none; padding-right: 0; padding-left: 16px; }
.hero-meta.inline .cell:nth-child(2n) { border-right: 1px solid var(--line); padding-right: 18px; padding-left: 18px; }
.hero-meta.inline .cell:last-child { border-right: none; }
.hero-meta .v {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta.inline .v {
  font-size: clamp(22px, 2.6vw, 34px);
}
.hero-meta .k {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

@media (max-width: 700px) {
  .hero-meta.inline { grid-template-columns: repeat(2, 1fr); }
  .hero-meta.inline .cell { border-bottom: 1px solid var(--line); }
  .hero-meta.inline .cell:nth-child(2) { border-right: none; }
  .hero-meta.inline .cell:nth-child(3) { padding-left: 0; }
  .hero-meta.inline .cell:nth-child(3),
  .hero-meta.inline .cell:nth-child(4) { border-bottom: none; }
}

/* =========================================
   Section anchors
   ========================================= */

.section {
  padding: 56px 0 80px;
  border-bottom: 1px solid var(--ink);
}
.section.first {
  padding-top: 36px;
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 28px;
}
.section-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--red);
}
.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
}
.section-title em {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
}
.section-aside {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  max-width: 26ch;
  line-height: 1.5;
}

/* =========================================
   Conversor
   ========================================= */

.conv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
@media (max-width: 820px) { .conv { grid-template-columns: 1fr; } }

.conv-pane {
  padding: 22px 22px 18px;
  border-right: 1.5px solid var(--ink);
  display: flex; flex-direction: column;
  min-height: 320px;
  background: var(--paper);
  position: relative;
}
.conv-pane.out {
  border-right: none;
  background: var(--paper-2);
}
@media (max-width: 820px) {
  .conv-pane { border-right: none; border-bottom: 1.5px solid var(--ink); }
  .conv-pane.out { border-bottom: none; }
}

.conv-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.conv-head .label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.conv-head .meter {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex; gap: 8px; align-items: center;
}
.conv-head .meter .num { color: var(--ink); font-weight: 500; }

.conv-input, .conv-output {
  flex: 1;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -0.015em;
  width: 100%;
  min-height: 200px;
  padding: 0;
}
.conv-input::placeholder { color: var(--muted); opacity: 0.55; }

.conv-output {
  white-space: pre-wrap;
  word-break: break-word;
}
.conv-output .tok {
  display: inline;
  position: relative;
}
.conv-output .tok.changed {
  background: var(--highlight);
  padding: 0 0.08em;
  margin: 0 0.02em;
  border-radius: 1px;
  cursor: help;
}
.conv-output .tok.changed:hover {
  background: var(--red);
  color: var(--paper);
}
.conv-output .tok .tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 5;
}
.conv-output .tok.changed:hover .tip { opacity: 1; }

.conv-toolbar {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.btn {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  transition: all 0.12s;
  display: inline-flex; gap: 6px; align-items: center;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn.red { background: var(--red); color: var(--paper); border-color: var(--red); }
.btn.red:hover { background: var(--red-deep); border-color: var(--red-deep); }

.mode-switch {
  display: inline-flex;
  border: 1.5px solid var(--ink);
}
.mode-switch button {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  background: var(--paper);
  border-right: 1.5px solid var(--ink);
}
.mode-switch button:last-child { border-right: none; }
.mode-switch button.active { background: var(--ink); color: var(--paper); }

/* compression strip */
.conv-strip {
  border-top: 1.5px solid var(--ink);
  padding: 14px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 20px;
  align-items: center;
  background: var(--paper);
}
.conv-strip .strip-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.conv-strip .bar {
  position: relative;
  height: 6px;
  background: var(--line-soft);
  overflow: hidden;
}
.conv-strip .bar .fill {
  position: absolute; top: 0; bottom: 0; left: 0;
  background: var(--red);
  transition: width 0.4s cubic-bezier(.2,.7,.1,1);
}
.conv-strip .pct {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 13px;
}
.conv-strip .saved {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}
.conv-strip .saved .num { color: var(--red); font-weight: 600; }

/* example chips */
.examples {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.examples .ex-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
  margin-right: 6px;
}
.chip {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  transition: all 0.12s;
}
.chip:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.examples-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-inline {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.conv-placeholder {
  color: var(--muted);
  font-size: 18px;
  font-family: var(--f-serif);
  font-style: italic;
}

/* =========================================
   Dicionário
   ========================================= */

.dict {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border-top: 2px solid var(--ink);
}
@media (max-width: 900px) {
  .dict { grid-template-columns: 1fr; }
}

.dict-side {
  padding: 18px 24px 24px 0;
  border-right: 1px solid var(--line);
}
@media (max-width: 900px) {
  .dict-side { border-right: none; border-bottom: 1px solid var(--line); padding: 18px 0 24px; }
}

.dict-search {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.dict-search .ico {
  font-family: var(--f-mono);
  color: var(--red);
  font-size: 16px;
}
.dict-search input {
  flex: 1;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.dict-search input::placeholder { color: var(--muted); opacity: 0.55; }
.dict-search .clr {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 4px 6px;
  cursor: pointer;
}
.dict-search .clr:hover { color: var(--red); }

.alpha {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin-bottom: 22px;
}
.alpha button {
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 8px 0;
  background: var(--paper);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: all 0.1s;
}
.alpha button:hover { background: var(--ink); color: var(--paper); }
.alpha button.active { background: var(--red); color: var(--paper); }

.filter-group {
  margin-top: 6px;
}
.filter-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.filter-row {
  display: flex; flex-direction: column; gap: 3px;
}
.filter-row button {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink);
  border-bottom: 1px dashed transparent;
}
.filter-row button .ct { color: var(--muted); font-size: 11px; }
.filter-row button:hover { border-bottom-color: var(--ink); }
.filter-row button.active { color: var(--red); }
.filter-row button.active .ct { color: var(--red); }

.dict-list {
  padding: 0 0 0 28px;
  min-height: 480px;
}
@media (max-width: 900px) { .dict-list { padding: 18px 0 0; } }

.dict-stat-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.dict-stat-row .ct { color: var(--ink); font-weight: 500; }

.entry {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: baseline;
  padding: 14px 0 12px;
  border-top: 1px solid var(--line);
  transition: background 0.1s;
}
.entry:first-child { border-top: 1.5px solid var(--ink); }
.entry:hover { background: rgba(20,19,15,0.03); }

.entry-word {
  display: flex; align-items: baseline; gap: 16px;
  flex-wrap: wrap;
}
.entry-orig {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
}
.entry-arrow {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--red);
  letter-spacing: 0.06em;
}
.entry-comp {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  background: var(--highlight);
  padding: 1px 6px;
}
.entry-pct {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 60px;
}
.entry-pct .num { color: var(--red); font-weight: 600; }
.entry-rule {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  min-width: 140px;
}
@media (max-width: 600px) {
  .entry { grid-template-columns: 1fr; gap: 6px; }
  .entry-pct, .entry-rule { text-align: left; }
}

.entry-reason {
  grid-column: 1 / -1;
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
  padding-left: 0;
  max-width: 60ch;
}

.empty-state {
  padding: 64px 0;
  text-align: center;
  border-top: 1.5px solid var(--ink);
}
.empty-state .glyph {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 96px;
  color: var(--line);
  line-height: 1;
}
.empty-state .msg {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}

/* loading skeleton */
.skeleton-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: baseline;
  padding: 14px 0 12px;
  border-top: 1px solid var(--line);
}
.sk { background: var(--line-soft); height: 22px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* =========================================
   Estatísticas
   ========================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.stat-card {
  border: 1.5px solid var(--ink);
  padding: 22px 22px 24px;
  background: var(--paper);
}
.stat-card.big {
  grid-column: span 6;
  padding: 32px 28px 30px;
}
.stat-card.med { grid-column: span 4; }
.stat-card.sml { grid-column: span 3; }
.stat-card.wide { grid-column: span 12; }
.stat-card.dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.stat-card.dark .stat-k { color: rgba(241,236,225,0.6); }
.stat-card.red { background: var(--red); color: var(--paper); border-color: var(--red); }
.stat-card.red .stat-k { color: rgba(241,236,225,0.75); }

@media (max-width: 900px) {
  .stat-card.big, .stat-card.med, .stat-card.sml { grid-column: span 6; }
}
@media (max-width: 600px) {
  .stat-card.big, .stat-card.med, .stat-card.sml, .stat-card.wide { grid-column: span 12; }
}

.stat-k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.stat-v {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 56px;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat-card.big .stat-v { font-size: 96px; }
.stat-card.sml .stat-v { font-size: 38px; }
.stat-v .unit {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-left: 6px;
}
.stat-card.dark .stat-v .unit,
.stat-card.red .stat-v .unit { color: rgba(241,236,225,0.6); }

.stat-note {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
  max-width: 28ch;
  line-height: 1.4;
}
.stat-card.dark .stat-note { color: rgba(241,236,225,0.65); }

/* distribution bar chart */
.dist-bars {
  display: grid;
  grid-template-columns: repeat(26, 1fr);
  gap: 4px;
  align-items: end;
  height: 160px;
  margin-top: 18px;
}
.dist-bar {
  background: var(--ink);
  position: relative;
  transition: background 0.15s;
}
.dist-bar:hover { background: var(--red); }
.dist-bar .lbl {
  position: absolute;
  bottom: -22px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
}
.dist-bar:hover .lbl { color: var(--red); }
.dist-bar .pop {
  position: absolute;
  bottom: 100%; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10px;
  margin-bottom: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.dist-bar:hover .pop { opacity: 1; }

/* top savings list */
.savings-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  margin-top: 8px;
}
@media (max-width: 600px) { .savings-list { grid-template-columns: 1fr; } }
.savings-list .row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.savings-list .row:first-child,
.savings-list .row:nth-child(2) { border-top: 1.5px solid var(--ink); }
.savings-list .rnk {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.savings-list .w {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.savings-list .c {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 14px;
  background: var(--highlight);
  padding: 1px 5px;
}
.savings-list .p {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  min-width: 40px;
  text-align: right;
}

/* rule breakdown */
.rule-rows { margin-top: 4px; }
.rule-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.rule-row:first-child { border-top: 1.5px solid var(--ink); }
.rule-row .lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rule-row .bar {
  height: 10px;
  background: var(--line-soft);
  position: relative;
}
.rule-row .bar .fl {
  position: absolute; inset: 0 auto 0 0;
  background: var(--ink);
}
.rule-row.red .bar .fl { background: var(--red); }
.rule-row .v {
  font-family: var(--f-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  min-width: 90px;
  text-align: right;
}
@media (max-width: 600px) {
  .rule-row { grid-template-columns: 1fr; gap: 6px; }
  .rule-row .v { text-align: left; }
}

/* =========================================
   Método
   ========================================= */

.method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) { .method { grid-template-columns: 1fr; gap: 24px; } }

.method-col h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.method-col h3 em {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
}
.method-col p {
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 16px;
}
.method-col p em {
  font-family: var(--f-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
}
.method-col p .marker {
  background: var(--highlight);
  padding: 0 0.15em;
}

.principles {
  display: grid;
  gap: 0;
  margin-top: 20px;
  border-top: 1.5px solid var(--ink);
}
.principle {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 18px 0 20px;
  border-bottom: 1px solid var(--line);
}
.principle .n {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.principle h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.principle p {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0;
  max-width: 48ch;
}

.shortcuts-table {
  margin-top: 6px;
  border-top: 1.5px solid var(--ink);
}
.shortcuts-table .row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.shortcuts-table .from {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 18px;
}
.shortcuts-table .ar {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--red);
}
.shortcuts-table .to {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 16px;
  background: var(--highlight);
  padding: 1px 6px;
  justify-self: start;
}

/* =========================================
   Footer
   ========================================= */

.footer {
  padding: 48px 0 32px;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: baseline;
}
@media (max-width: 700px) { .footer-row { grid-template-columns: 1fr; gap: 12px; } }
.footer .colophon {
  font-family: var(--f-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}
.footer .meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer .meta.right { text-align: right; }
@media (max-width: 700px) { .footer .meta.right { text-align: left; } }

/* =========================================
   Toast
   ========================================= */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 18px;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
  pointer-events: none;
  border: 1.5px solid var(--ink);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast .dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

/* small ticker — decorative */
.ticker {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 36px;
  padding: 10px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: ticker 60s linear infinite;
}
.ticker-track .red { color: var(--red); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
