/* jwodzynski.pl — tokeny UI (spójne z landingiem) */

:root {
  --bg: #070b12;
  --bg-soft: #0d1320;
  --bg-glow-a: rgba(138, 180, 255, 0.08);
  --bg-glow-b: rgba(167, 139, 250, 0.04);
  --card: rgba(18, 25, 38, 0.86);
  --card-strong: rgba(24, 33, 50, 0.94);
  --surface: rgba(18, 25, 38, 0.72);
  --surface-2: rgba(24, 33, 50, 0.82);
  --surface-hover: rgba(28, 38, 58, 0.88);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #8ab4ff;
  --accent-soft: #b8d0ff;
  --accent-2: #a78bfa;
  --ok: #7dd3a8;
  --ok-bg: rgba(125, 211, 168, 0.12);
  --bad: #fb7185;
  --bad-bg: rgba(251, 113, 133, 0.12);
  --warn: #facc15;
  --warn-bg: rgba(250, 204, 21, 0.1);
  --focus: #8ab4ff;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius: 16px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tap-min: 44px;
  --app-width: min(920px, calc(100% - 36px));
  --app-width-list: min(860px, calc(100% - 36px));
  --app-width-quiz: min(820px, calc(100% - 36px));
  --app-width-auth: min(420px, calc(100% - 36px));
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 10%, var(--bg-glow-a), transparent 40%),
    radial-gradient(circle at 90% 12%, var(--bg-glow-b), transparent 32%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Przyciski */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min);
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

a.btn {
  color: var(--text);
}

.btn:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.84rem;
  font-weight: 500;
}

.btn--primary {
  background: #e2e8f4;
  color: #0a1018;
  border-color: transparent;
}

.btn--primary:hover:not(:disabled) {
  background: #eef2f8;
}

.btn--ghost {
  background: transparent;
}

.btn--danger {
  color: var(--bad);
  border-color: rgba(251, 113, 133, 0.35);
  background: transparent;
}

.btn--danger:hover:not(:disabled) {
  background: var(--bad-bg);
  border-color: rgba(251, 113, 133, 0.5);
}

/* Karty bazowe */

.card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.card--notice {
  margin-bottom: 20px;
  padding: 18px;
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.card--notice p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Typografia */

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.screen-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.screen-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions--stack-mobile {
  gap: 10px;
}

@media (max-width: 640px) {
  :root {
    --app-width: calc(100% - 32px);
    --app-width-list: calc(100% - 32px);
    --app-width-quiz: calc(100% - 32px);
    --app-width-auth: calc(100% - 32px);
  }

  .actions--stack-mobile .btn {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
