:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, sans-serif;
  background: #171b22;
  color: #f4f1ea;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 90% 0%, #2a3541, transparent 55%), #171b22;
}
main {
  width: min(100%, 1100px);
  margin: auto;
  padding: max(46px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
header { padding-block: clamp(6px, 4vw, 48px) clamp(28px, 5vw, 56px); }
.brand { display: flex; align-items: center; gap: 12px; color: #c3d0dd; font-size: .78rem; font-weight: 750; letter-spacing: .15em; }
.brand img { border-radius: 11px; }
h1 { margin: .32em 0 .1em; font-size: clamp(2.45rem, 8vw, 5.7rem); line-height: .99; letter-spacing: -.065em; }
header p { margin: 14px 0 0; font-size: clamp(1.08rem, 2.7vw, 1.4rem); color: #becbd8; }
.tests { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.test {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: 22px 10px;
  align-items: end;
  min-height: 182px;
  padding: 22px;
  border: 1px solid #465363;
  border-radius: 18px;
  background: #202833;
  color: inherit;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.test:hover { background: #2a3745; border-color: #9eb4ca; }
.test-featured { background: #243941; border-color: #547985; }
.test-featured:hover { background: #2e4650; border-color: #a0c7cf; }
.test-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: #354554; color: #e1eef8; }
.test-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.test-copy { grid-column: 1; grid-row: 2; display: grid; gap: 5px; }
.test-copy strong { font-size: 1.45rem; letter-spacing: -.025em; }
.test-copy span { color: #c2ceda; font-size: .92rem; line-height: 1.35; }
.arrow { grid-column: 2; grid-row: 2; align-self: center; font-size: 1.4rem; color: #b5d2e4; }
.disclosure { padding-inline: clamp(14px, 3vw, 24px); border: 1px solid #465363; border-radius: 14px; background: #202833; color: #c2ceda; font-size: .95rem; line-height: 1.5; }
.disclosure summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding-block: 10px; cursor: pointer; list-style: none; color: #f4f1ea; font-weight: 650; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure-arrow { width: 9px; height: 9px; margin-inline: 5px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.disclosure[open] .disclosure-arrow { transform: rotate(225deg) translateY(-2px); }
.overview { margin-top: 24px; }
.overview-cross { display: none; font-size: 1.5rem; line-height: 1; }
.overview[open] .overview-cross { display: inline; }
.overview[open] .disclosure-arrow { display: none; }
.overview-close { justify-self: end; min-height: 44px; padding: 8px 18px; border: 1px solid #617388; border-radius: 9px; background: #354554; color: #f4f1ea; font: inherit; cursor: pointer; }
.overview-close:hover { background: #405367; }
.overview-content { display: grid; gap: 18px; padding: 5px 0 17px; }
.overview-content h2 { margin: 0 0 4px; color: #f4f1ea; font-size: 1rem; }
.overview-content p { margin: 0; max-width: 78ch; }
.overview-content p + p { margin-top: 8px; }
.overview-storage { border-top: 1px solid #465363; padding-top: 15px; }
.overview-feedback { color: #e0ebf4; }
.install { margin-top: 10px; }
.install p { margin: 0 0 12px; }
:focus-visible { outline: 3px solid #c3e0f5; outline-offset: 4px; }
@media (max-width: 680px) {
  .tests { grid-template-columns: 1fr; gap: 10px; }
  .test { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; gap: 14px; min-height: 83px; padding: 13px 15px; }
  .test-copy { grid-column: 2; grid-row: 1; }
  .test-copy strong { font-size: 1.19rem; }
  .arrow { grid-column: 3; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { .test { transition: none; } }
