/* ==========================================================================
   ABNT Formatter — Design System
   Clean, Professional, Mobile-First
   ========================================================================== */

/* ---- Imports ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  /* Color Palette — Logo Identity: Navy + Gold */
  --primary: #121F33;      /* Deep logo blue/navy */
  --primary-light: #1A2842;
  --primary-dark: #0D1627;
  
  --accent: #E8B931;       /* Logo gold */
  --accent-light: #F0C94D;
  --accent-glow: rgba(232, 185, 49, 0.12);
  --accent-dark: #C9A029;
  
  --brand-cyan: #E8B931;
  --brand-purple: #F0C94D;

  /* Neutrals — Dark */
  --bg: #0D1627;           /* Deep Logo Blue */
  --bg-dark: #09101D;
  --bg-card: #121F33;      /* Deep logo blue/navy */
  --bg-elevated: #1A2842;
  
  --border: #2A3A52;
  --border-color: #2A3A52;
  --border-light: #1C2640;
  
  --text: #E8EAF0;         /* Off-white */
  --text-light: #9AA3B8;   /* Light gray/blue */
  --text-secondary: #9AA3B8;
  --text-muted: #5E6A82;
  --text-inverse: #ffffff;

  /* Success / Warning */
  --success: #48bb78;
  --success-bg: rgba(72, 187, 120, 0.1);
  --warning: #ecc94b;
  --error: #fc8181;
  --error-bg: rgba(252, 129, 129, 0.1);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --section-padding: 100px;
  --section-padding-lg: 120px;
  --section-padding-sm: 60px;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.35), 0 4px 10px -2px rgba(0,0,0,0.2);
  --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.4);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}

img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
  background: var(--primary-dark);
  padding: var(--space-sm) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none !important;
}

.navbar-brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-highlight {
  background: linear-gradient(135deg, var(--accent), #18ffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.navbar-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.navbar-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.navbar-links a:hover {
  color: #fff;
  text-decoration: none;
}

.btn-cta-nav {
  background: transparent;
  color: var(--accent) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--accent);
  letter-spacing: 0.03em;
}

.btn-cta-nav:hover {
  background: var(--accent);
  color: var(--primary-dark) !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.nav-login {
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-login:hover {
  color: #fff !important;
}

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

.hero {
  background: linear-gradient(to bottom, rgba(6, 11, 25, 0.7) 0%, rgba(6, 11, 25, 0.95) 70%, #060b19 100%),
              url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  padding: var(--space-3xl) 0;
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  border-bottom: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-dark));
  pointer-events: none;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(255, 167, 0, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent), #64ffda);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
  text-decoration: none !important;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   FEATURES SECTION — "O que é gerado automaticamente"
   ========================================================================== */

.features-section {
  padding: var(--space-3xl) 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.section-header .subtitle {
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s var(--ease);
  position: relative;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  background: var(--accent-glow);
  color: var(--accent);
}

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how-section {
  padding: var(--space-3xl) 0;
  background: var(--primary-light);
  border-top: none;
  border-bottom: none;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
}

.step-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-item p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FORM SECTION
   ========================================================================== */

.form-section {
  padding: var(--space-3xl) 0 var(--space-3xl);
}

.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ---- Visual Form Header (Monte seu TCC Completo) ---- */
.form-header-visual {
  background: var(--primary-dark);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--text-inverse);
}

.form-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: 6px;
}

.form-header-icon {
  font-size: 1.75rem;
}

.form-header-title h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.form-header-subtitle {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--space-lg);
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-light);
  border-radius: 4px;
  transition: width 0.5s var(--ease);
  width: 12.5%;
}

/* Step Navigation (numbered circles with labels) */
.steps-nav {
  display: flex;
  justify-content: center;
  gap: 0;
}

.step-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 0 8px;
  transition: all 0.2s var(--ease);
  min-width: 64px;
}

.step-nav-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s var(--ease);
}

.step-nav-label {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}

/* Active step */
.step-nav-item.active .step-nav-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

.step-nav-item.active .step-nav-label {
  color: var(--accent-light);
}

/* Completed step */
.step-nav-item.completed .step-nav-circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.step-nav-item.completed .step-nav-label {
  color: var(--success);
}

/* Hover */
.step-nav-item:hover .step-nav-circle {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
}

.step-nav-item:hover .step-nav-label {
  color: rgba(255,255,255,0.6);
}

.step-nav-item.active:hover .step-nav-circle {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: #fff;
}

/* ---- Example Box (explanations inside form steps) ---- */
.example-box {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.example-box strong {
  color: var(--text);
}

.example-box em {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.example-preview {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  background: rgba(0,0,0,0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.example-box code {
  background: rgba(0, 229, 255, 0.12);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-light);
}

/* ---- Section Help (inside Corpo do Trabalho sections) ---- */
.secao-help {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.secao-help strong {
  color: var(--accent-light);
}

/* Level badge variants */
.secao-badge.nivel1 {
  background: var(--accent);
  color: #fff;
}

.secao-badge.nivel2 {
  background: rgba(99, 179, 237, 0.2);
  color: #63b3ed;
}

.secao-badge.nivel3 {
  background: rgba(72, 187, 120, 0.2);
  color: #48bb78;
}

/* ---- Info Box (green helper) ---- */
.info-box {
  border: 1px solid rgba(72,187,120,0.25);
  border-left: 3px solid #48bb78;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.info-box strong {
  color: var(--text);
}

/* ==========================================================================
   DISCLAIMERS SECTION
   ========================================================================== */

.disclaimers-section {
  padding: var(--space-xl) 0;
  background: var(--bg);
}

.disclaimers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  max-width: 860px;
  margin: 0 auto;
}

.disclaimer-card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.disclaimer-card.warning {
  background: rgba(237, 137, 54, 0.06);
  border: 1px solid rgba(237, 137, 54, 0.2);
}

.disclaimer-card.info {
  background: rgba(99, 179, 237, 0.06);
  border: 1px solid rgba(99, 179, 237, 0.2);
}

.disclaimer-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.disclaimer-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.disclaimer-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Footer disclaimer ---- */
.footer-disclaimer {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ---- Form Steps ---- */
.form-body {
  padding: var(--space-xl);
}

.form-step {
  display: none;
  animation: fadeSlideIn 0.35s var(--ease);
}

.form-step.active {
  display: block;
}

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

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.step-description {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* ---- Form Controls ---- */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-group label .optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.75rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-elevated);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
  animation: shakeX 0.4s var(--ease);
}

@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Info Box ---- */
.info-box {
  background: var(--accent-glow);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.info-box strong {
  color: var(--text);
}

/* ---- Word Counter ---- */
.word-counter {
  text-align: right;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 4px;
}

.word-counter.warning {
  color: var(--warning);
}

.word-counter.over {
  color: var(--error);
  font-weight: 600;
}

/* ---- Banca Members ---- */
.banca-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.banca-item {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.banca-item input {
  flex: 1;
}

.btn-remove-banca {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: all 0.2s var(--ease);
}

.btn-remove-banca:hover {
  border-color: var(--error);
  color: var(--error);
  background: var(--error-bg);
}

.btn-add-banca {
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  margin-top: var(--space-sm);
}

.btn-add-banca:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ==========================================================================
   CHAPTERS (Corpo do Trabalho) — Chapter Cards + Sub-sections
   ========================================================================== */

.capitulos-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.capitulo-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: border-color 0.2s var(--ease);
}

.capitulo-card:hover,
.capitulo-card:focus-within {
  border-color: var(--accent);
}

.capitulo-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.capitulo-numero {
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.capitulo-titulo-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 0.375rem 0.5rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  box-shadow: none !important;
  min-width: 200px;
}

.capitulo-titulo-input:focus {
  border-bottom-color: var(--accent) !important;
}

.capitulo-titulo-input::placeholder {
  font-weight: 400;
  color: var(--text-muted);
}

.btn-remove-cap {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  transition: all 0.2s var(--ease);
}

.btn-remove-cap:hover {
  border-color: var(--error);
  color: var(--error);
  background: var(--error-bg);
}

.capitulo-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.capitulo-card > textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 140px;
  outline: none;
  transition: all 0.2s var(--ease);
  line-height: 1.7;
}

.capitulo-card > textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-elevated);
}

/* ---- Sub-sections within chapter ---- */
.capitulo-subsecoes {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
  padding-left: var(--space-lg);
  border-left: 2px solid rgba(0, 229, 255, 0.15);
}

.subsecao-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
}

.subsecao-item:hover,
.subsecao-item:focus-within {
  border-color: var(--accent);
}

.subsecao-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.subsecao-nivel-select {
  width: auto !important;
  min-width: 160px;
  padding: 0.375rem 0.5rem !important;
  font-size: 0.75rem !important;
  background: var(--bg-elevated) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--text-secondary) !important;
}

.subsecao-titulo-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  border-bottom: 1.5px solid var(--border) !important;
  border-radius: 0 !important;
  padding: 0.375rem 0.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  box-shadow: none !important;
  min-width: 150px;
}

.subsecao-titulo-input:focus {
  border-bottom-color: var(--accent) !important;
}

.btn-remove-subsecao {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s var(--ease);
}

.btn-remove-subsecao:hover {
  border-color: var(--error);
  color: var(--error);
  background: var(--error-bg);
}

.subsecao-item textarea {
  width: 100%;
  padding: 0.625rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 100px;
  outline: none;
  transition: all 0.2s var(--ease);
  line-height: 1.7;
}

.subsecao-item textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ---- Add Sub-section Button (inside chapter) ---- */
.btn-add-subsecao {
  width: 100%;
  background: none;
  border: 1.5px dashed rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--accent-light);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  margin-top: var(--space-md);
}

.btn-add-subsecao:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.05);
}

/* ---- Add Chapter Button ---- */
.secoes-actions {
  margin-top: var(--space-lg);
}

.btn-add-secao {
  width: 100%;
  background: none;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-add-secao:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}


/* ---- Upload Area ---- */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  background: var(--bg);
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.upload-area.has-file {
  border-color: var(--success);
  background: var(--success-bg);
  border-style: solid;
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
}

.upload-area h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.upload-area p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.upload-area .file-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--success);
  font-weight: 600;
  margin-top: var(--space-sm);
}

/* ---- Form Navigation ---- */
.form-nav {
  display: flex;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  background: var(--primary-dark);
}

.btn-back {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.btn-back:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.btn-next,
.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-next:hover,
.btn-submit:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-submit {
  background: var(--success);
}

.btn-submit:hover {
  background: #2f855a;
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   FOOTER (Multi-column, matching reference design)
   ========================================================================== */

.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.5);
  padding: var(--space-3xl) 0 0;
  font-size: 0.8125rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.footer-brand .brand-name {
  font-size: 1.25rem;
}

.footer-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.footer-location {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.8125rem;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-contact-info {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.2s var(--ease);
  text-decoration: none !important;
}

.social-icon:hover {
  background: var(--accent);
  color: var(--primary-dark) !important;
  transform: translateY(-2px);
}

.footer-newsletter {
  display: flex;
  gap: 0;
  margin-top: var(--space-sm);
}

.newsletter-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: #fff;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.newsletter-input:focus {
  border-color: var(--accent);
}

.newsletter-input::placeholder {
  color: rgba(255,255,255,0.3);
}

.newsletter-btn {
  padding: 0.5rem 0.875rem;
  background: var(--accent);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--primary-dark);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  font-weight: 700;
}

.newsletter-btn:hover {
  background: var(--accent-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  transition: color 0.2s var(--ease);
}

.footer-legal a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer a {
  color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   PREVIEW MODAL
   ========================================================================== */

.preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1500;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl);
}

.preview-overlay.active {
  display: flex;
}

.preview-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
  animation: modalSlideIn 0.3s var(--ease);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border);
  background: var(--primary-dark);
}

.preview-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.preview-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}

.preview-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

.preview-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.preview-viewer {
  position: relative;
  width: 100%;
  height: 55vh;
}

.preview-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

.preview-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-35deg);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(0, 229, 255, 0.08);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.05em;
  user-select: none;
  z-index: 2;
}

.preview-footer {
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--border);
  background: var(--primary-dark);
}

.preview-info {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  text-align: center;
}

.preview-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
}

.btn-download-pdf,
.btn-download-docx {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-download-pdf {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-download-pdf:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-download-docx {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.15);
}

.btn-download-docx:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   LOADING OVERLAY
   ========================================================================== */

.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 25, 0.85);
  backdrop-filter: blur(6px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.loading-overlay.active {
  display: flex;
}

.loading-content {
  text-align: center;
  color: #fff;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent-light);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-lg);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.loading-content p {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.toast {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  background: var(--bg-elevated);
  color: var(--text);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 2000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.35s var(--ease);
  max-width: 380px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  background: var(--error);
  color: #fff;
}

.toast.success {
  background: var(--success);
  color: #fff;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ==========================================================================
   RESPONSIVE — APP-LIKE MOBILE EXPERIENCE
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --section-padding-lg: 80px;
    --section-padding-sm: 40px;
  }

  /* Remove all hard section borders */
  .how-section,
  .features-section,
  .faq-section,
  .cta-section {
    border-top: none !important;
    border-bottom: none !important;
  }

  .navbar-links {
    display: none;
  }

  /* Hero — compact & punchy */
  .hero {
    padding: 60px 0 80px;
    min-height: auto;
  }

  .hero::after {
    height: 80px;
  }

  .hero h1 {
    font-size: 2.25rem !important;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-content {
    padding: 0 var(--space-sm);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn,
  .hero-actions a {
    width: 100%;
    max-width: 320px;
    text-align: center;
    padding: 16px 30px !important;
    font-size: 1rem !important;
  }

  /* Features / Benefits grid */
  .features-grid,
  .elegant-features-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .feature-card {
    padding: var(--space-lg);
  }

  /* How it works - steps grid */
  .steps-row {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 320px;
  }

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

  /* Pricing page */
  .pricing-hero {
    padding: 80px 0 40px !important;
  }

  .pricing-hero h1 {
    font-size: 2rem !important;
  }

  .pricing-grid {
    grid-template-columns: 1fr !important;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-guarantees {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    padding-top: 40px !important;
    margin-top: 40px !important;
  }

  /* FAQ */
  .faq-section {
    padding: 60px 0 !important;
  }

  .faq-question {
    font-size: 1rem !important;
    padding: 16px 18px !important;
    min-height: 48px;
  }

  /* CTA final section */
  .cta-section {
    padding: 60px 0 !important;
  }

  .cta-section h2 {
    font-size: 2rem !important;
  }

  .cta-actions {
    flex-direction: column !important;
    align-items: center !important;
  }

  .cta-actions a {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* Sections general */
  .how-section,
  .features-section {
    padding: 60px 0 !important;
  }

  .section-header h2 {
    font-size: 1.75rem !important;
  }

  /* Form */
  .form-wrapper {
    border-radius: var(--radius-lg);
    margin: 0 var(--space-sm);
  }

  .form-body {
    padding: var(--space-lg);
  }

  .form-nav {
    padding: var(--space-md) var(--space-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-header-visual {
    padding: var(--space-md) var(--space-lg);
  }

  .steps-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
  }

  .step-nav-item {
    min-width: 56px;
    padding: 0 5px;
  }

  .step-nav-circle {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  .step-nav-label {
    font-size: 0.5rem;
  }

  .form-header-title h2 {
    font-size: 1.125rem;
  }

  .toast {
    left: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
    max-width: none;
  }

  .secao-header {
    flex-direction: column;
    align-items: stretch;
  }

  .secao-header-right {
    justify-content: flex-end;
  }

  /* Footer responsive */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Preview modal responsive */
  .preview-overlay {
    padding: var(--space-md);
  }

  .preview-viewer {
    height: 45vh;
  }

  .preview-watermark {
    font-size: 2.5rem;
  }

  .preview-actions {
    flex-direction: column;
  }
}

/* ========== MOBILE — APP-LIKE EXPERIENCE ========== */
@media (max-width: 480px) {
  html {
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
  }

  body {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
  }

  .container {
    padding: 0 16px;
  }

  /* Hero — big and bold on mobile */
  .hero {
    padding: 40px 0 70px;
    min-height: auto;
  }

  .hero::after {
    height: 60px;
  }

  .hero h1,
  .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.15 !important;
  }

  .hero p {
    font-size: 0.95rem !important;
    line-height: 1.6;
    padding: 0 8px;
  }

  .hero-actions {
    padding: 0 8px;
  }

  .hero-actions a {
    padding: 16px 30px !important;
    font-size: 1rem !important;
    border-radius: 50px !important;
    width: 100%;
  }

  /* Section headers on mobile */
  .section-header {
    margin-bottom: 30px !important;
  }

  .section-header h2 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  .section-header p,
  .section-header .subtitle {
    font-size: 0.9rem !important;
  }

  /* Step cards on mobile — full width, stacked */
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 4px;
  }

  .elegant-step {
    margin-top: 20px !important;
    padding: 30px 20px !important;
  }

  .elegant-step h3 {
    font-size: 1.15rem !important;
  }

  .elegant-step p {
    font-size: 0.9rem !important;
  }

  /* Features grid — single column on mobile */
  .features-grid,
  .elegant-features-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 0 4px;
  }

  .elegant-features-grid > div {
    padding: 24px 20px !important;
  }

  .elegant-features-grid h3 {
    font-size: 1.1rem !important;
  }

  .elegant-features-grid p {
    font-size: 0.9rem !important;
  }

  /* FAQ — touch-friendly */
  .faq-section {
    padding: 50px 0 !important;
  }

  .faq-question {
    font-size: 0.95rem !important;
    padding: 16px !important;
    min-height: 48px;
    text-align: left;
  }

  .faq-answer p {
    font-size: 0.9rem !important;
    padding: 0 4px;
  }

  /* CTA — mobile */
  .cta-section {
    padding: 50px 0 !important;
  }

  .cta-section h2 {
    font-size: 1.75rem !important;
    line-height: 1.2;
  }

  .cta-section p {
    font-size: 0.95rem !important;
  }

  .cta-actions a {
    padding: 16px 30px !important;
    font-size: 1rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Sections general */
  .how-section,
  .features-section {
    padding: 50px 0 !important;
  }

  /* Pricing — mobile */
  .pricing-hero {
    padding: 70px 0 30px !important;
  }

  .pricing-hero h1 {
    font-size: 1.75rem !important;
  }

  .pricing-section {
    padding: 30px 0 60px !important;
  }

  .pricing-grid {
    gap: 20px !important;
  }

  .pricing-card {
    padding: 30px 24px !important;
  }

  .pricing-guarantees {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  /* Form — app-like */
  .form-section {
    padding: 16px 0 !important;
  }

  .form-wrapper {
    border-radius: 16px;
    margin: 0;
    border: none !important;
    box-shadow: none !important;
  }

  .form-body {
    padding: 16px;
  }

  .form-nav {
    padding: 14px 16px;
    gap: var(--space-sm);
  }

  .form-header-visual {
    padding: 16px;
    border-radius: 16px 16px 0 0;
  }

  .btn-back,
  .btn-next,
  .btn-submit {
    padding: 14px 20px;
    font-size: 0.9rem;
    min-height: 48px;
    border-radius: 12px;
  }

  .upload-area {
    padding: var(--space-xl) var(--space-md);
  }

  .secao-item {
    padding: var(--space-md);
  }

  /* Input fields — bigger touch targets */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  textarea,
  select {
    min-height: 48px;
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    border-radius: 10px;
  }

  /* Footer mobile */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: var(--space-lg) !important;
  }

  .footer-legal {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center;
  }

  .footer {
    padding: 40px 0 20px !important;
  }

  /* Preview modal mobile */
  .preview-modal {
    border-radius: var(--radius-lg);
  }

  .preview-header,
  .preview-footer {
    padding: var(--space-md);
  }

  .preview-viewer {
    height: 40vh;
  }

  /* Legal pages mobile */
  .legal-hero h1,
  .legal-content h2 {
    font-size: 1.3rem !important;
  }
}

/* Very small phones (320px-360px) */
@media (max-width: 360px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 12px;
  }

  .hero-content h1 {
    font-size: 1.75rem !important;
  }

  .pricing-guarantees {
    grid-template-columns: 1fr !important;
  }

  .pricing-card {
    padding: 24px 18px !important;
  }

  .footer-grid {
    gap: var(--space-md) !important;
  }

  .elegant-step {
    padding: 24px 16px !important;
  }
}

/* Burger menu for mobile */
.navbar-burger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .navbar-burger {
    display: block;
  }
  
  .navbar-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: var(--space-sm);
    z-index: 100;
  }
  
  .navbar-links.mobile-open {
    display: flex;
  }

  .navbar-links a {
    padding: 10px 0;
    font-size: 1rem;
  }

  .navbar-links .btn {
    margin-top: var(--space-sm);
    text-align: center;
  }
}

/* Scroll to form anchor offset */
#form-section {
  scroll-margin-top: 64px;
}
