/* Homepage. Layout and motion follow dragin.io; colors, type, and content are
   Loanable CRM's. Motion lives in home.js (GSAP + ScrollTrigger). */

body.home {
  --ink: #0b0a1a;
  --ink-2: #4a4a5c;
  --muted: #6b6b7b;
  --line: rgba(11, 10, 26, 0.08);
  --page: #f7f7fb;
  --accent: #4b367c;
  --accent-2: #6d4fc2;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--page);
  color: var(--ink);
}
body.home main { overflow-x: clip; }
body.home .wrap { width: min(1128px, calc(100% - 3rem)); }

/* ---------- shared type and buttons ---------- */
.h-head { max-width: 44rem; }
.h-head.is-center { margin: 0 auto; text-align: center; }
.h-head .title, .h-intro .title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a8a9a;
}
.h-head h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--ink);
}
.b2 { font-size: 1.06rem; line-height: 1.6; color: var(--ink-2); margin: 0; }
.h-head .b2 { margin-bottom: 1.6rem; }
.h-head.is-center .b2 { margin-left: auto; margin-right: auto; max-width: 36rem; }
.btn-main, .btn-ghost, .btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 1.4rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.btn-main { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -10px rgba(75, 54, 124, 0.7); }
.btn-main:hover { background: #3d2a63; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid rgba(11, 10, 26, 0.12); }
.btn-ghost:hover { border-color: rgba(11, 10, 26, 0.3); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.4); }

/* ---------- text reveal (dragin initTextAnim) ---------- */
.anim-hidden { opacity: 0; }
.anim-fade-down { animation: home-fade-down 0.7s var(--ease-out) both; }
.anim-fade-up { animation: home-fade-up 0.9s var(--ease-out) both; }
.anim-scale-in { animation: home-scale-in 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.anim-word { display: inline-block; animation: home-word 1.3s var(--ease-out) both; }
.anim-word-blur { display: inline-block; animation: home-word-blur 0.4s var(--ease-out) both; }
@keyframes home-fade-down { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes home-fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes home-scale-in { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: none; } }
@keyframes home-word { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes home-word-blur { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }

/* ---------- nav: letter roll + blur once scrolled ---------- */
.link-roll { display: inline-block; position: relative; }
.link-roll__word { display: inline-block; vertical-align: top; white-space: nowrap; }
.link-roll__letter { display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.link-roll__char { display: inline-block; position: relative; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.link-roll__char::after { content: attr(data-char); position: absolute; left: 0; top: calc(100% + 0.2em); }
.link-roll-host:hover .link-roll__char { transform: translateY(calc(-100% - 0.2em)); }
.link-roll-host.is-pressed .link-roll__char { transform: none; }
body.home .topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: backdrop-filter 0.3s ease, background-color 0.3s ease; }
body.home .topbar.is-active { backdrop-filter: blur(70px); -webkit-backdrop-filter: blur(70px); background: rgba(247, 247, 251, 0.6); }
body.home .topbar.is-solid { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- bottom page blur (dragin initPageBlur) ---------- */
.page-blur { position: fixed; left: 0; right: 0; bottom: 0; height: 9.375rem; pointer-events: none; z-index: 30; transition: opacity 0.35s ease; }
.page-blur.is-hidden { opacity: 0; }
.page-blur span { position: absolute; inset: 0; }
.page-blur span:nth-child(1) { backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); mask-image: linear-gradient(to bottom, transparent 40%, #000 52%, #000 64%, transparent 76%); -webkit-mask-image: linear-gradient(to bottom, transparent 40%, #000 52%, #000 64%, transparent 76%); }
.page-blur span:nth-child(2) { backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); mask-image: linear-gradient(to bottom, transparent 52%, #000 64%, #000 76%, transparent 88%); -webkit-mask-image: linear-gradient(to bottom, transparent 52%, #000 64%, #000 76%, transparent 88%); }
.page-blur span:nth-child(3) { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); mask-image: linear-gradient(to bottom, transparent 64%, #000 76%, #000 88%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 64%, #000 76%, #000 88%, transparent 100%); }
.page-blur span:nth-child(4) { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); mask-image: linear-gradient(to bottom, transparent 76%, #000 88%, #000 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 76%, #000 88%, #000 100%); }
.page-blur span:nth-child(5) { backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); mask-image: linear-gradient(to bottom, transparent 88%, #000 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 88%, #000 100%); }

/* ---------- 1. intro (pinned hero) ---------- */
.h-intro { position: relative; background: var(--page); }
.h-intro__in { position: relative; height: max(640px, 92vh); display: flex; justify-content: center; padding-top: max(170px, 24vh); }
.h-intro__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(11, 10, 26, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 10, 26, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 80%);
}
.h-intro__content { position: relative; z-index: 2; max-width: 46rem; text-align: center; }
.h-intro__headline {
  margin: 0 0 1.4rem;
  font-size: clamp(2.8rem, 5.9vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.2;
  color: var(--ink);
}
.h-intro .b2 { max-width: 40rem; margin: 0 auto 2rem; }
.h-intro__buttons { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
/* rotating word: clip-path wipe while the box resizes (dragin initAnimatedWords) */
.gw { color: var(--accent); }
.gw.gw-ready { display: inline-grid; justify-items: start; vertical-align: baseline; }
.gw-word { grid-column: 1; grid-row: 1; white-space: nowrap; padding-bottom: 4px; padding-right: 0.06em; clip-path: inset(0 100% 0 0); will-change: clip-path; }

.h-intro__icons { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.h-icon {
  display: block;
  position: absolute;
  width: 5.875rem;
  height: 5.875rem;
  border-radius: 1.75rem;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
}
.h-icon { overflow: hidden; }
.h-icon__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; transition: opacity 0.2s ease; }
.h-icon__img.is-basic { filter: saturate(0.35) brightness(1.05); }
/* The bank statement art is a full-bleed tile; inset it so it floats in its card like the others. */
.h-icon--4 .h-icon__img { inset: 19%; width: 62%; height: 62%; border-radius: 24%; }
.h-icon__img.is-hover { opacity: 0; }
.h-icon:hover .h-icon__img.is-basic { opacity: 0; }
.h-icon:hover .h-icon__img.is-hover { opacity: 1; }
.h-icon--1 { top: 7.19rem; left: 26vw; transform: rotate(-16deg); animation: home-bob 6s ease-in-out infinite; }
.h-icon--2 { top: 7.19rem; right: 26vw; transform: rotate(16deg); animation: home-bob 6s ease-in-out -2.2s infinite; }
.h-icon--3 { bottom: 12.44rem; left: 8.3vw; transform: rotate(-16deg); }
.h-icon--4 { bottom: 2.375rem; left: 50%; transform: rotate(15deg) translate(-50%); }
.h-icon--5 { bottom: 10.44rem; right: 8.3vw; transform: rotate(15deg) translate(-50%); }
@keyframes home-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.h-icon.is-docked { position: static; width: 100%; height: 100%; transform: none; box-shadow: none; border-radius: 22%; animation: none; }
.h-icon.is-docked .h-icon__img.is-basic { opacity: 0; }
.h-icon.is-docked .h-icon__img.is-hover { opacity: 1; }

.h-cards { position: relative; z-index: 1; margin-top: -9rem; }
.h-cards__in { width: min(1098px, calc(100% - 3rem)); margin: 0 auto; display: flex; align-items: flex-start; justify-content: center; gap: 1.1rem; }
.h-card { position: relative; container-type: inline-size; flex: none; width: 34.25%; margin-top: 1rem; }
.h-card:nth-child(2) { width: 49.4%; margin-top: 0; }
.h-card__backdrop { position: absolute; inset: 0; z-index: 0; background: #fff; border-radius: 4.4cqw 4.4cqw 0 0; box-shadow: 0 2.2cqw 6.6cqw rgba(2, 0, 16, 0.08); }
.h-card__head { position: absolute; top: 6.5cqw; left: 6.5cqw; right: 6.5cqw; z-index: 2; display: flex; align-items: center; gap: 4.6cqw; }
.h-card__slot { flex: none; width: 12.4cqw; aspect-ratio: 1; }
.h-card__title { font-size: 6.8cqw; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; color: var(--ink); }
.h-card:nth-child(1) .h-card__head, .h-card:nth-child(3) .h-card__head { left: 9.5cqw; right: 9.5cqw; }
.h-card:nth-child(1) .h-card__slot, .h-card:nth-child(3) .h-card__slot { width: 15.5cqw; }
.h-card:nth-child(1) .h-card__title, .h-card:nth-child(3) .h-card__title { font-size: 6.9cqw; }
.h-card__art { position: relative; z-index: 1; padding: calc(6.5cqw + 15.5cqw + 6cqw) 6.5cqw 6.5cqw; }
.mock-ui { border-radius: 4cqw; background: linear-gradient(180deg, #faf9fe 0%, #f3f0fb 100%); border: 1px solid rgba(75, 54, 124, 0.1); padding: 4.5cqw; display: grid; gap: 2.4cqw; font-size: clamp(0.72rem, 3.6cqw, 0.95rem); }
.h-card:nth-child(2) .mock-ui { font-size: clamp(0.72rem, 2.8cqw, 0.98rem); }
.mock-ui__row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 2.2cqw 3cqw; border-radius: 2.6cqw; background: #fff; box-shadow: 0 1px 2px rgba(11, 10, 26, 0.05); }
.mock-ui__row span { color: var(--ink-2); }
.mock-ui__row b { font-weight: 600; color: var(--ink); }
.mock-ui__row em { font-style: normal; font-weight: 600; font-size: 0.85em; color: var(--accent); background: rgba(75, 54, 124, 0.08); padding: 0.15em 0.6em; border-radius: 999px; }
.mock-ui__row em.is-good { color: #15803d; background: #ecfdf3; }
.mock-ui__row.is-head { background: transparent; box-shadow: none; padding-top: 0; padding-bottom: 0; font-weight: 600; }
.mock-ui__chart { display: flex; align-items: flex-end; gap: 2cqw; height: 26cqw; padding: 0 1cqw; }
.mock-ui__chart span { flex: 1; height: var(--h); border-radius: 1.4cqw 1.4cqw 0.6cqw 0.6cqw; background: linear-gradient(180deg, #8b6fe0 0%, #4b367c 100%); }
.mock-ui__big { font-size: 2.2em; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); padding: 0 1cqw; }

/* ---------- 2. product marquee (dragin initLogosMarquee) ---------- */
.h-logos { padding: 4.5rem 0 3.5rem; background: var(--page); }
.h-logos__title { text-align: center; margin: 0 0 2rem; font-size: 1rem; color: var(--ink-2); }
.h-logos__strip { position: relative; overflow: hidden; }
.h-logos__track { display: flex; width: max-content; column-gap: 3.5rem; will-change: transform; }
.h-logo { flex: none; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; opacity: 0.5; transition: opacity 0.3s ease; cursor: default; }
.h-logos__strip:not(.is-live) { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 3rem; }

/* ---------- 3. product accordion (dragin initProductItems) ---------- */
.h-product { padding: 6rem 0 5rem; background: #fff; }
.h-product .h-head { margin-bottom: 3.5rem; }
.p-items { border-bottom: 1px solid var(--line); }
.p-item { border-top: 1px solid var(--line); }
.p-head { width: 100%; display: flex; align-items: center; gap: 2rem; padding: 1.75rem 0; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: var(--ink); transition: opacity 0.2s ease; }
.p-head:hover { opacity: 0.7; }
.p-item.is-open .p-head:hover { opacity: 1; }
.p-num { width: 2.5rem; font-size: 1rem; color: #9a9aaa; font-variant-numeric: tabular-nums; }
.p-title { flex: 1; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.03em; }
.p-icon { position: relative; width: 22px; height: 22px; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.p-icon i { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--accent); transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.p-icon .p-icon__line2 { transform: rotate(90deg); }
.p-item.is-open .p-icon { transform: rotate(180deg); }
.p-item.is-open .p-icon__line2 { opacity: 0; }
.p-collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.p-item.is-open .p-collapse { grid-template-rows: 1fr; }
.p-body { min-height: 0; overflow: hidden; }
.p-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 2.5rem; padding: 0 0 2.5rem 4.5rem; align-items: start; }
.p-visual { position: relative; display: grid; aspect-ratio: 1.32; border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 80% at 12% 0%, rgba(150, 128, 232, 0.9), rgba(150, 128, 232, 0) 62%), linear-gradient(180deg, #553aa8 0%, #7a60d4 55%, #d6cbf5 100%);
  box-shadow: 0 30px 60px -34px rgba(43, 26, 99, 0.5); }
.p-illu { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.p-illu.is-active { transform: none; }
.p-illu.is-active { opacity: 1; }
.p-intro { margin: 0 0 1.75rem; font-size: 1.06rem; line-height: 1.6; color: var(--ink-2); }
.p-list { list-style: none; margin: 0; padding: 0; }
.p-sub { position: relative; border-top: 1px solid var(--line); }
.p-sub__bar { position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--ink); }
.p-sub__head { width: 100%; padding: 1.1rem 0; border: 0; background: none; text-align: left; font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--ink); cursor: pointer; opacity: 0.45; transition: opacity 0.3s ease; }
.p-sub.is-active .p-sub__head, .p-sub__head:hover { opacity: 1; }
.p-sub__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.p-sub__body > * { overflow: hidden; min-height: 0; }
.p-sub__body p { margin: 0 0 1.1rem; color: var(--ink-2); line-height: 1.55; }
.p-sub.is-active .p-sub__body { grid-template-rows: 1fr; }
.p-soon-tag { display: inline-block; margin-left: 0.5rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: rgba(109, 79, 194, 0.1); color: var(--accent); font-size: 0.66rem; font-style: normal; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.15em; }
.p-note { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.8rem; text-align: right; }

/* Scenes: real CRM screens staged the way dragin stages its product clips.
   The window floats, centered, on the brand backdrop and rises in; a camera
   eases toward where the cursor works (home.js scenePlayer). */
.p-scene, .p-soon { position: relative; display: flex; align-items: center; justify-content: center; }
.p-visual::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px); background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 25%, #000, transparent); mask-image: radial-gradient(75% 65% at 50% 25%, #000, transparent); }
.p-visual::after { content: ''; position: absolute; left: -10%; top: -30%; width: 70%; height: 70%; z-index: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.28), transparent); animation: p-glow 9s ease-in-out infinite alternate; }
@keyframes p-glow { to { transform: translate(55%, 25%); } }
.p-illu { z-index: 1; }
.p-window { position: relative; width: 90%; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 34px 64px -22px rgba(22, 10, 64, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.4); }
.p-scene.is-enter .p-window { animation: p-rise 0.9s var(--ease-out) both; }
@keyframes p-rise { from { transform: translateY(9%) scale(0.96); opacity: 0; } to { transform: none; opacity: 1; } }
.p-chrome { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f3f2f8; border-bottom: 1px solid var(--line); }
.p-chrome i { width: 8px; height: 8px; border-radius: 50%; background: #dcd8e6; }
.p-chrome span { margin: 0 auto; transform: translateX(-14px); padding: 2px 14px; border-radius: 7px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 0.68rem; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.p-screen { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #f7f7fb; }
.p-cam { position: absolute; inset: 0; transform-origin: 0 0; transition: transform 1.35s cubic-bezier(0.45, 0, 0.2, 1); will-change: transform; }
.p-cam.is-still { transition: none; }
.p-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.45s ease, filter 0.45s ease; filter: blur(3px); }
.p-frame.is-on { opacity: 1; filter: none; }
.p-frame.is-scroll { animation: p-scroll 0.7s var(--ease-out); }
@keyframes p-scroll { from { transform: translateY(12%); opacity: 0.4; } to { transform: none; opacity: 1; } }
.p-cursor { position: absolute; z-index: 2; left: 74%; top: 96%; width: 3.6%; min-width: 14px; aspect-ratio: 1; transform: translate(-21%, -13%) scale(var(--ics, 1)); transform-origin: 21% 13%; opacity: 0; pointer-events: none;
  transition: left 0.72s cubic-bezier(0.65, 0, 0.25, 1), top 0.72s cubic-bezier(0.65, 0, 0.25, 1), opacity 0.3s ease, transform 1.35s cubic-bezier(0.45, 0, 0.2, 1); }
.p-cursor.is-on { opacity: 1; }
.p-cursor.is-still { transition: none; }
.p-cursor svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28)); transform-origin: 21% 13%; }
.p-cursor.is-click svg { animation: p-press 0.42s ease; }
.p-cursor__ring { position: absolute; left: 21%; top: 13%; width: 150%; aspect-ratio: 1; margin: -75% 0 0 -75%; border-radius: 50%; border: 2px solid rgba(109, 79, 194, 0.75); background: rgba(109, 79, 194, 0.16); opacity: 0; transform: scale(0.2); }
.p-cursor.is-click .p-cursor__ring { animation: p-ring 0.6s ease-out; }
@keyframes p-press { 40% { transform: scale(0.8); } }
@keyframes p-ring { 0% { opacity: 0.9; transform: scale(0.2); } 100% { opacity: 0; transform: scale(1.5); } }
/* Coming soon: a moving sketch of the feature, no words and no real screen. */
.p-soon__tag { display: inline-flex; align-items: center; gap: 0.4rem; flex: none; padding: 0.22rem 0.6rem; border-radius: 999px; background: rgba(109, 79, 194, 0.1); color: var(--accent); font-size: 0.64rem; font-style: normal; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.p-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.p-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent-2); animation: p-dot 1.8s ease-out infinite; }
@keyframes p-dot { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }
.p-sms, .p-call { position: relative; background: #fff; box-shadow: 0 34px 64px -22px rgba(22, 10, 64, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.4); }
.p-soon.is-active .p-sms, .p-soon.is-active .p-call { animation: p-rise 0.9s var(--ease-out) both; }
.p-sms { width: min(62%, 340px); border-radius: 18px; overflow: hidden; }
.p-sms__head { display: flex; align-items: center; gap: 0.6rem; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); }
.p-sms__av { width: 2rem; height: 2rem; border-radius: 50%; flex: none; background: linear-gradient(135deg, #cfc4f2, #8a72dc); }
.p-sms__who { flex: 1; display: grid; gap: 0.3rem; }
.p-sms__who b { display: block; width: 46%; height: 0.5rem; border-radius: 4px; background: #d9d5e6; }
.p-sms__who i { display: block; width: 28%; height: 0.4rem; border-radius: 4px; background: #ebe8f3; }
.p-sms__ico { color: var(--accent-2); }
.p-sms__ico svg { display: block; width: 1.2rem; height: 1.2rem; }
.p-sms__body { display: flex; flex-direction: column; gap: 0.55rem; min-height: 12rem; padding: 1rem 0.9rem 1.1rem; background: #faf9fd; }
.p-bub { display: grid; gap: 0.35rem; padding: 0.6rem 0.75rem; border-radius: 14px; opacity: 0; }
.p-bub i { display: block; height: 0.42rem; border-radius: 4px; background: currentColor; opacity: 0.32; }
.p-bub.is-in { align-self: flex-start; width: 66%; background: #fff; border: 1px solid var(--line); color: #6b6b7b; border-bottom-left-radius: 5px; }
.p-bub.is-out { align-self: flex-end; width: 54%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; border-bottom-right-radius: 5px; }
.p-bub.is-out i { opacity: 0.6; }
.p-bub.is-typing { width: auto; display: flex; gap: 4px; padding: 0.7rem 0.8rem; }
.p-bub.is-typing b { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: p-typing 1.1s ease-in-out infinite; }
.p-bub.is-typing b:nth-child(2) { animation-delay: 0.15s; }
.p-bub.is-typing b:nth-child(3) { animation-delay: 0.3s; }
@keyframes p-typing { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.p-soon.is-active .p-bub:nth-child(1) { animation: p-bub1 7s 0.4s infinite both; }
.p-soon.is-active .p-bub:nth-child(2) { animation: p-bub2 7s 0.4s infinite both; }
.p-soon.is-active .p-bub:nth-child(3) { animation: p-bub3 7s 0.4s infinite both; }
.p-soon.is-active .p-bub:nth-child(4) { animation: p-bub4 7s 0.4s infinite both; }
@keyframes p-bub1 { 0%, 4% { opacity: 0; transform: translateY(10px) scale(0.92); } 10%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes p-bub2 { 0%, 20% { opacity: 0; transform: translateY(10px) scale(0.92); } 26%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes p-bub3 { 0%, 38% { opacity: 0; transform: translateY(10px) scale(0.92); } 44%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes p-bub4 { 0%, 56% { opacity: 0; transform: translateY(10px) scale(0.92); } 62%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-4px); } }
.p-call { width: min(46%, 250px); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.7rem 1.2rem 1.3rem; border-radius: 24px; }
.p-call__av { position: relative; width: 4.2rem; height: 4.2rem; display: grid; place-items: center; }
.p-call__av span { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; }
.p-call__av svg { width: 1.6rem; height: 1.6rem; }
.p-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(109, 79, 194, 0.5); opacity: 0; }
.p-soon.is-active .p-ring { animation: p-ring2 2.4s calc(var(--n, 0) * 0.8s) ease-out infinite; }
@keyframes p-ring2 { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.1); opacity: 0; } }
.p-call__name { display: block; width: 52%; height: 0.55rem; margin-top: 0.7rem; border-radius: 4px; background: #d9d5e6; }
.p-call__sub { display: block; width: 30%; height: 0.42rem; border-radius: 4px; background: #ebe8f3; }
.p-wave { display: flex; align-items: center; gap: 3px; height: 2.4rem; margin: 0.35rem 0; }
.p-wave i { width: 3px; height: 25%; border-radius: 2px; background: var(--accent-2); opacity: 0.8; }
.p-soon.is-active .p-wave i { animation: p-wave 0.9s calc(var(--n) * -0.11s) ease-in-out infinite alternate; }
.p-wave i:nth-child(3n) { opacity: 0.5; }
@keyframes p-wave { from { height: 16%; } to { height: 100%; } }
.p-call__btns { display: flex; gap: 0.9rem; margin: 0.3rem 0 0.4rem; }
.p-call__btns span { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #efedf6; }
.p-call__btns .is-end { background: #e5484d; }

/* ---------- 4. benefits bento (dragin initBenefitsVisuals) ---------- */
.h-benefits { padding: 6rem 0; background: var(--page); }
.h-benefits .h-head { margin-bottom: 3.5rem; }
.b-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.b-item { position: relative; overflow: hidden; padding: 1.6rem; border-radius: 22px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 20rem; }
.b-item h3 { margin: auto 0 0.4rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); transition: opacity 0.3s ease; }
.b-item p { margin: 0; color: var(--ink-2); line-height: 1.5; font-size: 0.95rem; }
.b-item--1 { grid-column: 1; grid-row: 1; }
.b-item--3 { grid-column: 1; grid-row: 2; }
.b-item--accent { grid-column: 2; grid-row: 1 / span 2; background: radial-gradient(120% 90% at 50% 100%, #3a2766 0%, #17112c 70%); border-color: transparent; color: #fff; }
.b-item--accent h3 { color: #fff; font-size: 1.6rem; }
.b-item--accent p { color: rgba(255, 255, 255, 0.72); }
.b-item--2 { grid-column: 3; grid-row: 1; }
.b-item--4 { grid-column: 3; grid-row: 2; }
.b-visual { position: relative; height: 10.5rem; display: grid; place-items: center; margin-bottom: 1rem; }
.b-visual--stack { display: flex; justify-content: center; align-items: center; gap: 0.25rem; }
.b-dec { width: 6.5rem; height: auto; will-change: transform; }
.b-strips { position: absolute; inset: 1rem 1.5rem; display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; align-items: center; }
.b-strips span { height: 70%; border-radius: 4px; background: linear-gradient(180deg, #e9e3fb, #d4c8f3); transform-origin: 0 50%; }
.b-main { position: relative; width: 6.8rem; height: auto; will-change: transform; }
.b-pulse-main { width: 6.8rem; height: auto; will-change: transform; }
.b-shield { width: 8.6rem; height: auto; transform: scale(var(--shield-scale, 1)); }
.b-orb { position: absolute; left: 50%; top: 40%; width: 26rem; height: 26rem; transform: translate(-50%, -50%) scale(var(--orb-scale, 1)); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.b-orb span { position: absolute; inset: 0; border-radius: 50%; filter: blur(30px); mix-blend-mode: screen; }
.b-orb span:nth-child(1) { background: radial-gradient(circle at 40% 40%, #9b7de6 0%, transparent 60%); animation: orb-a 9s ease-in-out infinite; }
.b-orb span:nth-child(2) { background: radial-gradient(circle at 60% 55%, #5ec8ff 0%, transparent 55%); animation: orb-b 11s ease-in-out infinite; opacity: 0.6; }
.b-orb span:nth-child(3) { background: radial-gradient(circle at 50% 70%, #ff7ab8 0%, transparent 50%); animation: orb-c 13s ease-in-out infinite; opacity: 0.45; }
@keyframes orb-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6%, -5%); } }
@keyframes orb-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-7%, 6%); } }
@keyframes orb-c { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(5%, 7%); } }
.b-item--accent:hover { --orb-scale: 1.25; }
.b-item--accent:hover h3 { opacity: 0.3; }

/* ---------- 5. numbers band (dragin initNumbersTicker) ---------- */
.h-numbers { padding: 6.5rem 0; background: linear-gradient(180deg, #3d2a6b 0%, #5a3ea8 55%, #8a6fe3 100%); color: #fff; text-align: center; }
.h-numbers .h-head h2 { color: #fff; }
.h-numbers .h-head { margin-bottom: 3.5rem; }
.n-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 60rem; margin: 0 auto; }
.n-item .h1 { font-size: clamp(3rem, 6vw, 4.75rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1.1; }
.n-item p { margin: 0.6rem auto 0; max-width: 16rem; color: rgba(255, 255, 255, 0.8); line-height: 1.5; }
.odometer { white-space: nowrap; vertical-align: top; }
.odometer__digit { display: inline-block; overflow: hidden; vertical-align: top; mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%); }
.odometer__strip { display: block; will-change: transform; }
.odometer__num { display: block; }
.odometer__suffix { display: inline-block; vertical-align: top; }

/* ---------- 6. testimonials coverflow (dragin initTestimonialsSlider) ---------- */
.h-testimonials { padding: 6rem 0 4rem; background: var(--page); }
.h-testimonials .h-head { margin-bottom: 3rem; }
.t-items { display: flex; gap: 1rem; overflow-x: auto; padding: 1rem 1.5rem 3rem; }
.t-items.is-marquee { display: block; overflow: hidden; padding: 1rem 0 3rem; }
.t-track { display: flex; flex-wrap: nowrap; align-items: stretch; column-gap: 1rem; width: max-content; will-change: transform; }
.t-items article {
  flex: 0 0 auto;
  width: min(22.25rem, 86vw);
  box-sizing: border-box;
  padding: 1.75rem;
  border-radius: 20px;
  background: #fff;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: 5px 15px 25px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
/* Every logo sits in the same 260x100 box, already trimmed to the same visual weight. */
.t-items article .quote-logo { display: block; width: 14rem; max-width: 100%; height: auto; aspect-ratio: 13 / 5; margin: -0.4rem auto 0.8rem; object-fit: contain; }
.t-items article h3 { margin: 0 0 0.8rem; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); }
.t-items article p { margin: 0; color: var(--ink-2); font-size: 0.94rem; line-height: 1.55; }

/* ---------- 7. connections arc (dragin initIntegrations) ---------- */
.h-integrations { padding: 6rem 0 5rem; background: #fff; }
.h-integrations .h-head { margin-bottom: 1rem; }
.i-wrap { position: relative; width: min(1128px, 100%); margin: 0 auto; touch-action: pan-y; }
.i-items { position: relative; height: 22rem; }
.i-item { position: absolute; top: 0; left: 0; z-index: 1; cursor: pointer; will-change: transform, opacity; }
.i-item__logo { display: block; width: 4.5rem; height: 4.5rem; object-fit: contain; padding: 0.9rem; border-radius: 1.2rem; background: #fff; box-shadow: 0 8px 24px -10px rgba(11, 10, 26, 0.25); transition: opacity 0.35s var(--ease-out) 0.2s, transform 0.45s var(--ease-out) 0.2s; }
.i-item__visual { position: absolute; left: 50%; top: 50%; width: 15rem; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.6); transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.i-item__logo-big { display: block; width: 6.5rem; height: 6.5rem; margin: 0 auto 0.9rem; padding: 1.2rem; object-fit: contain; border-radius: 1.6rem; background: #fff; box-shadow: 0 18px 40px -16px rgba(75, 54, 124, 0.45); opacity: 0; transform: scale(0.85); transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.i-item__visual strong { display: block; font-size: 1.15rem; font-weight: 600; color: var(--ink); }
.i-item__visual p { margin: 0.3rem 0 0; font-size: 0.9rem; color: var(--ink-2); line-height: 1.45; }
.i-item.is-active { z-index: 2; cursor: default; }
.i-item.is-active .i-item__logo { opacity: 0; transform: scale(0.6); transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1); }
.i-item.is-active .i-item__visual { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s var(--ease-out); }
.i-item.is-active .i-item__logo-big { opacity: 1; transform: scale(1); transition: opacity 0.4s var(--ease-out) 0.18s, transform 0.6s var(--ease-out) 0.18s; }
.i-caption { text-align: center; max-width: 34rem; margin: 0 auto; }
.t-note { margin: 0.6rem auto 0; max-width: 34rem; font-size: 0.85rem; color: #8a8a9a; text-align: center; }
.i-item[data-id="auth0"] .i-item__logo, .i-item[data-id="auth0"] .i-item__logo-big { padding: 0.3rem; }
.i-items:not(.is-live) { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; height: auto; padding: 2rem 0; }
.i-items:not(.is-live) .i-item { position: static; }
.i-items:not(.is-live) .i-item__visual { display: none; }

/* ---------- 8. solutions slider (dragin initSolutionsSlider) ---------- */
.h-solutions { padding: 6rem 0; background: var(--page); --sol-narrow: 15rem; --sol-active: 33rem; --sol-gap: 1rem; }
.h-solutions__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; }
.h-solutions .h-head h2 { margin-bottom: 0; }
.s-controls { display: flex; gap: 0.6rem; }
.s-btn { width: 3rem; height: 3rem; border-radius: 999px; border: 1px solid rgba(11, 10, 26, 0.14); background: #fff; font-size: 1.1rem; cursor: pointer; transition: opacity 0.25s ease, background-color 0.25s ease; }
.s-btn:hover { background: #f1eefa; }
.s-btn.is-disabled { opacity: 0.35; pointer-events: none; }
.s-body { overflow: hidden; cursor: grab; }
.s-body:active { cursor: grabbing; }
.s-items { display: flex; gap: var(--sol-gap); will-change: transform; user-select: none; }
.s-item { position: relative; flex: none; width: var(--sol-narrow); height: 25.875rem; overflow: hidden; border-radius: 22px; background: #fff; border: 1px solid var(--line); cursor: pointer; transition: width 0.65s cubic-bezier(0.65, 0, 0.35, 1); }
.s-item.is-active { width: var(--sol-active); cursor: default; }
.s-item__visual { position: absolute; inset: 0 0 auto 0; height: 62%; display: grid; place-items: center; background: linear-gradient(160deg, #f3effc 0%, #e4dbf7 100%); }
.s-item__visual img { width: 7rem; height: auto; transition: transform 0.65s cubic-bezier(0.65, 0, 0.35, 1); }
.s-item.is-active .s-item__visual img { transform: scale(1.15); }
.s-item__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows 0.65s cubic-bezier(0.65, 0, 0.35, 1); }
.s-item.is-active .s-item__text { grid-template-rows: auto 1fr; }
.s-item__text h3 { margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.s-item__copy { min-height: 0; overflow: hidden; margin: 0; opacity: 0; transform: translateY(0.75rem); color: var(--ink-2); line-height: 1.5; transition: opacity 0.3s ease, margin-top 0.65s cubic-bezier(0.65, 0, 0.35, 1), transform 0.3s ease; }
.s-item.is-active .s-item__copy { opacity: 1; margin-top: 0.75rem; transform: none; transition: opacity 0.45s ease 0.25s, margin-top 0.65s cubic-bezier(0.65, 0, 0.35, 1), transform 0.45s var(--ease-out) 0.25s; }

/* ---------- 9. closing call to action ---------- */
.h-deal { padding: 2rem 0 7rem; background: var(--page); }
.h-deal__in { position: relative; overflow: hidden; padding: 5rem 2rem; border-radius: 32px; text-align: center; background: radial-gradient(90% 120% at 50% 0%, #efe9fd 0%, #fff 60%); border: 1px solid var(--line); }
.h-deal__in h2 { margin: 0 0 1rem; font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.08; color: var(--ink); }
.h-deal__in .b2 { margin: 0 auto 2rem; max-width: 30rem; }

/* ---------- small screens: no pin, no docking (dragin turns these off under 480px) ---------- */
@media (max-width: 760px) {
  .h-intro__in { height: auto; padding: 7.5rem 0 2rem; }
  .h-intro__icons { position: static; display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 1.5rem; }
  .h-intro__in { flex-direction: column; align-items: center; }
  .h-icon { position: static; width: 3.75rem; height: 3.75rem; border-radius: 1.2rem; animation: none; transform: rotate(-8deg); }
  .h-icon:nth-child(even) { transform: rotate(8deg); }
  .h-cards { margin-top: 0; }
  .h-cards__in { flex-direction: column; align-items: stretch; }
  .h-card, .h-card:nth-child(2) { width: 100%; margin-top: 0; }
  .h-card__backdrop { border-radius: 18px; }
  .p-grid { grid-template-columns: 1fr; padding-left: 0; gap: 1.5rem; }
  .p-visual { aspect-ratio: 1.15; border-radius: 18px; }
  .p-window { width: 92%; border-radius: 9px; }
  .p-chrome { height: 22px; padding: 0 8px; gap: 4px; }
  .p-chrome i { width: 6px; height: 6px; }
  .p-chrome span { font-size: 0.58rem; padding: 1px 8px; transform: none; }
  .p-sms { width: 80%; }
  .p-sms__body { min-height: 10rem; }
  .p-call { width: 62%; }
  .p-note { text-align: left; }
  .p-head { gap: 1rem; }
  .b-grid { grid-template-columns: 1fr; }
  .b-item--1, .b-item--2, .b-item--3, .b-item--4, .b-item--accent { grid-column: auto; grid-row: auto; }
  .b-item--accent { min-height: 24rem; }
  .n-items { grid-template-columns: 1fr; }
  .h-solutions { --sol-narrow: 78vw; --sol-active: 78vw; }
  .s-body { overflow-x: auto; scroll-snap-type: x mandatory; }
  .s-item { scroll-snap-align: start; }
  .s-item__text { grid-template-rows: auto auto; }
  .s-item__copy { opacity: 1; transform: none; margin-top: 0.75rem; }
  .page-blur { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .anim-hidden { opacity: 1; }
  .h-icon, .b-orb span { animation: none; }
}

/* ---------- generated art (Higgsfield) ---------- */
.h-card__art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3.4cqw; }

/* benefits: 21st.dev "Tilt Card" (cursor tilt + spotlight) and "Hover Reveal Cards" (the rest step back) */
.b-grid { perspective: 1400px; }
.b-item { transform-style: preserve-3d; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1)); transition: transform 0.2s ease-out, opacity 0.45s ease, filter 0.45s ease, box-shadow 0.35s ease; will-change: transform; outline: none; }
.b-item::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.55), transparent 42%); }
.b-item--accent::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 45%); }
.b-item.is-hot::after { opacity: 1; }
.b-item.is-hot { --s: 1.02; box-shadow: 0 30px 60px -30px rgba(75, 54, 124, 0.45); z-index: 2; }
.b-grid.has-hot .b-item:not(.is-hot) { opacity: 0.62; filter: blur(1.5px); --s: 0.98; }
.b-item:focus-visible { box-shadow: 0 0 0 3px rgba(75, 54, 124, 0.35); }
.b-visual { height: 11.5rem; margin-bottom: 0.75rem; display: grid; place-items: center; transform: translateZ(40px); }
.b-visual img { height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.b-item.is-hot .b-visual img { transform: translateY(-6px) scale(1.06); }
.b-item h3, .b-item p { position: relative; z-index: 2; transform: translateZ(24px); }
.b-orb { left: var(--ox, 50%); top: var(--oy, 40%); transition: left 0.9s cubic-bezier(0.22, 1, 0.36, 1), top 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.b-modules { position: relative; z-index: 2; list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; transform: translateZ(30px); }
.b-modules li { padding: 0.45rem 0.85rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; color: rgba(255, 255, 255, 0.82); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color 0.35s ease, color 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease; }
.b-modules li.is-lit { background: #fff; color: #2a1d4d; border-color: #fff; transform: translateY(-3px); }

/* connections: brand marks on white tiles */
.i-item__logo { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; padding: 0.95rem; border-radius: 1.2rem; background: #fff; box-shadow: 0 8px 24px -10px rgba(11, 10, 26, 0.25); }
.i-item__logo img, .i-item__logo-big img { width: 100%; height: 100%; object-fit: contain; }
.i-item__logo-big { display: grid; place-items: center; }
.i-item[data-id="plaid"] .i-item__logo, .i-item[data-id="plaid"] .i-item__logo-big { padding-left: 0.6rem; padding-right: 0.6rem; }

/* solutions: dragin-style full-bleed art cards */
.h-solutions { --sol-narrow: 16.4rem; --sol-active: 39.7rem; }
.s-item { height: 28.75rem; border: 0; background: #ece7fa; border-radius: 1rem; }
.s-item__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1); }
.s-item.is-active .s-item__bg { transform: scale(1.04); }
.s-item::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to bottom, rgba(23, 17, 44, 0), rgba(23, 17, 44, 0.72)); pointer-events: none; }
.s-item__text { z-index: 2; padding: 1.75rem; }
.s-item__text h3 { color: #fff; font-size: 1.4rem; }
.s-item__copy { color: rgba(255, 255, 255, 0.86); max-width: 30rem; }
.s-item__copy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* closing call to action: sky backdrop, white card, art left, copy right (dragin's deal section) */
.h-deal { position: relative; padding: 8rem 0; background: radial-gradient(120% 90% at 20% 0%, #c9b8f3 0%, transparent 55%), radial-gradient(90% 80% at 100% 100%, #9fd0ff 0%, transparent 50%), linear-gradient(180deg, #6a4fc8 0%, #8f74e6 55%, #b7a5f2 100%); }
.h-deal__in { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 1rem; border-radius: 2rem; background: #fff; border: 0; text-align: left; box-shadow: 0 40px 80px -40px rgba(23, 17, 44, 0.55); }
.h-deal__art { border-radius: 1.5rem; overflow: hidden; aspect-ratio: 4 / 3.8; }
.h-deal__art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.h-deal__in:hover .h-deal__art img { transform: scale(1.04); }
.h-deal__copy { padding: 2rem 2.5rem 2rem 0; }
.h-deal__copy h2 { margin: 0 0 1.2rem; font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.05; color: var(--ink); }
.h-deal__copy .b2 { margin: 0 0 2rem; max-width: 28rem; }
.h-intro__buttons.is-left { justify-content: flex-start; }
@media (max-width: 760px) {
  .h-deal { padding: 4rem 0; }
  .h-deal__in { grid-template-columns: 1fr; gap: 1.5rem; }
  .h-deal__copy { padding: 0 1rem 1.5rem; }
  .s-item { height: 24rem; }
  .b-item { transform: none; }
}

/* ---------- round 3: bento center without a card ---------- */
.b-item--accent.is-accent { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink); align-items: center; justify-content: center; text-align: center; padding: 1rem 1rem 1.6rem; overflow: visible; }
.b-item--accent.is-accent::before, .b-item--accent.is-accent::after { display: none; }
.b-item--accent.is-accent h3 { margin: 0 0 0.5rem; color: var(--ink); font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; opacity: 1; }
.b-item--accent.is-accent:hover h3 { opacity: 1; }
.b-core { position: relative; width: min(100%, 17rem); aspect-ratio: 3 / 4; margin: 0 auto 1.2rem; }
.b-core::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -4%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(75, 54, 124, 0.22), transparent); filter: blur(6px); z-index: -1; }
.b-core__clip { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(75% 70% at 50% 48%, #000 62%, transparent 100%); mask-image: radial-gradient(75% 70% at 50% 48%, #000 62%, transparent 100%); transform: translateZ(40px); }
.b-core__text { position: relative; z-index: 2; }
.b-shuffle { margin: 0; height: 1.6em; font-size: 1.05rem; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.b-shuffle__word { display: inline-block; min-width: 9ch; }
.b-shuffle__word .is-noise { color: #a593d6; }

/* ---------- round 3: built-in connections and logos ---------- */
.i-item.is-internal .i-item__logo, .i-item.is-internal .i-item__logo-big { padding: 0; overflow: hidden; }
.i-item.is-internal .i-item__logo img, .i-item.is-internal .i-item__logo-big img { width: 100%; height: 100%; object-fit: cover; }
.i-item__logo img, .i-item__logo-big img { display: block; width: 100%; height: 100%; object-fit: contain; }
.i-item__tag { display: inline-block; margin: -0.3rem 0 0.5rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-style: normal; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); background: #f1edf9; }


/* Accordion clips: videos share the image frame. */
video.p-illu { background: #ddd7ee; aspect-ratio: 3 / 2; }
@media (prefers-reduced-motion: reduce) {
  .p-frame, .p-cam { transition: none; }
  .p-frame.is-scroll, .p-scene.is-enter .p-window, .p-visual::after, .p-dot::after, .p-ring, .p-wave i, .p-bub.is-typing b { animation: none !important; }
  .p-cursor { display: none; }
  .p-soon.is-active .p-bub, .p-soon.is-active .p-sms, .p-soon.is-active .p-call { animation: none; opacity: 1; transform: none; }
}
.b-item--accent.is-accent.is-hot { box-shadow: none; }
/* the side tiles keep their image box; off-white art blends into the white card */
.b-item .b-visual { flex: none; }
.b-item { min-height: 21rem; }
.b-visual img { mix-blend-mode: multiply; }
/* the clip's light backdrop melts into the page */
.b-core__clip { mix-blend-mode: multiply; filter: brightness(1.07) saturate(1.08); -webkit-mask-image: radial-gradient(60% 58% at 50% 48%, #000 55%, transparent 100%); mask-image: radial-gradient(60% 58% at 50% 48%, #000 55%, transparent 100%); }
.b-item--accent .b-shuffle { color: var(--accent); opacity: 1; }
.b-visual img { height: 11.5rem; max-height: 11.5rem; width: auto; border-radius: 14px; }
.b-visual img { filter: brightness(1.07) contrast(1.04); }
.i-item.is-internal .i-item__logo, .i-item.is-internal .i-item__logo-big { background: #fff; }

/* ---------- hero cards: readable working screens (dragin's hero) ---------- */
.h-card__art { padding: calc(6.5cqw + 15.5cqw + 5cqw) 7cqw 7cqw; }
.h-card:nth-child(2) .h-card__art { padding: calc(6.5cqw + 12.4cqw + 2.5cqw) 6cqw 6cqw; }
.ui { color: var(--ink); font-size: 3.4cqw; line-height: 1.35; }
.ui small { display: block; color: #8a8a9a; font-size: 0.78em; line-height: 1.35; margin-top: 0.35em; }

/* Email Automation */
.ui-steps { display: flex; align-items: center; gap: 2cqw; margin: 0 -7cqw 0 -7cqw; padding: 0 0 0 7cqw; }
.ui-steps i { flex: none; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; border: 0.9cqw solid #d9d3ef; background: #fff; }
.ui-steps i.is-done { border-color: #4b367c; background: #4b367c; box-shadow: 0 0 0 1.4cqw rgba(75, 54, 124, 0.14); }
.ui-steps__line { position: relative; flex: 1; height: 0.5cqw; border-radius: 1cqw; background: #e8e4f4; overflow: hidden; }
.ui-steps__line em { position: absolute; inset: 0; width: 0; background: #4b367c; animation: ui-progress 2.6s 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes ui-progress { to { width: 100%; } }
.ui-stepcopy { display: grid; grid-template-columns: 1fr 1fr; gap: 5cqw; margin: 5cqw 0 6cqw; }
.ui-stepcopy strong { display: block; font-size: 1.32em; font-weight: 500; letter-spacing: -0.02em; }
.ui-stepcopy .is-next { opacity: 0.28; }
.ui-fields { display: grid; }
.ui-field { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3cqw; padding: 2.6cqw 0; border-top: 1px solid rgba(11, 10, 26, 0.07); font-size: 0.82em; }
.ui-field:first-child { border-top: 0; }
.ui-field span { color: #8a8a9a; }
.ui-field b { font-weight: 500; color: #4a4a5c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-field:last-child b { white-space: normal; }

/* Document Analysis */
.ui-analysis { font-size: 2.5cqw; }
.ui-big { display: flex; align-items: baseline; font-size: 9.6cqw; font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ui-big__cents { color: #c3c0cf; }
.ui-cap { margin: 1.6cqw 0 0; color: #8a8a9a; font-size: 0.95em; }
.ui-chart { display: block; width: calc(100% + 6cqw); height: 15cqw; margin: 1.5cqw -6cqw 2cqw 0; overflow: visible; }
.ui-chart__line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: ui-draw 2.2s 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.ui-chart__fill { opacity: 0; animation: ui-fade 1.2s 1.2s ease forwards; }
@keyframes ui-draw { to { stroke-dashoffset: 0; } }
@keyframes ui-fade { to { opacity: 1; } }
.ui-table { border: 1px solid rgba(11, 10, 26, 0.09); border-radius: 2.4cqw; overflow: hidden; }
.ui-tr { display: grid; grid-template-columns: 1.6fr 1.2fr 0.9fr; align-items: center; gap: 2cqw; padding: 1.75cqw 3cqw; border-top: 1px solid rgba(11, 10, 26, 0.06); color: #4a4a5c; }
.ui-tr.is-head { border-top: 0; color: var(--ink); font-weight: 500; background: #fafafc; }
.ui-tr span:last-child { text-align: right; }
.ui-pill { display: inline-block; font-style: normal; font-size: 0.85em; padding: 0.2em 0.65em; border-radius: 0.4em; }
.ui-pill.is-good { color: #15803d; background: #e8f7ee; }
.ui-pill.is-bad { color: #c2410c; background: #fdece6; }
.ui-amt { font-variant-numeric: tabular-nums; font-weight: 500; }
.ui-amt.is-good { color: #15803d; }
.ui-amt.is-bad { color: #c2410c; }

/* Lender Matching */
.ui-score { display: flex; align-items: center; gap: 5cqw; padding-bottom: 5cqw; border-bottom: 1px solid rgba(11, 10, 26, 0.07); }
.ui-score > div:first-child { flex: none; }
.ui-score__num, .ui-score__pct { font-size: 14cqw; font-weight: 500; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.ui-score__verdict { padding-left: 5cqw; border-left: 1px solid rgba(11, 10, 26, 0.1); }
.ui-score__verdict strong { display: block; font-size: 1.3em; font-weight: 500; letter-spacing: -0.02em; }
.ui-checks { list-style: none; margin: 4cqw 0; padding: 0; display: grid; gap: 3.4cqw; }
.ui-checks li { display: flex; align-items: center; gap: 3.4cqw; font-size: 1.18em; letter-spacing: -0.01em; }
.ui-ico { flex: none; display: grid; place-items: center; width: 8.4cqw; height: 8.4cqw; border-radius: 2.2cqw; background: #f1edf9; color: #4b367c; }
.ui-ico svg { width: 60%; height: 60%; }
.ui-ico.is-good { background: #e8f7ee; color: #15803d; }
.ui-ico.is-warn { background: #fff4e5; color: #d97706; }
.ui-lender { display: flex; align-items: center; gap: 3.4cqw; }
.ui-lender strong { font-weight: 500; font-size: 0.95em; }
.ui-foot { display: flex; justify-content: space-between; gap: 2cqw; margin-top: 4.5cqw; padding-top: 3cqw; border-top: 1px solid rgba(11, 10, 26, 0.07); font-size: 0.66em; color: #9a9aa8; }

@media (max-width: 900px) { .ui { font-size: 3.6cqw; } .ui-analysis { font-size: 2.9cqw; } }
@media (prefers-reduced-motion: reduce) { .ui-steps__line em, .ui-chart__line, .ui-chart__fill { animation: none; width: 100%; stroke-dashoffset: 0; opacity: 1; } }
/* bento center: the word on top, its picture under it, the title last */
.b-item--accent .b-shuffle { order: 0; margin: 0 0 0.6rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.b-core { display: grid; width: min(100%, 18rem); aspect-ratio: 1; margin: 0 auto 1rem; }
.b-core__img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transform: translateY(14px) scale(0.92); filter: blur(6px); transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.9s ease; -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); }
.b-core__img.is-on { opacity: 1; transform: none; filter: none; animation: b-float 6s ease-in-out infinite; }
@keyframes b-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .b-core__img { transition: none; } .b-core__img.is-on { animation: none; } }
/* bento center word: a large gradient word under a small label */
.b-item--accent .b-eyebrow { margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #9a93b4; }
.b-item--accent .b-shuffle { height: auto; margin: 0 0 0.4rem; font-size: clamp(1.9rem, 2.8vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; }
.b-item--accent .b-shuffle__word { min-width: 0; background: linear-gradient(100deg, #4b367c 0%, #7d5fd6 55%, #a98bf0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.b-item--accent .b-shuffle__word .is-noise { -webkit-text-fill-color: #b9a8ee; color: #b9a8ee; }

/* ---------- Call-to-action buttons: 21st.dev Shimmer Button with a pointer
   glow and an arrow that slides in; the ghost button fills from the pointer. ---------- */
.btn-main, .ft .button {
  position: relative; overflow: hidden; isolation: isolate; gap: 0;
  background: radial-gradient(140px circle at var(--bx, -200px) var(--by, -200px), rgba(255, 255, 255, 0.28), transparent 60%), linear-gradient(135deg, #5b44a0, #4b367c 55%, #3d2a63);
  box-shadow: 0 10px 24px -12px rgba(75, 54, 124, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, gap 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-main::before, .ft .button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.32) 50%, transparent 68%);
  transform: translateX(-120%); animation: ctaShimmer 3.6s ease-in-out infinite;
}
@keyframes ctaShimmer { 55%, 100% { transform: translateX(120%); } }
.btn-main::after, .btn-ghost::after, .ft .button::after {
  content: ""; flex: none; width: 0; height: 14px; opacity: 0; transform: translateX(-8px); background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-main:hover, .ft .button:hover {
  gap: 0.5rem; transform: translateY(-2px);
  background: radial-gradient(140px circle at var(--bx, -200px) var(--by, -200px), rgba(255, 255, 255, 0.28), transparent 60%), linear-gradient(135deg, #6a52b3, #4b367c 55%, #3d2a63);
  box-shadow: 0 18px 34px -14px rgba(75, 54, 124, 0.95), 0 0 0 4px rgba(139, 111, 224, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-main:hover::after, .btn-ghost:hover::after, .ft .button:hover::after { width: 14px; opacity: 1; transform: none; }
.btn-main:active, .btn-ghost:active, .ft .button:active { transform: translateY(0) scale(0.97); }
.btn-ghost {
  position: relative; overflow: hidden; isolation: isolate; gap: 0;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, gap 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(180px circle at var(--bx, 50%) var(--by, 50%), rgba(139, 111, 224, 0.22), transparent 70%), #f6f3fd;
  opacity: 0; transform: scale(0.6); transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-ghost:hover { gap: 0.5rem; color: #4b367c; border-color: rgba(75, 54, 124, 0.45); transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(75, 54, 124, 0.7); }
.btn-ghost:hover::before { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn-main::before, .ft .button::before { animation: none; } }
/* "Start today" on the purple band: a light that runs around its border (21st.dev
   Border Beam), a soft halo that pulses outward, a shimmer across the face, and
   an arrow that slides in on hover. */
@property --start-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-start { position: relative; isolation: isolate; gap: 0; color: #2b1d57; animation: startPulse 2.8s ease-out infinite;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), gap 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease; }
@keyframes startPulse { 0% { box-shadow: 0 12px 30px -12px rgba(20, 8, 60, 0.6), 0 0 0 0 rgba(255, 255, 255, 0.5); } 70%, 100% { box-shadow: 0 12px 30px -12px rgba(20, 8, 60, 0.6), 0 0 0 16px rgba(255, 255, 255, 0); } }
.btn-start::before { content: ""; position: absolute; inset: -3px; border-radius: 13px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--start-spin), transparent 0 60%, rgba(201, 184, 255, 0.9) 72%, #fff 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: startSpin 3s linear infinite; }
@keyframes startSpin { to { --start-spin: 360deg; } }
.btn-start__shine { position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden; pointer-events: none; }
.btn-start__shine::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(109, 79, 194, 0.2) 50%, transparent 70%); transform: translateX(-120%); animation: ctaShimmer 3.6s ease-in-out 0.8s infinite; }
.btn-start__arrow { flex: none; width: 0; height: 14px; opacity: 0; transform: translateX(-8px); background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.btn-start:hover { gap: 0.5rem; color: var(--accent); transform: translateY(-2px) scale(1.03); }
.btn-start:hover .btn-start__arrow { width: 14px; opacity: 1; transform: none; }
.btn-start:active { transform: translateY(0) scale(0.97); }
@media (prefers-reduced-motion: reduce) { .btn-start, .btn-start::before, .btn-start__shine::before { animation: none; } }

/* ---------- Phones (after dragin.io): the hero's tiles under its buttons, and the
   showcase cards and benefits as swipe rows where the next card peeks in ---------- */
@media (max-width: 760px) {
  .h-intro__in { padding: 6rem 0 1.5rem; }
  .h-intro__content { order: 1; }
  .h-intro__icons { order: 2; margin: 1.8rem 0 0; }
  .h-cards { margin-top: 0.5rem; }
  .h-cards__in, .b-grid { flex-direction: row; display: flex; align-items: stretch; gap: 0.9rem; width: 100%; margin: 0; padding: 0.25rem 1.25rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  .h-cards__in::-webkit-scrollbar, .b-grid::-webkit-scrollbar { display: none; }
  .h-card, .h-card:nth-child(2) { flex: 0 0 86%; width: auto; scroll-snap-align: center; }
  body.home .h-benefits .wrap { width: 100%; }
  .h-benefits .h-head { padding: 0 1.5rem; margin-bottom: 1.8rem; }
  .b-grid .b-item { flex: 0 0 80%; min-height: 22rem; scroll-snap-align: center; }
  .b-grid .b-item--accent.is-accent { flex-basis: 74%; }
  .h-deal__copy { text-align: center; }
  .h-deal .h-intro__buttons, .h-deal .h-intro__buttons.is-left { flex-direction: column; align-items: stretch; justify-content: center; }
  .h-deal .h-intro__buttons a { width: 100%; justify-content: center; }
}

/* ---------- Phones, like dragin.io: the five tiles in one row across the screen under the
   buttons, tilted in turn and in color (there's no hover on a phone). Each drops in on load,
   and nothing moves as the page scrolls. No hero cards: dragin's phone hero ends at the tiles. ---------- */
@media (max-width: 760px) {
  .h-intro__in { padding-bottom: 2.25rem; }
  .h-intro__icons { display: flex; justify-content: space-between; align-items: center; gap: 4px; width: calc(100% + 1.25rem); max-width: 30rem; margin: 2.1rem -0.625rem 0; }
  .h-icon, .h-icon:nth-child(even) { flex: none; width: clamp(3.5rem, 17.6vw, 4.6rem); height: clamp(3.5rem, 17.6vw, 4.6rem); border-radius: 27%;
    box-shadow: 0 10px 24px -12px rgba(40, 24, 90, 0.38), 0 2px 6px rgba(11, 10, 26, 0.06);
    transform: none; rotate: var(--r); animation: h-drop 0.95s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .h-icon:nth-child(odd) { --r: -12deg; --from: -34deg; }
  .h-icon:nth-child(even) { --r: 12deg; --from: 34deg; }
  .h-icon:nth-child(1) { animation-delay: 0.32s; } .h-icon:nth-child(2) { animation-delay: 0.42s; } .h-icon:nth-child(3) { animation-delay: 0.52s; }
  .h-icon:nth-child(4) { animation-delay: 0.62s; } .h-icon:nth-child(5) { animation-delay: 0.72s; }
  .h-icon .h-icon__img.is-basic { opacity: 0; }
  .h-icon .h-icon__img.is-hover { opacity: 1; }
  .h-cards { display: none; }
}
@keyframes h-drop {
  from { opacity: 0; translate: 0 -72px; rotate: var(--from); }
  55% { opacity: 1; }
  to { opacity: 1; translate: 0 0; rotate: var(--r); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .h-icon, .h-icon:nth-child(even) { animation: none; }
}

/* ---------- the tour (Magic UI Hero Video Dialog): the explainer in a dialog ---------- */
/* A small "Tour" pill in the bottom-right corner; on hover it opens out to the full line. */
.h-tour-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 40px;
  padding: 0 0.85rem 0 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(75, 54, 124, 0.18);
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 10px 26px -14px rgba(45, 30, 90, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: h-tour-in 0.5s var(--ease-out) 0.8s both;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.25s ease;
}
.h-tour-fab:hover, .h-tour-fab:focus-visible { transform: translateY(-2px); border-color: rgba(75, 54, 124, 0.4); box-shadow: 0 14px 30px -14px rgba(75, 54, 124, 0.7); }
.h-tour-fab__play { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #8467f4, #4b367c); }
.h-tour-fab__play svg { width: 13px; height: 13px; }
.h-tour-fab__play::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(138, 108, 246, 0.45); animation: h-tour-ring 2.2s ease-out infinite; }
.h-tour-fab__label { display: inline-flex; overflow: hidden; }
.h-tour-fab__short, .h-tour-fab__long { display: inline-block; overflow: hidden; transition: max-width 0.4s var(--ease-out), opacity 0.25s ease; }
.h-tour-fab__short { max-width: 3rem; }
.h-tour-fab__long { max-width: 0; opacity: 0; }
.h-tour-fab:hover .h-tour-fab__short, .h-tour-fab:focus-visible .h-tour-fab__short { max-width: 0; opacity: 0; }
.h-tour-fab:hover .h-tour-fab__long, .h-tour-fab:focus-visible .h-tour-fab__long { max-width: 13rem; opacity: 1; }
/* Out of the way while the phone menu is open. */
body.nav-open .h-tour-fab { display: none; }
@keyframes h-tour-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes h-tour-ring { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.h-tour { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(11, 10, 26, 0.62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity 0.25s ease; }
.h-tour[hidden] { display: none; }
.h-tour.is-open { opacity: 1; }
.h-tour__panel { position: relative; width: min(1040px, 100%); border-radius: 18px; overflow: hidden; background: #0b0a1a;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); transform: translateY(16px) scale(0.96); transition: transform 0.45s var(--ease-out); }
.h-tour.is-open .h-tour__panel { transform: none; }
.h-tour__player { position: relative; aspect-ratio: 16 / 9; background: #f3f1fa; }
.h-tour__player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.h-tour__play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(60% 60% at 50% 50%, rgba(11, 10, 26, 0.06), rgba(11, 10, 26, 0.22)); transition: opacity 0.25s ease; }
.h-tour__play span { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #8467f4, #4b367c);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.3), 0 24px 50px -16px rgba(38, 20, 92, 0.8); transition: transform 0.25s var(--ease-out); }
.h-tour__play:hover span { transform: scale(1.06); }
.h-tour.is-playing .h-tour__play { opacity: 0; pointer-events: none; }
.h-tour__x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.92);
  color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.h-tour__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 18px; color: rgba(255, 255, 255, 0.82); font-size: 0.95rem; }
.h-tour__foot .btn-main { height: 42px; }
@media (max-width: 600px) {
  .h-tour-fab { right: 14px; bottom: 14px; }
  .h-tour { padding: 10px; }
  .h-tour__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .h-tour__play span { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .h-tour-fab { animation: none; }
  .h-tour-fab__play::after { animation: none; }
  .h-tour-fab__short, .h-tour-fab__long { transition: none; }
  .h-tour, .h-tour__panel { transition: none; }
}
