/* ===========================================================================
   QuickWash marketing site — styles
   Palette mirrors the app's "Electric Blue" default theme.
   =========================================================================== */
:root {
  --primary: #0EA5E9;
  --primary-dark: #0369A1;
  --primary-darker: #0C4A6E;
  --accent: #F97316;
  --bg: #F0F9FF;
  --surface: #FFFFFF;
  --surface-alt: #ECF6FE;
  --text: #0C4A6E;
  --text-muted: #50708A;
  --border: #D5E8F5;
  --shadow: 0 10px 30px rgba(12, 74, 110, 0.10);
  --shadow-lg: 0 24px 60px rgba(12, 74, 110, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--primary-darker); }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary);
  background: rgba(14, 165, 233, 0.10);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; cursor: pointer; border: none;
  padding: 12px 22px; border-radius: var(--radius-sm);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(14,165,233,.35); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 10px 26px rgba(14,165,233,.45); }
.btn-ghost { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--primary); }

/* ─── Navbar ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(240, 249, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--border); box-shadow: 0 2px 16px rgba(12,74,110,.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-mark { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-size: 1.25rem; color: var(--primary-darker); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; color: var(--text); }
.nav-links a:hover { color: var(--primary); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--primary-darker); border-radius: 2px; transition: .25s; }

/* ─── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy .lead { font-size: 1.18rem; color: var(--text-muted); margin: 18px 0 28px; max-width: 36ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.92rem; color: var(--text-muted); }
.hero-visual { display: flex; justify-content: center; }

/* ─── Phone mockups ───────────────────────────────────────────────────── */
.phone {
  position: relative; width: 260px; aspect-ratio: 9 / 19;
  background: #0C4A6E; border-radius: 36px; padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #fff; }
.phone-ph {
  display: none; /* shown via JS only if the image is missing */
  position: absolute; inset: 10px; border-radius: 28px;
  flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 20px;
  background: linear-gradient(160deg, #E0F2FE, #fff);
  color: var(--primary-dark);
}
.phone-ph strong { font-size: 1.05rem; }
.phone-ph small { color: var(--text-muted); font-size: .72rem; word-break: break-all; }
.phone-ph code { background: rgba(14,165,233,.12); padding: 2px 5px; border-radius: 5px; }
.phone-hero { transform: rotate(2deg); }

/* ─── Highlights strip ────────────────────────────────────────────────── */
.highlights { padding: 8px 0 8px; }
.highlights-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.highlight { text-align: center; padding: 4px 8px; }
.hi-num { display: block; font-weight: 800; color: var(--primary); font-size: 1.05rem; }
.hi-label { display: block; font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }

/* ─── Sections ────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; margin-top: 10px; }

/* ─── Features ────────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; background: rgba(14,165,233,.10); margin-bottom: 14px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* ─── Screenshots ─────────────────────────────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; justify-items: center; }
.shots .phone { width: 100%; max-width: 240px; }
.shots figcaption { text-align: center; margin-top: 14px; font-weight: 600; color: var(--primary-dark); }

/* ─── Pricing ─────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column;
}
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px; letter-spacing: .03em;
}
.plan-name { color: var(--primary-dark); }
.plan-price { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 4px; }
.plan-price .amount { font-size: 2.6rem; font-weight: 900; color: var(--primary-darker); }
.plan-price .per { color: var(--text-muted); font-weight: 600; }
.plan-sub { color: var(--text-muted); margin-bottom: 18px; }
.plan-features { list-style: none; margin: 0 0 24px; display: grid; gap: 11px; }
.plan-features li { position: relative; padding-left: 28px; font-size: 0.96rem; }
.plan-features li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--primary); font-weight: 800;
}
.plan-features li strong { padding-left: 0; }
.plan .btn { margin-top: auto; }
.plan-foot { text-align: center; font-size: .82rem; color: var(--text-muted); margin-top: 12px; }

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0 20px;
}
.faq-item summary {
  cursor: pointer; list-style: none; font-weight: 700; color: var(--primary-darker);
  padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-muted); padding: 0 0 20px; margin-top: -4px; }

/* ─── CTA ─────────────────────────────────────────────────────────────── */
.cta {
  margin: 0 24px 64px; border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; text-align: center; padding: 64px 24px;
}
.cta-inner { max-width: 640px; }
.cta h2 { color: #fff; }
.cta p { font-size: 1.12rem; opacity: .92; margin-top: 12px; }
.store-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.store-badge {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #062e44; color: #fff; padding: 10px 22px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18); min-width: 170px;
  transition: transform .15s ease, background .15s ease;
}
.store-badge:hover { transform: translateY(-2px); background: #08384f; }
.store-sub { font-size: .72rem; opacity: .8; }
.store-main { font-size: 1.15rem; font-weight: 700; }
.cta-note { font-size: .85rem; opacity: .8; margin-top: 18px; }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.footer { background: var(--primary-darker); color: #cfe7f5; padding: 48px 0 28px; }
.footer .brand-name { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand p { margin-top: 12px; color: #9cc6de; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 20px;
  font-size: .85rem; color: #9cc6de;
}
.footer-legal a:hover { color: #fff; }

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { margin-top: 32px; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px; transform: translateY(-150%); transition: transform .28s ease;
    box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links .btn { margin-top: 12px; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
