/* Lá vem o ônibus — site (Início / Termos / Privacidade / Suporte)
   Minimal, brand-green design system shared by every page */

:root {
  --green-a: #00a99d;
  --green-b: #16a67b;
  --green-c: #22b573;
  --brand-gradient: linear-gradient(135deg, var(--green-a), var(--green-c));

  --ink: #263028;
  --ink-soft: #454f45;
  --text: #333d34;
  --muted: #6b756c;
  --border: #e6ece7;
  --bg: #ffffff;
  --bg-soft: #f5faf7;
  --card: #ffffff;
  --focus: #0f8f6a;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(38, 48, 40, 0.04), 0 8px 24px rgba(38, 48, 40, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3ef;
    --ink-soft: #c9d3cb;
    --text: #dbe4dd;
    --muted: #93a096;
    --border: #26302a;
    --bg: #141815;
    --bg-soft: #191f1a;
    --card: #1b211d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--green-b);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
}

.brand .img-desktop {
  display: block;
  height: 50px;
}

.brand .img-mobile {
  display:none;
  height: 36px;
}

.brand img {
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a.active {
  color: var(--green-b);
}

.site-nav a:hover {
  color: var(--green-b);
}

@media (max-width: 480px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
  .site-nav {
    gap: 1rem;
    font-size: 0.85rem;
  }
  
  .brand .img-desktop {
    display:none
  }

  .brand .img-mobile {
     display:block;
  }
}

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

.hero {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow);
}

.hero-icon svg {
  width: 30px;
  height: 30px;
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero p.lede {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
}

.updated-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.updated-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-c);
}

/* ---------- Layout ---------- */

.layout {
  max-width: 68rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ---------- TOC ---------- */

.toc {
  position: sticky;
  top: 5.5rem;
}

.toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border);
}

.toc li a {
  display: block;
  padding: 0.35rem 0 0.35rem 0.9rem;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.toc li a:hover {
  color: var(--green-b);
  text-decoration: none;
}

.toc li a.active {
  color: var(--green-b);
  border-left-color: var(--green-c);
  font-weight: 600;
}

@media (max-width: 860px) {
  .toc {
    position: static;
  }
  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    border-left: none;
  }
  .toc li a {
    border: none;
    padding: 0.2rem 0;
  }
}

/* ---------- Article ---------- */

article.doc section {
  margin-bottom: 2.4rem;
  scroll-margin-top: 5.5rem;
}

article.doc h2 {
  font-size: 1.15rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}

article.doc h2 .num {
  font-variant-numeric: tabular-nums;
  color: var(--green-c);
  font-size: 0.95rem;
  font-weight: 700;
}

article.doc h3 {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-top: 1.4rem;
}

article.doc p {
  margin: 0.7rem 0;
}

article.doc ul,
article.doc ol.plain {
  margin: 0.7rem 0;
  padding-left: 1.3rem;
}

article.doc li {
  margin: 0.35rem 0;
}

article.doc strong {
  color: var(--ink);
}

.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--green-c);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 0.9rem 0;
  font-size: 0.95rem;
}

.callout.warn {
  border-left-color: #d9a441;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 0.9rem 0 1.2rem;
  font-size: 0.92rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.data th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- Support page ---------- */

.support-wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  text-align: center;
  padding: 2.2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.contact-card-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-email {
  font-size: clamp(1rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--green-b);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  text-decoration: none;
  border-color: var(--green-c);
  color: var(--green-b);
}

.topics-intro {
  margin: 2.2rem 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.topics li a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
}

.topics li a:hover {
  border-color: var(--green-c);
  text-decoration: none;
}

.topics li a strong {
  font-size: 0.98rem;
}

.topics li a span {
  color: var(--muted);
  font-size: 0.85rem;
}

.topics-footnote {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Home ---------- */

.home-hero {
  position: relative;
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--green-c) 22%, transparent), transparent);
  pointer-events: none;
}

.home-hero-icon {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow);
}

.home-hero-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-b);
  margin-bottom: 1.1rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.home-hero h1 {
  position: relative;
  margin: 0 auto 0.9rem;
  max-width: 38rem;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.home-hero p.lede {
  position: relative;
  max-width: 34rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.btn-primary.btn-lg,
.btn-secondary.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.platform-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
}

.platform-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-c);
}

.section {
  max-width: 68rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-flush-top {
  padding-top: 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.75rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-b);
  margin: 0 0 0.6rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-gradient);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
}

.premium-strip {
  border-radius: var(--radius);
  background: var(--brand-gradient);
  color: #fff;
  padding: 2.75rem 2rem;
  text-align: center;
}

.premium-strip h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
}

.premium-strip p {
  margin: 0 auto 1.6rem;
  max-width: 32rem;
  opacity: 0.92;
}

.premium-strip .btn-secondary {
  background: #fff;
  color: var(--green-b);
  border-color: transparent;
}

.premium-strip .btn-secondary:hover {
  color: var(--green-a);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  background: var(--bg-soft);
}

.footer-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner .brand img {
  height: 22px;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--green-b);
}

.lang-form {
  display: inline-flex;
  align-items: center;
}

.lang-form label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.lang-form select {
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
}

.lang-form select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
