/* =========================================================
   Bubblē — Marketing Site Design System
   Dark theme with gold accents. Netlify-ready static CSS.
   ========================================================= */

:root {
  /* Surface — iOS-style layered darks */
  --bg:         #16151A;          /* warm charcoal — softer than pure black */
  --surface-1:  #1E1D22;          /* page */
  --surface-2:  #27262C;          /* elevated card */
  --surface-3:  #312F36;          /* tiles, inputs */
  --surface-4:  #3B3941;          /* hover state */

  /* Text */
  --ink:        #FFFFFF;
  --ink-soft:   #E5E5EA;
  --muted:      #9A9AA1;
  --muted-2:    #6B6B72;

  /* Lines */
  --line:       rgba(255,255,255,0.08);
  --line-2:     rgba(255,255,255,0.14);

  /* Brand — warm gold, matching the Bubblē app */
  --brand:       #F2B84C;
  --brand-600:   #E0A224;
  --brand-300:   #F8D58A;
  --brand-glow:  rgba(242,184,76,0.35);
  --brand-tint:  rgba(242,184,76,0.12);

  /* Secondary accent — iOS blue (used sparingly, like the app's calendar chips) */
  --accent:      #4A9EFF;
  --accent-tint: rgba(74,158,255,0.14);

  /* Status */
  --success:     #34C759;
  --danger:      #FF453A;

  /* Gradients */
  --grad-hero:   linear-gradient(180deg, #2E2E33 0%, #16151A 100%);
  --grad-gold:   linear-gradient(135deg, #F8D58A 0%, #F2B84C 50%, #C9902C 100%);
  --grad-phone:  linear-gradient(160deg, #1B1B20 0%, #0B0B0D 100%);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Radius + shadows (shadows are subtle on dark) */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 12px 30px rgba(0,0,0,0.5);
  --shadow-lg: 0 30px 80px rgba(0,0,0,0.6);
  --shadow-brand: 0 14px 40px rgba(242,184,76,0.25);

  --container: 1180px;
  --container-narrow: 820px;
  --container-content: 920px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  position: relative;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; }
body::before {
  content: "";
  position: fixed; inset: 0;
  background: linear-gradient(180deg, #2D2A33 0%, var(--bg) 55%);
  pointer-events: none; z-index: -1;
}
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-300); }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em; line-height: 1.12;
  margin: 0 0 var(--s-4); color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 var(--s-4); color: var(--ink-soft); }
.small { font-size: 0.9rem; color: var(--muted); }

.eyebrow {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--brand);
  padding: 6px 12px; background: transparent; border: 1px solid var(--brand);
  border-radius: var(--r-pill); margin-bottom: var(--s-4);
}

/* Gold highlight for taglines — replaces the old italic-serif display style */
.display {
  color: var(--brand);
  font-weight: inherit;
  font-style: normal;
}
/* But inside the brand logo, don't highlight the "ē" — it IS the logo */
.brand .display {
  color: inherit;
  text-shadow: none;
  font-style: normal;
  font-weight: inherit;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-5); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--s-5); }
section { padding: var(--s-9) 0; position: relative; }
section.tight { padding: var(--s-8) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-8); }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: var(--s-8) 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-pill); font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  white-space: nowrap; letter-spacing: -0.005em;
}
.btn-brand {
  background: var(--brand); color: #1A1206;
}
.btn-brand:hover { filter: brightness(1.06); color: #1A1206; transform: translateY(-1px); }
.btn-primary {
  background: var(--surface-3); color: var(--ink);
  border-color: var(--line-2);
}
.btn-primary:hover { background: var(--surface-4); color: var(--ink); border-color: rgba(255,255,255,0.22); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: var(--ink); border-color: rgba(255,255,255,0.25); }
.btn-danger {
  background: transparent; color: var(--danger);
  border: 1px solid rgba(255,69,58,0.5);
}
.btn-danger:hover { background: rgba(255,69,58,0.08); color: var(--danger); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, backdrop-filter .25s ease;
}
.nav.is-scrolled {
  background: rgba(22, 21, 26, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

/* Brand logo — matches the app: gold "Bubblē" wordmark + bubble mark */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 300; font-size: 2.1rem;
  letter-spacing: -0.02em;
  color: var(--brand);
}
.brand:hover { color: var(--brand-300); }
.brand-mark {
  width: 32px; height: 32px; position: relative; flex-shrink: 0;
  background-image: url("/assets/images/logo.png");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  border-radius: 8px;
}

.nav-links { display: flex; align-items: center; gap: var(--s-6); }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: #fff; }
.nav-links a.is-active { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; border: 1px solid var(--line-2); background: var(--surface-2);
  border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0; padding: var(--s-5);
    background: var(--surface-1); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: transparent;
  padding: clamp(var(--s-8), 10vh, var(--s-10)) 0 var(--s-9);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-8); align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: var(--s-5); }
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 520px; margin-bottom: var(--s-6); }

/* Phone visual — dark chassis matching the app */
.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-phone {
  display: block; max-width: 100%; height: auto;
  max-height: 640px;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.55));
}
.hero-visual .phone-frame {
  position: absolute; inset: 9% 15%;
  background: #050507; border-radius: 42px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6),
              inset 0 0 0 1px rgba(255,255,255,0.05),
              0 0 0 8px #1a1a1d;
  overflow: hidden;
}
.hero-visual .phone-frame::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 18px; background: #000; border-radius: 12px; z-index: 2;
}
.phone-screen {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #0C0C10 0%, #050507 70%);
  padding: 50px 18px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-chip {
  background: var(--surface-3); border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
}
.phone-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand-glow); }
.phone-chip .dot.blue  { background: var(--accent); box-shadow: 0 0 10px rgba(74,158,255,0.5); }
.phone-chip .dot.green { background: var(--success); box-shadow: 0 0 10px rgba(52,199,89,0.5); }
.phone-chip .lines { flex: 1; }
.phone-chip .lines .l1 { height: 8px; width: 70%; background: rgba(255,255,255,0.8); border-radius: 4px; }
.phone-chip .lines .l2 { height: 6px; width: 40%; background: rgba(255,255,255,0.25); border-radius: 4px; margin-top: 6px; }

.float {
  position: absolute; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 10px 14px; box-shadow: var(--shadow-md);
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
  animation: bob 4.5s ease-in-out infinite;
  z-index: 2;
}
.float .pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 0 rgba(52,199,89,0.5);
  animation: pulse 2s infinite;
}
.float.one { top: 6%; left: -14px; animation-delay: 0s; }
.float.three { top: 48%; left: -24px; animation-delay: 0.5s; }
.float.two { bottom: 10%; right: -10px; animation-delay: 1s; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,199,89,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(52,199,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,199,89,0); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-visual { max-width: 420px; margin: 0 auto; }
}

/* Trust row */
.trust-row {
  display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-7);
  align-items: center; justify-content: flex-start;
  padding-top: var(--s-7); margin-top: var(--s-7);
  border-top: 1px dashed var(--line);
  color: var(--muted); font-size: 0.92rem;
}
.trust-row .trust-item { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .trust-item svg { width: 18px; height: 18px; color: var(--brand); }

/* ---------- Cards / Features ---------- */
.card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--s-6);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--surface-3);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}
.card .icon-badge {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-4);
}
.card .icon-badge svg { width: 22px; height: 22px; }
.card.accent .icon-badge { background: var(--accent-tint); color: var(--accent); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card a { color: var(--brand); }
.contact-card { display: flex; flex-direction: column; text-decoration: none; padding: var(--s-6); }
.contact-card-art {
  display: block; height: 100px; width: auto; max-width: 100%;
  margin: 0 auto var(--s-5);
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.55));
}
.contact-card h3 { text-align: center; }
.contact-card p { text-align: center; }
.contact-card .contact-email { text-align: center; margin-top: auto; padding-top: var(--s-4); }
.contact-card h3 { color: var(--ink); }
.contact-card p { flex: 1; }
.contact-card .contact-email {
  display: inline-block; margin-top: var(--s-4);
  color: var(--brand); font-weight: 500; font-size: 0.92rem;
  white-space: nowrap;
}
.contact-card:hover .contact-email { text-decoration: underline; }

/* Services grid — feature tiles */
.tile {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  padding: var(--s-6); background: var(--surface-2);
  border: 1px solid var(--line);
  min-height: 260px; display: flex; flex-direction: column; justify-content: space-between;
}
.tile.dark {
  background: linear-gradient(160deg, var(--surface-3) 0%, var(--surface-1) 100%);
  border-color: var(--line-2);
}
.tile.brand {
  background: linear-gradient(160deg, #1A1205 0%, #0B0B0D 100%);
  border: 1px solid rgba(242,184,76,0.3);
  color: #fff;
}
.tile.brand h3 { color: var(--brand); }
.tile.brand p { color: var(--ink-soft); opacity: 0.92; }
.tile .tile-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--surface-3); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-5);
  border: 1px solid var(--line);
}
.tile.brand .tile-ico {
  background: rgba(242,184,76,0.15); color: var(--brand);
  border-color: rgba(242,184,76,0.3);
}
.tile.dark .tile-ico {
  background: rgba(255,255,255,0.06); color: var(--ink);
  border-color: var(--line-2);
}
.tile h3 { font-size: 1.35rem; }

/* Larger illustration slot for service tiles — 3D app icons */
.tile-art {
  display: block; width: auto; height: 96px; max-width: 100%;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
  transition: transform .3s ease;
}
.tile-row {
  display: flex; align-items: center; gap: var(--s-5);
}
.tile-text h3 { margin-bottom: 6px; }
.tile-text p { margin: 0; }
.tile:hover .tile-art { transform: translateY(-4px) scale(1.03); }

/* Timeline images (status PNGs) */
.tl-node .tl-img {
  width: 72px; height: 72px; margin: 0 auto var(--s-3);
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
  transition: transform .3s ease;
}
.tl-node:hover .tl-img { transform: translateY(-3px); }
.timeline::before { top: 36px; }

/* Split media art — full-size illustrations inside split-media containers */
.split-art {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-5);
}
.split-art img {
  max-width: 78%; max-height: 78%;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.55));
}

/* ---------- How it works (steps) ---------- */
.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 72px 1fr; gap: var(--s-5);
  padding: var(--s-5) 0; border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step-num {
  width: 56px; height: 56px; border-radius: 16px;
  background: transparent; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.2rem;
  border: 1px solid var(--ink);
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }
.step-services {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3);
  margin-top: var(--s-4);
}
.step-service {
  display: flex; align-items: center; gap: var(--s-4);
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
}
.step-service img {
  height: 44px; width: auto; max-width: 56px;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
}
.step-service > div { flex: 1 1 auto; }
.step-service-title { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-service strong { color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.step-service small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.step-service .badge { font-size: 0.68rem; padding: 3px 9px; flex: 0 0 auto; }
.step-service .icon-badge {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.step-service .icon-badge svg { width: 22px; height: 22px; }

/* ---------- Status: collage + rotator ---------- */
.status-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6);
  align-items: center; max-width: 1080px; margin: 0 auto;
}
.status-collage {
  position: relative; aspect-ratio: 1 / 1; max-width: 520px;
}
.status-card {
  position: absolute; width: 58%;
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  text-align: left;
}
.status-card strong { display: block; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.status-card small { display: block; color: var(--muted); margin-top: 4px; font-size: 0.8rem; line-height: 1.35; }

.status-card.c1 { top: 2%;   left: 4%;  transform: rotate(-3deg); }
.status-card.c2 { top: 18%;  left: 38%; transform: rotate(2deg); }
.status-card.c3 { top: 40%;  left: 10%; transform: rotate(-1deg); z-index: 2; }
.status-card.c4 { top: 60%;  left: 42%; transform: rotate(3deg); }
.status-card.c5 { top: 78%;  left: 8%;  transform: rotate(-2deg); }

.status-phone {
  display: flex; align-items: center; justify-content: center;
}
.status-phone img {
  display: block; max-width: 100%; height: auto; max-height: 720px;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.55));
}

@media (max-width: 900px) {
  .status-split { grid-template-columns: 1fr; gap: var(--s-7); }
  .status-phone img { max-height: 420px; }
}

/* ---------- Counter slideshow (vendor workflow) ---------- */
.counter-show {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8);
  align-items: center; max-width: 1000px; margin: 0 auto;
}
.counter-phone {
  position: relative; width: 100%; aspect-ratio: 9 / 19;
  max-width: 320px; margin: 0 auto;
}
.counter-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
  opacity: 0;
  animation: counter-cycle 24s infinite;
}
.counter-img:nth-child(1) { animation-delay: 0s; }
.counter-img:nth-child(2) { animation-delay: 6s; }
.counter-img:nth-child(3) { animation-delay: 12s; }
.counter-img:nth-child(4) { animation-delay: 18s; }

@keyframes counter-cycle {
  0%, 22% { opacity: 1; }
  27%, 97% { opacity: 0; }
  100% { opacity: 1; }
}

.counter-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--s-3);
}
.counter-step {
  position: relative; padding: 14px 18px 14px 22px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: border-color .3s ease, background .3s ease;
}
.counter-step::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--brand);
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transition: opacity .3s ease;
}
.counter-step strong { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 2px; }
.counter-step span { display: block; color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

.counter-step { animation: counter-step-cycle 24s infinite; }
.counter-step:nth-child(1) { animation-delay: 0s; }
.counter-step:nth-child(2) { animation-delay: 6s; }
.counter-step:nth-child(3) { animation-delay: 12s; }
.counter-step:nth-child(4) { animation-delay: 18s; }

@keyframes counter-step-cycle {
  0%, 22% { background: var(--surface-3); border-color: rgba(242,184,76,0.4); }
  0%, 22% { /* active */ }
  27%, 97% { background: var(--surface-2); border-color: var(--line); }
  100% { background: var(--surface-3); border-color: rgba(242,184,76,0.4); }
}
.counter-step { animation-fill-mode: both; }
.counter-step::before {
  animation: counter-step-bar 24s infinite;
}
.counter-step:nth-child(1)::before { animation-delay: 0s; }
.counter-step:nth-child(2)::before { animation-delay: 6s; }
.counter-step:nth-child(3)::before { animation-delay: 12s; }
.counter-step:nth-child(4)::before { animation-delay: 18s; }
@keyframes counter-step-bar {
  0%, 22% { opacity: 1; }
  27%, 97% { opacity: 0; }
  100% { opacity: 1; }
}

.counter-flows { display: flex; flex-direction: column; gap: var(--s-4); }
.counter-tabs {
  display: inline-flex; align-self: flex-start; padding: 4px; gap: 4px;
  background: var(--surface-1); border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.counter-tab {
  padding: 8px 18px; border: 0; background: transparent;
  color: var(--ink-soft); border-radius: var(--r-pill);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.counter-tab:hover { color: var(--ink); }
.counter-tab.is-active { background: var(--brand); color: #1A1206; }
.counter-flow-stack { display: grid; }
.counter-flow-stack > .counter-flow { grid-column: 1; grid-row: 1; }
.counter-flow[hidden] { display: block; visibility: hidden; pointer-events: none; }
.counter-flow {
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-md);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.counter-flow-head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-3); }
.counter-flow-head h4 { margin: 0; font-size: 0.95rem; color: var(--ink-soft); font-weight: 500; }
.counter-stages { list-style: none; counter-reset: stage; padding: 0; margin: 0; }
.counter-stages .stage {
  position: relative; padding: 4px 0 12px 40px;
  counter-increment: stage;
}
.counter-stages .stage:not(:last-child)::after {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 0;
  width: 2px; background: var(--line);
}
.counter-stages .stage > .stage-num,
.counter-stages .stage::before {
  content: counter(stage);
  position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-soft);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 600;
  z-index: 1;
}
.counter-stages .stage--action::before {
  background: var(--brand); color: #1A1206; border-color: var(--brand);
}
.counter-stages .stage:last-child { padding-bottom: 0; }
.stage-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stage-title strong { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.stage-tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--brand); color: #1A1206;
  font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.stage-sub { color: var(--muted); font-size: 0.84rem; line-height: 1.4; margin-top: 2px; }

@media (max-width: 900px) {
  .counter-show { grid-template-columns: 1fr; }
  .counter-phone { max-width: 260px; }
}

/* ---------- Store controls slideshow ---------- */
.controls-show {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s-8);
  align-items: center; max-width: 1080px; margin: 0 auto;
}
.controls-phone {
  position: relative; aspect-ratio: 9 / 19;
  max-width: 320px; width: 100%; margin: 0 auto;
}
.controls-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
  opacity: 0; transition: opacity .5s ease;
}
.controls-img.is-active { opacity: 1; }

.controls-list { display: flex; flex-direction: column; gap: var(--s-3); }
.controls-card {
  display: flex; align-items: center; gap: var(--s-4);
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
  color: inherit; text-align: left; cursor: pointer;
  font-family: inherit;
  transition: border-color .25s ease, background .25s ease, transform .15s ease;
}
.controls-card:hover { border-color: var(--line-2); background: var(--surface-3); }
.controls-card.is-active {
  border-color: var(--brand);
  background: var(--surface-3);
}
.controls-card .icon-badge {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  background: var(--brand-tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
}
.controls-card .icon-badge svg { width: 22px; height: 22px; }
.controls-card strong { display: block; color: var(--ink); font-size: 0.96rem; font-weight: 600; }
.controls-card small { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 2px; line-height: 1.4; }

@media (max-width: 900px) {
  .controls-show { grid-template-columns: 1fr; }
}

/* ---------- Bubble collage (why partner) ---------- */
.split-media.bubble-collage {
  position: relative; aspect-ratio: 1/1; overflow: visible;
  background: transparent; border: 0; box-shadow: none; border-radius: 0;
}
.bubble-img {
  position: absolute; border-radius: 50%; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-3) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}
.bubble-img img {
  width: 62%; height: 62%; object-fit: contain;
  position: absolute; top: 19%; left: 19%;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.45));
}
/* Organic, logo-inspired placement — varied sizes, asymmetric clusters */
/* Vendor apply checklist */
.apply-list { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: 8px; }
.apply-list li {
  position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 0.95rem;
}
.apply-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}

.bubble-img.b1 { top: 22%;  left: 3%;    width: 26%; aspect-ratio: 1/1; } /* wash_fold — medium, mid-left */
.bubble-img.b2 { bottom: 6%; right: 12%;  width: 20%; aspect-ratio: 1/1; } /* dry_clean — small, lower-right */
.bubble-img.b3 { bottom: 3%; left: 28%;   width: 34%; aspect-ratio: 1/1; } /* cleaner_shop — medium-large, bottom-center */
.bubble-img.b4 { top: 2%;   right: 4%;   width: 44%; aspect-ratio: 1/1; } /* courier — big, top-right */
@media (prefers-reduced-motion: reduce) {
  .counter-img { animation: none; opacity: 1; }
  .counter-img ~ .counter-img { display: none; }
  .counter-step, .counter-step::before { animation: none; }
}

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface-1) 100%);
  border: 1px solid var(--line);
  position: relative; box-shadow: var(--shadow-md);
}
.split-media.soft {
  background: var(--surface-2); border: 1px solid var(--line);
}
.split-media .media-inner {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 500; font-size: 0.95rem;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--s-6); }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.stat {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s-6); text-align: left;
}
.stat .num {
  font-size: 2.4rem; font-weight: 500; color: var(--brand); line-height: 1;
  letter-spacing: -0.03em;
}
.stat p { margin: 10px 0 0; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; gap: var(--s-3); }
  .stat { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); }
  .stat .num { flex: 0 0 auto; min-width: 76px; font-size: 1.6rem; }
  .stat p { margin: 0; font-size: 0.92rem; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: var(--s-5) 0;
}
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.4rem; color: var(--brand); font-weight: 400;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: var(--s-3); color: var(--muted); }
.faq details a { color: var(--brand); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface-1) 100%);
  color: var(--ink); border-radius: var(--r-xl);
  padding: var(--s-8); position: relative; overflow: hidden;
  border: 1px solid var(--brand);
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-7); align-items: center;
}
.cta-icon img {
  display: block; width: 180px; height: 180px;
  border-radius: 36px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.85), -8px -8px 24px rgba(0,0,0,0.5);
}
.cta-copy { min-width: 0; }
.cta-band h2 { color: var(--ink); margin-bottom: var(--s-3); }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 0 var(--s-2); }
.cta-band .btn-group { justify-content: flex-start; position: relative; z-index: 1; }

@media (max-width: 700px) {
  .cta-band { grid-template-columns: 1fr; text-align: center; gap: var(--s-4); padding: var(--s-6); }
  .cta-icon img { margin: 0 auto; width: 104px; height: 104px; border-radius: 22px; }
  .cta-band p { margin-left: auto; margin-right: auto; }
  .cta-band .btn-group { justify-content: center; }
  .cta-band .apply-list { text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 500px) {
  .nav-cta .btn { font-size: 0.82rem; padding: 8px 14px; }
  .brand { font-size: 1.7rem !important; }
  /* Hero CTA buttons: equal width side-by-side, or full-width stacked */
  .hero .btn-group { flex-direction: column; align-items: stretch; }
  .hero .btn-group .btn { width: 100%; text-align: center; justify-content: center; }

  /* Tighten steps so two chips fit cleanly side-by-side */
  .step { grid-template-columns: 44px 1fr; gap: var(--s-4); padding: var(--s-4) 0; }
  .step-num { width: 36px; height: 36px; border-radius: 10px; font-size: 0.92rem; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: 0.88rem; }
  .step-services { gap: 8px; margin-top: var(--s-3); }
  .step-service { padding: 8px 10px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .step-service img { height: 32px; }
  .step-service strong { font-size: 0.78rem; }
  .step-service small { font-size: 0.66rem; line-height: 1.3; }
  .step-service .badge { font-size: 0.58rem; padding: 1px 6px; }

  /* Bubble collage — tighter, more clustered on mobile */
  .split-media.bubble-collage { width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: 1/1; }
}

/* ---------- Forms ---------- */
.form {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s-7); box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 680px) { .form-row { grid-template-columns: 1fr; } }
.form label {
  display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: var(--ink);
}
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface-3);
  font-family: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted-2); }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--brand); background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(242,184,76,0.18);
}
.form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23F2B84C' stroke-width='2' d='M3 5l3 3 3-3'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.form .field { margin-bottom: var(--s-4); }
.form textarea { resize: vertical; min-height: 140px; }
.form .submit-row { margin-top: var(--s-5); }
.hp-field { position: absolute; left: -5000px; }

/* ---------- Callout ---------- */
.callout {
  background: var(--surface-2); border-radius: var(--r-lg);
  padding: var(--s-5) var(--s-6);
  display: flex; gap: var(--s-4); align-items: flex-start;
  border: 1px solid var(--line);
}
.callout.warn { background: rgba(242,184,76,0.06); border-color: rgba(242,184,76,0.22); }
.callout.danger { background: rgba(255,69,58,0.06); border-color: rgba(255,69,58,0.22); }
.callout .callout-ico {
  width: 36px; height: 36px; border-radius: 10px; background: var(--surface-3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brand); flex-shrink: 0;
  border: 1px solid var(--line);
}
.callout.warn .callout-ico { color: var(--brand); }
.callout.danger .callout-ico { color: var(--danger); }
.callout p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.callout a { color: var(--brand); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 2.4rem; margin-bottom: var(--s-3); }
.prose .meta { color: var(--muted); margin-bottom: var(--s-7); font-size: 0.95rem; }
.prose h2 { font-size: 1.4rem; margin-top: var(--s-7); margin-bottom: var(--s-3); color: var(--ink); }
.prose h3 { font-size: 1.1rem; margin-top: var(--s-6); color: var(--ink); }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: var(--s-5); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-300); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0; }
.prose strong { color: var(--ink); }
.prose em { color: var(--ink-soft); font-style: italic; }

/* ---------- Footer ---------- */
.footer > .container { max-width: var(--container-content); }
.footer {
  background: #000; color: var(--muted);
  padding: var(--s-9) 0 var(--s-6); margin-top: var(--s-8);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s-7); align-items: start; }
.footer h4 {
  color: var(--ink); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: var(--s-4); font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer p.blurb { color: var(--muted); font-size: 0.95rem; max-width: 320px; }
.footer .brand { color: var(--brand); }
.footer .brand:hover { color: var(--brand-300); }
.footer-bottom {
  margin-top: var(--s-8); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-3);
  font-size: 0.88rem; color: var(--muted-2);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Image placeholders ---------- */
.img-ph {
  background: var(--surface-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.88rem; text-align: center; padding: var(--s-4);
}
.img-ph.square { aspect-ratio: 1/1; }

/* ---------- Page header (non-home) ---------- */
.page-header {
  background: linear-gradient(180deg, var(--surface-1) 0%, var(--bg) 100%);
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: var(--s-3); }
.page-header p { color: var(--muted); font-size: 1.06rem; max-width: 620px; }

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
html.js-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(14px); }
html.js-reveal .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal:not(.is-in),
  html.js-reveal .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .float { animation: none; }
  .float .pulse { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.muted { color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; background: transparent;
  color: var(--brand); border: 1px solid var(--brand);
  border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 700;
}
.badge.blue { background: var(--accent-tint); color: var(--accent); border-color: rgba(74,158,255,0.25); }
.hidden { display: none !important; }

/* App store badges */
.store-badges { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-2);
  padding: 10px 18px; border-radius: 14px; font-weight: 600; min-width: 180px;
}
.store-badge:hover { color: var(--ink); background: var(--surface-4); border-color: rgba(255,255,255,0.22); }
.store-badge small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 500; }
.store-badge strong { display: block; font-size: 1rem; color: var(--ink); }

/* Official App Store badge (Apple marketing guidelines) */
.app-store-badge {
  display: block; height: 56px; width: auto;
  transition: opacity .15s ease;
}
.app-store-badge:hover { opacity: 0.85; }

/* Official Google Play badge (Google brand guidelines) — taller due to baked-in padding */
.google-play-badge {
  display: block; height: 56px; width: auto;
  transition: opacity .15s ease;
}
.google-play-badge:hover { opacity: 0.85; }

/* Selection */
::selection { background: var(--brand); color: #1A1206; }

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--surface-4); }
