/* =======================
   THEME & BASE
   ======================= */
:root {
  --accent: #23b4b2;
  --accent-dark: #16797a;
  --heading: #1A4056;
  --subheading: #44A0AC;
  --body: #164B82;
  --icon: #44A0AC;
  --icon-alt: #47A1AE;
  --bubble-outline: #62C3C4;
  --text: var(--body);
  --muted: #6a7a90;
  --background: #f8fbfc;
  --surface: #f3f8fa;
  --footer-bg: #e7f5fa;
  --hero-gradient: linear-gradient(115deg, #fafdff 0%, #e4f6fa 100%);
  --header-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--background);
}
img { display: block; max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

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

/* =======================
   HEADER / NAV
   ======================= */
.site-header {
  background: #ffffffcc;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #eef5f7;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
  font-weight: 800;
}
.brand-logo { width: 28px; height: 28px; object-fit: contain; }
.brand-name { font-size: 1.1rem; letter-spacing: .3px; }

.main-nav { display: flex; gap: 18px; align-items: center; }
.main-nav a,
.nav-dropbtn {
  text-decoration: none;
  color: var(--heading);
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 14px;
  transition: background 0.15s, color 0.15s;
}

.main-nav a.active {
  background: #eaf8fa;
  color: var(--subheading);
}

.nav-dropbtn.active {
  background-color: rgba(68,160,172,0.12);
  color: var(--subheading);
  border-radius: 14px;
}

.main-nav a:hover:not(.active),
.nav-dropbtn:hover {
  background: #eaf8fa;
  color: var(--subheading);
}

.main-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  border-radius: 22px;
  padding: 10px 16px;
}
.main-nav .nav-cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropbtn {
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 600;
  color: var(--heading);
  padding: 9px 12px;
  border-radius: 14px;
  cursor: pointer;
}

.nav-dropbtn::after { content: none; }

.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  min-width: 180px;
  border: 1px solid #eef5f7;
  box-shadow: 0 6px 16px rgba(27,52,75,.15);
  border-radius: 12px;
  padding: 6px 0;
  z-index: 1000;
  margin-top: 8px;
}

.nav-dropdown-content a {
  display: block;
  text-decoration: none;
  color: var(--heading);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
}
.nav-dropdown-content a:hover {
  background: #eaf8fa;
  color: var(--subheading);
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown:focus-within .nav-dropdown-content {
  display: block;
}

.nav-toggle { display: none; }

/* =======================
   BUTTONS
   ======================= */
.button-primary, .button-secondary {
  padding: 13px 24px;
  font-size: 1.06rem;
  border-radius: 26px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: background .13s, color .13s, box-shadow .13s;
  text-decoration: none;
  display: inline-block;
  outline: none;
}
.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(35,180,178,.09);
}
.button-primary:hover { background: var(--accent-dark); color: #fff; }
.button-secondary {
  background: #eaf8fa;
  color: var(--subheading);
  border: 1.5px solid var(--accent);
}
.button-secondary:hover { background: #e1f3f6; }

:root { --bubble: #63C3C5; }

.button-bubble{
  background: var(--bubble) !important;
  color: #fff !important;
  border: none !important;
}
.button-bubble:hover{
  background: #52B9BB !important;
  color: #fff !important;
}


/* =======================
   HERO
   ======================= */
.hero-new { background: var(--hero-gradient); position: relative; padding: 24px 0 0 0; box-shadow: 0 4px 48px rgba(25,80,108,.04); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.hero-title {
  color: var(--heading);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.18;
  margin: 0 0 .4em 0;
  letter-spacing: -0.5px;
}
.hero-highlight { color: var(--subheading); }
.hero-lead { color: var(--body); margin: 0 0 16px 0; font-size: 1.12rem; max-width: 560px; font-weight: 500; }
.hero-actions { display: flex; gap: 12px; margin-top: 6px; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; margin-top: 0; max-width: 640px; }
.hero-art { display: flex; align-items: flex-end; justify-content: flex-end; }
.hero-art img { max-height: 520px; object-fit: contain; }
.hero-bg-mascot { position: absolute; inset: auto 0 0 0; height: 0; background: transparent; }

/* =======================
   SPLIT LAYOUT
   ======================= */
.split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 36px;
  align-items: center;
  padding: 64px 0;
}
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split-copy h2 { font-size: 2rem; margin: 0 0 10px 0; font-weight: 900; letter-spacing: -.5px; color: var(--heading); }
.split-art { display: flex; align-items: center; justify-content: center; }

.split-copy p {
  font-size: 1.08rem;
  color: var(--body);
  line-height: 1.7;
  margin: 0 0 1em 0;
}

/* =======================
   FEATURES / CARDS
   ======================= */
.features h2 { font-size: 2rem; font-weight: 900; margin: 0 0 12px 0; color: var(--heading); }
.card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 2px 18px rgba(27,52,75,.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card h3 { margin: 8px 0 6px 0; font-size: 1.06rem; color: var(--heading); }
.card p { margin: 0; color: var(--body); font-size: .98rem; }
.card-ico { width: 22px; height: 22px; color: var(--icon); }
.accent-word { color: var(--subheading); }

/* =======================
   DEVICES
   ======================= */
.ticklist { list-style: none; padding: 0; margin: 12px 0 0 0; display: grid; gap: 8px; }
.ticklist li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--body); }
.ticklist [data-lucide] { width: 20px; height: 20px; color: var(--icon); }

/* =======================
   PROGRESS
   ======================= */
.progress { padding: 68px 0; }
.progress h2 { font-size: 2rem; font-weight: 900; margin: 0 0 10px 0; color: var(--heading); }
.progress-lead { color: var(--body); font-weight: 500; max-width: 760px; }
.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 26px 0 0 0;
  padding: 0;
}
.timeline li {
  background: #fff;
  border: 2px dashed var(--bubble-outline);
  color: var(--body);
  padding: 14px 10px;
  border-radius: 14px;
  text-align: center;
  font-weight: 800;
}
.timeline li.done { background: #dff7f6; border-color: var(--bubble-outline); color: var(--body); }
.timeline li.current { outline: 3px solid var(--subheading); background: #f3fffe; }

/* =======================
   SIGNUP
   ======================= */
.signup { background: var(--surface); padding: 70px 0; position: relative; }
.signup.compact { background: var(--surface); padding: 36px 0; }
.signup-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.signup-copy h2 { margin: 0 0 8px 0; font-size: 2rem; font-weight: 900; color: var(--heading); }
.signup-copy p { margin: 0; color: var(--body); font-weight: 500; }
.signup-form {
  display: grid;
  gap: 10px;
  background: #fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(27,52,75,.06);
}
.signup-form .label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--heading); }
.signup-form input {
  width: 100%;
  padding: 12px 12px;
  border: 1.5px solid #cfe7eb;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
}
.signup-form input:focus { border-color: var(--accent); }
.form-note { margin: 4px 0 0 0; font-size: .9rem; color: #6a7a90; }
.form-status { margin: 6px 0 0 0; font-weight: 700; color: var(--subheading); }

/* =======================
   INFO / FOOTER / MISC
   ======================= */
.info-block { background: #fff; border-radius: 18px; padding: 22px 22px; box-shadow: 0 0 0 rgba(27,52,75,.06); margin: 28px auto; }
.page-hero { text-align: center; padding: 38px 0 10px 0; }
.page-hero h1 { margin: 0; font-size: 2.2rem; font-weight: 900; color: var(--heading); }
.page-hero .tagline { margin: 8px 0 0 0; color: var(--body); }
.small { font-size: .98rem; color: var(--body); }
.mascot-block { display: flex; gap: 10px; margin-top: 8px; }
.mascot-block [data-lucide] { width: 28px; height: 28px; color: var(--icon); }

.site-footer { background: var(--footer-bg); color: #273040; padding: 26px 0; margin-top: 60px; }
.footer-inner { display: grid; gap: 10px; justify-items: center; }
.footer-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; color: #334; font-weight: 700; }
.footer-social { display: flex; gap: 12px; }
.footer-social [data-lucide] { width: 20px; height: 20px; color: var(--icon); }
.copyright { margin: 6px 0 0 0; font-size: .95rem; }

/* =======================
   FAQ
   ======================= */
.faq h2 { color: var(--heading); }
.faq h3 { color: var(--subheading); }
.faq p  { color: var(--body); }

/* =======================
   RESPONSIVE
   ======================= */
@media (max-width: 1100px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-art { justify-content: center; margin-top: 8px; }
  .split, .split.reverse { grid-template-columns: 1fr; padding: 38px 0; text-align: left; }
}

@media (max-width: 768px) {
  .hero-art { display: none !important; }
  img[src$="/src/obd_deco.png"],
  img[src$="/src/cars.png"] { display: none !important; }
  .signup-inner { grid-template-columns: 1fr !important; gap: 16px; }
}

@media (max-width: 700px) {
  .container { padding: 0 14px; }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
}

/* === MOBILE NAV === */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-header { z-index: 1001; }
  .header-inner { min-height: var(--header-h); padding: 10px 0; }

  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 1.2rem; }

  .nav-toggle {
    width: 42px; height: 42px;
    justify-content: center; align-items: center;
    border: 0; background: transparent; border-radius: 12px;
    color: var(--heading);
  }
  .nav-toggle .bars {
    display: block; width: 22px; height: 2px; background: currentColor;
    position: relative;
  }
  .nav-toggle .bars::before,
  .nav-toggle .bars::after {
    content:""; position:absolute; left:0; width:22px; height:2px; background: currentColor;
  }
  .nav-toggle .bars::before { top:-7px; }
  .nav-toggle .bars::after  { top:7px; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 16px 20px 20px;
    box-shadow: 0 8px 30px rgba(27,52,75,.14);
    border-bottom: 1px solid #eef5f7;
    text-align: center;
  }
  .main-nav.open { display: flex; }

  .main-nav .nav-cta { display: none !important; }

  .main-nav a,
  .nav-dropbtn {
    display: block;
    width: 100%;
    max-width: 240px;
    text-align: center;
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 1.05rem;
    color: var(--heading);
    font-weight: 600;
  }

  .main-nav a:hover,
  .nav-dropbtn:hover {
    background: #eaf8fa;
    color: var(--subheading);
  }

  .nav-dropdown .nav-dropbtn { display: none; }

  .nav-dropdown-content {
    display: contents;
  }

  .nav-dropdown:hover .nav-dropdown-content,
  .nav-dropdown:focus-within .nav-dropdown-content {
    display: contents !important;
  }
  .nav-dropdown-content a {
    padding: 12px 10px;
    font-size: 1.05rem;
    color: var(--heading);
    border-radius: 12px;
    width: 100%;
    max-width: 240px;
    text-align: center;
  }
  .nav-dropdown-content a:hover {
    background: #eaf8fa;
    color: var(--subheading);
  }

  .nav-dropdown::before { display: none; }
  .nav-dropdown:hover .nav-dropdown-content { display: block; }

  body.nav-open { overflow: auto; }

  .container { padding-inline: 20px !important; }
  main > section:not(.full-bleed),
  .hero-new, .split, .features, .devices, .progress, .signup, .faq,
  .info-block, .page-hero, footer .footer-inner {
    padding-inline: 20px !important;
  }
}

html, body { height: 100%; display: flex; flex-direction: column; }
main { flex: 1; }
.site-footer { margin-top: auto; }
