@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/InterVariable.woff2") format("woff2");
}

:root {
  --brand-primary: #0a0046;
  --text: #2d2d2d;
  --muted: #58575c;
  --bg: #f7f7f7;
  --surface: #ffffff;
  --accent: #00b4d2;
  --accent-3: #a0d6df;
  --accent-4: #ecf7f9;
  --primary-400: #514b74;
  --primary-300: #625c86;
  --primary-50: #edecf0;
  --neutral-50: #f9f9fa;
  --neutral-100: #f3f3f4;
  --neutral-200: #d1d1d6;
  --alternate: #8e8e93;
  --error: #dc2626;
  --danger-bg: color-mix(in srgb, var(--error) 10%, var(--surface));
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 28px 16px 56px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 460px;
  padding: 32px 30px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow:
    0 1px 3px color-mix(in srgb, var(--brand-primary) 6%, transparent),
    0 12px 40px color-mix(in srgb, var(--brand-primary) 8%, transparent);
}

.brand-logo {
  display: block;
  height: 28px;
  width: auto;
  margin: 0 0 20px;
}

h1 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--brand-primary);
}

.lead {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
}

.lead b {
  font-weight: 600;
  color: var(--brand-primary);
}

.perm {
  margin-bottom: 8px;
  padding: 11px 14px;
  border-radius: 9px;
}

.perm h2 {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.perm p {
  font-size: 13px;
  line-height: 1.5;
}

.perm.yes {
  background: var(--accent-4);
}

.perm.yes h2 {
  color: var(--primary-300);
}

.perm.yes p {
  color: var(--brand-primary);
}

.perm.no {
  margin-bottom: 16px;
  background: var(--neutral-100);
}

.perm.no h2 {
  color: var(--alternate);
}

.perm.no p {
  color: var(--primary-300);
}

hr {
  border: 0;
  border-top: 1px solid var(--neutral-200);
  margin: 18px 0;
}

.transfer {
  margin: 0 0 9px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.transfer b {
  font-weight: 600;
  color: var(--brand-primary);
}

.transfer-link {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.transfer-link:hover {
  text-decoration: underline;
}

.alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  background: var(--danger-bg);
  border: 1px solid var(--error);
  border-radius: 10px;
  color: var(--error);
  font-size: 14px;
}

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding: 14px 15px;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.consent:has(input:checked),
.consent.is-checked {
  border-color: var(--accent-3);
  background: var(--accent-4);
}

.consent input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--alternate);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
  transition: 0.15s;
}

.consent input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.consent input:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  margin: 2px auto 0;
  border: solid var(--surface);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.consent label {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-primary);
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--neutral-200);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.field input::placeholder {
  color: var(--alternate);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

button {
  width: 100%;
  font-family: inherit;
  cursor: pointer;
}

.primary {
  margin-top: 5px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--brand-primary);
  color: var(--surface);
  font-size: 15.5px;
  font-weight: 600;
  transition:
    opacity 0.15s,
    background 0.15s;
}

.primary:not(:disabled):hover {
  background: var(--primary-400);
}

.primary:disabled {
  background: var(--neutral-200);
  color: var(--alternate);
  cursor: not-allowed;
}

.primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.secondary {
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--primary-300);
  font-size: 14.5px;
  font-weight: 500;
}

.secondary:hover {
  background: var(--neutral-100);
}

.secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

details {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--neutral-200);
}

summary {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-primary);
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid var(--primary-300);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.2s;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--primary-300);
}

details p b {
  font-weight: 600;
  color: var(--brand-primary);
}

@media (max-width: 520px) {
  body {
    padding: 14px 12px 40px;
  }

  .card {
    padding: 26px 20px 24px;
    border-radius: 12px;
  }

  h1 {
    font-size: 18px;
  }
}
