/* ============================================================
   Guias — páginas de produto | Rota Contínua
   Complementa assets/style.css (tokens, botões, FAQ, cards)
   ============================================================ */

/* ---------- Cabeçalho enxuto ---------- */
.p-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,33,30,.94);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-d);
}
.p-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: .85rem;
  padding-bottom: .85rem;
}
.p-back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--fh);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(244,239,227,.58);
  transition: color .2s ease;
}
.p-back svg { width: 13px; height: 13px; }
@media (hover: hover) and (pointer: fine) {
  .p-back:hover { color: var(--sand); }
}

/* ---------- Hero do guia ---------- */
.p-hero {
  background: var(--ink);
  color: var(--sand);
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 7vw, 6rem);
}
.p-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.p-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 3.5rem;
  font-family: var(--fh);
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-d-2);
}
.p-crumb a { color: inherit; transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .p-crumb a:hover { color: var(--aqua); }
}
.p-crumb [aria-current] { color: var(--aqua); }

.p-title {
  font-family: var(--fd);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 1.1rem 0 1.25rem;
  text-wrap: balance;
}
.p-title em { font-style: italic; color: var(--aqua); }

.p-sub {
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--txt-d);
}

.p-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.75rem;
}

.p-buy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line-d);
}
.p-price {
  font-family: var(--fh);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.p-note {
  margin-top: .9rem;
  font-size: .75rem;
  color: var(--txt-d-2);
}

.p-cover img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}

/* ---------- Seções ---------- */
.p-sec {
  background: var(--ink);
  color: var(--sand);
  padding: var(--sec) 0;
  border-top: 1px solid var(--line-d);
}
.p-sec--paper {
  background: var(--paper-2);
  color: var(--ink);
  border-top: 1px solid var(--line-l);
}
.p-sec--paper .s-label { color: var(--aqua-d); }
.p-sec--paper .s-title { color: var(--ink); }
.p-sec--paper .s-title em { color: var(--aqua-d); }
.p-sec--paper .s-desc { color: var(--txt-l); }

.p-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  margin-top: 2.5rem;
}
.p-list li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: .75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-d);
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--txt-d);
}
.p-list .n {
  font-family: var(--fh);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--aqua);
  padding-top: .3rem;
  font-variant-numeric: tabular-nums;
}
.p-sec--paper .p-list li {
  border-top-color: var(--line-l);
  color: var(--txt-l);
}
.p-sec--paper .p-list .n { color: var(--aqua-d); }

/* ---------- Para quem é ---------- */
.p-aud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.5rem;
}
.p-aud-col {
  padding: clamp(1.4rem, 2.5vw, 2rem);
  border: 1px solid var(--line-l);
  border-radius: 1rem;
  background: rgba(255,255,255,.4);
}
.p-aud-col--muted { background: transparent; }
.p-aud-col--muted li { padding-left: 1.5rem; }
.p-aud-col.p-aud-col--muted li::before {
  content: '';
  top: .28em;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23A63D33' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") no-repeat center / contain;
}
.p-aud-col.p-aud-col--pos li { padding-left: 1.5rem; }
.p-aud-col.p-aud-col--pos li::before {
  content: '';
  top: .28em;
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23167065' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.p-aud-note {
  margin-top: 2rem;
  padding: 1.35rem 1.6rem;
  border: 1px solid var(--line-l);
  border-left: 3px solid var(--aqua-d);
  border-radius: 0 .9rem .9rem 0;
  background: rgba(6,33,30,.045);
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--txt-l);
}
.p-aud-note strong { color: var(--ink); font-weight: 600; }
.p-aud-note a {
  color: var(--aqua-d);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Grid genérico de 3 colunas ---------- */
.p-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.p-cell {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line-d);
  border-radius: 1rem;
}
.p-sec--paper .p-cell {
  border-color: var(--line-l);
  background: rgba(255,255,255,.42);
}
.p-cell h3 {
  font-family: var(--fd);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.15;
  margin-bottom: .5rem;
  color: var(--sand);
}
.p-sec--paper .p-cell h3 { color: var(--ink); }
.p-cell p {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--txt-d);
}
.p-sec--paper .p-cell p { color: var(--txt-l); }

.p-cell-icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: .8rem;
  border: 1px solid rgba(22,112,101,.2);
  background: rgba(22,112,101,.08);
  color: var(--aqua-d);
}
.p-sec .p-cell-icon {
  border-color: rgba(89,211,190,.28);
  background: rgba(89,211,190,.09);
  color: var(--aqua);
}
.p-sec--paper .p-cell-icon {
  border-color: rgba(6,33,30,.16);
  background: var(--ink);
  color: var(--aqua);
}
.p-cell-icon svg { width: 20px; height: 20px; }

.p-cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.p-cta-note {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: .75rem;
  line-height: 1.6;
  color: var(--txt-l-2);
}
.p-aud-col h3 {
  font-family: var(--fh);
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink);
}
.p-aud-col ul { display: flex; flex-direction: column; gap: .65rem; }
.p-aud-col li {
  position: relative;
  padding-left: 1rem;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--txt-l);
}
.p-aud-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua-d);
}
.p-aud-col--muted li::before { background: rgba(6,33,30,.28); }

/* ---------- Como funciona a compra ---------- */
.p-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2.5rem;
}
.p-step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-d);
}
.p-step .n {
  font-family: var(--fh);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--aqua);
}
.p-step h3 {
  font-family: var(--fd);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.15;
  margin: .65rem 0 .5rem;
  color: var(--sand);
}
.p-step p {
  font-size: .875rem;
  line-height: 1.65;
  color: var(--txt-d);
}

/* Compromisso editorial */
.p-promise {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(89,211,190,.26);
  border-left: 2px solid var(--aqua);
  border-radius: 0 1rem 1rem 0;
  background: rgba(89,211,190,.05);
}
.p-promise h3 {
  font-family: var(--fh);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: .55rem;
}
.p-promise p {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--txt-d);
}

/* ---------- CTA final ---------- */
.p-cta {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line-l);
}
.p-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.p-cta h2 {
  font-family: var(--fd);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -.01em;
}
.p-cta h2 em { font-style: italic; color: var(--aqua-d); }

/* ---------- Rodapé enxuto ---------- */
.p-foot {
  background: var(--ink);
  color: var(--txt-d-2);
  padding: 2.5rem 0;
  border-top: 1px solid var(--line-d);
}
.p-foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-family: var(--fh);
  font-size: .6875rem;
  letter-spacing: .06em;
}
.p-foot-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.p-foot a { color: var(--txt-d); transition: color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .p-foot a:hover { color: var(--sand); }
}

/* ---------- Hub de guias ---------- */
.p-hub-hero {
  background: var(--ink);
  color: var(--sand);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.p-hub-hero .p-sub { margin-top: 1.25rem; }

/* hero com composição de imagens */
.p-hub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.p-visual {
  position: relative;
  height: clamp(300px, 30vw, 400px);
}
.p-card {
  position: absolute;
  width: 58%;
  margin: 0;
  padding: .5rem .5rem .45rem;
  background: var(--paper);
  border-radius: 2px;
  box-shadow: 0 26px 60px rgba(0,0,0,.45);
  transform: rotate(var(--r, 0deg));
}
.p-card img { display: block; width: 100%; height: auto; }
.p-visual--guides .p-card--1 { top: 2%; left: 0; --r: -5deg; z-index: 3; }
.p-visual--guides .p-card--2 { top: 15%; right: 0; --r: 4deg; z-index: 2; }
.p-visual--guides .p-card--3 { bottom: 0; left: 12%; width: 54%; --r: -2deg; z-index: 4; }
.p-visual--partners { height: clamp(300px, 28vw, 400px); }
.p-visual--partners .p-card { width: 48%; }
.p-visual--partners .p-card:nth-child(1) { top: 0; left: 0; --r: -4deg; z-index: 2; }
.p-visual--partners .p-card:nth-child(2) { bottom: 0; right: 0; --r: 5deg; z-index: 3; }
.p-hub-sec {
  background: var(--paper-2);
  color: var(--ink);
  padding: var(--sec) 0;
}
.p-hub-sec .s-title em { color: var(--aqua-d); }
.p-hub-sec .guide-feature { margin-top: 2.5rem; }
.p-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* ---------- Ajustes responsivos ---------- */
@media (max-width: 900px) {
  .p-hero-grid { grid-template-columns: 1fr; }
  .p-cover { order: -1; max-width: 24rem; }
  .p-hub-hero-grid { grid-template-columns: 1fr; }
  .p-visual { order: -1; height: clamp(240px, 56vw, 320px); }
  .p-list, .p-aud, .p-steps { grid-template-columns: 1fr; }
  .p-cta-row { align-items: flex-start; }
  .p-foot-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1023px) {
  .p-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .p-grid3 { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .p-hub-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .p-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
}
