/* Na Mínima — site styles. Light "paper" site; dark only inside chart panels.
   Lime is a FILL only (dot, "na mínima" seal, chart marker/ring): never text on paper,
   never a button. Fonts are self-hosted (OFL licenses in assets/fonts/). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/bricolage-600.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/bricolage-800.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/plex-mono-500.woff2") format("woff2");
}

:root {
  --paper: #f5f6f1;
  --surface: #ffffff;
  --ink: #101311;
  --ink-2: #4a514c;
  --rule: #d9dcd3;
  --lime: #c6ff3d;
  --night: #0e110f;
  --night-ink: #e9ede4;
  --night-muted: #8f988c;
  --night-rule: #2c332d;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: 16px;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  /* Short pages (404) keep the footer at the bottom of the screen. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.wordmark .mark {
  width: 32px;
  height: auto;
  flex: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  padding: 0;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-nav a.nav-telegram {
  display: inline-block;
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}

.site-nav a.nav-telegram:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* Narrow phones: "Sobre" stays in the footer so the header keeps one line. */
@media (max-width: 439px) {
  .site-nav li:has(a[href$="sobre.html"]) {
    display: none;
  }

  .header-inner {
    gap: 8px;
  }

  .wordmark {
    font-size: 1.0625rem;
    gap: 7px;
  }

  .wordmark .mark {
    width: 28px;
  }

  .site-nav ul {
    gap: 12px;
  }

  .site-nav a {
    font-size: 0.875rem;
  }

  .site-nav a.nav-telegram {
    padding: 5px 10px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: #2b312c;
  border-color: #2b312c;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
}

.btn-secondary:hover {
  background: #e8eae3;
}

/* ---------- Hero ---------- */

.hero {
  padding: 28px 0 48px;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

.hero h1 {
  font-weight: 800;
  font-size: 2.125rem;
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 15ch;
}

.hero-sub {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 1.125rem;
  line-height: 1.5;
  max-width: 36ch;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cta-row .btn-primary {
  flex: 1 1 auto;
}

/* ---------- Chart (dark panel) ---------- */

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  background: var(--night);
  border-radius: var(--radius);
}

.chart-line {
  fill: none;
  stroke: var(--night-ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-median {
  stroke: var(--night-muted);
  stroke-width: 1.5;
  stroke-dasharray: 6 7;
}

.chart-ring {
  fill: none;
  stroke: var(--lime);
  stroke-opacity: 0.4;
  stroke-width: 3;
}

.chart-dot {
  fill: var(--lime);
}

.chart-label {
  font-family: var(--mono);
  font-weight: 500;
  /* SVG user units: the chart scales with its width, so labels are bigger in units on
     phones (narrow panel) and smaller on wide screens; both land around 11-17 px. */
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  fill: var(--night-muted);
}

.chart-label-value {
  fill: var(--night-ink);
}

.chart figcaption {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 56ch;
}

/* ---------- Sections ---------- */

.section {
  border-top: 1px solid var(--rule);
  padding: 40px 0 44px;
}

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.split {
  display: grid;
}

.ruled-list > div {
  border-top: 1px solid var(--rule);
  padding: 14px 0;
}

.ruled-list > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.ruled-list dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
}

.ruled-list dd {
  color: var(--ink-2);
  margin-top: 2px;
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  border-top: 1px solid var(--rule);
  padding: 14px 0;
}

.steps li:last-child {
  border-bottom: 1px solid var(--rule);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--ink-2);
  padding-top: 0.2em;
}

.aside {
  margin-top: 16px;
  color: var(--ink-2);
}

/* ---------- Offers (v2; rendered only with real data) ---------- */

.offer-grid {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
}

.offer-store,
.offer-claim,
.offer-discount,
.offer-price,
.seal {
  font-family: var(--mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.offer-store {
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.offer-title {
  font-size: 1.1875rem;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.offer-price {
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.seal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
}

.seal-minima {
  background: var(--lime);
  color: var(--ink);
}

.seal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.seal-oferta {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

.offer-claim {
  font-size: 0.875rem;
}

.offer-discount {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.range-svg {
  display: block;
  width: 100%;
  height: auto;
}

.range-track {
  stroke: var(--rule);
  stroke-width: 4;
  stroke-linecap: round;
}

.range-typical {
  stroke: var(--ink-2);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.range-ring {
  fill: var(--lime);
  fill-opacity: 0.55;
}

.range-dot {
  fill: var(--surface);
  stroke: var(--ink);
  stroke-width: 2;
}

.range-dot-min {
  fill: var(--lime);
  stroke-width: 1.5;
}

.range-label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  fill: var(--ink-2);
}

.range-label-value {
  fill: var(--ink);
}

.offer-verified {
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.offer-btn {
  width: 100%;
  margin-top: 4px;
}

.offer-disclosure {
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-top: -2px;
}

/* ---------- Text pages ---------- */

.prose-page,
.not-found {
  padding: 36px 0 56px;
}

/* The column stays aligned with the header; only the text measure is limited. */
.prose > * {
  max-width: 68ch;
}

.prose h1 {
  font-weight: 800;
  font-size: 2.25rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.prose .meta {
  margin-top: 12px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.prose .lead {
  margin-top: 18px;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.prose h2 {
  font-size: 1.375rem;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.prose p,
.prose ul {
  margin-top: 14px;
}

.plain-list {
  padding-left: 1.2em;
}

.plain-list li + li {
  margin-top: 6px;
}

.plain-list li::marker {
  color: var(--ink-2);
}

.quote-line {
  border-left: 3px solid var(--ink);
  padding: 2px 0 2px 14px;
  font-weight: 600;
}

.not-found .btn {
  margin-top: 10px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0 44px;
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.wordmark-small {
  font-size: 1.0625rem;
}

.wordmark-small .mark {
  width: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  list-style: none;
  padding: 0;
  font-size: 0.9375rem;
}

/* Taller hit area on touch screens without changing the visual rhythm. */
.footer-links a {
  display: inline-block;
  padding: 10px 0;
}

.footer-meta {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.footer-meta a {
  color: var(--ink-2);
}

.footer-sep {
  margin: 0 8px;
}

/* ---------- Larger screens ---------- */

@media (min-width: 720px) {
  :root {
    --gutter: 32px;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .hero-sub {
    font-size: 1.25rem;
  }

  .chart-label {
    font-size: 14px;
  }

  .cta-row .btn-primary {
    flex: 0 0 auto;
  }

  .section {
    padding: 56px 0 64px;
  }

  .section h2 {
    font-size: 1.75rem;
  }

  .ruled-list > div {
    display: grid;
    grid-template-columns: 13rem 1fr;
    gap: 16px;
  }

  .ruled-list dd {
    margin-top: 0;
  }

  .prose-page,
  .not-found {
    padding: 64px 0 88px;
  }

  .prose h1 {
    font-size: 3rem;
  }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .split {
    grid-template-columns: 4fr 8fr;
    gap: 32px;
  }

  .section h2 {
    margin-bottom: 0;
  }
}
