/* ==========================================================================
   Redsite JSON Formatter & Validator — Design System & Stylesheet
   Brand: Plus Jakarta Sans, JetBrains Mono, Raven Black, Powder Blue, Poppy Red
   ========================================================================== */

:root {
  --ink: #0a0a0a;
  --ink-soft: #24272e;
  --muted: #5e636e;
  --muted-light: #8e939e;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  --blue: #b0e0e6;
  --blue-accent: #0284c7;
  --blue-soft: #f0f9ff;
  --red: #e11d48;
  --red-hover: #be123c;
  --red-soft: #fff1f2;
  --red-border: #fecdd3;
  --green: #10b981;
  --green-soft: #ecfdf5;
  --green-border: #a7f3d0;
  --paper: #ffffff;
  --paper-warm: #fafbfc;
  --paper-panel: #f8fafc;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --shadow-sm: 0 1px 2px 0 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-xl: 0 20px 50px -12px rgba(10, 10, 10, 0.08);

  font-family: var(--font-sans);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

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

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

kbd {
  padding: 2px 5px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: 0 1px 0 #94a3b8;
  font-size: 11px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */

.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(calc((100vw - 1240px) / 2), 24px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-logo {
  display: block;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 10px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-byline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.brand-byline b {
  color: var(--red);
  font-weight: 600;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

nav a {
  transition: color 0.15s ease;
}

nav a:hover {
  color: var(--red);
}

.back-link {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  transition: all 0.2s ease;
  background: var(--paper);
}

.back-link:hover {
  border-color: var(--ink);
  background: var(--paper-warm);
  color: var(--ink);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-banner {
  padding: 48px 24px 32px;
  background: radial-gradient(circle at top, #fff5f7 0%, #ffffff 70%);
  text-align: center;
}

.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--paper-panel);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  display: inline-block;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 20px 0 16px;
  font-weight: 800;
  color: var(--ink);
}

h1 em {
  font-style: normal;
  color: var(--red);
  background: linear-gradient(135deg, var(--red) 0%, #be123c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 26px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.trust-row b {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
  margin-right: 6px;
}

/* ==========================================================================
   Workbench & Tools
   ========================================================================== */

.tool-section {
  max-width: 1240px;
  margin: 0 auto 72px;
  padding: 0 24px;
}

.workbench-container {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: all 0.2s ease;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  gap: 14px;
  flex-wrap: wrap;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.indent-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
}

.indent-control select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.indent-control select:hover,
.indent-control select:focus {
  border-color: var(--blue-accent);
}

/* Action Buttons */
.primary-btn {
  height: 38px;
  padding: 0 18px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a080c 45%, #e11d48 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
  transition: all 0.15s ease;
}

.primary-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

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

.btn-arrow {
  font-size: 15px;
  transition: transform 0.15s ease;
}

.primary-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.secondary-btn, .accent-btn {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.secondary-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.accent-btn {
  background: #fff1f2;
  border-color: var(--red-border);
  color: var(--red);
}

.accent-btn:hover {
  background: #ffe4e6;
  border-color: var(--red);
}

.text-pill-btn {
  height: 34px;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.text-pill-btn:hover {
  color: var(--ink);
  border-color: #94a3b8;
  background: #ffffff;
}

.text-pill-btn.danger:hover {
  color: var(--red);
  border-color: var(--red-border);
  background: var(--red-soft);
}

/* Status & Error Banner */
.status-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  flex-wrap: wrap;
  gap: 10px;
}

.status-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-container.idle {
  background: var(--paper-warm);
  color: var(--muted);
}

.status-container.idle .status-icon::before {
  content: "●";
  color: var(--muted-light);
}

.status-container.valid {
  background: var(--green-soft);
  color: #065f46;
  border-color: var(--green-border);
}

.status-container.valid .status-icon::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

.status-container.error {
  background: var(--red-soft);
  color: #9f1239;
  border-color: var(--red-border);
}

.status-container.error .status-icon::before {
  content: "⚠️";
}

.status-container.repaired {
  background: #f0fdfa;
  color: #0f766e;
  border-color: #99f6e4;
}

.status-container.repaired .status-icon::before {
  content: "🛠";
}

.error-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.small-alert-btn {
  height: 28px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--red-border);
  background: #ffffff;
  color: var(--red);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.small-alert-btn:hover {
  background: var(--red-soft);
  border-color: var(--red);
}

.small-alert-btn.primary {
  background: var(--red);
  color: #ffffff;
  border: none;
}

.small-alert-btn.primary:hover {
  background: var(--red-hover);
}

/* Editor Panes & Grid */
.editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  transition: all 0.2s ease;
}

.workbench-container.split-view .editor-grid {
  grid-template-columns: 1fr 1fr;
}

.editor-pane {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.workbench-container.split-view .editor-pane:first-child {
  border-right: 1px solid var(--line);
  border-bottom: none;
}

.pane-header {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--paper-panel);
  border-bottom: 1px solid var(--line);
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}

.pane-title label {
  cursor: pointer;
}

.pane-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  background: #e2e8f0;
  color: #475569;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.pane-badge.success {
  background: #dcfce7;
  color: #15803d;
}

.pane-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.tool-tiny-btn {
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tool-tiny-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.tool-tiny-btn.highlight {
  background: #0a0a0a;
  color: #ffffff;
  border-color: #0a0a0a;
}

.tool-tiny-btn.highlight:hover:not(:disabled) {
  background: var(--red);
  border-color: var(--red);
}

.tool-tiny-btn.copied {
  background: var(--green) !important;
  color: #ffffff !important;
  border-color: var(--green) !important;
}

.tool-tiny-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Textarea & Dropzone */
.textarea-wrapper {
  position: relative;
  flex: 1;
}

.editor-pane textarea {
  display: block;
  width: 100%;
  min-height: 380px;
  height: 420px;
  resize: vertical;
  border: none;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  tab-size: 2;
  white-space: pre-wrap;
  word-break: break-word;
}

.editor-pane.output-pane textarea {
  background: #fcfcfd;
}

.editor-pane textarea:focus {
  background: #ffffff;
  box-shadow: inset 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.editor-pane textarea::placeholder {
  color: #94a3b8;
  font-style: italic;
}

.dropzone-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 132, 199, 0.08);
  border: 2px dashed var(--blue-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.dropzone-overlay.active {
  opacity: 1;
}

.dropzone-text {
  padding: 12px 24px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-accent);
}

.pane-footer {
  padding: 8px 16px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hint-text {
  font-size: 11px;
  color: var(--muted-light);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-section, .how-section, .errors-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-heading h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.04em;
  margin: 14px 0 12px;
  font-weight: 800;
}

.section-heading h2 em {
  font-style: normal;
  color: var(--red);
}

.section-heading p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.feature-icon {
  font-size: 26px;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--ink);
}

.feature-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   How It Works Steps
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  padding: 32px 26px;
  border-top: 2px solid var(--ink);
  background: var(--paper-warm);
  border-radius: 0 0 12px 12px;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
}

.step-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 16px 0 10px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Common JSON Syntax Errors Guide
   ========================================================================== */

.errors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.error-item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.error-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.error-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 14px;
}

.code-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.code-box {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.code-box.invalid {
  background: var(--red-soft);
  border: 1px solid var(--red-border);
}

.code-box.valid {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
}

.code-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.code-box.invalid .code-label {
  color: var(--red);
}

.code-box.valid .code-label {
  color: #059669;
}

.code-box code {
  color: var(--ink);
  word-break: break-all;
}

/* ==========================================================================
   Privacy Guarantee Band
   ========================================================================== */

.privacy-band {
  background: var(--ink);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 44px max(calc((100vw - 1240px) / 2), 24px);
  margin-bottom: 80px;
}

.privacy-symbol {
  font-size: 42px;
  color: var(--blue);
  flex: none;
}

.privacy-content {
  flex: 1;
}

.privacy-content .eyebrow {
  background: #1c1d21;
  border-color: #31353d;
  color: var(--blue);
}

.privacy-band h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 10px 0 8px;
  letter-spacing: -0.03em;
}

.privacy-band h2 em {
  font-style: normal;
  color: var(--blue);
}

.privacy-band p {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
  max-width: 680px;
  margin: 0;
}

.privacy-tag {
  white-space: nowrap;
  border: 1px solid #334155;
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--blue);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.faq-heading {
  text-align: left;
  margin: 0;
  position: sticky;
  top: 100px;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.faq-list summary {
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
  color: var(--ink);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: -2px;
  color: var(--red);
  font-size: 20px;
  font-weight: 600;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 12px 0 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-warm);
  padding: 28px max(calc((100vw - 1240px) / 2), 24px);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-product {
  font-weight: 700;
  color: var(--ink);
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--red);
}

/* ==========================================================================
   Privacy Policy Page Styles
   ========================================================================== */

.policy-page {
  max-width: 780px;
  margin: 56px auto 100px;
  padding: 0 24px;
}

.policy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color 0.15s ease;
}

.policy-back:hover {
  color: var(--red);
}

.policy-page h1 {
  font-size: clamp(38px, 5vw, 52px);
  margin: 16px 0 20px;
}

.policy-lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-left: 3px solid var(--red);
  padding-left: 18px;
  margin: 0 0 40px;
}

.policy-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.policy-block h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.policy-block p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.policy-block a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-block a:hover {
  color: var(--red);
}

.policy-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted-light);
  margin-top: 36px;
}

/* ==========================================================================
   Accessibility & Focus Styles
   ========================================================================== */

button:focus-visible,
a:focus-visible,
summary:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue-accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .workbench-container.split-view .editor-grid {
    grid-template-columns: 1fr;
  }

  .workbench-container.split-view .editor-pane:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-heading {
    position: static;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .topbar {
    height: 64px;
    padding: 0 16px;
  }

  nav > a:not(.back-link) {
    display: none;
  }

  .hero-banner {
    padding: 36px 16px 24px;
  }

  .intro {
    font-size: 14px;
  }

  .trust-row {
    gap: 8px;
  }

  .trust-row span {
    font-size: 11px;
    padding: 4px 8px;
  }

  .tool-section {
    padding: 0 16px;
    margin-bottom: 56px;
  }

  .toolbar {
    padding: 12px;
  }

  .editor-pane textarea {
    min-height: 280px;
    height: 320px;
    font-size: 12px;
    padding: 12px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .errors-grid {
    grid-template-columns: 1fr;
  }

  .code-compare {
    grid-template-columns: 1fr;
  }

  .privacy-band {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 20px;
    gap: 16px;
  }

  .privacy-tag {
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .toolbar-left, .toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .primary-btn {
    flex: 1;
    justify-content: center;
  }

  .secondary-btn, .accent-btn {
    flex: 1;
    justify-content: center;
  }

  .pane-header {
    height: auto;
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
