/* WashMyCar — Landing V2 candidate (isolated).
   Self-contained: does NOT use shared.css. Only landing-v2.html loads this. */

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

:root {
  --brand-deep: #1B3BD8;
  --brand: #2563EB;
  --brand-mid: #2E8BE6;
  --brand-cyan: #26B2ED;
  --brand-grad: linear-gradient(120deg, #1B3BD8 0%, #2E8BE6 55%, #26B2ED 100%);

  --blue-light: #EFF6FF;
  --blue-mid: #DBEAFE;
  --green: #10B981;
  --green-light: #ECFDF5;
  --red: #DC2626;

  --text: #0E1729;
  --text-2: #55617A;
  --text-3: #667085;
  --border: #E4E9F2;
  --bg: #F7F9FE;
  --white: #FFFFFF;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(14, 23, 41, 0.06);
  --shadow-md: 0 6px 24px rgba(14, 23, 41, 0.07);
  --shadow-lg: 0 18px 48px rgba(27, 59, 216, 0.14);

  --maxw: 620px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

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

:focus-visible {
  outline: 3px solid var(--brand-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  top: 0;
  left: 0;
  z-index: 300;
  background: var(--white);
  color: var(--brand-deep);
  font-weight: 700;
  padding: 0;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  padding: 0.75rem 1.1rem;
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand-grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 150;
  height: 64px;
  padding: 0 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; height: 64px; }
.brand__logo { height: 46px; width: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s var(--ease);
}
.btn--nav {
  background: var(--brand-grad);
  color: var(--white);
  font-size: 0.8rem;
  padding: 0.6rem 1.1rem;
  box-shadow: 0 3px 12px rgba(27, 59, 216, 0.28);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-grad);
  color: var(--white);
  font-size: 0.95rem;
  padding: 0.95rem 1.6rem;
  box-shadow: 0 6px 20px rgba(27, 59, 216, 0.28);
}
.btn--lg { font-size: 1rem; padding: 1.05rem 1.8rem; width: 100%; }
.btn--block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 1.25rem 2.5rem;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}
.orb--a {
  width: 320px; height: 320px;
  top: -120px; left: -110px;
  background: radial-gradient(circle, rgba(27, 59, 216, 0.5), transparent 70%);
}
.orb--b {
  width: 280px; height: 280px;
  top: 140px; right: -120px;
  background: radial-gradient(circle, rgba(38, 178, 237, 0.45), transparent 70%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--white);
  border: 1px solid var(--blue-mid);
  color: var(--brand-deep);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}
.availability__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: pulse-dot 2.4s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}
.social-proof {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 500;
}

h1 {
  font-size: clamp(2rem, 8.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: 1.02rem;
  color: var(--text-2);
  max-width: 40ch;
}
.hero__sub strong { color: var(--text); font-weight: 700; }

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.pill__icon { font-size: 0.95rem; line-height: 1; }

.hero__cta { width: 100%; max-width: 380px; }
.hero__note { margin-top: 0.7rem; font-size: 0.76rem; color: var(--text-3); }

/* ── Sections ── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.75rem 1.25rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 76px;
}

#top { scroll-margin-top: 76px; }
.section-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.5rem;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}

/* ── Pricing ── */
.pricing-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius);
  padding: 1.9rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--brand-grad);
}
.pricing-best {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--blue-light);
  color: var(--brand-deep);
  border: 1px solid var(--blue-mid);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.pricing-name { font-size: 1.05rem; font-weight: 700; }
.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  margin: 0.7rem 0 0.2rem;
}
.price-currency { font-size: 1.15rem; font-weight: 700; color: var(--brand-deep); align-self: flex-start; margin-top: 0.7rem; }
.price-big {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-period { font-size: 0.85rem; color: var(--text-2); margin-bottom: 1.4rem; }
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
  margin-bottom: 1.5rem;
}
.pricing-feature { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; font-weight: 500; }
.feature-check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-light);
  color: #047857;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}
.pricing-applepay {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-3);
}

/* ── WhatsApp preview ── */
.wa-section {
  background: linear-gradient(150deg, #ECFDF5 0%, #EFF6FF 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.1rem;
  text-align: center;
}
.wa-phone {
  background: #ECE5DD;
  border-radius: 18px;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.wa-topbar { background: #075E54; padding: 0.7rem 0.9rem; display: flex; align-items: center; gap: 0.65rem; }
.wa-avatar {
  width: 34px; height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--white);
  padding: 3px;
  object-fit: contain;
}
.wa-contact-name { color: var(--white); font-size: 0.88rem; font-weight: 700; text-align: left; }
.wa-online { color: rgba(255, 255, 255, 0.88); font-size: 0.7rem; display: flex; align-items: center; gap: 0.3rem; }
.wa-online__dot { width: 6px; height: 6px; border-radius: 50%; background: #25D366; }
.wa-messages { padding: 0.9rem; }
.wa-msg {
  background: var(--white);
  border-radius: 0 12px 12px 12px;
  padding: 0.8rem 0.95rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #111;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.wa-time { display: block; font-size: 0.62rem; color: #676767; text-align: right; margin-top: 0.35rem; }
.wa-caption { margin-top: 1.1rem; font-size: 0.85rem; color: var(--text-2); font-weight: 500; }

/* ── Checkout form ── */
.form-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.form-header { background: var(--brand-grad); padding: 1.05rem 1.4rem; text-align: center; }
.form-header-title { color: var(--white); font-size: 1.15rem; font-weight: 800; }
.form-header-sub { color: rgba(255, 255, 255, 0.88); font-size: 0.8rem; }
.form-body { padding: 1.25rem 1.25rem 1.4rem; display: flex; flex-direction: column; gap: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.form-group label { font-size: 0.78rem; font-weight: 700; color: var(--text); }

.form-group input,
.form-group select,
.phone-input {
  width: 100%;
  min-width: 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.form-group input::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group select:focus,
.phone-input:focus {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.phone-row { display: flex; gap: 0.5rem; }
.prefix-field { position: relative; width: 104px; flex-shrink: 0; }
.prefix-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 1rem;
}
.prefix-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  height: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.7rem;
  font-size: 0.9rem;
  color: var(--text);
  pointer-events: none;
}
.prefix-select:focus-visible + .prefix-display {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.prefix-caret { color: var(--text-3); font-size: 0.7rem; }
.wa-preview { font-size: 0.72rem; color: var(--text-3); margin-top: 0.3rem; min-height: 1.1em; }
.wa-preview.error { color: var(--red); font-weight: 600; }

.form-plan-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
}
.form-plan-left { font-size: 0.88rem; display: flex; flex-direction: column; }
.form-plan-left span { font-size: 0.76rem; color: var(--text-2); font-weight: 500; }
.form-plan-price { font-size: 1.05rem; font-weight: 800; color: var(--brand-deep); white-space: nowrap; }

#apple-pay-section { display: none; }
#apple-pay-section.visible { display: block; }
#payment-request-button { margin-bottom: 0.9rem; }
.or-divider {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-3);
  font-size: 0.76rem;
  font-weight: 600;
}
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.card-element-wrapper {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
  min-height: 50px;
  display: flex;
  align-items: center;
  transition: border-color 0.18s, box-shadow 0.18s;
}
#card-element { width: 100%; min-height: 24px; }
.card-element-wrapper.focused {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
#card-errors { color: var(--red); font-size: 0.78rem; display: none; }
#card-errors.visible { display: block; }

.global-error {
  display: none;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--red);
}
.global-error.visible { display: block; }

.field-error, .field-error:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}
.consent input { width: 17px; height: 17px; flex-shrink: 0; margin-top: 0.15rem; cursor: pointer; accent-color: var(--brand); }
.consent a { color: var(--brand); font-weight: 600; text-decoration: none; }
.consent a:hover { text-decoration: underline; }
.consent.consent-error { color: var(--red); }

.btn-submit { position: relative; }
.spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-submit.loading .spinner { display: inline-block; }
.btn-submit.loading .btn-text { display: none; }

.form-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.9rem 1.25rem 1.3rem;
  border-top: 1px solid var(--border);
}
.trust-item { font-size: 0.74rem; color: var(--text-3); font-weight: 500; display: flex; align-items: center; gap: 0.3rem; }

/* ── Success ── */
.success-card {
  display: none;
  background: #F0FDF4;
  border-top: 1px solid #BBF7D0;
  padding: 2rem 1.25rem;
  text-align: center;
}
.success-card.visible { display: block; }
.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
}
.success-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; }
.success-title { font-size: 1.5rem; font-weight: 800; color: #14532D; margin-bottom: 0.5rem; }
.success-sub { font-size: 0.88rem; color: var(--text-2); }
.success-steps { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.3rem 0; text-align: left; }
.success-step {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-2);
}
.success-step strong { color: var(--text); }
.success-step-icon { flex-shrink: 0; }

/* ── How it works ── */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.step-emoji { font-size: 1.8rem; display: block; margin-bottom: 0.5rem; }
.step-num {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.25rem;
}
.step-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; }
.step-desc { font-size: 0.82rem; color: var(--text-2); }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem 1.25rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.8rem;
}
.footer-logo { height: 46px; width: auto; margin: 0 auto 0.7rem; }
.site-footer a { color: var(--brand); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { margin-top: 0.4rem; }

/* ── Reveal on scroll ──
   Armed by JS only; without JS (or under reduced motion) content stays visible. */
.reveal { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-armed { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: none; }

.hero__step { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.hero__step.is-armed { opacity: 0; transform: translateY(14px); }
.hero__step.is-visible { opacity: 1; transform: none; }

/* ── Tactile hover: capable pointers only ── */
@media (hover: hover) and (pointer: fine) {
  .btn--nav:hover, .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(27, 59, 216, 0.32); filter: saturate(1.06); }
  .btn:active { transform: translateY(0); }
  .pricing-card:hover { transform: translateY(-3px); box-shadow: 0 24px 56px rgba(27, 59, 216, 0.18); }
  .step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}

/* ── Larger screens ── */
@media (min-width: 600px) {
  .hero { padding: 4rem 1.5rem 3.25rem; }
  .section { padding: 3.25rem 1.5rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .form-body { padding: 1.5rem 1.75rem 1.6rem; }
  .form-trust { padding: 1rem 1.75rem 1.5rem; }
  .pricing-card { padding: 2.2rem 2rem; }
  .site-header { padding: 0 2rem; }
  .brand, .site-header { height: 68px; }
  .brand__logo, .footer-logo { height: 52px; }
  h2 { font-size: 1.85rem; }
  .hero__cta { max-width: 420px; }
  .orb--a { width: 460px; height: 460px; top: -180px; left: -140px; }
  .orb--b { width: 420px; height: 420px; top: 120px; right: -160px; }
  .section, #top { scroll-margin-top: 80px; }
}

@media (min-width: 900px) {
  :root { --maxw: 680px; }
}

/* ── Reduced motion: no reveal hiding, no parallax, no continuous motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal.is-armed,
  .hero__step, .hero__step.is-armed {
    opacity: 1 !important;
    transform: none !important;
  }
  .orb { transform: none !important; }
  .availability__dot { animation: none !important; }
  .btn:hover, .pricing-card:hover, .step-card:hover { transform: none !important; }
}

/* ── Gradient text fallbacks ──
   .grad-text / .section-label / .price-big paint their glyphs with a clipped
   gradient background and a transparent fill. Wherever that background is
   dropped or overridden — printing, forced-colours / high-contrast modes — the
   text would disappear, so restore a solid, readable fill. */
@media (forced-colors: active) {
  .grad-text, .section-label, .price-big {
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    color: CanvasText;
    -webkit-text-fill-color: currentColor;
  }
}

@media print {
  .grad-text, .section-label, .price-big {
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    color: var(--brand-deep);
    -webkit-text-fill-color: var(--brand-deep);
  }
}
