/* ============================================================
   WISETTLY — public homepage
   Faithful build of "homepage mock.png". Moonlight palette.
   One theme (light), one accent (steel), one radius system.
   ============================================================ */
:root {
  --bg:         #F4F8FB;
  --bg-soft:    #EDF3F8;
  --card:       #FFFFFF;
  --ink:        #1C2230;
  --ink-2:      #4A5462;
  --ink-3:      #7A8494;
  --steel:      #3C4A63;
  --steel-deep: #2C3850;
  --info:       #5B7CA8;
  --peri:       #7B8CD0;      /* periwinkle icon tint from the mock */
  --peri-soft:  #EDF0FB;
  --gold:       #C9A86A;
  --gold-ink:   #8A6F3C;
  --sage:       #5D8A72;
  --sage-soft:  #E9F3ED;
  --red:        #C25B52;
  --red-soft:   #FBEFEA;
  --line:       #E3EAF1;
  --line-2:     #D3DEE8;

  --r-card: 16px;
  --r-tile: 12px;
  --r-pill: 999px;

  --sh-sm: 0 1px 3px rgba(28, 34, 48, 0.05), 0 4px 14px rgba(28, 34, 48, 0.05);
  --sh-md: 0 6px 24px rgba(28, 34, 48, 0.08);
  --sh-lg: 0 18px 50px rgba(28, 34, 48, 0.12);

  /* motion tokens: strong ease-out for entrances, overshoot for pops */
  --ease-out-s: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-pop:   cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* Mock's page is white edge to edge; tint lives only in inner panels and the hero halo. */
  background: #FEFEFE;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
/* Wide windows: content scales toward the screen edges instead of
   floating in the center with huge empty margins. */
@media (min-width: 1280px) {
  .wrap { max-width: min(92vw, 1600px); }
}
/* The nav always spans the full window: logo by the left edge,
   actions by the right edge. */
.nav .wrap { max-width: none; padding: 0 clamp(20px, 2.6vw, 48px); }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-pill);
  border: none;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.14s var(--ease-out-s), box-shadow 0.18s ease, background 0.18s ease;
}
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 3px;
}
.btn:active { transform: translateY(1px) scale(0.97); }
.btn-dark {
  background: var(--steel-deep);
  color: #F4F8FB;
  box-shadow: 0 6px 18px rgba(44, 56, 80, 0.25);
}
.btn-dark:hover { background: var(--steel); box-shadow: 0 8px 24px rgba(44, 56, 80, 0.32); }
.btn-ghost {
  background: var(--card);
  border: 1px solid var(--line-2);
  color: var(--steel);
}
.btn-ghost:hover { border-color: var(--info); }
.btn-md { padding: 10px 22px; font-size: 14.5px; }
.btn-lg { padding: 13px 26px; font-size: 15.5px; }

/* ------------------------------------------------ header */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227, 234, 241, 0.8);
}
.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  gap: 18px;
}
/* nav CTAs stay smaller than page buttons so the slim bar breathes */
.nav-cta .btn { padding: 6px 15px; font-size: 12.5px; }
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
}
.brand-word { display: block; }
/* on scroll the wordmark letters melt away right-to-left until only the
   molecule remains; scrolling back rebuilds the word left-to-right */
.brand-word path { transition: opacity 0.3s ease; }
.brand-word path:nth-child(2) { transition-delay: 0.035s; }
.brand-word path:nth-child(3) { transition-delay: 0.07s; }
.brand-word path:nth-child(4) { transition-delay: 0.105s; }
.brand-word path:nth-child(5) { transition-delay: 0.14s; }
.brand-word path:nth-child(6) { transition-delay: 0.175s; }
.brand-word path:nth-child(7) { transition-delay: 0.21s; }
.brand-word path:nth-child(8) { transition-delay: 0.245s; }
.nav--scrolled .brand-word path { opacity: 0; }
.nav--scrolled .brand-word path:nth-child(8) { transition-delay: 0s; }
.nav--scrolled .brand-word path:nth-child(7) { transition-delay: 0.035s; }
.nav--scrolled .brand-word path:nth-child(6) { transition-delay: 0.07s; }
.nav--scrolled .brand-word path:nth-child(5) { transition-delay: 0.105s; }
.nav--scrolled .brand-word path:nth-child(4) { transition-delay: 0.14s; }
.nav--scrolled .brand-word path:nth-child(3) { transition-delay: 0.175s; }
.nav--scrolled .brand-word path:nth-child(2) { transition-delay: 0.21s; }
.nav--scrolled .brand-word path:nth-child(1) { transition-delay: 0.245s; }
.nav-links { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }

/* ------------------------------------------------ hero */
.hero { position: relative; padding: 34px 0 30px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
  gap: 24px;
  /* copy centers against the phone so the split stays balanced on tall,
     maximized windows (no dead hole under the CTA) */
  align-items: center;
}
.hero-grid > div:first-child { padding-bottom: 40px; }
.hero h1 {
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 6px;
}
.hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--info);
  margin: 0 0 14px;
}
.hero-lede {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 42ch;
  margin: 0 0 18px;
}
/* real app icon + official-style store badges (honest "coming soon" copy,
   never "Download" while the app isn't live in the stores) */
.store-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.app-ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  box-shadow: var(--sh-sm);
  display: block;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 15px 0 12px;
  border-radius: 10px;
  /* the app icon's own brand gradient, so icon + badges read as one set */
  background: linear-gradient(135deg, #55707A, #74919D);
  color: #FFFFFF;
  box-shadow: var(--sh-sm);
}
.store-badge svg { flex: none; }
.sb-txt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.16;
}
.sb-txt small {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.88;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero stage: phone + floating cards */
.stage {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* a touch of air below the header so the phone cluster doesn't crowd it */
  margin-top: 30px;
}
.halo {
  /* Soft blue disc behind the phone. A real element (not ::before) so
     main.js can set its transform directly instead of recalculating the
     whole stage subtree through CSS variables. */
  position: absolute;
  width: 760px;
  height: 760px;
  left: calc(42.5% + 12px);
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side,
    #E2ECF5 0%,
    #DCE8F3 58%,
    rgba(220, 232, 243, 0.55) 80%,
    rgba(220, 232, 243, 0) 100%);
  pointer-events: none;
}

.phone-holder {
  position: relative;
  z-index: 2;
  display: block;
  width: 306px;
  margin-right: 15%;
  margin-bottom: 40px; /* lifts the phone so it sits centered in the viewport */
}
.phone-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 34px 54px rgba(28, 34, 48, 0.20)) drop-shadow(0 8px 18px rgba(28, 34, 48, 0.10));
}

/* CSS iPhone (legacy, unused) */
.phone {
  position: relative;
  z-index: 2;
  width: 296px;
  margin-right: 15%;
  border-radius: 46px;
  background: #10141C;
  padding: 10px;
  box-shadow: var(--sh-lg), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
.phone-screen {
  position: relative;
  border-radius: 38px;
  background: var(--bg-soft);
  overflow: hidden;
  padding: 40px 12px 14px;
}
.phone-island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 20px;
  border-radius: var(--r-pill);
  background: #10141C;
}
.phone-status {
  position: absolute;
  top: 12px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* mini dashboard UI inside the phone */
.mini { font-size: 9px; color: var(--ink-2); }
.mini-greet { font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.mini-sub { font-size: 8.5px; color: var(--ink-3); margin-bottom: 10px; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.mini-stat {
  background: var(--card);
  border-radius: 9px;
  padding: 8px 6px;
  box-shadow: 0 1px 3px rgba(28, 34, 48, 0.06);
}
.mini-stat .ic {
  width: 16px; height: 16px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 3px;
}
.mini-stat b { display: block; font-size: 11.5px; color: var(--ink); }
.mini-stat span { font-size: 7px; color: var(--ink-3); line-height: 1.2; display: block; }
.mini-next {
  background: linear-gradient(150deg, #46586F, #33445C);
  color: #EAF0F6;
  border-radius: 12px;
  padding: 12px 12px;
  margin-bottom: 10px;
  position: relative;
}
.mini-next .tag { font-size: 7px; letter-spacing: 0.12em; opacity: 0.75; text-transform: uppercase; }
.mini-next b { display: block; font-size: 16px; letter-spacing: -0.01em; margin: 3px 0 2px; }
.mini-next span { font-size: 8px; opacity: 0.85; }
.mini-next .avatar {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #6D6175;
  color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mini-book {
  background: var(--card);
  border-radius: var(--r-pill);
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--steel);
  padding: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(28, 34, 48, 0.06);
}
.mini-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.mini-h b { font-size: 10.5px; color: var(--ink); }
.mini-h span { font-size: 8px; color: var(--info); }
.mini-lead {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border-radius: 9px;
  padding: 7px 8px;
  margin-bottom: 5px;
  box-shadow: 0 1px 2px rgba(28, 34, 48, 0.05);
}
.mini-lead .avatar {
  width: 19px; height: 19px;
  border-radius: 50%;
  color: #fff;
  font-size: 7px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.mini-lead b { display: block; font-size: 8.8px; color: var(--ink); }
.mini-lead span { display: block; font-size: 7.2px; color: var(--ink-3); }
.mini-lead .new {
  margin-left: auto;
  font-size: 6.5px;
  font-weight: 700;
  color: var(--gold-ink);
  background: #F4ECDC;
  border-radius: var(--r-pill);
  padding: 2.5px 6px;
  flex: none;
}
.mini-tabs {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  margin-top: 9px;
  font-size: 7px;
  color: var(--ink-3);
  text-align: center;
}
.mini-tabs .on { color: var(--info); font-weight: 700; }
.mini-tabs i {
  display: block;
  width: 12px; height: 12px;
  margin: 0 auto 3px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.8;
}

/* floating cards around the phone.
   .fc-wrap owns position + JS depth transforms (scroll/cursor parallax);
   .float-card inside owns the CSS animations (pop-in, drift). */
.fc-wrap {
  position: absolute;
  z-index: 3;
  width: 152px;
}
.float-card {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--sh-md);
  padding: 11px 13px;
  width: 100%;
}
.float-card .fc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 7px;
}
.fc-ic {
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--peri-soft);
  color: var(--peri);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
/* AI marks float free — no chip behind the molecule, as in the app */
.fc-ic--brand { background: transparent; }
.fc-ic--brand .wm { width: 26px; }
.flow-ic.flow-ic--brand { background: transparent; }
.float-card p { margin: 0; font-size: 9.8px; line-height: 1.5; color: var(--ink-2); }
.fc-note { font-size: 9px; color: var(--ink-3); margin-top: 6px; }
.fc-select {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  font-size: 9px;
  color: var(--ink-2);
  padding: 3px 8px;
  margin-top: 8px;
}
.fc--summary { top: 27%; left: -12%; }
.fc--draft { bottom: 9%; left: -10%; }
.fc--calendar { top: 5%; right: 1%; width: 168px; }
.fc--payment { bottom: 21%; right: 3%; }
/* Wide windows widen the stage; anchor the cards to its center so they
   keep hugging the phone instead of drifting to the edges. */
@media (min-width: 1280px) {
  .fc--summary  { left: auto; right: calc(50% + 232px); }
  .fc--draft    { left: auto; right: calc(50% + 220px); }
  .fc--calendar { right: auto; left: calc(50% + 124px); }
  .fc--payment  { right: auto; left: calc(50% + 126px); }
}

.fc-days { display: flex; gap: 7px; margin-top: 4px; }
.fc-day { text-align: center; font-size: 8px; color: var(--ink-3); }
.fc-day i {
  display: block;
  width: 15px; height: 15px;
  border-radius: 50%;
  margin: 3px auto 0;
  background: var(--peri);
  opacity: 0.9;
}
.fc-day.off i { background: var(--line-2); }
.fc-legend { display: flex; gap: 10px; margin-top: 8px; font-size: 8.5px; color: var(--ink-3); }
.fc-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }

.fc-amount { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin: 2px 0 6px; }
.fc-row { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--ink-2); margin-top: 4px; }
.fc-row .ok { color: var(--sage); font-weight: 700; }

.connector {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: var(--line-2);
}

/* ------------------------------------------------ flow section */
.section { padding: 34px 0; }

/* giant watermark statement between the hero and the flow */
.statement { padding: 0 0 46px; margin-top: -52px; }
/* full-bleed like the reference: the giant line runs edge to edge */
.statement .wrap { max-width: none; padding: 0 16px; }
.statement-text {
  margin: 0;
  text-align: center;
  font-size: clamp(38px, 6.6vw, 96px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: #DCE3EA;
}
.section-title {
  text-align: center;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}
.flow-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 17px 16px;
  box-shadow: var(--sh-sm);
  position: relative;
}
.flow-ic {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--peri-soft);
  color: var(--peri);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  position: relative;
}
.flow-ic .n1 {
  position: absolute;
  top: -5px; right: -7px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #DCE2F6;
  color: var(--steel);
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.flow-card h3 { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 5px; }
.flow-card p { font-size: 11.8px; color: var(--ink-2); margin: 0; }
/* channel tiles under "Client message arrives" — same visual language as
   the app's Inbox filter row (40px tile / radius 13, scaled to 26px) */
.chan-row { display: flex; gap: 7px; margin-top: 12px; }
.chan {
  width: 26px; height: 26px;
  border-radius: 8.5px;
  display: flex; align-items: center; justify-content: center;
}
.chan svg { width: 14px; height: 14px; fill: currentColor; }
.flow-arrow {
  position: absolute;
  top: 50%;
  right: -13px;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--ink-3);
  background: var(--bg);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.badge-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  margin-top: 16px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 550;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 11px;
}
.badge svg { color: var(--sage); flex: none; }

/* ------------------------------------------------ dashboard section */
.glance {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--sh-sm);
  padding: 22px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}
.glance-copy h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.2; }
.glance-copy p { font-size: 12px; color: var(--ink-2); margin: 0 0 14px; }
.glance-board { display: grid; gap: 12px; }
.gb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gb-stat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 11px 12px;
}
.gb-stat .top { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--ink-2); margin-bottom: 5px; }
.gb-stat .top i {
  width: 21px; height: 21px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.gb-stat b { font-size: 18px; letter-spacing: -0.01em; }
.gb-stat .note { font-size: 9.8px; color: var(--ink-3); }
.gb-stat .spark { margin-left: auto; }
.gb-row { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 12px; }
.gb-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 14px;
}
.gb-panel h4 { margin: 0 0 8px; font-size: 11.5px; color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; }
.gb-panel h4 a { font-size: 10.5px; color: var(--info); text-decoration: none; font-weight: 550; }
.gb-next b { display: block; font-size: 18px; letter-spacing: -0.01em; }
.gb-next .who { font-size: 11.5px; color: var(--ink-2); margin: 3px 0 1px; }
.gb-next .meta { font-size: 10.5px; color: var(--ink-3); }
.gb-next { position: relative; }
.gb-next .avatar {
  position: absolute;
  top: 34px; right: 13px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #6D6175;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.gb-next .view {
  margin-top: 11px;
  display: block;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  color: var(--steel);
  text-decoration: none;
  padding: 6.5px;
}
.lead-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
}
.lead-row + .lead-row { border-top: 1px solid var(--line); }
.lead-row .avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 8.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.lead-row b { display: block; font-size: 11.5px; }
.lead-row span { display: block; font-size: 10px; color: var(--ink-3); }
.lead-row .new {
  margin-left: auto;
  font-size: 8.8px;
  font-weight: 700;
  color: var(--gold-ink);
  background: #F4ECDC;
  border-radius: var(--r-pill);
  padding: 2.5px 8px;
  flex: none;
}
.lead-row .ago { font-size: 9.5px; color: var(--ink-3); flex: none; }

/* ------------------------------------------------ 3 feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--sh-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}
.feature h3 i {
  width: 27px; height: 27px;
  border-radius: 8px;
  background: var(--peri-soft);
  color: var(--peri);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.feature ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5.5px; }
.feature li {
  font-size: 11.5px;
  color: var(--ink-2);
  padding-left: 15px;
  position: relative;
}
.feature li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--peri);
  opacity: 0.7;
}
.feature-visual {
  margin-top: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 10px;
  font-size: 10px;
  color: var(--ink-2);
}

/* mini week calendar */
.wk { display: grid; grid-template-columns: 34px repeat(5, 1fr); gap: 4px; font-size: 9px; }
.wk .h { text-align: center; color: var(--ink-3); font-weight: 600; padding-bottom: 2px; }
.wk .t { color: var(--ink-3); font-size: 8px; padding-top: 6px; }
.wk .cell { height: 22px; border-radius: 5px; background: var(--card); border: 1px solid var(--line); }
.wk .ev-a { background: #E4E9F8; border-color: #C9D3F0; grid-row: span 2; height: auto;
  color: var(--steel); font-size: 8px; padding: 4px; font-weight: 600; }
.wk .ev-b { background: #E9F3ED; border-color: #CBE3D4; grid-row: span 3; height: auto;
  color: #3F6B52; font-size: 8px; padding: 4px; font-weight: 600; }
.wk .blk { background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 3px, #E7EDF3 3px, #E7EDF3 6px); }

/* revenue mini table */
.rev { display: grid; gap: 6px; }
.rev-row { display: flex; justify-content: space-between; font-size: 11px; }
.rev-row b { font-weight: 600; }
.rev-row .pos { color: var(--sage); }
.rev-row .warn { color: var(--gold-ink); }
.rev-row .bad { color: var(--red); }
.rev-head { font-size: 11px; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }

/* client memory mini profile */
.cli b { font-size: 12.5px; }
.cli .field { display: flex; justify-content: space-between; font-size: 11px; margin-top: 5px; }
.cli .field span:first-child { color: var(--ink-3); }
.cli-refs { display: flex; gap: 6px; margin-top: 9px; }
.cli-refs img {
  width: 44px; height: 34px;
  object-fit: cover;
  border-radius: 6px;
  filter: grayscale(1);
  opacity: 0.9;
}
.cli .hist { font-size: 10.5px; color: var(--ink-3); margin-top: 8px; }

/* ------------------------------------------------ stats band */
.band {
  /* same brand blue-steel family and depth as the client-memory card */
  background:
    radial-gradient(80% 160% at 10% 0%, rgba(124, 146, 159, 0.38), transparent 55%),
    radial-gradient(60% 140% at 94% 100%, rgba(85, 112, 122, 0.45), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px),
    linear-gradient(150deg, #33474F, #1E2A31 72%);
  background-size: auto, auto, 19px 19px, auto;
  border: 1px solid rgba(158, 190, 203, 0.16);
  border-radius: 20px;
  color: #EDF3F6;
  padding: 20px 30px 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), var(--sh-md);
}
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.band-cell { display: flex; align-items: center; gap: 14px; }
.band-cell + .band-cell { border-left: 1px solid rgba(234, 240, 246, 0.14); padding-left: 24px; }
.band-ic {
  width: 37px; height: 37px;
  border-radius: 50%;
  border: 1px solid rgba(234, 240, 246, 0.25);
  display: flex; align-items: center; justify-content: center;
  color: #C7D3E2;
  flex: none;
}
.band-cell b { display: block; font-size: 21px; letter-spacing: -0.02em; line-height: 1.1; }
.band-cell span { font-size: 11px; color: rgba(234, 240, 246, 0.7); }
.band-note {
  text-align: center;
  font-size: 11.5px;
  color: rgba(234, 240, 246, 0.75);
  margin: 14px 0 0;
}
.band-note strong { color: #EAF0F6; font-weight: 600; }

/* ------------------------------------------------ marketplace comparison */
/* --- client memory showcase: dark card in the brand's blue-steel family
   (the app icon / store badges gradient), with light + texture for depth --- */
.cardx {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(124, 146, 159, 0.38), transparent 55%),
    radial-gradient(70% 110% at 96% 100%, rgba(85, 112, 122, 0.45), transparent 60%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px),
    linear-gradient(150deg, #33474F, #1E2A31 72%);
  background-size: auto, auto, 19px 19px, auto;
  border: 1px solid rgba(158, 190, 203, 0.16);
  border-radius: 20px;
  color: #EDF3F6;
  padding: 30px 32px;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), var(--sh-lg);
}
.cardx-ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(158, 190, 203, 0.18);
  border: 1px solid rgba(158, 190, 203, 0.22);
  color: #C4D8E1;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.cardx-copy h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.cardx-copy h2 em { font-style: normal; color: #9EBECB; }
.cardx-rule {
  width: 132px; height: 2px; border: 0;
  margin: 15px 0 18px;
  background: linear-gradient(90deg, #7C929F, rgba(124, 146, 159, 0));
}
.cardx-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cardx-copy li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: #DCE6EB; }
.cardx-check {
  flex: none; width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #55707A, #74919D);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cardx-panel {
  background: var(--card);
  border-radius: var(--r-card);
  padding: 18px;
  color: var(--ink);
  box-shadow: var(--sh-lg);
}
.cp-head { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cp-avatar {
  flex: none; width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #55707A, #74919D);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cp-id b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.cp-id span { font-size: 11.5px; color: var(--ink-3); }
.cp-pill {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 650;
  color: var(--gold-ink);
  background: #FAF4E7;
  border: 1px solid #EFE2C6;
  border-radius: var(--r-pill);
  padding: 4px 10px;
}
.cp-fields {
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  margin-top: 14px;
}
.cp-field {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  font-size: 12px;
}
.cp-field + .cp-field { border-top: 1px solid var(--line); }
.cp-field span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); }
.cp-field b { font-weight: 600; color: var(--ink-2); }
.cp-bottom { display: flex; gap: 14px; margin-top: 14px; }
.cp-refs { display: flex; gap: 7px; }
.cp-refs img { border-radius: 8px; display: block; object-fit: cover; }
.cp-stats {
  list-style: none; margin: 0; padding: 0 0 0 14px;
  border-left: 1px solid var(--line);
  display: grid; gap: 8px; align-content: center;
  flex: 1;
}
.cp-stats li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.cp-stats svg { color: var(--peri); flex: none; }

.mkt {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--sh-sm);
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  align-items: center;
}
.mkt-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--info);
  background: var(--peri-soft);
  border-radius: var(--r-pill);
  padding: 5px 11px;
  margin-bottom: 11px;
}
.mkt-h-w { display: block; color: var(--info); }
.mkt-col-ic {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--bg-soft);
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.mkt-w-head { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.mkt-w-head img { border-radius: 8px; display: block; box-shadow: var(--sh-sm); }
.mkt-w-head h4 { margin: 0 !important; }

/* the sales argument tells its story on reveal: the marketplace ✗ rows
   land one by one, the arrow pops, then the Wisettly ✓ rows answer */
.motion.js .mkt li {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.5s var(--ease-out-s), transform 0.5s var(--ease-out-s);
}
.motion.js .mkt.in li { opacity: 1; transform: none; }
.motion.js .mkt.in:not(.done) .x:nth-child(1)  { transition-delay: 0.15s; }
.motion.js .mkt.in:not(.done) .x:nth-child(2)  { transition-delay: 0.23s; }
.motion.js .mkt.in:not(.done) .x:nth-child(3)  { transition-delay: 0.31s; }
.motion.js .mkt.in:not(.done) .x:nth-child(4)  { transition-delay: 0.39s; }
.motion.js .mkt.in:not(.done) .ok:nth-child(1) { transition-delay: 0.6s; }
.motion.js .mkt.in:not(.done) .ok:nth-child(2) { transition-delay: 0.68s; }
.motion.js .mkt.in:not(.done) .ok:nth-child(3) { transition-delay: 0.76s; }
.motion.js .mkt.in:not(.done) .ok:nth-child(4) { transition-delay: 0.84s; }
.motion.js .mkt .mkt-arrow {
  opacity: 0;
  transform: translateY(-50%) scale(0.6);
  transition: opacity 0.4s var(--ease-pop), transform 0.4s var(--ease-pop);
}
.motion.js .mkt.in .mkt-arrow { opacity: 1; transform: translateY(-50%) scale(1); }
.motion.js .mkt.in:not(.done) .mkt-arrow { transition-delay: 0.48s; }
.mkt h2 { font-size: 18.5px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.28; margin: 0 0 8px; }
.mkt-copy p { font-size: 11.5px; color: var(--ink-2); margin: 0; }
.mkt-col h4 { font-size: 12.5px; font-weight: 700; margin: 0 0 10px; }
.mkt-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7.5px; }
.mkt-col li { display: flex; gap: 8px; font-size: 11.5px; color: var(--ink-2); align-items: flex-start; }
.mkt-col li svg { flex: none; margin-top: 2px; }
.mkt-col .x svg { color: var(--red); }
.mkt-col .ok svg { color: var(--sage); }
.mkt-col--w {
  background: #FBFCFF;
  border: 1px solid #D8DFF4;
  box-shadow: var(--sh-sm);
  border-radius: var(--r-card);
  padding: 16px;
  position: relative;
}
.mkt-arrow {
  position: absolute;
  left: -17px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--steel-deep);
  color: #F4F8FB;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sh-md);
}

/* ------------------------------------------------ google section */
.google {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--sh-sm);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 46px 1fr 250px;
  gap: 18px;
  align-items: start;
}
.google h2 { font-size: 14.5px; font-weight: 700; margin: 0 0 6px; }
.google p { font-size: 11.3px; color: var(--ink-2); line-height: 1.62; margin: 0; }
.google a { color: var(--steel); font-weight: 600; }
.google-side {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 13px;
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.6;
}
.g-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  display: flex; align-items: center; justify-content: center;
}

/* ------------------------------------------------ final CTA */
.final {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--sh-sm);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.final-mark { flex: none; }
.final h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.22; margin: 0 0 5px; }
.final p { font-size: 11.5px; color: var(--ink-2); margin: 0; }
.final-cta { margin-left: auto; text-align: right; flex: none; }
.final-cta .row { display: flex; gap: 12px; justify-content: flex-end; }
.final-cta .note { font-size: 10.5px; color: var(--ink-3); margin-top: 9px; }

/* ------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 34px; }
.footer-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-size: 11.5px;
  color: var(--ink-3);
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--ink); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--steel); font-weight: 550; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ------------------------------------------------ motion
   Scroll choreography. Everything animates transform/opacity/filter only.
   The gate is html.motion, set by an inline script in <head> before first
   paint: on when the visitor allows motion, off under OS Reduce Motion,
   forceable with ?motion=1 to preview. Reveal hiding also requires html.js
   so content never hides if JS fails. Without .motion the page is fully
   visible and static. */
.nav { transition: box-shadow 0.25s ease; }
.nav--scrolled { box-shadow: 0 10px 30px rgba(28, 34, 48, 0.07); }

/* reading progress bar (hidden unless motion is on) */
.progress { display: none; }
.motion.js .progress {
  display: block;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--peri));
  transform: scaleX(0);
  transform-origin: 0 0;
  z-index: 60;
  pointer-events: none;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes phone-in {
  from { opacity: 0; transform: translateY(48px) scale(0.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes halo-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(24px) scale(0.88); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-10px); }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: none; }
}
@keyframes march {
  to { stroke-dashoffset: -8; }
}

/* --- hero entrance (pure CSS, runs once on load) --- */
.motion .hero h1        { animation: rise-in 0.7s var(--ease-out-s) both; }
.motion .hero .hero-sub { animation: rise-in 0.7s var(--ease-out-s) 0.1s both; }
.motion .hero .hero-lede{ animation: rise-in 0.7s var(--ease-out-s) 0.2s both; }
.motion .hero .store-strip > * { animation: rise-in 0.7s var(--ease-out-s) both; }
.motion .hero .store-strip > *:nth-child(1) { animation-delay: 0.3s; }
.motion .hero .store-strip > *:nth-child(2) { animation-delay: 0.36s; }
.motion .hero .store-strip > *:nth-child(3) { animation-delay: 0.42s; }
.motion .hero .hero-cta { animation: rise-in 0.7s var(--ease-out-s) 0.4s both; }

.motion .stage          { perspective: 1100px; }
.motion .halo           { animation: halo-in 1s ease-out 0.15s both; }
.motion .phone-holder   { animation: phone-in 0.85s var(--ease-out-s) 0.3s both; }
.motion .connector      { animation: fade-in 0.6s ease-out 1.2s both; }
/* dotted connectors quietly march toward the phone */
.motion .connector path { animation: march 1.1s linear infinite; }

/* Cards pop in with a slight overshoot, then keep drifting. drift's `from`
   equals card-in's end state so the hand-off is seamless. The wrappers
   (.fc-wrap) carry the JS scroll/cursor parallax and never animate in CSS. */
.motion .float-card { animation: drift 7s ease-in-out infinite alternate,
                          card-in 0.6s var(--ease-pop) both; }
.motion .fc--summary  .float-card { animation-delay: 1.25s, 0.65s; }
.motion .fc--calendar .float-card { animation-delay: 2.00s, 0.78s; }
.motion .fc--payment  .float-card { animation-delay: 2.65s, 0.91s; }
.motion .fc--draft    .float-card { animation-delay: 3.30s, 1.04s; }

.motion .hero-copy, .motion .stage, .motion .phone-holder, .motion .fc-wrap {
  will-change: transform;
}

/* --- headline focus bloom (spans injected by main.js) ---
   Words rise a touch and sharpen from blur, staggered from the center of
   the headline outward — the sentence comes into focus as one thought. */
.motion.js .wsplit span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em) scale(1.02);
  filter: blur(10px);
  transition: opacity 0.65s var(--ease-out-s),
              transform 0.65s var(--ease-out-s),
              filter 0.55s ease-out;
}
.motion.js .in .wsplit span,
.motion.js .wsplit.in span { opacity: 1; transform: none; filter: none; }

/* --- scroll reveals (single blocks) --- */
.motion.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s var(--ease-out-s), transform 0.7s var(--ease-out-s), filter 0.7s ease-out;
}
/* big surfaces also sharpen from a blur */
.motion.js .glance.reveal,
.motion.js .band.reveal,
.motion.js .mkt.reveal,
.motion.js .google.reveal,
.motion.js .final.reveal { filter: blur(9px); }
.motion.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* --- scroll reveals with child stagger ---
   Delay rules are scoped to :not(.done); main.js flags .done after the
   entrance so hover transitions react instantly afterwards. */
.motion.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out-s), transform 0.6s var(--ease-out-s);
}
.motion.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.motion.js .reveal-stagger.in:not(.done) > *:nth-child(2) { transition-delay: 0.07s; }
.motion.js .reveal-stagger.in:not(.done) > *:nth-child(3) { transition-delay: 0.14s; }
.motion.js .reveal-stagger.in:not(.done) > *:nth-child(4) { transition-delay: 0.21s; }
.motion.js .reveal-stagger.in:not(.done) > *:nth-child(5) { transition-delay: 0.28s; }
.motion.js .reveal-stagger.in:not(.done) > *:nth-child(6) { transition-delay: 0.35s; }

/* badges pop with overshoot instead of the plain rise */
.motion.js .badge-strip > * { transform: translateY(16px) scale(0.8); }
.motion.js .badge-strip.in > * { transition-timing-function: var(--ease-pop); }

/* flow: number/icon chips pop after their card lands */
.motion.js .flow.in .flow-ic { animation: pop-in 0.55s var(--ease-pop) both; }
.motion.js .flow.in .flow-card:nth-child(1) .flow-ic { animation-delay: 0.25s; }
.motion.js .flow.in .flow-card:nth-child(2) .flow-ic { animation-delay: 0.4s; }
.motion.js .flow.in .flow-card:nth-child(3) .flow-ic { animation-delay: 0.55s; }
.motion.js .flow.in .flow-card:nth-child(4) .flow-ic { animation-delay: 0.7s; }

/* the channels connect one by one after the card lands */
.motion.js .flow .chan { opacity: 0; }
.motion.js .flow.in .chan { animation: pop-in 0.5s var(--ease-pop) both; }
.motion.js .flow.in .chan:nth-child(1) { animation-delay: 0.6s; }
.motion.js .flow.in .chan:nth-child(2) { animation-delay: 0.78s; }
.motion.js .flow.in .chan:nth-child(3) { animation-delay: 0.96s; }
.motion.js .flow.in .chan:nth-child(4) { animation-delay: 1.14s; }

/* features: the mini-visual inside each card rises after the card */
.motion.js .features.in .feature-visual { animation: rise-in 0.65s var(--ease-out-s) both; }
.motion.js .features.in .feature:nth-child(1) .feature-visual { animation-delay: 0.35s; }
.motion.js .features.in .feature:nth-child(2) .feature-visual { animation-delay: 0.5s; }
.motion.js .features.in .feature:nth-child(3) .feature-visual { animation-delay: 0.65s; }

/* --- glance board: tiles cascade, panels follow, sparklines draw --- */
.motion.js .glance.reveal .gb-stat {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease-out-s), transform 0.55s var(--ease-out-s);
}
.motion.js .glance.reveal.in .gb-stat { opacity: 1; transform: none; }
.motion.js .glance.reveal.in:not(.done) .gb-stat:nth-child(2) { transition-delay: 0.1s; }
.motion.js .glance.reveal.in:not(.done) .gb-stat:nth-child(3) { transition-delay: 0.2s; }
.motion.js .glance.reveal.in:not(.done) .gb-stat:nth-child(4) { transition-delay: 0.3s; }
.motion.js .glance.reveal .gb-panel {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease-out-s), transform 0.6s var(--ease-out-s);
}
.motion.js .glance.reveal.in .gb-panel { opacity: 1; transform: none; }
.motion.js .glance.reveal.in:not(.done) .gb-panel:nth-child(1) { transition-delay: 0.4s; }
.motion.js .glance.reveal.in:not(.done) .gb-panel:nth-child(2) { transition-delay: 0.55s; }
.motion.js .glance.reveal .spark path {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  transition: stroke-dashoffset 1.1s ease-out 0.55s;
}
.motion.js .glance.reveal.in .spark path { stroke-dashoffset: 0; }

/* --- stats band: cells pop with overshoot --- */
.motion.js .band.reveal .band-cell {
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  transition: opacity 0.55s var(--ease-pop), transform 0.55s var(--ease-pop);
}
.motion.js .band.reveal.in .band-cell { opacity: 1; transform: none; }
.motion.js .band.reveal.in:not(.done) .band-cell:nth-child(2) { transition-delay: 0.1s; }
.motion.js .band.reveal.in:not(.done) .band-cell:nth-child(3) { transition-delay: 0.2s; }
.motion.js .band.reveal.in:not(.done) .band-cell:nth-child(4) { transition-delay: 0.3s; }

/* --- marketplace comparison: columns slide in from the sides --- */
.motion.js .mkt.reveal .mkt-col {
  opacity: 0;
  transform: translateX(-52px);
  transition: opacity 0.7s var(--ease-out-s) 0.15s, transform 0.7s var(--ease-out-s) 0.15s;
}
.motion.js .mkt.reveal .mkt-col--w {
  transform: translateX(52px);
  transition-delay: 0.3s;
}
.motion.js .mkt.reveal.in .mkt-col { opacity: 1; transform: none; }

/* --- signature moments ---------------------------------------- */

/* light sweep across the phone screen every few seconds */
@keyframes glare {
  0%   { background-position: 130% 0; }
  14%  { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}
.motion .phone-holder::after {
  content: "";
  position: absolute;
  inset: 4px 3px;
  border-radius: 46px;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%);
  background-size: 280% 100%;
  background-position: 130% 0;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: glare 9s ease-in-out 2.4s infinite;
}

/* one-time sheen across the headline after it lands */
@keyframes sheen {
  from { background-position: 130% 0; }
  to   { background-position: -30% 0; }
}
@supports (-webkit-background-clip: text) {
  .motion .hero h1 {
    background: linear-gradient(110deg, var(--ink) 44%, #56688F 50%, var(--ink) 56%);
    background-size: 260% 100%;
    background-position: 130% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rise-in 0.7s var(--ease-out-s) both,
               sheen 2s ease-out 1.2s 1 both;
  }
}

/* the floating cards receive "live data": calendar dots pulse in a wave,
   the payment check beats, the AI Summary spark twinkles */
@keyframes pulse-dot {
  0%, 86%, 100% { transform: scale(1); }
  93%           { transform: scale(1.4); }
}
.motion .fc--calendar .fc-day i { animation: pulse-dot 6s ease-in-out infinite; }
.motion .fc--calendar .fc-day:nth-child(2) i { animation-delay: 0.14s; }
.motion .fc--calendar .fc-day:nth-child(3) i { animation-delay: 0.28s; }
.motion .fc--calendar .fc-day:nth-child(4) i { animation-delay: 0.42s; }
.motion .fc--calendar .fc-day:nth-child(5) i { animation-delay: 0.56s; }

@keyframes check-beat {
  0%, 88%, 100% { transform: scale(1); }
  93%           { transform: scale(1.45); }
}
.motion .fc--payment .fc-row .ok svg { animation: check-beat 7s ease-in-out 1.5s infinite; }

/* Wisettly molecule marks (AI Summary / AI Draft) — the motion is the
   app's WisettlyMarkThinking, driven by main.js. The atom circles only
   show while the molecule morphs into the typing row; without motion
   the mark stays static (W + free dot). */
.wm .wm-a { opacity: 0; }

/* AI Draft types itself: char spans injected by main.js */
@keyframes char-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.motion.js .typewriter span { opacity: 0; animation: char-in 1ms linear both; }
@keyframes caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes caret-off { to { opacity: 0; visibility: hidden; } }
.motion.js .typewriter::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--info);
  animation: caret-blink 0.75s steps(1) infinite,
             caret-off 1ms linear var(--type-end, 5s) forwards;
}

/* flow arrows nudge forward, passing the baton between steps */
@keyframes nudge {
  0%, 100% { transform: translateX(0); opacity: 0.65; }
  50%      { transform: translateX(5px); opacity: 1; }
}
.motion.js .flow.in .flow-arrow svg { animation: nudge 2.6s ease-in-out infinite; }
.motion.js .flow.in .flow-card:nth-child(2) .flow-arrow svg { animation-delay: 0.35s; }
.motion.js .flow.in .flow-card:nth-child(3) .flow-arrow svg { animation-delay: 0.7s; }

/* --- hover lifts (desktop pointers only) --- */
@media (hover: hover) {
  .motion.js .flow.reveal-stagger.in > .flow-card:hover,
  .motion.js .features.reveal-stagger.in > .feature:hover { transform: translateY(-4px); }
  .motion.js .glance.reveal.in .gb-stat:hover { transform: translateY(-4px); }
  .motion.js .mkt.reveal.in .mkt-col:hover { transform: translateY(-3px); }
}

/* ------------------------------------------------ responsive */
@media (max-width: 1020px) {
  .cardx { grid-template-columns: 1fr; padding: 26px 22px; }
  .cp-bottom { flex-wrap: wrap; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .stage { min-height: 540px; margin-top: 20px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-arrow { display: none; }
  .glance { grid-template-columns: 1fr; }
  .gb-stats { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .band-cell + .band-cell { border-left: none; padding-left: 0; }
  .mkt { grid-template-columns: 1fr; }
  .mkt-arrow { display: none; }
  .google { grid-template-columns: 1fr; }
  .final { flex-direction: column; text-align: center; }
  .final-cta { margin-left: 0; text-align: center; }
  .final-cta .row { justify-content: center; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 40px; }
  .flow { grid-template-columns: 1fr; }
  .gb-row { grid-template-columns: 1fr; }
  .fc--summary { left: 0; }
  .fc--draft { left: 0; }
  .fc--calendar { right: 0; }
  .fc--payment { right: 0; }
  .fc-wrap { width: 172px; }
  .band { padding: 30px 24px; }
  .band-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
