/* ============================================
   IA, MODO DE USAR — Site da Palestra Corban 360
   Identidade visual Escola do Crédito
   ============================================ */

:root {
  --laranja: #E9541E;
  --laranja-escuro: #C43F10;
  --laranja-claro: #F39419;
  --teal: #004D56;
  --teal-claro: #008087;
  --bg: #FAF7F2;
  --bg-alt: #F3EEE5;
  --card: #F1EAE0;
  --card-hover: #E9E1D4;
  --text: #1F1F1F;
  --muted: #5C5C5C;
  --dark: #1A1A1A;
  --border: rgba(31, 31, 31, 0.1);
  --border-strong: rgba(31, 31, 31, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(31, 31, 31, 0.05);
  --shadow-hover: 0 6px 24px rgba(31, 31, 31, 0.09);
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--laranja);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--laranja-escuro); }

/* ============================================
   HEADER / NAV
   ============================================ */

.header {
  position: sticky;
  top: 0;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  height: 36px;
  width: auto;
}

.header-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.header-nav a {
  color: var(--text);
}

.header-nav a:hover { color: var(--laranja); }

@media (max-width: 720px) {
  .header-nav { display: none; }
}

/* ============================================
   CONTAINER / SECTIONS
   ============================================ */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  scroll-margin-top: 72px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--laranja);
  margin-bottom: 12px;
}

h1, h2, h3 {
  color: var(--teal);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--teal);
}

p {
  color: var(--muted);
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.2rem;
  color: var(--text);
  line-height: 1.6;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: linear-gradient(180deg, #FDF8F1 0%, var(--bg) 70%);
  padding: 100px 0 90px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233, 84, 30, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--teal);
}

.hero-title .destaque {
  color: var(--laranja);
  display: inline-block;
}

.hero-sub {
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--teal);
}

.hero-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.hero-card li::before {
  content: '→';
  color: var(--laranja);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: var(--laranja);
  color: #fff;
  border-color: var(--laranja);
}

.btn-primary:hover {
  background: var(--laranja-escuro);
  border-color: var(--laranja-escuro);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(196, 63, 16, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-secondary:hover {
  background: var(--teal);
  color: #fff;
}

.btn-small {
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* ============================================
   CALLOUTS
   ============================================ */

.callout {
  background: var(--card);
  border-left: 4px solid var(--laranja);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 24px 0;
}

.callout strong {
  color: var(--teal);
  display: block;
  margin-bottom: 4px;
}

.callout p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.callout-dica { border-left-color: var(--teal-claro); }
.callout-atencao { border-left-color: var(--laranja-claro); }

/* ============================================
   STEPPER (passo a passo)
   ============================================ */

.stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.step:last-child { border-bottom: none; }

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--laranja);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(233, 84, 30, 0.2);
}

.step-content h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: var(--teal);
}

.step-meta {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--laranja);
  background: rgba(233, 84, 30, 0.08);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.step-content p {
  margin-bottom: 10px;
}

.step-content ol, .step-content ul {
  margin: 12px 0 12px 20px;
  color: var(--text);
}

.step-content li {
  margin-bottom: 6px;
}

/* ============================================
   CARDS (materiais, plugins, etc)
   ============================================ */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.card-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--laranja);
  margin-bottom: 10px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--teal);
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

/* ============================================
   ESCADA (4 degraus)
   ============================================ */

.escada {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
}

.degrau {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 20px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: all 0.2s;
}

.degrau:nth-child(1) { margin-left: 0; }
.degrau:nth-child(2) { margin-left: 32px; }
.degrau:nth-child(3) { margin-left: 64px; }
.degrau:nth-child(4) { margin-left: 96px; }

@media (max-width: 720px) {
  .degrau:nth-child(n) { margin-left: 0; }
}

.degrau-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--laranja);
  line-height: 1;
}

.degrau-content h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.degrau-content p {
  font-size: 0.92rem;
  margin: 0;
}

.degrau-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.degrau-tag.agora {
  background: var(--laranja);
  color: #fff;
}

.degrau-tag.futuro {
  background: rgba(0, 77, 86, 0.1);
  color: var(--teal);
}

/* ============================================
   SEÇÃO DE PLUGINS/CONECTORES
   ============================================ */

.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.plugin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 22px;
  transition: all 0.2s;
}

.plugin-card:hover {
  background: var(--card-hover);
  border-color: var(--border-strong);
}

.plugin-card h4 {
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: 6px;
  font-weight: 700;
}

.plugin-card p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

.plugin-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(0, 128, 135, 0.12);
  color: var(--teal-claro);
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* Tabela Chat / Cowork / Code */

.comparativo {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 24px 0;
}

.comparativo th {
  background: var(--teal);
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comparativo td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
}

.comparativo tr:last-child td { border-bottom: none; }
.comparativo tr:nth-child(even) td { background: rgba(0,0,0,0.015); }

.comparativo td:first-child {
  font-weight: 700;
  color: var(--teal);
}

/* ============================================
   FAQ (accordion)
   ============================================ */

.faq {
  max-width: 780px;
}

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

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: inherit;
}

.faq-question:hover { color: var(--laranja); }

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--laranja);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 22px;
}

.faq-answer p {
  font-size: 0.98rem;
  color: var(--muted);
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--teal);
  color: #fff;
  padding: 70px 0 40px;
  margin-top: 60px;
}

.footer h2 {
  color: #fff;
  margin-bottom: 16px;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
}

.footer-logo {
  height: 40px;
  margin-bottom: 24px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}

.footer-contact a {
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-contact a:hover {
  color: var(--laranja-claro);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  margin-top: 40px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

/* ============================================
   UTILS
   ============================================ */

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }

.divider {
  height: 1px;
  background: var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
}

.bg-alt { background: var(--bg-alt); }

/* Ordem ilustrada (lista das instruções) */

.ordem-instrucoes {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 560px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}

.ordem-instrucoes ol {
  list-style: none;
  counter-reset: ordem;
  padding: 0;
}

.ordem-instrucoes li {
  counter-increment: ordem;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: var(--teal);
}

.ordem-instrucoes li:last-child { border-bottom: none; }

.ordem-instrucoes li::before {
  content: counter(ordem);
  width: 32px;
  height: 32px;
  background: var(--laranja);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Responsivo */

@media (max-width: 720px) {
  section { padding: 60px 0; }
  .hero { padding: 60px 0 70px; }
  .step { grid-template-columns: 48px 1fr; gap: 16px; }
  .step-num { width: 44px; height: 44px; font-size: 1.1rem; }
  .degrau { grid-template-columns: 60px 1fr; }
  .degrau-tag { grid-column: 1 / -1; justify-self: start; }
}
