/* ─────────────────────────────────────────────────────────────────────────
   Car Control - OBD2 — landing page styles.
   Brand: cyan #00B4D8 echoed from the Android app palette. Light only:
   marketing pages are art-directed for a light background, the app itself
   is the place where dark mode lives.
   ────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --primary: #00b4d8;
  --primary-dark: #0096c7;
  --primary-darker: #0077b6;
  --primary-soft: #e0f7fa;
  --accent: #ef4444;
  --warn: #f59e0b;
  --ok: #22c55e;
  --gradient-hero: linear-gradient(135deg, #ecfeff 0%, #e0f2fe 35%, #f0f9ff 70%, #f5f3ff 100%);
  --gradient-cta: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, .04), 0 4px 12px rgba(15, 23, 42, .04);
  --shadow-card-hover: 0 4px 12px rgba(15, 23, 42, .06), 0 16px 40px rgba(0, 180, 216, .14);
  --shadow-elev: 0 24px 60px rgba(15, 23, 42, .12);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary-darker); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ─── Header ─── */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--text); }
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 180, 216, .35), transparent 70%);
  filter: blur(8px);
  z-index: -1;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0, 180, 216, .35));
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-weight: 700; font-size: 1.05rem; letter-spacing: -.015em; color: var(--text); }
.brand-text small { font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
@media (max-width: 560px) {
  .brand-text small { display: none; }
  .brand-text strong { font-size: .98rem; }
}
.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.site-nav a {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { color: var(--primary-darker); background: var(--primary-soft); }
.cta-mini {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 180, 216, .3);
}
.cta-mini:hover { background: var(--primary-dark) !important; }

.lang-picker { position: relative; }
.lang-picker summary {
  list-style: none;
  cursor: pointer;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  user-select: none;
  background: #fff;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary:hover { border-color: var(--primary); color: var(--primary-dark); }
.lang-picker[open] summary { border-color: var(--primary); color: var(--primary-dark); }
.lang-picker ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card-hover);
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 160px;
  z-index: 100;
}
.lang-picker li a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  transition: background .12s ease;
}
.lang-picker li a:hover,
.lang-picker li a[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary-darker);
}
@media (max-width: 760px) {
  .site-nav a:not(.cta-mini) { display: none; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--gradient-cta);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 180, 216, .35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(0, 180, 216, .45); color: #fff !important; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-darker); background: #fff; }
.btn-large { padding: 16px 32px; font-size: 1.05rem; border-radius: 14px; }

/* ─── Google Play badge ─── */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: #000;
  color: #fff !important;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.play-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.25); color: #fff !important; }
.play-badge svg { flex-shrink: 0; }
.play-badge .play-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.play-badge .play-text small { font-size: .68rem; opacity: .85; text-transform: uppercase; letter-spacing: .04em; }
.play-badge .play-text strong { font-size: 1.05rem; font-weight: 600; }

/* ─── Hero ─── */
.landing-hero {
  background: var(--gradient-hero);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.landing-hero::before,
.landing-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  pointer-events: none;
}
.landing-hero::before { width: 380px; height: 380px; background: #00B4D8; top: -120px; right: -100px; }
.landing-hero::after  { width: 320px; height: 320px; background: #a78bfa; bottom: -120px; left: -80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--primary-darker);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .42rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.2rem;
  border: 1px solid var(--primary-soft);
  box-shadow: 0 2px 8px rgba(0, 180, 216, .1);
}
.kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.landing-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -.025em;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0077b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.15rem; color: var(--text-soft); max-width: 540px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.micro { font-size: .85rem; }
.muted { color: var(--muted); }

.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-phone { position: relative; display: inline-block; }
.hero-phone img {
  width: clamp(220px, 30vw, 320px);
  border-radius: 30px;
  box-shadow: var(--shadow-elev);
}
.hero-phone::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50px;
  background: linear-gradient(135deg, rgba(0, 180, 216, .15), rgba(167, 139, 250, .15));
  filter: blur(20px);
  z-index: -1;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .landing-hero { padding: 60px 0; }
  .lead { font-size: 1.05rem; }
}

/* ─── Stats strip ─── */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 28px 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border-radius: 16px;
  overflow: hidden;
}
.stat-cell { background: var(--surface); padding: 24px 20px; text-align: center; }
.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary-darker);
  letter-spacing: -.02em;
  line-height: 1;
}
.stat-label { font-size: .82rem; color: var(--muted); margin-top: 6px; font-weight: 500; }
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

/* ─── Sections ─── */
.landing-section { padding: 90px 0; }
.landing-section-alt { background: linear-gradient(180deg, var(--bg) 0%, #f1f5f9 100%); }
.landing-cta {
  background: var(--gradient-cta);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.15), transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255,255,255,.1), transparent 50%);
  pointer-events: none;
}
.landing-cta .container { position: relative; z-index: 1; }
.landing-cta h2 { color: #fff; }
.landing-cta .muted { color: rgba(255,255,255,.85); }
.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 12px 0 14px;
  letter-spacing: -.025em;
  font-weight: 800;
}
.section-pill {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary-darker);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 9999px;
}
.section-pill-bonus {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.detail-section-bonus { background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 100%); }
.detail-section-bonus .detail-card::before { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }

/* ─── Features grid ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-soft);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--primary-darker);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin: 0 0 10px; font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: .95rem; }

/* ─── Screenshots row ─── */
.screenshots-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 12px 4px 32px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}
.screenshots-row::-webkit-scrollbar { height: 8px; }
.screenshots-row::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
.screenshots-row img {
  flex: 0 0 auto;
  width: clamp(220px, 28vw, 280px);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  scroll-snap-align: center;
  border: 6px solid #1a1f27;
  background: #1a1f27;
  transition: transform .25s ease, box-shadow .25s ease;
}
.screenshots-row img:hover { transform: scale(1.03) translateY(-4px); box-shadow: var(--shadow-elev); }

/* ─── Footer ─── */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #cbd5e1;
  padding: 64px 0 28px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: var(--primary); text-decoration: none; }
.site-footer .muted { color: #94a3b8; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #1e293b;
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.footer-brand img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 4px 16px rgba(0, 180, 216, .35));
}
.footer-brand strong { color: #fff; font-size: 1.15rem; letter-spacing: -.015em; }
.footer-grid h4 { color: #f8fafc; font-size: .82rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 8px 0; }
.footer-links li a { font-size: .92rem; }
.footer-bottom { font-size: .82rem; color: #64748b; text-align: center; }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ─── Policy pages ─── */
.policy { max-width: 820px; padding: 64px 24px 100px; margin: 0 auto; }
.policy-head { margin-bottom: 36px; }
.policy-head h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -.02em; font-weight: 800; }
.policy-summary {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #f0f9ff 100%);
  border: 1px solid var(--primary-soft);
  border-left: 4px solid var(--primary);
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
}
.policy-summary p { margin: 0; color: var(--text); }
.policy-summary h2 { margin: 0 0 10px; font-size: 1.05rem; color: var(--primary-darker); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.policy section { margin-bottom: 32px; }
.policy h3 { font-size: 1.18rem; margin: 0 0 12px; color: var(--primary-darker); letter-spacing: -.01em; font-weight: 700; }
.policy ul { padding-left: 22px; }
.policy li { margin: 8px 0; line-height: 1.55; }
.policy p { margin: 0 0 12px; }

/* ─── How it works (3-step) ─── */
.how-section { padding: 80px 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.how-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.how-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-soft);
}
.how-card h3 { margin: 0 0 10px; font-size: 1.12rem; font-weight: 700; color: var(--primary-darker); letter-spacing: -.01em; }
.how-card p { margin: 0; color: var(--text-soft); font-size: .95rem; }
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; } }

/* ─── Detail sections (3 or 4 sub-cards per topic) ─── */
.detail-section { padding: 90px 0; }
.detail-grid {
  display: grid;
  gap: 22px;
}
.detail-grid-3 { grid-template-columns: repeat(3, 1fr); }
.detail-grid-4 { grid-template-columns: repeat(4, 1fr); }
.detail-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary-soft);
}
.detail-card:hover::before { transform: scaleX(1); }
.detail-card h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
.detail-card p { margin: 0; color: var(--text-soft); font-size: .94rem; }
@media (max-width: 1000px) {
  .detail-grid-3, .detail-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .detail-grid-3, .detail-grid-4 { grid-template-columns: 1fr; }
}

/* ─── Android Auto / Privacy bullet lists ─── */
.auto-section, .privacy-section { padding: 80px 0; }
.auto-list, .privacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.auto-list li, .privacy-list li {
  position: relative;
  padding: 14px 18px 14px 46px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.45;
}
.auto-list li::before, .privacy-list li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gradient-cta);
  background-image: var(--gradient-cta), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: cover, 12px 12px;
  background-position: center, center;
  background-repeat: no-repeat;
  box-shadow: 0 2px 6px rgba(0, 180, 216, .35);
}
@media (max-width: 760px) {
  .auto-list, .privacy-list { grid-template-columns: 1fr; }
}
