/* ═══════════════════════════════════════════════════════════════
   Formator — style.css
   Dark crimson accents · IBM Plex Serif · RuntimeHub
   ═══════════════════════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── TOKENS ─── */
:root {
  --ink:          #130708;
  --ink-2:        #3D1A1C;
  --ink-3:        #6B3A3D;
  --ink-4:        #9A6668;
  --surface:      #F9F7F4;
  --surface-1:    #F1EDE6;
  --surface-2:    #E9E2D8;
  --card:         #FFFFFF;
  --border:       #DDD5C8;
  --border-strong:#C5B5A8;

  --red:          #7A1515;
  --red-mid:      #B02A2A;
  --red-hot:      #D94040;
  --red-glow:     rgba(176, 42, 42, 0.14);
  --red-glow-lg:  rgba(176, 42, 42, 0.22);

  --footer-bg:    #0E0507;
  --footer-1:     #1A0B0D;
  --footer-2:     #271215;
  --footer-text:  #EDE3DC;
  --footer-muted: #886060;
  --footer-dim:   rgba(237, 227, 220, 0.45);

  --serif:  'IBM Plex Serif', Georgia, serif;
  --sans:   'IBM Plex Sans', system-ui, sans-serif;
  --mono:   'IBM Plex Mono', 'Courier New', monospace;

  --r:   8px;
  --r-lg: 14px;
  --r-xl: 20px;
}

/* ─── BASE ─── */
body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── TYPOGRAPHY SCALE ─── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  line-height: 1.18;
  color: var(--ink);
  font-weight: 600;
}
h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.015em;
  font-weight: 600;
}
h4 {
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--sans);
  letter-spacing: 0.005em;
}
p {
  color: var(--ink-2);
  line-height: 1.78;
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-mid);
}
.lead {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-2);
  line-height: 1.72;
}

/* ─── LAYOUT ─── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.section {
  padding: clamp(5rem, 9vw, 10rem) clamp(1.5rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}
.section--sm {
  padding: clamp(3rem, 5vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}
.glow-rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--red-mid) 25%,
    var(--red-hot) 50%,
    var(--red-mid) 75%,
    transparent 100%);
  opacity: 0.4;
}
.section-head {
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.section-head .eyebrow {
  margin-bottom: 1rem;
}
.section-head h2 {
  max-width: 22ch;
}
.section-head p {
  margin-top: 1.25rem;
  max-width: 54ch;
  font-size: 1.05rem;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 64px;
  background: rgba(249, 247, 244, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 5rem);
}
.nav-brand {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-brand em {
  font-style: normal;
  color: var(--red-mid);
}
.nav-link {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--border-strong);
  padding: 7px 16px;
  border-radius: var(--r);
  transition: border-color 0.18s, color 0.18s;
}
.nav-link:hover {
  border-color: var(--red-mid);
  color: var(--red);
}

/* ─── HERO ─── */
.hero {
  padding: clamp(6rem, 11vw, 13rem) clamp(1.5rem, 5vw, 5rem) clamp(5rem, 8vw, 9rem);
  max-width: 1200px;
  margin: 0 auto;
}
.hero-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.hero-label::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border-strong);
}
.hero h1 {
  max-width: 18ch;
}
.hero-accent {
  display: block;
  background: linear-gradient(130deg, var(--red) 0%, var(--red-hot) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-body {
  margin-top: 2.5rem;
  max-width: 48ch;
}
.hero-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3rem;
}
.fmt-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--ink-3);
  background: var(--card);
  transition: border-color 0.15s, color 0.15s;
}
.fmt-tag:hover {
  border-color: var(--red-mid);
  color: var(--red);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 3.5rem;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: var(--r);
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-mid);
  box-shadow: 0 8px 32px var(--red-glow-lg);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--red-mid);
  color: var(--red);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ─── TOOL ZONE WRAPPER ─── */
.zone {
  background: var(--surface-1);
  border-top: 2px solid var(--red);
}
.zone--alt {
  background: var(--surface);
  border-top: 2px solid var(--border);
}
.zone-head {
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.zone-head h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}
.zone-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 1rem;
}
.zone-desc {
  margin-top: 0.75rem;
  max-width: 50ch;
  font-size: 1rem;
  color: var(--ink-3);
}

/* ─── CONVERTER ─── */
.converter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}
.drop-area {
  background: var(--card);
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 4vw, 4rem) 2rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.drop-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--red-glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.drop-area:hover,
.drop-area.drag-over {
  border-color: var(--red-mid);
  border-style: solid;
}
.drop-area:hover::before,
.drop-area.drag-over::before {
  opacity: 1;
}
.drop-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.drop-mark {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}
.drop-area:hover .drop-mark {
  border-color: var(--red-mid);
}
.drop-mark svg {
  width: 22px;
  height: 22px;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 1.5;
  transition: stroke 0.2s;
}
.drop-area:hover .drop-mark svg {
  stroke: var(--red-mid);
}
.drop-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.drop-sub {
  font-size: 0.8rem;
  color: var(--ink-4);
  line-height: 1.6;
}

.file-info {
  display: none;
  width: 100%;
  margin-top: 1.75rem;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  text-align: left;
}
.file-info.visible { display: block; }
.file-info-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}
.file-info-row:last-child { border-bottom: none; }
.fi-key {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-family: var(--sans);
}
.fi-val {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.options-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.opt-group { display: flex; flex-direction: column; gap: 0.5rem; }
.opt-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--sans);
}
.opt-select, .opt-input {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.opt-select:focus, .opt-input:focus {
  outline: none;
  border-color: var(--red-mid);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.enc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.enc-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.enc-chip:hover, .enc-chip.on {
  border-color: var(--red-mid);
  background: rgba(122, 21, 21, 0.06);
  color: var(--red);
}

.formats-strip {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.fs-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-right: 8px;
  font-family: var(--sans);
}
.fs-chip {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 4px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--ink-3);
}
.fs-chip.hi {
  border-color: rgba(122, 21, 21, 0.22);
  background: rgba(122, 21, 21, 0.05);
  color: var(--red);
}

/* ─── EDITOR ─── */
.editor-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(19, 7, 8, 0.07);
}
.editor-bar {
  background: #130507;
  padding: 0 1.25rem;
  height: 46px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.win-dots {
  display: flex;
  gap: 6px;
  margin-right: 1.25rem;
}
.wd {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.wd-r { background: #C84040; }
.wd-y { background: #C89040; }
.wd-g { background: #40B070; }

.tb-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  padding: 5px 10px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(237,227,220,0.55);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.03em;
}
.tb-btn:hover {
  background: rgba(255,255,255,0.10);
  color: rgba(237,227,220,0.88);
}
.tb-btn.on {
  background: rgba(176,42,42,0.22);
  border-color: rgba(176,42,42,0.4);
  color: #E08080;
}
.tb-sep {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.08);
  margin: 0 3px;
}
.tb-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}
.tb-right { margin-left: auto; }
.ed-status-bar-info {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(237,227,220,0.3);
}

.editor-body {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.editor-sidebar {
  background: #0F0407;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
  min-height: 500px;
}
.sidebar-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237,227,220,0.22);
  padding: 8px 16px 4px;
  font-family: var(--sans);
}
.sidebar-file {
  padding: 7px 16px;
  font-size: 0.78rem;
  font-family: var(--mono);
  color: rgba(237,227,220,0.4);
  cursor: pointer;
  transition: all 0.13s;
  display: flex;
  align-items: center;
  gap: 9px;
  border-left: 2px solid transparent;
}
.sidebar-file svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.5;
}
.sidebar-file:hover {
  background: rgba(255,255,255,0.03);
  color: rgba(237,227,220,0.7);
}
.sidebar-file.on {
  background: rgba(176,42,42,0.1);
  color: rgba(237,200,196,0.9);
  border-left-color: var(--red-mid);
}

.editor-main { display: flex; flex-direction: column; }
.editor-tabs {
  background: #140608;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
}
.e-tab {
  padding: 9px 22px;
  font-size: 0.76rem;
  font-family: var(--mono);
  color: rgba(237,227,220,0.35);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.e-tab:hover { color: rgba(237,227,220,0.65); }
.e-tab.on {
  color: rgba(237,200,196,0.9);
  border-bottom-color: var(--red-mid);
  background: #1A0C0E;
}
.console {
  background: #0D0407;
  padding: 1.5rem 1.75rem;
  font-family: var(--mono);
  font-size: 0.84rem;
  color: #CFC0BC;
  line-height: 1.85;
  min-height: 400px;
  outline: none;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-y: auto;
  flex: 1;
}
.console:focus {
  box-shadow: inset 0 0 0 1px rgba(176,42,42,0.28);
}
.c-dim    { color: rgba(207,192,188,0.28); font-style: italic; }
.c-red    { color: #D96060; }
.c-green  { color: #5CB87A; }
.c-blue   { color: #6CA8D8; }
.c-yellow { color: #D4AA50; }
.c-kw     { color: #C87850; }

.console::-webkit-scrollbar { width: 5px; }
.console::-webkit-scrollbar-track { background: transparent; }
.console::-webkit-scrollbar-thumb { background: rgba(176,42,42,0.28); border-radius: 3px; }

.e-statusbar {
  background: #08020A;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 5px 16px;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.68rem;
  font-family: var(--mono);
  color: rgba(207,192,188,0.3);
}
.sb-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #40B070;
  margin-right: 5px;
  display: inline-block;
}

/* ─── INFO CARDS (2 col) ─── */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--red-hot));
  opacity: 0;
  transition: opacity 0.22s;
}
.card:hover {
  border-color: rgba(122,21,21,0.25);
  box-shadow: 0 12px 40px rgba(19,7,8,0.06);
}
.card:hover::after { opacity: 1; }

.card-num {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(122,21,21,0.08);
  margin-bottom: 1.25rem;
  display: block;
}
.card h4 { margin-bottom: 0.65rem; }
.card p { font-size: 0.9rem; }

/* ─── HOW IT WORKS ─── */
.steps-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step {
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.step-num {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--red-mid);
}
.step h4 { font-size: 1rem; }
.step p { font-size: 0.88rem; color: var(--ink-2); }

/* ─── USE CASES ─── */
.usecases-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.uc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--border-strong);
  transition: border-left-color 0.2s;
}
.uc:hover { border-left-color: var(--red-mid); }
.uc h4 { margin-bottom: 0.5rem; font-size: 0.95rem; }
.uc p { font-size: 0.86rem; }

/* ─── FAQ ─── */
.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.15s;
  user-select: none;
  list-style: none;
}
.faq-q:hover { color: var(--red); }
.faq-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  position: relative;
  transition: all 0.2s;
}
.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  background: var(--ink-3);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.2s;
}
.faq-toggle::before { width: 8px; height: 1.5px; }
.faq-toggle::after  { width: 1.5px; height: 8px; }
.faq-item.open .faq-toggle {
  background: var(--red);
  border-color: var(--red);
}
.faq-item.open .faq-toggle::before { background: #fff; }
.faq-item.open .faq-toggle::after  { background: #fff; transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-a {
  display: none;
  padding: 0 0 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.78;
  max-width: 70ch;
}
.faq-item.open .faq-a { display: block; }

/* ─── FOOTER ─── */
footer {
  background: var(--footer-bg);
  padding: clamp(4rem, 7vw, 8rem) clamp(1.5rem, 5vw, 5rem) 2.5rem;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--footer-text);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.footer-brand-name em {
  font-style: normal;
  color: var(--red-hot);
}
.footer-tagline {
  font-size: 0.88rem;
  color: var(--footer-muted);
  line-height: 1.7;
  max-width: 28ch;
  margin-bottom: 1.5rem;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 5px 13px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--footer-muted);
}
.footer-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #40B070;
}
.footer-col-head {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-muted);
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--footer-dim);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--footer-text); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--footer-muted);
  font-family: var(--sans);
}
.footer-rh {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237,227,220,0.3);
  transition: color 0.15s;
}
.footer-rh:hover { color: var(--footer-text); }

/* ─── LEGAL PAGES ─── */
.legal-hero {
  padding: clamp(5rem, 8vw, 9rem) clamp(1.5rem, 5vw, 5rem) clamp(3rem, 5vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.legal-body {
  padding: clamp(3rem, 5vw, 6rem) clamp(1.5rem, 5vw, 5rem);
  max-width: 780px;
  margin: 0 auto;
}
.legal-body h3 {
  font-size: 1.15rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.legal-body p, .legal-body li {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 0.75rem;
  line-height: 1.78;
}
.legal-body ul, .legal-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.legal-body li { margin-bottom: 0.4rem; }
.legal-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-4);
  margin-bottom: 2rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .converter-grid { grid-template-columns: 1fr; }
  .editor-body { grid-template-columns: 1fr; }
  .editor-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cards-2 { grid-template-columns: 1fr; }
  .usecases-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
}
