:root {
  color-scheme: light;
  --page: #f2f7fb;
  --card: #ffffff;
  --text: #102f46;
  --muted: #617486;
  --line: rgba(16, 47, 70, 0.14);
  --brand: #0d8bd9;
  --brand-dark: #0868a6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(13, 139, 217, 0.18), transparent 34%),
    linear-gradient(180deg, #f8fcff, var(--page));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.card {
  width: min(100%, 520px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(16, 47, 70, 0.1);
}

.mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-size: 27px;
  font-weight: 900;
}

.eyebrow {
  margin: 22px 0 8px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 8vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

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

.reference {
  margin-top: 20px;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(13, 139, 217, 0.05);
  font-size: 14px;
}

.reference span { color: var(--muted); }
.reference strong { overflow-wrap: anywhere; }

.actions {
  display: grid;
  gap: 11px;
  margin-top: 24px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 12px 28px rgba(13, 139, 217, 0.24);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(16, 47, 70, 0.04);
}

.text-link {
  padding: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.button:focus-visible,
.text-link:focus-visible {
  outline: 3px solid rgba(13, 139, 217, 0.35);
  outline-offset: 3px;
}

.hint,
.error,
noscript {
  display: block;
  margin: 18px 0 0;
  font-size: 13px;
}

.error { color: #9f2e2e; }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform 140ms ease, box-shadow 140ms ease; }
  .button:hover { transform: translateY(-1px); }
}
