/* Reset and base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background-color: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border-bottom: 3px solid #f0a500;
  padding: 2rem 0;
  text-align: center;
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f0a500;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.tagline {
  font-size: 1.1rem;
  color: #b0b0b0;
  margin-top: 0.5rem;
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  color: #f0a500;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #ccc;
}

/* Comparator */
.comparator {
  background: #252525;
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.tire-inputs {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.tire-panel {
  flex: 1 1 300px;
  background: #2e2e2e;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}

.tire-panel h3 {
  font-size: 1.3rem;
  color: #f0a500;
  margin-bottom: 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.size-input {
  margin-bottom: 1rem;
}

.size-input label {
  display: block;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.3rem;
}

.size-input input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #444;
  border-radius: 6px;
  background: #3a3a3a;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.size-input input:focus {
  outline: none;
  border-color: #f0a500;
  box-shadow: 0 0 0 2px rgba(240,165,0,0.3);
}

.tire-visual {
  margin-top: 1rem;
  text-align: center;
}

.tire-svg {
  width: 120px;
  height: 120px;
  transition: transform 0.3s;
}

/* Comparison results */
.comparison-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.result-card {
  background: #2e2e2e;
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #f0a500;
}

.result-card h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.result-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.arrow {
  color: #f0a500;
}

.current-val {
  color: #ccc;
}

.new-val {
  color: #f0a500;
}

.diff {
  font-size: 0.9rem;
  color: #aaa;
}

/* Visual slider */
.visual-slider {
  margin-top: 1.5rem;
  text-align: center;
}

.visual-slider label {
  display: block;
  margin-bottom: 0.5rem;
  color: #aaa;
  font-size: 0.9rem;
}

#overlaySlider {
  width: 80%;
  max-width: 400px;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: #444;
  border-radius: 4px;
  outline: none;
}

#overlaySlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #f0a500;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #1a1a1a;
}

#overlaySlider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: #f0a500;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #1a1a1a;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  width: 80%;
  max-width: 400px;
  margin: 0.3rem auto 0;
  font-size: 0.8rem;
  color: #888;
}

/* Info and tips sections */
.info, .tips {
  padding: 2rem 0;
}

.info h2, .tips h2 {
  font-size: 1.8rem;
  color: #f0a500;
  margin-bottom: 1rem;
  border-bottom: 2px solid #333;
  padding-bottom: 0.5rem;
}

.info p, .tips li {
  margin-bottom: 1rem;
  color: #ccc;
}

.tips ul {
  list-style: none;
  padding-left: 0;
}

.tips li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.tips li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #f0a500;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #111;
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid #333;
}

.site-footer p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #f0a500;
}

/* Responsive */
@media (max-width: 768px) {
  .logo {
    font-size: 2rem;
  }
  .hero h2 {
    font-size: 1.6rem;
  }
  .tire-inputs {
    flex-direction: column;
    align-items: center;
  }
  .tire-panel {
    width: 100%;
  }
  .comparison-results {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.6rem;
  }
  .comparator {
    padding: 1rem;
  }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}
