/* ==========================================================================
   KOMUNIDADE — Landing page
   Direcao de arte "Blocos", derivada do brandbook:
   blocos de cor encostados, tipografia de cartaz, grade do K, grao.
   Paleta oficial: Breu, Haze, Mango, Bufallo.
   ========================================================================== */

:root {
  /* Paleta do brandbook */
  --breu: #142d0d;
  --breu-900: #0b1705;
  --haze: #667f22;
  --haze-700: #4d6119;
  --mango: #bf4904;
  --bufallo: #77210c;

  /* Neutros */
  --osso: #f0f1e9;
  --osso-2: #e4e6d8;
  --linha: #cdd0be;
  --tinta: #142d0d;
  --tinta-mid: #47582f;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);

  --display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --texto: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Grao — a textura do K do brandbook */
  --grao: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--osso);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Grao aplicado sobre os blocos de cor ------------------------------------ */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grao);
  opacity: .16;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}
.grain > * { position: relative; z-index: 2; }

/* Barra de metadados — ecoa o cabecalho do brandbook ---------------------- */
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 11px 0;
  font-family: var(--texto);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  opacity: .72;
}
.meta span:last-child { text-align: right; }

/* Tipografia de bloco ----------------------------------------------------- */
.kicker {
  font-family: var(--texto);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 22px;
  display: block;
}
.t-xxl { font-size: clamp(44px, 9.2vw, 132px); letter-spacing: -0.045em; }
.t-xl  { font-size: clamp(34px, 6vw, 78px); }
.t-lg  { font-size: clamp(27px, 3.6vw, 46px); }
.t-md  { font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.02em; }

.lead {
  font-size: clamp(16.5px, 1.7vw, 20px);
  line-height: 1.55;
  max-width: 56ch;
}
.corpo { font-size: 16.5px; line-height: 1.65; max-width: 62ch; }

/* Botoes — cantos retos, na linguagem de bloco ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 30px;
  border: 2px solid transparent;
  border-radius: 0;
  font-family: var(--texto);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.btn svg { transition: transform .16s ease; }
.btn:hover svg { transform: translateX(4px); }
.btn:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; }

.btn--mango { background: var(--mango); color: #fff; border-color: var(--mango); }
.btn--mango:hover { background: #9e3c03; border-color: #9e3c03; }

.btn--breu { background: var(--breu); color: var(--osso); border-color: var(--breu); }
.btn--breu:hover { background: #000; border-color: #000; }

.btn--osso { background: var(--osso); color: var(--breu); border-color: var(--osso); }
.btn--osso:hover { background: #fff; border-color: #fff; }

.btn--linha-clara { background: transparent; color: var(--osso); border-color: rgba(240,241,233,.45); }
.btn--linha-clara:hover { background: var(--osso); color: var(--breu); border-color: var(--osso); }

.btn--linha-escura { background: transparent; color: var(--breu); border-color: var(--breu); }
.btn--linha-escura:hover { background: var(--breu); color: var(--osso); }

/* Estado "em breve" — o cadastro ainda nao foi liberado na plataforma.
   Nao e link: herda a cor do bloco para funcionar em fundo claro e escuro. */
/* Preenchimento em tinta escura, nao clara: sobre o Haze um fill claro
   derrubaria o contraste do rotulo abaixo de AA; escurecer melhora nos
   dois casos. O rotulo fica em contraste cheio e quem recua e a borda. */
.btn--breve {
  background: rgba(0, 0, 0, .12);
  color: currentColor;
  border-color: currentColor;
  cursor: default;
}
@supports (border-color: color-mix(in srgb, currentColor 40%, transparent)) {
  .btn--breve { border-color: color-mix(in srgb, currentColor 26%, transparent); }
}

.btn--sm { padding: 12px 20px; font-size: 12px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Item de rodape sem link, no mesmo estado */
.rodape .breve {
  font-size: 14.5px;
  color: rgba(240,241,233,.72);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rodape .breve::after {
  content: "Em breve";
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid rgba(240,241,233,.28);
  padding: 2px 6px;
}

/* Cabecalho --------------------------------------------------------------- */
.topbar {
  background: var(--breu-900);
  color: var(--osso);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.topbar .shell {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar span { opacity: .62; }
.topbar a { color: inherit; text-decoration: none; opacity: .62; }
.topbar a:hover { opacity: 1; }

.head {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--breu);
  color: var(--osso);
  border-bottom: 1px solid rgba(240,241,233,.16);
}
.head .shell { display: flex; align-items: center; gap: clamp(22px, 2.8vw, 34px); height: 78px; }
.head__logo { line-height: 0; flex-shrink: 0; }
.head__logo img { height: 25px; width: auto; }

.menu { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 28px); margin-left: auto; }
.menu a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(240,241,233,.72);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.menu a:hover { color: var(--osso); border-bottom-color: var(--mango); }

.head__cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: 8px; }
.head__cta .btn { white-space: nowrap; }

.hamb {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 2px solid rgba(240,241,233,.4);
  background: transparent;
  color: var(--osso);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.drawer { display: none; background: var(--breu); border-top: 1px solid rgba(240,241,233,.16); }
.drawer.aberto { display: block; }
.drawer .shell { padding-top: 12px; padding-bottom: 26px; }
.drawer a {
  display: block;
  padding: 15px 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--osso);
  border-bottom: 1px solid rgba(240,241,233,.14);
}
.drawer .btns { margin-top: 24px; }
.drawer .btn { flex: 1; justify-content: center; }

/* Blocos ------------------------------------------------------------------ */
.bloco { padding: clamp(64px, 8vw, 118px) 0; }
.bloco--breu   { background: var(--breu); color: var(--osso); }
.bloco--haze   { background: var(--haze); color: #fff; }
.bloco--mango  { background: var(--mango); color: #fff; }
.bloco--bufallo{ background: var(--bufallo); color: #fff; }
.bloco--osso   { background: var(--osso); color: var(--tinta); }
.bloco--osso2  { background: var(--osso-2); color: var(--tinta); }

/* Hero -------------------------------------------------------------------- */
/* O padding-bottom impede que os divisores da faixa
   encostem no bloco seguinte. */
.hero { background: var(--breu); color: var(--osso); overflow: hidden; padding-bottom: clamp(30px, 3.8vw, 52px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.32fr .68fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: end;
  padding: clamp(52px, 6.5vw, 96px) 0 clamp(46px, 5vw, 74px);
}
.hero h1 { color: #fff; }
.hero h1 .mango { color: var(--mango); }
.hero__lead { margin-top: 30px; color: rgba(240,241,233,.82); }
.hero .btns { margin-top: 36px; }

.hero__foto {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--haze);
}
.hero__foto img { width: 100%; height: 100%; object-fit: cover; }
.hero__foto figcaption {
  position: absolute;
  left: 0; bottom: 0;
  background: var(--mango);
  color: #fff;
  padding: 11px 16px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Faixa de dados sob o hero */
.faixa {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(240,241,233,.2);
}
.faixa div {
  /* Recuo generoso no topo para o texto nao encostar na linha da faixa.
     Embaixo, recuo curto: o divisor acompanha o texto em vez de sobrar
     no vazio; o respiro ate o bloco seguinte vem do padding do hero. */
  padding: clamp(30px, 3.4vw, 46px) 24px 14px 24px;
  border-right: 1px solid rgba(240,241,233,.2);
}
/* Sem divisor a esquerda: alinha com a margem da pagina. */
.faixa div:first-child { padding-left: 0; }
.faixa div:last-child { border-right: none; }
.faixa strong {
  display: block;
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.faixa span { font-size: 13.5px; color: rgba(240,241,233,.66); }

/* Manifesto --------------------------------------------------------------- */
.manifesto p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 20ch;
}
.manifesto .assinatura {
  font-family: var(--texto);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-top: 34px;
  opacity: .8;
}

/* Editorial (duas colunas) ------------------------------------------------ */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
  margin-top: 44px;
}
.editorial__foto { aspect-ratio: 1 / 1; overflow: hidden; background: var(--osso-2); }
.editorial__foto img { width: 100%; height: 100%; object-fit: cover; }
.editorial p + p { margin-top: 18px; }
.editorial .btns { margin-top: 32px; }

/* Grade do K — os quatro pilares ------------------------------------------ */
.kgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 46px;
}
.kbloco {
  position: relative;
  padding: 30px 26px 28px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.kbloco:nth-child(1) { background: var(--breu); color: var(--osso); }
.kbloco:nth-child(2) { background: var(--haze); color: var(--osso); }
.kbloco:nth-child(3) { background: var(--mango); color: #fff; }
.kbloco:nth-child(4) { background: var(--bufallo); color: #fff; }
.kbloco__k {
  width: auto;
  height: 118px;
  opacity: .9;
  align-self: flex-start;
}
.kbloco h3 { font-size: 23px; margin-bottom: 8px; }
.kbloco p { font-size: 14.5px; line-height: 1.5; opacity: .88; }
.kbloco__num {
  position: absolute;
  top: 26px; right: 24px;
  font-family: var(--texto);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  opacity: .6;
}

/* Chips das condicoes clinicas ------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; border-top: 1px solid rgba(240,241,233,.22); }
.chips span {
  padding: 15px 26px 15px 0;
  margin-right: 26px;
  font-family: var(--display);
  font-size: clamp(17px, 1.9vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(240,241,233,.22);
  flex: 1 1 auto;
  white-space: nowrap;
}

.aviso {
  margin-top: 40px;
  padding: 24px 28px;
  background: rgba(0,0,0,.24);
  border-left: 4px solid var(--mango);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 78ch;
  color: rgba(240,241,233,.86);
}

/* Cartazes do Kannaflix — direto da serie do brandbook -------------------- */
.cartazes { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 46px; }
.cartaz {
  position: relative;
  aspect-ratio: 3 / 4.4;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.cartaz:nth-child(1) { background: var(--mango); color: #fff; }
.cartaz:nth-child(2) { background: var(--osso); color: var(--breu); }
.cartaz:nth-child(3) { background: var(--breu); color: var(--osso); }
.cartaz:nth-child(4) { background: var(--haze); color: var(--osso); }
.cartaz__tag {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 11px 22px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  opacity: .78;
}
.cartaz h3 { font-size: clamp(22px, 2.3vw, 31px); }
.cartaz p { margin-top: 12px; font-size: 13.5px; line-height: 1.5; opacity: .86; }

/* Passos ------------------------------------------------------------------ */
.passos { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 46px; border-top: 2px solid var(--breu); }
.passo { padding: 26px 20px 12px 20px; border-right: 1px solid var(--linha); }
.passo:first-child { padding-left: 0; }
.passo:last-child { border-right: none; }
.passo__n {
  font-family: var(--display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--mango);
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.passo h4 { font-size: 17px; margin-bottom: 7px; }
.passo p { font-size: 14px; color: var(--tinta-mid); line-height: 1.5; }

/* Beneficios -------------------------------------------------------------- */
.beneficios { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(30px, 5vw, 70px); margin-top: 44px; }
.beneficio { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--linha); }
.beneficio__n {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--mango);
  padding-top: 4px;
  flex-shrink: 0;
}
.beneficio h4 { font-size: 18px; margin-bottom: 6px; }
.beneficio p { font-size: 14.5px; color: var(--tinta-mid); line-height: 1.55; }

/* FAQ --------------------------------------------------------------------- */
.faq { margin-top: 44px; border-top: 2px solid var(--breu); }
.faq details { border-bottom: 1px solid var(--linha); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: color .16s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--mango); }
.faq summary:focus-visible { outline: 3px solid var(--mango); outline-offset: -3px; }
.faq summary .sinal {
  font-family: var(--texto);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq details[open] summary { color: var(--mango); }
.faq details[open] summary .sinal { transform: rotate(45deg); }
.faq__r { padding: 0 0 28px; font-size: 16px; line-height: 1.65; color: var(--tinta-mid); max-width: 70ch; }
.faq__r a { color: var(--haze-700); font-weight: 600; }

/* CTA final --------------------------------------------------------------- */
.fechamento { text-align: left; }
.fechamento h2 { max-width: 16ch; }
.fechamento .lead { margin-top: 26px; }
.fechamento .btns { margin-top: 38px; }

/* Rodape ------------------------------------------------------------------ */
.rodape { background: var(--breu-900); color: var(--osso); padding: 70px 0 32px; }
.rodape__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; padding-bottom: 42px; border-bottom: 1px solid rgba(240,241,233,.16); }
.rodape__logo { height: 30px; width: auto; margin-bottom: 22px; }
.rodape__sobre { font-size: 14.5px; color: rgba(240,241,233,.62); max-width: 42ch; }
.rodape h5 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(240,241,233,.5);
  margin: 0 0 18px;
}
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rodape ul a {
  font-size: 14.5px;
  color: rgba(240,241,233,.76);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color .16s ease;
}
.rodape ul a:hover { color: var(--mango); }
.rodape__legal {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(240,241,233,.4);
  max-width: 98ch;
}
.rodape__fim {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(240,241,233,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(240,241,233,.42);
}

/* WhatsApp ---------------------------------------------------------------- */
.zap {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 95;
  width: 56px; height: 56px;
  background: var(--mango);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  transition: background-color .16s ease, transform .16s ease;
}
.zap:hover { background: var(--breu); transform: translateY(-3px); }

/* Responsivo -------------------------------------------------------------- */
@media (max-width: 1040px) {
  .kgrid { grid-template-columns: repeat(2, 1fr); }
  .cartazes { grid-template-columns: repeat(2, 1fr); }
  .passos { grid-template-columns: repeat(3, 1fr); }
  .passo:nth-child(3) { border-right: none; }
  /* Em 3 colunas, quem abre a linha e o 1 e o 4. */
  .passo:nth-child(3n+1) { padding-left: 0; }
}

/* O menu completo deixa de caber antes do layout quebrar */
@media (max-width: 1200px) {
  .menu, .head__cta { display: none; }
  .hamb { display: flex; }
  html { scroll-padding-top: 80px; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; }
  .hero__foto { aspect-ratio: 16 / 10; }
  .editorial { grid-template-columns: 1fr; }
  .rodape__grid { grid-template-columns: 1fr 1fr; }
  .rodape__marca { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .head .shell { height: 66px; }
  .head__logo img { height: 22px; }
  .topbar .shell span:nth-child(2) { display: none; }
  .faixa { grid-template-columns: 1fr; }
  .faixa div { border-right: none; border-bottom: 1px solid rgba(240,241,233,.2); padding: 18px 0; }
  /* O primeiro item fica sob a linha da faixa e precisa do mesmo respiro. */
  .faixa div:first-child { padding-top: 30px; }
  .faixa div:last-child { border-bottom: none; }
  .kgrid, .cartazes, .passos, .beneficios { grid-template-columns: 1fr; }
  .passo { border-right: none; border-bottom: 1px solid var(--linha); padding: 26px 0 24px; }
  .passo:last-child { border-bottom: none; }
  .cartaz { aspect-ratio: 3 / 2.2; }
  .chips span { flex: 1 1 100%; white-space: normal; }
  .btn { width: 100%; justify-content: center; }
  .rodape__grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
