/* Dark mode base */
:root {
  color-scheme: dark;
}

body.dark-body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
  background: #020617;
  color: #e5e7eb;
}

/* Layout */
.site-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top left, #1d2538 0, #020617 55%);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, #0ea5e9 45%, #0369a1 100%);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
}

.site-name {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #e5e7eb;
}

.site-tagline {
  font-size: 13px;
  color: #9ca3af;
}

.main-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.5);
}

.nav-link.active {
  color: #e5e7eb;
  border-color: rgba(56, 189, 248, 0.8);
  background: rgba(15, 23, 42, 0.9);
}

/* State dropdown in nav */
.nav-select {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-select-label {
  font-size: 12px;
  color: #9ca3af;
}

.nav-select-control {
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  padding: 4px 10px;
}

/* Main content */
.main-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2.2fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.hero--single {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 2.2fr);
}

.hero-text h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #f9fafb;
}

.hero-text p {
  font-size: 15px;
  color: #9ca3af;
  margin: 0 0 16px;
}

.hero-bullets {
  padding-left: 20px;
  margin: 0;
  list-style: none;
}

.hero-bullets li::before {
  content: "•";
  margin-right: 6px;
  color: #38bdf8;
}

.hero-bullets li {
  font-size: 14px;
  color: #cbd5f5;
  margin-bottom: 4px;
}

/* Cards */
.calculator-card,
.results-card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 20px 18px 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.calculator-card h2,
.results-card h2 {
  font-size: 18px;
  margin: 0 0 12px;
  color: #f9fafb;
}

/* Fields */
.field-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

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

label {
  font-size: 13px;
  margin-bottom: 6px;
  color: #cbd5f5;
}

.optional {
  font-weight: normal;
  color: #64748b;
}

input,
select {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  padding: 9px 10px;
  font-size: 14px;
  outline: none;
}

input::placeholder {
  color: #6b7280;
}

input:focus,
select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

/* Buttons */
.primary-btn {
  width: 100%;
  margin-top: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to right, #22c55e, #16a34a);
  color: #022c22;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.primary-btn:hover {
  filter: brightness(1.05);
}

.disclaimer {
  margin-top: 8px;
  font-size: 11px;
  color: #6b7280;
}

/* Results */
.results-section {
  margin-bottom: 28px;
}

.results-section.hidden {
  display: none;
}

.results-card h3 {
  font-size: 15px;
  margin: 18px 0 10px;
  color: #e5e7eb;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.results-table th,
.results-table td {
  font-size: 13px;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.results-table th {
  text-align: left;
  color: #9ca3af;
}

.results-table td.right {
  text-align: right;
}

.results-note {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.otd-summary {
  font-size: 14px;
  margin-bottom: 4px;
  color: #e5e7eb;
}

/* Content section */
.content-section {
  margin-top: 16px;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.85), #020617);
  border-radius: 16px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 18px 18px 20px;
}

.content-section h1 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 12px;
}

.content-section h2 {
  font-size: 17px;
  margin-top: 16px;
  margin-bottom: 6px;
}

.content-section h3 {
  font-size: 15px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.content-section p {
  font-size: 14px;
  color: #cbd5f5;
  margin: 4px 0 8px;
}

.content-section ul {
  padding-left: 18px;
}

.content-section li {
  font-size: 14px;
  color: #cbd5f5;
}

.primary-link {
  color: #38bdf8;
  text-decoration: none;
}

.primary-link:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  background: #020617;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px 20px;
  font-size: 13px;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─────────────────────────────────────────────────────────────────────────────
   VIN DECODED VEHICLE DETAILS
   ───────────────────────────────────────────────────────────────────────────── */

/* Vehicle details card - shown in results area */
#vehicle-details {
  margin-bottom: 20px;
}

#vehicle-details.hidden {
  display: none;
}

.vin-details-card {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), #020617);
  border-radius: 14px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8), 0 0 20px rgba(56, 189, 248, 0.1);
}

.vin-details-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.vin-details-icon {
  font-size: 28px;
  line-height: 1;
}

.vin-details-title-block {
  flex: 1;
}

.vin-details-title {
  font-size: 17px;
  font-weight: 600;
  color: #f9fafb;
  margin: 0 0 2px;
  line-height: 1.3;
}

.vin-details-subtitle {
  font-size: 12px;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vin-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
}

.vin-detail-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vin-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.vin-detail-value {
  font-size: 14px;
  color: #e5e7eb;
  font-weight: 500;
}

/* Responsive adjustments for VIN details */
@media (max-width: 480px) {
  .vin-details-grid {
    grid-template-columns: 1fr;
  }
  
  .vin-details-title {
    font-size: 15px;
  }
}
