/* ==========================================================================
   Passhai product page
   ========================================================================== */

.page-passhai { --accent: var(--blue-600); --accent-soft: var(--blue-50); background: #f7f9fc; }
.page-passhai .step-num { background: var(--blue-600); }
.hl-blue { color: var(--blue-600); }

/* ===== Hero ===== */
.p-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); position: relative; overflow: hidden; }
.p-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(640px 420px at 80% 40%, rgba(29, 104, 240, .12), transparent 70%),
    radial-gradient(520px 380px at 5% 0%, rgba(0, 196, 140, .08), transparent 70%);
  pointer-events: none;
}
.p-hero .container { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.p-hero-logo { height: 46px; width: auto; margin-bottom: 28px; }
.p-hero .pill { margin-bottom: 22px; }
.p-hero .lead { max-width: 540px; margin-top: 22px; }
.p-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.p-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.p-trust span { display: inline-flex; align-items: center; gap: 8px; }
.p-trust svg { width: 16px; height: 16px; color: var(--mint-600); }

.map-stage { position: relative; }
.map { width: 100%; height: auto; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); display: block; background: #eaf1fc; }
.map .ring { transform-origin: 315px 270px; animation: ring 3.2s ease-out infinite; }
.map .ring.r2 { animation-delay: 1.6s; }
@keyframes ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.map-card {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-md);
  padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; width: 280px;
}
.map-card.c1 { left: -24px; bottom: 36px; }
.map-card.c2 { right: -18px; top: 28px; width: 230px; align-items: center; }
.map-card .cat { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--mint-50); color: var(--mint-600); }
.map-card .cat svg { width: 22px; height: 22px; }
.map-card small.src { display: flex; align-items: center; gap: 6px; font-size: .74rem; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.map-card small.src::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #25d366; }
.map-card b { display: block; font-size: .9rem; font-family: var(--font-display); line-height: 1.35; }
.map-card p { font-size: .8rem; color: var(--ink-2); margin-top: 2px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mint-500); color: var(--mint-500); animation: pulse 2s infinite; flex-shrink: 0; }
.js .map-stage .map-card { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.js .map-stage.in .map-card { opacity: 1; transform: none; }
.js .map-stage.in .map-card.c1 { transition-delay: .6s; }
.js .map-stage.in .map-card.c2 { transition-delay: .3s; }

/* ===== Problem ===== */
.p-problem { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.p-problem .card { padding: 32px; }
.p-problem .who { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.p-problem h3 { font-size: 1.3rem; margin-bottom: 10px; }
.p-problem p { color: var(--ink-2); }

/* ===== Lanes ===== */
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lane { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.lane-visual { padding: 36px 28px; display: flex; justify-content: center; min-height: 400px; align-items: center; }
.lane.house .lane-visual { background: linear-gradient(160deg, #eaf2ff, #d6e5ff); }
.lane.vendor .lane-visual { background: linear-gradient(160deg, #e7f9f2, #cdf1e2); }
.lane-body { padding: 32px; }
.lane-body .spot-tag { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-full); margin-bottom: 14px; }
.lane.house .spot-tag { background: var(--blue-50); color: var(--blue-600); }
.lane.vendor .spot-tag { background: var(--mint-50); color: var(--mint-600); }
.lane-body h3 { font-size: 1.45rem; margin-bottom: 20px; }
.mini-steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 14px; }
.mini-steps li { counter-increment: s; display: flex; gap: 14px; color: var(--ink-2); }
.mini-steps li::before {
  content: counter(s); flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700;
  background: var(--navy-900); color: #fff; margin-top: 1px;
}
.mini-steps strong { color: var(--ink); }

/* WhatsApp-style chat card */
.chat-card { width: 100%; max-width: 330px; background: #efeae2; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); font-size: .84rem; }
.chat-top { background: #0b5c4f; color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.chat-top img { width: 32px; height: 32px; border-radius: 50%; background: #fff; }
.chat-top b { display: block; font-size: .9rem; }
.chat-top small { font-size: .72rem; opacity: .75; }
.chat-body { padding: 14px 12px; display: flex; flex-direction: column; gap: 7px; }
.bub { max-width: 86%; padding: 8px 11px; border-radius: 4px 12px 12px 12px; background: #fff; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.06); color: #1b2437; }
.bub.me { align-self: flex-end; background: #d9fdd3; border-radius: 12px 4px 12px 12px; }
.bub.loc { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.bub.loc svg { width: 18px; height: 18px; color: #d93025; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opts span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #f0f7ff; color: var(--blue-600); font-weight: 600; font-size: .76rem; border: 1px solid #d6e5ff; }
.opts span.on { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }
.opts svg { width: 14px; height: 14px; }
.bub.alert { border-left: 3px solid var(--mint-500); }
.bub.alert b { display: flex; align-items: center; gap: 6px; }
.bub.alert svg { width: 16px; height: 16px; color: var(--mint-600); }
.js [data-play] .bub { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.js [data-play].play .bub { opacity: 1; transform: none; }
.js [data-play].play .bub:nth-child(2) { transition-delay: .25s; }
.js [data-play].play .bub:nth-child(3) { transition-delay: .5s; }
.js [data-play].play .bub:nth-child(4) { transition-delay: .75s; }
.js [data-play].play .bub:nth-child(5) { transition-delay: 1.1s; }

/* Vendor app card */
.vendor-card { width: 100%; max-width: 300px; background: #fff; border-radius: 26px; box-shadow: var(--shadow-lg); padding: 22px; }
.vc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.vc-top small { display: block; font-size: .76rem; color: var(--ink-3); }
.vc-top b { font-family: var(--font-display); font-size: 1.1rem; }
.vc-top img { width: 36px; height: 36px; }
.day-toggle { background: var(--navy-900); color: #fff; border-radius: 20px; padding: 18px; display: flex; justify-content: space-between; align-items: center; }
.day-toggle b { font-family: var(--font-display); font-size: 1.2rem; display: block; }
.day-toggle small { font-size: .78rem; color: rgba(255,255,255,.65); }
.switch { width: 56px; height: 32px; border-radius: 999px; background: var(--mint-500); position: relative; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.vc-row { display: flex; align-items: center; gap: 12px; padding: 14px 2px; font-size: .86rem; color: var(--ink-2); }
.vc-row + .vc-row { border-top: 1px solid var(--line); }
.vc-row svg { width: 20px; height: 20px; color: var(--mint-600); flex-shrink: 0; }
.vc-row b { color: var(--ink); font-weight: 600; display: block; }
.vc-end { margin-top: 8px; text-align: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line-strong); font-weight: 700; font-size: .88rem; color: var(--ink); }

/* ===== Categories ===== */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-tile { padding: 28px; display: flex; gap: 18px; align-items: flex-start; }
.cat-art { width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-art svg { width: 40px; height: 40px; }
.cat-tile h3 { margin-bottom: 6px; }
.cat-tile p { color: var(--ink-2); font-size: .94rem; }

/* ===== Privacy ===== */
.p-privacy { background: var(--navy-900); color: #c6d1e6; }
.p-privacy h2 { color: #fff; }
.p-privacy .lead { color: #c6d1e6; }
.p-privacy .eyebrow { color: var(--mint-500); }
.priv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.priv { padding: 28px; border-radius: var(--r-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.priv .icon-tile { background: rgba(0,196,140,.14); color: var(--mint-500); margin-bottom: 18px; }
.priv h3 { color: #fff; margin-bottom: 8px; }
.priv p { font-size: .95rem; }
.priv-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Pilot CTA ===== */
.pilot {
  border-radius: var(--r-xl); background: linear-gradient(135deg, #1d68f0, #1447b8); color: #dbe7ff;
  padding: clamp(36px, 6vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden;
}
.pilot::before { content: ''; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); }
.pilot h2 { color: #fff; }
.pilot p { margin-top: 12px; }
.pilot-actions { display: flex; flex-direction: column; gap: 12px; position: relative; }
.pilot-actions .btn { justify-content: space-between; }

@media (max-width: 1080px) {
  .map-card.c1 { left: 12px; }
  .map-card.c2 { right: 12px; }
}
@media (max-width: 960px) {
  .p-hero .container { grid-template-columns: 1fr; }
  .p-problem, .lanes, .cats, .priv-grid { grid-template-columns: 1fr; }
  .pilot { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .map-card { position: static; width: 100%; margin-top: 12px; }
  .map-card.c2 { width: 100%; }
  .lane-visual { min-height: 0; padding: 28px 16px; }
  .lane-body { padding: 26px 22px; }
}

/* ===== Mobile readability ===== */
@media (max-width: 640px) {
  .p-hero { padding: 32px 0 48px; }
  .p-hero .container { gap: 32px; }
  .p-hero-logo { height: 38px; margin-bottom: 20px; }
  .p-hero-actions .btn { flex: 1 1 100%; }
  .p-trust { flex-direction: column; gap: 8px; }
  .map { border-radius: var(--r-lg); }
  .map-card.c2 { display: none; }
  .p-problem { gap: 12px; }
  .p-problem .card { padding: 22px; }
  .p-problem h3 { font-size: 1.12rem; }
  .lanes { gap: 16px; }
  .lane { border-radius: var(--r-lg); }
  .lane-body h3 { font-size: 1.2rem; margin-bottom: 16px; }
  .cats { gap: 12px; }
  .cat-tile { padding: 18px; }
  .cat-art { width: 52px; height: 52px; border-radius: 14px; }
  .cat-art svg { width: 32px; height: 32px; }
  .priv-grid { gap: 12px; }
  .priv { padding: 20px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; }
  .priv .icon-tile { grid-row: span 2; margin-bottom: 0; width: 42px; height: 42px; border-radius: 12px; }
  .priv .icon-tile svg { width: 20px; height: 20px; }
  .priv h3 { margin-bottom: 4px; }
  .priv-links .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .pilot { border-radius: var(--r-lg); padding: 28px 20px; }
  .pilot-actions .btn { white-space: normal; }
}
@media (max-width: 640px) {
  .js .map-stage .map-card { opacity: 1; transform: none; transition: none; }
}

/* WhatsApp start block */
.wa-start { margin-top: 24px; padding: 18px; border-radius: var(--r-md); background: var(--surface-2); display: flex; gap: 18px; align-items: center; }
.wa-qr { width: 112px; height: 112px; flex-shrink: 0; background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--line); }
.wa-start p { font-size: .92rem; color: var(--ink-2); margin-bottom: 12px; }
.wa-start p strong { color: var(--ink); }
.wa-start .btn { padding: 11px 18px; font-size: .9rem; }
@media (max-width: 640px) {
  .wa-qr { display: none; }
  .wa-start { padding: 16px; }
  .wa-start .btn { width: 100%; }
}
