:root {
  --ink: #3b4c63;
  --muted: #6b849e;
  --line: #d7e9fb;
  --sans: "Nunito", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -8%, #fff8e8 0%, transparent 55%),
    radial-gradient(700px 400px at 100% 0%, #e8f4ff 0%, transparent 50%),
    #f7fbff;
}

body {
  padding: max(20px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}

.app {
  max-width: 860px;
  margin: 0 auto;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #9ad0ff, #b8f0ea, #ffe08a, #ffc08a) 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 48px;
  height: 48px;
  flex: none;
}

h1 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #4a8fd6;
}

.tag {
  margin: 2px 0 0;
  color: var(--muted);
}

.privacy {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a8fd6;
  background: #f3f9ff;
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 999px;
}

.board {
  display: grid;
  gap: 28px;
}

.group h2 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff8a3d;
  font-weight: 800;
}

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

.card {
  display: grid;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
  text-decoration: none;
  color: inherit;
  min-height: 108px;
  box-shadow: 0 8px 20px rgba(74, 143, 214, 0.06);
}

.card:hover {
  border-color: #7ec4ff;
  background: #f7fbff;
}

.card strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #4a8fd6;
  letter-spacing: -0.02em;
}

.card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.foot {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.error {
  color: #c2410c;
}
