/* ========================================
   Projeto Squad — Landing Promocional
   ======================================== */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #0e141b;
  --text-soft: #4a5568;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-light: #fff7ed;
  --ok: #15803d;
  --border: #e2e8f0;
  --shadow: 0 8px 30px rgba(14, 20, 27, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 20, 27, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Sora', var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--text);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

img {
  max-width: 100%;
  height: auto;
}

.shell {
  width: min(92%, 1120px);
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
  min-height: 48px;
  min-width: 44px;
  touch-action: manipulation;
}

.btn:active {
  transform: translateY(1px);
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(14, 20, 27, 0.04);
  color: var(--text);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

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

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
}

.brand-projeto {
  font-weight: 500;
  color: var(--text-soft);
}

.brand-squad {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(circle at 80% 10%, rgba(194, 65, 12, 0.08), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(21, 128, 61, 0.06), transparent 40%), var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.hero-copy {
  max-width: 560px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--ok);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.hero-title {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-title .price {
  color: var(--accent);
  white-space: nowrap;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 15px;
  color: var(--text-soft);
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-checklist li span {
  color: var(--ok);
  font-weight: 700;
}

/* Form card */
.hero-form-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: sticky;
  top: 96px;
}

.stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-soft);
  transition: all 0.2s ease;
}

.step.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.step.completed {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

/* Form steps */
.form-step {
  border: none;
  padding: 0;
  margin: 0;
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  min-height: 48px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

.field input[type='file'] {
  padding: 10px;
  font-size: 14px;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field-hint {
  display: block;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 4px;
}

.field-error {
  font-size: 13px;
  color: #c2410c;
  margin: 4px 0 0;
  min-height: 18px;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.form-actions .btn {
  flex: 1;
}

.form-success,
.form-error {
  text-align: center;
  padding: 24px 0;
  animation: fadeIn 0.3s ease;
}

.form-success h2 {
  color: var(--ok);
  font-size: 24px;
}

.form-error p {
  color: #c2410c;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section h2 {
  font-size: clamp(26px, 4vw, 36px);
  text-align: center;
  margin-bottom: 48px;
}

.problem {
  background: var(--surface);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

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

.card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.card ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.card li {
  padding-left: 24px;
  position: relative;
  color: var(--text-soft);
}

.card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-soft);
  margin: 0;
  font-size: 15px;
}

.steps {
  background: var(--surface);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--text-soft);
  margin: 0;
  font-size: 15px;
}

/* FAQ */
.faq-shell {
  max-width: 720px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 20px 20px;
  margin: 0;
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0;
  text-align: center;
}

.footer-shell p {
  margin: 0 0 8px;
}

.footer-shell a {
  color: #fff;
}

.footer-small {
  font-size: 13px;
  opacity: 0.7;
  margin-top: 16px;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

  .section-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-checklist {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-actions .btn {
    flex: 0 0 auto;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-form-card {
    padding: 36px;
  }
}

/* ========================================
   Guias de demanda (páginas /guias/*)
   ======================================== */

.guide-hero {
  padding: 64px 0 40px;
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--border);
}

.guide-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 20ch;
}

.guide-hero .hero-sub {
  max-width: 62ch;
}

.guide-meta {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 12px;
}

.answer-box {
  background: var(--accent-light);
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 0 0 32px;
}

.answer-box p {
  margin: 0;
  font-size: 17px;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 30px);
  margin: 48px 0 16px;
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  margin: 32px 0 12px;
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose li {
  margin-bottom: 8px;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 560px;
}

.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.table-wrap th {
  font-family: var(--font-heading);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  background: var(--bg);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap tr.highlight td {
  background: var(--accent-light);
  font-weight: 600;
}

.table-note {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: -12px;
}

.related-guides {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 48px;
}

.related-guides h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.related-guides ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.guide-cta {
  background: var(--text);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  margin-top: 48px;
  text-align: center;
}

.guide-cta h2 {
  color: #fff;
  margin: 0 0 12px;
}

.guide-cta p {
  color: #cbd5e1;
  margin: 0 0 24px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
