/* KitchenBASE design system — black base, brand-yellow signal, flat fields. */
:root {
  --bg: #000000;
  --panel: #0d0d0d;
  --panel-2: #1a1a1a;
  --line: #2a2a2a;
  --text: #fafafa;
  --muted: #999999;
  --accent: #ffe600;
  --on-accent: #000000;
  --focus: #596e98;
  --live: #3fb950;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Roobert", "Apple SD Gothic Neo", "Pretendard", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

.wrap { max-width: 1160px; margin: 0 auto; padding: 56px 32px 80px; }

/* ---------- Header ---------- */
.masthead {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.lockup {
  height: 42px; width: auto; display: block;
  max-width: 100%; object-fit: contain; object-position: left center;
}
@media (max-width: 640px) {
  .masthead { flex-wrap: wrap; }
  .lockup { height: 34px; }
  .masthead .count { display: none; }
}
.masthead h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.4px; line-height: 1.05; }
.masthead p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.masthead .count {
  margin-left: auto;
  text-align: right;
}
.masthead .count .n { font-size: 30px; font-weight: 800; line-height: 1; }
.masthead .count .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted); font-weight: 700; margin-bottom: 16px;
}

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

/* square panels, flat fields — no shadows */
.card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 20px;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.card .glyph {
  position: absolute;
  right: -18px; top: -14px;
  opacity: 0.06;
  transform: rotate(-8deg);
}
.card .glyph svg { width: 130px; height: 130px; }

.card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; min-height: 62px; }
.badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  flex-shrink: 0;
}
.card h2 { font-size: 16px; font-weight: 700; line-height: 1.25; }
.card .loc { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.45; }

.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px;
}
.pill {
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  padding: 4px 10px; border-radius: 9999px;
  background: var(--panel-2); color: var(--muted);
  border: 1px solid var(--line);
}
.cta { font-size: 13px; font-weight: 700; color: var(--muted); }

/* live (available) cards — yellow marks the doors you can open */
.card.live { border-color: rgba(255, 230, 0, 0.35); cursor: pointer; }
.card.live .badge {
  background: var(--accent);
  border: none; color: var(--on-accent);
}
.card.live .pill {
  background: rgba(63,185,80,0.14);
  color: var(--live);
  border-color: rgba(63,185,80,0.3);
}
.card.live .pill::before {
  content: ""; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); margin-right: 6px;
  vertical-align: middle;
}
.card.live .cta { color: var(--accent); }
.card.live:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.card.live:hover .cta { color: #fff; }

/* soon (not yet built) */
.card.soon { opacity: 0.82; }
.card.soon:hover { border-color: var(--line); transform: none; }

.footnote { margin-top: 40px; color: var(--muted); font-size: 12px; text-align: center; }

/* ---------- Trial preview ---------- */
.back-link {
  display: inline-block; margin-bottom: 14px;
  color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600;
}
.back-link:hover { color: var(--accent); }
.footnote code { color: var(--muted); font-size: 11px; }
