:root {
  --green: #00995d;
  --green-dark: #008652;
  --green-darker: #006b42;
  --green-light: #eef8f3;
  --text: #333333;
  --text-muted: #666666;
  --line: #e0e0e0;
  --bg: #ffffff;
  --bg-soft: #f4f4f4;
  --max: 1170px;
  --font: "Open Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  background: var(--green-darker); color: #fff; padding: 12px 16px;
}
.skip:focus { left: 16px; top: 16px; }

/* Header top */
.header-top {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.header-top a { color: var(--green-dark); font-weight: 600; }
.header-top a:hover { text-decoration: underline; }
.header-search { flex: 1; max-width: 420px; margin-left: auto; }
.header-search input {
  width: 100%;
  padding: 8px 14px 8px 36px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 13px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.1a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E") 12px center no-repeat;
}

/* Main header */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--green);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.logo-img--footer {
  height: 42px;
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 4px;
}
.nav-link:hover { color: var(--green); }
.nav-link.is-active { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-nav-cta {
  background: var(--green);
  color: #fff !important;
  margin-left: 8px;
  padding: 12px 18px;
}
.btn-nav-cta:hover { background: var(--green-darker); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-darker); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.btn-download-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--green);
  background: var(--green-light);
  border: 2px solid var(--green);
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.btn-download-header:hover,
.btn-download-header.is-active {
  background: var(--green);
  color: #fff;
}
.btn-download-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 14px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
}

/* Hero carousel */
.hero-carousel {
  position: relative;
  background: #000;
}
.hero-slide {
  display: none;
  min-height: min(52vh, 480px);
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide.is-active { display: block; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}
.hero-slide-inner {
  position: relative;
  z-index: 1;
  min-height: min(52vh, 480px);
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.hero-slide h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  max-width: 520px;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-slide p {
  color: rgba(255,255,255,0.95);
  margin-top: 12px;
  max-width: 480px;
  font-size: 1.05rem;
}
.hero-slide .btn { margin-top: 20px; }

.hero-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-controls button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hero-controls button.is-active { background: #fff; }

.hero-arrows button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255,255,255,0.9);
  color: var(--green);
  font-size: 22px;
  cursor: pointer;
  border-radius: 4px;
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }

/* Acesso rápido */
.acesso-rapido {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.acesso-rapido .wrap { padding: 0; }
.acesso-titulo {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.acesso-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.acesso-item {
  padding: 24px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.15s;
}
.acesso-item:last-child { border-right: none; }
.acesso-item:hover { background: var(--green-light); }
.acesso-item svg,
.acesso-item .acesso-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: block;
  object-fit: contain;
}
.acesso-item svg { fill: var(--green); }
.acesso-item h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.acesso-item p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Sections */
.sec {
  padding: 56px 0;
}
.sec--soft { background: var(--bg-soft); }
.sec-head {
  margin-bottom: 32px;
}
.sec-head h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.sec-head h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}
.sec-head p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 640px;
}

.guia-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: 4px;
}
.guia-panel--destaque {
  background-color: #fff;
  background-image: url("../img/guia-bg.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: min(52%, 520px) auto;
}
.guia-form {
  display: grid;
  gap: 12px;
}
.guia-form label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}
.guia-form input,
.guia-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: box-shadow 0.2s;
}
.card-post:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.card-post img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.card-post-body { padding: 20px; }
.card-post h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}
.card-post p {
  font-size: 14px;
  color: var(--text-muted);
}
.card-post .link-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
}

.news-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border-top: 4px solid var(--green);
  padding: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  display: block;
  overflow: hidden;
}
.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.news-card-body { padding: 24px; }
.news-card:hover { background: var(--green-light); }
.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.news-card p { font-size: 14px; color: var(--text-muted); }

.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }

/* Footer */
.site-footer {
  background: var(--green-darker);
  color: rgba(255,255,255,0.88);
  padding: 48px 0 0;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand p { margin-top: 16px; opacity: 0.85; max-width: 280px; line-height: 1.5; }
.site-footer h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 12px;
  opacity: 0.8;
}

/* Internal pages */
.page-hero {
  background: var(--green);
  color: #fff;
  padding: 40px 0;
}
.page-hero h1 { font-size: 2rem; font-weight: 700; }
.page-hero p { margin-top: 8px; opacity: 0.95; }
.page-content { padding: 48px 0 64px; }

/* App download page */
.app-page-head {
  background: linear-gradient(165deg, var(--green-light) 0%, #fff 55%);
  padding: 48px 0 52px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.app-page-head-grid {
  display: grid;
  grid-template-columns: 1fr min(440px, 46%);
  gap: 32px 48px;
  align-items: center;
}
.app-page-copy { min-width: 0; }
.app-hero-visual {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 0 8px;
}
.app-hero-illustration {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: min(280px, 58%);
  height: auto;
  max-height: 240px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0, 120, 70, 0.12));
}
.app-device {
  position: relative;
  z-index: 2;
  margin-left: auto;
  margin-right: 8%;
  transform: translateY(4px);
}
.app-device-frame {
  width: 200px;
  padding: 12px 10px 14px;
  background: linear-gradient(145deg, #2a2a2a 0%, #111 100%);
  border-radius: 32px;
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.22),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.app-device-speaker {
  display: block;
  width: 56px;
  height: 5px;
  margin: 0 auto 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
.app-device-screen {
  aspect-ratio: 9 / 16;
  max-height: 340px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f0faf5 0%, #fff 45%, #e8f5ee 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 16px;
  box-shadow: inset 0 0 0 1px rgba(0, 153, 93, 0.15);
}
.app-device-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(0, 153, 93, 0.25);
  object-fit: contain;
}
.app-device-appname {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}
.app-page-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 6px;
}
.app-page-intro h1,
.app-page-copy h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.app-page-lead {
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 420px;
  margin-bottom: 20px;
}
.app-page-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}
.app-play-badge {
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
}
.app-play-badge img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}
.app-play-badge.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.35);
}
.app-page-dl-meta {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.app-page-dl-meta--warn { color: #8a5a00; }
.app-download-panel--single {
  grid-template-columns: 1fr;
  max-width: 480px;
}
.app-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.app-feature {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 4px;
}
.app-feature h3 {
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 8px;
}
.app-feature p { font-size: 14px; color: var(--text-muted); line-height: 1.45; }
.app-download-panel { align-items: start; }
.app-download-panel h2 {
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 10px;
}
.app-store-lead { color: var(--text-muted); margin-bottom: 16px; }
.app-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.app-meta--warn { color: #8a5a00; background: #fff8e6; padding: 12px; border-radius: 4px; }
.app-meta code, .app-hint code { font-size: 12px; }
.app-dl-btn { margin-top: 4px; }
.app-dl-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.app-hint {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.app-support-call {
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--green-light);
  border: 1px solid rgba(0, 153, 93, 0.25);
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.app-support-call p { margin: 0 0 8px; }
.app-support-call p:last-child { margin-bottom: 0; }
.app-support-phone a {
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  font-size: 1.05rem;
}
.app-support-phone a:hover { text-decoration: underline; }
.app-steps-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.6;
}
.app-steps-list li { margin-bottom: 8px; }

@media (max-width: 1024px) {
  .app-features { grid-template-columns: repeat(2, 1fr); }
  .app-page-head-grid { grid-template-columns: 1fr; }
  .app-hero-visual { min-height: 280px; max-width: 420px; margin: 8px auto 0; }
  .app-device { margin-right: 0; }
  .acesso-grid { grid-template-columns: repeat(3, 1fr); }
  .acesso-item:nth-child(3) { border-right: none; }
  .cards-row { grid-template-columns: repeat(2, 1fr); }
  .guia-panel { grid-template-columns: 1fr; }
  .guia-panel--destaque {
    background-size: 280px auto;
    background-position: center bottom;
    padding-bottom: 200px;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .site-header-inner { flex-wrap: wrap; }
  .app-hero-illustration { width: min(220px, 52%); left: -8px; }
  .app-device-frame { width: 168px; }
  .app-device-logo { width: 72px; height: 72px; }
  .site-nav { order: 4; width: 100%; }
  .header-actions { order: 3; margin-left: auto; }
  .btn-download-header { padding: 8px 10px; font-size: 11px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  }
  .site-nav.is-open { display: flex; }
  .btn-nav-cta { margin-left: 0; text-align: center; }
  .acesso-grid { grid-template-columns: 1fr 1fr; }
  .news-row { grid-template-columns: 1fr; }
  .hero-arrows { display: none; }
}

@media (max-width: 480px) {
  .app-features { grid-template-columns: 1fr; }
  .acesso-grid { grid-template-columns: 1fr; }
  .acesso-item { border-right: none; border-bottom: 1px solid var(--line); }
  .cards-row { grid-template-columns: 1fr; }
}
