/* Landing page (drsheeft.ir/), loaded after site.css.

   How the motion is wired (landing.js):
   - <html class="anim"> is set by the script, so without it nothing is hidden.
   - [data-reveal] fades in once when scrolled to (.in).
   - [data-play] gets .playing while on screen; CSS loops only run under it.
   - [data-demo] is a stepped story: the script walks a step counter and puts
     .on on every [data-on="from-to"] part whose range contains the step.
   Under prefers-reduced-motion everything sits still in a finished state. */

:root {
  --mint: #7be3d6;
  --ok: #059669;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home .section {
  padding-block: 96px;
}

/* ── Header over the dark hero ─────────────────────────────────────────── */

.home .site-header {
  transition: background-color 0.3s, border-color 0.3s;
}
.home .site-header::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--brand));
  transform: scaleX(var(--scroll, 0));
  transform-origin: right;
}
.anim .home .site-header:not(.scrolled) {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.anim .home .site-header:not(.scrolled) .brand {
  color: #fff;
}
.anim .home .site-header:not(.scrolled) .main-nav a,
.anim .home .site-header:not(.scrolled) .nav-blog {
  color: rgba(255, 255, 255, 0.78);
}
.anim .home .site-header:not(.scrolled) .main-nav a:hover,
.anim .home .site-header:not(.scrolled) .nav-blog:hover {
  color: #fff;
}
.anim .home .site-header:not(.scrolled) .btn-primary {
  background: #fff;
  color: var(--brand-deep);
}

/* ── Buttons and small parts ───────────────────────────────────────────── */

.btn svg {
  transition: transform 0.25s var(--ease);
}
.btn:hover svg,
.text-link:hover svg {
  transform: translateX(-4px);
}
.btn-white {
  background: #fff;
  color: var(--brand-deep);
}
.btn-white:hover {
  background: #e3faf6;
}
.btn-glass {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
}
.sheen {
  position: relative;
  overflow: hidden;
}
.sheen::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  animation: sheen 4.8s ease-in-out infinite;
}
.btn-white.sheen::after {
  background: linear-gradient(100deg, transparent, rgba(0, 142, 155, 0.2), transparent);
}
@keyframes sheen {
  0%,
  62% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  font-weight: 700;
}
.text-link svg {
  transition: transform 0.25s var(--ease);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.avatar svg {
  width: 16px;
  height: 16px;
}

.ticks {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 15px;
}
.ticks li {
  position: relative;
  padding-inline-start: 28px;
}
.ticks li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.5em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Two states in one slot: the part that is .on shows. */
.swap {
  display: inline-grid;
}
.swap > * {
  grid-area: 1 / 1;
}
.anim .swap > [data-on] {
  opacity: 0;
  transform: translateY(5px) scale(0.96);
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.anim .swap > [data-on].on {
  opacity: 1;
  transform: none;
}
html:not(.anim) .swap > [data-on]:not(:first-child) {
  display: none;
}

/* A tap on a mock button. */
.tap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(0, 142, 155, 0.4);
  opacity: 0;
  pointer-events: none;
}
.tap.on {
  animation: tap 0.8s ease-out both;
}
@keyframes tap {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  25% {
    opacity: 1;
    transform: scale(0.9);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

.bubble {
  width: fit-content;
  max-width: 84%;
  margin: 10px 0 0;
  padding: 7px 12px;
  border-radius: 16px;
  font-size: 11.5px;
  line-height: 1.8;
}
.bubble.me {
  margin-inline-end: auto;
  border-start-start-radius: 5px;
  background: var(--brand);
  color: #fff;
}
.bubble.them {
  margin-inline-start: auto;
  border-start-end-radius: 5px;
  background: #eef2f5;
  color: var(--ink);
}
.bubble.dots {
  display: flex;
  gap: 4px;
  padding: 11px 13px;
}
.bubble.dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: dot 1s ease-in-out infinite;
}
.bubble.dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.bubble.dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dot {
  0%,
  60%,
  100% {
    opacity: 0.45;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-inline-start: 6px;
  border-radius: 2px;
  background: currentColor;
  vertical-align: -0.1em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ── Scroll reveal ─────────────────────────────────────────────────────── */

.anim [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease) var(--d, 0ms), transform 0.8s var(--ease) var(--d, 0ms);
}
.anim [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Slides under the sticky header (68px + its border). */
  margin-top: -69px;
  padding-top: 69px;
  border-radius: 0 0 40px 40px;
  background:
    radial-gradient(900px 520px at 88% 4%, rgba(0, 165, 180, 0.5), transparent 65%),
    radial-gradient(700px 480px at 4% 100%, rgba(0, 142, 155, 0.36), transparent 60%),
    linear-gradient(180deg, #002a2f 0%, #003c43 58%, #004a52 100%);
  color: rgba(255, 255, 255, 0.76);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 35%, #000 35%, transparent 90%);
  mask-image: radial-gradient(ellipse 95% 85% at 50% 35%, #000 35%, transparent 90%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(440px circle at var(--mx, 70%) var(--my, 30%), rgba(123, 227, 214, 0.13), transparent 70%);
}
.hero-cells {
  position: absolute;
  inset: 0;
}
/* A calendar square that lights up with a weekday letter. */
.hero-cells i {
  position: absolute;
  display: grid;
  place-items: center;
  width: 57px;
  height: 57px;
  border: 1px solid rgba(123, 227, 214, 0.2);
  background: rgba(123, 227, 214, 0.035);
  color: rgba(123, 227, 214, 0.5);
  font-size: 13px;
  font-style: normal;
  opacity: 0;
  animation: cell 7s ease-in-out infinite;
}
@keyframes cell {
  0%,
  100% {
    opacity: 0;
  }
  12%,
  42% {
    opacity: 1;
  }
  58% {
    opacity: 0;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding-block: 64px 84px;
}
.hero-text > * {
  animation: rise 0.9s var(--ease) both;
}
.hero-text > :nth-child(2) {
  animation-delay: 0.1s;
}
.hero-text > :nth-child(3) {
  animation-delay: 0.22s;
}
.hero-text > :nth-child(4) {
  animation-delay: 0.34s;
}
.hero-text > :nth-child(5) {
  animation-delay: 0.46s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #d9f6f2;
  font-size: 13px;
  font-weight: 700;
}
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(3.2);
  }
}
.hero h1 {
  margin-top: 20px;
  color: #fff;
  font-size: clamp(30px, 4.5vw, 54px);
  font-weight: 900;
  line-height: 1.38;
}
.typed {
  display: block;
  min-height: 1.38em;
  color: var(--mint);
  white-space: nowrap;
}
.lead {
  max-width: 540px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 2.05;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-points svg {
  color: var(--mint);
  stroke-width: 2.4;
}

/* The phone and what floats around it */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 470px;
  margin-inline: auto;
}
.hero-demo {
  animation: phone-in 1.1s var(--ease) 0.25s both;
}
@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(46px) scale(0.94);
  }
}
.phone {
  width: 304px;
  padding: 10px;
  border-radius: 46px;
  background: #0b1220;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: perspective(1200px) rotateY(calc(var(--px, 0) * -6deg)) rotateX(calc(var(--py, 0) * 4deg)) rotate(-2deg);
  transition: transform 0.3s ease-out;
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 560px;
  padding: 24px 12px 0;
  overflow: hidden;
  border-radius: 36px;
  background: #fff;
  color: var(--body);
  font-size: 12px;
  line-height: 1.7;
}
.phone-screen::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 70px;
  height: 7px;
  margin-left: -35px;
  border-radius: 99px;
  background: #0b1220;
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 6px;
}
.app-title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}
.app-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 10.5px;
}
.app-pill svg {
  width: 12px;
  height: 12px;
}
.fchips {
  display: flex;
  gap: 5px;
  max-height: 0;
  padding-inline: 4px;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s var(--ease), margin-top 0.45s var(--ease), opacity 0.3s;
}
.fchips.on {
  max-height: 30px;
  margin-top: 8px;
  opacity: 1;
}
.fchips span {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.45s var(--spring);
}
.fchips.on span {
  opacity: 1;
  transform: none;
}
.fchips.on span:nth-child(1) {
  transition-delay: 0.1s;
}
.fchips.on span:nth-child(2) {
  transition-delay: 0.24s;
}
.fchips.on span:nth-child(3) {
  transition-delay: 0.38s;
}

.shift-list {
  flex: 1;
  min-height: 0;
  margin-top: 10px;
}
.shift {
  margin-bottom: 10px;
  padding: 13px 12px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}
.shift header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.shift header .swap {
  justify-items: end;
}
.shift h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.shift h3 svg {
  width: 15px;
  height: 15px;
}
.chip {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}
.chip.wait {
  background: #fef3c7;
  color: #92400e;
}
.chip.ok {
  background: #d1fae5;
  color: #065f46;
}
.shift-addr {
  margin-top: 6px;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.shift-info {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5px;
  margin-top: 9px;
}
.shift-info > div {
  padding: 5px 8px;
  border-radius: 9px;
  background: #f6f8f9;
  text-align: center;
}
.shift-info b {
  display: block;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
}
.shift-info small {
  color: #64748b;
  font-size: 10.5px;
}
.shift-cta {
  position: relative;
  display: grid;
  margin-top: 9px;
  overflow: hidden;
  border: 1.5px solid var(--brand);
  border-radius: 13px;
  text-align: center;
}
.cta-ask {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
}
.cta-ask span {
  padding: 7px 0;
  border-inline-end: 1px solid #e2e8f0;
  color: var(--ink);
  font-weight: 500;
}
.cta-ask b {
  color: var(--brand-dark);
  font-weight: 500;
}
.cta-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.cta-done svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.6;
}

/* A card that leaves the list when the filter no longer matches it. */
.fold {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.35s;
}
.fold > div {
  min-height: 0;
  overflow: hidden;
}
.anim .fold:not(.on) {
  grid-template-rows: 0fr;
  opacity: 0;
}

.toast {
  position: absolute;
  top: 12px;
  inset-inline: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(-140%);
  transition: transform 0.55s var(--spring), opacity 0.3s;
}
.toast.on {
  opacity: 1;
  transform: none;
}
.toast-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #10b981;
}
.toast-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.8;
}
.toast b {
  display: block;
  font-size: 12px;
}
.toast small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10.5px;
}

.sheet {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  padding: 22px 14px 62px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 0 0 600px rgba(15, 23, 42, 0);
  transform: translateY(105%);
  transition: transform 0.6s var(--ease), box-shadow 0.5s;
}
.sheet::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 36px;
  height: 4px;
  margin-left: -18px;
  border-radius: 2px;
  background: #dbe4e8;
}
.sheet.on {
  box-shadow: 0 0 0 600px rgba(15, 23, 42, 0.32);
  transform: none;
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
}
.sheet.chat {
  min-height: 236px;
}
.sheet .bubble[data-on] {
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.3s, transform 0.45s var(--spring);
}
.sheet .bubble[data-on].on {
  opacity: 1;
  transform: none;
}
.swap.reply {
  display: grid;
  justify-items: start;
}
.sheet.rate {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 236px;
  align-content: center;
  text-align: center;
}
.sheet.rate > b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}
.sheet.rate > small {
  color: #64748b;
  font-size: 11.5px;
}
.stars {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.stars span {
  color: #dbe4e8;
  transform: scale(0.8);
  transition: color 0.25s, transform 0.45s var(--spring);
}
.stars svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.sheet.rate.on .stars span {
  color: #f59e0b;
  transform: none;
}
.sheet.rate.on .stars span:nth-child(1) {
  transition-delay: 0.5s;
}
.sheet.rate.on .stars span:nth-child(2) {
  transition-delay: 0.68s;
}
.sheet.rate.on .stars span:nth-child(3) {
  transition-delay: 0.86s;
}
.sheet.rate.on .stars span:nth-child(4) {
  transition-delay: 1.04s;
}
.sheet.rate.on .stars span:nth-child(5) {
  transition-delay: 1.22s;
}
.rate-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  font-size: 11.5px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.45s var(--spring);
}
.rate-done.on {
  opacity: 1;
  transform: none;
}
.rate-done svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.8;
}

.app-tabs {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  margin-inline: -12px;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 10.5px;
}
.app-tabs .on {
  color: var(--brand-dark);
  font-weight: 700;
}

.demo-caps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
}
.demo-caps li {
  padding: 3px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.6);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s, transform 0.45s var(--spring);
}
.demo-caps li.on {
  border-color: var(--mint);
  background: var(--mint);
  color: #00363b;
  font-weight: 700;
  transform: translateY(-3px);
}

.float {
  position: absolute;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  /* Pointer parallax; the bobbing below uses `transform`. */
  translate: calc(var(--px, 0) * var(--depth) * 1px) calc(var(--py, 0) * var(--depth) * 1px);
  transition: translate 0.35s ease-out;
  animation: pop-in 0.7s var(--spring) both, bob 6s ease-in-out infinite;
}
.float small {
  display: block;
  color: #64748b;
  font-size: 11px;
}
.float b {
  font-weight: 700;
}
.f-week {
  top: -28px;
  right: -22px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  animation-delay: 1s, 1.7s;
}
.week {
  display: flex;
  gap: 4px;
}
.week i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
}
.week i.on {
  background: var(--brand);
  color: #fff;
}
.f-wage {
  bottom: 128px;
  left: -14px;
  animation-delay: 1.2s, 1.9s;
  animation-duration: 0.7s, 7s;
}
.f-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.f-pin {
  top: 262px;
  right: -46px;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: #00363b;
  animation-delay: 1.4s, 2.1s;
  animation-duration: 0.7s, 5s;
}
.f-pin svg {
  width: 16px;
  height: 16px;
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

/* ── Marquee ───────────────────────────────────────────────────────────── */

.marquee {
  padding-block: 26px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}
.anim .marquee:not(.playing) .marquee-track,
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline-end: 12px;
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.marquee svg {
  color: var(--brand);
}
/* The track holds the list twice, so half its width is one full turn. */
@keyframes marquee {
  to {
    transform: translateX(50%);
  }
}

/* ── Section heads ─────────────────────────────────────────────────────── */

.sec-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
}
.kicker.light {
  color: var(--mint);
}
.sec-head h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 900;
  line-height: 1.45;
}
.sec-head h2 em {
  color: var(--brand);
  font-style: normal;
}
.sec-head p {
  margin-top: 12px;
  font-size: 16.5px;
}

/* ── Who it is for (tabs with a live mock) ─────────────────────────────── */

.seg {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: min(100%, 430px);
  margin: 0 auto 44px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tint);
}
.seg button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--body);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.3s;
}
.seg button[aria-selected='true'] {
  color: #fff;
}
.seg-thumb {
  position: absolute;
  inset-block: 5px;
  inset-inline-start: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 10px 20px -10px rgba(0, 142, 155, 0.8);
  transition: transform 0.5s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.seg[data-active='1'] .seg-thumb {
  transform: translateX(-100%);
}
html:not(.anim) .seg {
  display: none;
}

.who-panels {
  display: grid;
}
.who-panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 56px;
}
.anim .who-panel {
  grid-area: 1 / 1;
}
.anim .who-panel:not(.is-active) {
  visibility: hidden;
  opacity: 0;
}
.anim .who-panel.is-active {
  animation: panel-in 0.6s var(--ease) both;
}
html:not(.anim) .who-panel + .who-panel {
  margin-top: 56px;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.who-text h3 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
}
.who-text > p {
  margin-top: 10px;
  font-size: 16.5px;
}

.mock {
  position: relative;
  min-height: 436px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 44px 80px -44px rgba(0, 82, 90, 0.42);
  font-size: 13px;
  line-height: 1.7;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}
.mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5e0e4;
}
.mock-bar b {
  margin-inline: auto;
  padding-inline-end: 39px;
  color: var(--ink);
  font-size: 12.5px;
}
.mock-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px 22px;
}
.field label,
.input label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
}
.field label {
  margin-bottom: 7px;
}
.val {
  justify-items: end;
  color: var(--brand-dark);
  font-weight: 700;
}
.opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.opts span {
  min-width: 36px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-align: center;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.45s var(--spring);
}
.opts span.on {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  transform: scale(1.07);
}
.range {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #eaf0f2;
}
.range-fill {
  position: absolute;
  inset-block: 0;
  border-radius: 999px;
  background: var(--brand);
  transition: width 0.8s var(--ease), inset-inline-start 0.8s var(--ease), opacity 0.3s;
}
.range-fill::before,
.range-fill.hours::after {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline-end: -8px;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 3px solid var(--brand);
  border-radius: 50%;
  background: #fff;
}
.range-fill.hours::after {
  inset-inline: -8px auto;
}
.range-fill.hours {
  inset-inline-start: 0;
  width: 100%;
}
.range-fill.hours.on {
  inset-inline-start: 33.33%;
  width: 33.33%;
}
.range-fill.wage {
  inset-inline-start: 0;
  width: 0;
}
.range-fill.wage.on {
  width: 56%;
}
.range-ticks {
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  color: var(--muted);
  font-size: 10px;
}
.field:has(.range-ticks) {
  padding-bottom: 20px;
}
.mock-btn {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 2px;
  padding: 10px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: background-color 0.3s;
}
.mock-btn.on {
  background: var(--brand-deep);
}
.mock-btn .tap {
  background: rgba(255, 255, 255, 0.5);
}

.input {
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.input label {
  color: var(--muted);
  font-size: 11px;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.typein {
  display: inline-block;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
/* Typed from the right: the clip uncovers the text in steps. */
.anim .typein {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.2s;
}
.anim .typein.on {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.75s steps(11, end);
}

.mock-result {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px 20px 22px;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -26px 50px -26px rgba(15, 23, 42, 0.4), 0 0 0 1px var(--line);
  transform: translateY(104%);
  transition: transform 0.65s var(--ease);
}
.mock-result.on {
  transform: none;
}
html:not(.anim) .mock-result {
  position: static;
  transform: none;
}
.mock-result > small {
  display: block;
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 700;
}
.anim .mock-result > small[data-on] {
  opacity: 0;
  transition: opacity 0.3s;
}
.anim .mock-result > small[data-on].on {
  opacity: 1;
}
.published {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  text-align: center;
  transition: opacity 0.3s, transform 0.5s var(--spring);
}
.anim .published:not(.on) {
  opacity: 0;
  transform: scale(0.85);
}
html:not(.anim) .published {
  display: none;
}
.published svg {
  width: 42px;
  height: 42px;
  margin-bottom: 4px;
  padding: 10px;
  border-radius: 50%;
  background: #d1fae5;
  color: #065f46;
  stroke-width: 2.6;
}
.published b {
  color: var(--ink);
  font-size: 14.5px;
}
.published small {
  color: #64748b;
  font-size: 11.5px;
}
.mock-result .row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: opacity 0.4s 0.3s, transform 0.55s var(--ease) 0.3s;
}
.anim .mock-result .row {
  opacity: 0;
  transform: translateY(16px);
}
.anim .mock-result.on .row:not([data-on]),
.anim .mock-result .row.on {
  opacity: 1;
  transform: none;
}
.mock-result .row + .row {
  transition-delay: 0.45s;
}
.mock-result .row > div {
  flex: 1;
  min-width: 0;
}
.mock-result .row b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
}
.mock-result .row small {
  color: #64748b;
  font-size: 11px;
}
.mock-result .row em {
  color: var(--brand-dark);
  font-size: 12.5px;
  font-style: normal;
  font-weight: 700;
}
.approve {
  position: relative;
  font-size: 12px;
  font-weight: 700;
}
.approve > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 14px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  white-space: nowrap;
}
.approve .done {
  background: #d1fae5;
  color: #065f46;
}
.approve svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.8;
}
.mock[data-s='9'] .row.second.on {
  opacity: 0.45;
}

/* ── How it works (the line fills as you scroll) ───────────────────────── */

.timeline {
  --gap: 24px;
  --art: 150px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.tl-step {
  position: relative;
  text-align: center;
}
.tl-step:not(:last-child)::before,
.tl-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: calc(var(--art) + 39px);
  inset-inline-start: 50%;
  width: calc(100% + var(--gap));
  height: 2px;
  background: var(--line);
}
.tl-step:not(:last-child)::after {
  background: var(--brand);
  transform: scaleX(var(--sp, 0));
  transform-origin: right;
  transition: transform 0.3s linear;
}
.tl-art {
  display: grid;
  place-items: center;
  height: var(--art);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.5s var(--ease);
}
.tl-step.lit .tl-art {
  border-color: var(--brand-line);
  box-shadow: 0 26px 50px -32px rgba(0, 82, 90, 0.55);
  transform: translateY(-4px);
}
.tl-no {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-top: 20px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
  transition: background-color 0.4s, border-color 0.4s, color 0.4s, box-shadow 0.4s, transform 0.5s var(--spring);
}
.tl-step.lit .tl-no,
html:not(.anim) .tl-no {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(0, 142, 155, 0.14);
}
.tl-step.lit .tl-no {
  transform: scale(1.08);
}
.tl-step h3 {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
}
.tl-step p {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.95;
}

/* The four small scenes; each plays once when its step lights up. */
.art-otp {
  text-align: center;
}
.art-otp small {
  color: var(--muted);
  font-size: 11.5px;
}
.otp {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  direction: ltr;
}
.otp i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 38px;
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  color: var(--ink);
  font-size: 17px;
  font-style: normal;
  font-weight: 700;
  transition: color 0.2s, border-color 0.3s, transform 0.45s var(--spring);
}
.anim .tl-step:not(.lit) .otp i {
  border-color: var(--line);
  color: transparent;
  transform: translateY(4px);
}
.otp i:nth-child(2) {
  transition-delay: 0.16s;
}
.otp i:nth-child(3) {
  transition-delay: 0.32s;
}
.otp i:nth-child(4) {
  transition-delay: 0.48s;
}
.otp i:nth-child(5) {
  transition-delay: 0.64s;
}

.art-card {
  position: relative;
}
.idcard,
.s-profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 176px;
  padding: 14px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, var(--brand-soft));
}
.idcard > div,
.s-profile > div,
.mini-shift > div {
  display: grid;
  flex: 1;
  gap: 6px;
}
.idcard > div i,
.s-profile > div i,
.mini-shift > div i {
  height: 6px;
  border-radius: 3px;
  background: #d3e2e6;
}
.idcard > div i:nth-child(2),
.s-profile > div i:nth-child(2),
.mini-shift > div i:nth-child(2) {
  width: 68%;
}
.idcard > div i:nth-child(3) {
  width: 44%;
}
.scan {
  position: absolute;
  inset-block: 0;
  left: -44px;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(0, 142, 155, 0.4), transparent);
}
.lit .idcard .scan {
  animation: scan 1.1s ease-in-out 0.3s 2 both;
}
@keyframes scan {
  to {
    transform: translateX(270px);
  }
}
.stamp {
  position: absolute;
  bottom: -12px;
  left: -16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 10px;
  border: 2px solid var(--ok);
  border-radius: 8px;
  background: #fff;
  color: var(--ok);
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-9deg);
}
.stamp svg {
  width: 13px;
  height: 13px;
  stroke-width: 3;
}
.anim .tl-step:not(.lit) .stamp {
  opacity: 0;
}
.lit .stamp {
  animation: stamp 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) 2.5s both;
}
@keyframes stamp {
  from {
    opacity: 0;
    transform: rotate(-9deg) scale(2.4);
  }
}

.art-req {
  display: grid;
  gap: 10px;
  width: 184px;
}
.mini-shift {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.mini-btn {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1.5px solid var(--brand);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}
.mini-btn > span {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-area: 1 / 1;
  gap: 4px;
  padding: 5px;
}
.mini-btn .a {
  color: var(--brand-dark);
}
.mini-btn .b {
  background: var(--brand);
  color: #fff;
  transition: opacity 0.3s 1.2s;
}
.mini-btn svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.8;
}
.anim .tl-step:not(.lit) .mini-btn .b {
  opacity: 0;
}
.lit .mini-btn .tap {
  animation: tap 0.8s ease-out 0.6s both;
}

.art-chat {
  display: grid;
  width: 196px;
}
.art-chat .bubble {
  margin-top: 7px;
  padding-block: 5px;
}
.art-chat .bubble:first-child {
  margin-top: 0;
}
.done-pill {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 4px;
  margin-top: 8px;
  padding: 0 12px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  font-size: 11.5px;
  font-weight: 700;
}
.done-pill svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.8;
}
.anim .tl-step:not(.lit) .art-chat > * {
  opacity: 0.28;
}
.lit .art-chat > * {
  animation: msg-in 0.5s var(--spring) 0.3s both;
}
.lit .art-chat > :nth-child(2) {
  animation-delay: 1s;
}
.lit .art-chat > :nth-child(3) {
  animation-delay: 1.8s;
}
@keyframes msg-in {
  from {
    opacity: 0.28;
    transform: translateY(8px) scale(0.94);
  }
}

/* ── Features (each card carries a small looping scene) ────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  position: relative;
  padding: 14px 14px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  transition: border-color 0.3s, box-shadow 0.4s, transform 0.4s var(--ease);
}
/* A soft light that follows the pointer. */
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(280px circle at var(--sx, 50%) var(--sy, 0%), rgba(0, 142, 155, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.feature:hover {
  border-color: var(--brand-line);
  box-shadow: 0 34px 60px -42px rgba(0, 82, 90, 0.6);
  transform: translateY(-4px);
}
.feature:hover::before {
  opacity: 1;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 18px 10px 0;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 18px;
}
.feature h3 {
  margin: 14px 10px 0;
  font-size: 17px;
  font-weight: 700;
}
.feature p {
  margin: 6px 10px 0;
  font-size: 14.5px;
  line-height: 1.95;
}
.stage {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  height: 136px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--tint);
  font-size: 11.5px;
  line-height: 1.7;
}

/* filter */
.s-chips {
  display: flex;
  gap: 6px;
}
.s-chips span {
  padding: 2px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}
.s-chips span:nth-child(-n + 3) {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.playing .s-chips span:nth-child(-n + 3) {
  animation: chip-on 6s infinite both;
}
.playing .s-chips span:nth-child(2) {
  animation-delay: 0.6s;
}
.playing .s-chips span:nth-child(3) {
  animation-delay: 1.2s;
}
@keyframes chip-on {
  0%,
  8%,
  82%,
  100% {
    border-color: var(--line);
    background: #fff;
    color: var(--body);
    transform: none;
  }
  13% {
    transform: scale(1.12);
  }
  16%,
  74% {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    transform: none;
  }
}
.s-range {
  position: relative;
  width: 68%;
  height: 6px;
  border-radius: 3px;
  background: #dfe8eb;
}
.s-range i {
  position: absolute;
  inset-block: 0;
  right: 20%;
  width: 45%;
  border-radius: 3px;
  background: var(--brand);
  transform-origin: right;
}
.s-range b {
  position: absolute;
  top: 50%;
  right: 65%;
  width: 14px;
  height: 14px;
  margin: -7px -7px 0 0;
  border: 3px solid var(--brand);
  border-radius: 50%;
  background: #fff;
}
.playing .s-range i {
  animation: range-fill 6s ease-in-out infinite;
}
.playing .s-range b {
  animation: range-knob 6s ease-in-out infinite;
}
@keyframes range-fill {
  0%,
  100% {
    transform: scaleX(0.4);
  }
  50% {
    transform: scaleX(1);
  }
}
@keyframes range-knob {
  0%,
  100% {
    right: 38%;
  }
  50% {
    right: 65%;
  }
}

/* nearby */
.stage-pin {
  background-color: #e9f3f5;
  background-image: linear-gradient(#fff 3px, transparent 3px), linear-gradient(90deg, #fff 3px, transparent 3px);
  background-position: 10px 12px;
  background-size: 46px 38px;
}
.stage-pin .home {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 12px;
  height: 12px;
  margin: -6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px #fff;
}
.stage-pin .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  margin: -80px;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  opacity: 0;
}
.playing .ring {
  animation: radar 3.2s ease-out infinite;
}
.playing .ring.r2 {
  animation-delay: 1.6s;
}
@keyframes radar {
  from {
    opacity: 0.75;
    transform: scale(0.1);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}
.mpin {
  position: absolute;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--brand-deep);
  font-size: 10px;
}
.mpin svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.mpin b {
  padding-inline: 6px;
  border-radius: 999px;
  background: #fff;
}
.mpin.p1 {
  top: 12px;
  right: 22%;
}
.mpin.p2 {
  bottom: 8px;
  left: 20%;
}
.mpin.p3 {
  top: 26px;
  left: 9%;
}
.playing .mpin {
  animation: pin-drop 6.4s 0.4s infinite both;
}
.playing .mpin.p2 {
  animation-delay: 1s;
}
.playing .mpin.p3 {
  animation-delay: 1.6s;
}
@keyframes pin-drop {
  0% {
    opacity: 0;
    transform: translateY(-18px);
  }
  6% {
    opacity: 1;
    transform: translateY(3px);
  }
  9%,
  86% {
    opacity: 1;
    transform: none;
  }
  94%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* chat */
.stage-chat {
  place-items: stretch;
  gap: 8px;
  padding-inline: 18px;
}
.stage-chat .bubble {
  margin-top: 0;
}
.stage-chat .b2,
.stage-chat .b3 {
  grid-area: 2 / 1;
}
.stage-chat .b2 {
  opacity: 0;
}
.playing .b1 {
  animation: chat-1 7s infinite both;
}
.playing .b2 {
  animation: chat-2 7s infinite both;
}
.playing .b3 {
  animation: chat-3 7s infinite both;
}
@keyframes chat-1 {
  0%,
  3% {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  9%,
  90% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
  }
}
@keyframes chat-2 {
  0%,
  22% {
    opacity: 0;
    transform: scale(0.8);
  }
  27%,
  46% {
    opacity: 1;
    transform: none;
  }
  50%,
  100% {
    opacity: 0;
  }
}
@keyframes chat-3 {
  0%,
  50% {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  56%,
  90% {
    opacity: 1;
    transform: none;
  }
  97%,
  100% {
    opacity: 0;
  }
}

/* notifications */
.stage-bell {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding-inline: 16px;
}
.s-bell {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 20px -12px rgba(0, 82, 90, 0.5);
  font-size: 20px;
}
.s-bell i {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--tint);
  border-radius: 50%;
  background: #ef4444;
}
.playing .s-bell svg {
  transform-origin: 50% 10%;
  animation: ring 5s ease-in-out infinite;
}
.playing .s-bell i {
  animation: badge 5s infinite;
}
@keyframes ring {
  0%,
  22%,
  50%,
  72%,
  100% {
    transform: none;
  }
  4%,
  54% {
    transform: rotate(16deg);
  }
  8%,
  58% {
    transform: rotate(-14deg);
  }
  12%,
  62% {
    transform: rotate(9deg);
  }
  16%,
  66% {
    transform: rotate(-6deg);
  }
}
@keyframes badge {
  0%,
  100% {
    transform: scale(0);
  }
  6%,
  92% {
    transform: scale(1);
  }
}
.s-notes {
  display: grid;
  gap: 6px;
}
.s-notes span {
  padding: 4px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 14px -12px rgba(0, 82, 90, 0.6);
  white-space: nowrap;
}
.playing .s-notes span {
  animation: note-1 5s infinite both;
}
.playing .s-notes span:nth-child(2) {
  animation-name: note-2;
}
@keyframes note-1 {
  0%,
  2% {
    opacity: 0;
    transform: translateX(-16px);
  }
  8%,
  90% {
    opacity: 1;
    transform: none;
  }
  98%,
  100% {
    opacity: 0;
  }
}
@keyframes note-2 {
  0%,
  50% {
    opacity: 0;
    transform: translateX(-16px);
  }
  56%,
  90% {
    opacity: 1;
    transform: none;
  }
  98%,
  100% {
    opacity: 0;
  }
}

/* rating */
.stage-star small {
  color: var(--muted);
}
.s-stars {
  display: flex;
  gap: 6px;
}
.s-stars span {
  color: #f59e0b;
}
.s-stars svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.playing .s-stars span {
  animation: star 5s infinite both;
}
.playing .s-stars span:nth-child(2) {
  animation-delay: 0.16s;
}
.playing .s-stars span:nth-child(3) {
  animation-delay: 0.32s;
}
.playing .s-stars span:nth-child(4) {
  animation-delay: 0.48s;
}
.playing .s-stars span:nth-child(5) {
  animation-delay: 0.64s;
}
@keyframes star {
  0%,
  6%,
  90%,
  100% {
    color: #d8e2e6;
    transform: none;
  }
  12% {
    color: #f59e0b;
    transform: scale(1.4);
  }
  18%,
  80% {
    color: #f59e0b;
    transform: none;
  }
}

/* verification */
.s-profile {
  width: 196px;
  padding: 10px 12px;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 20px -14px rgba(0, 82, 90, 0.6);
}
.playing .s-profile .scan {
  animation: scan-loop 6s ease-in-out infinite;
}
@keyframes scan-loop {
  0% {
    transform: none;
  }
  18% {
    transform: translateX(290px);
  }
  18.1% {
    transform: none;
  }
  36%,
  100% {
    transform: translateX(290px);
  }
}
.s-state {
  display: inline-grid;
  font-weight: 700;
}
.s-state > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-area: 1 / 1;
  gap: 4px;
  padding: 1px 12px;
  border-radius: 999px;
}
.s-state svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.8;
}
.s-state .a {
  background: #fef3c7;
  color: #92400e;
  opacity: 0;
}
.s-state .b {
  background: #d1fae5;
  color: #065f46;
}
.playing .s-state .a {
  animation: state-a 6s infinite;
}
.playing .s-state .b {
  animation: state-b 6s infinite;
}
@keyframes state-a {
  0%,
  38% {
    opacity: 1;
  }
  44%,
  94% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes state-b {
  0%,
  38% {
    opacity: 0;
    transform: scale(0.8);
  }
  46%,
  94% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

/* ── The day (one turn of the dial is 24 hours) ────────────────────────── */

.day {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 60px;
  padding: 52px 60px;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
}
.sky,
.sky i {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.sky i {
  opacity: 0;
}
.sky-day {
  background: linear-gradient(135deg, #fff6dd 0%, #dff3f6 75%);
}
.sky .sky-day {
  opacity: 1;
}
.sky-eve {
  background: linear-gradient(135deg, #ffdcc2 0%, #c4e4ec 85%);
}
.sky-night {
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 31% 68%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 63% 80%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 91% 62%, #fff 50%, transparent 51%),
    linear-gradient(135deg, #0b1d3a 0%, #003b42 90%);
}
/* Three phases share one 12s clock; a negative delay shifts each one to its
   own third of the turn. */
.playing .sky-day,
.playing .c-day {
  animation: phase 12s infinite;
}
.playing .sky-eve,
.playing .c-eve {
  animation: phase 12s -8s infinite;
}
.playing .sky-night,
.playing .c-night {
  animation: phase 12s -4s infinite;
}
@keyframes phase {
  0% {
    opacity: 0;
  }
  5%,
  33.3% {
    opacity: 1;
  }
  38.3%,
  100% {
    opacity: 0;
  }
}

.dial {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 34px 70px -34px rgba(0, 50, 60, 0.6), 0 0 0 10px rgba(255, 255, 255, 0.4);
}
.dial svg {
  display: block;
  width: 100%;
  height: 100%;
}
.dial-track,
.dial-arc {
  fill: none;
  stroke: #edf2f4;
  stroke-width: 14;
}
.dial-arc {
  stroke: var(--brand);
  stroke-linecap: round;
  opacity: 0.16;
}
.dial-arc.a-day {
  opacity: 1;
}
.playing .a-day {
  animation: arc 12s infinite;
}
.playing .a-eve {
  animation: arc 12s -8s infinite;
}
.playing .a-night {
  animation: arc 12s -4s infinite;
}
@keyframes arc {
  0% {
    opacity: 0.16;
  }
  3%,
  33.3% {
    opacity: 1;
  }
  36.3%,
  100% {
    opacity: 0.16;
  }
}
.dial-hand {
  transform: rotate(180deg);
  transform-origin: 150px 150px;
}
.playing .dial-hand {
  animation: hand 12s linear infinite;
}
@keyframes hand {
  from {
    transform: rotate(120deg);
  }
  to {
    transform: rotate(480deg);
  }
}
.dial-hand line {
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.18;
}
.dial-hand circle {
  fill: #fff;
  stroke: var(--brand-deep);
  stroke-width: 4;
}
.hr {
  position: absolute;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.h24 {
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.h12 {
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
.h6 {
  top: 50%;
  right: 42px;
  transform: translateY(-50%);
}
.h18 {
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
}
.dial-core {
  position: absolute;
  inset: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
}
.core {
  display: grid;
  justify-items: center;
  grid-area: 1 / 1;
  gap: 2px;
  color: var(--brand-dark);
  opacity: 0;
}
.core.c-day {
  opacity: 1;
}
.core svg {
  width: 34px;
  height: 34px;
}
.core b {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.day-cards {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.day-cards li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}
.day-cards li > div {
  flex: 1;
}
.day-cards h3 {
  font-size: 16.5px;
  font-weight: 700;
}
.day-cards p {
  font-size: 14px;
  line-height: 1.8;
}
.day-cards li > b {
  color: var(--brand-dark);
  font-size: 14px;
  white-space: nowrap;
}
.day-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 19px;
}
.playing .d-day {
  animation: day-card 12s infinite;
}
.playing .d-eve {
  animation: day-card 12s -8s infinite;
}
.playing .d-night {
  animation: day-card 12s -4s infinite;
}
@keyframes day-card {
  0%,
  37%,
  100% {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0 0 0 transparent;
    transform: none;
  }
  4%,
  33.3% {
    background: #fff;
    box-shadow: 0 22px 40px -26px rgba(0, 40, 50, 0.7);
    transform: translateX(10px) scale(1.02);
  }
}

/* ── No commission ─────────────────────────────────────────────────────── */

.band {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 52px 56px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, #007f8b 0%, #00474e 100%);
  color: rgba(255, 255, 255, 0.86);
}
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 75%);
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}
.band h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}
.band p {
  margin-top: 10px;
}
.band .btn {
  margin-top: 26px;
}
.flow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding-bottom: 22px;
}
.node {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12.5px;
}
.node span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 23px;
}
.track {
  position: relative;
  flex: 1;
  height: 64px;
}
.track::before {
  content: '';
  position: absolute;
  top: 50%;
  inset-inline: 0;
  border-top: 2px dashed rgba(255, 255, 255, 0.36);
}
.hub {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -38px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.14);
}
.hub img {
  border-radius: 12px;
}
.hub small {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  padding: 1px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: #00363b;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
}
.playing .hub {
  animation: hub 5s infinite;
}
@keyframes hub {
  0%,
  36%,
  60%,
  100% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.14);
  }
  48% {
    box-shadow: 0 0 0 18px rgba(123, 227, 214, 0.3);
  }
}
/* The wage crosses from the pharmacy to the pharmacist and arrives whole. */
.pay {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  margin-top: -13px;
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--mint);
  color: #00363b;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
  opacity: 0;
}
.playing .pay {
  animation: pay 5s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes pay {
  0% {
    right: 0;
    opacity: 0;
    transform: translateX(0) scale(0.6);
  }
  8% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  84% {
    right: 100%;
    opacity: 1;
    transform: translateX(100%) scale(1);
  }
  94%,
  100% {
    right: 100%;
    opacity: 0;
    transform: translateX(100%) scale(0.6);
  }
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 56px;
}
.sec-head.side {
  position: sticky;
  top: 108px;
  margin: 0;
  text-align: start;
}
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.faq details[open] {
  border-color: var(--brand-line);
  box-shadow: 0 22px 40px -32px rgba(0, 82, 90, 0.5);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23007a85' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  transition: transform 0.35s var(--ease), background-color 0.3s;
}
.faq details[open]:not(.is-closing) summary::after {
  transform: rotate(135deg);
}
.faq-body p {
  padding: 0 22px 20px;
  font-size: 15px;
}

/* ── Final call ────────────────────────────────────────────────────────── */

.home .section.final {
  padding-top: 24px;
}
.final-card {
  position: relative;
  isolation: isolate;
  padding: 68px 28px;
  overflow: hidden;
  border-radius: 36px;
  background:
    radial-gradient(720px 380px at 50% 0%, rgba(0, 165, 180, 0.5), transparent 70%),
    linear-gradient(180deg, #002a2f, #004a52);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}
.final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 20%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 20%, #000 20%, transparent 80%);
}
.final-card h2 {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
}
.final-card h2 em {
  color: var(--mint);
  font-style: normal;
}
.final-card p {
  max-width: 520px;
  margin: 12px auto 0;
}
.final-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(100%, 580px);
  margin: 32px auto 0;
  padding: 7px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.final-query {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  min-width: 0;
  padding-inline: 14px 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.final-query svg,
.final-query .caret {
  color: var(--brand);
}
.final-query .caret {
  width: 2px;
  margin-inline-start: -4px;
}

/* ── Smaller screens ───────────────────────────────────────────────────── */

@media (min-width: 1240px) {
  .f-week {
    right: -60px;
  }
  .f-wage {
    left: -44px;
  }
}

@media (max-width: 1100px) {
  .f-pin {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-block: 44px 64px;
  }
  .hero-text {
    text-align: center;
  }
  .lead {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-points {
    justify-content: center;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .day {
    gap: 36px;
    padding: 40px 32px;
  }
}

@media (max-width: 860px) {
  .home .section {
    padding-block: 68px;
  }
  .who-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mock {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
  }
  .timeline {
    --gap: 30px;
    grid-template-columns: 1fr;
  }
  .tl-step {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
    text-align: start;
  }
  .tl-step > * {
    grid-column: 2;
  }
  .tl-no {
    grid-row: 1 / span 3;
    grid-column: 1;
    margin-top: 0;
  }
  .tl-art {
    --art: 132px;
    height: 132px;
  }
  .tl-step:not(:last-child)::before,
  .tl-step:not(:last-child)::after {
    top: 20px;
    inset-inline-start: 19px;
    width: 2px;
    height: calc(100% + var(--gap));
  }
  .tl-step:not(:last-child)::after {
    transform: scaleY(var(--sp, 0));
    transform-origin: top;
  }
  .day {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .day-cards {
    width: 100%;
  }
  .band {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 28px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sec-head.side {
    position: static;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .hero {
    border-radius: 0 0 28px 28px;
  }
  .float {
    display: none;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .sec-head {
    margin-bottom: 36px;
  }
  .seg {
    margin-bottom: 32px;
  }
  .seg button {
    font-size: 14px;
  }
  .mock-body {
    padding-inline: 16px;
  }
  .day {
    padding: 32px 18px;
    border-radius: 26px;
  }
  .dial {
    width: 260px;
    height: 260px;
  }
  .dial-core {
    inset: 72px;
  }
  .day-cards li {
    padding: 14px;
  }
  .day-cards p {
    display: none;
  }
  .node span {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
  .track {
    height: 50px;
  }
  .hub {
    width: 62px;
    height: 62px;
    margin: -31px;
  }
  .final-card {
    padding: 52px 18px;
    border-radius: 28px;
  }
  .final-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .final-query {
    padding: 10px 12px 6px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .phone {
    width: 288px;
  }
  .demo-caps {
    gap: 4px;
    font-size: 11.5px;
  }
  .demo-caps li {
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after {
    animation: none !important;
    transition: none !important;
  }
}
