/* Shared by every landing page: screenshot sliders, the tour's timer, and the live WhatsApp demo. */

/* ---------- Sliders: real screens, one after the other ---------- */
.slider { --dur: 5s; position: relative; outline: none; }
.slider .slides { display: grid; touch-action: pan-y; }
.slider .slide {
  grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateX(-28px) scale(.98);
  transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s;
}
.slider .slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .55s ease, transform .55s ease, visibility 0s; }
.slider .slide.out { transform: translateX(28px) scale(.98); }
.slider .bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 4px; }
.slider .cap { font-size: 14px; font-weight: 600; color: var(--muted); min-width: 8em; text-align: center; }
.slider .dots { display: flex; gap: 6px; }
.slider .dots button {
  position: relative; width: 22px; height: 7px; padding: 0; border: 0; border-radius: 99px; cursor: pointer; overflow: hidden;
  background: color-mix(in srgb, var(--brand, #0F6B3F) 22%, transparent); transition: width .3s ease;
}
.slider .dots button[aria-current="true"] { width: 46px; }
.slider .dots button span { position: absolute; inset: 0; background: var(--brand, #0F6B3F); transform-origin: right; transform: scaleX(0); }
.slider .dots button[aria-current="true"] span { animation: fill var(--dur) linear forwards; }
.slider.paused .dots button span { animation-play-state: paused; }
.slider.still .dots button[aria-current="true"] span { animation: none; transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

/* The tour's tabs fill up while each page shows, then move on. */
.tabs button { position: relative; overflow: hidden; }
.tabs button .fill { position: absolute; inset: auto 0 0 0; height: 3px; background: rgba(255,255,255,.75); transform-origin: right; transform: scaleX(0); }
.tabs.auto button[aria-selected="true"] .fill { animation: fill var(--dur, 6s) linear forwards; }
.tabs.auto.paused button .fill { animation-play-state: paused; }
.tour .devices { touch-action: pan-y; }

/* ---------- Live demo: the visitor's own place name, on a parent's WhatsApp ---------- */
.live { --brand: var(--grass, var(--accent, #0F6B3F)); }
.live .grid { display: grid; gap: 34px; align-items: center; }
.live .grid > * { min-width: 0; }
.live h2 { margin-bottom: 12px; }
.live .sub { margin-bottom: 20px; }
.live label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.live .name {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--brand); border-radius: 16px;
  padding: 6px 6px 6px 14px; box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 18%, transparent); max-width: 460px;
}
.live .name input {
  flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 18px; padding: 10px 12px; background: transparent; color: var(--text);
}
.live .name .wand {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 22px;
  background: color-mix(in srgb, var(--brand) 12%, #fff);
}
.live .kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.live .kinds button {
  font: inherit; font-size: 14.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--rule); background: #fff; color: var(--text);
}
.live .kinds button[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.live .points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.live .points li { display: flex; gap: 8px; }
.live .points li::before { content: "✓"; color: var(--brand); font-weight: 800; }
.live .note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.wa {
  justify-self: center; width: min(360px, 100%); border-radius: 34px; padding: 9px; background: #0D1520;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .28), inset 0 0 0 2px #2B3A44;
}
.wa .screen { border-radius: 26px; overflow: hidden; background: #EFE7DE; display: grid; grid-template-rows: auto 1fr; height: 600px; }
.wa .top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075E54; color: #fff; }
.wa .avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; flex: none; }
.wa .avatar svg { height: 26px; }
.wa .who { display: grid; line-height: 1.3; }
.wa .who strong { font-size: 16px; display: flex; align-items: center; gap: 5px; }
.wa .who strong i { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #25D366; color: #fff; font-size: 10px; font-style: normal; }
.wa .who span { font-size: 12px; opacity: .8; }
.wa .chat {
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 14px 12px;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px;
}
.wa .day { align-self: center; font-size: 12px; background: #E1F2FB; color: #4A5A63; padding: 3px 10px; border-radius: 8px; margin: 4px 0; }
.wa .b {
  position: relative; max-width: 84%; padding: 7px 10px 18px; border-radius: 10px; font-size: 14.5px; line-height: 1.6; white-space: pre-line;
  box-shadow: 0 1px .5px rgba(0,0,0,.13); animation: pop .35s ease both; color: #111B21;
}
.wa .b.in { align-self: flex-start; background: #fff; border-start-start-radius: 0; }
.wa .b.out { align-self: flex-end; background: #D9FDD3; border-start-end-radius: 0; }
.wa .b time { position: absolute; bottom: 3px; inset-inline-end: 8px; font-size: 11px; color: #667781; }
.wa .b.out time::after { content: " ✓✓"; color: #53BDEB; }
.wa .b mark { background: none; color: inherit; font-weight: 700; border-bottom: 2px dashed color-mix(in srgb, var(--brand) 60%, transparent); }
.wa .card { display: grid; gap: 2px; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #F0F2F5; border-inline-start: 3px solid var(--brand); }
.wa .card strong { font-size: 14px; }
.wa .card span { font-size: 12.5px; color: #54656F; }
.wa .card small { font-size: 11.5px; color: #8696A0; direction: ltr; text-align: end; }
.wa .typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 10px; border-start-start-radius: 0; animation: pop .25s ease both; }
.wa .typing i { width: 7px; height: 7px; border-radius: 50%; background: #93A2AA; animation: dot 1.2s infinite ease-in-out; }
.wa .typing i:nth-child(2) { animation-delay: .15s; }
.wa .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.97); } }

@media (min-width: 980px) {
  .live .grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .slider .slide, .slider .slide.on { transition: none; transform: none; }
  .wa .b, .wa .typing { animation: none; }
}
