:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #fff;
  --surface-2: #eef4f8;
  --ink: #16202a;
  --muted: #627286;
  --line: #d6e0ea;
  --accent: #cf3030;
  --accent-dark: #a92323;
  --success: #187263;
  --focus: #285fa8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

main {
  display: grid;
  width: min(920px, calc(100% - 32px));
  gap: 18px;
  margin: 0 auto;
  padding: 38px 0 56px;
}

.hero {
  padding: 10px 0 20px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bell-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #efcaca;
  border-radius: 10px;
  background: #fff1f1;
  color: var(--accent);
}

.bell-mark svg {
  width: 19px;
  fill: currentColor;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -.035em;
}

.lead {
  max-width: 720px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 18px;
}

.status {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  padding: 12px 15px;
  color: var(--muted);
  font-weight: 700;
}

.status.success {
  border-color: #a8d5ca;
  background: #effaf7;
  color: #125c50;
}

.status.error {
  border-color: #efb4b4;
  background: #fff1f1;
  color: #8e2020;
}

.card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 22px;
  box-shadow: 0 12px 32px rgba(25, 41, 58, .07);
}

.step {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

.card h2 {
  font-size: 23px;
}

.card p {
  margin-top: 4px;
  color: var(--muted);
}

.browser-control {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 17px;
}

.browser-control-copy {
  display: grid;
  line-height: 1.25;
}

.browser-control-copy strong {
  color: var(--ink);
}

.browser-control-copy span {
  color: var(--muted);
  font-size: 13px;
}

button,
input,
select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

button {
  cursor: pointer;
  padding: 9px 18px;
  font-weight: 800;
}

button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

button.primary:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent);
  outline-offset: 2px;
}

form {
  display: grid;
  grid-template-columns: 140px minmax(170px, 1fr) minmax(140px, .7fr);
  gap: 13px;
  margin-top: 18px;
}

form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

form input,
form select {
  width: 100%;
  padding: 9px 11px;
  color: var(--ink);
  font-size: 16px;
}

form button {
  grid-column: 1 / -1;
  justify-self: start;
  white-space: nowrap;
}

.waiting {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  border: 1px solid #eadba5;
  border-radius: 10px;
  background: #fffae9;
  padding: 14px;
}

.waiting p {
  margin: 0;
}

.pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d49b16;
  box-shadow: 0 0 0 0 rgba(212, 155, 22, .5);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(212, 155, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 155, 22, 0); }
}

.bindings {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.binding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 13px;
}

.binding-copy strong {
  display: block;
}

.binding-copy span {
  color: var(--muted);
  font-size: 13px;
}

.switch {
  position: relative;
  width: 50px;
  height: 28px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #a9b5c0;
  cursor: pointer;
  transition: .18s;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transition: .18s;
}

.switch input:checked + span {
  background: var(--success);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.switch input:disabled + span {
  cursor: not-allowed;
  opacity: .55;
}

.switch input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent);
  outline-offset: 2px;
}

.browser-switch {
  width: 58px;
  height: 32px;
}

.browser-switch span::after {
  width: 24px;
  height: 24px;
}

.browser-switch input:checked + span::after {
  transform: translateX(26px);
}

.empty {
  padding: 11px 0;
}

@media (max-width: 720px) {
  main {
    padding-top: 24px;
  }

  form {
    grid-template-columns: 1fr;
  }

  form button {
    grid-column: auto;
    justify-self: stretch;
  }

  .card {
    grid-template-columns: 1fr;
  }

  .binding {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }
}
