:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172033;
  background: #f5f7fb;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 15% 8%, rgba(58, 123, 255, .11), transparent 28rem),
    radial-gradient(circle at 92% 88%, rgba(74, 212, 169, .1), transparent 26rem),
    #f5f7fb;
}

button { font: inherit; }

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
}

.card {
  width: min(100%, 430px);
  padding: 42px 34px 34px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 22px 70px rgba(30, 46, 78, .12);
  backdrop-filter: blur(18px);
  animation: card-in .45s cubic-bezier(.2, .8, .2, 1);
}

.hidden { display: none !important; }

.brand-mark,
.icon-wrap,
.success-ring {
  width: 62px;
  height: 62px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 19px;
}

.brand-mark {
  color: white;
  font-size: 28px;
  font-weight: 750;
  background: linear-gradient(145deg, #2d72f4, #58a5ff);
  box-shadow: 0 12px 28px rgba(45, 114, 244, .28);
}

.icon-wrap.warning {
  color: #e8971b;
  background: #fff6df;
}

.icon-wrap svg,
.success-ring svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.eyebrow {
  margin: 0 0 9px;
  color: #3979e8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 7vw, 30px);
  line-height: 1.25;
  letter-spacing: -.025em;
}

.muted {
  margin: 13px auto 28px;
  color: #778196;
  font-size: 15px;
  line-height: 1.7;
}

.privacy-note {
  margin: 16px 0 0;
  color: #a0a8b7;
  font-size: 12px;
}

.guide {
  margin: 4px 0 24px;
  padding: 17px 18px;
  text-align: left;
  border-radius: 16px;
  background: #f6f8fc;
}

.step { display: flex; align-items: center; gap: 12px; }
.step + .step { margin-top: 12px; }
.step span { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; color: #3979e8; font-size: 12px; font-weight: 700; border-radius: 50%; background: #e5efff; }
.step p { margin: 0; color: #667187; font-size: 14px; line-height: 1.5; }

.primary-button {
  width: 100%;
  min-height: 50px;
  color: white;
  font-weight: 650;
  border: 0;
  border-radius: 14px;
  background: #2d72f4;
  box-shadow: 0 10px 24px rgba(45, 114, 244, .24);
  cursor: pointer;
}

.primary-button:active { transform: translateY(1px); }
.feedback { min-height: 18px; margin: 12px 0 -8px; color: #30a16f; font-size: 13px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#intro { width: min(calc(100% - 28px), 300px); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#intro .robot-check { min-height: 72px; gap: 10px; padding: 7px 10px; border: 1px solid #d4d7db; border-radius: 2px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
#intro .robot-check:hover { border-color: #aeb5bd; box-shadow: 0 1px 5px rgba(0, 0, 0, .22); }
#intro .robot-checkbox { width: 26px; height: 26px; border: 2px solid #9ca1a6; border-radius: 1px; }
#intro .robot-copy strong { color: #202124; font-size: 14px; font-weight: 400; white-space: nowrap; }
.secure-verify-mark { flex: 0 0 auto; width: 70px; height: 58px; display: flex; align-items: center; flex-direction: column; justify-content: center; overflow: visible; }
.secure-verify-mark img { flex: 0 0 auto; display: block; width: 32px; height: 32px; }
.secure-verify-mark strong { margin-top: 2px; color: #3c4043; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: 400; line-height: 11px; white-space: nowrap; }
.secure-verify-mark small { margin-top: 1px; color: #555; font-family: Arial, Helvetica, sans-serif; font-size: 7px; font-weight: 400; line-height: 8px; white-space: nowrap; }
#preparing { width: min(calc(100% - 32px), 360px); padding: 28px 26px 24px; }
#preparing h1 { font-size: 21px; }
#preparing .muted { margin: 9px auto 22px; font-size: 13px; line-height: 1.55; }
#preparing.final-stage { position: relative; overflow: hidden; border: 1px solid #cfd3d8; background: #fff; box-shadow: 0 12px 32px rgba(30, 35, 42, .14); }
#preparing.final-stage h1,
#preparing.final-stage .muted { text-align: left; }
#preparing.final-stage .progress-label { text-align: right; }

html[lang="en"] #intro,
html[lang="pt"] #intro,
html[lang="es"] #intro,
html[lang="en"] #preparing,
html[lang="pt"] #preparing,
html[lang="es"] #preparing { width: min(calc(100vw - 40px), 360px); }

html[lang="en"] #intro .robot-copy strong,
html[lang="pt"] #intro .robot-copy strong,
html[lang="es"] #intro .robot-copy strong { white-space: normal; line-height: 1.2; }

.robot-check { width: 100%; min-height: 82px; display: flex; align-items: center; gap: 14px; padding: 14px 15px; text-align: left; color: #172033; border: 1px solid #dce3ed; border-radius: 15px; background: #f7f9fc; box-shadow: 0 5px 16px rgba(35, 55, 88, .06); cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.robot-check:hover { border-color: #8db7ff; box-shadow: 0 8px 22px rgba(45, 114, 244, .11); }
.robot-check:active { transform: scale(.99); }
.robot-checkbox { flex: 0 0 auto; width: 29px; height: 29px; border: 2px solid #9ba7b9; border-radius: 5px; background: white; }
.robot-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 4px; }
.robot-copy strong { font-size: 15px; font-weight: 650; }
.robot-copy small { color: #929bad; font-size: 11px; }
.robot-badge { flex: 0 0 auto; width: 39px; height: 39px; display: grid; place-items: center; color: #4387f5; border-radius: 11px; background: #e7f0ff; }
.robot-badge svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.success-ring {
  color: #24a66f;
  border-radius: 50%;
  background: #e8f8f1;
}

.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e5e9ef; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1677ff, #5ba7ff); }
.progress-label { margin: 12px 0 0; color: #737c8a; font-size: 13px; font-variant-numeric: tabular-nums; }

.spinner {
  width: 58px;
  height: 58px;
  margin: 2px auto 24px;
  border: 5px solid #e5eaf3;
  border-top-color: #2d72f4;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.loading-dots { display: flex; justify-content: center; gap: 7px; }
.loading-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9eb0ca; animation: dot 1.2s ease-in-out infinite; }
.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }
.browser-mismatch .spinner,
.browser-mismatch .loading-dots { display: none; }
.browser-mismatch .muted { margin-bottom: 0; }
.safari-compass { display: none; }
.browser-mismatch .safari-compass { width: 56px; height: 56px; max-width: 56px; max-height: 56px; display: block; margin: 0 auto 17px; overflow: hidden; }
.browser-mismatch .safari-compass svg { display: block; width: 56px !important; height: 56px !important; max-width: 56px !important; max-height: 56px !important; }

#loading { width: min(calc(100% - 32px), 340px); padding: 34px 24px 30px; }
#loading .spinner { width: 48px; height: 48px; margin: 0 auto 20px; border-width: 4px; }
#loading h1 { font-size: 22px; line-height: 1.3; }
#loading .muted { margin: 11px auto 20px; font-size: 14px; line-height: 1.6; }
#loading .loading-dots { gap: 6px; }
#loading .loading-dots i { width: 6px; height: 6px; }
#loading.browser-mismatch { padding-top: 28px; padding-bottom: 29px; }
#loading.browser-mismatch h1 { font-size: 18px; line-height: 1.45; }
#loading.browser-mismatch .muted { max-width: 285px; margin-top: 9px; font-size: 13px; line-height: 1.7; }

@media (max-width: 360px) {
  #loading { width: calc(100% - 24px); padding: 29px 19px 26px; }
  #loading .spinner { width: 44px; height: 44px; margin-bottom: 18px; }
  #loading h1 { font-size: 20px; }
  #loading .muted { font-size: 13px; }
  #loading.browser-mismatch h1 { font-size: 17px; }
  #loading.browser-mismatch .muted { font-size: 12px; }
  .browser-mismatch .safari-compass { width: 52px; height: 52px; max-width: 52px; max-height: 52px; margin-bottom: 15px; }
  .browser-mismatch .safari-compass svg { width: 52px !important; height: 52px !important; max-width: 52px !important; max-height: 52px !important; }
}

@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dot { 0%, 65%, 100% { opacity: .35; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-5px); } }

@media (max-width: 480px) {
  .card { padding: 36px 22px 28px; border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Cloud-console inspired visual theme. No third-party logo or official branding. */
:root { color: #1f2329; background: #f5f7fa; }
body { background: linear-gradient(180deg, #eef3f8 0, #f7f9fb 240px, #f5f7fa 100%); }
.shell { align-items: center; }
.card { width: min(100%, 390px); padding: 30px 28px 26px; border: 1px solid #dfe4ea; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgba(25, 38, 55, .1); backdrop-filter: none; }
h1 { color: #1f2329; font-size: 24px; font-weight: 600; letter-spacing: 0; }
.eyebrow { color: #1677ff; font-weight: 600; letter-spacing: .08em; }
.muted { color: #737c8a; }
.robot-check { min-height: 76px; border-color: #d8dee8; border-radius: 3px; background: #f7f8fa; box-shadow: none; }
.robot-check:hover { border-color: #1677ff; box-shadow: 0 0 0 2px rgba(22, 119, 255, .08); }
.robot-checkbox { border-color: #9aa5b1; border-radius: 2px; }
.robot-badge { color: #1677ff; border-radius: 3px; background: #eaf3ff; }
.primary-button { border-radius: 3px; background: #1677ff; box-shadow: none; }
.icon-wrap.warning { color: #ff8b00; border-radius: 4px; background: #fff7e8; }
.guide { border: 1px solid #e6eaf0; border-radius: 3px; background: #f7f8fa; }
.step span { color: #1677ff; background: #e8f2ff; }
.progress-bar { background: #1677ff; }
.spinner { border-top-color: #1677ff; }
.success-ring { color: #00a870; background: #e8f8f2; }

@media (max-width: 480px) {
  .card { width: calc(100% - 30px); padding: 27px 22px 24px; border-radius: 5px; }
}
