/* =========================================================================
   Home — page modules from the designer's final file (hotel360-landing (1).html).
   Shared components (navbar, buttons, cards, accordion, form card, footer,
   chat, marquee) come from the design system. This file only lays out and
   animates the home-specific scenes, using design-system tokens.
   Sections: 0 page · 1 hero story · 2 daily · 3 marquee band · 4 problem
             5 merge story + product panel · 6 capabilities · 7 who
             8 testimonials · 9 FAQ / CTA tweaks · 10 chat dock
   ========================================================================= */

@property --pg { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* =========================================================================
   0. PAGE
   ========================================================================= */
.page-home { background: var(--ink-950); }
.page-home .hero[data-theme], .page-home .daily[data-theme], .page-home .mrg[data-theme] { background-color: transparent; }
.menu-open .aur-dot, .menu-open .mk-fab, .menu-open .mk-chat { visibility: hidden !important; }

/* =========================================================================
   1. HERO + 3D STORY
   ========================================================================= */
.hero {
  position: relative; isolation: isolate; max-width: 1200px; margin: 0 auto;
  padding: 0 var(--gut) 140px; display: flex; flex-direction: column; align-items: center;
}
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; z-index: -2; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(var(--white) 0%, var(--white) calc(100vh - 72px), var(--gray-50) calc(100vh + 200px), var(--gray-50) 100%);
}
.hero-frame {
  position: absolute; z-index: -1; top: 14px; left: 50%; transform: translateX(-50%); pointer-events: none;
  width: calc(100vw - 32px); height: calc(100svh - 100px); border-radius: var(--r-lg);
  background:
    radial-gradient(50% 40% at 10% 6%, #e8f2e2 0%, transparent 70%),
    radial-gradient(45% 35% at 92% 8%, #eef2ec 0%, transparent 70%),
    radial-gradient(55% 45% at 50% 38%, rgba(255,255,255,.95) 0%, transparent 70%),
    radial-gradient(40% 30% at 18% 62%, rgba(228,232,226,.7) 0%, transparent 70%),
    radial-gradient(40% 30% at 82% 70%, rgba(232,235,230,.7) 0%, transparent 70%),
    linear-gradient(#f2f6f0 0%, #f5f7f4 35%, #f3f4f2 70%, #efefec 100%);
  box-shadow: 0 0 0 1px rgba(26,35,31,.04), 0 30px 60px -40px rgba(26,35,31,.25);
}
@media (max-width: 900px) { .hero-frame { top: 10px; width: calc(100vw - 20px); height: calc(100svh - 80px); } }

.hero-copy {
  position: relative; width: 100%; min-height: calc(100svh - 90px); padding: 40px 0 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; will-change: transform;
}
.hero-copy h1 { color: var(--ink-850); }
.hero-copy h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-copy h1 .ln > * { display: inline-block; }
.hero-copy h1 .ln > span { color: var(--ink-850); }
.hero-copy h1 .pd { color: transparent !important; transition: color .35s; }
.hero-copy h1 .pd.show { color: inherit !important; }
.hero-copy .sub { margin: 22px auto 0; max-width: 560px; font-size: var(--fs-base); line-height: var(--lh-body); color: var(--gray-600); }
.hero-copy .ctas { position: relative; z-index: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-copy .scroll-cue { margin-top: 44px; color: var(--gray-400); }

/* entrance (body.intro is removed by home.js right after load) */
.hero-copy h1 .ln > *, .hero-copy .sub, .hero-copy .ctas, .hero-copy .tags, .hero-copy .scroll-cue {
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero-copy h1 .ln:nth-child(1) > * { transition-delay: .15s; }
.hero-copy h1 .ln:nth-child(2) > * { transition-delay: .3s; }
.hero-copy .sub { transition-delay: 1.15s; }
.hero-copy .ctas { transition-delay: 1.6s; }
.hero-copy .tags { transition-delay: 1.9s; }
.hero-copy .scroll-cue { transition-delay: 2.3s; }
.intro .hero-copy h1 .ln > *, .intro .hero-copy .sub, .intro .hero-copy .ctas, .intro .hero-copy .tags, .intro .scroll-cue { opacity: 0; }
.intro .hero-copy h1 .ln > * { transform: translateY(105%); }
.intro .hero-copy .sub, .intro .hero-copy .ctas, .intro .hero-copy .tags { transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) { .intro * { opacity: 1 !important; transform: none !important; } }

/* floating tags around the headline (desktop) / small chips (mobile) */
.hero-copy .tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.hero-copy .float-tag .float-tag__word { font-weight: inherit; }
@media (min-width: 901px) {
  .hero-copy .tags { position: absolute; top: 0; bottom: 0; left: 50%; display: block; width: min(100vw - 120px, 1600px); margin: 0; translate: -50%; pointer-events: none; }
  .hero-copy .float-tag { position: absolute; pointer-events: auto; animation: tagFloat 6s ease-in-out infinite; }
  .hero-copy .float-tag:nth-child(1) { left: 8%; top: 15%; }
  .hero-copy .float-tag:nth-child(2) { right: 8%; top: 15%; animation-delay: -1.5s; animation-duration: 7s; }
  .hero-copy .float-tag:nth-child(3) { left: 13%; top: 58%; animation-delay: -3s; animation-duration: 6.5s; }
  .hero-copy .float-tag:nth-child(4) { right: 13%; top: 58%; animation-delay: -4.5s; animation-duration: 7.5s; }
}
@media (max-width: 900px) {
  .hero-copy { min-height: calc(100svh - 70px); padding: 24px 0 40px; }
  .hero-copy .scroll-cue { margin-top: 28px; }
  .hero-copy .float-tag { padding: 6px 11px; font-size: var(--fs-3xs); color: var(--gray-600); background: var(--white); border-color: #dfe3de; box-shadow: none; backdrop-filter: none; }
  .hero-copy .float-tag::before { display: none; }
}
@keyframes tagFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* story: chaos → organized in NetSuite → one integration */
.story { position: relative; width: 100vw; height: 340vh; margin: -230px calc(50% - 50vw) 0; }
.story, .story-pin, .story * { pointer-events: none !important; }
.story-pin {
  position: sticky; top: 72px; height: calc(100vh - 72px); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.story-pin::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 14%; pointer-events: none;
  background: linear-gradient(rgba(242,242,242,0) 0%, rgba(242,242,242,.75) 55%, var(--gray-50) 100%);
}
.story-wrap { position: relative; width: min(100%, 1060px, 161.29vh - 322.581px); aspect-ratio: 1000 / 620; }
.story-scale { position: absolute; left: 0; top: 0; width: 1000px; height: 620px; transform-origin: 0 0; perspective: 1500px; perspective-origin: 50% 45%; }
.story-stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.waves path { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.st-glow { position: absolute; width: 300px; height: 90px; border-radius: 50%; background: radial-gradient(rgba(125,191,65,.35), transparent 70%); transform-style: preserve-3d; }
.st-hotel {
  position: absolute; left: 0; top: 0; width: 220px; height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 var(--mk,30%), rgba(0,0,0,.55) calc((var(--mk,30%) + var(--mk2,74%)) / 2), transparent var(--mk2,74%));
          mask-image: linear-gradient(180deg, #000 0%, #000 var(--mk,30%), rgba(0,0,0,.55) calc((var(--mk,30%) + var(--mk2,74%)) / 2), transparent var(--mk2,74%));
}
.st-hit {
  position: absolute; left: 0; top: 0; width: 300px; height: 300px; translate: -50% -50%; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(125,191,65,.55) 0%, rgba(125,191,65,.22) 35%, transparent 70%); filter: blur(10px);
}
/* integration sources (node cards) */
.nd {
  position: absolute; left: 0; top: 0; height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 16px;
  font-size: var(--fs-sm); font-weight: var(--fw-medium); white-space: nowrap; color: var(--ink-850);
  background: var(--white); border: 1px solid var(--gray-150); border-radius: var(--r-tile);
  box-shadow: var(--shadow-node); backface-visibility: hidden;
}
.nd-ic { position: relative; flex-shrink: 0; display: block; width: 26px; height: 26px; }
.nd-ic svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.nd-ic .nd-c { opacity: 0; }
.nd-l { flex: 1 1 0%; }
.nd-ck { flex-shrink: 0; width: 20px; height: 20px; color: var(--green-500); opacity: 0; }
.nd-ck svg { display: block; width: 100%; height: 100%; }
.st-panel {
  position: absolute; left: 0; top: 0; overflow: hidden; opacity: 0;
  background: #f4f5f3; border: 1px solid var(--gray-150); border-radius: var(--r-md);
  box-shadow: 0 30px 60px -28px rgba(14,23,19,.35);
}
.st-ph { position: absolute; left: 30px; top: 14px; height: 36px; display: flex; flex-direction: column; justify-content: center; }
.st-ph b { display: block; font-size: var(--fs-md); color: var(--ink-850); }
.st-ph small { display: block; margin-top: 2px; font-size: var(--fs-2xs); color: #6b726c; }
.st-one { position: absolute; inset: 0; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: 16px; padding: 0 28px; opacity: 0; }
.st-orb { position: absolute; left: 0; top: 0; width: 260px; height: 260px; opacity: 0; pointer-events: none; }
.st-orb img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 18px 24px rgba(14,23,19,.22)) drop-shadow(0 0 14px rgba(125,191,65,.12)); }
.st-orb-mark { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--white); }
.st-orb-cap { position: absolute; left: 0; top: 0; width: 260px; text-align: center; opacity: 0; }
.story-cap {
  order: -1; min-height: 24px; margin: 24px 0 0; text-align: center;
  font-size: clamp(15px, 1.2vw, 18px); font-weight: var(--fw-regular); color: var(--gray-600);
  opacity: var(--capo, 1); transition: opacity .4s;
}
.story-pin.capoff .story-cap { opacity: 0 !important; }
.orb-lock { display: flex; align-items: center; gap: 10px; }
.orb-lock .orb-logo { display: block; width: auto; height: 46px; }
.aur-dot {
  position: fixed; left: 0; top: 0; z-index: 40; width: 20px; height: 20px; border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity .6s; will-change: transform;
  filter: drop-shadow(0 4px 10px rgba(14,23,19,.25)) drop-shadow(0 0 12px rgba(125,191,65,.45));
}
.aur-dot.ready { opacity: 1; }
@media (max-width: 900px) {
  .story { height: 280vh; margin-top: -120px; }
  .story-pin { top: 60px; height: calc(100vh - 60px); }
  .story-wrap { width: min(100%, 161.29vh - 274.194px); }
  .story-cap { padding: 0 8px; }
}
@media (max-width: 700px) { .story-cap { font-size: 15px; } }

/* =========================================================================
   2. DAILY — sphere expands and releases the metric cards (DS stat-card)
   ========================================================================= */
.daily {
  position: relative; z-index: 3; height: 420vh; margin-top: calc(-68px - 100vh);
  background: linear-gradient(transparent calc(100vh - 72px), var(--gray-50) calc(100vh - 72px));
}
.daily-pin { position: sticky; top: 72px; height: calc(100vh - 72px); overflow: hidden; }
.dl-orb { position: absolute; left: 0; top: 0; z-index: 2; border-radius: 50%; opacity: 0; will-change: transform, width, height; }
.dl-logo { position: absolute; left: 50%; top: 50%; z-index: 2; width: 260px; display: flex; flex-direction: column; align-items: center; text-align: center; transform-origin: 50% 50%; }
.dl-sph {
  position: absolute; inset: 0; overflow: hidden; border-radius: 50%; will-change: transform;
  background:
    radial-gradient(circle at 78% 12%, rgba(4,8,5,.95) 0%, rgba(4,8,5,.6) 28%, transparent 55%),
    radial-gradient(circle at 60% 98%, rgba(4,8,5,.7) 0%, transparent 45%),
    radial-gradient(circle at 14% 52%, var(--green-400) 0%, #6fb843 14%, var(--green-800) 32%, #2f5f22 52%, #173119 72%, #08100a 92%);
  box-shadow: 0 40px 80px -30px rgba(26,35,31,.35);
}
.dl-txt { position: absolute; z-index: 2; max-width: 560px; color: var(--white); opacity: 0; transition: opacity .3s; }
.daily.sph-away .dl-txt { opacity: 0 !important; }
.dl-ph {
  margin-top: 12px; font-size: clamp(30px, 3.1vw, 46px); font-weight: var(--fw-medium); line-height: 1.15; text-wrap: balance;
  color: var(--white); transition: opacity .3s, transform .3s;
}
.dl-ph.sw { opacity: 0; transform: translateY(8px); }
.dl-bar { display: block; width: 180px; height: 3px; margin-top: 26px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.22); }
.dl-bar b { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--white); }

/* metric cards: DS .card.stat-card, positioned by home.js */
.daily .dl-card {
  position: absolute; left: 0; top: 0; z-index: 1; display: block; width: var(--cw, 300px);
  padding: clamp(26px, 2.4vw, 40px) clamp(24px, 2.2vw, 38px); opacity: 0; cursor: pointer; will-change: transform;
  border-color: var(--gray-100); transition: box-shadow .4s, border-color .4s;
}
.daily .dl-card:focus-visible { outline: 2px solid var(--green-500); outline-offset: 3px; }
.daily .dl-card .stat-card__icon { position: relative; width: clamp(32px, 2.8vw, 44px); height: clamp(32px, 2.8vw, 44px); }
.daily .dl-card .stat-card__icon svg { position: absolute; inset: 0; transition: opacity .35s; }
.daily .dl-card .s-mono { color: #9aa19a; opacity: 1; }
.daily .dl-card .stat-card__icon svg:not(.s-mono) { opacity: 0; }
.daily .dl-card.is-active .s-mono { opacity: 0; }
.daily .dl-card.is-active .stat-card__icon svg:not(.s-mono) { opacity: 1; }
.daily .dl-card .stat-card__value { margin-top: clamp(16px, 1.6vw, 26px); font-size: clamp(40px, 4.4vw, 72px); transition: color .4s; }
.daily .dl-card .stat-card__title { display: block; margin-top: 12px; font-size: clamp(15px, 1.25vw, 19px); transition: color .4s; }
.daily .dl-card .stat-card__text { margin-top: 8px; font-size: clamp(13px, 1vw, 15.5px); transition: color .4s; }
.daily .dl-card.is-dim:hover { opacity: .9 !important; }
@media (max-width: 900px) {
  .daily { margin-top: calc(-80px - 100vh); background: linear-gradient(transparent calc(100vh - 60px), var(--gray-50) calc(100vh - 60px)); }
}
@media (max-width: 700px) {
  .daily { height: 380vh; }
  .daily-pin { top: 60px; height: calc(100vh - 60px); }
  .dl-txt { max-width: 80%; }
  .dl-ph { font-size: 24px; }
  .dl-bar { width: 100px; margin: 12px auto 0; }
  .daily .dl-card { padding: 14px; }
  .daily .dl-card .stat-card__icon { width: 24px; height: 24px; }
  .daily .dl-card .stat-card__value { margin-top: 8px; font-size: 28px; }
  .daily .dl-card .stat-card__title { margin-top: 6px; font-size: 12.5px; }
  .daily .dl-card .stat-card__text { display: none; }
}

/* =========================================================================
   3. MARQUEE BAND (DS marquee)
   ========================================================================= */
.marquee-band { padding: 40px 0 24px; text-align: center; }
.marquee-band .marquee { --marquee-dur: 130s; } /* 26 logos at the pace the 8-logo band had (40s) */

/* =========================================================================
   4. PROBLEM — heading + photo carousel (bento)
   ========================================================================= */
.problem { background: var(--ink-950); }
.problem-in { position: relative; max-width: calc(var(--container) + 2 * var(--gut)); margin: 0 auto; padding: var(--sec-y) var(--gut); }
.problem .head { align-items: last baseline; padding-bottom: 48px; border-bottom: 1px solid #1a241c; }
.problem .head .t-h2 b { display: inline-block; }
.problem .crack { position: relative; display: inline-block; }
.problem .crack span { display: inline-block; }
.problem .crack span:last-child { color: #cfd4cf; }

.bento-2 {
  display: flex; gap: 20px; width: 100vw; margin: var(--head-gap) 0 0 calc(50% - 50vw); overflow-x: auto;
  padding: 0 max(var(--gut), calc((100vw - var(--container)) / 2)); scroll-padding: 0 max(var(--gut), calc((100vw - var(--container)) / 2));
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
}
.bento-2::-webkit-scrollbar { display: none; }
.bento-2.drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.bx {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; outline: 0;
  padding: 32px; color: var(--gray-50); border-radius: var(--r-md);
}
.bento-2 .bx { flex: 0 0 min(1000px, 100vw - 2 * var(--gut) - 48px); scroll-snap-align: start; min-height: 440px; padding: 48px; user-select: none; }
.bento-2 .bx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(0,0,0,.55); pointer-events: none; transition: opacity .5s; }
.bento-2 .bx.on::after { opacity: 0; }
.bx.k1 { background: linear-gradient(100deg, rgba(10,16,13,.93) 0%, rgba(10,16,13,.78) 42%, rgba(10,16,13,.22) 100%), linear-gradient(0deg, rgba(10,16,13,.7), rgba(10,16,13,0) 50%), url("../../images/home/problem-systems.webp") 60% 25% / cover no-repeat var(--ink-850); }
.bx.k2 { background: linear-gradient(100deg, rgba(10,16,13,.93) 0%, rgba(10,16,13,.8) 42%, rgba(10,16,13,.25) 100%), linear-gradient(0deg, rgba(10,16,13,.7), rgba(10,16,13,0) 50%), url("../../images/home/problem-close.webp") 50% 55% / cover no-repeat var(--ink-850); }
.bx.k3 { background: linear-gradient(100deg, rgba(10,16,13,.93) 0%, rgba(10,16,13,.8) 42%, rgba(10,16,13,.25) 100%), linear-gradient(0deg, rgba(10,16,13,.7), rgba(10,16,13,0) 50%), url("../../images/home/problem-data.webp") 35% 40% / cover no-repeat var(--ink-850); }
.bx.k4 { background: linear-gradient(100deg, rgba(10,16,13,.93) 0%, rgba(10,16,13,.84) 45%, rgba(10,16,13,.62) 100%), linear-gradient(0deg, rgba(10,16,13,.75), rgba(10,16,13,0) 55%), url("../../images/home/problem-growth.webp") center / cover no-repeat var(--ink-850); }
.bx-t { position: relative; }
.bx-ic { display: block; width: 34px; height: 34px; opacity: .9; }
.bx-ic svg { display: block; width: 100%; height: 100%; }
.bx-ic svg * { fill: currentColor; }
.bx h3 { margin-top: 26px; font-size: clamp(26px, 2.5vw, 38px); font-weight: var(--fw-regular); line-height: 1.12; text-wrap: balance; }
.bx p { margin-top: 18px; max-width: 46ch; font-size: var(--fs-base); line-height: 1.65; opacity: .92; text-wrap: pretty; }
.bx-s { position: relative; display: flex; align-items: baseline; gap: 14px; margin-top: auto; padding-top: 22px; }
.bx-s b { font-size: clamp(34px, 3.2vw, 48px); font-weight: var(--fw-bold); line-height: 1; white-space: nowrap; }
.bx-s span { max-width: 34ch; font-size: 13px; line-height: 1.45; opacity: .92; }
@media (min-width: 1001px) {
  .bento-2 .bx {
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-content: start; column-gap: 64px;
    height: 360px; min-height: 0; padding: 48px 52px;
  }
  .bento-2 .bx .bx-t { display: contents; }
  .bento-2 .bx .bx-ic { grid-area: 1 / 1; width: 30px; height: 30px; }
  .bento-2 .bx h3 { grid-area: 2 / 1; min-height: 2.36em; margin: 28px 0 0; font-size: clamp(26px, 2.2vw, 32px); font-weight: var(--fw-medium); line-height: 1.18; }
  .bento-2 .bx p { grid-area: 3 / 1; align-self: start; margin: 16px 0 0; }
  .bento-2 .bx .bx-s {
    grid-area: 2 / 2 / 4; place-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
    margin: 28px 0 0; padding: 0 0 0 28px; text-align: left; border-left: 1px solid rgba(255,255,255,.22);
  }
  .bento-2 .bx .bx-s b { font-size: clamp(40px, 3.6vw, 54px); font-weight: var(--fw-medium); line-height: 1.05; }
  .bento-2 .bx .bx-s span { max-width: 28ch; font-size: var(--fs-sm); line-height: 1.5; opacity: .8; }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .bento-2 .bx { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto auto; row-gap: 24px; }
  .bento-2 .bx-s { grid-row: 3; }
}
@media (max-width: 700px) {
  .bento-2 { gap: 12px; }
  .bento-2 .bx { flex-basis: calc(100vw - 2 * var(--gut) - 24px); display: flex; min-height: 0; padding: 24px; }
  .bx-s { flex-direction: column; gap: 8px; }
}
/* carousel controls: DS .progress-dots + .icon-btn */
.pcar-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px; }
.pcar-dots { --slide-dur: 5.5s; }
.pcar-ar { display: flex; gap: 10px; }
@media (max-width: 700px) { .pcar-nav { padding-right: 62px; } }
@media (prefers-reduced-motion: reduce) { .problem * { animation: none !important; transition: none !important; } }

/* =========================================================================
   5. MERGE — problem cards stack into the sphere, then the 4 steps + panel
   ========================================================================= */
.mrg { position: relative; height: 560vh; margin-bottom: 0; background: var(--ink-1000); }
.mrg-pin { position: sticky; top: 72px; height: calc(100vh - 72px); overflow: hidden; }
.mrg-bg { position: absolute; inset: 0; background: var(--gray-50); opacity: 0; }
.mg-head {
  position: absolute; left: 50%; top: clamp(48px, 7vh, 88px); transform: translateX(-50%); opacity: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end;
  width: min(var(--container), 100% - 2 * var(--gut)); text-align: left;
}
.mg-head h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.12; color: var(--ink-850); }
/* flying problem cards (moved into .mg-fly by home.js) */
.mg-fly { position: fixed; inset: 0; z-index: 30; display: none; pointer-events: none; }
.mg-c {
  position: absolute; left: 0; top: 0; width: 260px; height: 320px; padding: 22px; overflow: hidden;
  display: flex; flex-direction: column; gap: 12px; color: var(--gray-50); border-radius: var(--r-md); will-change: transform, opacity;
  background: linear-gradient(180deg, rgba(10,16,13,.55), rgba(10,16,13,.88)), var(--bgx) center / cover no-repeat var(--ink-850);
}
.mg-c.k1 { --bgx: url("../../images/home/problem-systems.webp"); }
.mg-c.k2 { --bgx: url("../../images/home/problem-close.webp"); }
.mg-c.k3 { --bgx: url("../../images/home/problem-data.webp"); }
.mg-c.k4 { --bgx: url("../../images/home/problem-growth.webp"); }
.mg-c > * { transition: opacity .25s; }
.mg-c:not(.mini) > * { opacity: 0; }
.mg-fly .mg-c { transition: none; box-shadow: 0 30px 60px -24px rgba(0,0,0,calc(.6 - var(--m,0) * .3)); }
.mg-fly .mg-c::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: var(--sph) center / cover no-repeat; opacity: var(--m,0); pointer-events: none; }
.mg-fly .mg-c:not(.mini) > *, .mg-fly .mg-c.mini > * { opacity: var(--t,1) !important; transition: none; }
.mg-c .bx-ic { display: block; width: 24px; height: 24px; }
.mg-c .bx-ic svg { width: 100%; height: 100%; }
.mg-c .bx-ic svg * { fill: currentColor; }
.mg-c h3 { font-size: 18px; font-weight: var(--fw-medium); line-height: 1.25; text-wrap: balance; }
.mg-c .bx-s { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.mg-c .bx-s b { font-size: 30px; font-weight: var(--fw-medium); }
/* sphere */
.mg-sph { position: absolute; left: 0; top: 0; z-index: 7 !important; width: 260px; height: 260px; opacity: 0; will-change: transform; }
.mg-sph img { display: block; width: 100%; height: 100%; border-radius: 50%; filter: drop-shadow(0 30px 50px rgba(26,35,31,.3)) drop-shadow(0 0 40px rgba(125,191,65,.35)); }
.mg-sph-ic { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.mg-sph-ic svg { grid-area: 1 / 1; width: 34%; height: 34%; color: var(--white); opacity: 0; transition: opacity .35s; filter: drop-shadow(0 1px 4px rgba(0,0,0,.35)); }
/* steps (segmented pill on desktop) */
.mg-pts { position: absolute; left: 50%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: min(1000px, 100% - 2 * var(--gut)); transform: translateX(-50%); opacity: 0; }
.mg-p { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; cursor: pointer; opacity: 0; transform: translateY(16px); }
.mg-n { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: var(--gray-500); transition: color var(--dur-fast), transform .3s; }
.mg-n svg { width: 26px; height: 26px; }
.mg-n svg * { fill: currentColor; }
.mg-p.on .mg-n svg { opacity: 0; }
.mg-p b { max-width: 220px; font-size: var(--fs-base); font-weight: var(--fw-medium); line-height: 1.35; color: var(--gray-500); text-wrap: balance; transition: color var(--dur-fast); }
.mg-p.on b, .mg-p:hover b, .mg-p:hover .mg-n { color: var(--ink-850); }
.mg-p:hover .mg-n { transform: scale(1.06); }
@media (min-width: 701px) {
  .mg-pts { left: max(var(--gut), calc((100% - var(--container)) / 2)); display: flex; gap: 4px; width: max-content; transform: none; }
  .mg-p { flex-direction: row; align-items: center; gap: 10px; min-height: 48px; padding: 4px 14px 4px 4px; text-align: left; }
  .mg-p b { max-width: none; font-size: 14.5px; line-height: 1.2; white-space: nowrap; }
  .mg-n { width: 40px; height: 40px; }
  .mg-n svg { width: 20px; height: 20px; }
  .mg-sph-ic svg { width: 48%; height: 48%; }
}
/* title and steps share one row when there is room (home.js uses the same 1000px threshold) */
@media (min-width: 1001px) {
  .mg-pts { left: auto; right: max(var(--gut), calc((100% - var(--container)) / 2)); }
}
@media (max-width: 900px) { .mrg { height: 440vh; } }
@media (max-width: 700px) {
  .mrg { height: 380vh; }
  .mrg-pin { top: 60px; height: calc(100vh - 60px); }
  .mg-head { top: 16px; grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .mg-head h2 { font-size: 26px; }
  .mg-c { width: 150px; height: 190px; padding: 14px; gap: 8px; }
  .mg-c h3 { font-size: 13px; }
  .mg-c .bx-s b { font-size: 20px; }
  .mg-c .bx-ic { width: 18px; height: 18px; }
  .mg-pts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .mg-n { width: 44px; height: 44px; }
  .mg-n svg { width: 20px; height: 20px; }
  .mg-p { gap: 8px; }
  .mg-p b { font-size: 12px; line-height: 1.3; }
}

/* product panel (from #how, moved into the merge pin by home.js) */
.tl-foot { display: none !important; }
.tl-open { position: relative; }
.tl-body { display: grid; grid-template-columns: .85fr 1.25fr; gap: 48px; align-items: center; }
.tl-open.swap .tl-body { animation: tlopen .55s var(--ease); }
.tl-dets { display: grid; }
.det { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .45s, transform .45s; }
.det.on { opacity: 1; transform: none; pointer-events: auto; }
.det h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: var(--fw-medium); line-height: 1.2; text-wrap: balance; }
.det p { margin-top: 16px; font-size: 15.5px; line-height: 1.75; color: var(--gray-250); text-wrap: pretty; }
.mg-panel { position: absolute !important; left: max(var(--gut), calc((100% - var(--container)) / 2)); z-index: 6; width: min(var(--container), 100% - 2 * var(--gut)); margin: 0 !important; padding: 0; opacity: 0; transform-origin: 0 0; background: none; border: 0; box-shadow: none; }
.mg-panel .tl-body { grid-template-columns: 1fr; gap: 20px; }
.mg-panel .win-wrap { order: 1; position: relative; }
.mg-panel .win-wrap .win { width: 100%; box-shadow: 0 40px 80px -40px rgba(14,23,19,.45); }
.mg-panel #dashWrap { aspect-ratio: auto; height: clamp(150px, 26vh, 210px); } /* dashboard scales to this height (home.js fit) */
.mg-panel .win-top { padding: 8px 12px; }
.mg-panel .tl-dets { order: 2; }
.mg-panel .det { max-width: 680px; }
.mg-panel .det h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; color: var(--ink-850); }
.mg-panel .det p { margin-top: 8px; font-size: var(--fs-base); line-height: 1.6; color: var(--gray-600); }
@media (min-width: 701px) {
  .mg-panel .tl-body { gap: 28px; }
  .mg-panel #dashWrap { aspect-ratio: auto; height: clamp(300px, 40vh, 420px); }
  .mg-panel .win-top { padding: 10px 14px; }
  .mg-panel .det h3 { font-size: clamp(22px, 1.8vw, 26px); }
  .mg-panel .det p { margin-top: 10px; font-size: var(--fs-md); }
}
@media (max-width: 980px) { .tl-body { grid-template-columns: 1fr; gap: 28px; } }
@keyframes tlopen { from { opacity: .25; transform: translateY(14px); } }

/* app window mock-up (illustration inside the panel) */
.win { overflow: hidden; background: #121312; border: 1px solid #262a26; border-radius: var(--r-md); box-shadow: 0 40px 80px -30px #000, 0 0 60px -20px rgba(125,191,65,.18); }
.win-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; }
.win-top i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-top i:nth-child(2) { background: #febc2e; }
.win-top i:nth-child(3) { background: #28c840; }
.win-top span { flex: 1 1 0%; max-width: 260px; margin-left: 12px; padding: 4px 10px; font-size: var(--fs-3xs); color: #6d766e; background: #1b1d1b; border-radius: var(--r-xs); }
.dash-wrap { position: relative; width: 100%; aspect-ratio: 560 / 340; }
.dash { position: absolute; left: 0; top: 0; display: flex; width: 560px; height: 340px; transform-origin: 0 0; font-size: 10.5px; color: #1b1f1b; }
.d-side { flex-shrink: 0; display: flex; flex-direction: column; gap: 5px; width: 92px; padding: 12px 8px; background: #0f1a14; }
.d-logo { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; font-size: 9.5px; font-weight: var(--fw-bold); color: var(--white); }
.d-logo em { display: grid; place-items: center; width: 18px; height: 18px; font-size: 8px; font-style: normal; color: var(--green-500); background: var(--white); border-radius: 4px; }
.d-logo i { border-radius: 4px; }
.d-nav { display: flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; font-size: 8.5px; white-space: nowrap; color: #6f7a71; border-radius: 7px; transition: background .35s, color .35s; }
.d-nav::before { content: ""; flex-shrink: 0; width: 6px; height: 6px; border: 1px solid; border-radius: 2px; }
.d-nav:has(.dn-ic)::before { display: none; }
.d-nav .dn-ic { flex-shrink: 0; display: block; width: 11px; height: 11px; }
.d-nav.on { font-weight: var(--fw-medium); color: #0b120d; background: var(--green-500); }
.d-main { position: relative; flex: 1 1 0%; background: var(--white); }
.pane { position: absolute; inset: 0; padding: 16px 18px; opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s; }
.pane.on { opacity: 1; transform: none; }
.p-h { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.p-h b { font-size: 14px; }
.p-h small { display: block; margin-top: 3px; font-size: 9px; color: #8a918b; }
.dash .badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; font-size: 8.5px; font-weight: var(--fw-regular); white-space: nowrap; text-transform: none; color: #3d7a1f; background: #eaf6df; border-radius: 5px; }
.dash .badge::before { content: ""; width: 5px; height: 5px; border-radius: 2px; background: #5aa631; animation: blink 1.4s ease infinite; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { padding: 6px; text-align: left; font-size: 8.5px; font-weight: var(--fw-medium); color: #8a918b; border-bottom: 1px solid #eceeec; }
.tbl td { padding: 8px 6px; font-size: 10px; border-bottom: 1px solid #f2f3f2; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl td.m { color: #8a918b; }
.chip2 { padding: 2px 6px; font-size: 8px; white-space: nowrap; color: #4b534c; background: #f1f3f1; border-radius: 5px; }
.ok2 { font-weight: var(--fw-medium); white-space: nowrap; color: #3d7a1f; }
.pane.on .tbl tbody tr { animation: rowin .5s ease both; }
.pane.on .tbl tbody tr:nth-child(2) { animation-delay: .08s; }
.pane.on .tbl tbody tr:nth-child(3) { animation-delay: .16s; }
.pane.on .tbl tbody tr:nth-child(4) { animation-delay: .24s; }
.pane.on .tbl tbody tr:nth-child(5) { animation-delay: .32s; }
.pane.on .tbl tbody tr:nth-child(6) { animation-delay: .4s; }
.kpis4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.kp, .cbox, .icard { border: 1px solid #eceeec; border-radius: 10px; }
.kp { padding: 8px 9px; }
.kp small { display: block; font-size: 8px; white-space: nowrap; color: #8a918b; }
.kp b { display: block; margin-top: 4px; font-size: 15px; }
.kp em { font-size: 8px; font-style: normal; color: #3d7a1f; }
.charts { display: grid; grid-template-columns: 1.7fr 1fr; gap: 7px; margin-top: 8px; }
.cbox { padding: 8px 9px; }
.cbox small { font-size: 8.5px; font-weight: var(--fw-medium); }
.cbox svg { display: block; width: 100%; margin-top: 4px; }
.ln { stroke-dasharray: 400; stroke-dashoffset: 400; }
.pane.on .ln { animation: draw 1.4s ease forwards; }
.ins { display: grid; grid-template-columns: 1.15fr 1fr; gap: 8px; }
.icard { display: flex; gap: 7px; margin-bottom: 6px; padding: 8px 9px; }
.icard i { flex-shrink: 0; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; font-style: normal; }
.icard i svg { display: block; width: 14px; height: 14px; }
.icard b { display: block; font-size: 9.5px; }
.icard span { font-size: 8.5px; color: #8a918b; }
.tbar { display: flex; height: 10px; margin: 3px 0 7px; overflow: hidden; border-radius: 3px; }
.tbar i { display: block; border-radius: 3px; }
.leg { display: flex; gap: 10px; font-size: 8px; color: #8a918b; }
.leg span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 4px; vertical-align: -1px; border-radius: 2px; background: var(--c); }
@keyframes blink { 50% { opacity: .25; } }
@keyframes rowin { from { opacity: 0; transform: translateX(-6px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* tour callouts over the mock-up */
.tour-calls { position: absolute; inset: 0; pointer-events: none; }
.tc {
  position: absolute; top: 0; width: max-content; max-width: 260px; padding: 9px 12px;
  font-size: 13px; line-height: 1.4; color: var(--ink-850); white-space: normal;
  background: var(--white); border: 1.5px solid var(--green-500); border-radius: var(--r-sm);
  box-shadow: 0 12px 28px -12px rgba(14,23,19,.4); opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s;
}
.tc.on { opacity: 1; transform: none; }
.tc::before { content: ""; position: absolute; top: 13px; width: 10px; height: 10px; border-radius: 3px; background: var(--green-500); box-shadow: 0 0 0 4px var(--green-100); }
.tc.s-r::before { left: -20px; top: 12px; }
.tc.s-b::before { right: 18px; top: -18px; }
.tc.s-bl::before { left: 18px; top: -18px; }
.tc.s-tl::before { inset: auto auto -18px 18px; }
@media (max-width: 900px) { .tour-calls { display: none; } }

/* =========================================================================
   6. CAPABILITIES — DS feature cards, floating grid
   ========================================================================= */
.caps {
  position: relative; overflow: hidden; padding-bottom: calc(var(--sec-y) + 32px);
  background:
    radial-gradient(55% 45% at 18% 85%, rgba(125,191,65,.16), transparent 70%),
    radial-gradient(50% 40% at 85% 20%, rgba(125,191,65,.10), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(26,35,31,.08), transparent 70%),
    linear-gradient(var(--white) 0%, #f6f7f5 55%, #eef0ec 100%);
}
.caps-g {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; align-items: stretch; gap: 16px;
  max-width: 1100px; margin-inline: auto; padding-bottom: 36px; text-align: left;
}
.caps .cap-c { position: relative; padding: 28px 30px; border-radius: 18px; animation: capFloat 7s ease-in-out infinite; }
.caps .cap-c:hover { transform: none; }
.caps .cap-c:nth-child(3n+2) { top: 32px; }
.caps .cap-c:nth-child(2) { animation-delay: -1.4s; }
.caps .cap-c:nth-child(3) { animation-delay: -2.8s; }
.caps .cap-c:nth-child(4) { animation-delay: -4.2s; }
.caps .cap-c:nth-child(5) { animation-delay: -.7s; }
.caps .cap-c:nth-child(6) { animation-delay: -3.5s; }
@keyframes capFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1000px) {
  .caps-g { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; padding-bottom: 0; }
  .caps .cap-c:nth-child(3n+2) { top: 0; }
}
@media (max-width: 640px) {
  .caps { padding-bottom: var(--sec-y); }
  .caps-g { grid-template-columns: 1fr; }
}

/* =========================================================================
   7. WHO IT'S FOR — DS plan cards with people cut-outs
   ========================================================================= */
.segs-g { grid-template-columns: 1fr 1.08fr 1fr; gap: 20px; padding-top: 110px; align-items: stretch; }
@media (max-width: 1000px) {
  .segs-g { grid-template-columns: 1fr; padding-top: 0; }
  .segs .plan-card { margin-top: 104px; }
  .segs .plan-card:first-child { margin-top: 96px; }
  .plan-card__photo { max-width: 340px; }
}

/* =========================================================================
   8. TESTIMONIALS — pinned giant title, DS quote/result cards scroll over it
   ========================================================================= */
.quotes { position: relative; overflow: clip; background: #0d1511; }
.quotes::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.047) 1px, transparent 1px); background-size: 22px 22px; }
.quotes-in { position: relative; }
.tq4 { position: relative; }
.tq4-t { position: sticky; top: 72px; height: calc(100vh - 72px); display: grid; place-items: center; text-align: center; pointer-events: none; }
.tq4-t .t-giant { max-width: none; color: var(--gray-50); }
.tq4-t .t-giant b { display: block; color: var(--gray-50); }
.tq4-l { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20vh; padding: 8vh 0 45vh; }
.tq4 .tq { margin: 0; }
.tq4 .tq.t4-w { width: 52%; }
.tq4 .tq.t4-n { width: 38%; }
.tq4 .tq.t4-l { align-self: flex-start; }
.tq4 .tq.t4-r { align-self: flex-end; }
.tq4 .tq.t4-c { align-self: center; }
.tq4 .quote-card__foot { padding-top: 0; }
.tq4 .quote-card .avatar { --avatar: 44px; }
.tq4 .person__name { font-size: var(--fs-sm); }
.tq4 .person__role { font-size: 13px; }
.tq4 .result-card { padding: 36px; box-shadow: var(--shadow-dark); }
.tq4 .result-card__text { font-size: var(--fs-base); }
.tq4 .quote-card__logo { max-width: 96px; height: 28px; object-fit: contain; opacity: .75; filter: var(--logo-filter); }
@media (min-width: 901px) { .tq4-t .t-giant span { white-space: nowrap; } }
@media (max-width: 900px) {
  .tq4-t { top: 60px; height: calc(100vh - 60px); }
  .tq4-t .t-giant { font-size: clamp(34px, 10vw, 56px); }
  .tq4-l { gap: 16vh; padding: 10vh 0 40vh; }
  .tq4 .tq.t4-w, .tq4 .tq.t4-n { width: 88%; }
  .tq4 .tq:nth-child(2n+1) { align-self: flex-start; }
  .tq4 .tq:nth-child(2n) { align-self: flex-end; }
  .tq4 .quote-card, .tq4 .result-card { padding: 24px; }
}
@media (max-width: 700px) {
  .tq4-t .t-giant { font-size: clamp(30px, 8.6vw, 44px); }
  .tq4 .tq.t4-w, .tq4 .tq.t4-n { width: 92%; }
  .tq4-l { gap: 14vh; padding: 6vh 0 34vh; }
}

/* =========================================================================
   9. FAQ / CTA — section backgrounds from the final design
   ========================================================================= */
.faq { background: #0d1511; }
.cta { background: var(--ink-950); }
/* closing CTA: promise + action on the left, partner badge + proof points on the right */
.cta .demo-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: var(--space-16); }
.demo-cta__actions { margin-top: var(--space-2); }
.demo-cta__proof { gap: var(--space-6); padding: var(--space-8); }
.demo-cta__badge { align-self: start; width: auto; height: 60px; }
.demo-cta__proof .checklist { gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--line); }
@media (max-width: 1000px) { .cta .demo-cta { grid-template-columns: 1fr; gap: var(--space-10); } .demo-cta__proof { max-width: 480px; } }

/* =========================================================================
   10. CHAT DOCK — the Daily sphere travels to the marcus.ai button
   ========================================================================= */
.mk-fab { right: 28px; bottom: 28px; z-index: 45; pointer-events: none; }
.mk-fab .mk-orb { opacity: 0 !important; transition: none !important; transform: none !important; }
.mk-fab .mk-lb { opacity: 0; transform: translateX(10px); }
.mk-fab:hover .mk-lb { border-color: var(--green-500); }
.mk-fab.show, .mk-fab.docked { pointer-events: auto !important; }
.mk-fab.docked .mk-lb { opacity: 1; transform: none; transition-delay: .15s; }
.mk-ball { position: fixed; left: 0; top: 0; z-index: 44; width: 64px; height: 64px; pointer-events: none; visibility: hidden; will-change: transform, width, height; }
.mk-ball.docked { animation: mkbob 3.6s ease-in-out infinite; }
.mk-ball.docked > * { box-shadow: 0 10px 22px -8px rgba(14,23,19,.45), 0 0 18px rgba(125,191,65,.35) !important; }
@keyframes mkbob { 0%, 100% { translate: 0 0; } 25% { translate: -3px -7px; } 50% { translate: 2px -11px; } 75% { translate: 4px -4px; } }
@media (max-width: 700px) {
  .mk-fab { right: 14px; bottom: 14px; gap: 8px; }
  .mk-fab .mk-orb { --orb-size: 48px; }
  .mk-fab .mk-lb { padding: 8px 11px; font-size: 13px; }
  .mk-fab.docked:not(.lb) .mk-lb { opacity: 0 !important; visibility: hidden; transform: translateX(10px) !important; }
}
@media (prefers-reduced-motion: reduce) { .mk-ball.docked { animation: none; } }
