:root {
  /* Default SaaS Light Theme */
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --danger: #ef4444;
  --success: #10b981;
}

/* Base Dark Mode */
body.dark {
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: #334155;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

/* Role Themes */
body.theme-student {
  --brand: #6366f1;
  /* Indigo */
  --brand-hover: #4f46e5;
}

body.theme-student.dark {
  --brand: #818cf8;
  --brand-hover: #6366f1;
}

body.theme-teacher {
  --brand: #059669;
  /* Green */
  --brand-hover: #047857;
}

body.theme-teacher.dark {
  --brand: #10b981;
  --brand-hover: #059669;
}

body.theme-professional {
  --brand: #0284c7;
  /* Professional Blue for light mode */
  --brand-hover: #0369a1;
}

body.theme-professional.dark {
  --bg: #000000;
  --surface: #111111;
  --text: #eaeaea;
  --muted: #888888;
  --border: #333333;
  --brand: #00f0ff;
  /* Neon Blue */
  --brand-hover: #00c3ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  transition: background-color 0.3s, color 0.3s;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn,
button {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 0.95rem;
  color: inherit;
  background: var(--surface);
  text-decoration: none;
  pointer-events: auto;
  user-select: none;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Typography */
.hero {
  padding: 60px 0 30px;
  text-align: center;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin: 0 0 16px;
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  margin: 24px 0 8px;
}

.lead {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.85rem;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg);
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

/* Tabs */
.tabs-container {
  margin-bottom: 40px;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 8px;
}

.tab-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tables & Controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  vertical-align: top;
}

th {
  background: color-mix(in srgb, var(--bg) 50%, var(--surface));
  font-weight: 600;
  font-size: 0.9rem;
}

input[type="number"] {
  width: 100%;
  max-width: 100px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-align: center;
}

input[type="number"]:focus {
  outline: 2px solid var(--brand);
}

.mb-1 {
  margin-bottom: 4px;
}

.error {
  color: var(--danger);
  font-weight: 600;
  min-height: 24px;
  margin-top: 12px;
}

/* Sticky Calc */
.sticky-calc {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: none;
  padding: 16px;
  font-size: 1.1rem;
  text-align: center;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Role Modal */
.role-options {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.role-btn {
  text-align: left;
  padding: 20px;
  border: 2px solid var(--border);
  background: transparent;
  border-radius: var(--radius);
}

.role-btn:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, transparent);
}

.role-btn h3 {
  margin: 0 0 4px;
}

.role-btn p {
  margin: 0;
  font-weight: 400;
  color: var(--muted);
}

/* Result Modal */
.close-btn {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}

.close-btn:hover {
  color: var(--text);
}

.result-summary {
  text-align: center;
  margin-bottom: 24px;
}

.result-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 700;
}

.result-badge.significant {
  background: color-mix(in srgb, var(--success) 15%, transparent);
  color: var(--success);
}

.result-badge.ns {
  background: color-mix(in srgb, var(--danger) 15%, transparent);
  color: var(--danger);
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

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

.metric-card span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.metric-card strong {
  display: block;
  font-size: 1.25rem;
}

.result-interpretation {
  background: color-mix(in srgb, var(--brand) 5%, transparent);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.result-interpretation h4 {
  margin: 0 0 8px;
  color: var(--brand);
}

.breakdown-container {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.breakdown-table th,
.breakdown-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.breakdown-table th:first-child,
.breakdown-table td:first-child {
  text-align: left;
}

.breakdown-table th {
  background: color-mix(in srgb, var(--bg) 50%, var(--surface));
  font-weight: 600;
}

.breakdown-table tr:last-child td {
  border-bottom: none;
}

.student-breakdown {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--brand);
  font-size: 0.95rem;
}

.teacher-breakdown {
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 0.95rem;
  border: 1px solid var(--border);
}

/* =============================================
   PREMIUM SAAS SECTIONS
============================================= */

/* Hero Eyebrow */
.hero-eyebrow {
  display: inline-block;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  margin-bottom: 16px;
}

/* Trust Pill Row */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.trust-pill {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  transition: all 0.3s;
}

.trust-pill:hover {
  background: color-mix(in srgb, var(--brand) 15%, transparent);
  border-color: var(--brand);
}

/* Trusted By Section */
.trust {
  text-align: center;
  margin: 60px 0;
}

.trust h2 {
  margin-bottom: 32px;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.badge {
  background: var(--surface);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 99px;
  font-weight: 600;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.badge:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

/* Feature Cards Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 12px 24px -6px color-mix(in srgb, var(--brand) 20%, transparent);
}

.feature-card-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 16px;
  flex-grow: 1;
}

/* Tools Cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -8px color-mix(in srgb, var(--brand) 25%, transparent);
}

.tool-card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.tool-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.tool-card .desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.tool-card-benefits {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.tool-card-benefits li {
  margin-bottom: 6px;
}

.tool-card .time-estimate {
  display: inline-block;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: auto;
  margin-bottom: 16px;
}

.tool-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* How It Works Timeline */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin: 32px 0;
  position: relative;
}

@media (min-width: 768px) {
  .how-it-works::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 33%, var(--border) 33%, var(--border) 66%, var(--brand) 66%, var(--brand) 100%);
    z-index: 0;
  }
}

.how-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.how-step-number {
  width: 80px;
  height: 80px;
  background: var(--brand);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  box-shadow: 0 8px 16px -2px color-mix(in srgb, var(--brand) 40%, transparent);
}

.how-step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.how-step p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.6;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison-table thead tr {
  background: color-mix(in srgb, var(--bg) 50%, var(--surface));
  border-bottom: 2px solid var(--border);
}

.comparison-table th {
  padding: 20px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.95rem;
}

.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:nth-child(odd) {
  background: color-mix(in srgb, var(--bg) 30%, var(--surface));
}

.comparison-table .check {
  color: var(--success);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--danger);
  font-weight: 700;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 24px -6px color-mix(in srgb, var(--brand) 20%, transparent);
}

.testimonial-stars {
  font-size: 1rem;
  color: #fbbf24;
  margin-bottom: 12px;
}

.testimonial-text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
}

.testimonial-info h4 {
  margin: 0 0 2px;
  font-size: 0.9rem;
}

.testimonial-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Accordion FAQ */
.faq-accordion {
  margin: 32px 0;
}

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

.faq-item:hover {
  border-color: var(--brand);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  user-select: none;
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 40%, var(--surface));
}

.faq-item summary::marker {
  color: var(--brand);
}

.faq-item summary::-webkit-details-marker {
  color: var(--brand);
}

.faq-item[open] summary {
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.faq-item-content {
  padding: 0 24px 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item-content p {
  margin: 0;
}

/* Blog Section */
.blog-section {
  margin: 60px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.blog-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 12px 24px -6px color-mix(in srgb, var(--brand) 20%, transparent);
}

.blog-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}

.blog-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.blog-card p {
  color: var(--muted);
  flex-grow: 1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-card .btn {
  margin-top: 16px;
  align-self: flex-start;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 15%, var(--bg)), color-mix(in srgb, #a855f7 10%, var(--bg)));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  text-align: center;
  margin: 60px 0;
}

.cta-section h2 {
  color: var(--text);
  margin-bottom: 12px;
}

.cta-section>p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-input-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.cta-input-row input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}

.cta-input-row input::placeholder {
  color: var(--muted);
}

.cta-input-row input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-cta:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

/* SEO Content Sections */
.seo-content-section {
  margin: 60px 0;
  line-height: 1.8;
}

.seo-content-section h2 {
  margin-top: 48px;
  margin-bottom: 24px;
}

.seo-content-section h3 {
  margin-top: 32px;
  margin-bottom: 16px;
}

.seo-content-section p {
  margin-bottom: 16px;
  max-width: 800px;
}

.seo-content-section ul,
.seo-content-section ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.seo-content-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.seo-content-section strong {
  color: var(--brand);
  font-weight: 600;
}

.seo-content-section em {
  font-style: italic;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  .topbar-inner {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .sticky-calc {
    display: block;
  }

  #calculateBtn {
    display: none;
  }

  .table-wrap {
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0 -16px;
    width: calc(100% + 32px);
  }

  /* Modal mobile responsive */
  .modal {
    padding: 16px;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    border-radius: 12px;
  }

  .modal-header {
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .modal-body {
    padding: 16px;
  }

  /* Form responsive */
  .form-group {
    margin-bottom: 16px;
  }

  input,
  textarea,
  select {
    font-size: 16px;
    /* Prevents zoom on iOS */
  }
}