/* localbiz.in home page (RID564). Self-contained: system fonts, no images
   from the network. Dark by default, light when the device asks for it. */

:root {
  --bg: #0b1020;
  --bg-2: #111833;
  --card: rgba(255, 255, 255, 0.045);
  --card-hover: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --ink: #eef1fb;
  --muted: #a7b0cc;
  --accent: #7aa7ff;
  --accent-2: #9b7bff;
  --accent-ink: #0b1020;
  --good: #3ccf91;
  --off: #8a93ad;
  --bad: #ff8a8a;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f7fc;
    --bg-2: #e9eefb;
    --card: #ffffff;
    --card-hover: #f8faff;
    --line: rgba(20, 30, 70, 0.12);
    --line-strong: rgba(20, 30, 70, 0.26);
    --ink: #141a33;
    --muted: #55607f;
    --accent: #2f62e0;
    --accent-2: #6a43e0;
    --accent-ink: #ffffff;
    --good: #138a5a;
    --off: #7a8299;
    --bad: #c23a3a;
    --shadow: 0 10px 30px rgba(20, 30, 70, 0.10);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  inset: -20vmax;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40vmax 30vmax at 20% 15%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(35vmax 30vmax at 85% 25%, color-mix(in srgb, var(--accent-2) 20%, transparent), transparent 70%);
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3vmax, 2vmax, 0) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
}

.bar, main, .foot { position: relative; z-index: 1; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand .tld { color: var(--muted); font-weight: 500; }
.mark-bg { fill: var(--accent); }
.mark-line { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mark-dot { fill: var(--accent-ink); }

.who { display: flex; align-items: center; gap: 10px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--card);
}
.pill.on { color: var(--ink); }
.pill.on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); }

main { max-width: 1160px; margin: 0 auto; padding: 8px 24px 40px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 40px;
  align-items: center;
  padding: 48px 0 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--ink) 30%, var(--accent) 75%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede { margin: 0; color: var(--muted); font-size: 1.08rem; max-width: 60ch; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.login, .welcome { padding: 24px; }
.login h2, .welcome h2 { margin: 0 0 6px; font-size: 1.25rem; }
.login label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: 0.9rem; }

input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
}
input[type="password"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button {
  font: inherit;
  cursor: pointer;
  border-radius: 10px;
}

#go {
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  font-weight: 700;
}
#go:disabled { opacity: 0.6; cursor: progress; }

.ghost {
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-size: 0.85rem;
}
.ghost:hover { background: var(--card-hover); }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; margin-bottom: 0; }
.error { min-height: 1.4em; margin: 10px 0 0; color: var(--bad); font-weight: 600; }

.section-title {
  margin: 0 0 16px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
a.product:hover, a.product:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--card-hover);
}
a.product:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product.locked { opacity: 0.78; }
.card-holder { display: flex; flex-direction: column; gap: 8px; }
.card-holder > .product { flex: 1; }
.card-holder > .extra { padding-left: 6px; }

.product .kind {
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
}
.product h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.01em; }
.product .line { margin: 0; color: var(--muted); flex: 1; }
.product .for { margin: 0; font-size: 0.85rem; color: var(--muted); }

.product .foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--off); }
.status.up::before { background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 22%, transparent); }
.open { font-weight: 700; color: var(--accent); }
.extra { color: var(--accent); font-size: 0.88rem; }
.extra:hover { text-decoration: underline; }

.fit { margin-top: 56px; }
.flow {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto 1.3fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}
.flow li:not(.arrow) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-align: center;
}
.flow li.centre { border-color: var(--accent); }
.flow li span { color: var(--muted); font-size: 0.9rem; }
.flow .arrow { align-self: center; color: var(--accent); font-size: 1.5rem; }
.centre-text { text-align: center; }

.foot {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 24px 0 36px; gap: 24px; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 480px) {
  .bar, main, .foot { padding-left: 16px; padding-right: 16px; }
}
