/* ================================================================
   GoSession — Como Funciona (P8)
   Estilos específicos para a página "Como Funciona".
   Reusa tokens do Design System principal do GoSession.
   ================================================================ */

/* ── Hero ── */
.cf-hero {
  position: relative;
  padding: 72px 20px 56px;
  text-align: center;
  overflow: hidden;
}

.cf-hero::before {
  content: '';
  position: absolute;
  top: 36%;
  left: 50%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(29,184,160,0.16) 0%, transparent 68%);
  pointer-events: none;
}

.cf-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-brand);
  background: var(--teal-pale);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  position: relative;
}

.cf-hero h1 {
  max-width: 640px;
  margin: 0 auto 20px;
  position: relative;
}

.cf-hero h1 .tl-go {
  color: var(--text-primary);
}

.cf-hero h1 .tl-session {
  color: var(--teal-light);
}

.cf-hero-sub {
  max-width: 540px;
  margin: 0 auto 32px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
}

.cf-hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  position: relative;
}

.cf-hero-ctas .link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.cf-hero-ctas .link:hover {
  color: var(--teal-brand);
}

/* ── Intro band ── */
.intro-band {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.intro-inner h2 {
  margin-bottom: 20px;
}

.intro-inner p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.intro-inner p:last-child {
  margin-bottom: 0;
}

.intro-inner strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Problem ── */
.prob-inner {
  max-width: 680px;
  margin: 0 auto;
}

.prob-inner h2 {
  margin-bottom: 20px;
}

.prob-inner p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.prob-inner .lead {
  color: var(--text-primary);
}

/* ── Steps (visual flow) ── */
.flow-section {
  background: var(--bg-surface);
}

.flow-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.flow-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .flow-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (min-width: 1000px) {
  .flow-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.vstep {
  position: relative;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px 24px 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.vstep:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-hover);
}

.vstep-num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: rgba(29,184,160,0.22);
  line-height: 1;
}

.vstep-ico {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(29,184,160,0.14), rgba(14,140,122,0.10));
  border: 1px solid var(--border);
  color: var(--teal-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vstep-ico svg {
  width: 34px;
  height: 34px;
}

.vstep h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.vstep p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* connector arrows between cards on desktop */
@media (min-width: 1000px) {
  .vstep:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 54px;
    right: -16px;
    width: 16px;
    height: 2px;
    background: var(--teal-light);
    opacity: 0.45;
    z-index: 1;
  }

  .vstep:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 50px;
    right: -16px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid var(--teal-light);
    opacity: 0.45;
    z-index: 1;
  }
}

.flow-body .hl {
  color: var(--teal-brand);
  font-weight: 600;
}

/* ── Fee section ── */
.fee-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.fee-inner > h2 {
  margin-bottom: 12px;
}

.fee-inner > p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 32px;
}

.fee-inner .pct {
  font-family: var(--font-mono);
  color: var(--teal-brand);
  font-weight: 500;
}

.fee-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
  margin-bottom: 24px;
}

@media (min-width: 720px) {
  .fee-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.fee-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.fee-card.featured {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}

.fee-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-brand);
  margin-bottom: 14px;
}

.fee-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}

.fee-row:last-of-type {
  border-bottom: none;
}

.fee-row .lbl {
  font-size: 14px;
  color: var(--text-secondary);
}

.fee-row .val {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-primary);
}

.fee-row .val.teal {
  color: var(--teal-brand);
}

.fee-foot {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 20px;
}

/* ── PIX strip ── */
.pix-section {
  background: var(--bg-surface);
}

.pix-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.pix-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--teal-pale);
  color: var(--teal-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pix-icon svg {
  width: 28px;
  height: 28px;
}

.pix-text h2 {
  font-size: clamp(22px, 3.5vw, 28px);
  margin-bottom: 10px;
}

.pix-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.pix-legal-note {
  margin-top: 14px;
  font-size: 13px !important;
  color: var(--text-tertiary, var(--text-secondary));
  line-height: 1.6 !important;
}

@media (max-width: 560px) {
  .pix-inner {
    flex-direction: column;
    gap: 16px;
  }
}

/* ── Benefits ── */
.ben-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .ben-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ben-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ben-check {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--teal-pale);
  color: var(--teal-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ben-check svg {
  width: 20px;
  height: 20px;
}

.ben-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ben-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FAQ ── */
.faq-section {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
}

.faq-q .chevron {
  transition: transform 0.3s;
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-q.open .chevron {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-a.open {
  max-height: 400px;
}

.faq-a p {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-group-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-brand);
  margin: 32px 0 4px;
}

.faq-group-label:first-child {
  margin-top: 0;
}

/* ── Final CTA ── */
.cta-section {
  background: var(--navy-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(29,184,160,0.16) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.cta-inner h2 {
  color: var(--text-primary); /* Se adapta no dark mode ou herda */
  margin-bottom: 12px;
}

.cta-section .cta-inner h2 {
  color: #f4faf9; /* Força cor clara sobre fundo navy deep */
}

.cta-inner p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 28px;
}

.cta-section .cta-inner p {
  color: rgba(244,250,249,0.65); /* Força cor secundária clara sobre fundo navy deep */
}

.cta-ctas {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.cta-ctas .link {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.cta-section .cta-ctas .link {
  color: rgba(244,250,249,0.7); /* Força cor de link clara sobre fundo navy deep */
}

.cta-ctas .link:hover {
  color: var(--teal-brand);
}

.cta-section .cta-ctas .link:hover {
  color: var(--teal-light);
}

@media (min-width: 768px) {
  .cf-hero {
    padding: 100px 20px 72px;
  }

  .cf-hero-ctas, .cta-ctas {
    flex-direction: row;
    justify-content: center;
  }
}
