/* Clipunder — single-page video compressor for Discord.

   Design system
   -------------
   paper   #fbfaf7   warm white, not #fff (a page that is read, not a spreadsheet)
   ink     #0c0e12   one dark, used for text, selected chips and the primary button
   accent  #0a6b4d   one green: progress, result, success. never decorative
   type    system sans for voice, ui-monospace for anything numeric
   grid    8px rhythm; hairline rules (#e7e4dd) instead of boxes where possible
   motion  140–420ms, state only; every transition dies under reduced-motion */

:root {
  --ink: #0c0e12;
  --ink-2: #3f4552;
  --ink-3: #767c88;
  --line: #e7e4dd;
  --line-2: #d3cfc6;
  --paper: #fbfaf7;
  --card: #ffffff;
  --surface: #f5f3ee;
  --accent: #0a6b4d;
  --accent-2: #0d8a63;
  --accent-ink: #07553d;
  --accent-soft: #eaf4ef;
  --warn: #a8402a;
  --warn-soft: #fbf0ec;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 0 rgba(12, 14, 18, .04), 0 18px 48px -34px rgba(12, 14, 18, .45);
  --sans: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .68, .24, 1);
}

* { box-sizing: border-box; }

/* the [hidden] attribute must beat every display rule in this sheet */
[hidden] { display: none !important; }

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

/* a 1.8% grain keeps the warm white from looking like an empty div */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='.055'/></svg>");
}
.topbar, main, .foot { position: relative; z-index: 1; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}

h1, h2, h3, p, ul, ol, table { margin: 0; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 40px);
}

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

/* micro-caps: the one label style used everywhere */
.micro {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* numbers always line up */
.num, .budget__value, .result__text, .filecard__meta, .progress__sub,
.progress__pct, .size__mb, .tbl td:nth-child(2) {
  font-variant-numeric: tabular-nums;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -.015em;
  font-size: 15px;
}

.brand__mark {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
}
.brand__mark::after {
  content: "";
  position: absolute;
  left: 5px; right: 5px; top: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--paper);
}

.topbar__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- hero ---------- */

.hero {
  padding: clamp(26px, 4.2vw, 56px) 0 clamp(18px, 2.4vw, 26px);
  max-width: 900px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(12px, 1.6vw, 18px);
}
.hero__eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

h1 {
  font-size: clamp(2.125rem, 4.9vw, 3.5rem);
  line-height: 1.0;
  letter-spacing: -.038em;
  font-weight: 600;
  text-wrap: balance;
}

.lede {
  margin-top: clamp(12px, 1.5vw, 16px);
  font-size: clamp(1rem, 1.35vw, 1.0938rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 58ch;
  letter-spacing: -.005em;
}

.facts {
  margin: clamp(14px, 1.9vw, 20px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.facts li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.facts li::before {
  content: "✓";
  font-size: 10px;
  line-height: 1;
  color: var(--accent);
  font-family: var(--sans);
}

/* ---------- tool card ---------- */

.tool {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
  padding: clamp(16px, 2.2vw, 26px);
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.step { display: grid; gap: 12px; }

.step__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.step__num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--accent);
  padding-top: 1px;
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

/* ---------- dropzone ---------- */

.drop {
  border: 1px solid var(--line-2);
  border-radius: calc(var(--radius) - 4px);
  padding: clamp(18px, 2.6vw, 28px) 20px;
  text-align: center;
  cursor: pointer;
  background: var(--paper);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.drop:hover { border-color: var(--ink-3); background: var(--surface); }
.drop:hover .drop__icon { transform: translateY(-2px); }
.drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-color: var(--accent); }
.drop.is-over {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-soft);
}

.drop__icon {
  width: 42px; height: 42px;
  padding: 10px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 13px;
  margin: 0 auto 10px;
  display: block;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.drop.is-over .drop__icon { transform: translateY(-3px); background: #dcefe6; }

.drop__main {
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -.015em;
}
.drop.is-over .drop__main { color: var(--accent-ink); }

.drop__sub { margin-top: 3px; color: var(--ink-3); font-size: .9375rem; }
.drop__link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

.drop__paste {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.drop__paste kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink-2);
  background: var(--card);
}

.drop__hint {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- selected file ---------- */

.filecard {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.filecard__body { min-width: 0; flex: 1; }

.filecard__name {
  font-weight: 600;
  font-size: .9375rem;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filecard__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.ghostbtn {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .14s var(--ease), color .14s var(--ease);
  white-space: nowrap;
}
.ghostbtn:hover { border-color: var(--ink-3); color: var(--ink); }
.ghostbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.alert {
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.5;
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid rgba(168, 64, 42, .18);
}

/* ---------- size chips ---------- */

.sizes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.size {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 11px 12px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--card);
  transition: border-color .16s var(--ease), background-color .16s var(--ease),
              color .16s var(--ease), transform .16s var(--ease);
  text-align: left;
}

.size:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.size input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

.size__mb {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.size__tier {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.size:has(input:checked) {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.size:has(input:checked) .size__tier { color: rgba(255, 255, 255, .86); }
.size:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.size--custom .size__mb {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  border-bottom: 1.5px solid var(--line-2);
  padding-bottom: 3px;
  transition: border-color .16s var(--ease);
}
.size--custom:has(.size__input:focus) .size__mb { border-bottom-color: var(--accent); }
.size--custom:has(input:checked) .size__mb { border-bottom-color: rgba(255, 255, 255, .28); }

.size__input {
  width: 100%;
  min-width: 2ch;
  max-width: 5.5ch;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 0;
  font-variant-numeric: tabular-nums;
  appearance: textfield;
  -moz-appearance: textfield;
}
.size__input::-webkit-outer-spin-button,
.size__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size__input::placeholder { color: var(--ink-3); font-weight: 500; font-size: .9375rem; letter-spacing: -.01em; }
.size__input:focus { outline: none; }
.size:has(.size__input:focus) { border-color: var(--accent); }

.size__unit { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; opacity: .65; flex: 0 0 auto; }

/* ---------- budget ruler (the signature) ---------- */

.budget {
  display: grid;
  gap: 8px;
  padding-top: 6px;
}

.budget__row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 14px;
}

.budget__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.budget__bar {
  position: relative;
  height: 12px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 24px),
    var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: block;
}

.budget__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .42s var(--ease);
}
.budget__fill--src {
  background:
    repeating-linear-gradient(135deg, rgba(12, 14, 18, .18) 0 1px, transparent 1px 4px),
    var(--line-2);
}
.budget__fill--target {
  background: repeating-linear-gradient(45deg, rgba(12, 14, 18, .42) 0 2px, rgba(12, 14, 18, 0) 2px 5px);
  border-right: 2px solid var(--ink);
  border-radius: 2px 0 0 2px;
}
.budget__fill--ok { background: var(--accent); }

.budget__value {
  font-family: var(--mono);
  font-size: 12px;
  text-align: right;
  color: var(--ink-2);
  letter-spacing: -.01em;
}

.budget__plan {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.55;
}
.budget__plan strong { color: var(--ink-2); font-weight: 600; font-family: var(--mono); font-size: 12px; }

.budget__axis {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .07em;
  color: var(--ink-3);
  opacity: .85;
  margin-top: 2px;
}

/* ---------- go ---------- */

.step--go {
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: clamp(16px, 2.4vw, 24px);
}

.primary {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background-color .16s var(--ease), transform .16s var(--ease), opacity .16s var(--ease);
}
.primary:not(:disabled) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.primary:hover:not(:disabled) { background: #191d25; }
.primary:active:not(:disabled) { transform: translateY(1px); }
.primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary:disabled {
  background: var(--surface);
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: not-allowed;
}

.go__note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--ink-3);
  text-align: center;
}

/* ---------- progress ---------- */

.progress {
  border-top: 1px solid var(--line);
  padding-top: clamp(16px, 2.4vw, 24px);
  gap: 10px;
}

.progress__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.progress__label { font-size: .9375rem; font-weight: 600; }

.progress__right {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.cancel {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  transform: translateY(-1px);
  transition: border-color .14s var(--ease), color .14s var(--ease);
}
.cancel:hover { border-color: var(--ink-3); color: var(--ink); }
.cancel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cancel:disabled { opacity: .4; cursor: default; }

.progress__pct {
  font-family: var(--mono);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--accent-ink);
}

.progress__track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-ink), var(--accent-2));
  border-radius: 999px;
  transition: width .2s linear;
}

.progress__sub {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  min-height: 20px;
  letter-spacing: .01em;
}

/* ---------- result ---------- */

.result {
  scroll-margin-top: 84px;
  border-top: 1px solid var(--line);
  padding-top: clamp(16px, 2.4vw, 24px);
  gap: 12px;
  animation: rise .24s var(--ease) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.result__summary {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.result__lead {
  font-size: clamp(1.75rem, 3.4vw, 2.375rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}

.result__text {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: .01em;
}
.result__text .num { color: var(--ink); font-weight: 600; }

.result__meta {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
  margin-top: -4px;
}

.result__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: background-color .16s var(--ease), transform .16s var(--ease);
}
.download:hover { background: var(--accent-ink); }
.download:active { transform: translateY(1px); }
.download:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.again {
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 0 18px;
  min-height: 50px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .14s var(--ease), color .14s var(--ease);
}
.again:hover { border-color: var(--ink-3); color: var(--ink); }
.again:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- long-form copy, label rail + content ---------- */

.copy {
  padding: clamp(56px, 9vw, 120px) 0 0;
  display: grid;
  gap: 0;
}

.sec {
  display: grid;
  grid-template-columns: minmax(140px, 210px) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--line);
  counter-increment: sec;
}
.copy { counter-reset: sec; }

.sec__label {
  display: grid;
  gap: 8px;
  padding-top: 3px;
  align-content: start;
  position: sticky;
  top: 84px;
}

.sec__index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  color: var(--accent);
}

.sec h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.25;
  text-wrap: balance;
}

.sec__body { min-width: 0; }

.sec p {
  color: var(--ink-2);
  line-height: 1.68;
  max-width: 66ch;
}
.sec p + p { margin-top: 14px; }
.sec .steps + p, .sec .tbl + p, .sec ol + p { margin-top: 18px; }

.sec .fine {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-top: 14px;
}

.tbl {
  width: 100%;
  margin-top: 4px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.tbl th,
.tbl td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.tbl th {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  border-bottom-color: var(--line-2);
  padding-bottom: 9px;
}

.tbl td:first-child { font-weight: 600; white-space: nowrap; }
.tbl tbody tr:hover { background: var(--surface); }

.ok, .no {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  font-weight: 600;
}
.ok { color: var(--accent-ink); }
.no { color: var(--warn); }

.steps {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
  display: grid;
  gap: 12px;
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  color: var(--ink-2);
  line-height: 1.6;
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 5px;
  width: 24px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(2px);
}

.faq {
  border-bottom: 1px solid var(--line);
}
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .9688rem;
  padding: 15px 0;
  letter-spacing: -.01em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  transition: color .14s var(--ease);
}
.faq summary:hover { color: var(--accent-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--ink-3);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1;
  transition: transform .18s var(--ease);
}
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; font-size: .9375rem; }

.src { margin: 4px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 8px; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 7vw, 88px);
  padding: clamp(28px, 4vw, 44px) 0 48px;
}

.foot__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.foot__word {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: .9;
  color: var(--ink);
  opacity: .1;
  user-select: none;
}

.foot__note { font-size: 13px; color: var(--ink-3); max-width: 40ch; }
.foot__small {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: .9;
}

.doc__table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 18px;
  font-size: .875rem;
}
.doc__table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--line-2);
}
.doc__table td {
  padding: 9px 12px 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.doc__table td:first-child { color: var(--ink); }
.doc__table tr:last-child td { border-bottom: none; }
/* benchmark table: numbers must not wrap, and must line up */
.doc__table--runs { font-variant-numeric: tabular-nums; }
.doc__table--runs td:nth-child(2),
.doc__table--runs td:nth-child(3),
.doc__table--runs td:nth-child(4),
.doc__table--runs td:nth-child(5),
.doc__table--runs th:nth-child(2),
.doc__table--runs th:nth-child(3),
.doc__table--runs th:nth-child(4),
.doc__table--runs th:nth-child(5) { white-space: nowrap; }
.doc__table--runs td:first-child { min-width: 14ch; }
@media (max-width: 640px) {
  .doc__table { font-size: .8125rem; }
  .doc__table th, .doc__table td { padding-right: 8px; }
}

/* ---------- static pages (about / privacy / contact) ---------- */

.doc {
  max-width: 66ch;
  padding: clamp(40px, 6vw, 68px) 0 0;
}
.doc h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 6px 0 0;
}
.doc .lede { margin-top: 16px; }
.doc h2 {
  font-size: .8125rem;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 40px 0 10px;
}
.doc p { color: var(--ink-2); line-height: 1.72; margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 10px; }
.doc li { color: var(--ink-2); line-height: 1.7; }
.doc a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid var(--accent-soft); }
.doc a:hover { border-bottom-color: var(--accent); }
.doc code { font-family: var(--mono); font-size: .875em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.doc__address { font-size: clamp(1.25rem, 3vw, 1.75rem); letter-spacing: -.02em; margin: 22px 0 0 !important; }
.doc__address a { border-bottom: 2px solid var(--accent-soft); }
.doc .fine { margin-top: 44px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  font-size: 13px;
}
.foot__nav a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 1px;
}
.foot__nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- responsive ---------- */

/* short viewports (13" laptops): keep the whole tool above the fold by tightening
   the hero instead of hiding anything */
@media (max-height: 820px) and (min-width: 761px) {
  .hero { padding-top: 26px; padding-bottom: 14px; }
  .hero__eyebrow { margin-bottom: 10px; }
  h1 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
  .lede { font-size: 1rem; margin-top: 10px; line-height: 1.45; }
  .facts { margin-top: 12px; }
  .tool { padding: 18px; gap: 14px; }
  .drop { padding: 16px; }
  .drop__icon { width: 34px; height: 34px; padding: 7px; margin-bottom: 8px; }
  .drop__paste { display: none; }
  .step--go { padding-top: 12px; }
  .primary { min-height: 48px; }
}

@media (max-width: 900px) {
  .sec { grid-template-columns: 1fr; gap: 14px; }
  .sec__label { position: static; display: flex; align-items: baseline; gap: 12px; }
  .sec__label h2 { font-size: 1.0625rem; }
}

@media (max-width: 760px) {
  .sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .budget__row { grid-template-columns: 62px minmax(0, 1fr) 82px; gap: 10px; }
  .result__actions { flex-direction: column; align-items: stretch; }
  .download, .again { width: 100%; }
}

@media (hover: none) {
  .drop__paste { display: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: 30px; }
  .tool { padding: 16px; gap: 16px; }
  .drop { padding: 22px 14px; }
  .drop__paste {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.drop__paste kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--ink-2);
  background: var(--card);
}

.drop__hint { margin-top: 14px; }
  .sizes { gap: 8px; }
  .size { padding: 11px 11px 10px; }
}

@media (max-width: 420px) {
  .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar__note { font-size: 10px; letter-spacing: .08em; }
  .filecard { align-items: flex-start; }
  .tbl { font-size: 13.5px; }
  .tbl th, .tbl td { padding: 9px 8px; }
  .tbl td:first-child { white-space: normal; }
}

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