:root {
  color-scheme: light;
  --bg: #f6f4ee;
  --panel: #fffdf8;
  --ink: #171717;
  --muted: #68645d;
  --line: #ded8cd;
  --accent: #0f766e;
  --accent-strong: #134e4a;
  --warn: #b42318;
  --ok: #166534;
  --blue: #204c74;
  --shadow: 0 24px 60px rgba(30, 27, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.14), transparent 32%),
    linear-gradient(315deg, rgba(32, 76, 116, 0.13), transparent 34%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell {
  width: min(1040px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: center;
  padding: 40px 0;
}

.claim-panel,
.status-panel {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.claim-panel {
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
}

.status-panel {
  border-radius: 8px;
  padding: 28px;
}

.brand-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 36px;
}

.mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--ink);
  padding: 11px;
}

.mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.kicker,
.status-label {
  margin: 0 0 4px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.25rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 720px;
}

.claim-form {
  display: grid;
  gap: 10px;
}

label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 680;
}

.input-row,
.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  min-width: 0;
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0 16px;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

button {
  min-width: 104px;
  height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  padding: 0 18px;
}

button:hover {
  background: var(--accent-strong);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.message {
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.message[data-tone="success"] {
  color: var(--ok);
}

.message[data-tone="error"] {
  color: var(--warn);
}

.result {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #cdd9d5;
  border-radius: 8px;
  background: #f4fbf8;
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.result-header p {
  margin: 0;
  font-weight: 760;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #dff4ec;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 760;
  padding: 4px 10px;
  white-space: nowrap;
}

#credit-link {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.open-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.status-number {
  margin: 0;
  font-size: 4rem;
  line-height: 1;
  font-weight: 820;
}

.stats {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.stats div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

dt,
dd {
  margin: 0;
}

dt {
  color: var(--muted);
}

dd {
  font-weight: 780;
}

.site-footer {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  padding-top: 2px;
  color: var(--muted);
}

.footer-statement {
  margin: 0;
  max-width: 780px;
  font-size: 0.95rem;
  line-height: 1.55;
}

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

.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
}

.related-card-body {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 100%;
  padding: 24px;
}

.related-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.related-card p {
  margin: 0;
  color: #4f4b45;
  font-size: 1rem;
  line-height: 1.55;
}

.related-card a {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  padding: 0 18px;
  font-weight: 760;
  text-decoration: none;
}

.related-card a:visited {
  color: #fff;
}

.related-card a:hover {
  background: #2a2a2a;
  color: #fff;
}

@media (max-width: 780px) {
  .app-shell {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .status-panel {
    order: -1;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100vw - 24px, 1040px);
    padding: 20px 0;
  }

  .brand-row {
    align-items: flex-start;
  }

  .input-row,
  .copy-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
