/* ============================================================
   VIVA CAR WASH — production styles (Editorial direction)
   Ported from the Claude design canvas: brand.css tokens +
   direction1 ("Editorial Calm") mobile + direction1-desktop.
   Mobile layout < 980px, desktop layout >= 980px.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand primaries (from logo) */
  --blue:        #08C5F7;
  --blue-deep:   #0792be;
  --blue-ink:    #0a6f8d;
  --green:       #9CD246;
  --green-deep:  #86BB2B;
  --green-ink:   #5f8a1e;

  /* Ink / neutrals */
  --ink:   #0f1b20;
  --ink-2: #4d5d64;
  --ink-3: #8a979c;
  --line:  #e8edef;
  --line-2:#d8e0e3;

  /* Surfaces */
  --page:  #ffffff;
  --tint:  #f4fafb;
  --tint-2:#eef6f3;

  /* Accent system */
  --grad-1: var(--blue-deep);
  --grad-2: var(--green-deep);
  --accent-solid: var(--blue-deep);
  --accent-2: var(--green-deep);

  --btn-radius: 999px;

  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, sans-serif;

  --ease: cubic-bezier(.16,1,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.viva-page {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--page);
}
.viva-headline { font-family: var(--font-display); }
.v-wordmark { white-space: nowrap; }

/* ---- icon sprite helper ---- */
.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-check { stroke-width: 2.6; }
.ic-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- responsive layout switch ---- */
.layout-desktop { display: none; }
@media (min-width: 980px) {
  .layout-mobile { display: none; }
  .layout-desktop { display: block; }
}

/* mobile page centered on tablets */
.d1 { max-width: 520px; margin: 0 auto; }

/* ---- eyebrow ---- */
.v-eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-solid);
  display: inline-flex; align-items: center; gap: 8px;
}
.v-eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--grad-1), var(--grad-2));
}

/* ---- buttons ---- */
.v-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em;
  padding: 0 28px; min-height: 56px; width: 100%;
  border: none; cursor: pointer; color: #fff;
  border-radius: var(--btn-radius);
  background: linear-gradient(100deg, var(--grad-1), var(--grad-2));
  box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--grad-1) 70%, transparent),
              0 2px 6px -2px rgba(15,27,32,.18);
  transition: transform .16s var(--ease), box-shadow .26s var(--ease), filter .2s var(--ease);
  position: relative; overflow: hidden;
}
.v-btn:hover { transform: translateY(-2px);
  box-shadow: 0 18px 38px -10px color-mix(in srgb, var(--grad-1) 75%, transparent),
              0 3px 8px -2px rgba(15,27,32,.2); }
.v-btn:active { transform: translateY(0); }
.v-btn::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg);
  animation: v-sheen 4.5s var(--ease) infinite; animation-delay: 1.2s;
}
@keyframes v-sheen { 0%,55%{ left:-60%; } 80%,100%{ left:130%; } }
.v-btn.ghost { background: transparent; color: var(--accent-solid); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.v-btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent-solid); transform: none; }
.v-btn.ghost::after { display: none; }
.v-btn.small { min-height: 46px; font-size: 15px; padding: 0 20px; width: auto; }
.v-btn[disabled] { opacity: .8; cursor: default; }

/* ---- form primitives ---- */
.v-form { display: flex; flex-direction: column; gap: 14px; }
.v-field { position: relative; }
.v-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); letter-spacing: .02em; margin-bottom: 7px; }
.v-inputwrap { position: relative; }
.v-input {
  width: 100%; height: 54px; padding: 0 16px 0 46px;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px;
  transition: border-color .18s var(--ease), box-shadow .2s var(--ease), background .2s;
  outline: none;
}
.v-input::placeholder { color: var(--ink-3); }
.v-input:focus { border-color: var(--accent-solid); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-solid) 14%, transparent); }
.v-field .v-ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; color: var(--ink-3); pointer-events: none; transition: color .18s; }
.v-field.focused .v-ic { color: var(--accent-solid); }
.v-field.err .v-input { border-color: #e0594e; box-shadow: 0 0 0 4px rgba(224,89,78,.12); }
.v-err { font-size: 12px; color: #cf4c41; margin-top: 6px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.v-optin { display: flex; gap: 10px; align-items: flex-start; margin-top: 2px; }
.v-optin input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent-solid); flex: 0 0 auto; }
.v-optin span { font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }
.v-reassure { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; }
.v-reassure svg { color: var(--green-ink); flex: 0 0 auto; }
.v-formerr { font-size: 13px; color: #cf4c41; font-weight: 600; text-align: center; background: rgba(224,89,78,.08); border: 1px solid rgba(224,89,78,.25); border-radius: 12px; padding: 10px 12px; }

/* ---- success state (JS-toggled) ---- */
.v-success { text-align: center; display: none; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0; }
.v-success.show { display: flex; }
.v-form.hide { display: none; }
.v-check { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--grad-1), var(--grad-2)); display: grid; place-items: center; color: #fff; box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--grad-1) 70%, transparent); animation: v-pop .5s var(--ease) both; }
@keyframes v-pop { 0%{ transform:scale(.4); opacity:0; } 60%{ transform:scale(1.08); } 100%{ transform:scale(1); opacity:1; } }
.v-suc-t { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.v-suc-msg { font-size: 14px; color: var(--ink-2); max-width: 280px; line-height: 1.5; }
.v-suc-msg strong { color: var(--ink); }

/* ---- value-prop icon chip ---- */
.v-vchip { width: 52px; height: 52px; border-radius: 16px; flex: 0 0 auto; display: grid; place-items: center; color: var(--accent-solid); background: color-mix(in srgb, var(--accent-solid) 10%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-solid) 18%, transparent); }

/* ---- entrance animations ---- */
@keyframes v-rise { from{ opacity:0; transform: translateY(18px); } to{ opacity:1; transform:none; } }
.v-rise { opacity: 0; animation: v-rise .7s var(--ease) forwards; }

/* drifting blobs */
.v-blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; pointer-events: none; z-index: 0; animation: v-drift 9s ease-in-out infinite alternate; will-change: transform; }
.v-blob:nth-of-type(2) { animation-duration: 12s; animation-delay: -4s; }
@keyframes v-drift { 0%{ transform: translate(0,0) scale(1); } 50%{ transform: translate(58px,-44px) scale(1.2); } 100%{ transform: translate(-40px,36px) scale(1.08); } }

.v-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: v-rot .7s linear infinite; }
@keyframes v-rot { to { transform: rotate(360deg); } }

/* CTA → form attention pulse */
.v-pulse { animation: v-pulse 1.25s var(--ease); }
@keyframes v-pulse { 0%{ box-shadow:0 0 0 0 color-mix(in srgb, var(--accent-solid) 45%, transparent); } 70%{ box-shadow:0 0 0 18px transparent; } 100%{ box-shadow:0 0 0 0 transparent; } }

.v-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-deep); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green-deep) 60%, transparent); animation: v-blink 1.8s var(--ease) infinite; }
@keyframes v-blink { 0%,100%{ opacity:1; box-shadow:0 0 0 0 color-mix(in srgb, var(--green-deep) 55%, transparent); } 50%{ opacity:.7; box-shadow:0 0 0 6px transparent; } }

/* language toggle (segmented control) */
.v-lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); flex: 0 0 auto; }
.v-lang a { font-size: 13px; font-weight: 800; letter-spacing: .03em; line-height: 1; color: var(--ink-3); text-decoration: none; padding: 7px 12px; border-radius: 999px; transition: color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); }
.v-lang a.active { color: #fff; background: linear-gradient(100deg, var(--grad-1), var(--grad-2)); box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--grad-1) 55%, transparent); }
.v-lang a:not(.active):hover { color: var(--accent-solid); }

/* ============================================================
   MOBILE — Editorial (d1)
   ============================================================ */
.d1 { --font-display: 'Outfit', system-ui, sans-serif; padding-bottom: 0; }
.d1 .v-wordmark { font-family: var(--font-body); font-weight: 800; font-size: 15px; letter-spacing: .01em; }
.d1 .v-wordmark b { color: var(--green-deep); } .d1 .v-wordmark i { color: var(--blue); font-style: normal; }

.d1-head { display: flex; align-items: center; justify-content: space-between; padding: calc(16px + env(safe-area-inset-top)) 18px 16px; position: relative; z-index: 3; gap: 10px; }
.d1-wm { display: flex; align-items: center; gap: 8px; }
.d1-mark { height: 28px; width: auto; }
.d1-head-right { display: flex; align-items: center; gap: 8px; }
.d1-soon { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--ink); background: var(--tint); border: 1px solid var(--line); padding: 0 13px; min-height: 38px; border-radius: 999px; white-space: nowrap; }
/* on very small phones, drop the "coming soon" pill so the toggle stays clear */
@media (max-width: 380px) { .d1-soon { display: none; } }

.d1-hero { text-align: center; padding: 26px 28px 14px; position: relative; z-index: 2; }
.d1-logo { width: 196px; height: auto; margin: 0 auto 22px; display: block; }
.d1-hero .v-eyebrow { margin-bottom: 16px; }
.d1-h1 { font-size: 46px; line-height: 1.0; letter-spacing: -0.025em; color: var(--ink); font-weight: 600; }
.d1-grad { background: linear-gradient(100deg, var(--grad-1), var(--grad-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d1-sub { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 330px; margin: 18px auto 0; }
.d1-cta { display: flex; flex-direction: column; gap: 11px; margin-top: 26px; }

.d1-why { padding: 48px 28px 8px; position: relative; z-index: 2; }
.d1-why .v-eyebrow { margin-bottom: 14px; }
.d1-h2, .d1-formtitle { font-size: 32px; line-height: 1.06; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); }
.d1-h2 { margin-bottom: 30px; }
.d1-vps { display: flex; flex-direction: column; gap: 26px; }
.d1-vp { display: flex; gap: 16px; align-items: flex-start; }
.d1-vp h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 5px; }
.d1-vp p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }

.d1-formwrap { padding: 40px 22px 44px; margin-top: 8px; position: relative; z-index: 2; background: linear-gradient(180deg, var(--page), var(--tint)); }
.d1-formcard { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 24px; box-shadow: 0 30px 60px -28px rgba(15,27,32,.22), 0 2px 8px -2px rgba(15,27,32,.05); }
.d1-formcard .v-eyebrow { margin-bottom: 12px; }
.d1-formtitle { font-size: 28px; margin-bottom: 8px; }
.d1-formsub { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); margin-bottom: 22px; }

.d1-foot { background: var(--ink); color: #fff; padding: 42px 28px calc(30px + env(safe-area-inset-bottom)); }
.d1-wm-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.d1-foot-mark { height: 38px; width: auto; display: block; }
.d1-foot .v-wordmark.light { font-size: 16px; }
.d1-foot .v-wordmark.light b { color: #9CD246; } .d1-foot .v-wordmark.light i { color: var(--blue); }
.d1-foot-tag { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: #fff; opacity: .92; margin-bottom: 30px; }
.d1-foot-grid { display: flex; flex-direction: column; gap: 24px; margin-bottom: 28px; }
.d1-foot-col { display: flex; flex-direction: column; gap: 12px; }
.d1-foot-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.d1-foot-row { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: rgba(255,255,255,.8); }
.d1-socials { display: flex; justify-content: flex-start; gap: 12px; margin: 2px 0 0; }
.d1-socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--grad-1), var(--grad-2)); border: none; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--grad-1) 60%, transparent); transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease); }
.d1-socials a:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 11px 24px -6px color-mix(in srgb, var(--grad-1) 72%, transparent); }
.d1-foot-fine { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; font-size: 12px; color: rgba(255,255,255,.45); }

/* ============================================================
   DESKTOP — Editorial (d1d)
   ============================================================ */
.d1d { --font-display: 'Outfit', system-ui, sans-serif; }
.d1d .v-wordmark { font-family: var(--font-body); font-weight: 800; font-size: 18px; letter-spacing: .01em; }
.d1d .v-wordmark b { color: var(--green-deep); } .d1d .v-wordmark i { color: var(--blue); font-style: normal; }

.d1d-nav { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--page); }
.d1d-navin { max-width: 1200px; margin: 0 auto; padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; }
.d1d-wm { display: flex; align-items: center; gap: 11px; }
.d1d-mark { height: 46px; width: auto; }
.d1d-navr { display: flex; align-items: center; gap: 18px; }
.d1d-soon { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--ink-2); background: var(--tint); border: 1px solid var(--line); padding: 8px 15px; border-radius: 999px; }

.d1d-hero { max-width: 1200px; margin: 0 auto; padding: 84px 40px 96px; position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.d1d-herol .v-eyebrow { margin-bottom: 24px; font-size: 13px; }
.d1d-h1 { font-size: 82px; line-height: .96; letter-spacing: -0.03em; color: var(--ink); font-weight: 600; }
.d1d-grad { background: linear-gradient(100deg, var(--grad-1), var(--grad-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.d1d-sub { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 480px; margin: 28px 0 0; }
.d1d-trust { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 36px; }
.d1d-trustitem { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: var(--ink); }
.d1d-trustitem svg { color: var(--accent-solid); }

.d1d-formcard { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px 36px; box-shadow: 0 40px 80px -36px rgba(15,27,32,.28), 0 3px 10px -3px rgba(15,27,32,.06); }
.d1d-formcard .v-eyebrow { margin-bottom: 14px; }
.d1d-formtitle { font-size: 34px; line-height: 1.04; letter-spacing: -0.02em; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.d1d-formsub { font-size: 15px; line-height: 1.5; color: var(--ink-2); margin-bottom: 26px; }

.d1d-why { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; z-index: 2; }
.d1d-whyhead { max-width: 1200px; margin: 0 auto; padding: 80px 40px 0; }
.d1d-whyhead .v-eyebrow { margin-bottom: 18px; }
.d1d-h2 { font-size: 48px; line-height: 1.04; letter-spacing: -0.025em; font-weight: 600; color: var(--ink); }
.d1d-cards { max-width: 1200px; margin: 0 auto; padding: 48px 40px 88px; display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.d1d-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.d1d-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 26px 50px -28px rgba(15,27,32,.32); }
.d1d-cardhead { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.d1d-card .v-vchip { width: 54px; height: 54px; border-radius: 16px; flex: 0 0 auto; }
.d1d-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.d1d-card p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }

.d1d-teaser { text-align: center; padding: 108px 40px; position: relative; z-index: 2; overflow: hidden; background: radial-gradient(125% 90% at 50% -8%, color-mix(in srgb, var(--blue) 9%, var(--page)), var(--page) 62%); border-top: 1px solid var(--line); }
.d1d-teaser-wm { position: absolute; top: 54px; left: 50%; transform: translateX(-50%); height: 230px; width: auto; opacity: .06; pointer-events: none; z-index: 0; }
.d1d-teaser-in { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.d1d-teaser-h { font-size: 58px; line-height: 1; letter-spacing: -0.025em; font-weight: 600; color: var(--ink); margin: 18px 0 18px; }
.d1d-teaser-p { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 560px; margin: 0 auto 32px; }
.d1d-teaser-btn { display: flex; width: fit-content; padding: 0 36px; margin: 0 auto; }
.d1d-teaser-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 30px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.d1d-teaser-meta span { display: inline-flex; align-items: center; gap: 8px; }
.d1d-teaser-meta svg { color: var(--accent-solid); }
.d1d-teaser-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

.d1d-foot { background: var(--ink); color: #fff; }
.d1d-footin { max-width: 1200px; margin: 0 auto; padding: 64px 40px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.d1d-foot .v-wordmark b { color: #9CD246; } .d1d-foot .v-wordmark i { color: var(--blue); }
.d1d-footbrand .d1d-wm { margin-bottom: 18px; }
.d1d-foot-tag { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; color: #fff; opacity: .92; }
.d1d-footcol { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.d1d-footlabel { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.d1d-footrow { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: rgba(255,255,255,.8); text-decoration: none; }
.d1d-socials { display: flex; gap: 10px; margin-top: 2px; }
.d1d-socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--grad-1), var(--grad-2)); border: none; box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--grad-1) 55%, transparent); transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s var(--ease); }
.d1d-socials a:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 11px 24px -6px color-mix(in srgb, var(--grad-1) 70%, transparent); }
.d1d-footfine { max-width: 1200px; margin: 0 auto; padding: 24px 40px calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: rgba(255,255,255,.45); }

/* tame the huge desktop hero on mid/laptop widths */
@media (min-width: 980px) and (max-width: 1200px) {
  .d1d-h1 { font-size: 64px; }
  .d1d-hero { gap: 48px; padding: 64px 40px 76px; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .v-rise { opacity: 1 !important; transform: none !important; }
}
