:root {
  --ink: #182018;
  --muted: #667066;
  --line: #dfe4dc;
  --paper: #f4f5f0;
  --card: #ffffff;
  --green: #1d5a3d;
  --green-soft: #e2f2e9;
  --orange: #9a4f13;
  --orange-soft: #fff0de;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(213, 231, 217, 0.85), transparent 32rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 40px;
}

.hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.brand-mark {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  margin-top: 26px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(24, 32, 24, 0.16);
}

.kicker,
.eyebrow {
  margin: 2px 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.intro {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero .kicker,
.hero .intro {
  padding-left: 5px;
}

.search-panel,
.result,
.guide {
  border: 1px solid rgba(215, 221, 212, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 55px rgba(42, 51, 40, 0.07);
}

.search-panel {
  padding: 24px;
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  border: 1px solid #cbd3c9;
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fbfcfa;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 90, 61, 0.12);
}

.search-row > button {
  min-width: 130px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
  transition: transform 0.15s, background 0.15s;
}

.search-row > button:hover {
  background: var(--green);
  transform: translateY(-1px);
}

.examples {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.examples button {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4b564b;
  background: #f7f9f5;
}

.examples button:hover {
  border-color: #aebcaf;
  color: var(--green);
}

.result {
  margin-top: 20px;
  padding: 28px;
}

.result__heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.result h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
}

.hidden {
  display: none !important;
}

.badges {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.badges span {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 700;
}

.badges .badge-secondary {
  color: #545d54;
  background: #eef0ed;
}

.result--motorcycle .badges span:first-child {
  color: var(--orange);
  background: var(--orange-soft);
}

.details {
  margin: 26px 0 0;
  border-top: 1px solid var(--line);
}

.details > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid #e8ebe6;
}

dt {
  color: var(--muted);
  font-size: 13px;
}

dd {
  margin: 0;
  text-align: right;
  line-height: 1.55;
  font-weight: 600;
}

.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.evidence {
  margin-top: 22px;
  padding: 18px;
  border-radius: 16px;
  background: #f1f6f2;
}

.evidence strong {
  font-size: 14px;
}

.evidence p {
  margin: 8px 0;
  color: #4f5c52;
  line-height: 1.65;
}

.evidence small {
  color: var(--muted);
}

.notice {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--orange);
  line-height: 1.65;
}

.candidate-help,
.result--unknown p {
  color: var(--muted);
  line-height: 1.7;
}

.candidates {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.candidates button {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.candidates button:hover {
  border-color: #9eafa1;
  background: #f7faf7;
}

.candidates strong {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 13px;
}

.guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 20px;
  overflow: hidden;
  box-shadow: none;
}

.guide > div {
  padding: 24px;
}

.guide > div + div {
  border-left: 1px solid var(--line);
}

.guide span {
  display: block;
  margin-bottom: 22px;
  color: #9aa39a;
  font: 700 12px ui-monospace, SFMono-Regular, Menlo, monospace;
}

.guide strong {
  display: block;
  margin-bottom: 8px;
}

.guide p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

footer {
  padding: 28px 10px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

footer p {
  margin-bottom: 4px;
}

footer span {
  color: #8c958c;
}

@media (max-width: 640px) {
  main {
    width: min(100% - 24px, 920px);
    padding-top: 30px;
  }

  .hero {
    gap: 15px;
  }

  .brand-mark {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    margin-top: 19px;
    border-radius: 14px;
    font-size: 23px;
  }

  .kicker {
    margin-top: 0;
    font-size: 11px;
  }

  .intro {
    font-size: 15px;
  }

  .search-panel,
  .result {
    padding: 18px;
    border-radius: 20px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-row > button {
    height: 50px;
  }

  .result__heading {
    flex-direction: column;
  }

  .badges {
    justify-content: flex-start;
  }

  .details > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  dd {
    text-align: left;
  }

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

  .guide > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .guide span {
    margin-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
