/* =============================================
   CodeToFun — Text Compare Tool Page
   Self-contained, mobile-first responsive CSS
   ============================================= */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* --- Utilities --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Buttons (header nav) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.938rem;
  border-radius: 0.5rem;
  padding: 0.625rem 1.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

a.btn-primary,
button.btn-primary,
.btn-primary {
  background: #2563eb;
  color: #fff;
}

a.btn-primary:hover,
button.btn-primary:hover,
.btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* =====================
   HEADER
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

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

.logo-icon {
  background: #2563eb;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.logo-tagline {
  font-size: 0.75rem;
  color: #64748b;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.desktop-nav a:not(.btn) {
  color: #475569;
  font-weight: 500;
  font-size: 0.938rem;
  transition: color 0.2s;
}

.desktop-nav a:not(.btn):hover {
  color: #2563eb;
}

.desktop-nav .btn-primary,
.mobile-nav .btn-primary {
  background: #2563eb;
  color: #fff;
}

.desktop-nav .btn-primary:hover,
.mobile-nav .btn-primary:hover {
  background: #1d4ed8;
  color: #fff;
}

.mobile-menu-btn {
  display: flex;
  padding: 0.5rem;
  color: #475569;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a:not(.btn) {
  color: #475569;
  font-weight: 500;
  font-size: 0.938rem;
  transition: color 0.2s;
}

.mobile-nav a:not(.btn):hover {
  color: #2563eb;
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 0 0;
}

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

.footer-brand p {
  color: #94a3b8;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tagline { color: #94a3b8; }

.follow-heading {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.social-links a {
  background: #1e293b;
  padding: 0.625rem;
  border-radius: 0.5rem;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover { background: #334155; }

.trusted-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #1e293b;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid #334155;
}

.trusted-badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #3b82f6;
}

.footer-links-col h4 {
  color: #fff;
  font-size: 0.938rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-col a {
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links-col a:hover { color: #60a5fa; }

.footer-all-links ul {
  columns: 2;
  column-gap: 1.5rem;
}

.footer-all-links li { break-inside: avoid; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.heart-icon { vertical-align: middle; }

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.footer-legal-links a { transition: color 0.2s; }
.footer-legal-links a:hover { color: #60a5fa; }

/* =====================
   COOKIE NOTICE
   ===================== */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #cbd5e1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  z-index: 200;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-notice p {
  font-size: 0.813rem;
  text-align: center;
  line-height: 1.5;
}

.cookie-notice a:not(.btn) {
  color: #60a5fa;
  text-decoration: underline;
}

.cookie-notice .btn-primary { background: #2563eb; color: #fff; }
.cookie-notice .btn-primary:hover { background: #1d4ed8; color: #fff; }

/* =============================================
   TOOL PAGE — Text Compare
   ============================================= */

.tool-page {
  background: linear-gradient(135deg, #eff6ff, #e0e7ff);
  min-height: 100vh;
}

/* --- Page Header --- */
.tool-page-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tool-badge svg { width: 1rem; height: 1rem; }

.tool-page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.tool-page-header p {
  font-size: 1rem;
  color: #475569;
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Main Tool Container --- */
.tool-container {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 2rem;
}

/* --- Toolbar --- */
.tool-toolbar {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.toolbar-utils {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.813rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  color: #fff;
  white-space: nowrap;
}

.toolbar-btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.toolbar-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.toolbar-btn.tb-compare { background: #2563eb; }
.toolbar-btn.tb-compare:hover:not(:disabled) { background: #1d4ed8; }

.toolbar-btn.tb-copy { background: #16a34a; }
.toolbar-btn.tb-copy:hover:not(:disabled) { background: #15803d; }
.toolbar-btn.tb-copy.copied { background: #16a34a; }

.toolbar-btn.tb-download { background: #4f46e5; }
.toolbar-btn.tb-download:hover:not(:disabled) { background: #4338ca; }

.toolbar-btn.tb-swap { background: #9333ea; }
.toolbar-btn.tb-swap:hover { background: #7e22ce; }

.toolbar-btn.tb-clear { background: #dc2626; }
.toolbar-btn.tb-clear:hover { background: #b91c1c; }

.toolbar-btn.tb-view {
  background: #e2e8f0;
  color: #475569;
}
.toolbar-btn.tb-view:hover { background: #cbd5e1; color: #1e293b; }

.toolbar-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: #e2e8f0;
  color: #475569;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.toolbar-icon-btn:hover { background: #cbd5e1; color: #1e293b; }
.toolbar-icon-btn.active { background: #2563eb; color: #fff; }
.toolbar-icon-btn svg { width: 1rem; height: 1rem; }

/* --- Settings Panel --- */
.settings-panel {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.settings-panel.open { display: block; }

.settings-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.settings-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: #334155;
}

.settings-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
  cursor: pointer;
}

/* --- Text Areas (edit mode) --- */
.text-areas {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid #e2e8f0;
}

.text-area-panel {
  border-bottom: 1px solid #e2e8f0;
}

.text-area-panel:last-child { border-bottom: none; }

.text-area-header {
  background: #f1f5f9;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-area-header h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: #475569;
  color: #fff;
  border-radius: 0.375rem;
  border: none;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.upload-btn:hover { background: #334155; }
.upload-btn svg { width: 0.75rem; height: 0.75rem; }
.file-input-hidden { display: none; }

.text-area-panel textarea {
  width: 100%;
  min-height: 14rem;
  padding: 1rem;
  border: none;
  resize: vertical;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #1e293b;
  background: #fff;
  outline: none;
}

.text-area-panel textarea::placeholder { color: #94a3b8; }

/* --- Comparison Results --- */
.results-section { display: none; }
.results-section.visible { display: block; }
.edit-section { display: grid; }
.edit-section.hidden { display: none; }

/* Stats bar */
.compare-stats {
  background: #f8fafc;
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.compare-stats-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.compare-stats-heading svg { width: 1rem; height: 1rem; color: #475569; }

.compare-stats-heading h4 {
  font-size: 0.813rem;
  font-weight: 600;
  color: #0f172a;
}

.compare-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.cstat-box {
  background: #fff;
  border-radius: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
}

.cstat-box .cstat-label {
  font-size: 0.688rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.cstat-box .cstat-value {
  font-size: 1.125rem;
  font-weight: 700;
}

.cstat-box.cs-left .cstat-label { color: #475569; }
.cstat-box.cs-left .cstat-value { color: #2563eb; }
.cstat-box.cs-right .cstat-label { color: #475569; }
.cstat-box.cs-right .cstat-value { color: #4f46e5; }
.cstat-box.cs-add .cstat-label { color: #15803d; }
.cstat-box.cs-add .cstat-value { color: #16a34a; }
.cstat-box.cs-del .cstat-label { color: #b91c1c; }
.cstat-box.cs-del .cstat-value { color: #dc2626; }
.cstat-box.cs-chg .cstat-label { color: #a16207; }
.cstat-box.cs-chg .cstat-value { color: #ca8a04; }
.cstat-box.cs-eq .cstat-label { color: #475569; }
.cstat-box.cs-eq .cstat-value { color: #64748b; }

/* Legend */
.diff-legend {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #334155;
}

.legend-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 0.125rem;
}

.legend-swatch.sw-add { background: #dcfce7; border-left: 4px solid #22c55e; }
.legend-swatch.sw-del { background: #fee2e2; border-left: 4px solid #ef4444; }
.legend-swatch.sw-chg { background: #fef9c3; border-left: 4px solid #eab308; }
.legend-swatch.sw-eq { background: #fff; border-left: 4px solid transparent; }

/* Diff view header */
.diff-header {
  display: none;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.diff-header.visible { display: grid; }

.diff-header-col {
  padding: 0.5rem 1rem;
  font-size: 0.813rem;
  font-weight: 600;
  color: #0f172a;
}

.diff-header-col:first-child { border-right: 1px solid #e2e8f0; }

/* Diff lines */
.diff-output {
  max-height: 24rem;
  overflow-y: auto;
}

.diff-line {
  border-bottom: 1px solid #e2e8f0;
  border-left: 4px solid transparent;
}

.diff-line.dl-equal { background: #fff; }
.diff-line.dl-added { background: #f0fdf4; border-left-color: #22c55e; }
.diff-line.dl-removed { background: #fef2f2; border-left-color: #ef4444; }
.diff-line.dl-changed { background: #fefce8; border-left-color: #eab308; }

/* Side-by-side layout */
.diff-line-sbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.diff-cell {
  display: flex;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  min-height: 1.75rem;
  align-items: flex-start;
}

.diff-cell:first-child { border-right: 1px solid #e2e8f0; }

.diff-linenum {
  font-size: 0.688rem;
  color: #94a3b8;
  width: 2rem;
  flex-shrink: 0;
  text-align: right;
  padding-top: 0.125rem;
}

.diff-marker {
  font-size: 0.688rem;
  font-weight: 700;
  width: 0.75rem;
  flex-shrink: 0;
  padding-top: 0.125rem;
}

.diff-marker.dm-eq { color: #94a3b8; }
.diff-marker.dm-add { color: #16a34a; }
.diff-marker.dm-del { color: #dc2626; }
.diff-marker.dm-chg { color: #ca8a04; }

.diff-text {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.813rem;
  word-break: break-all;
  flex: 1;
}

.diff-text.empty {
  color: #cbd5e1;
  font-style: italic;
}

.diff-text.line-through { text-decoration: line-through; }
.diff-text.text-red { color: #b91c1c; }
.diff-text.text-green { color: #15803d; }

/* Inline layout */
.diff-line-inline {
  display: flex;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
}

.diff-line-inline-pair {
  padding: 0.375rem 0.5rem;
}

.diff-line-inline-pair .diff-row {
  display: flex;
  gap: 0.5rem;
}

.diff-line-inline-pair .diff-row + .diff-row { margin-top: 0.25rem; }

/* Back to edit */
.back-bar {
  background: #f8fafc;
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #475569;
  color: #fff;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.813rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}

.back-btn:hover { background: #334155; }

/* --- Features Section --- */
.tool-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tool-feature-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.tool-feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.tool-feature-icon svg { width: 1.5rem; height: 1.5rem; }

.tool-feature-icon.feat-blue { background: #dbeafe; color: #2563eb; }
.tool-feature-icon.feat-green { background: #dcfce7; color: #16a34a; }
.tool-feature-icon.feat-purple { background: #f3e8ff; color: #9333ea; }

.tool-feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.tool-feature-card p {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
}

/* --- How to Use Section --- */
.how-to-use {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

.how-to-use h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.how-to-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.how-to-grid h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.quick-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quick-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #334155;
  font-size: 0.938rem;
  line-height: 1.5;
}

.step-number {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: #2563eb;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.125rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-list li {
  font-size: 0.875rem;
  color: #334155;
  line-height: 1.5;
}

.feature-list strong { color: #0f172a; }

/* --- Use Cases Section --- */
.use-cases {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem;
}

.use-cases h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.use-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.use-case-card {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid;
}

.use-case-card h4 {
  font-size: 0.938rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.375rem;
}

.use-case-card p {
  font-size: 0.813rem;
  color: #475569;
}

.uc-blue { background: #eff6ff; border-color: #bfdbfe; }
.uc-green { background: #f0fdf4; border-color: #bbf7d0; }
.uc-purple { background: #faf5ff; border-color: #e9d5ff; }
.uc-orange { background: #fff7ed; border-color: #fed7aa; }

/* =============================================
   RESPONSIVE — Tablet (640px+)
   ============================================= */
@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }

  .cookie-notice {
    flex-direction: row;
    justify-content: center;
  }

  .tool-page-header h1 { font-size: 2.5rem; }

  .tool-toolbar { padding: 1rem 1.5rem; }

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

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

  .how-to-use { padding: 2.5rem; }
  .how-to-grid { grid-template-columns: 1fr 1fr; }

  .use-cases { padding: 2.5rem; }
  .use-cases-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================
   RESPONSIVE — Desktop (768px+)
   ============================================= */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }

  .desktop-nav { display: flex; }
  .mobile-menu-btn { display: none; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .tool-page-header { padding: 2.5rem 0 2rem; }

  .text-areas { grid-template-columns: 1fr 1fr; }
  .text-area-panel { border-bottom: none; }
  .text-area-panel:first-child { border-right: 1px solid #e2e8f0; }
  .text-area-panel textarea { min-height: 20rem; }
}

/* =============================================
   RESPONSIVE — Large Desktop (1024px+)
   ============================================= */
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 2fr 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: auto; }
  .footer-all-links ul { columns: 3; }

  .tool-page-header h1 { font-size: 2.75rem; }
  .tool-page-header p { font-size: 1.125rem; }

  .compare-stats-grid { grid-template-columns: repeat(6, 1fr); }

  .how-to-use h2 { font-size: 1.75rem; }
  .use-cases h2 { font-size: 1.75rem; }

  .use-cases-grid { grid-template-columns: repeat(4, 1fr); }
}
