:root {
  --ink: #17243d;
  --blue: #1d49ff;
  --muted: #66738a;
  --line: #dce5f7;
  --green: #0d9162;
  --amber: #9a6500;
  --red: #c33145;
}
* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f2f6ff 0, #f8faff 54%, #fff 100%);
  font:
    16px/1.5 Geist,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.7;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 48px));
  margin: auto;
  padding: 24px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  display: block;
  width: 34px;
  height: 34px;
}
.brand strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.back {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.nav-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.language-switch button {
  min-width: 31px;
  padding: 5px 6px;
  border: 0;
  border-radius: 6px;
  color: #65748d;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
}
.language-switch button[aria-pressed='true'] {
  color: #fff;
  background: var(--blue);
}
main {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto 70px;
}
.intro {
  padding: 42px 0 28px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}
.intro h1 {
  margin: 0;
  font-size: clamp(39px, 7vw, 58px);
  font-weight: 550;
  line-height: 1.06;
  letter-spacing: -2.2px;
}
.intro p:last-child {
  max-width: 530px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 18px;
}
.test-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 55px -36px #1d49ff75;
}
.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  color: #9aa7b9;
  font-size: 12px;
  font-weight: 600;
}
.progress .is-active {
  color: var(--blue);
}
.progress .is-done {
  color: var(--green);
}
.progress i {
  width: 42px;
  height: 1px;
  background: #dbe4f1;
  transition: background-color 0.25s ease;
}
.progress i.is-done {
  background: var(--green);
}
.notice {
  display: grid;
  gap: 5px;
  margin: 32px;
  padding: 17px;
  border: 1px solid #f0d890;
  border-radius: 13px;
  color: #725200;
  background: #fff8e4;
}
.notice span {
  font-size: 14px;
}
.test-shell > div:not(.progress):not(.notice) {
  padding: 35px clamp(24px, 6vw, 52px) 42px;
}
.test-shell h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-align: center;
}
.subhead {
  margin: 10px auto 26px;
  color: var(--muted);
  text-align: center;
}
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.method-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: #fff;
  text-align: left;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}
.method-card:hover {
  transform: translateY(-2px);
}
.method-card.is-selected {
  border-color: #99b2ff;
  background: #f2f6ff;
  box-shadow: 0 0 0 3px #1d49ff12;
}
.method-card strong {
  margin: 13px 0 3px;
  font-size: 16px;
}
.method-card small {
  color: var(--muted);
  font-size: 12px;
}
.method-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 9px;
  color: #fff;
  background: var(--blue);
  font-size: 17px;
  font-weight: 900;
}
.qr-icon {
  grid-template-columns: repeat(2, 6px);
  grid-template-rows: repeat(2, 6px);
  gap: 4px;
  padding: 5px;
}
.qr-icon i {
  width: 6px;
  height: 6px;
  background: #fff;
}
.phone-field {
  margin-top: 22px;
}
label,
small {
  display: block;
}
label {
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
}
input {
  width: 100%;
  padding: 14px;
  border: 1px solid #bdcadb;
  border-radius: 11px;
  outline: none;
}
input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #0f59dc1a;
}
.phone-field small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}
.form-status {
  min-height: 23px;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 14px;
}
.primary,
.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.primary {
  gap: 16px;
  border: 1px solid var(--blue);
  color: #fff;
  background: var(--blue);
  box-shadow: none;
}
.primary:hover { background: #173dd4; }
.primary span {
  font-size: 20px;
}
.secondary {
  border: 1px solid #d4dfed;
  color: #2e4161;
  background: #fff;
}
.safe-note {
  margin: 13px 0 0;
  color: #7d8aa0;
  font-size: 12px;
  text-align: center;
}
.result-badge {
  width: max-content;
  margin: 0 auto 13px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #1b8761;
  background: #eaf9f2;
  font-size: 12px;
  font-weight: 600;
}
.status {
  min-height: 24px;
  margin: 11px auto 18px;
  color: var(--amber);
  text-align: center;
}
.status.success {
  color: var(--green);
}
.status.error {
  color: var(--red);
}
.qr-area {
  max-width: 285px;
  margin: 0 auto 9px;
  text-align: center;
}
.qr-area img {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.qr-area p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.refund-qr-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
  max-width: 440px;
  margin: 24px auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f7f9ff;
  text-align: center;
}
.refund-qr-card > p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.refund-qr-card > img {
  display: block;
  width: min(256px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px -16px #17243d50;
}
.refund-qr-card > img + p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #dbe4ff;
  border-radius: 999px;
  color: var(--blue);
  background: #edf2ff;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.refund-qr-card > img + p::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.actions {
  display: flex;
  gap: 10px;
}
.actions .primary,
.actions .secondary {
  flex: 1;
  margin-top: 10px;
}
.text-button {
  display: block;
  width: 100%;
  margin-top: 17px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
#newTest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  margin: 16px auto 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9ff;
  font-size: 13px;
}
#newTest::before {
  content: '↻';
  font-size: 19px;
  line-height: 1;
}
#newTest:hover {
  border-color: #99b2ff;
  background: #edf2ff;
}
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 25px;
  border-top: 1px solid var(--line);
  color: #7b879b;
  font-size: 12px;
  text-align: center;
}
.legal-links { display: flex; gap: 14px; }
.legal-links a { color: #536b96; text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .refund-qr-card {
    padding: 18px 14px;
    margin: 20px auto;
    border-radius: 16px;
  }
  .nav {
    width: min(100% - 28px, 1000px);
    padding: 16px 0;
  }
  main {
    width: min(100% - 28px, 760px);
    margin-bottom: 45px;
  }
  .intro {
    padding-top: 34px;
  }
  .intro h1 {
    font-size: 43px;
  }
  .intro p:last-child {
    font-size: 16px;
  }
  .test-shell {
    border-radius: 19px;
  }
  .progress {
    gap: 7px;
    padding: 15px 8px;
  }
  .progress i {
    width: 25px;
  }
  .test-shell > div:not(.progress):not(.notice) {
    padding: 27px 19px 30px;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .method-card {
    min-height: 104px;
  }
  .back {
    font-size: 13px;
  }
  .nav-tools {
    gap: 8px;
  }
  .language-switch button {
    min-width: 28px;
    padding: 5px 4px;
  }
}

/* The signup offer remains available even when the live payment test is offline. */
.trial-offer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; margin: 0 0 24px; border: 1px solid #cbd9ff; border-radius: 16px; background: #eaf0ff; }
.trial-offer-copy { min-width: 0; }
.trial-offer h2 { margin: 0 0 5px; color: var(--ink); font-size: 20px; font-weight: 600; line-height: 1.3; letter-spacing: -.4px; }
.trial-offer p { margin: 0; color: #315bd2; font-size: 14px; line-height: 1.5; }
.trial-offer-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; flex-shrink: 0; min-height: 48px; padding: 12px 18px; border: 1px solid var(--blue); border-radius: 9px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 550; line-height: 1.4; text-decoration: none; }
.trial-offer-button:hover { background: #173dd4; border-color: #173dd4; }
@media(max-width:600px) {
  .trial-offer { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; margin-bottom: 20px; }
  .trial-offer h2 { font-size: 19px; }
  .trial-offer-button { width: 100%; }
}

@media (max-width: 1000px) {
  .brand, .back, .legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .language-switch button { min-width: 44px; min-height: 44px; }
}
@media (max-width: 520px) {
  .nav { display: grid; grid-template-columns: 1fr auto; row-gap: 2px; }
  .nav-tools { display: contents; }
  .back { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 520px) {
  .intro h1 { font-size: clamp(30px, 8.5vw, 38px); line-height: 1.12; letter-spacing: -1.2px; }
}
