/* Refont. Design reference: the "Refont UI directions" canvas (C layout,
   A fonts, teal theme). Fonts are self-hosted; the CSP allows no font CDN. */

@font-face {
  font-family: 'Gloock';
  src: url('/assets/fonts/gloock-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/geist-mono-latin-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0E5E6F;
  --teal-deep: #0A4E5C;
  --teal-line: #2F7D8D;
  --teal-pill: #176B7C;
  --teal-nav: #4F95A3;
  --on-teal: #F1FAFB;
  --on-teal-2: #C8E6EB;
  --ink: #0A2228;
  --bg: #ECEFF0;
  --surface: #FFFFFF;
  --row: #F5F7F8;
  --tint: #D9EEF1;
  --muted: #4A5F64;
  --muted-2: #3B5055;
  --line: #D2DCDE;
  --line-2: #C1CED1;
  --line-3: #A5B5B9;
  --ok: #0D6B52;
  --warn-bg: #FFF4E5;
  --warn-line: #F3C98A;
  --warn-text: #7A4A06;
  --warn-strong: #6B4005;

  --serif: 'Gloock', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --gutter: 32px;
  --max: 1200px;
}

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

/* Components set display:flex, which would otherwise beat the hidden attribute. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--teal); }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.band :focus-visible { outline-color: var(--on-teal); }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---- Teal band: header + hero ---------------------------------------- */

.band { background: var(--teal); color: var(--on-teal); }
.band a { color: var(--on-teal); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}
.brand { font-family: var(--serif); font-size: 28px; line-height: 1; letter-spacing: -0.5px; }

.nav { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.nav a { padding: 9px 14px; border: 1px solid var(--teal-nav); border-radius: 999px; }
.nav a[aria-current="page"] { background: var(--on-teal); color: var(--ink); border-color: var(--on-teal); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--teal-nav);
  border-radius: 999px;
  cursor: pointer;
}
.menu summary::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute; right: 0; top: 52px; z-index: 10;
  min-width: 220px;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
}
.band .menu-panel a { color: var(--ink); padding: 12px 14px; border-radius: 10px; }
.band .menu-panel a:hover { background: var(--row); }

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: 36px;
  padding-bottom: 140px;
}
/* No tool card overlapping the band, so no room needs reserving for it. */
.hero-plain { padding-bottom: 56px; }
.hero-split { grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); }
.hero-copy { display: flex; flex-direction: column; gap: 14px; }

.crumbs { display: flex; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--on-teal-2); }
.band .crumbs a { color: var(--on-teal-2); }

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 8.4vw, 74px);
  line-height: 1;
  letter-spacing: -1px;
  text-wrap: balance;
}
.lede { margin: 0; max-width: 520px; font-size: clamp(14px, 2.4vw, 18px); line-height: 1.55; color: var(--on-teal-2); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 12px; }
.pills li { padding: 6px 10px; border-radius: 999px; background: var(--teal-pill); }

.bezier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bezier figure { margin: 0; display: flex; flex-direction: column; gap: 8px; border-radius: 20px; padding: 14px; }
.bezier figcaption { font-family: var(--mono); font-size: 11px; }
.bezier-dark figure { background: var(--teal-deep); border: 1px solid var(--teal-line); }
.bezier-dark figcaption { color: var(--on-teal-2); }
.bezier-light figure { background: var(--surface); border: 1px solid var(--line); }
.bezier-light figcaption { color: var(--muted); }

/* ---- Converter widget ------------------------------------------------- */

.tool-wrap { margin-top: -100px; }
.tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.drop {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 20px;
  padding: 28px 22px;
  border: 2px dashed var(--teal);
  border-radius: 20px;
  background: var(--on-teal);
}
.drop.is-over { background: var(--tint); }
.drop-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.drop-title { margin: 0; font-family: var(--serif); font-size: clamp(21px, 3.4vw, 28px); line-height: 1.1; }
.drop-formats { margin: 0; font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--muted-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
}
/* Kept in the tab order (unlike [hidden]) so the file picker works by keyboard. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.btn:focus-within { outline: 2px solid var(--teal); outline-offset: 3px; }
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-ink:hover { color: #FFFFFF; background: #133640; }
.btn-primary { background: var(--teal); color: #FFFFFF; min-height: 48px; padding: 0 24px; }
.btn-primary:hover { background: var(--teal-deep); }

.notice { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-text); font-size: 14px; }
.files { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.files:empty { display: none; }
.file {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--row);
}
.badge {
  flex: none;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  font-family: var(--mono); font-weight: 500; font-size: 11px;
  background: var(--tint); color: var(--teal);
}
.badge-ttf, .badge-eot { background: #DDF5EE; color: var(--ok); }
.badge-woff, .badge-woff2 { background: #E8E4F6; color: #4B3A8C; }
.badge-ttc, .badge-dfont { background: #FBE9D7; color: #8A4B08; }
.badge-unknown, .badge-pfb, .badge-pfa { background: #EEE; color: var(--muted); }
.file-main { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.file-name { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { font-size: 13px; color: var(--muted); }
.is-error .file-sub { color: #A3342B; }
.file-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.to { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.to select {
  font: inherit; font-weight: 600; font-size: 14px; color: var(--ink);
  height: 40px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface);
}
.bar { width: 120px; height: 6px; border-radius: 999px; background: var(--tint); overflow: hidden; position: relative; }
.bar::after {
  content: ''; position: absolute; inset: 0; width: 40%;
  border-radius: 999px; background: var(--teal);
  animation: slide 1.1s ease-in-out infinite;
}
.is-queued .bar::after { animation: none; width: 0; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .bar::after { animation: none; width: 60%; } }
.size { font-family: var(--mono); font-size: 13px; color: var(--ok); white-space: nowrap; }
.save { font-size: 14px; font-weight: 600; text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.remove {
  width: 36px; height: 36px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  cursor: pointer;
}
.remove:hover { background: var(--line); color: var(--ink); }

.report { flex-basis: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 8px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chip-label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }
.chip-value { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.chip-value.ok { color: var(--ok); }
.chip-value.warn { color: #8A5300; }

.license {
  flex-basis: 100%;
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--warn-line); border-radius: 12px;
  background: var(--warn-bg);
  font-size: 13px; line-height: 1.5; color: var(--warn-text);
}
.license strong { color: var(--warn-strong); font-size: 14px; }

.tool-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.local-note { font-size: 12px; color: var(--muted); }

.tool-options { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 14px; }
.opt-label { font-weight: 600; }
.opt-hint { font-size: 13px; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--row); border: 1px solid var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; color: var(--muted-2); }
.seg input:checked + span { background: var(--teal); color: #FFFFFF; }
.seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---- Webfont generator ----------------------------------------------- */

.kit { padding: 20px; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 14px; }
.kit-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 14px; }
.panel { background: var(--row); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel.is-over { outline: 2px dashed var(--teal); outline-offset: -4px; background: var(--tint); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.1; }
.btn-ghost { min-height: 36px; padding: 0 14px; font-size: 13px; border: 1.5px dashed var(--teal); color: var(--teal); background: transparent; }
.btn-primary:disabled, .btn-outline-light:disabled { opacity: 0.45; cursor: default; }
.kit-empty { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

.family { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted-2); }
.mono-label { font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; }
.stack input, .stack select {
  font: inherit; font-family: var(--sans); font-size: 14px; text-transform: none; color: var(--ink);
  min-height: 40px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface);
}
.family .stack input { font-weight: 600; font-size: 15px; }
.face { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.face-end { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.face-file { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.face .remove { width: 30px; height: 30px; }
.face-warn { margin: 0; font-size: 12px; line-height: 1.5; color: var(--warn-text); background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 8px 10px; }
.axis { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; }
.axis-tag { font-family: var(--mono); padding: 4px 8px; border-radius: 999px; background: var(--tint); color: var(--teal); }
.axis-input input { width: 72px; min-height: 32px; padding: 0 8px; font: inherit; font-family: var(--mono); border: 1px solid var(--line-2); border-radius: 8px; }
.axis-dash, .axis-full { color: var(--muted); }

.field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.field legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; cursor: pointer; font-size: 13px; }
.chip-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.chip-check input:checked + span { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.chip-check input:disabled + span { opacity: 0.45; }
.chip-check input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); }
.inline { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.kit-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.kit-total { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--teal); }
.kit-from { font-size: 14px; color: var(--muted); }
.kit-bars { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.kit-bar { display: flex; flex-direction: column; gap: 4px; }
.kit-bar-top { display: flex; justify-content: space-between; gap: 8px; }
.kit-bar .mono { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.kit-bar .err { color: #A3342B; white-space: normal; }
.kit-bar-warn { font-size: 12px; color: var(--warn-text); }
.track { height: 6px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.fill { display: block; height: 6px; border-radius: 999px; background: var(--teal); }
.kit-note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.kit-note:empty { display: none; }
.panel .btn-primary { margin-top: auto; }

.code-panel { background: var(--ink); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--on-teal); }
.code-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; color: #BCD9DF; }
.btn-outline-light { min-height: 36px; padding: 0 14px; font-size: 13px; border: 1px solid var(--teal-nav); background: transparent; color: var(--on-teal); }
.code { margin: 0; overflow-x: auto; font-family: var(--mono); font-size: 12px; line-height: 1.7; white-space: pre; max-height: 360px; }
.code-sub { border-top: 1px solid #1E3C43; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; font-family: var(--mono); font-size: 11px; color: #BCD9DF; }
.preview-panel { border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kit-preview { display: flex; flex-direction: column; gap: 2px; }
.preview-line { margin: 8px 0 0; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; overflow-wrap: anywhere; }
.preview-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* ---- Ads (render only once SITE.adsenseClient is set) ----------------- */

.ad { max-width: 970px; margin: 56px auto 0; padding-inline: var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-label { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ad-box { width: 100%; min-height: 120px; }

/* ---- Content ----------------------------------------------------------- */

.prose { padding-top: 64px; font-size: 16px; line-height: 1.7; }
.prose h2 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; }
.prose p { margin: 0 0 14px; color: var(--muted-2); }
.prose a { text-decoration: underline; color: var(--teal); }

.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; color: var(--muted-2); }
.prose li { margin-bottom: 6px; }
.prose h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.2; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.prose pre { margin: 0 0 14px; padding: 14px 16px; overflow-x: auto; background: var(--ink); color: var(--on-teal); border-radius: 14px; font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

/* Article pages: one narrow column of sections. */
.article { max-width: 820px; margin-inline: auto; padding: 64px var(--gutter) 0; display: flex; flex-direction: column; gap: 48px; }
.article > section { display: flex; flex-direction: column; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-bottom: 14px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.fact p { margin: 0; font-size: 14px; line-height: 1.6; }

.rows { border-top: 1px solid var(--line); margin-bottom: 14px; }
.rows > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows dt { flex: 0 0 220px; font-weight: 600; }
.rows dd { flex: 1 1 300px; margin: 0; font-size: 15px; color: var(--muted-2); }

.callout { margin: 0 0 14px; padding: 14px 16px; border-radius: 14px; background: var(--tint); color: var(--muted-2); font-size: 15px; }
.callout-warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-text); }
.callout-warn strong { color: var(--warn-strong); }
.prose .callout-warn a { color: var(--warn-strong); }

.table-wrap { overflow-x: auto; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.data { width: 100%; border-collapse: collapse; font-size: 14px; }
.data th, .data td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data th { font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; color: var(--muted); }
.data td.num { font-family: var(--mono); font-size: 13px; text-align: right; }
.data tr:last-child td { border-bottom: 0; }

.article .bezier { margin-bottom: 14px; }

.byline { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted-2); }
.byline-mark { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--teal); display: flex; align-items: center; justify-content: center; font-weight: 600; }

.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.link-card { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; text-decoration: none !important; }
.link-card-title { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 24px); color: var(--ink); }
.link-card-text { font-size: 14px; color: var(--muted); }
.link-card.is-dark { background: var(--ink); border-color: var(--ink); }
.link-card.is-dark .link-card-title { color: #FFFFFF; }
.link-card.is-dark .link-card-text { color: #BCD9DF; }
.link-card:hover { border-color: var(--teal); }

.faq { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.faq-item summary { font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-answer { margin-top: 8px; font-size: 15px; color: var(--muted-2); }

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

.site-footer {
  margin-top: 64px;
  padding-block: 24px 36px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.maker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.maker-logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 12px; color: var(--muted); }
.maker-logo img { height: 28px; width: auto; }
.maker-url { font-family: var(--mono); font-size: 12px; color: var(--teal); text-decoration: underline; }
.legal { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.legal a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---- Phones ----------------------------------------------------------- */

@media (max-width: 720px) {
  :root { --gutter: 14px; }
  .nav { display: none; }
  .menu { display: block; }
  .pills { display: none; }
  .hero { padding-top: 8px; padding-bottom: 76px; gap: 12px; }
  .hero-split .bezier { display: none; }
  .tool-wrap { margin-top: -60px; }
  .tool { padding: 12px; border-radius: 20px; gap: 12px; }
  .drop { padding: 18px 14px; border-radius: 14px; }
  .file { padding: 10px 12px; gap: 10px; }
  .badge { width: 40px; height: 40px; border-radius: 10px; font-size: 10px; }
  .file-main { flex: 1 1 0; }
  .remove { order: 1; }
  .file-side { order: 2; flex-basis: 100%; justify-content: flex-start; }
  .report, .license { order: 3; }
  .report { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar { flex: 1 1 80px; }
  .prose { padding-top: 40px; }
  .article { padding-top: 40px; gap: 36px; }
  .rows dt { flex-basis: 100%; }
  .kit { padding: 12px; }
  .panel { padding: 14px; }
  .two { grid-template-columns: 1fr; }
}
