/**
 * NEWS1UP - Modern Lightweight Design System
 * "Smart Tools. Simple Solutions."
 * Domain: https://news1up.com
 */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --text-white: #ffffff;
  
  --bg-body: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-highlight: #f1f5f9;
  
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;
  
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fde68a;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  --max-w-content: 1200px;
  --max-w-read: 780px;
}

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

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; margin-bottom: 0.75rem; }
h2 { font-size: 1.65rem; margin-top: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }

/* Layout Helpers */
.container {
  width: 100%;
  max-width: var(--max-w-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  max-width: var(--max-w-read);
}

.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.section-bg {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.main-content {
  flex: 1;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-light);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-nav-search:hover {
  border-color: var(--primary-border);
  color: var(--text-main);
  background: #ffffff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 1.5rem;
  overflow-y: auto;
  border-top: 1px solid var(--border-color);
  z-index: 45;
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-item a {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

.mobile-nav-item a:hover {
  background-color: var(--primary-light);
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: #cbd5e1;
  color: var(--text-main);
}

.btn-success {
  background-color: var(--success);
  color: #ffffff;
}

.btn-success:hover {
  background-color: #15803d;
  color: #ffffff;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.badge-blue {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-green {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-badge {
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
  line-height: 1.18;
}

.hero-title span {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 1.25rem auto 2rem;
}

/* Search Bar */
.search-box-wrapper {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.5rem 0.35rem 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.search-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--text-main);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-height: 380px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  text-align: left;
}

.search-results-dropdown.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--bg-secondary);
  color: var(--text-main);
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.search-result-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.15rem;
}

/* Section Headers */
.section-header {
  margin-bottom: 2.5rem;
}

.section-header.text-center {
  text-align: center;
}

.section-subtitle {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.875rem;
  color: var(--text-main);
}

.section-desc {
  max-width: 600px;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.section-header.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

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

.tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
}

.tool-card:hover .tool-card-icon {
  background: var(--primary);
  color: #ffffff;
}

.tool-card-icon svg {
  width: 24px;
  height: 24px;
}

.tool-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.tool-card-desc {
  font-size: 0.8875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bg-highlight);
  padding-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.tool-card:hover .tool-card-footer span {
  text-decoration: underline;
}

/* Category Cards Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.category-card-count {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
}

.category-card-title {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  color: var(--text-main);
}

.category-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Features / Why Choose Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.feature-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon-box svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Blog Cards Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

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

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--bg-highlight);
  padding-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

/* FAQ Accordion */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
  color: var(--text-light);
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Tool Interface Studio Area */
.tool-studio {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.drop-zone {
  border: 2px dashed #93c5fd;
  background-color: var(--primary-light);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 1.5rem;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background-color: #dbeafe;
}

.drop-zone-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.drop-zone-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.drop-zone-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.file-input-hidden {
  display: none;
}

/* Tool Controls & Sliders */
.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #ffffff;
  transition: border-color 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-input {
  flex: 1;
  accent-color: var(--primary);
  cursor: pointer;
}

.range-val {
  font-weight: 700;
  color: var(--primary);
  min-width: 45px;
  text-align: right;
}

/* File Previews & Processing State */
.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.preview-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  background: var(--bg-secondary);
  max-width: 200px;
  position: relative;
  text-align: center;
}

.preview-thumbnail {
  max-width: 100%;
  height: 140px;
  object-fit: contain;
  background: #ffffff;
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.preview-name {
  font-size: 0.75rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--danger);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  width: 22px;
  height: 22px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-highlight);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 1rem 0;
  display: none;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.2s ease;
}

.output-panel {
  display: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.output-panel.active {
  display: block;
}

/* Calculator Special Styles */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }
}

.calc-result-box {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.calc-result-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.calc-result-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

/* Breadcrumbs */
.breadcrumb-nav {
  margin-bottom: 1.25rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  font-size: 0.875rem;
  color: var(--text-light);
}

.breadcrumb-separator {
  color: var(--border-color);
}

/* Ad Units & Placeholders (Google AdSense Ready) */
.ad-unit {
  margin: 2rem auto;
  text-align: center;
  clear: both;
}

.ad-unit-banner {
  max-width: 728px;
  min-height: 90px;
}

.ad-unit-box {
  max-width: 300px;
  min-height: 250px;
}

.ad-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.ad-unit-placeholder .ad-placeholder-content {
  border: 1px dashed #cbd5e1;
  background-color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}

.ad-placeholder-text {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Legal Pages & Longform Article Prose */
.prose {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.3rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.prose p, .prose ul, .prose ol {
  margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.prose th, .prose td {
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  text-align: left;
}

.prose th {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-main);
}

.prose pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 1.5rem 0;
}

.prose code {
  font-family: var(--font-mono);
  background: var(--bg-highlight);
  color: var(--primary-dark);
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.9em;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid #1e293b;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.925rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  max-width: 340px;
}

.footer-phone-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e293b;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-phone-box a {
  color: #60a5fa;
}

.footer-phone-box a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Newsletter in Footer / Section */
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin-top: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid #334155;
  background: #1e293b;
  color: #ffffff;
  border-radius: var(--radius-md);
  outline: none;
}

.newsletter-input:focus {
  border-color: #60a5fa;
}

/* Toast Alerts */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .calc-grid {
    grid-template-columns: 1fr;
  }
}
