/* PartsPick SA – shared style (same colours and fonts as the app) */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;600;700;800&display=swap');

:root {
  --blue: #0A3D91;
  --green: #0B7A45;
  --gold: #FFB81C;
  --flag-green: #007749;
  --ink: #12233A;
  --muted: #4A5B70;
  --border: #C5D0DD;
  --bg: #F2F5F9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: var(--blue); }

/* Top bar */
.topbar {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
}
.topbar .inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  font-family: 'Anton', sans-serif;
  font-size: 28px;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--gold); }
.topbar nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  margin-left: 18px;
  opacity: .9;
}
.topbar nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero (home page) */
.hero {
  background: linear-gradient(135deg, var(--blue), var(--green));
  color: #fff;
  text-align: center;
  padding: 30px 20px 0;
  overflow: hidden;
}
.hero h1 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(48px, 10vw, 96px);
  line-height: 1;
  margin: 10px 0 6px;
  letter-spacing: 2px;
}
.hero h1 span { color: var(--gold); }
.hero .country {
  letter-spacing: 8px;
  font-weight: 700;
  font-size: 14px;
  opacity: .8;
}
.bars { max-width: 560px; margin: 16px auto; }
.bars div { height: 6px; }
.bars .gold { background: var(--gold); margin-bottom: 3px; }
.bars .green { background: var(--flag-green); }
.hero .tagline { font-size: 22px; font-weight: 700; margin: 10px 0 20px; }
/* Vehicle slideshow: all pictures on the same spot, only the active one visible */
.slideshow {
  position: relative;
  max-width: 560px;
  width: 90%;
  margin: 0 auto;
  aspect-ratio: 1094 / 598; /* same shape as the pictures */
}
.slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  opacity: 0;
  transition: opacity .9s ease;
}
.slideshow img.active { opacity: 1; }

.badge {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 999px;
  margin-bottom: 20px;
}

/* Content */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 50px;
}
.page {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px clamp(18px, 4vw, 40px);
}
.page h1 { font-size: 30px; margin-top: 0; }
.page h2 { font-size: 20px; margin-top: 30px; color: var(--blue); }
.page .updated { color: var(--muted); font-size: 14px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.card h2 { margin-top: 0; font-size: 21px; }
.card.buyers h2 { color: var(--blue); }
.card.sellers h2 { color: var(--green); }
.card ul { padding-left: 20px; margin: 0; }
.card li { margin-bottom: 6px; }

.note {
  background: #FFF6DF;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0;
}

table { border-collapse: collapse; width: 100%; margin: 12px 0; font-size: 15px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--bg); }

/* Footer */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 0 20px 40px;
}
footer a { margin: 0 8px; }

/* ===================== Home page, version 2 ===================== */

/* Top: two columns on laptops, stacked on phones */
.hero-grid {
  max-width: 1150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 10px;
}
.hero .lead { font-size: 17px; opacity: .9; max-width: 520px; margin: 0 auto 18px; }
.hero-links { margin-bottom: 18px; }
.hero-links a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 999px;
  padding: 8px 18px;
  margin: 4px;
  display: inline-block;
}
.hero-links a:hover { background: rgba(255,255,255,.15); }
@media (min-width: 900px) {
  .hero { padding: 40px 30px 0; }
  .hero-grid { grid-template-columns: 0.9fr 1.1fr; gap: 30px; }
  .hero-text { text-align: left; padding-bottom: 40px; }
  .hero-text .bars { margin-left: 0; }
  .hero .lead { margin-left: 0; }
  .hero-links a:first-child { margin-left: 0; }
  /* vehicle in the middle of the text height, not at the bottom */
  .hero .slideshow { max-width: none; width: 100%; align-self: center; margin-bottom: 40px; }
}

/* Facts strip */
.facts {
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--border);   /* the 1px gaps become the dividing lines */
}
.facts div {
  padding: 18px 20px;
  text-align: center;
  background: #fff;
}
.facts strong { display: block; font-size: 24px; color: var(--blue); font-weight: 800; }
.facts span { color: var(--muted); font-size: 14px; }

/* Sections */
main { max-width: 1150px; }
.block { margin: 20px 0 50px; scroll-margin-top: 20px; }
.block-title { font-size: clamp(26px, 4vw, 34px); text-align: center; margin: 0 0 4px; }
.block-title.buyers { color: var(--blue); }
.block-title.sellers { color: var(--green); }
.block-intro { text-align: center; color: var(--muted); font-size: 18px; margin: 0 0 26px; }
.block-note { text-align: center; color: var(--muted); margin-top: 22px; }

/* Phone frames with app screenshots */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.step { margin: 0; text-align: center; }
.phone {
  background: #12233A;
  border-radius: 34px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(18,35,58,.18);
  max-width: 260px;
  margin: 0 auto;
}
.phone img { display: block; width: 100%; border-radius: 25px; }
.phone.small { max-width: 200px; }
.step figcaption { margin-top: 16px; color: var(--ink); max-width: 280px; margin-left: auto; margin-right: auto; }
.step figcaption b {
  display: block;
  color: var(--blue);
  font-size: 18px;
  margin-bottom: 2px;
}
#sellers .step figcaption b { color: var(--green); }

/* Wanted feature row */
.feature {
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  text-align: center;
}
.feature h3 { font-size: 24px; margin: 0 0 8px; color: var(--blue); }
.feature p { margin: 0; color: var(--muted); font-size: 17px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 200px 1fr 200px; text-align: left; padding: 30px 40px; }
}

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 17px; }
.faq details p { margin: 10px 0 2px; color: var(--muted); }

.contact { max-width: 800px; margin: 0 auto; }
