.testing-storefront {
  --testing-brand: var(--brand-dark-blue, #01045b);
  --testing-gradient: linear-gradient(to right, var(--testing-brand), #294d9a, var(--testing-brand));
  --testing-ink: #142c45;
  --testing-muted: #52637a;
  --testing-link: #245c9d;
  --testing-line: #dce5ee;
  --testing-surface: #f4f7fb;
  --testing-tint: #eaf1fb;
  --testing-gutter: clamp(20px, 3.75vw, 48px);
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: #fff;
  color: var(--testing-ink);
  font: 300 14px/1.75 var(--cn-font);
  font-synthesis: none;
}

.testing-page, .testing-page *, .testing-dialog, .testing-dialog * { box-sizing: border-box; }
.testing-page { display: flex; flex: 1; flex-direction: column; }
.testing-page :is(h1, h2, h3, p, ul, ol), .testing-dialog :is(h2, p, form) { margin: 0; }
.testing-page a, .testing-dialog a { color: var(--testing-link); }
.testing-page :focus-visible, .testing-dialog :focus-visible, .testing-skip:focus-visible {
  outline: 2px solid var(--testing-link);
  outline-offset: 4px;
}
.testing-skip {
  position: fixed;
  z-index: 10001;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  background: #fff;
  color: var(--testing-brand);
  transform: translateY(-200%);
}
.testing-skip:focus { transform: none; }

.testing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4vw, 52px) var(--testing-gutter);
  background: var(--testing-tint);
}
.testing-hero-photo, .testing-hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Frame the original rooftop sign on the right without modifying the photograph. */
.testing-hero-photo {
  z-index: -2;
  left: calc(95% - min(87vw, 1536px));
  width: min(145vw, 2560px);
  max-width: none;
  object-fit: cover;
  object-position: center 10%;
}
.testing-hero::before {
  content: '';
  z-index: -1;
  background: linear-gradient(90deg, #f4f7fb 3%, #f4f7fbef 34%, #f4f7fbd9 57%, #f4f7fb38 70%, transparent 78%);
}
.testing-hero-grid, .testing-process-heading, .testing-process .testing-steps { max-width: 1320px; margin-inline: auto; }
.testing-hero-grid {
  display: grid;
  grid-template-columns: minmax(265px, 28%) minmax(0, 1fr);
  gap: 20px;
}
.testing-intro { align-self: center; min-width: 0; }
.testing-intro-copy { max-width: 480px; }

@media (min-width: 761px) {
  .testing-intro { grid-area: 1 / 2; padding-inline-start: clamp(12px, 3vw, 48px); }
  .testing-account { grid-area: 1 / 1; }
}
.testing-intro h1 {
  margin-bottom: 14px;
  color: var(--testing-brand);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .065em;
}
.testing-intro p { max-width: 24em; color: var(--testing-muted); }
.testing-process-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 19px;
  font-weight: 400;
  text-decoration: none;
}
.testing-process-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.testing-process-link i { transition: transform .25s ease; }
.testing-process-link:is(:hover, :focus-visible) i { transform: translateY(3px); }
.testing-account {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(25px, 2.3vw, 34px) clamp(21px, 2.3vw, 30px);
  border: 1px solid #c9d7e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 9px 24px #162d5212;
  transition: border-color .25s ease;
}
.testing-account:focus-within { border-color: #8da8cd; }
.testing-account-heading { display: grid; justify-items: center; margin-bottom: 28px; text-align: center; }
.testing-account-heading h2 { margin-top: 8px; color: var(--testing-brand); font-size: 22px; font-weight: 700; line-height: 1.3; }
.testing-account-heading p { margin-top: 6px; color: var(--testing-muted); font-size: 13px; }
.testing-account-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--testing-tint);
  color: var(--testing-link);
  font-size: 22px;
}
.testing-account-fields {
  display: grid;
  gap: 4px;
  min-inline-size: 0;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  color: var(--testing-ink);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}
.testing-account-fields label:not(:first-child) { margin-top: 5px; }
.testing-account-fields input {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--testing-line);
  border-radius: 7px;
  background: var(--testing-surface);
  color: var(--testing-muted);
  font: inherit;
  opacity: 1;
}
.testing-account-fields input::placeholder { color: var(--testing-muted); opacity: 1; }
.testing-account-fields input:disabled { cursor: not-allowed; }
.testing-account .testing-account-benefits {
  display: grid;
  gap: 5px;
  padding: 9px 0 0;
  border-top: 1px solid var(--testing-line);
  list-style: none;
}
.testing-account-benefits li { display: flex; align-items: center; gap: 9px; color: var(--testing-muted); font-size: 10px; line-height: 1.45; }
.testing-account-benefits li::before { content: ''; width: 4px; height: 4px; flex: none; border-radius: 50%; background: #5179ac; }
.testing-account-actions { display: grid; gap: 5px; margin-block: 10px 6px; text-align: center; }
.testing-account-actions p { color: var(--testing-muted); font-size: 10px; }
.testing-account .testing-account-register { margin-inline-start: 5px; font-weight: 400; text-underline-offset: 3px; }

.testing-page .testing-action, .testing-dialog .testing-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: background-color .25s, border-color .25s;
}
.testing-page .testing-action-login, .testing-dialog .testing-action-login { background: var(--testing-brand); color: #fff; }
.testing-action-login:is(:hover, :focus-visible) { background: #294d9a; }
.testing-account .testing-action-login {
  background: var(--testing-brand) var(--testing-gradient) left center / 200% auto;
  transition: background-position .5s ease;
}
.testing-account .testing-action-login:is(:hover, :focus-visible) { background-position: right center; }

.testing-process {
  padding: clamp(28px, 3.3vw, 44px) var(--testing-gutter) clamp(32px, 4vw, 54px);
  border-top: 1px solid var(--testing-line);
  background: var(--testing-surface);
  scroll-margin-top: var(--site-header-height, 74px);
}
.testing-process-heading { margin-bottom: 14px; }
.testing-process h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--testing-brand);
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.3;
}
.testing-process h2::before { content: ''; width: 3px; height: .86em; background: var(--testing-brand); }
.testing-process-heading p { margin: 7px 0 0 14px; color: var(--testing-muted); }
.testing-process .testing-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
  counter-reset: testing-step;
}
.testing-steps li {
  position: relative;
  counter-increment: testing-step;
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-items: center;
  column-gap: 8px;
  padding: 12px 14px;
  border: 1px solid #243675;
  border-radius: 9px;
  background: var(--testing-brand) var(--testing-gradient) left center / 200% auto;
  color: #fff;
  transition: background-position .5s ease, transform .3s ease, box-shadow .3s ease;
}
.testing-steps li:is(:hover, :focus-within) {
  background-position: right center;
  transform: translateY(-3px);
  box-shadow: 0 7px 16px #162e772b;
}
.testing-steps li::before {
  content: counter(testing-step, decimal-leading-zero);
  position: absolute;
  top: 15px;
  right: 13px;
  color: #c6d7fa;
  font-size: 12px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.testing-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -13px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #7896b8;
  border-right: 1px solid #7896b8;
  transform: translateY(-50%) rotate(45deg);
}
.testing-step-icon { display: grid; place-items: center; height: 26px; color: #d3e2ff; font-size: 15px; transition: transform .3s; }
.testing-steps li:is(:hover, :focus-within) .testing-step-icon { transform: scale(1.08); }
.testing-steps h3 { padding-right: 16px; font-size: 15px; font-weight: 400; }
.testing-steps p { grid-column: 1 / -1; margin-top: 4px; padding-top: 5px; border-top: 1px solid #c6d7fa45; color: #e4edff; font-size: 13px; line-height: 1.55; }
.testing-steps .testing-download { grid-column: 1 / -1; justify-self: end; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 4px; color: #fff; font-size: 15px; text-decoration: none; }
.testing-steps .testing-download:hover { background: #ffffff24; }

.testing-steps .testing-download:focus-visible { outline-color: #fff; }

.testing-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--testing-line);
  border-radius: 14px;
  background: #fff;
  color: var(--testing-ink);
  box-shadow: 0 20px 64px #142c4533;
}
.testing-dialog[open] { animation: testing-dialog-in .27s ease-out both; }
.testing-dialog::backdrop { background: #142c4552; backdrop-filter: blur(3px); }
@keyframes testing-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.testing-dialog-heading { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--testing-line); background: var(--testing-surface); }
.testing-dialog-heading h2 { color: var(--testing-brand); font-size: 16px; font-weight: 400; }
.testing-dialog button { border: 0; background: var(--testing-tint); color: var(--testing-brand); border-radius: 7px; width: 34px; height: 34px; cursor: pointer; }
.testing-dialog-body { display: grid; justify-items: center; gap: 14px; padding: 30px 20px; text-align: center; }
.testing-dialog-body p { color: var(--testing-muted); }
.testing-help { font-size: 13px; }

/* Fit the desktop content and shared footer into one viewport when space permits. */
@media (min-width: 961px) {
  .testing-hero {
    flex: 2 0 auto;
    align-content: center;
    padding-block: clamp(12px, calc(8svh - 44px), 48px);
  }
  .testing-intro-copy { padding-block: 10px; }
  .testing-account { min-height: 464px; padding-block: 28px 22px; }
  .testing-process {
    flex: 1 0 auto;
    align-content: center;
    padding-block: clamp(13px, calc(5svh - 22px), 34px);
  }
  .testing-process h2 { font-size: 24px; }
  .testing-process-heading p { margin: 0; }
  .testing-process-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
}
@media (min-width: 1100px) and (max-height: 700px) {
  .testing-hero { padding-block: 6px; }
  .testing-account { min-height: 432px; padding-block: 14px; }
  .testing-process { padding-block: 7px; }
  .testing-steps li { padding-block: 10px; }
  .testing-steps li::before { top: 13px; }
}
@media (max-width: 960px) {
  .testing-process .testing-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .testing-steps li::after { display: none; }
}
@media (max-width: 760px) {
  .testing-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .testing-hero { background: var(--testing-surface); }
  .testing-hero-photo {
    left: calc(50% - max(528px, 99vw));
    width: max(960px, 180vw);
    height: 200px;
    object-position: center 14%;
  }
  .testing-hero::before { background: linear-gradient(180deg, transparent 95px, #f4f7fb88 155px, #f4f7fb 200px); }
  .testing-intro-copy { padding-block: 165px 22px; }
}
@media (max-width: 575px) {
  .testing-intro h1 { font-size: clamp(25px, 6.7vw, 30px); line-height: 1.4; letter-spacing: .045em; }
}
@media (max-width: 480px) {
  .testing-intro-copy { padding: 165px 4px 18px; }
  .testing-intro h1 { margin-bottom: 9px; }
  .testing-process-link { margin-top: 7px; }
  .testing-process .testing-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testing-steps li { padding: 12px; }
  .testing-steps li::before { right: 12px; }
  .testing-steps li:last-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .testing-dialog[open] { animation: none; }
  .testing-page :is(.testing-process-link i, .testing-account, .testing-action, .testing-steps li, .testing-step-icon),
  .testing-account .testing-action-login, .testing-dialog .testing-action { transition: none; }
  .testing-process-link:is(:hover, :focus-visible) i,
  .testing-steps li:is(:hover, :focus-within), .testing-steps li:is(:hover, :focus-within) .testing-step-icon { transform: none; }
}
