:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #0ea5e9;
  --accent: #38bdf8;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-focus: #3b82f6;
  --success: #10b981;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.tool-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
}
.logo-icon {
  width: 32px;
  height: 32px;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}
.header-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav-link:hover {
  color: var(--primary);
}
.btn-primary-sm {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.btn-primary-sm:hover {
  opacity: 0.92;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--primary);
}
.breadcrumb span {
  margin: 0 0.4rem;
}

/* Tool Main Hero */
.tool-hero {
  max-width: 1200px;
  margin: 1rem auto 2.5rem;
  padding: 0 1.5rem;
  text-align: center;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.tool-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: #0f172a;
}
.tool-hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto;
}

/* Work Area (Form + Live Preview) */
.tool-workspace {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 960px) {
  .tool-workspace {
    grid-template-columns: 1fr;
  }
}

.tool-form-card, .tool-preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1e293b;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-grid.single {
  grid-template-columns: 1fr;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}
.form-input, .form-textarea, .form-select {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-main);
  background: #fff;
  transition: all 0.15s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Actions */
.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid var(--border);
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-secondary:hover {
  background: #e2e8f0;
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-whatsapp:hover {
  background: #1ebc59;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.35);
  color: #fff;
}
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #475569;
  font-weight: 600;
  margin-top: 8px;
}
.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

/* Privacy Callout */
.privacy-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  margin-top: 1.25rem;
}

/* Live Preview Sheet */
.preview-wrapper {
  background: #64748b;
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow-x: auto;
}
.printable-sheet {
  background: #fff;
  width: 100%;
  max-width: 595px; /* A4 ratio */
  min-height: 842px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 14px;
}

/* Software Promo Banner / Card */
.promo-card {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}
.promo-inner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 2.5rem 3rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .promo-inner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
}
.promo-content h3 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.promo-content p {
  color: #94a3b8;
  font-size: 1rem;
  max-width: 580px;
}
.promo-cta {
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  color: #fff;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
}

/* Educational SEO Content & FAQs */
.seo-content-section {
  max-width: 860px;
  margin: 0 auto 5rem;
  padding: 0 1.5rem;
}
.seo-content-section h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  color: #0f172a;
}
.seo-content-section h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}
.seo-content-section p, .seo-content-section li {
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.seo-content-section ul, .seo-content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.faq-question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

/* Footer */
.tool-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}
.footer-links a:hover {
  color: var(--primary);
}

/* Print Styles */
@media print {
  body {
    background: #fff !important;
  }
  .tool-header, .breadcrumb, .tool-hero, .tool-form-card, 
  .tool-actions, .promo-card, .seo-content-section, 
  .tool-footer, .preview-header-bar {
    display: none !important;
  }
  .tool-workspace {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .preview-wrapper {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .printable-sheet {
    box-shadow: none !important;
    padding: 20mm !important;
    max-width: 100% !important;
    width: 100% !important;
    min-height: auto !important;
  }
}
