/* =========================================================
   toonkit.dev — Styles
   Dark, minimal, developer-focused
   ========================================================= */

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

:root {
  /* Colors */
  --bg:          #0d0d0f;
  --bg-2:        #111114;
  --bg-3:        #17171b;
  --bg-4:        #1d1d22;
  --border:      #2a2a31;
  --border-2:    #343440;
  --text:        #e8e8ed;
  --text-2:      #a0a0b0;
  --text-3:      #6b6b7e;
  --accent:      #6c63ff;
  --accent-dim:  #6c63ff22;
  --accent-2:    #8b83ff;
  --green:       #34d399;
  --green-dim:   #34d39918;
  --red:         #f87171;
  --red-dim:     #f8717118;
  --yellow:      #fbbf24;
  --yellow-dim:  #fbbf2418;

  /* Typography */
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  /* Spacing */
  --nav-h:  60px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;

  /* Transitions */
  --t-fast: 120ms ease;
  --t-mid:  200ms ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--accent-2); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--text); }

/* ─── Utility ───────────────────────────────────────────── */
.hidden { display: none !important; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform 60ms ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
  box-shadow: 0 0 0 3px var(--accent-dim), 0 4px 16px #6c63ff44;
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: var(--bg-4);
  color: var(--text);
  border-color: var(--border-2);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-outline:hover {
  background: var(--bg-4);
  border-color: var(--accent);
  color: var(--accent-2);
}

.btn-sm  { padding: 6px 14px; font-size: 13px; }
.btn-lg  { padding: 12px 24px; font-size: 15px; }
.btn-full { width: 100%; justify-content: center; padding: 13px 20px; font-size: 15px; }

/* ─── Navigation ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,13,15,0.88);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-logo:hover { color: var(--text); }
.logo-bracket { color: var(--accent); }

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--text); }

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(108,99,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 28px;
  letter-spacing: 0.01em;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 2.4s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-headline {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 19px);
  color: var(--text-2);
  max-width: 440px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 32px;
  max-width: 640px;
  margin: 0 auto;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 28px;
}

.stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  font-family: var(--font-mono);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Tools Section ─────────────────────────────────────── */
.tools-section {
  padding: 0 0 80px;
}

.tools-tabs {
  display: flex;
  gap: 2px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tools-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 1;
  min-width: 120px;
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--text-2);
  background: var(--bg-4);
}
.tab-btn.active {
  color: var(--text);
  background: var(--bg);
  border-color: var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ─── Tab Panels ────────────────────────────────────────── */
.tab-panel {
  display: none;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  padding: 20px;
}
.tab-panel.active { display: block; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}

.panel-options {
  display: flex;
  gap: 16px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}

.option-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 13px;
  height: 13px;
  cursor: pointer;
}

/* ─── Editor Grid ───────────────────────────────────────── */
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 300px;
}

.editor-pane {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 280px;
}

.editor-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.convert-arrow {
  font-size: 18px;
  color: var(--text-3);
  font-family: var(--font-mono);
  transition: color var(--t-fast);
}

/* ─── Pane Parts ────────────────────────────────────────── */
.pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
  flex-shrink: 0;
}

.pane-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}

.pane-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.editor-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.editor {
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  tab-size: 2;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}

.editor::placeholder { color: var(--text-3); }

.output-editor {
  color: var(--green);
  cursor: default;
}

.output-editor.has-error {
  color: var(--red);
}

.pane-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
  flex-shrink: 0;
}

.char-count, .token-count {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.savings-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(52,211,153,0.25);
  border-radius: 100px;
  padding: 2px 8px;
  font-family: var(--font-mono);
  animation: fade-in var(--t-mid);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Icon Buttons ──────────────────────────────────────── */
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--text-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  white-space: nowrap;
}
.icon-btn:hover {
  color: var(--text-2);
  background: var(--bg-4);
  border-color: var(--border);
}
.icon-btn.copied {
  color: var(--green);
  border-color: rgba(52,211,153,0.3);
}

/* ─── Error Bar ─────────────────────────────────────────── */
.error-bar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--red-dim);
  border: 1px solid rgba(248,113,113,0.25);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--red);
  font-family: var(--font-mono);
  line-height: 1.5;
}
.error-bar svg { flex-shrink: 0; margin-top: 2px; }

/* ─── Language Tags ─────────────────────────────────────── */
.lang-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lang-tag.json {
  background: rgba(251,191,36,0.12);
  color: var(--yellow);
  border: 1px solid rgba(251,191,36,0.2);
}
.lang-tag.toon {
  background: var(--accent-dim);
  color: var(--accent-2);
  border: 1px solid rgba(108,99,255,0.25);
}

/* ─── Validator Panel ───────────────────────────────────── */
.validator-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.validator-grid .editor-pane { min-height: 300px; }

.validator-pane { grid-column: 1; }
.validator-result-pane {
  grid-column: 2;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  min-height: 280px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.validator-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  color: var(--text-3);
  gap: 12px;
}
.validator-idle p { font-size: 14px; }

.validator-valid, .validator-invalid {
  width: 100%;
}

.validator-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.validator-status.ok {
  color: var(--green);
}

.validator-status.error-status {
  color: var(--red);
}

.validator-status svg { flex-shrink: 0; }

.validator-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}

.validator-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-3);
  border-radius: var(--r-sm);
}

.validator-stat-key {
  color: var(--text-3);
  font-size: 12px;
}

.validator-stat-val {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.validator-errors {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.validator-error-item {
  padding: 10px 12px;
  background: var(--red-dim);
  border: 1px solid rgba(248,113,113,0.2);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--red);
  line-height: 1.5;
}

.validator-error-loc {
  color: rgba(248,113,113,0.6);
  font-size: 11px;
  margin-bottom: 3px;
}

/* ─── Token Compare Panel ───────────────────────────────── */
.compare-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  min-height: 200px;
  color: var(--text-3);
  gap: 12px;
}
.compare-idle p { font-size: 14px; }

.compare-result-pane {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  min-height: 280px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.compare-content { width: 100%; }

.compare-header {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 20px;
}

.compare-bars { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.compare-bar-item { display: flex; flex-direction: column; gap: 6px; }

.compare-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.compare-bar-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  font-family: var(--font-mono);
}

.compare-bar-num {
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.compare-bar-num.json-color { color: var(--yellow); }
.compare-bar-num.toon-color { color: var(--accent-2); }

.bar-track {
  height: 8px;
  background: var(--bg-4);
  border-radius: 100px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
}

.bar-fill.json-fill { background: var(--yellow); }
.bar-fill.toon-fill { background: var(--accent); }

.compare-summary {
  padding: 14px 16px;
  background: var(--green-dim);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--r-md);
}

.compare-summary-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.compare-summary-value {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--green);
  line-height: 1.2;
}

.compare-summary-sub {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}

.compare-toon-output {
  margin-top: 20px;
}

.compare-toon-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.compare-toon-pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  line-height: 1.65;
  overflow-x: auto;
  white-space: pre;
  max-height: 160px;
  overflow-y: auto;
}

/* ─── Format Explainer Section ──────────────────────────── */
.explainer-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 10px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Format Comparison ─────────────────────────────────── */
.format-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 60px;
}

.format-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.format-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 8px 32px rgba(108,99,255,0.15);
}

.format-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.format-token-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
}

.format-token-badge.bad {
  background: var(--yellow-dim);
  color: var(--yellow);
  border: 1px solid rgba(251,191,36,0.25);
}

.format-token-badge.good {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(52,211,153,0.25);
}

.code-block {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  overflow-x: auto;
}

.format-card.featured .code-block { color: var(--green); }

.format-card-note {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  font-style: italic;
}

.format-arrow-between {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
}

.arrow-line {
  width: 1px;
  flex: 1;
  min-height: 32px;
  background: var(--border);
}

.savings-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 14px;
  background: var(--green-dim);
  border: 1px solid rgba(52,211,153,0.2);
  border-radius: var(--r-md);
  text-align: center;
}

.savings-pct {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--green);
}

.savings-desc {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
}

/* ─── Feature Grid ──────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color var(--t-mid), background var(--t-mid);
}

.feature-card:hover {
  border-color: var(--border-2);
  background: var(--bg-4);
}

.feature-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-dim);
  border: 1px solid rgba(108,99,255,0.25);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ─── Pricing ───────────────────────────────────────────── */
.pricing-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto 28px;
}

.pricing-card {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim), 0 8px 40px rgba(108,99,255,0.15);
  background: linear-gradient(to bottom, rgba(108,99,255,0.04), var(--bg-3));
}

.pricing-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 3px 12px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-card-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  font-family: var(--font-sans);
  line-height: 1;
}

.price-period {
  font-size: 15px;
  color: var(--text-3);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.4;
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--green);
  margin-top: 1px;
}

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.pricing-note svg { flex-shrink: 0; color: var(--text-3); }
.pricing-note a { color: var(--text-2); }
.pricing-note a:hover { color: var(--accent-2); }

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 17px;
  margin-bottom: 10px;
  display: inline-block;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-3);
  max-width: 260px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: var(--text-3);
  transition: color var(--t-fast);
}
.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-3);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer-sep { color: var(--border-2); }

.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text-2); }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ─── Focus Styles ──────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .format-comparison {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .format-arrow-between {
    flex-direction: row;
    padding: 0;
  }

  .arrow-line {
    width: auto;
    height: 1px;
    flex: 1;
    min-height: auto;
  }

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

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

  .footer-links { gap: 32px; }
}

@media (max-width: 700px) {
  .editor-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .editor-divider {
    height: 28px;
    flex-direction: row;
  }

  .convert-arrow {
    transform: rotate(90deg);
  }

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

  .validator-pane { grid-column: 1; }
  .validator-result-pane { grid-column: 1; min-height: 160px; }

  .hero-stats {
    padding: 16px 12px;
    gap: 0;
  }

  .stat-item { padding: 0 14px; }

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

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

  .nav-link { display: none; }

  .format-comparison { gap: 16px; }
}

@media (max-width: 480px) {
  .hero { padding: 52px 0 52px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .stat-item { padding: 0 10px; }
  .stat-num { font-size: 20px; }
}
