@font-face {
  font-family: 'Bricolage';
  src: url(/bricolage.woff2) format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --night: #12112B;
  --panel: #1C1A3F;
  --panel-hi: #24214F;
  --volt: #8B7BFF;
  --volt-deep: #6650F0;
  --link: #A99CFF;
  --amber: #FFB547;
  --mist: #B9B8E3;
  --paper: #F4F3FF;
  --danger: #FF8A95;
  --line: rgba(185, 184, 227, 0.18);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Bricolage', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--night);
  color: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Compression field: faint horizontal lines, strongest where the action is. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, transparent 0 22px, rgba(139, 123, 255, 0.07) 22px 23px);
  -webkit-mask: radial-gradient(120% 60% at 70% 55%, #000 10%, transparent 70%);
  mask: radial-gradient(120% 60% at 70% 55%, #000 10%, transparent 70%);
}

a { color: var(--link); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

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

/* ---------- header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 2rem;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--paper);
}
.logo .so { font-weight: 300; font-stretch: 100%; letter-spacing: 0.04em; color: var(--mist); }
.logo .dot { color: var(--amber); }

nav { display: flex; align-items: center; gap: 1.4rem; min-height: 2.4rem; }
nav a { color: var(--mist); text-decoration: none; }
nav a:hover { color: var(--paper); }
nav .email { color: var(--mist); opacity: 0.75; }
.btn-small {
  background: var(--paper);
  color: var(--night) !important;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- layout ---------- */

main { max-width: 1120px; margin: 0 auto; padding: 2rem 2rem 4rem; }
main.narrow { max-width: 460px; padding-top: 3rem; }

h1 { font-weight: 800; font-stretch: 75%; letter-spacing: -0.02em; line-height: 0.95; }

/* ---------- buttons & forms ---------- */

label { display: block; font-weight: 600; font-size: 0.95rem; margin: 1rem 0 0.35rem; color: var(--mist); }

input[type="url"], input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
}
input:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 4px rgba(139, 123, 255, 0.2); }

button[type="submit"] {
  margin-top: 1.4rem;
  width: 100%;
  padding: 0.85rem;
  background: var(--volt-deep);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
button[type="submit"]:hover { background: #5940E6; }
button[type="submit"]:active { transform: scale(0.97); }
button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }

.btn-amber {
  display: inline-block;
  text-decoration: none;
  background: var(--amber);
  color: var(--night);
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s;
}
.btn-amber:active { transform: scale(0.96); }

.linklike {
  background: none;
  border: none;
  color: var(--link);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  padding: 0.2rem 0;
}
.linklike:hover { color: var(--paper); text-decoration: underline; }
.linklike.danger { color: var(--danger); }
a.linklike.pro-only { color: var(--amber); text-decoration: none; }
a.linklike.pro-only:hover { text-decoration: underline; }

.muted { color: var(--mist); }
.error { color: var(--danger); margin: 0.9rem 0 0; }

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

.hero { padding-top: 3.5rem; }

.squeeze-title {
  font-size: clamp(3.4rem, 10vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  margin: 0 0 1.6rem;
}
.squeeze-title span { display: block; }
.squeeze-title span:first-child {
  font-stretch: 100%;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--mist);
  animation: track-in 1.1s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.squeeze-title span:last-child {
  animation: crush 0.9s 0.2s cubic-bezier(0.3, 1.3, 0.4, 1) both;
}
@keyframes track-in { from { letter-spacing: 0.5em; } }
@keyframes crush { from { font-stretch: 100%; letter-spacing: 0.1em; } }

.sub { color: var(--mist); font-size: 1.15rem; max-width: 36ch; margin: 0 0 2.6rem; }

.bar {
  display: flex;
  align-items: center;
  max-width: 820px;
  padding: 0.45rem 0.45rem 0.45rem 1.5rem;
  background: var(--panel);
  border: 1px solid rgba(139, 123, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(139, 123, 255, 0.08), 0 30px 60px -30px rgba(139, 123, 255, 0.6);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bar:focus-within {
  border-color: var(--volt);
  box-shadow: 0 0 0 6px rgba(139, 123, 255, 0.18), 0 30px 70px -25px rgba(139, 123, 255, 0.8);
}
.bar input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--paper);
  font: inherit;
  font-size: 1.1rem;
  outline: none;
}
.bar input::placeholder { color: var(--mist); opacity: 0.6; }
.bar button { margin: 0; width: auto; padding: 0.9rem 1.8rem; border-radius: 999px; }

.alias-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.4rem;
  margin: 1rem 0 0 1.5rem;
  color: var(--mist);
  font-size: 0.95rem;
}
.alias-row label { font-weight: 400; margin: 0 0.4rem 0 0; font-size: inherit; }
.alias-row input {
  flex: 1;
  min-width: 6rem;
  max-width: 12rem;
  padding: 0 0.2rem;
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--mist);
  border-radius: 0;
  color: var(--paper);
  font: inherit;
}
.alias-row input:focus { outline: none; border-bottom: 1px solid var(--amber); }

/* result: the long URL gets crushed, the short one pops out */
.result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.4rem 2rem;
  max-width: 820px;
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.result .squeezed {
  grid-column: 1 / -1;
  overflow: hidden;
  white-space: nowrap;
  color: var(--mist);
  font-size: 0.95rem;
  transform-origin: left;
  transform: scaleX(0.5);
  letter-spacing: -0.08em;
  opacity: 0.45;
}
.result .code {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.result .code b { color: var(--amber); font-weight: 800; }
.result .code:hover b { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.result .meta { grid-column: 1 / -1; margin: 0; color: var(--mist); }
.result { position: relative; }
.result .count { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 0.6rem; margin: 0.3rem 0 0; color: var(--mist); }
.result .count s { opacity: 0.6; }
.result .count strong { font-size: 1.9rem; font-weight: 800; font-stretch: 75%; color: var(--paper); font-variant-numeric: tabular-nums; }

/* the "wow" stamp slams in once the count has landed */
.stamp {
  position: absolute;
  right: -1.5rem;
  top: -2.6rem;
  margin: 0;
  padding: 0.35rem 0.9rem;
  background: var(--night);
  border: 3px solid var(--amber);
  border-radius: 14px;
  color: var(--amber);
  font-size: 1.6rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1.05;
  text-align: center;
  transform: rotate(-8deg);
  box-shadow: 0 0 30px rgba(255, 181, 71, 0.25);
}
.stamp small { display: block; font-size: 0.95rem; font-weight: 600; font-stretch: 100%; }
.result.play .stamp { animation: slam 0.45s 1s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes slam { from { opacity: 0; transform: rotate(-8deg) scale(2.4); } }
.result.play .squeezed { animation: squeeze 0.6s cubic-bezier(0.7, 0, 0.3, 1) both; }
.result.play .code { animation: pop 0.6s 0.35s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes squeeze { from { transform: scaleX(1); letter-spacing: 0; opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: translateY(0.25em) scaleX(1.3); transform-origin: left; }
  to { transform-origin: left; }
}

/* ---------- login ---------- */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 30px 60px -30px rgba(139, 123, 255, 0.45);
}
.panel h1 { font-size: 3rem; margin: 0 0 1.4rem; }

.tabs { display: flex; padding: 4px; margin-bottom: 0.4rem; background: var(--night); border-radius: 999px; }
.tab {
  flex: 1;
  padding: 0.55rem;
  background: none;
  border: 0;
  border-radius: 999px;
  color: var(--mist);
  font: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab.active { background: var(--panel-hi); color: var(--paper); font-weight: 600; }
.hint { font-size: 0.88rem; margin: 0.4rem 0 0; }
.signup-sent p:first-child { font-size: 1.15rem; color: var(--paper); }
.signup-sent .dev-link { display: inline-block; margin-top: 0.4rem; }

textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--paper);
  font: inherit;
  resize: vertical;
}
textarea:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 4px rgba(139, 123, 255, 0.2); }
.reasons { border: 0; padding: 0; margin: 1rem 0 0; }
.reasons legend { font-weight: 600; font-size: 0.95rem; color: var(--mist); margin-bottom: 0.4rem; }
.reasons label { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; color: var(--paper); margin: 0.45rem 0; }
.reasons input { margin-top: 0.3rem; accent-color: var(--amber); }
.panel > p.muted { margin-top: -0.6rem; } /* intro line under a panel heading only, not hints inside forms */
.done { font-size: 1.15rem; color: var(--paper); }
.report-alt { margin: 1.2rem 0 0; font-size: 0.92rem; }

/* ---------- dashboard ---------- */

.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: 1rem 0 2rem; }
.dash-head h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); margin: 0; }
.dash-head .count { display: block; font-size: 1rem; font-weight: 400; font-stretch: 100%; letter-spacing: 0; color: var(--mist); margin-top: 0.5rem; }

.dash-tools { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.range { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-weight: 400; color: var(--mist); }
.range select {
  padding: 0.55rem 0.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper);
  font: inherit;
}
.upsell { margin: 1.2rem 0 0; color: var(--mist); }
.hours-title { margin: 1.4rem 0 0.5rem; font-size: 0.95rem; font-weight: 600; color: var(--mist); }
tr.detail [data-action="csv"] { margin-top: 0.8rem; }
.badge.pro { border-color: var(--amber); color: var(--amber); margin-left: 0; }

.empty { padding: 3rem 0; }
.empty p { font-size: 1.3rem; color: var(--mist); margin: 0 0 1.4rem; }

.table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: middle; }
th { font-weight: 500; color: var(--mist); font-size: 0.85rem; }
tbody tr:last-child td { border-bottom: 0; }

td.short { white-space: nowrap; }
td.short a { font-weight: 800; font-stretch: 75%; font-size: 1.35rem; color: var(--paper); text-decoration: none; letter-spacing: -0.01em; }
td.short a b { color: var(--amber); font-weight: 800; }
td.short a:hover b { text-decoration: underline; }
td.short .linklike { margin-left: 0.6rem; }
td.target .target-text { display: inline-block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; color: var(--mist); }
td.clicks { font-weight: 800; font-stretch: 75%; font-size: 1.6rem; }
td.created { color: var(--mist); white-space: nowrap; }
td.actions { white-space: nowrap; text-align: right; }
td.actions .linklike { margin-left: 0.9rem; }

.badge.danger { border-color: var(--danger); color: var(--danger); margin-left: 0.9rem; }
.badge { display: inline-block; margin-left: 0.5rem; padding: 0.05rem 0.55rem; border: 1px solid var(--mist); border-radius: 999px; font-size: 0.75rem; color: var(--mist); vertical-align: middle; }
tr.disabled td.short a, tr.disabled td.target, tr.disabled td.clicks { opacity: 0.45; }
tr.disabled td.short a b { color: var(--mist); }

.edit-input { width: 60%; margin-right: 0.6rem; padding: 0.45rem 0.7rem !important; }
.target .linklike { margin-right: 0.6rem; }

tr.detail td { background: rgba(18, 17, 43, 0.5); padding: 1.4rem 1.1rem; }
.chart { width: 100%; max-width: 520px; height: auto; display: block; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.chart rect { fill: var(--amber); }
.stats-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.stats-cols h4 { margin: 0 0 0.5rem; font-size: 0.95rem; font-weight: 600; color: var(--mist); }
.stats-cols ul { list-style: none; margin: 0; padding: 0; min-width: 200px; }
.stats-cols li { display: flex; justify-content: space-between; gap: 1.5rem; padding: 0.2rem 0; border-bottom: 1px dashed var(--line); }

/* ---------- notice pages (404, blocked, preview) & footer ---------- */

.notice h1 { font-size: clamp(3.4rem, 12vw, 9rem); margin: 0 0 1rem; color: var(--amber); }
.notice p { font-size: 1.2rem; color: var(--mist); max-width: 40ch; }
.notice b { color: var(--paper); }
.notice .destination {
  max-width: 720px;
  padding: 1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.notice .actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }

.site-footer { max-width: 1120px; margin: 0 auto; padding: 2rem 2rem 2.5rem; font-size: 0.92rem; }
.site-footer a { color: var(--mist); }
.site-footer a:hover { color: var(--paper); }

/* ---------- pro ---------- */

.pro-page { max-width: 880px; padding-top: 3rem; }
.pro-title { font-size: clamp(3.4rem, 12vw, 8rem); margin: 0 0 1rem; color: var(--amber); }
.price { font-size: 1.6rem; font-weight: 800; font-stretch: 75%; margin: -1.4rem 0 2rem; }
.compare { margin-bottom: 3rem; }
.compare td:first-child { color: var(--paper); }
.compare td { color: var(--mist); }
.compare td:last-child { color: var(--amber); font-weight: 600; }

.pay h2 { font-size: 2.4rem; font-weight: 800; font-stretch: 75%; margin: 0 0 1rem; }
.pay h3 { font-size: 1.15rem; margin: 0 0 0.8rem; }
.pay-login-link { margin-left: 1rem; }
.pay-active { font-size: 1.15rem; color: var(--paper); padding: 1rem 1.2rem; border: 1px solid var(--amber); border-radius: 14px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps > li { counter-increment: step; position: relative; padding: 1.4rem 1.4rem 1.4rem 4rem; margin-bottom: 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.steps > li::before { content: counter(step); position: absolute; left: 1.4rem; top: 1.2rem; font-size: 1.8rem; font-weight: 800; font-stretch: 75%; color: var(--amber); }

.choice { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.8rem; }
.choice label { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--paper); font-weight: 500; cursor: pointer; }
.choice label:has(input:checked) { border-color: var(--amber); background: rgba(255, 181, 71, 0.08); }
.choice input { accent-color: var(--amber); }

.pay-details p { margin: 0.35rem 0; color: var(--mist); overflow-wrap: anywhere; }
.pay-details b, .ref b { color: var(--paper); }
.ref { margin: 1rem 0 0; color: var(--mist); }
.warn { margin: 0.8rem 0 0; color: var(--amber); font-size: 0.92rem; }
.exact { margin: 0 0 1rem; padding: 1rem 1.2rem; border: 1px solid var(--amber); border-radius: 14px; color: var(--mist); }
.code-digits { color: var(--amber); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.plans .save { margin-left: 0.3rem; padding: 0 0.45rem; border-radius: 999px; background: rgba(255, 181, 71, 0.15); color: var(--amber); font-size: 0.8rem; font-weight: 700; }
.exact-amount { font-size: 2rem; font-weight: 800; font-stretch: 75%; color: var(--paper); font-variant-numeric: tabular-nums; }

.history { list-style: none; padding: 0; margin: 0; }
.history li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.7rem 0; border-bottom: 1px dashed var(--line); color: var(--mist); }
.status { font-weight: 600; }
.status.pending { color: var(--amber); }
.status.approved { color: #7CE3A6; }
.status.rejected { color: var(--danger); }

/* ---------- admin ---------- */

main.admin h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); margin: 1rem 0 1.4rem; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.4rem; }
.admin-tabs button {
  padding: 0.5rem 1rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mist);
  font: inherit;
  cursor: pointer;
}
.admin-tabs button.active { background: var(--panel-hi); border-color: var(--volt); color: var(--paper); font-weight: 600; }
.count-pill:not(:empty) { margin-left: 0.3rem; padding: 0 0.45rem; border-radius: 999px; background: var(--amber); color: var(--night); font-size: 0.8rem; font-weight: 700; }
.flash { color: #7CE3A6; margin: 0 0 1rem; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0.8rem; }
.stat-card { display: block; padding: 1.1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--mist); }
.stat-card:hover { border-color: var(--volt); }
.stat-card b { display: block; font-size: 2.4rem; font-weight: 800; font-stretch: 75%; color: var(--paper); line-height: 1; margin-bottom: 0.3rem; }

main.admin table td { vertical-align: top; }
main.admin td:has(> .row-actions) { min-width: 12rem; }
.row-actions { margin-top: 0.4rem; }
.row-actions .linklike { margin: 0 0.8rem 0.2rem 0; font-size: 0.85rem; }
main.admin .target-text { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.mono-wrap { overflow-wrap: anywhere; max-width: 14rem; }
.admin-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.2rem; margin-bottom: 1.4rem; padding: 1rem 1.2rem; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.admin-inline .check { margin: 0; }
.admin-inline button[type="submit"] { width: auto; margin: 0; padding: 0.5rem 1.2rem; }
.admin-inline .muted { flex-basis: 100%; margin: 0; font-size: 0.9rem; }
.admin-search { display: flex; gap: 0.6rem; margin-bottom: 1rem; max-width: 560px; }
.admin-search input { flex: 1; }
.admin-search button[type="submit"] { width: auto; margin-top: 0; padding: 0.6rem 1.3rem; }
.admin-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; align-items: start; }
.admin-boxes .admin-add { max-width: none; margin-bottom: 0; }
.admin-add { max-width: 460px; margin-bottom: 2rem; padding: 1.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.admin-add h3 { margin: 0 0 0.4rem; }
main.admin h3 { margin: 2rem 0 0.8rem; }
.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; color: var(--paper); }
.check input { accent-color: var(--amber); }

main.dev { max-width: 1120px; }
main.dev h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); margin: 1rem 0 0.6rem; }
main.dev h2 { margin: 2.4rem 0 0.8rem; }
.dev-list li { margin: 0.4rem 0; color: var(--mist); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; color: var(--amber); }

/* ---------- legal pages ---------- */

main.legal { max-width: 720px; padding-top: 2.5rem; }
main.legal h1 { font-size: clamp(2.6rem, 7vw, 4rem); margin: 0 0 0.4rem; }
main.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
main.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; color: var(--mist); }
main.legal p, main.legal li { color: var(--paper); line-height: 1.65; }
main.legal ul { padding-left: 1.2rem; }
main.legal li { margin: 0.35rem 0; }
main.legal b { color: var(--amber); font-weight: 600; }
main.legal p.muted { color: var(--mist); }

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .site-header { padding: 1.1rem 1.2rem; }
  nav { gap: 1rem; }
  nav .email { display: none; }
  main { padding: 1.5rem 1.2rem 3rem; }
  .hero { padding-top: 1.5rem; }

  .bar { flex-direction: column; align-items: stretch; border-radius: 22px; padding: 1rem; }
  .bar button { margin-top: 0.8rem; }
  .alias-row { margin-left: 0.2rem; }
  .result { grid-template-columns: 1fr; }
  .result .btn-amber { justify-self: start; }
  .steps > li { padding: 1.2rem 1.1rem 1.2rem 3.2rem; }
  .steps > li::before { left: 1.1rem; }
  .stamp { position: static; grid-column: 1 / -1; justify-self: start; margin: 0.8rem 0 0.2rem 0.4rem; }

  /* dashboard rows become cards */
  #table-wrap { overflow: visible; } /* dashboard rows become cards; other tables scroll */
  #links-table thead { display: none; }
  #links-table tr[data-id] {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 1rem;
    padding: 1.1rem;
    border-bottom: 1px solid var(--line);
  }
  #links-table tr[data-id] td { padding: 0; border: 0; }
  #links-table td.target, #links-table td.created, #links-table td.actions { grid-column: 1 / -1; }
  #links-table td.target .target-text { max-width: 100%; }
  #links-table td.clicks { grid-row: 1; grid-column: 2; text-align: right; }
  #links-table td.clicks::after { content: " clicks"; font-size: 0.85rem; font-weight: 400; font-stretch: 100%; color: var(--mist); }
  #links-table td.created { font-size: 0.85rem; }
  #links-table td.actions { text-align: left; padding-top: 0.4rem; }
  #links-table td.actions .linklike { margin: 0 1.1rem 0 0; }
  #links-table tr.detail:not([hidden]) { display: block; }
  #links-table tr.detail td { display: block; }
  .edit-input { width: 100%; margin: 0 0 0.5rem; }
}

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