/* Layout: light clinical-tech canvas; split hero with a live automation console, bento services, one deep-navy band for the process. */
:root {
  color-scheme: light;
  /* Luha company colours */
  --midnight-navy: #0e2233;
  --deep-slate: #1a3447;
  --steel-blue: #2f4f63;
  --charcoal-blue: #3e5e73;
  --cool-grey-blue: #6f8a9a;
  --soft-blue-grey: #9fb3bf;
  --off-white: #f6f8f9;
  --cloud-grey: #e4eaee;
  --warm-grey: #d3dbe0;

  --bg: #ffffff;
  --bg-tint: var(--off-white);
  --fg: var(--midnight-navy);
  --muted: var(--charcoal-blue);
  --line: var(--cloud-grey);
  --line-strong: var(--warm-grey);
  --brand: var(--steel-blue);
  --brand-hover: var(--deep-slate);
  --brand-bright: var(--accent);
  --cyan: var(--accent-light);
  --sky: var(--cloud-grey);
  --navy: var(--midnight-navy);
  --navy-2: var(--deep-slate);
  --on-navy: var(--off-white);
  --on-navy-muted: var(--soft-blue-grey);
  /* Secondary colour: booking and video buttons, accents */
  --accent: #1c81a2;
  --accent-hover: #166a86;
  --accent-tint: #e2f1f6;
  --accent-light: #7cc6d9;
  /* Animation colours */
  --ok: #138a5b;
  --ok-tint: #e2f5ec;
  --warn: #b86e00;
  --warn-tint: #fdf0d9;
  --violet: #5b4bc4;
  --violet-tint: #ecebfb;
  --coral: #d4523f;
  --coral-tint: #fbe9e5;
  --glass: rgba(255, 255, 255, 0.78);
  --shadow-lg: 0 40px 80px -36px rgba(14, 34, 51, 0.38), 0 12px 24px -12px rgba(14, 34, 51, 0.12);
  --shadow-sm: 0 10px 24px -14px rgba(14, 34, 51, 0.28);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 12px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--bg);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.03em; line-height: 1.08; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%; max-width: 1200px; margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(72px, 10vw, 128px); }
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent-hover);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: 14px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 36rem; margin-top: 16px; }
.sec-head { display: grid; gap: 0; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 56px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 550 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn .i { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(28, 129, 162, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--bg); color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--soft-blue-grey); transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(14, 34, 51, 0.35); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 28px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 20px; }
.nav-links a {
  padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--fg); background: var(--bg-tint); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-login { font-size: 14.5px; font-weight: 500; color: var(--fg); text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.nav-login:hover { background: var(--bg-tint); }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--fg); align-items: center; justify-content: center; cursor: pointer;
}
.mobile-menu { border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu ul { display: grid; padding-block: 8px 16px; }
.mobile-menu a { display: block; padding: 14px 4px; font-size: 17px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
@media (max-width: 960px) {
  .nav-links, .nav-login { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 961px) { .mobile-menu { display: none !important; } }
@media (max-width: 420px) {
  .nav-in { gap: 10px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { padding: 0 14px; }
}

/* Hero */
.hero { position: relative; overflow: clip; padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 112px); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at 70% 40%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 70% at 70% 40%, #000 20%, transparent 72%);
  opacity: 0.8;
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform, translate; }
.orb-a { width: 520px; height: 520px; right: -120px; top: -160px; background: radial-gradient(circle, var(--brand-bright), transparent 65%); animation: drift 16s ease-in-out infinite alternate; }
.orb-b { width: 420px; height: 420px; right: 26%; bottom: -200px; background: radial-gradient(circle, var(--cyan), transparent 65%); opacity: 0.38; animation: drift 20s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate3d(-60px, 50px, 0) scale(1.08); } }

.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero-copy { min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--fg);
  box-shadow: var(--shadow-sm);
}
.pill b { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent-tint); color: var(--accent-hover); padding: 6px 8px; border-radius: 999px; }
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.7rem); letter-spacing: -0.045em; line-height: 1.02; margin-top: 22px; }
.grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-bright) 40%, var(--cyan) 70%, var(--brand) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 50% { background-position: 100% 0; } }
.hero .lead { font-size: clamp(1.06rem, 1.4vw, 1.2rem); margin-top: 22px; max-width: 33rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proof { display: flex; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.faces { display: flex; }
.faces img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; margin-left: -10px; box-shadow: 0 2px 6px rgba(14, 34, 51, 0.15); }
.faces img:first-child { margin-left: 0; }
.proof p { font-size: 14px; color: var(--muted); line-height: 1.4; }
.proof strong { color: var(--fg); font-weight: 600; }

/* Hero load sequence */
.js .hero [data-in] { animation: rise .9s var(--ease) both; animation-delay: calc(var(--n, 0) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Console */
.stage { position: relative; min-width: 0; perspective: 1400px; padding: 34px 0 72px 44px; }
.console {
  position: relative; background: var(--glass); border: 1px solid rgba(14, 34, 51, 0.08); border-radius: var(--r-xl);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform-style: preserve-3d; transition: transform .6s var(--ease);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.c-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--warm-grey); }
.c-title { font-size: 13.5px; font-weight: 600; }
.c-sub { font: 400 12px/1 var(--mono); color: var(--muted); margin-left: 2px; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font: 500 11.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ok); background: var(--ok-tint); padding: 6px 10px; border-radius: 999px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(19, 138, 91, .5); animation: ping 1.8s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(26, 52, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(26, 52, 71, 0); } }

.feed-wrap { height: 316px; overflow: hidden; padding: 10px; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.feed { display: grid; gap: 8px; }
.ev {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line);
}
.ev.enter { animation: evIn .7s var(--ease) both; }
@keyframes evIn { from { opacity: 0; transform: translateY(-14px) scale(.98); box-shadow: 0 0 0 3px rgba(28, 129, 162, .25); } 60% { box-shadow: 0 0 0 3px rgba(28, 129, 162, .18); } }
.ev-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; }
.ev-ic .i { width: 19px; height: 19px; }
.t-msg .ev-ic { background: var(--accent-tint); color: var(--accent); }
.t-ok .ev-ic { background: var(--ok-tint); color: var(--ok); }
.t-sync .ev-ic { background: var(--violet-tint); color: var(--violet); }
.t-warn .ev-ic { background: var(--warn-tint); color: var(--warn); }
.ev-txt { min-width: 0; }
.ev-t, .ev-m { display: block; }
.ev-t { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-m { font-size: 12.5px; color: var(--muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-time { font: 400 11.5px/1 var(--mono); color: var(--muted); }

.c-flow { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--muted); }
.c-flow span { padding: 7px 10px; border-radius: 8px; background: var(--bg-tint); border: 1px solid var(--line); white-space: nowrap; }
.c-flow span.hub { background: var(--fg); color: #fff; border-color: var(--fg); }
.wire { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; min-width: 20px; }
.wire::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, var(--brand-bright), transparent); animation: run 1.8s linear infinite; }
.wire.w2::after { animation-delay: .9s; }
@keyframes run { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

.float { position: absolute; z-index: 2; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.float-sync {
  top: 0; right: 28px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  font-size: 13px; font-weight: 600; animation: bob 6s ease-in-out infinite;
}
.sync-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.sync-ic .i { width: 16px; height: 16px; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sync-name { display: inline-block; min-width: 4.6em; color: var(--accent-hover); transition: opacity .3s, transform .3s; }
.sync-name.swap { opacity: 0; transform: translateY(4px); }
.float-sync .ok { color: var(--ok); width: 16px; height: 16px; }

.float-sms { left: 0; bottom: -40px; width: 252px; border-radius: 20px; padding: 14px; animation: bob 7s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.sms-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.sms-av { width: 30px; height: 30px; border-radius: 50%; background: var(--fg); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.sms-head p { font-size: 13px; font-weight: 600; line-height: 1.2; }
.sms-head small { display: block; font: 400 11px/1.3 var(--mono); color: var(--muted); }
.thread { display: grid; gap: 8px; font-size: 12.5px; line-height: 1.4; }
.bub { padding: 8px 11px; border-radius: 14px; max-width: 88%; }
.bub.out { background: var(--bg-tint); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub.in { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.slot { display: grid; justify-items: end; }
.slot > * { grid-area: 1 / 1; }
.typing { display: inline-flex; gap: 4px; padding: 10px 12px; background: var(--accent-tint); border-radius: 14px; border-bottom-right-radius: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .5; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 40% { opacity: 1; transform: translateY(-2px); } }
.chip-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-tint); padding: 6px 10px; border-radius: 999px; justify-self: start; }
.chip-ok .i { width: 14px; height: 14px; }

/* Sequencer (JS adds .seq; without it everything rests in its final state) */
.transient { visibility: hidden; }
.seq .transient { visibility: visible; }
.seq [data-s] { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.seq [data-s]:not(.show) { opacity: 0; transform: translateY(6px); }

@media (max-width: 1000px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 640px; }
}
@media (max-width: 560px) {
  .stage { padding: 34px 0 0; }
  .float-sync { right: 12px; top: 0; }
  .float-sms { position: relative; left: auto; bottom: auto; margin: 16px 0 0 auto; width: min(262px, 88%); }
  .feed-wrap { height: 300px; }
  .c-sub { display: none; }
}

/* Logo marquee */
.logos { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 80px); }
.logos-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.logos-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.logos-head p { color: var(--muted); font-size: 1.06rem; margin-top: 10px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.set { display: flex; align-items: center; gap: clamp(56px, 8vw, 112px); padding-right: clamp(56px, 8vw, 112px); }
.set img { height: 30px; width: auto; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Services bento */
.services { background: linear-gradient(var(--bg), var(--bg-tint) 30%, var(--bg-tint) 70%, var(--bg)); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card {
  position: relative; overflow: hidden; min-width: 0; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px 14px 28px;
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(28, 129, 162, 0.10), transparent 60%);
}
.card:hover { border-color: var(--warm-grey); box-shadow: var(--shadow-sm); }
.card:hover::before { opacity: 1; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.viz {
  position: relative; height: 190px; border-radius: 14px; background: var(--bg-tint); border: 1px solid var(--line);
  overflow: hidden; display: grid; place-items: center; padding: 16px;
}
.viz::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(14, 34, 51, 0.08) 1px, transparent 1px); background-size: 14px 14px; -webkit-mask-image: linear-gradient(transparent, #000 50%, transparent); mask-image: linear-gradient(transparent, #000 50%, transparent); }
.viz > * { position: relative; z-index: 1; }
.card-body { padding: 22px 12px 0; display: grid; gap: 8px; }
.card-k { display: flex; align-items: center; gap: 10px; }
.card-k .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--ct, var(--sky)); color: var(--c, var(--brand)); display: grid; place-items: center; }
.card-k .ic .i { width: 18px; height: 18px; }
.card h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 15px; }
.ticks { display: grid; gap: 6px; margin-top: 6px; }
.ticks li { display: flex; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.ticks .i { width: 16px; height: 16px; color: var(--c, var(--brand)); margin-top: 3px; }

/* viz: two-way SMS */
.v-chat { width: min(460px, 100%); display: grid; gap: 7px; font-size: 12.5px; line-height: 1.4; }
.v-chat .bub { background: var(--bg); }
.bento > .card:nth-child(1) { --c: var(--accent); --ct: var(--accent-tint); }
.bento > .card:nth-child(2) { --c: var(--violet); --ct: var(--violet-tint); }
.bento > .card:nth-child(3) { --c: var(--ok); --ct: var(--ok-tint); }
.bento > .card:nth-child(4) { --c: var(--coral); --ct: var(--coral-tint); }
.bento > .card:nth-child(5) { --c: var(--warn); --ct: var(--warn-tint); }
.bento > .card:nth-child(6) { --c: var(--accent); --ct: var(--accent-tint); }
.bento > .card:hover { border-color: var(--c); }
.v-chat .bub.in { background: var(--accent); }
.v-chat .row-end { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

/* viz: journey */
.journey { width: 100%; max-width: 330px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.journey .rail { position: absolute; left: 12.5%; right: 12.5%; top: 15px; height: 2px; background: var(--line); }
.journey .rail i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--warn), var(--violet), var(--ok)); transform-origin: left; transition: transform .8s var(--ease); }
.seq[data-step="0"] .rail i { transform: scaleX(0); }
.seq[data-step="1"] .rail i { transform: scaleX(.33); }
.seq[data-step="2"] .rail i { transform: scaleX(.66); }
.node { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 11.5px; font-weight: 500; color: var(--muted); }
.node b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1.5px solid var(--line); color: var(--brand); }
.node b .i { width: 15px; height: 15px; }
.node.n-teal b { color: var(--accent); border-color: var(--accent-light); background: var(--accent-tint); }
.node.n-warn b { color: var(--warn); border-color: #f0c77e; background: var(--warn-tint); }
.node.n-vio b { color: var(--violet); border-color: #bdb4ef; background: var(--violet-tint); }
.node.n-ok b { color: var(--ok); border-color: #9fd8bf; background: var(--ok-tint); }
.seq .node[data-s]:not(.show) { opacity: .35; transform: none; }

/* viz: invoice */
.inv { width: min(270px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); display: grid; gap: 10px; }
.inv-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inv-id { font: 500 11.5px/1 var(--mono); color: var(--muted); }
.inv-amt { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.inv-sub { font-size: 12px; color: var(--muted); margin-top: -6px; }
.stack { display: grid; justify-items: end; }
.stack > * { grid-area: 1 / 1; }
.st { font-size: 11.5px; font-weight: 600; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.st-warn { color: var(--warn); background: var(--warn-tint); }
.st-msg { color: var(--violet); background: var(--violet-tint); }
.st-ok { color: var(--ok); background: var(--ok-tint); }
.bar { height: 6px; border-radius: 6px; background: var(--bg-tint); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--warn), var(--violet), var(--ok)); transform-origin: left; transition: transform .9s var(--ease); }
.seq[data-step="0"] .bar i { transform: scaleX(.12); }
.seq[data-step="1"] .bar i { transform: scaleX(.5); }

/* viz: form */
.form-viz { width: min(240px, 100%); background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); display: grid; gap: 9px; }
.fv-row { display: grid; gap: 4px; }
.fv-row small { font: 500 10.5px/1 var(--mono); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.fv-line { height: 22px; border-radius: 6px; border: 1px solid var(--line); padding: 5px 7px; }
.fv-line i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #f3b4a6, #f6d29a); transform-origin: left; }
.seq .fv-line i[data-s]:not(.show) { opacity: 1; transform: scaleX(0); }
.fv-foot { display: flex; justify-content: flex-end; }

/* viz: integration graph */
.graph { width: 100%; height: 100%; max-height: 160px; }
.graph .edge { fill: none; stroke: var(--warm-grey); stroke-width: 1.5; }
.graph .flow { fill: none; stroke: var(--brand-bright); stroke-width: 2; stroke-dasharray: 6 60; animation: dash 2.2s linear infinite; }
.graph .flow { stroke-width: 2.5; }
.graph .flow.d2 { stroke: var(--violet); animation-delay: .5s; } .graph .flow.d3 { stroke: var(--warn); animation-delay: 1s; } .graph .flow.d4 { stroke: var(--ok); animation-delay: 1.5s; }
@keyframes dash { to { stroke-dashoffset: -66; } }
.graph .gn { fill: var(--bg); stroke: var(--line); }
.graph .hub { fill: var(--fg); }
.graph text { font: 500 11px var(--mono); fill: var(--muted); }
.graph .hub-t { fill: #fff; font: 600 12px var(--font); letter-spacing: .08em; }

/* secure strip */
.secure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 28px; align-items: center; padding: 30px 26px; }
.secure .card-body { padding: 0; }
.sec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sec-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--bg-tint); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; min-width: 0; }
.sec-item .i { color: var(--accent); }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 2; }
  .secure { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .span-2, .span-3 { grid-column: auto; }
  .sec-list { grid-template-columns: minmax(0, 1fr); }
}

/* Process band */
.dark { position: relative; background: var(--navy); color: var(--on-navy); overflow: clip; }
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 85% 0%, rgba(28, 129, 162, 0.28), transparent 70%),
    radial-gradient(500px 260px at 10% 100%, rgba(124, 198, 217, 0.14), transparent 70%);
}
.dark .wrap { position: relative; }
.dark .eyebrow { color: var(--accent-light); }
.dark .lead { color: var(--on-navy-muted); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
.steps-line { position: absolute; left: 28px; right: 28px; top: 27px; height: 1px; background: rgba(255, 255, 255, 0.14); }
.steps-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-bright), var(--cyan)); transform-origin: left; }
.steps.pending .steps-line i { transform: scaleX(0); }
.steps.in .steps-line i { transform: scaleX(1); transition: transform 1.6s var(--ease) .2s; }
.step { position: relative; min-width: 0; }
.step-n {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; position: relative;
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, 0.14); font: 500 15px/1 var(--mono); color: #fff;
  box-shadow: 0 0 0 6px var(--navy);
}
.step h3 { font-size: 1.3rem; margin-top: 26px; letter-spacing: -0.02em; }
.step p { color: var(--on-navy-muted); margin-top: 10px; max-width: 22rem; }
.step .meta { display: inline-block; margin-top: 16px; font: 500 12px/1 var(--mono); letter-spacing: .05em; color: var(--accent-light); background: rgba(28, 129, 162, 0.2); padding: 7px 10px; border-radius: 999px; }
.dark-cta { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.dark-cta p { color: var(--on-navy-muted); }
.dark .btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(28, 129, 162, .7); }
.dark .btn-primary:hover { background: var(--accent-hover); }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps-line { left: 27px; right: auto; top: 28px; bottom: 28px; width: 1px; height: auto; }
  .steps-line i { transform-origin: top; }
  .steps.pending .steps-line i { transform: scaleY(0); }
  .steps.in .steps-line i { transform: scaleY(1); }
  .step { padding-left: 80px; }
  .step-n { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 12px; }
}

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.q {
  display: flex; flex-direction: column; gap: 24px; justify-content: space-between; min-width: 0;
  padding: 26px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.q:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--warm-grey); }
.q blockquote { margin: 0; font-size: 1.06rem; line-height: 1.55; letter-spacing: -0.005em; }
.q blockquote mark { background: linear-gradient(transparent 58%, rgba(124, 198, 217, 0.35) 58%); color: inherit; padding: 0 2px; }
.q-foot { display: flex; align-items: center; gap: 12px; }
.q-foot img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.q-who { min-width: 0; line-height: 1.35; }
.q-who b { display: block; font-size: 14.5px; font-weight: 600; }
.q-who span { font-size: 13px; color: var(--muted); }
.watch {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px 0 8px;
  border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); font-size: 13px; font-weight: 550; text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.watch .pl { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.watch .pl svg { width: 10px; height: 10px; fill: currentColor; margin-left: 1px; }
.watch:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-hover); }
@media (max-width: 1000px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* Founders */
.founders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.founder { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; padding: 16px 26px 16px 16px; border-radius: var(--r-xl); background: var(--bg-tint); border: 1px solid var(--line); align-items: center; }
.founder img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.founder h3 { font-size: 1.35rem; }
.role { display: inline-block; margin-top: 8px; font: 500 12px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--accent-hover); }
.founder p { color: var(--muted); margin-top: 12px; font-size: 15px; }
@media (max-width: 920px) { .founders { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .founder { grid-template-columns: minmax(0, 1fr); padding: 16px 16px 24px; } .founder img { aspect-ratio: 1; } }

/* Contact */
.contact { background: var(--bg-tint); border-top: 1px solid var(--line); }
.contact-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.c-list { display: grid; gap: 12px; margin-top: 32px; }
.c-list li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; }
.c-list .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.c-list small { display: block; font: 500 11.5px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.c-list b { font-weight: 600; user-select: all; }
.contact .btn { margin-top: 32px; }

.form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow-sm); display: grid; gap: 18px; }
.form h3 { font-size: 1.3rem; }
.form-sub { color: var(--muted); font-size: 14.5px; margin-top: -10px; }
.f-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field legend { font-size: 13.5px; font-weight: 550; padding: 0; }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  font: 400 15.5px var(--font); color: var(--fg); transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 79, 99, 0.14); }
.field input:user-invalid { border-color: #c2410c; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s; user-select: none;
}
.chips input:checked + span { background: var(--accent-tint); border-color: var(--accent); color: var(--accent-hover); }
.chips input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.form .btn { width: 100%; margin-top: 4px; }
.form-note { font-size: 14px; padding: 12px 14px; border-radius: 12px; background: var(--sky); color: var(--fg); }
.form-note.err { background: #fdece4; }
@media (max-width: 900px) { .contact-in { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .f-grid { grid-template-columns: minmax(0, 1fr); } }

.flow { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.flow li { display: flex; align-items: center; gap: 14px; }
.flow-n { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font: 500 13px/1 var(--mono); }
.flow li + li .flow-n { background: var(--bg); color: var(--accent-hover); border: 1px solid var(--accent); }
.flow b { display: block; font-weight: 600; line-height: 1.3; }
.flow small { display: block; color: var(--muted); font-size: 14px; }
.form-top h3:focus { outline: none; }
.form-top .form-sub { margin-top: 6px; }
.form.flash { animation: flash 1.6s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 6px rgba(28, 129, 162, 0.25), var(--shadow-sm); } }
.ghl-mock { display: grid; gap: 18px; }
.ghl-mock .f-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.field textarea {
  width: 100%; min-height: 110px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  font: 400 15.5px/1.5 var(--font); color: var(--fg); resize: vertical; transition: border-color .2s, box-shadow .2s;
}
.field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47, 79, 99, 0.14); }
.field legend { margin-bottom: 7px; }
.req { color: var(--accent); }
.ghl-frame { display: block; width: 100%; min-height: 782px; border: 0; }

/* Video pop-up */
button.watch { font-family: inherit; color: var(--fg); cursor: pointer; }
.vmodal { width: min(960px, calc(100% - 32px)); max-width: none; max-height: calc(100% - 32px); padding: 0; border: 0; background: transparent; overflow: visible; }
.vmodal::backdrop { background: rgba(10, 28, 41, 0.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vmodal[open] .vm-box { animation: pop .4s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.vm-box { background: var(--bg); border-radius: var(--r-xl); padding: 14px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); }
.vm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 6px 14px; }
.vm-title { font-weight: 600; line-height: 1.3; }
.vm-sub { font-size: 14px; color: var(--muted); }
.vm-close { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--fg); display: grid; place-items: center; cursor: pointer; transition: background-color .2s; }
.vm-close:hover { background: var(--bg-tint); }
.vm-media { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: var(--navy); }
.vm-media img, .vm-media iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vm-play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(28, 129, 162, 0.55), 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  animation: halo 2s ease-out infinite; transition: transform .25s var(--ease), background-color .2s;
}
.vm-play:hover { transform: scale(1.06); background: var(--accent-hover); }
.vm-play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 4px; }
@keyframes halo { 70% { box-shadow: 0 0 0 18px rgba(28, 129, 162, 0), 0 16px 40px -10px rgba(0, 0, 0, 0.5); } 100% { box-shadow: 0 0 0 0 rgba(28, 129, 162, 0), 0 16px 40px -10px rgba(0, 0, 0, 0.5); } }
.vm-note { font-size: 13.5px; color: var(--muted); padding: 12px 6px 2px; }
html:has(.vmodal[open]) { overflow: hidden; }

.lead a { color: var(--accent-hover); font-weight: 550; text-underline-offset: 3px; }
.lead a:hover { color: var(--accent); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 12px 16px; border-radius: 10px; background: var(--fg); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* Footer */
.footer { padding-block: 56px 32px; border-top: 1px solid var(--line); }
.f-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.f-top p { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 22rem; }
.f-col .f-h { margin: 0 0 12px; font: 500 12px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.f-col ul { display: grid; gap: 4px; }
.f-col a { display: inline-block; padding: 4px 0; font-size: 14.5px; text-decoration: none; }
.f-col a:hover { color: var(--brand); }
.f-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
@media (max-width: 860px) { .f-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .f-brand { grid-column: span 2; } }

/* Scroll reveal (only below-the-fold elements are hidden, and only once JS is running) */
.pending { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.pending.in { opacity: 1; transform: none; }

/* Phones and tablets: touch targets, legible small text, no iOS input zoom */
.logo { min-height: 44px; }
.btn-sm { min-height: 44px; }
.nav-links a, .nav-login { padding-block: 12px; }
.watch { min-height: 44px; padding-right: 14px; }
.chips span { min-height: 44px; padding: 0 16px; }
.f-col a { padding: 11px 0; }
.pill b, .live, .ev-time, .sms-head small, .graph text, .c-list small { font-size: 12px; }
.field input, .field select, .field textarea { font-size: 16px; }
.mobile-menu { max-height: calc(100vh - 68px); max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }
.vmodal { width: min(960px, calc(100% - 32px), calc((100vh - 150px) * 16 / 9 + 28px)); }
@supports (height: 100dvh) { .vmodal { width: min(960px, calc(100% - 32px), calc((100dvh - 150px) * 16 / 9 + 28px)); } }
@media (max-width: 560px) {
  .vm-box { padding: 10px; border-radius: 18px; }
  .vm-play { width: 68px; height: 68px; margin: -34px 0 0 -34px; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .card { padding: 10px 10px 24px; }
  .viz { height: 176px; padding: 12px; }
  .q { padding: 22px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .nav-in { height: 56px; }
  html { scroll-padding-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .track { flex-wrap: wrap; justify-content: center; width: auto; }
  .set[aria-hidden] { display: none; }
  .set { flex-wrap: wrap; justify-content: center; row-gap: 24px; padding-right: 0; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
