/* ========================================
   Utility Tools - Shared Styles
   Mobile-first, dark theme
   ======================================== */

:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #181818;
  --bg-card: #1e1e1e;
  --bg-input: #252525;
  --bg-hover: #2a2a2a;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0a0;
  --text-muted: #666;
  --accent-orange: #f79513;
  --accent-orange-hover: #ffaa33;
  --accent-green: #00c158;
  --accent-red: #fc4c54;
  --accent-blue: #00a2e8;
  --accent-purple: #9b59b6;
  --border-color: #2a2a2a;
  --border-light: #333;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --transition: 0.2s ease;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-orange-hover);
}

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

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide {
  max-width: 800px;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  padding-bottom: 48px;
}

/* ---- Header / Nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(24, 24, 24, 0.85);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.nav-brand:hover { color: var(--text-primary); }

.nav-brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-back:hover {
  color: var(--text-primary);
}

.nav-back svg {
  width: 18px;
  height: 18px;
}

/* ---- Page Header ---- */

.page-header {
  text-align: center;
  padding: 32px 0 24px;
}

.page-header .icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 1px solid var(--border-color);
}

.page-header .icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.page-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--accent-orange);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  box-shadow: 0 4px 20px rgba(247, 149, 19, 0.25);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn-block { width: 100%; }

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

/* ---- Form Inputs ---- */

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.input-field::placeholder {
  color: var(--text-muted);
}

textarea.input-field {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.input-row {
  display: flex;
  gap: 12px;
}

.input-row .input-group {
  flex: 1;
}

/* ---- Cards ---- */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  border-color: var(--border-light);
  background: var(--bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-interactive:active {
  transform: translateY(0);
}

/* ---- Result Display ---- */

.result-display {
  text-align: center;
  padding: 32px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 24px 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.result-number {
  font-size: 4rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-orange);
  line-height: 1;
  letter-spacing: -2px;
}

.result-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Toggle / Switch ---- */

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

.toggle-row span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-input);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  transition: all var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 2px;
  top: 2px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #000;
}

/* ---- Chip Selector ---- */

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.chip:hover {
  border-color: var(--border-light);
}

.chip.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #000;
  font-weight: 600;
}

/* ---- Color Dots ---- */

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

.color-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.color-dot:hover {
  transform: scale(1.15);
}

.color-dot.active {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px var(--bg-primary), 0 0 0 5px var(--text-primary);
}

/* ---- Recent History ---- */

.history-section {
  margin-top: 32px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.history-header h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-clear {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  transition: color var(--transition);
}

.history-clear:hover {
  color: var(--accent-red);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition);
}

.history-item:hover {
  background: var(--bg-hover);
}

.history-item .value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.history-item .meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.history-empty {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ---- Toast Notification ---- */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Guide / How-to Section ---- */

.guide-section {
  margin: 20px 0 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.guide-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.guide-toggle:hover { color: var(--text-primary); }

.guide-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.guide-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.guide-body {
  display: none;
  padding: 0 16px 16px;
}

.guide-body.open {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.guide-body h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 12px 0 6px;
}

.guide-body h3:first-child { margin-top: 0; }

.guide-body p,
.guide-body li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.guide-body ol,
.guide-body ul {
  padding-left: 20px;
  margin: 6px 0;
}

.guide-body li {
  margin-bottom: 4px;
}

.guide-body .tip {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(247, 149, 19, 0.06);
  border-left: 3px solid var(--accent-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 10px 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.guide-body .tip strong {
  color: var(--accent-orange);
  white-space: nowrap;
}

/* ---- Section Headings ---- */

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-orange);
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 480px;
}

.section-heading {
  text-align: center;
  margin-bottom: 28px;
}

/* ---- Feature Grid ---- */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.feature-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.feature-text h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-text p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- FAQ Accordion ---- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.faq-question:hover { color: var(--accent-orange); }

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

.faq-question[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 16px 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-answer.open {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

/* ---- Steps / How It Works ---- */

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 14px;
  counter-increment: step;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.step-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Professional Footer ---- */

.site-footer {
  border-top: 1px solid var(--border-color);
  margin-top: auto;
  background: var(--bg-secondary);
}

.footer-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.footer-brand svg {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

/* ---- Prose / Legal Pages ---- */

.prose {
  max-width: 640px;
}

.prose h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.prose .page-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.prose h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 6px;
}

.prose p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.prose ul, .prose ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

.prose li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

.prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Dividers ---- */

.divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 40px 0;
}

/* ---- Animations ---- */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px) rotate(-1deg); }
  40% { transform: translateX(4px) rotate(1deg); }
  60% { transform: translateX(-3px) rotate(-0.5deg); }
  80% { transform: translateX(3px) rotate(0.5deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247, 149, 19, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(247, 149, 19, 0.3); }
}

.animate-fade-in { animation: fadeIn 0.4s ease-out; }
.animate-pop { animation: pop 0.3s ease-out; }
.animate-shake { animation: shake 0.4s ease-out; }

/* ---- Responsive ---- */

@media (min-width: 480px) {
  .container { padding: 0 24px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .container { max-width: 680px; }
  .page-header { padding: 40px 0 28px; }
  .page-header h1 { font-size: 1.75rem; }
  .result-number { font-size: 5rem; }
  .section-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .container { max-width: 720px; }
}

/* ---- Jargon / Terms Section ---- */

.jargon-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.jargon-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.jargon-heading svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.term-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.term-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.term-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.term-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.term-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.term-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.term-body {
  display: none;
  padding: 10px 14px 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
}

.term-body.open {
  display: block;
  animation: fadeIn 0.2s ease-out;
}

.term-body code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-input);
  color: var(--accent-orange);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ---- Explainer card (replaces accordion jargon terms) ---- */

.explainer-card {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.explainer-card > p {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.explainer-card > p:last-child { margin-bottom: 0; }

.explainer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.explainer-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.explainer-item h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.explainer-item p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

.explainer-item code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-input);
  color: var(--accent-orange);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ---- Utility ---- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
