:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-red: #fff1f2;

  --text: #111827;
  --text-soft: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --line: rgba(15, 23, 42, .08);
  --line-strong: rgba(15, 23, 42, .12);

  --red: #dc2626;
  --red-2: #991b1b;
  --red-3: #ef4444;

  --green: #16a34a;
  --blue: #2563eb;
  --amber: #d97706;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 32px;

  --shadow-sm: 0 10px 28px rgba(15, 23, 42, .06);
  --shadow: 0 22px 70px rgba(15, 23, 42, .08);
  --shadow-strong: 0 30px 90px rgba(15, 23, 42, .14);

  --focus: 0 0 0 4px rgba(220, 38, 38, .10);

  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* RESET */

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(220, 38, 38, .08), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(37, 99, 235, .05), transparent 26%),
    linear-gradient(180deg, #ffffff, var(--bg) 42%, #f8fafc);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* TYPOGRAPHY */

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
}

p {
  color: var(--muted);
  line-height: 1.65;
}

/* BUTTONS */

button,
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--red-3), var(--red-2));
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(220, 38, 38, .22);
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    border-color .16s ease,
    color .16s ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(220, 38, 38, .28);
}

button:focus-visible,
.button:focus-visible {
  outline: none;
  box-shadow: var(--focus), 0 16px 36px rgba(220, 38, 38, .22);
}

.button.secondary,
.secondary {
  background: #ffffff;
  color: var(--text-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover,
.secondary:hover {
  color: var(--text);
  border-color: rgba(220, 38, 38, .22);
  background: #fffafa;
}

button.danger,
.button.danger,
.danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, .22);
  box-shadow: none;
}

button.danger:hover,
.button.danger:hover,
.danger:hover {
  background: #fecaca;
}

.tiny {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 12px;
}

/* FORMS */

label {
  display: inline-block;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  font-weight: 700;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

textarea {
  min-height: 118px;
  padding: 14px 15px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(220, 38, 38, .42);
  box-shadow: var(--focus);
}

select option {
  background: #ffffff;
  color: var(--text);
}

/* COMMON CARDS */

.card,
.glass-panel {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card {
  padding: 22px;
}

/* SMALL BADGE */

.eyebrow {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--surface-red);
  color: var(--red-2);
  border: 1px solid rgba(220, 38, 38, .16);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--red-3);
  box-shadow: 0 0 0 6px rgba(239, 68, 68, .12);
}

/* PAGE HEAD COMPAT */

.page-head {
  margin: 28px 0 22px;
}

.page-head h1 {
  margin: 10px 0 8px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .98;
  letter-spacing: -.055em;
}

.page-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* PILLS */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}

/* UTILS */

.is-hidden {
  display: none !important;
}

.text-muted {
  color: var(--muted);
}

.soft-panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* RESPONSIVE BASE */

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at 20% -10%, rgba(220, 38, 38, .07), transparent 34%),
      linear-gradient(180deg, #ffffff, var(--bg));
  }

  .card {
    padding: 18px;
    border-radius: 22px;
  }

  .page-head {
    margin: 22px 0 18px;
  }

  .page-head h1 {
    font-size: clamp(32px, 11vw, 46px);
  }

  button,
  .button {
    width: auto;
  }
}