/* nitoblox brand — single source of truth mirrors softblox/DESIGN.md §2. */
:root {
  --bg: #141414;
  --surface: #1e1e1e;
  --surface-2: #262626;
  --border: #333333;
  --text: #f0f0f0;
  --muted: #8a8a8a;
  --accent: #2dd4bf;
  --accent-ink: #06302b;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header img {
  width: 28px;
  height: 28px;
}

.site-header .brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* Hero */
.hero {
  padding: 88px 0 56px;
  text-align: center;
}

.hero img.mark {
  width: 96px;
  height: 96px;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 9vw, 72px);
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero p.lead {
  font-size: clamp(17px, 3vw, 21px);
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding-bottom: 72px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--accent);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-accent:hover {
  opacity: 0.9;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* Spotify callback page */
.callback {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
}

.callback .panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  max-width: 520px;
  width: 100%;
}

.callback img.mark {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.callback h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}

.callback p.sub {
  color: var(--muted);
  margin: 0 0 28px;
  line-height: 1.5;
}

.code-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  word-break: break-all;
  text-align: left;
  color: var(--text);
  margin-bottom: 18px;
  max-height: 160px;
  overflow-y: auto;
}

.steps {
  text-align: left;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 24px 0 0;
  padding-left: 20px;
}

.copied {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  height: 20px;
  margin-top: 12px;
}

.error {
  color: var(--danger);
}
