
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --text: #151515;
  --muted: #62666d;
  --line: #e2e5e9;
  --brand: #ffcc00;
  --brand-dark: #191919;
  --success: #16794b;
  --success-bg: #eaf7f0;
  --failure: #b42318;
  --failure-bg: #fff0ee;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  background:
    linear-gradient(135deg, rgba(255, 204, 0, 0.98), rgba(255, 219, 76, 0.94));
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 56px 0 44px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 850px;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

code {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 7px;
  padding: 0.12em 0.35em;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.summary span {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 0.92rem;
}

.notice {
  max-width: 850px;
  margin-top: 22px;
  border-left: 4px solid var(--brand-dark);
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 0 10px 10px 0;
}

.jump-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 24px 0 4px;
}

.jump-links a {
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.jump-links a:hover {
  border-color: #aeb4bc;
}

.test-section {
  padding: 34px 0 18px;
  scroll-margin-top: 20px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
}

.section-kicker {
  color: var(--muted);
}

.count {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.test-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.test-card.success {
  border-top: 4px solid var(--success);
}

.test-card.failure {
  border-top: 4px solid var(--failure);
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.case-id {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-head h3 {
  margin: 0;
  font-size: 1.12rem;
}

.card-head h3 span {
  color: #a4a8ae;
  font-weight: 400;
}

.status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.76rem;
  font-weight: 800;
}

.success .status {
  color: var(--success);
  background: var(--success-bg);
}

.failure .status {
  color: var(--failure);
  background: var(--failure-bg);
}

.test-body {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
}

.qr-wrap {
  text-align: center;
}

.qr-wrap img {
  width: 122px;
  height: 122px;
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px;
}

.qr-wrap span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.74rem;
}

.details {
  min-width: 0;
}

.field + .field {
  margin-top: 14px;
}

.field-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field code {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 9px 10px;
  background: #f4f5f7;
  border: 1px solid #e7e9ec;
  border-radius: 10px;
  font-size: 0.8rem;
  line-height: 1.35;
}

.field p {
  margin: 0;
  color: #44484e;
  font-size: 0.93rem;
}

.open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 16px;
  padding: 9px 13px;
  background: var(--brand-dark);
  color: white;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
}

.open-button:hover {
  opacity: 0.86;
}

footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.86rem;
}

footer p {
  margin: 0;
}

@media (max-width: 850px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 40px 0 32px;
  }

  .container {
    width: min(100% - 22px, 1180px);
  }

  .test-body {
    grid-template-columns: 1fr;
  }

  .qr-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .qr-wrap img {
    width: 104px;
    height: 104px;
  }

  .qr-wrap span {
    margin-top: 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 4px;
  }

  .open-button {
    width: 100%;
  }
}
