/* domain.check
   Dark by default, light on request. Two accents rather than one: green means
   "you can have this", gold marks the moments worth noticing. Everything is
   system fonts, so the page paints before a network font could arrive. */

:root {
  --bg: #0b0d12;
  --bg-2: #0e1118;
  --panel: #141822;
  --panel-2: #1a1f2b;
  --line: #232a38;
  --line-soft: #1b2130;
  --text: #e8ecf3;
  --muted: #8e99ad;
  --faint: #5f6b80;

  --accent: #59d9a8;
  --accent-deep: #2aa47b;
  --accent-dim: #10281f;
  --gold: #f0b64a;
  --gold-dim: #2a2114;
  --violet: #8b7cf6;
  --taken: #5f6b80;
  --error: #e5766f;

  --radius: 12px;
  --radius-sm: 8px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px -12px rgba(0, 0, 0, .5);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaf7;
    --bg-2: #f4f2ee;
    --panel: #ffffff;
    --panel-2: #f6f5f2;
    --line: #e4e1da;
    --line-soft: #eeece7;
    --text: #16181d;
    --muted: #626a78;
    --faint: #949aa6;

    --accent: #14875c;
    --accent-deep: #0d6a47;
    --accent-dim: #e2f6ec;
    --gold: #96650b;
    --gold-dim: #fbf0d8;
    --violet: #6d5ce0;
    --taken: #9aa1ad;
    --error: #b5352f;
    --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 10px 30px -18px rgba(20, 20, 20, .28);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* A single wash of colour behind the top of the page. Enough to make the page
   feel like somewhere, not so much that it competes with the results. */
.aurora {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(50% 55% at 22% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(45% 50% at 78% 4%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 68%),
    radial-gradient(40% 45% at 52% 0%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 65%);
  filter: blur(20px);
  opacity: .85;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 24px 100px;
}

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

.hero { margin: 0 auto 34px; max-width: 720px; text-align: center; }

.wordmark {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
}

.headline {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 42px);
  max-width: 17ch;
  margin-inline: auto;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.headline em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark .dot {
  width: .34em;
  height: .34em;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 .16em;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent),
              0 0 18px color-mix(in srgb, var(--gold) 55%, transparent);
}

.tagline {
  color: var(--muted);
  margin: 0 auto;
  max-width: 58ch;
  font-size: 15.5px;
}

/* ---- the search panel ---------------------------------------------------- */

.panel {
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 15px;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin: 0 auto;
}

label { display: grid; gap: 7px; }
label > span {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
  font-weight: 650;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
label > span em {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  color: var(--faint);
}

input[type=text], input:not([type]), textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font: inherit;
  width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
#word { font-family: var(--mono); font-size: 16.5px; }
.tlds input { font-family: var(--mono); }
textarea { resize: vertical; min-height: 62px; }

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.row { display: flex; gap: 15px; flex-wrap: wrap; }
.row .grow { flex: 2 1 280px; }
.row .tlds { flex: 1 1 190px; }

.controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---- the button you are meant to want to press --------------------------- */

.cast {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 12px 22px;
  font: 650 15px/1 var(--sans);
  color: #06231a;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--violet)));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset,
              0 6px 20px -8px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .12s cubic-bezier(.2, .9, .3, 1.4), box-shadow .18s, filter .18s;
}
@media (prefers-color-scheme: light) { .cast { color: #fff; } }
.cast .spark { flex: none; }
.cast:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset,
              0 10px 26px -8px color-mix(in srgb, var(--accent) 85%, transparent);
}
.cast:active:not(:disabled) { transform: translateY(0) scale(.985); }
.cast:disabled { opacity: .55; cursor: default; }
.cast.small { padding: 9px 16px; font-size: 13.5px; border-radius: 9px; }

/* A light sweeps across the button on hover. Cosmetic, and the only piece of
   flourish on the page that is purely decorative. */
.cast::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
  transition: left .5s ease;
}
.cast:hover:not(:disabled)::after { left: 120%; }

.inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.inline input { accent-color: var(--accent); margin: 0; width: 15px; height: 15px; }
.inline:hover { color: var(--text); }

.progress {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.progress.busy::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.1s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

.bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 50%, var(--violet)));
  transition: width .45s cubic-bezier(.2, .8, .3, 1);
}
/* Before the first answer lands there is nothing to measure, so show motion
   rather than a bar sitting at zero. */
.bar.indeterminate span { width: 35% !important; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }

/* ---- example searches ---------------------------------------------------- */

.examples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px dashed var(--line-soft); padding-top: 14px; }
.examples-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--faint);
  font-weight: 650;
}
.chip-btn {
  background: transparent;
  border: 1px dashed var(--line);
  color: var(--muted);
  border-radius: 100px;
  padding: 5px 13px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.chip-btn:hover { border-style: solid; border-color: var(--accent); color: var(--accent); }

/* ---- sections ------------------------------------------------------------ */

section { margin-top: 34px; }

h2 {
  font-family: var(--display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin: 0 0 13px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
h2 em {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-style: normal;
  color: var(--faint);
  font-size: 12px;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 5px 13px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chip b { font-weight: 600; }
.chip .w { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.chip.inferred { border-style: dashed; color: var(--muted); }
.chip.semantic { border-color: var(--violet); }

.hint { color: var(--faint); font-size: 13px; margin: 11px 0 0; }

.outlook {
  margin: 13px 0 0;
  padding: 11px 15px;
  font-size: 13.2px;
  line-height: 1.55;
  background: var(--gold-dim);
  color: var(--text);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.outlook b { font-family: var(--mono); }

/* ---- the ranked shortlist: the payoff ------------------------------------ */

.shortlist {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--violet) 7%, transparent), transparent 60%),
    var(--panel);
  box-shadow: var(--shadow);
}
.shortlist-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.shortlist-head h2 { margin: 0; flex: 1; }

.ranked { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: rank; display: grid; gap: 8px; }
.ranked:empty { display: none; }
.ranked li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}
.ranked li::before {
  content: counter(rank);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.ranked li:first-child {
  border-color: color-mix(in srgb, var(--gold) 45%, transparent);
  background: linear-gradient(90deg, var(--gold-dim), var(--bg-2) 55%);
}
.ranked li:first-child::before { color: var(--gold); }
.ranked .rname { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.ranked .rname .tld { color: var(--accent); font-weight: 400; }
.ranked .rwhy { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.ranked .rprice { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---- toolbar ------------------------------------------------------------- */

.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.count { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.count b { color: var(--accent); }
select {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 7px;
  padding: 6px 9px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 7px;
  padding: 7px 13px;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: all .15s;
}
button.ghost:hover { color: var(--accent); border-color: var(--accent); }

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

.group { margin-bottom: 28px; }
.group[hidden] { display: none; }
.list { display: grid; gap: 5px; }

.item {
  display: grid;
  grid-template-columns: 104px 1fr auto auto;
  align-items: baseline;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 10px 15px;
}
.item.gone { opacity: .45; }
.item .name { font-family: var(--mono); font-size: 14.5px; word-break: break-all; }
.item .name b { font-weight: 600; }
.item .name .tld { color: var(--accent); }
.item.gone .name .tld { color: inherit; }
.item .note { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.item .meta { color: var(--faint); font-size: 11.5px; font-family: var(--mono); white-space: nowrap; }
.item .warn { color: var(--gold); font-size: 12.3px; margin-top: 3px; }

/* A queued row is quiet; the row being looked up right now breathes. Only a
   few rows are ever in flight, so the page has a visible pulse without forty
   things flashing at once. */
.item[data-status="pending"] { opacity: .45; }
.item[data-status="pending"] .name { color: var(--muted); }
.item[data-status="inflight"] { opacity: 1; }
.item[data-status="inflight"] .pill {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: transparent;
  animation: breathe 1.3s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* An answer marks its arrival with a tint that decays, rather than fading its
   own text in. Results land in bursts, and a burst of simultaneous fades makes
   the whole page look washed out for a moment, which is worse than no
   animation. This way every row is readable the instant it lands. */
@keyframes arrive {
  from { background: color-mix(in srgb, var(--accent) 13%, var(--panel)); border-color: var(--accent); }
  to { background: var(--panel); border-color: var(--line-soft); }
}
.item.settled { animation: arrive .8s ease-out; }

.pill {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 8px;
  border-radius: 5px;
  text-align: center;
  font-weight: 700;
}
.pill.available { background: var(--accent-dim); color: var(--accent); }
.pill.restricted { background: var(--gold-dim); color: var(--gold); }
.pill.taken { background: transparent; color: var(--taken); border: 1px solid var(--line); }
.pill.maybe { background: var(--gold-dim); color: var(--gold); }
.pill.unknown { background: transparent; color: var(--error); border: 1px solid currentColor; }
.pill.pending { background: transparent; color: var(--faint); border: 1px dashed var(--line); }
.pill.premium { background: var(--gold-dim); color: var(--gold); cursor: help; }

.price { font-family: var(--mono); font-size: 12.5px; color: var(--text); white-space: nowrap; }
.price .renew { color: var(--faint); }
.price.none { color: var(--faint); }
.flags { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }

a.buy {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  font-size: 12.5px;
  white-space: nowrap;
}
a.buy:hover { color: var(--accent); border-color: var(--accent); }

/* ---- per-word and per-name blocks ---------------------------------------- */

.word-group { margin-bottom: 16px; }
.word-group > h3 {
  font: 650 12px/1 var(--mono);
  color: var(--muted);
  margin: 0 0 7px;
  letter-spacing: .04em;
}
.word-group > h3::before { content: '- '; color: var(--line); }
.word-group > h3 em {
  font-style: normal;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--violet);
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 7px;
}

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

footer { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
footer p { color: var(--faint); font-size: 12.5px; max-width: 76ch; margin: 0; line-height: 1.6; }
footer b { color: var(--muted); }
footer code { font-family: var(--mono); font-size: .95em; }
footer .pill { display: inline-block; padding: 1px 6px; }

.empty { color: var(--faint); font-size: 13px; font-style: italic; }

@media (prefers-reduced-motion: reduce) {
  .progress.busy::after,
  .item[data-status="inflight"] .pill,
  .item.settled { animation: none; }
  .bar span, .cast, .cast::after, .chip-btn { transition: none; }
}

@media (max-width: 640px) {
  main { padding: 36px 16px 80px; }
  .item { grid-template-columns: 92px 1fr; }
  .item .price, .item .flags { grid-column: 2; justify-content: flex-start; }
  .ranked li { grid-template-columns: 22px 1fr; }
  .ranked .rprice { grid-column: 2; }
}

/* ---- how it works -------------------------------------------------------- */

.how .steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.how .steps li {
  counter-increment: step;
  position: relative;
  padding: 15px 16px 15px 44px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.how .steps li::before {
  content: counter(step);
  position: absolute;
  left: 15px;
  top: 15px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font: 700 11px/19px var(--mono);
  text-align: center;
}
.how .steps b { color: var(--text); font-weight: 600; }
.how .steps code { font-family: var(--mono); font-size: .93em; color: var(--text); }

footer details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
footer details[open] summary { margin-bottom: 14px; }
footer details > p + p { margin-top: 12px; }


/* ---- segmented filter ----------------------------------------------------- */

.seg {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 550 13px/1 var(--sans);
  padding: 6px 13px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
}
.seg button:hover { color: var(--text); }
.seg button.on {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.seg button.on:first-child { color: var(--text); }

/* ---- premium floors ------------------------------------------------------- */

.price.floor { color: var(--gold); }
.floor-note { color: var(--gold) !important; font-size: 12px !important; }

/* ---- ranked medals -------------------------------------------------------- */

.ranked li:first-child::before { color: var(--gold); font-weight: 700; }
.ranked li:nth-child(2) { border-color: color-mix(in srgb, var(--muted) 35%, transparent); }
.ranked li:nth-child(2)::before { color: var(--text); font-weight: 700; }
.ranked li:nth-child(3)::before { color: #c9885a; font-weight: 700; }

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

.footnav { display: flex; gap: 18px; flex-wrap: wrap; }
.footnav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px dotted var(--line);
}
.footnav a:hover { color: var(--accent); border-color: var(--accent); }

/* ---- static content pages -------------------------------------------------- */

.prose { max-width: 70ch; }
.prose h1 { font-family: var(--display); font-size: 30px; letter-spacing: -.02em; margin: 0 0 18px; }
.prose h2 { font-size: 17px; text-transform: none; letter-spacing: 0; color: var(--text); margin: 28px 0 10px; }
.prose p, .prose li { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.prose a { color: var(--accent); }
.prose table { border-collapse: collapse; margin: 14px 0; width: 100%; }
.prose td, .prose th {
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 13.5px;
  text-align: left;
  color: var(--muted);
}
.prose th { color: var(--text); background: var(--panel); }
.crumb { font-size: 13px; color: var(--faint); margin-bottom: 22px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
