/* searchmytag.com — design v5: plate-first.
   The license plate is the product: the search box and the result render as
   US plates. Light daytime palette with MUTCD road-sign accents (interstate
   blue, highway-guide green). No images — the plate is pure CSS.
   Type: Overpass (display/headings) / Barlow Condensed (plate characters) /
   Inter (UI) / IBM Plex Mono (data values). */

:root {
  --bg: #f4f5f2;
  --ink: #16181a;
  --ink-soft: #3a3d40;
  --muted: #6a6f73;
  --line: #e2e4e0;
  --card: #ffffff;
  --blue: #00509e;
  --green: #006b3d;
  --green-dark: #00552f;
  --err: #b3261e;
  --err-bg: #faeeed;
  --ok-bg: #ecf4ee;
  --plate-ink: #23305e;
  --plate-metal: #c4c9c8;
  --display: "Overpass", "Inter", system-ui, sans-serif;
  --plate-font: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* The hidden attribute must win over any display rule (e.g. .foot-links a). */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; }
h1 { font-weight: 800; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 760px; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1rem; height: 60px; }
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.logo-mark { display: block; width: 38px; height: 19px; }
.logo:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 1.75rem; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--green); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--ink);
  margin: 4px 0;
}

/* ── The plate (pure CSS, shared by hero search and results) ──────────────── */
.plate {
  position: relative;
  width: min(420px, 92vw);
  aspect-ratio: 2 / 1;
  margin: 0 auto;
  border-radius: 14px;
  background: linear-gradient(180deg, #fdfdfc 0%, #eef0ed 55%, #e4e7e3 100%);
  border: 5px solid #ccd1d0;
  box-shadow:
    inset 0 0 0 2px #ffffff,
    inset 0 0 0 3px var(--plate-metal),
    inset 0 10px 18px -12px rgba(255, 255, 255, 0.9),
    0 18px 34px -18px rgba(22, 24, 26, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.plate:focus-within {
  box-shadow:
    inset 0 0 0 2px #ffffff,
    inset 0 0 0 3px var(--plate-metal),
    inset 0 10px 18px -12px rgba(255, 255, 255, 0.9),
    0 18px 34px -18px rgba(22, 24, 26, 0.4),
    0 0 0 3px rgba(0, 80, 158, 0.35);
}
.plate-strip {
  position: absolute;
  top: 9%;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(0.6rem, 2.6vw, 0.78rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* recenters letterspaced text */
  text-transform: uppercase;
  color: #45507a;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
}
.plate-chars {
  font-family: var(--plate-font);
  font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 4rem);
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--plate-ink);
  text-shadow: 0 -1px 0 rgba(255, 255, 255, 0.85), 0 2px 2px rgba(20, 25, 45, 0.3);
  background: none;
  border: none;
  width: 92%;
  margin-top: 1rem;
  padding: 0;
}
input.plate-chars { outline: none; }
input.plate-chars::placeholder { color: #9aa2b8; text-shadow: none; }
.plate-bolt {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4f5f4, #a9adaa 60%, #83878a);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.35);
}
.plate-bolt:nth-child(1) { top: 7px; left: 24px; }
.plate-bolt:nth-child(2) { top: 7px; right: 24px; }
.plate-bolt:nth-child(3) { bottom: 7px; left: 24px; }
.plate-bolt:nth-child(4) { bottom: 7px; right: 24px; }
.plate-sticker {
  position: absolute;
  right: 10px;
  bottom: 10px;
  rotate: -3deg;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: #f6c445;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.25);
  padding: 0.18rem 0.45rem;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Compact variant (inner-page heroes) and result variant */
.plate-search--compact .plate { width: min(300px, 86vw); border-radius: 11px; }
.plate-search--compact .plate-chars { font-size: clamp(1.9rem, 8vw, 2.7rem); margin-top: 0.8rem; }
.plate-search--compact .btn { display: block; margin: 1.1rem auto 0; }
.plate--result { width: min(360px, 90vw); margin: 0 auto 1.1rem; }
.plate--result .plate-chars { font-size: clamp(2.2rem, 9vw, 3.4rem); }
.plate-chars--long { font-size: clamp(1.1rem, 4.5vw, 1.7rem) !important; letter-spacing: 0.06em; }

/* Business report header (current result layout) */
.report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.75rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
}
.report-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.report-plate {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
}
.report-state {
  margin-left: 0.6rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0;
  color: var(--muted);
}
.report-vehicle { margin: 0.3rem 0 0; color: var(--ink-soft); font-weight: 500; font-size: 0.98rem; }
.report-status { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45rem; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}
.status-pill .status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-pill--ok { background: var(--ok-bg); color: var(--green); border: 1px solid #cbdfd1; }
.status-pill--ok .status-dot { background: var(--green); }
.status-pill--err { background: var(--err-bg); color: var(--err); border: 1px solid #ecc8c5; }
.status-pill--err .status-dot { background: var(--err); }
.status-pill--na { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.status-pill--na .status-dot { background: var(--muted); }
.report-exp { margin: 0; font-size: 0.82rem; color: var(--muted); }

.panel-miss { margin-top: 1.5rem; }

/* ── Home hero ────────────────────────────────────────────────────────────── */
.hero {
  background: var(--card);
  padding: 4.5rem 0 4.75rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.9rem;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.04rem;
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}
.plate-search .btn { display: block; margin: 1.6rem auto 0; }

/* ── Page hero (inner pages) ──────────────────────────────────────────────── */
.page-hero {
  background: var(--card);
  padding: 2.75rem 0 2.75rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); }
.page-hero .search-box { max-width: 560px; margin: 1.6rem auto 0; }

/* ── Search box (plain variant, inner pages) ──────────────────────────────── */
.search-box {
  display: flex;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 0.35rem;
  gap: 0.35rem;
  max-width: 600px;
  margin: 0 auto;
}
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 80, 158, 0.18); }
.search-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font-family: var(--plate-font);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
}
.search-box input::placeholder {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  color: #a4a9ad;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.72rem 1.5rem;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn-lg { font-size: 0.92rem; padding: 0.9rem 2.2rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg); text-decoration: none; }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.5rem 1.4rem;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  height: 2.2rem;
  border: 2px solid var(--ink);
  border-radius: 7px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  background: var(--card);
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* Record contents list */
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.5rem;
}
.ledger li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1rem;
  align-items: start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
}
.ledger-no {
  font-family: var(--plate-font);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--blue);
  padding-top: 0.05rem;
}
.ledger h3 { font-size: 1.02rem; margin-bottom: 0.2rem; }
.ledger p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 1.25rem;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-weight: 400;
  color: var(--muted);
  font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 1.15rem; color: var(--muted); font-size: 0.95rem; max-width: 62ch; }

/* ── Notices, hints, panels ───────────────────────────────────────────────── */
.notice {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.25rem;
  text-align: center;
}
.notice h2 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.notice p { color: var(--muted); margin: 0 0 1.25rem; }

.lookup-hint { text-align: center; color: var(--muted); font-size: 0.95rem; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.25rem;
  text-align: center;
}
.panel h2 { margin-bottom: 0.4rem; font-size: 1.3rem; }
.panel p { color: var(--muted); margin: 0.25rem 0; }
.panel-err { border-color: var(--err); border-left-width: 4px; background: var(--err-bg); }
.panel .searched { font-family: var(--mono); font-weight: 600; letter-spacing: 0.06em; color: var(--ink); }
.panel ul { text-align: left; display: inline-block; color: var(--muted); margin: 0.75rem 0 0; font-size: 0.94rem; }

/* ── Result card ──────────────────────────────────────────────────────────── */
.result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.result-section { padding: 1.2rem 1.75rem 0.5rem; border-bottom: 1px solid var(--line); }
.result-section:last-child { border-bottom: 0; padding-bottom: 1.2rem; }
.result-section h3 {
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.25rem;
}
.detail-grid .row { padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.detail-grid dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.detail-grid dd {
  margin: 0.1rem 0 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.92rem;
  word-break: break-word;
}

/* ── Loading skeleton ─────────────────────────────────────────────────────── */
.skeleton { padding: 1.6rem; }
.skeleton-line {
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #e9ebe8 25%, #dde0dc 50%, #e9ebe8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  margin-bottom: 0.9rem;
}
.skeleton-line:nth-child(1) { width: 40%; height: 22px; }
.skeleton-line:nth-child(2) { width: 90%; }
.skeleton-line:nth-child(3) { width: 75%; }
.skeleton-line:nth-child(4) { width: 85%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: #d6d9db;
  margin-top: 4.5rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0 2rem;
}
.foot-brand .logo { color: #fff; font-size: 1rem; }
.foot-brand p { margin: 0.6rem 0 0; font-size: 0.9rem; color: #9aa0a4; }
.foot-links h3 {
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #9aa0a4;
  margin: 0 0 0.85rem;
}
.foot-links a {
  display: block;
  color: #d6d9db;
  padding: 0.22rem 0;
  font-size: 0.93rem;
  text-decoration: none;
}
.foot-links a:hover { color: #fff; text-decoration: underline; }
.foot-legal {
  border-top: 1px solid #2c3033;
  padding: 1.35rem 0 1.6rem;
  font-size: 0.76rem;
  color: #9aa0a4;
}
.foot-legal p { margin: 0.25rem 0; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ledger { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0; width: 100%; border-bottom: 0; }
  .steps { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 560px) {
  .search-box { flex-direction: column; padding: 0.6rem; }
  .search-box .btn { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
