:root {
  --cf-orange: #f38020;
  --cf-yellow: #fbad41;
  --cf-text: #313131;
  --cf-muted: #4b4b4b;
  --cf-line: #d1d1d1;
  --cf-dot: #1f8a34;
  --cf-link: #555;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--cf-text);
  background: #F2F2F2;
  min-height: 100vh;
}

.cf-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.cf-content {
  width: min(600px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #FFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, .08);
  padding: 0 0 28px 0;
}

.cf-site {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: #313131;
}

h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.28;
  color: #313131;
}

.cf-lead {
  margin: 12px 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #626262;
  max-width: 42ch;
}

.turnstile {
  width: min(300px, 100%);
  height: 65px;
  background: #fff;
  border: 1px solid var(--cf-line);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 8px;
}

.turnstile-check {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0 6px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.turnstile-check:disabled {
  cursor: default;
}

.turnstile-check:focus-visible {
  outline: 2px solid var(--cf-orange);
  outline-offset: 2px;
}

.cb {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: #fff;
  flex: 0 0 24px;
}

.cb[hidden] {
  display: none;
}

.dots-spinner {
  --size: 32px;
  width: var(--size);
  height: var(--size);
  position: relative;
  flex: 0 0 var(--size);
}

.dots-spinner i {
  position: absolute;
  top: 1px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--cf-dot);
  transform-origin: 50% calc(var(--size) / 2 - 1px);
  animation: cf-dot 1s linear infinite;
}

.dots-spinner i:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: 0s;
}
.dots-spinner i:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -0.083s;
}
.dots-spinner i:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.166s;
}
.dots-spinner i:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.249s;
}
.dots-spinner i:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.332s;
}
.dots-spinner i:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.415s;
}
.dots-spinner i:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.498s;
}
.dots-spinner i:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.581s;
}
.dots-spinner i:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.664s;
}
.dots-spinner i:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.747s;
}
.dots-spinner i:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.83s;
}
.dots-spinner i:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: -0.913s;
}

.dots-spinner[hidden] {
  display: none;
}

@keyframes cf-dot {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0.12;
  }
}

.cb-success {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.cb-success svg {
  width: 32px;
  height: 32px;
  display: block;
}

.cb-success[hidden],
.cb-error[hidden] {
  display: none;
}

.cb-error {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
}

.cb-error svg {
  width: 32px;
  height: 32px;
  display: block;
}

.os-error {
  margin: 16px 0 0;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.45;
  color: #313131;
}

.os-error[hidden] {
  display: none;
}

.turnstile-label {
  font-size: 14px;
  font-weight: 400;
  color: #313131;
}

.turnstile-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 4px 2px 4px 8px;
}

.cf-mark {
  width: 36px;
  height: 24px;
  display: block;
}

.brand-name {
  margin-top: 1px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #111;
  line-height: 1;
}

.brand-links {
  margin-top: 2px;
  font-size: 8px;
  color: #6b6b6b;
  line-height: 1;
  white-space: nowrap;
}

.brand-links a {
  color: #6b6b6b;
  text-decoration: underline;
  text-underline-offset: 1px;
}

.brand-links a:focus-visible {
  outline: 2px solid var(--cf-orange);
  outline-offset: 2px;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-root[hidden] {
  display: none;
}

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  animation: fade 0.2s ease both;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 28px 24px 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  animation: modalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.modal-cloud {
  width: 36px;
  height: 24px;
  display: block;
  flex: 0 0 36px;
}

.modal-wordmark {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #111;
  line-height: 1;
}

.modal h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-family: var(--font);
}

.modal-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 18px;
}

.info-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  display: grid;
  place-items: center;
  line-height: 1;
}

.modal-info-copy {
  min-width: 0;
}

.modal-info-copy p {
  margin: 0 0 8px;
  color: var(--cf-muted);
  font-size: 14px;
  line-height: 1.5;
}

.modal-info-copy p:last-child {
  margin-bottom: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--cf-line);
  border-radius: 6px;
  background: #fafafa;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.steps li.is-done {
  border-color: #b7e0c0;
  background: #f3fbf5;
}

.steps li.is-done .step-index {
  background: #2c7a3f;
}

.step-state {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.steps li.is-done .step-state {
  color: #2c7a3f;
}

.step-status {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--cf-muted);
  min-height: 1.2em;
}

.step-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1d1d1d;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 22px;
}

.step-copy {
  font-size: 14px;
  font-weight: 500;
}

kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: #1d1d1d;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
}

@media (max-width: 480px) {
  .cf-page {
    padding: 24px 16px;
  }

  h1 {
    font-size: 22px;
  }
}
