/* ══════════════════════════════════════════════════════════════
   Keln — the public directory.

   A list of other people's businesses, so it stays out of their way:
   no Keln colour on a business card, no gamification, nothing that
   competes with the name of the person you came to book. The only
   product voice on this page is the frame around it.
   ══════════════════════════════════════════════════════════════ */

.dir__search {
  position: relative;
  margin-bottom: var(--s-8);
}
.dir__mag {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-size: 17px;
  pointer-events: none;
}
#dirQ {
  width: 100%;
  box-sizing: border-box;
  padding: var(--s-7) var(--s-8) var(--s-7) 42px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(10, 14, 20, .6);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
}
#dirQ:focus { outline: none; border-color: var(--accent); }
#dirQ::-webkit-search-cancel-button { filter: invert(.6); }

.dir__cats { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: 18px; }
.dir__cat {
  padding: 7px var(--s-7);
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: var(--font);
  font-size: 13.5px;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.dir__cat:hover { color: var(--ink); border-color: var(--border-hi); }
.dir__cat[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--accent2);
  background: rgba(34, 211, 166, .08);
}
.dir__cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A category with nothing in it is shown, dimmed and unclickable,
   rather than hidden: the shape of the list should not change every
   time a business is added, and an empty category is information. */
.dir__cat[data-empty="1"] { opacity: .35; cursor: default; }
.dir__catN { font-family: var(--mono); font-size: var(--t-xs); color: var(--dim); margin-left: var(--s-3); }

.dir__count {
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 var(--s-7);
}

.dir__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--s-6);
}

.dir__card {
  display: block;
  padding: 18px var(--s-9);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(13, 17, 23, .5);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.dir__card:hover {
  border-color: var(--border-hi);
  background: rgba(34, 211, 166, .04);
  transform: translateY(-2px);
}
.dir__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dir__cardTop { display: flex; align-items: center; gap: var(--s-6); margin-bottom: var(--s-5); }
.dir__mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: radial-gradient(circle at 34% 30%,
    rgba(34, 211, 166, .22), rgba(91, 140, 255, .08) 60%, transparent 72%);
  font-family: var(--mono);
  font-size: var(--t-lg);
  font-weight: 600;
  color: var(--accent2);
}
.dir__name { font-weight: 600; font-size: var(--t-xl); line-height: 1.3; }
.dir__cat2 {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: var(--s-1);
}
.dir__tag { color: var(--muted); font-size: var(--t-md); line-height: 1.55; }
.dir__svcs {
  margin-top: var(--s-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.dir__svc {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--dim);
}
.dir__go {
  margin-top: var(--s-7);
  font-family: var(--mono);
  font-size: var(--t-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent2);
}

.dir__empty {
  padding: 54px var(--s-9);
  text-align: center;
  border-radius: 14px;
  border: 1px dashed var(--border);
  color: var(--dim);
}
.dir__empty b { display: block; color: var(--muted); font-size: 17px; margin-bottom: var(--s-3); font-weight: 600; }

@media (max-width: 520px) {
  .dir__grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   COMING SOON

   A page with nothing to browse has to earn its keep some other way,
   so this half is a pitch: what the directory is, what the first ten
   get, and one form. It carries more product voice than the live
   directory deliberately — there are no businesses on it yet to be
   quiet around.
   ══════════════════════════════════════════════════════════════ */

.soon__banner {
  margin: 0 0 22px;
  padding: 13px var(--s-8);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  border-left-width: 3px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  background: rgba(10, 14, 20, .55);
}
.soon__banner[data-kind="ok"] {
  border-left-color: var(--accent2, #4ade80);
  background: rgba(74, 222, 128, .07);
}
.soon__banner[data-kind="warn"] {
  border-left-color: #facc15;
  background: rgba(250, 204, 21, .06);
}

/* ─── The offer ─────────────────────────────────────────────── */

.soon__offer {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 26px;
  margin-bottom: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(56, 189, 248, .07), transparent 62%),
    rgba(10, 14, 20, .5);
}

.soon__meterWrap { min-width: 0; }

.soon__meter {
  display: grid;
  grid-template-columns: repeat(5, 14px);
  gap: 9px;
  margin-bottom: var(--s-6);
}
.soon__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
}
/* Claimed places are lit. The unclaimed ones stay outlines rather
   than a second colour, so the count is legible at a glance and
   without relying on hue. */
.soon__dot--taken {
  background: var(--accent, #38bdf8);
  border-color: var(--accent, #38bdf8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .14);
}

.soon__count { font-size: var(--t-md); color: var(--muted); white-space: nowrap; }
.soon__count b { color: var(--ink); font-size: var(--t-2xl); font-weight: 700; }

.soon__offerBody { min-width: 0; }

.soon__h2 {
  margin: 0 0 var(--s-4);
  font-family: var(--serif, var(--font));
  font-size: var(--t-3xl);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}

.soon__p {
  margin: 0 0 var(--s-5);
  font-size: var(--t-lg);
  line-height: 1.62;
  color: var(--muted);
}
.soon__p--tight { margin-bottom: 18px; }

.soon__fine {
  margin: var(--s-2) 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--dim);
}
.soon__fine a { color: var(--muted); }

/* ─── Two doors ─────────────────────────────────────────────── */

.soon__paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-7);
  margin-bottom: 30px;
}
.soon__path {
  /* A grid item's automatic minimum is its content, so without this
     a long word in the copy widens the column instead of wrapping. */
  min-width: 0;
  padding: var(--s-9);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(10, 14, 20, .4);
  display: flex;
  flex-direction: column;
}
.soon__pathT {
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent, #38bdf8);
  margin-bottom: 9px;
}
.soon__path .soon__p { flex: 1; }

.soon__btn {
  display: inline-block;
  padding: var(--s-5) 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  align-self: flex-start;
  transition: border-color .16s ease, background .16s ease, opacity .16s ease;
}
.soon__btn--go:hover { border-color: var(--accent, #38bdf8); background: rgba(255, 255, 255, .04); }
.soon__btn--primary {
  background: var(--accent2, #38bdf8);
  border-color: var(--accent2, #38bdf8);
  color: #04121a;
  padding: 11px 22px;
}
.soon__btn--primary:hover:not(:disabled) { filter: brightness(1.06); }
.soon__btn:disabled { opacity: .55; cursor: default; }

/* ─── The form ──────────────────────────────────────────────── */

.soon__form {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(10, 14, 20, .5);
  margin-bottom: 34px;
}

.soon__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}

.soon__f { display: block; min-width: 0; }
.soon__f--wide { margin-bottom: var(--s-8); }

.soon__lab {
  display: block;
  margin-bottom: var(--s-3);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}
.soon__lab em {
  font-style: normal;
  font-weight: 400;
  color: var(--dim);
}

.soon__f input,
.soon__f select,
.soon__f textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(6, 10, 16, .6);
  color: var(--ink);
  font-family: var(--sans, var(--font));
  font-size: 14.5px;
  /* Below 16px iOS zooms the whole page on focus and never zooms
     back out, which reads as the form being broken. */
}
@media (max-width: 640px) {
  .soon__f input, .soon__f select, .soon__f textarea { font-size: var(--t-xl); }
}
.soon__f textarea { resize: vertical; min-height: 74px; line-height: 1.55; }
.soon__f input:focus,
.soon__f select:focus,
.soon__f textarea:focus { outline: none; border-color: var(--accent, #38bdf8); }

.soon__captcha { margin: var(--s-2) 0 var(--s-8); }
.soon__captcha:empty { margin: 0; }

.soon__actions {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  flex-wrap: wrap;
  margin-bottom: var(--s-7);
}

.soon__msg {
  flex: 1 1 220px;
  min-width: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.soon__msg[data-kind="ok"]  { color: var(--accent2, #7ee2a8); }
.soon__msg[data-kind="bad"] { color: #ff9db1; }

@media (max-width: 720px) {
  .soon__offer { grid-template-columns: minmax(0, 1fr); gap: var(--s-9); padding: var(--s-9); }
  .soon__count { white-space: normal; }
  .soon__form { padding: var(--s-9); }
}

/* ─── The founding badge, on a live listing ─────────────────── */

.dir__founding {
  display: inline-block;
  margin-left: var(--s-4);
  padding: var(--s-1) var(--s-4);
  border-radius: 999px;
  font-family: var(--font);
  font-size: var(--t-2xs);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--accent, #38bdf8);
  background: rgba(56, 189, 248, .1);
  border: 1px solid rgba(56, 189, 248, .3);
  white-space: nowrap;
}
