/* Shared by every page: tokens, type, buttons, form fields */
:root {
  color-scheme: dark;
  --bg: #0f0b13;
  --bg-2: #161019;
  --surface: #1b1420;
  --surface-2: #241b2a;
  --line: #34293b;
  --text: #f7f2f9;
  --muted: #b9adc1;
  --pink: #ff5fb4;
  --pink-deep: #e63d97;
  --cyan: #4fe0e8;
  --yellow: #ffd84d;
  --lilac: #b993ff;
  --green: #6ee7a8;
  --danger: #ff6b6b;
  --on-accent: #150d17;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 700; font-size: clamp(28px, 4.4vw, 46px); }
h3 { font-weight: 700; font-size: 19px; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #8ff0f4; }
.tabular, .price { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--pink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: var(--on-accent); font: 700 16px/1 var(--body); text-decoration: none;
  cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--b) 70%, transparent);
}
.btn:hover { transform: translateY(-2px); color: var(--on-accent); background: color-mix(in srgb, var(--b) 88%, white); }
.btn:active { transform: translateY(0) scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-cyan { --b: var(--cyan); }
.btn-ghost { background: transparent; color: var(--text); --b: var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
  font: 700 20px/1 var(--body); transition: background .15s, transform .15s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.92); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 14px; font-weight: 500; color: var(--muted); }
input, select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 16px/1.4 var(--body);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 30%, transparent); }
input[type=checkbox] { width: 20px; height: 20px; min-height: 0; accent-color: var(--pink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { flex: none; margin-top: 2px; }
.error-msg { color: var(--danger); font-size: 15px; min-height: 1.4em; margin: 6px 0; }
.error-msg:empty { min-height: 0; margin: 0; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px;
  font: 700 11px/1 var(--body); letter-spacing: .04em; text-transform: uppercase;
  background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
