/* KidSafePC site: what the child gets, screenshots, what stays locked, the
   kids browser. Tokens and primitives live in base.css. */

/* ---------- the three big tiles ---------- */
.kid-tiles {
  display: grid;
  gap: 22px;
}

.tile {
  --face: var(--surface);
  --base: var(--tile-base);
  --label: var(--text);
  --body: var(--text-2);
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 3px solid var(--base);
  background: var(--face);
  color: var(--label);
  box-shadow: 0 7px 0 var(--base);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 0 var(--base);
}

.tile-indigo {
  --face: #4f46e5;
  --base: #3730a3;
  --label: #ffffff;
  --body: #e0e4ff;
}

.tile-warm {
  --face: #f97316;
  --base: #c2410c;
  --label: #1e1b4b;
  --body: #1e1b4b;
}

.tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.tile:not(.tile-indigo):not(.tile-warm) .tile-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.tile-icon .icon {
  width: 32px;
  height: 32px;
}

.tile h3 {
  font-size: clamp(1.5rem, 1.25rem + 0.8vw, 1.875rem);
  font-weight: 800;
  line-height: 1.1;
}

.tile p {
  color: var(--body);
  max-width: 46ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (min-width: 900px) {
  .kid-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- screenshots ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tab {
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--tile-base);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  color: var(--text-2);
  cursor: pointer;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}

.tab:hover {
  color: var(--text);
  border-color: var(--accent);
}

.tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.panel {
  display: grid;
  gap: 18px;
}

.shot {
  border-radius: var(--radius-lg);
  border: 3px solid var(--tile-base);
  background: var(--surface);
  box-shadow: 0 8px 0 var(--tile-base), var(--shadow-lg);
  overflow: hidden;
  animation: fade-in var(--dur-slow) var(--ease-out);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.shot img {
  width: 100%;
  aspect-ratio: 1280 / 800;
}

.panel p {
  color: var(--text-2);
  max-width: 70ch;
}

/* ---------- what stays locked ---------- */
.locks {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 16px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}

.lock-icon {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--danger-soft);
  color: var(--danger);
}

.lock h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  align-self: center;
}

.lock p {
  color: var(--text-2);
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 2px dashed var(--line-strong);
  color: var(--text-2);
  max-width: 80ch;
}

.note .icon {
  margin-top: 2px;
  color: var(--warm-base);
}

html[data-theme="dark"] .note .icon {
  color: var(--warm);
}

@media (min-width: 720px) {
  .locks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .locks {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- kids browser ---------- */
.split {
  display: grid;
  gap: 40px;
  align-items: start;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 72px);
  }
}

.levels {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.level {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 2px solid var(--line);
  background: var(--surface);
}

.level b {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
}

.level span {
  color: var(--text-2);
}

.level-default {
  border-color: var(--accent);
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: 2px;
}

html[data-theme="dark"] .badge {
  color: var(--accent);
}

.checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-2);
}

.checks .icon {
  margin-top: 2px;
  width: 20px;
  height: 20px;
  color: var(--leaf);
}

/* the journal, drawn in HTML: decoration, aria-hidden */
.journal {
  border-radius: var(--radius-lg);
  border: 3px solid var(--tile-base);
  background: var(--surface);
  box-shadow: 0 8px 0 var(--tile-base);
  overflow: hidden;
}

.journal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
}

.journal-head .icon {
  color: var(--accent);
}

.journal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.journal-row:last-child {
  border-bottom: 0;
}

.journal-host {
  font-family: var(--mono);
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journal-why {
  grid-column: 1;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.journal-act {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  gap: 6px;
}

.pill {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill-open {
  background: var(--leaf-soft);
  color: var(--leaf);
}

.pill-block {
  background: var(--danger-soft);
  color: var(--danger);
}

.pill-btn {
  border: 2px solid var(--tile-base);
  background: var(--surface);
  color: var(--text);
}

.h3-sub {
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
}
