/* ==========================================================================
   Certifica Orgânicos — folha de estilos
   Identidade oficial: monograma C+O (hexágonos conectados + broto foliar),
   gradiente Verde Bioma → Verde Esmeralda, base escura #0B130E.
   Paleta extraída de docs/identidade-visual/Manual_de_Identidade_Visual.html
   ========================================================================== */

:root {
  /* ---- paleta oficial ---- */
  --brand-green: #2E7D32;   /* Verde Bioma */
  --brand-teal:  #0D9488;   /* Verde Esmeralda Teal */
  --ink:         #111827;   /* Preto Carvão — texto em fundo claro */
  --dark:        #0B130E;   /* Dark Theme Base — fundo escuro oficial */
  --muted-dark:  #9CA3AF;   /* Cinza Muted — texto secundário em dark mode */
  --paper:       #FFFFFF;   /* Branco Puro */

  /* ---- tons derivados (extensões próximas da paleta oficial) ---- */
  --dark-2:      #12211a;   /* superfície elevada sobre o fundo escuro */
  --dark-3:      #1b3226;   /* traço / borda sobre o fundo escuro */
  --muted-light: #4B5563;   /* texto secundário em fundo claro (mesmo tom do manual) */
  --paper-2:     #F1F4F1;   /* superfície elevada sobre o fundo claro */
  --paper-3:     #E3E9E4;   /* traço / borda sobre o fundo claro */

  --gradient-brand: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-teal) 100%);
  --gradient-vert:  linear-gradient(180deg, var(--brand-green) 0%, var(--brand-teal) 100%);

  /* ---- tipografia ---- */
  --font-display: ui-rounded, "Avenir Next", "Bahnschrift", "Century Gothic", "Candara", "Noto Sans", sans-serif;
  --font-body: "Avenir Next", "Candara", "Noto Sans", sans-serif;
  --font-mono: "SF Mono", "Cascadia Mono", ui-monospace, "Courier New", monospace;

  /* ---- layout ---- */
  --container: 1180px;
  --gutter: 24px;

  --ease-out: cubic-bezier(.16,.84,.44,1);
  --ease-spring: cubic-bezier(.22,1.12,.32,1);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* Reset de base para os símbolos SVG de funcionalidade — cada componente
   (.bento__icon, .check-list__icon...) define sua própria cor mais abaixo
   no arquivo e vence pela ordem de origem (mesma especificidade: note que
   este seletor NÃO inclui o tipo "svg", para não superar .bento__icon). */
[class$="__icon"] {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection { background: var(--brand-teal); color: #fff; }

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

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   Tipografia utilitária
   ========================================================================== */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.kicker::before {
  content: '';
  width: 1.3em;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  flex-shrink: 0;
}
.kicker--on-paper { color: var(--muted-light); }

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  line-height: 1.14;
  color: var(--ink);
  max-width: 18ch;
  margin-top: .6em;
}
.h2--on-ink { color: var(--paper); }

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: .5em;
}
.h3--on-ink { color: var(--paper); }
.h3--accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.4rem;
  margin-bottom: .9em;
}

.body-text {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--muted-light);
  max-width: 46ch;
  margin-top: 1.1em;
}

/* ==========================================================================
   Revelação ao rolar — progressive enhancement.
   Sem JS: todo o conteúdo permanece visível (nenhuma regra abaixo se aplica).
   Com JS: html recebe .js e os elementos [data-reveal] entram suavemente.
   ========================================================================== */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * .12s);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
html.js img.hero__mark[data-reveal] {
  transform: scale(.8) translateY(30px) rotate(-5deg);
  transition: opacity 1.1s var(--ease-spring), transform 1.1s var(--ease-spring);
}
html.js img.hero__mark[data-reveal].is-visible {
  transform: scale(1) translateY(0) rotate(0deg);
}

/* ==========================================================================
   Barra de progresso de leitura (decorativa)
   ========================================================================== */
.progress-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(156,163,175,.35);
  z-index: 60;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
}

/* ==========================================================================
   Botões — CTAs de acesso à plataforma (header, hero)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  border: 1.5px solid transparent;
  padding: 15px 30px;
  min-height: 48px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out),
              background-color .25s var(--ease-out), border-color .25s var(--ease-out),
              color .25s var(--ease-out);
}
.btn:focus-visible {
  outline-offset: 3px;
  border-radius: 999px;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(13,148,136,.6);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(13,148,136,.75);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.32);
  color: var(--paper);
}
.btn--outline:hover {
  transform: translateY(-2px);
  border-color: var(--brand-teal);
  background: rgba(13,148,136,.14);
}

.btn--ghost {
  border-color: transparent;
  color: var(--muted-dark);
  padding-inline: .4em;
}
.btn--ghost:hover { color: var(--paper); }

.btn--sm {
  padding: 8px 16px;
  font-size: .72rem;
  min-height: 36px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  background: var(--dark);
  padding-block: 22px;
  position: relative;
  z-index: 10;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-header__logo {
  width: 168px;
  height: auto;
}
.site-header__tag {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--muted-dark);
  white-space: nowrap;
  display: none;
}
.site-header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  padding-block: 56px 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78svh;
}

.hero__glow {
  position: absolute;
  inset: -15% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(circle at 28% 20%, rgba(46,125,50,.38), transparent 55%),
    radial-gradient(circle at 78% 65%, rgba(13,148,136,.32), transparent 55%);
  filter: blur(70px);
  pointer-events: none;
  animation: heroGlowDrift 44s ease-in-out infinite;
}
@keyframes heroGlowDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-3%, 2%) scale(1.06); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 68% 45%, black 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 68% 45%, black 0%, transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  text-align: center;
}

.hero__content { max-width: 640px; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: clamp(2.1rem, 1.5rem + 3.1vw, 3.75rem);
  line-height: 1.1;
  color: var(--paper);
  margin-top: .5em;
}
.hero__title .line { display: block; }
.hero__title .line:last-child {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin-top: 1.3em;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--muted-dark);
  max-width: 50ch;
  margin-inline: auto;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 2em;
}

.hero__mark {
  width: min(280px, 62vw);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.35));
}

.scroll-cue {
  position: relative;
  margin-top: 44px;
  align-self: center;
  width: 2px;
  height: 46px;
  background: rgba(156,163,175,.28);
  border-radius: 2px;
  overflow: hidden;
}
.scroll-cue span {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: var(--gradient-vert);
  border-radius: 2px;
  animation: scrollCue 2.1s ease-in-out infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(160%); }
  100% { transform: translateY(160%); }
}

/* ==========================================================================
   Sections — alternância paper / ink
   ========================================================================== */
.section {
  padding-block: 72px;
  position: relative;
}
.section--paper { background: var(--paper); color: var(--ink); }
.section--ink   { background: var(--dark); color: var(--paper); }

.section__head { max-width: 46ch; }

.section--split {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
}
.section__text { max-width: 560px; }

.section__diagram {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
}
.hub-diagram { width: 100%; height: auto; }
.hub-links line {
  stroke: var(--paper-3);
  stroke-width: 2;
}
.hub-core {
  fill: url(#hubGradient);
}
.hub-core-ring {
  fill: none;
  stroke: rgba(255,255,255,.45);
  stroke-width: 1.5;
  stroke-dasharray: 3 5;
}
.hub-node circle {
  fill: var(--paper-2);
  stroke: var(--brand-teal);
  stroke-width: 1.75;
}
.hub-node text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink);
}

/* ==========================================================================
   Timeline — como funciona
   ========================================================================== */
.timeline {
  list-style: none;
  margin-top: 56px;
  position: relative;
  padding-left: 76px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--gradient-vert);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.3s var(--ease-out);
}
.timeline.is-active::before { transform: scaleY(1); }

.timeline__item {
  position: relative;
  padding-block: 22px;
  border-top: 1px solid var(--dark-3);
}
.timeline__item:first-child { border-top: none; }

.timeline__num {
  position: absolute;
  left: -76px;
  top: 22px;
  width: 54px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.timeline__body p {
  color: var(--muted-dark);
  max-width: 52ch;
  margin-top: .4em;
  font-size: 1rem;
  line-height: 1.65;
}

/* ==========================================================================
   Bento — funcionalidades
   ========================================================================== */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 52px;
}

.bento__card {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: 18px;
  padding: 28px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s var(--ease-out);
}
.bento__card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-teal);
  box-shadow: 0 20px 36px -22px rgba(13,148,136,.35);
}

.bento__icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--brand-teal);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 18px;
}
.bento__icon .icon-muted { opacity: .4; }
.bento__icon .icon-fill { fill: var(--brand-teal); stroke: none; }

.bento__card p {
  color: var(--muted-light);
  font-size: .96rem;
  line-height: 1.6;
}

/* ==========================================================================
   Split columns — benefícios
   ========================================================================== */
.split-cols {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 52px;
}
.split-cols__divider {
  height: 1px;
  background: var(--dark-3);
}

.check-list { list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-block: 12px;
}
.check-list li + li { border-top: 1px solid var(--dark-3); }
.check-list__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(13,148,136,.16);
  fill: none;
  stroke: var(--brand-teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 1px;
}
.check-list span {
  color: var(--muted-dark);
  font-size: 1rem;
  line-height: 1.55;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  padding-block: 64px 48px;
  text-align: center;
  border-top: 1px solid var(--dark-3);
}
.site-footer__mark {
  width: 40px;
  height: auto;
  margin-inline: auto;
  opacity: .92;
}
.site-footer__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--paper);
  margin-top: 18px;
}
.site-footer__tag {
  font-size: .875rem;
  color: var(--muted-dark);
  margin-top: 6px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 22px;
  row-gap: 8px;
  margin-top: 26px;
}
.site-footer__links-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  opacity: .6;
}
.site-footer__link {
  font-size: .875rem;
  color: var(--muted-dark);
  text-decoration: underline;
  text-decoration-color: rgba(156,163,175,.4);
  text-underline-offset: 3px;
  padding: 4px 2px;
  transition: color .2s var(--ease-out), text-decoration-color .2s var(--ease-out);
}
.site-footer__link:hover {
  color: var(--paper);
  text-decoration-color: var(--brand-teal);
}
.site-footer__copy {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted-dark);
  opacity: .7;
  margin-top: 22px;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 32px; }

  .site-header__tag { display: block; }

  .h2 { max-width: 22ch; }

  .split-cols { flex-direction: row; align-items: stretch; }
  .split-cols__col { flex: 1; }
  .split-cols__divider { width: 1px; height: auto; }

  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__card--wide { grid-column: span 2; }
}

@media (min-width: 900px) {
  .section { padding-block: 112px; }
  .hero { padding-block: 64px 120px; }

  .hero__inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 64px;
  }
  .hero__content { max-width: 560px; }
  .hero__lede { margin-inline: 0; }
  .hero__cta { justify-content: flex-start; }
  .hero__mark { width: min(340px, 34vw); flex-shrink: 0; }
  .scroll-cue { align-self: flex-start; margin-left: 4px; }

  .section--split {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 72px;
  }
  .section__text { flex: 1 1 480px; }
  .section__diagram { flex: 1 1 380px; max-width: 420px; margin-inline: 0; }

  .bento { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .bento__card--wide { grid-column: span 2; }
}

@media (min-width: 1200px) {
  .hero__title { font-size: 3.75rem; }
}

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal],
  html.js img.hero__mark[data-reveal] {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__glow, .scroll-cue span { animation: none !important; }
  .timeline::before { transition: none !important; transform: scaleY(1) !important; }
  .bento__card { transition: none !important; }
}

/* ==========================================================================
   Impressão — o conteúdo nunca pode depender de rolagem/IntersectionObserver
   para existir. Força o estado final de todas as revelações e do trilho da
   linha do tempo, e remove elementos que só fazem sentido em tela.
   ========================================================================== */
@media print {
  html.js [data-reveal],
  html.js img.hero__mark[data-reveal] {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .timeline::before { transition: none !important; transform: scaleY(1) !important; }
  .hero__glow, .scroll-cue span { animation: none !important; }
  .progress-rail, .scroll-cue { display: none !important; }
}
