/* Layout: one centred column (max 1120px) — hero + uploader card first, dense link grids below. */
:root {
  --bg: #ffffff;
  --surface: #f4f7f6;
  --raised: #ffffff;
  --ink: #0f1f1a;
  --muted: #586863;
  --line: #e1e8e5;
  --accent: #0a8a62;
  --accent-ink: #087150;
  --accent-soft: #e3f4ed;
  --on-accent: #ffffff;
  --bad: #b42330;
  --bad-soft: #fcecec;
  --warn: #8a5a00;
  --shadow: 0 1px 2px rgba(15, 31, 26, .06), 0 8px 28px rgba(15, 31, 26, .07);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0f1513; --surface: #151e1b; --raised: #19231f; --ink: #e6eeea; --muted: #9babA5; --line: #26332f;
  --accent: #2fc290; --accent-ink: #55d6aa; --accent-soft: #12342a; --on-accent: #04170f; --bad: #f2838b; --bad-soft: #3a1c1f; --warn: #e5b04e;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0f1513; --surface: #151e1b; --raised: #19231f; --ink: #e6eeea; --muted: #9babA5; --line: #26332f;
  --accent: #2fc290; --accent-ink: #55d6aa; --accent-soft: #12342a; --on-accent: #04170f; --bad: #f2838b; --bad-soft: #3a1c1f; --warn: #e5b04e;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); font-weight: 800; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
pre { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: .86rem; line-height: 1.55; margin: 0; }
pre code { background: none; padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.muted { color: var(--muted); }
.soft { color: var(--muted); font-weight: 600; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.section { padding-block: 34px; display: grid; gap: 18px; }
.section > * { min-width: 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 40px; }
.two > div { display: grid; gap: 12px; align-content: start; min-width: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.bar { max-width: 1120px; margin: 0 auto; height: 60px; display: flex; align-items: center; gap: 16px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: -0.02em; }
.brand .mark { width: 30px; height: 30px; color: var(--accent); flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .menu > summary { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; cursor: pointer; list-style: none; }
.nav > a:hover, .menu > summary:hover, .menu[open] > summary { background: var(--surface); }
.menu { position: relative; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); margin-left: 8px; opacity: .6; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(560px, 92vw); background: var(--raised); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu-panel a { display: grid; gap: 1px; padding: 9px 11px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.menu-panel a:hover { background: var(--surface); }
.menu-panel b { font-weight: 700; font-size: .95rem; }
.menu-panel span { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.theme { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.theme svg { width: 17px; height: 17px; }
@media (max-width: 720px) {
  .bar { gap: 8px; }
  .nav > a[href="/developers/"] { display: none; }
  .nav > a, .menu > summary { padding: 8px 8px; font-size: .9rem; }
  .menu { position: static; }
  .menu-panel { left: 12px; right: 12px; width: auto; grid-template-columns: 1fr; max-height: 70vh; overflow: auto; }
}
@media (max-width: 420px) { .brand span { display: none; } }

/* hero */
.hero { padding-block: 44px 20px; display: grid; gap: 18px; }
.hero > * { min-width: 0; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* uploader */
.uploader { background: var(--raised); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 14px; display: grid; gap: 12px; max-width: 860px; }
.drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 34px 16px; border: 2px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 14px; background: var(--accent-soft); cursor: pointer; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.drop:hover, .drop.over { border-color: var(--accent); transform: translateY(-1px); }
.drop.over { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 12%); }
.drop-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.drop-icon svg { width: 26px; height: 26px; }
.drop-title { font: 800 1.25rem/1.2 var(--display); color: var(--ink); }
.drop-sub { color: var(--muted); font-size: .92rem; }
.url-row { display: flex; gap: 8px; }
.url-row input { flex: 1; min-width: 0; }
input[type="url"], input[type="email"], input[type="text"], input[type="number"], select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-height: 42px; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.btn { font: 700 .98rem/1 var(--body); border-radius: 11px; padding: 0 18px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .12s ease, background-color .15s ease; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 2px 8px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.queue:empty { display: none; }
.item { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; background: var(--bg); }
.item-top { display: flex; align-items: center; gap: 10px; }
.item-row2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { font: 700 .72rem/1 var(--mono); letter-spacing: .04em; padding: 6px 7px; border-radius: 7px; background: var(--surface); color: var(--muted); text-transform: uppercase; flex: none; }
.item-name { flex: 1 1 0; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-size { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; }
.item-to { display: flex; align-items: center; gap: 8px; }
.item-to select { min-height: 38px; padding: 6px 10px; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { color: var(--ink); background: var(--surface); }
.icon-btn svg { width: 16px; height: 16px; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .86rem; color: var(--muted); }
.where { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.where::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.where.server::before { background: var(--warn); }
.bar-track { height: 6px; border-radius: 6px; background: var(--surface); overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--accent); border-radius: 6px; transition: width .3s ease; }
.bar-fill.indet { width: 35%; animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.item-result { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg { font-size: .9rem; border-radius: 9px; padding: 8px 10px; }
.msg.bad { background: var(--bad-soft); color: var(--bad); }
.msg.note { background: var(--accent-soft); color: var(--ink); }
.opts { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; font-size: .9rem; }
.opts label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.opts input[type="number"], .opts input[type="text"] { width: 110px; min-height: 36px; padding: 6px 10px; }
.opts select { min-height: 36px; padding: 6px 10px; }
.preview { max-height: 120px; max-width: 200px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); }
.queue-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.limits-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .86rem; color: var(--muted); }
.limits-line .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tool-opts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 4px 2px; font-size: .92rem; }
.tool-opts label { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }

/* promises band */
.band { padding-block: 10px 6px; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.promises li { padding: 16px 18px; border-radius: var(--r); background: var(--surface); color: var(--muted); font-size: .95rem; }
.promises b { display: block; color: var(--ink); font: 800 1.05rem/1.3 var(--display); margin-bottom: 4px; }

/* link grids */
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.link-grid a { display: block; padding: 8px 11px; border-radius: 9px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.link-grid a:hover { background: var(--accent-soft); color: var(--accent-ink); }
.link-grid.cols { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.link-grid .muted { font-weight: 400; }
.cat-grid, .tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cat, .tool { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.cat:hover, .tool:hover { border-color: var(--accent); transform: translateY(-1px); }
.cat b, .tool b { font: 800 1.05rem/1.25 var(--display); }
.cat span, .tool span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.cat em { font-style: normal; font: 700 .75rem/1 var(--mono); color: var(--accent-ink); margin-top: 6px; }
.fmt-block { display: grid; gap: 10px; padding-bottom: 18px; }
.fmt-block h2 { font-size: 1.2rem; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.fmt-block h2 a { color: var(--ink); text-decoration: none; }
.fmt-block h2 .muted { font: 400 .95rem var(--body); }

/* pair page */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 45%), 1fr)); gap: 10px; margin: 0; }
.facts div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font: 700 .72rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.prose { max-width: 760px; }
.prose p, .prose li { color: var(--ink); }
.prose h2 { margin-top: 12px; }
.steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.kv { margin: 0; display: grid; gap: 8px; }
.kv div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; }
.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin-top: 8px; color: var(--muted); }
.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
thead th { font: 700 .74rem/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
tbody th { font-weight: 600; width: 34%; }
tr:last-child > * { border-bottom: 0; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.plan.featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan .price { font: 800 1.9rem/1 var(--display); }
.plan ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--muted); }
.notify { display: grid; gap: 8px; }
.notify label { font-weight: 600; font-size: .92rem; }
.notify .row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify input { flex: 1 1 180px; }
.form-msg { font-size: .9rem; color: var(--accent-ink); }

/* footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding-block: 36px 20px; }
.footer-grid > div { display: grid; gap: 7px; align-content: start; min-width: 0; }
.footer-grid h2 { font: 700 .76rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-grid a { color: var(--ink); text-decoration: none; font-size: .93rem; }
.footer-grid a:hover { color: var(--accent-ink); }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 34ch; }
.fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 14px 24px; font-size: .84rem; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
