:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --primary: #111827;
  --ok-bg: #f3faf5;
  --ok-text: #1f6a3b;
  --warn-bg: #fff8eb;
  --warn-text: #8a5a00;
  --danger-bg: #fff2f3;
  --danger-text: #a33a45;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.page-shell {
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.site-header,
.hero-simple,
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-logo {
  width: 56px;
  height: 56px;
  display: block;
  flex: 0 0 56px;
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 50px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: lowercase;
}

.brand-domain {
  font-size: .8rem;
  color: var(--muted);
}

.brand-tagline {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.45;
}

.lang-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-label,
.muted,
.form-status,
.plain-note p,
.list-item p,
.list-meta {
  color: var(--muted);
}

.lang-select,
#vinInput,
.primary-btn {
  border-radius: 12px;
  border: 1px solid var(--border);
}

.lang-select,
#vinInput {
  background: #fff;
  color: var(--text);
}

.lang-select {
  min-width: 84px;
  padding: 10px 12px;
}

.main-content {
  display: grid;
  gap: 14px;
}

.hero-simple {
  padding: 24px 20px;
}

.hero-simple h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  line-height: 1.2;
}

.lead {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.vin-form {
  margin-top: 18px;
}

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

#vinInput {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.primary-btn {
  padding: 14px 18px;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
}

.form-status.loading::before {
  content: '';
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: -2px;
  margin-inline-end: 8px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  border-top-color: var(--text);
  animation: spin .8s linear infinite;
}

.hidden { display: none !important; }

.report-card {
  padding: 20px;
}

.report-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.report-head-copy {
  min-width: 0;
}

.brand-logo-box {
  width: 74px;
  height: 74px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 74px;
}

.brand-logo-img {
  max-width: 56px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.report-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
}

.report-head p {
  margin: 8px 0 0;
}

.report-date {
  font-size: .92rem;
}

.simple-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.simple-section:first-of-type {
  margin-top: 18px;
}

.simple-section h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.info-grid {
  display: grid;
  gap: 12px;
}

.info-row {
  display: grid;
  grid-template-columns: minmax(110px, 170px) 1fr;
  gap: 10px;
  align-items: start;
}

.info-row dt {
  color: var(--muted);
}

.info-row dd {
  margin: 0;
  font-weight: 600;
}

.signal-box {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fafafa;
}

.signal-box.none,
.signal-box.low {
  background: var(--ok-bg);
  color: var(--ok-text);
  border-color: #d7eadc;
}

.signal-box.medium {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-color: #f3e1b1;
}

.signal-box.high {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: #f1c7cc;
}

.signal-box strong {
  display: block;
  margin-bottom: 6px;
}

.stack-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.list-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.list-item h4 {
  margin: 0 0 6px;
  font-size: .95rem;
}

.list-meta {
  font-size: .9rem;
  margin-bottom: 6px;
}

.list-item p,
.plain-note p {
  margin: 0;
  line-height: 1.8;
}

.plain-note {
  display: grid;
  gap: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 16px));
    padding-top: 12px;
  }

 

  .lang-switcher-wrap {
    justify-content: space-between;
  }

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

  .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


.plain-link {
  margin: 16px 0 0;
}

.plain-link a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.signal-box.info {
  background: #f8fafc;
  color: #334155;
  border-color: #dbe3ee;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.plain-link a {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 640px) {
  .brand-block {
    align-items: flex-start;
  }

  .site-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .brand-tagline {
    font-size: .82rem;
  }
}
