/* SmartLex website
   Brand tokens follow the SmartLex app (#0171C3 blue, #0B2A45 navy). Headings pair the
   system sans with a serif italic accent (<em>) for a more editorial, less template look. */
:root {
  --primary: #0171c3;
  --primary-hover: #0161a8;
  --primary-ink: #fff;
  --primary-soft: #e8f2fb;
  --cyan: #17a2e4;
  --violet: #6d5bd0;
  --navy: #0b2a45;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --line: #dde3ea;
  --line-soft: #ebeff3;
  --line-strong: #c3cdd8;
  --ink: #18202a;
  --ink-2: #36414f;
  --muted: #5a6573;
  --heading: #0b2a45;
  --link: #0167b1;
  --link-hover: #014a82;
  --ring: rgba(1, 113, 195, 0.22);
  --glow: rgba(1, 113, 195, 0.1);
  --ok: #1a7f4b;
  --ok-soft: #e6f5ec;
  --warn: #9a5b00;
  --warn-soft: #fdf3e1;
  --danger: #c0352b;
  --new: #0e7a5a;
  --new-soft: #dff5ec;
  --shadow: 0 1px 2px rgba(11, 42, 69, 0.08);
  --shadow-md: 0 10px 28px rgba(11, 42, 69, 0.08), 0 2px 6px rgba(11, 42, 69, 0.05);
  --shadow-lg: 0 30px 70px rgba(11, 42, 69, 0.18), 0 6px 16px rgba(11, 42, 69, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-btn: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1220px;
  --m-side: #0b2a45;
  --m-side-ink: #c9d7e6;
  --m-bar: #0171c3;
  --m-track: #e6edf4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #2b8fdb;
    --primary-hover: #4aa3e6;
    --primary-soft: #102638;
    --bg: #0b1118;
    --bg-alt: #0f1720;
    --surface: #131c26;
    --surface-2: #18222e;
    --line: #26313e;
    --line-soft: #1e2833;
    --line-strong: #394555;
    --ink: #e3e8ee;
    --ink-2: #c0c8d3;
    --muted: #93a0b0;
    --heading: #f1f5f9;
    --link: #6bb7f2;
    --link-hover: #9ccff7;
    --ring: rgba(90, 174, 240, 0.3);
    --glow: rgba(107, 183, 242, 0.12);
    --ok: #5fd19a;
    --ok-soft: #12291f;
    --warn: #f3b766;
    --warn-soft: #2b2113;
    --new: #5fd1a8;
    --new-soft: #0f2a22;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.55);
    --m-side: #0a1622;
    --m-track: #222d3a;
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 1.2rem + 3.9vw, 4.1rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.75rem, 1.15rem + 2vw, 2.7rem);
  font-weight: 740;
}
h3 {
  font-size: 1.06rem;
  font-weight: 660;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
h1 em,
h2 em,
h3 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--primary);
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--link-hover);
}
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
img,
svg {
  display: block;
  max-width: 100%;
}
address {
  font-style: normal;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
}
.center {
  text-align: center;
}
.ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
  color: #fff;
}

/* scroll progress along the top */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--primary), var(--cyan), var(--violet));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  pointer-events: none;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 620;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.2s var(--ease);
}
.btn:hover .ic {
  transform: translateX(3px);
}
.btn-lg {
  height: 50px;
  padding: 0 24px;
  font-size: 16px;
}
.btn-primary {
  background: linear-gradient(180deg, #0a7fd6, var(--primary));
  color: var(--primary-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 20px rgba(1, 113, 195, 0.3);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 28px rgba(1, 113, 195, 0.38);
}
.btn-ghost {
  background: var(--surface);
  color: var(--heading);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-light {
  background: #fff;
  color: #0b2a45;
}
.btn-light:hover {
  background: #eef6fd;
  color: #0b2a45;
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
/* a sheen that sweeps across on hover */
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-shine:hover::after {
  transform: translateX(120%);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 620;
  text-decoration: none;
}
.text-link .ic {
  width: 17px;
  height: 17px;
  transition: transform 0.2s var(--ease);
}
.text-link:hover .ic {
  transform: translateX(4px);
}

/* "New" marker: a quiet dot and word, not a loud pill */
.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 6px;
  vertical-align: 2px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--new);
}
.badge-new::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--new-soft);
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---------- announcement + header ---------- */
.announce {
  background: var(--navy);
  color: #d8e5f2;
  font-size: 13.5px;
  padding: 7px 0;
}
.announce .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.announce a {
  color: #fff;
  font-weight: 620;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.announce a:hover {
  text-decoration: underline;
}
.announce .ic {
  width: 15px;
  height: 15px;
}
.announce .badge-new {
  color: #7fe0b9;
  margin: 0;
}
.announce .badge-new::before {
  box-shadow: 0 0 0 3px rgba(127, 224, 185, 0.18);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.8) blur(14px);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
}
.scrolled .site-header {
  border-color: var(--line-soft);
  box-shadow: 0 6px 24px rgba(11, 42, 69, 0.06);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-name {
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--heading);
}
.brand-name b {
  font-weight: 800;
  color: var(--primary);
}
.brand-light .brand-name {
  color: #fff;
}
.brand-light .brand-name b {
  color: #6bb7f2;
}
.logo-mark {
  border-radius: 8px;
  transition: transform 0.4s var(--ease);
}
.brand:hover .logo-mark {
  transform: rotate(-8deg) scale(1.05);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 38px;
  padding: 0 11px;
  border-radius: 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14.5px;
  font-weight: 560;
  color: var(--ink-2);
  text-decoration: none;
  cursor: pointer;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.nav-link:hover,
.nav-link[aria-expanded="true"] {
  color: var(--heading);
}
.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}
.nav-link.is-active {
  color: var(--primary);
}
.ic-chev {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.nav-menu-btn[aria-expanded="true"] .ic-chev {
  transform: rotate(180deg);
}
.mega {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 640px;
  transform: translate(-50%, 8px) scale(0.98);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.22s var(--ease), visibility 0.18s;
}
.has-menu.open .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}
.mega-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.mega-link {
  display: flex;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.15s;
}
.mega-link:hover,
.mega-link.is-active {
  background: var(--bg-alt);
  color: var(--ink);
}
.mega-link:hover .mega-ic {
  transform: scale(1.08) rotate(-4deg);
}
.mega-ic,
.feature-ic,
.tool-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.mega-name {
  display: block;
  font-weight: 650;
  color: var(--heading);
  font-size: 14.5px;
}
.mega-blurb {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.mega-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 6px;
  padding: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}
.mega-foot .ic {
  width: 16px;
  height: 16px;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--heading);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle .ic-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .ic-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .ic-close {
  display: block;
}
@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    position: fixed;
    inset: 66px 0 0 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px 16px 32px;
    background: var(--bg);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    border-top: 1px solid var(--line-soft);
  }
  .site-nav.open {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  body.nav-open {
    overflow: hidden;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-link {
    width: 100%;
    height: 50px;
    font-size: 17px;
    justify-content: space-between;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .nav-link::after {
    display: none;
  }
  .mega {
    position: static;
    width: auto;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 4px 0 8px;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .has-menu.open .mega {
    display: block;
    transform: none;
  }
  .mega-grid {
    grid-template-columns: 1fr;
  }
  .nav-cta {
    height: 50px;
  }
}

/* ---------- breadcrumbs ---------- */
.crumbs-bar {
  position: relative;
  z-index: 2;
  background: var(--bg-alt);
}
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line-strong);
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--link);
  text-decoration: underline;
}

/* ---------- aurora: slow drifting colour behind heroes ---------- */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.aurora span {
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 680px;
  max-height: 680px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.38;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(1) {
  background: #3aa2f0;
  top: -30%;
  right: -8%;
}
.aurora span:nth-child(2) {
  background: #8e7dff;
  top: 20%;
  right: 22%;
  width: 30vw;
  height: 30vw;
  opacity: 0.22;
  animation-duration: 28s;
  animation-delay: -6s;
}
.aurora span:nth-child(3) {
  background: #5fd1c4;
  bottom: -40%;
  left: -12%;
  opacity: 0.2;
  animation-duration: 32s;
  animation-delay: -12s;
}
.aurora-dark span:nth-child(1) {
  background: #1d7fd0;
  opacity: 0.45;
}
.aurora-dark span:nth-child(2) {
  background: #6d5bd0;
  opacity: 0.35;
}
@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-6%, 8%) scale(1.12);
  }
  100% {
    transform: translate(8%, -4%) scale(0.95);
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: var(--bg-alt);
  padding: 40px 0 64px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%);
  opacity: 0.7;
}
.hero .aurora {
  z-index: -2;
}
.hero-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero:has(.hero-visual) .hero-in {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}
.hero-copy {
  max-width: 780px;
}
.hero .lead {
  font-size: clamp(1.03rem, 0.96rem + 0.35vw, 1.2rem);
  color: var(--ink-2);
  max-width: 600px;
}
.hero-home {
  padding: 56px 0 72px;
}
.hero-home h1 {
  font-size: clamp(2.4rem, 1.2rem + 3.7vw, 4.1rem);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-points .ic {
  width: 17px;
  height: 17px;
  color: var(--ok);
}
.hero-visual {
  position: relative;
  min-width: 0;
}
.page-inner .hero,
.page-product .hero {
  padding-top: 22px;
}
@media (max-width: 1000px) {
  .hero:has(.hero-visual) .hero-in {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero,
  .hero-home {
    padding: 32px 0 48px;
  }
}

/* rotating practice-area word */
.rotator {
  position: relative;
  display: inline-block;
  color: var(--primary);
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.rotator span {
  display: inline-block;
}
.rotator::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0.04em;
  height: 0.08em;
  border-radius: 1em;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  opacity: 0.5;
}
.rotator .out {
  animation: rotOut 0.35s var(--ease) forwards;
}
.rotator .in {
  animation: rotIn 0.45s var(--ease) forwards;
}
@keyframes rotOut {
  to {
    opacity: 0;
    transform: translateY(-0.45em);
    filter: blur(4px);
  }
}
@keyframes rotIn {
  from {
    opacity: 0;
    transform: translateY(0.45em);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* floating notification cards around the hero screen */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  line-height: 1.3;
  max-width: 250px;
  animation: cardIn 0.8s var(--ease) both, bob 6s ease-in-out infinite;
}
.float-card b {
  display: block;
  color: var(--heading);
  font-weight: 650;
}
.float-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.fc-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
}
.fc-ic .ic {
  width: 18px;
  height: 18px;
}
.fc-green {
  background: var(--ok-soft);
  color: var(--ok);
}
.fc-blue {
  background: var(--primary-soft);
  color: var(--primary);
}
.fc-violet {
  background: color-mix(in srgb, var(--violet) 14%, transparent);
  color: var(--violet);
}
.fc-1 {
  top: -18px;
  left: -26px;
  animation-delay: 0.9s, 1.7s;
}
.fc-2 {
  bottom: 26px;
  left: -44px;
  animation-delay: 1.2s, 0s;
}
.fc-3 {
  top: 34%;
  right: -22px;
  animation-delay: 1.5s, 0.8s;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
}
@keyframes bob {
  50% {
    translate: 0 -8px;
  }
}
@media (max-width: 1000px) {
  .fc-1 {
    left: 8px;
  }
  .fc-2 {
    left: 8px;
  }
  .fc-3 {
    right: 8px;
  }
}
@media (max-width: 640px) {
  .float-card {
    display: none;
  }
}

/* ---------- ticker ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--surface);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  list-style: none;
  margin: 0;
  padding: 16px 0;
  animation: scrollX 48s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee .ic {
  color: var(--primary);
}
@keyframes scrollX {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- sections ---------- */
.section {
  position: relative;
  padding: 64px 0;
}
.section-tight {
  padding: 36px 0;
}
.section.alt {
  background: var(--bg-alt);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin: 0 0 30px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  max-width: 22ch;
}
.section-intro {
  max-width: 46ch;
  font-size: 16.5px;
  color: var(--muted);
  margin: 0;
}
.section-head.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head.center h2 {
  max-width: none;
}
.stack-xl {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.stack-xl > .section-head {
  margin-bottom: -24px;
}
@media (max-width: 720px) {
  .section {
    padding: 44px 0;
  }
  .section-head {
    margin-bottom: 22px;
  }
  .stack-xl {
    gap: 48px;
  }
}
.more-q {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- stats ---------- */
.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.stats li {
  padding: 6px 24px;
  border-left: 1px solid var(--line);
}
.stats li:first-child {
  border-left: 0;
  padding-left: 0;
}
.stats b {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.4rem);
  line-height: 1;
  background: linear-gradient(120deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stats span {
  display: block;
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 22ch;
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 22px 0;
  }
  .stats li:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

/* ---------- cursor glow on cards ---------- */
[data-glow] {
  position: relative;
  isolation: isolate;
}
[data-glow]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
[data-glow]:hover::before {
  opacity: 1;
}

/* ---------- feature list (compact) ---------- */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px 22px;
}
.feature-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.feature-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  margin: 0 -16px;
  border-radius: 14px;
  transition: background-color 0.2s;
}
.feature:hover {
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.feature:hover .feature-ic {
  transform: scale(1.08) rotate(-5deg);
}
.feature h3 {
  margin: 6px 0 4px;
}
.feature p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}
@media (max-width: 960px) {
  .feature-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .feature-grid.cols-3,
  .feature-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1em;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-2);
}
.ticks .ic {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--primary);
}

/* ---------- split rows ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 52px;
  align-items: center;
}
.split.reverse .split-copy {
  order: 2;
}
.split-title {
  font-size: clamp(1.55rem, 1.1rem + 1.4vw, 2.25rem);
  font-weight: 740;
  letter-spacing: -0.025em;
}
.split-copy > p {
  font-size: 16.5px;
  color: var(--ink-2);
}
.split-visual {
  min-width: 0;
}
@media (max-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .split.reverse .split-copy {
    order: 0;
  }
}

/* ---------- steps: numbered timeline ---------- */
.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 26px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform-origin: 0 50%;
  transition: transform 1.4s var(--ease) 0.2s;
}
.js .steps[data-line]:not(.is-in)::before {
  transform: scaleX(0);
}
.step {
  position: relative;
}
.step-n {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.section.alt .step-n {
  background: var(--bg-alt);
}
.step h3 {
  margin-bottom: 4px;
}
.step p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .steps::before {
    display: none;
  }
}
.contact-aside .steps {
  grid-template-columns: 1fr;
  gap: 14px;
}
.contact-aside .steps::before {
  display: none;
}
.contact-aside .step {
  padding-left: 52px;
}
.contact-aside .step-n {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
}

/* ---------- related tools (compact rows) ---------- */
.tool-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.tool-card {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.tool-txt {
  flex: 1;
  min-width: 0;
}
.tool-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
}
.tool-blurb {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.tool-go {
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s;
}
.tool-card:hover .tool-go {
  color: var(--primary);
  transform: translateX(4px);
}

/* ---------- bento grid of Smart Tools ---------- */
.bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, auto);
  gap: 14px;
}
.bento-tile {
  grid-column: span 2;
}
.b-wide {
  grid-column: span 4;
}
.b-tall {
  grid-row: span 2;
}
.b-half {
  grid-column: span 3;
}
.b-third {
  grid-column: span 2;
}
.bento-tile > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 20px 0;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.bento-tile > a:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.bt-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bt-name {
  flex: 1;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.015em;
  color: var(--heading);
}
.bt-go {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.bt-go .ic {
  width: 16px;
  height: 16px;
}
.bento-tile > a:hover .bt-go {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(-45deg);
}
.bt-line {
  display: block;
  margin: 10px 0 16px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}
.bt-img {
  position: relative;
  flex: 1;
  min-height: 150px;
  margin-right: -20px;
  overflow: hidden;
}
.bt-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 560px;
  height: auto;
  border-radius: 12px 0 0 0;
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
  box-shadow: var(--shadow-md);
  transition: transform 0.6s var(--ease);
}
.b-wide .bt-img img {
  min-width: 0;
}
.bento-tile > a:hover .bt-img img {
  transform: translate(-10px, -8px) scale(1.015);
}
.b-plain > a {
  padding-bottom: 20px;
  background:
    radial-gradient(120% 90% at 100% 100%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 60%),
    var(--surface);
}
.b-plain .bt-line {
  margin-bottom: 0;
}
@media (max-width: 960px) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento-tile,
  .b-wide,
  .b-half,
  .b-third {
    grid-column: span 1;
  }
  .b-wide {
    grid-column: span 2;
  }
  .b-tall {
    grid-row: span 1;
  }
}
@media (max-width: 600px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .b-wide {
    grid-column: span 1;
  }
}

/* ---------- sticky scroll story ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: start;
}
.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.story-step {
  position: relative;
  padding: 22px 0 22px 26px;
  min-height: 25vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.38;
  transition: opacity 0.4s;
}
.story-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: var(--line);
}
.story-step::after {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--primary), var(--cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease);
}
.story-step.is-active {
  opacity: 1;
}
.story-step.is-active::after {
  transform: scaleY(1);
}
.story-time {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}
.story-step h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.story-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  max-width: 42ch;
}
.story-inline {
  display: none;
}
.story-stage {
  position: sticky;
  top: 96px;
}
.story-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.story-imgs {
  position: relative;
  aspect-ratio: 1600 / 1000;
}
.story-imgs img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.story-imgs img.is-active {
  opacity: 1;
  transform: none;
}
@media (max-width: 960px) {
  .story {
    grid-template-columns: 1fr;
  }
  .story-stage {
    display: none;
  }
  .story-step {
    min-height: 0;
    opacity: 1;
    padding: 0 0 0 20px;
    margin-bottom: 36px;
  }
  .story-step::after {
    transform: scaleY(1);
  }
  .story-inline {
    display: block;
    margin-top: 16px;
  }
}

/* ---------- what's new (compact list) ---------- */
.new-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 18px;
}
.new-card {
  display: flex;
  gap: 14px;
  height: 100%;
  padding: 14px 16px;
  margin: 0 -16px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.2s;
}
.new-card:hover {
  background: var(--bg-alt);
  color: var(--ink);
}
.new-card:hover .feature-ic {
  transform: scale(1.08) rotate(-5deg);
}
.new-card b {
  display: block;
  color: var(--heading);
  margin: 2px 0 2px;
  font-size: 15.5px;
}
.new-card span span {
  display: block;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 960px) {
  .new-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .new-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- dark band (mobile app) ---------- */
.band-dark {
  background: #071d31;
  color: #c9d7e6;
  overflow: hidden;
  isolation: isolate;
  --heading: #fff;
  --ink-2: #c9d7e6;
  --muted: #9fb3c8;
}
.band-dark .aurora {
  z-index: -1;
}
.band-dark .eyebrow {
  color: #6bb7f2;
}
.band-dark h2 em {
  color: #8fc9f5;
}
.band-dark .ticks .ic {
  color: #6bb7f2;
}
.phones-float .phone {
  animation: bob 7s ease-in-out infinite;
}
.phones-float .phone + .phone {
  animation-delay: -3.5s;
}

/* ---------- FAQ + call to action ---------- */
.faq-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.faq {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary h3 {
  margin: 0;
  font-size: 16.5px;
  transition: color 0.2s;
}
.faq-item summary:hover h3 {
  color: var(--primary);
}
.faq-plus {
  position: relative;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform 0.3s var(--ease), background-color 0.2s, border-color 0.2s;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--ink-2);
  transform: translate(-50%, -50%);
}
.faq-plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  background: var(--primary);
  border-color: var(--primary);
}
.faq-item[open] .faq-plus::before,
.faq-item[open] .faq-plus::after {
  background: #fff;
}
.faq-a {
  padding: 0 40px 6px 0;
  color: var(--ink-2);
  font-size: 15.5px;
  animation: faqIn 0.35s var(--ease);
}
@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.cta-card {
  position: sticky;
  top: 96px;
  padding: 28px;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--primary), var(--cyan), var(--violet)) border-box;
  box-shadow: var(--shadow-md);
}
.cta-card h3 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.cta-card p {
  color: var(--muted);
  font-size: 15.5px;
}
.cta-card .btn {
  width: 100%;
  margin: 6px 0 14px;
}
.faq-wrap .faq-cat {
  max-width: 820px;
  margin: 40px auto 6px;
  font-size: 1.35rem;
}
.faq-wrap .faq-cat:first-child {
  margin-top: 0;
}
.faq-wrap .faq {
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .faq-cta {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cta-card {
    position: static;
  }
}

/* ---------- call-to-action band ---------- */
.cta-band {
  position: relative;
  background: #071d31;
  color: #c9d7e6;
  padding: 52px 0;
  overflow: hidden;
  isolation: isolate;
}
.cta-band .aurora {
  z-index: -1;
}
.cta-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-in > div:first-child {
  max-width: 620px;
}
.cta-band h2 {
  color: #fff;
  margin-bottom: 8px;
}
.cta-band p {
  margin: 0;
  font-size: 17px;
}
.cta-band .cta-row {
  margin-top: 0;
}

/* ---------- about ---------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.two-col > div > p {
  font-size: 17px;
  color: var(--ink-2);
}
.mv {
  display: grid;
  gap: 14px;
}
.mv-card,
.office,
.person,
.card-pad {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.mv-card .feature-ic {
  margin-bottom: 12px;
}
.mv-card p {
  margin: 0;
  color: var(--muted);
}
.team {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.person {
  display: flex;
  align-items: center;
  gap: 16px;
}
.person > div {
  min-width: 0;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #0171c3, #17a2e4);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.person h3 {
  margin-bottom: 2px;
}
.person p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.offices {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.office h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
}
.office h3 .ic {
  color: var(--primary);
}
.office p {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 15px;
}
.office a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.office a .ic {
  width: 17px;
  height: 17px;
}
.office a.btn {
  margin-top: 8px;
}
@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- features page ---------- */
.fgroups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.fgroup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.fgroup:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--line));
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.fgroup .ticks {
  flex: 1;
}
.fgroup .ticks li span {
  display: inline;
}
.tour-shot {
  max-width: 1080px;
  margin: 0 auto;
}

/* ---------- forms ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-aside .offices {
  grid-template-columns: 1fr;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}
.field.full {
  grid-column: 1 / -1;
}
.field label,
.field legend {
  font-size: 14px;
  font-weight: 620;
  color: var(--heading);
  padding: 0;
}
.field legend {
  margin-bottom: 8px;
}
.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}
.field.invalid input,
.field.invalid textarea {
  border-color: var(--danger);
}
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px 16px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.consent {
  margin: 18px 0 0;
  font-size: 14px;
}
.consent.invalid {
  color: var(--danger);
}
.form-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.form-status {
  margin: 0;
  font-size: 15px;
  font-weight: 620;
}
.form-status.ok {
  color: var(--ok);
}
.form-status.err {
  color: var(--danger);
}
@media (max-width: 640px) {
  .fields {
    grid-template-columns: 1fr;
  }
  .card-pad {
    padding: 18px;
  }
}

/* ---------- footer ---------- */
.site-footer {
  background: #061727;
  color: #a9bccf;
  padding: 52px 0 22px;
  font-size: 14.5px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 36px;
}
.foot-brand p {
  margin: 14px 0 18px;
  max-width: 340px;
}
.foot-h {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.site-footer a {
  color: #c9d7e6;
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer .btn-light {
  color: #0b2a45;
}
.foot-col address p {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
}
.foot-col address .ic {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: #6bb7f2;
}
.foot-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}
.foot-base p {
  margin: 0;
  max-width: 860px;
}
@media (max-width: 960px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- screenshots of the real app ---------- */
.shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.shot-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}
.shot-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f26b5b;
}
.shot-bar i:nth-child(2) {
  background: #f5bf4f;
}
.shot-bar i:nth-child(3) {
  background: #5ac05a;
}
.shot-link {
  display: block;
  cursor: zoom-in;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}
.split-visual .shot:hover img,
.gallery .shot:hover img {
  transform: scale(1.02);
}
/* 3D tilt that follows the mouse (set by site.js), with a moving glare */
.shot-tilt {
  transform: perspective(1500px) rotateX(var(--rx, 4deg)) rotateY(var(--ry, -9deg)) rotateZ(0.3deg);
  transform-origin: 40% 50%;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
  box-shadow: -30px 40px 80px rgba(11, 42, 69, 0.22), 0 6px 16px rgba(11, 42, 69, 0.08);
  will-change: transform;
}
.shot-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(500px circle at var(--gx, 30%) var(--gy, 10%), rgba(255, 255, 255, 0.28), transparent 45%);
  mix-blend-mode: soft-light;
}
@media (max-width: 1000px) {
  .shot-tilt {
    transform: none;
  }
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px 18px;
}
.gallery .shot {
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.gallery .shot:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery .shot-bar {
  height: 18px;
}
.gallery .shot-bar i {
  width: 7px;
  height: 7px;
}
.gallery p {
  margin: 9px 2px 0;
  font-size: 14.5px;
  font-weight: 620;
  color: var(--heading);
}

.zoom {
  width: min(1400px, 96vw);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  overflow: visible;
}
.zoom[open] {
  animation: zoomIn 0.35s var(--ease);
}
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}
.zoom::backdrop {
  background: rgba(4, 16, 28, 0.82);
  backdrop-filter: blur(4px);
}
.zoom img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.zoom-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #0b2a45;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

/* ---------- reveal on scroll (only when JS runs) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js [data-reveal="right"] {
  transform: translateX(36px);
}
.js [data-reveal="left"] {
  transform: translateX(-36px);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-stagger].is-in > * {
  opacity: 1;
  transform: none;
}
/* headline words rise in one after another */
.js [data-split] .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em) rotate(2deg);
  filter: blur(6px);
  animation: wordIn 0.8s var(--ease) forwards;
  animation-delay: calc(var(--i) * 60ms + 0.1s);
}
@keyframes wordIn {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal],
  .js [data-stagger] > *,
  .js [data-split] .w {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
  .shot-tilt {
    transform: none;
  }
}

/* =====================================================================
   Product mocks (illustrative UI drawn in CSS)
   ===================================================================== */
.mock {
  --mf: 12px;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: var(--mf);
  line-height: 1.35;
  color: var(--ink);
  user-select: none;
}
.mock .ic {
  width: 14px;
  height: 14px;
}
.mock-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft);
}
.mock-chrome i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.mock-chrome i:nth-child(1) {
  background: #f26b5b;
}
.mock-chrome i:nth-child(2) {
  background: #f5bf4f;
}
.mock-chrome i:nth-child(3) {
  background: #5ac05a;
}
.mock-url {
  margin: 0 auto;
  padding: 2px 40px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 11px;
}
.m-app {
  display: flex;
  min-height: 330px;
}
.m-side {
  width: 132px;
  flex-shrink: 0;
  background: var(--m-side);
  color: var(--m-side-ink);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  padding: 2px 6px 10px;
  font-size: 13px;
}
.m-brand .logo-mark {
  border-radius: 4px;
}
.m-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  white-space: nowrap;
}
.m-nav.on {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.m-main {
  flex: 1;
  min-width: 0;
  padding: 10px 14px 14px;
  background: var(--bg-alt);
}
.m-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.m-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  min-width: 0;
}
.m-search span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-search kbd {
  font: inherit;
  font-size: 10px;
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.m-topic {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.m-av,
.m-ini,
.m-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0171c3, #17a2e4);
  color: #fff;
  font-weight: 700;
  font-style: normal;
}
.m-av {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.m-greet small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.m-greet b {
  display: block;
  font-size: 17px;
  color: var(--heading);
  margin-bottom: 10px;
}
.m-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
.m-kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.m-kpi small,
.m-kpi span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-kpi b {
  display: block;
  font-size: 22px;
  color: var(--heading);
  line-height: 1.2;
}
.m-kpi b.warn {
  color: var(--danger);
}
.m-row2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 8px;
}
.m-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.m-card-h {
  padding: 8px 10px;
  font-weight: 650;
  color: var(--heading);
  border-bottom: 1px solid var(--line-soft);
  font-size: 11.5px;
}
.m-bars {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.m-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
}
.m-bar span {
  width: 74px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-bar i {
  flex: 1;
  height: 8px;
  border-radius: 3px;
  background: var(--m-track);
  overflow: hidden;
}
.m-bar i b {
  display: block;
  height: 100%;
  background: var(--m-bar);
  border-radius: 3px;
}
.m-bar em {
  width: 16px;
  text-align: right;
  font-style: normal;
  font-weight: 700;
}
.m-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.m-task:last-child {
  border-bottom: 0;
}
.m-task > i {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  flex-shrink: 0;
}
.m-task div {
  flex: 1;
  min-width: 0;
}
.m-task b {
  display: block;
  font-weight: 550;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-task small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.m-task em {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.m-task em.today {
  color: var(--danger);
  font-weight: 700;
}

/* generic mock pieces */
.m-pad {
  padding: 14px;
  background: var(--bg-alt);
  min-height: 300px;
}
.m-headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.m-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--heading);
}
.m-title .ic {
  color: var(--primary);
}
.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
}
.m-btn .ic {
  width: 13px;
  height: 13px;
}
.m-check {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.m-field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--ring);
  font-size: 12px;
}
.m-result {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid;
}
.m-result .ic {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.m-result b {
  display: block;
  font-size: 12px;
}
.m-result small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.m-result.ok {
  background: var(--ok-soft);
  border-color: color-mix(in srgb, var(--ok) 30%, transparent);
  color: var(--ok);
}
.m-result.warn {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 30%, transparent);
  color: var(--warn);
}
.m-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.m-tr {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.7fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11px;
}
.m-tr:last-child {
  border-bottom: 0;
}
.m-tr span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-tr span .ic {
  color: var(--primary);
}
.m-th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.m-tr.sel {
  background: var(--primary-soft);
}
.m-ini {
  width: 20px;
  height: 20px;
  font-size: 8.5px;
  flex-shrink: 0;
}
.m-v,
.m-st {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-2);
}
.m-v.ok,
.m-st.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.m-st.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.m-tree {
  width: 170px;
  flex-shrink: 0;
  padding: 10px 8px;
  border-right: 1px solid var(--line-soft);
  background: var(--surface);
}
.m-tree small {
  display: block;
  padding: 0 6px 6px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.05em;
}
.m-tn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-tn .ic {
  color: #d39b2a;
}
.m-tn.l2 {
  padding-left: 16px;
}
.m-tn.l3 {
  padding-left: 28px;
}
.m-tn.on {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 650;
}
.m-crumb {
  color: var(--muted);
  font-size: 10.5px;
  margin-bottom: 8px;
}
.m-crumb b {
  color: var(--heading);
}
.m-seg {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 7px;
  background: var(--line-soft);
  margin-bottom: 10px;
}
.m-seg span {
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 10.5px;
  color: var(--ink-2);
}
.m-seg span.on {
  background: var(--surface);
  color: var(--heading);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.m-headrow .m-seg {
  margin: 0;
}
.m-tools {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.m-tools span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 52px;
  padding: 5px 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--primary);
}
.m-tools .ic {
  width: 16px;
  height: 16px;
}
.m-tools small {
  font-size: 9px;
  color: var(--ink-2);
}
.m-cols3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.m-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  min-height: 210px;
}
.m-col small {
  display: block;
  padding: 0 4px 6px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.05em;
}
.m-li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-li em {
  margin-left: auto;
  font-style: normal;
  color: var(--muted);
  font-size: 10px;
}
.m-li.on {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 650;
}
.m-li.sub {
  padding-left: 18px;
  color: var(--muted);
}
.m-li .ic {
  color: var(--primary);
}
/* assist + chat */
.m-assist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.m-files {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.m-files i {
  font-style: normal;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.m-msg {
  max-width: 86%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 11.5px;
}
.m-msg.me {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.m-msg.ai {
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.m-msg.ai b {
  display: block;
  color: var(--heading);
  margin-bottom: 2px;
}
.m-msg.ai small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}
.m-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 4px 0 12px;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}
.m-input span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
}
.m-chat {
  display: flex;
  min-height: 310px;
  background: var(--bg-alt);
}
.m-clist {
  width: 180px;
  flex-shrink: 0;
  padding: 10px 8px;
  border-right: 1px solid var(--line-soft);
  background: var(--surface);
}
.m-clist > small {
  display: block;
  padding: 0 6px 6px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9.5px;
}
.m-ci {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 6px;
  border-radius: 6px;
}
.m-ci.on {
  background: var(--primary-soft);
}
.m-ci .m-ini {
  width: 26px;
  height: 26px;
  font-size: 9.5px;
}
.m-ci div {
  flex: 1;
  min-width: 0;
}
.m-ci b {
  display: block;
  font-size: 11px;
}
.m-ci small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-ci em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 1px 6px;
}
.m-thread {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
}
.m-th-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}
.m-th-h b {
  color: var(--heading);
  font-size: 13px;
}
.m-th-h small {
  color: var(--muted);
}
.m-bub {
  max-width: 82%;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11.5px;
}
.m-bub small {
  display: block;
  font-size: 9.5px;
  color: var(--muted);
  margin-bottom: 2px;
}
.m-bub.me {
  align-self: flex-end;
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.m-bub.me small {
  color: rgba(255, 255, 255, 0.75);
}
/* team + billing */
.m-leave {
  margin-top: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.m-leave small {
  color: var(--muted);
  font-size: 10px;
}
.m-leave b {
  display: block;
  font-size: 16px;
  color: var(--heading);
}
.m-leave b em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.m-leave > i {
  display: block;
  height: 8px;
  margin-top: 6px;
  border-radius: 4px;
  background: var(--m-track);
  overflow: hidden;
}
.m-leave > i b {
  display: block;
  height: 100%;
  background: var(--ok);
}
.m-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 10px;
  border-radius: 999px;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.m-timer i {
  font-style: normal;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10.5px;
}
.m-inv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.m-inv small {
  color: var(--muted);
  font-size: 10px;
}
.m-inv b {
  display: block;
  font-size: 18px;
  color: var(--heading);
}
.m-inv b em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
}
/* meet */
.mock-dark {
  --mf: 12px;
}
.m-meet {
  background: #0c1520;
  padding: 10px;
}
.m-vgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.m-vt {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: linear-gradient(135deg, #1b2a3b, #22364c);
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-vt.talk {
  box-shadow: inset 0 0 0 2px #3fb27f;
}
.m-vt small {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 10px;
  color: #e3e8ee;
  background: rgba(0, 0, 0, 0.4);
  padding: 1px 6px;
  border-radius: 4px;
}
.m-face {
  width: 54px;
  height: 54px;
  font-size: 17px;
}
.m-vt.share {
  background: #eef2f6;
}
.m-doc {
  width: 60%;
  height: 74%;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.m-doc i {
  height: 6px;
  border-radius: 3px;
  background: #d4dde7;
}
.m-doc i:nth-child(1) {
  width: 60%;
  background: #0171c3;
}
.m-doc i:nth-child(3) {
  width: 80%;
}
.m-vbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 0 2px;
}
.m-vbar span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #22364c;
  color: #dbe6f1;
}
.m-vbar span.end {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
  background: #d94a3d;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
}
/* workflow */
.wf {
  display: flex;
  min-height: 320px;
}
.wf-palette {
  width: 128px;
  flex-shrink: 0;
  padding: 10px 8px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
}
.wf-palette small {
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9.5px;
  padding: 0 4px 2px;
}
.wf-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 10.5px;
  background: var(--surface-2);
  cursor: grab;
}
.wf-chip .ic {
  color: var(--primary);
}
.wf-canvas {
  flex: 1;
  min-width: 0;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
}
.wf-svg {
  width: 100%;
  height: auto;
}
.wf-dot {
  fill: var(--line-strong);
}
.wf-link {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
}
.wf-arrowhead {
  fill: var(--primary);
}
.wf-node rect:first-child {
  fill: var(--surface);
  stroke: var(--line-strong);
  stroke-width: 1;
  filter: drop-shadow(0 2px 3px rgba(11, 42, 69, 0.12));
}
.wf-tag {
  fill: var(--primary);
}
.wf-node.start .wf-tag {
  fill: #1a9f62;
}
.wf-node.end .wf-tag {
  fill: #6a7889;
}
.wf-node.dec .wf-tag {
  fill: #d48a12;
}
.wf-node.wait .wf-tag {
  fill: #7a5cd6;
}
.wf-t {
  font: 700 12px var(--sans);
  fill: var(--heading);
}
.wf-s {
  font: 400 10.5px var(--sans);
  fill: var(--muted);
}
.wf-port {
  fill: var(--surface);
  stroke: var(--primary);
  stroke-width: 1.5;
}
/* phones */
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 24px;
}
.phone {
  width: 250px;
  flex-shrink: 0;
  padding: 10px;
  border-radius: 38px;
  background: #0b1622;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a3a4c;
}
.phone-sm {
  width: 200px;
}
.phone-in {
  position: relative;
  border-radius: 30px;
  background: var(--bg-alt);
  min-height: 470px;
  padding: 10px 12px 64px;
  overflow: hidden;
  font-size: 12px;
  user-select: none;
}
.phone-sm .phone-in {
  min-height: 380px;
}
.ph-status {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px 10px;
  color: var(--heading);
}
.ph-head small {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
}
.ph-head b {
  display: block;
  font-size: 18px;
  color: var(--heading);
  margin-bottom: 10px;
  line-height: 1.2;
}
.ph-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}
.ph-kpis div,
.ph-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.ph-kpis small,
.ph-card > small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.ph-kpis b {
  font-size: 20px;
  color: var(--heading);
}
.ph-kpis b.warn {
  color: var(--danger);
}
.ph-card {
  margin-bottom: 8px;
}
.ph-task {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11.5px;
}
.ph-task:last-child {
  border-bottom: 0;
}
.ph-task i {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
}
.ph-task em {
  margin-left: auto;
  font-style: normal;
  color: var(--link);
  font-size: 10px;
  font-weight: 600;
}
.ph-timer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ph-timer .ic {
  color: var(--warn);
  width: 20px;
  height: 20px;
}
.ph-timer small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.ph-timer b {
  font-variant-numeric: tabular-nums;
  color: var(--heading);
}
.ph-timer span {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  font-size: 10.5px;
}
.ph-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 10px 6px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.ph-tabs .ic {
  width: 20px;
  height: 20px;
}
.ph-tabs span.on {
  color: var(--primary);
}
.ph-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding-bottom: 20px;
}
.ph-lock .logo-mark {
  border-radius: 12px;
}
.ph-lock b {
  font-size: 18px;
  color: var(--heading);
}
.ph-lock small {
  color: var(--muted);
}
.ph-finger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin: 22px 0 4px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 8%, transparent);
}
.ph-finger .ic {
  width: 36px;
  height: 36px;
}
@media (max-width: 560px) {
  .phone-sm {
    display: none;
  }
  .phones .phone:only-child {
    display: block;
  }
  .m-side,
  .m-tree,
  .m-clist,
  .wf-palette {
    display: none;
  }
  .m-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .m-row2 {
    grid-template-columns: 1fr;
  }
  .m-tr {
    grid-template-columns: 1.6fr 1fr 0.8fr;
  }
  .m-tr > span:nth-child(4) {
    display: none;
  }
  .m-cols3 {
    grid-template-columns: 1fr 1fr;
  }
  .m-cols3 .m-col:first-child {
    display: none;
  }
}


/* nothing may widen the page sideways (sliding reveals, glows); "clip" keeps sticky elements working */
html,
body {
  overflow-x: clip;
}
@media (max-width: 1000px) {
  .js [data-reveal="right"],
  .js [data-reveal="left"] {
    transform: translateY(22px);
  }
}

/* =====================================================================
   Interactive demo (assets/js/demo.js)
   ===================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
html.demo-open {
  overflow: hidden;
}
/* "Try it live" badge on every screenshot */
.shot-link {
  position: relative;
}
.shot-try {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #0b2a45;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 8px 20px rgba(11, 42, 69, 0.3);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.shot-try .ic {
  width: 15px;
  height: 15px;
  color: #7fd0ff;
}
.shot-link:hover .shot-try,
.shot-link:focus-visible .shot-try {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .shot-try {
    opacity: 1;
    transform: none;
  }
}
.shot-link {
  cursor: pointer;
}

/* the section that invites people in */
.try-in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.try-in > div > p:not(.eyebrow) {
  font-size: 17px;
  color: #c9d7e6;
  max-width: 50ch;
}
.try-preview {
  position: relative;
  display: block;
  border-radius: 14px;
  cursor: pointer;
}
.try-preview .shot {
  pointer-events: none;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
}
.try-preview:hover .shot {
  transform: perspective(1400px) rotateY(-2deg) rotateX(1deg) scale(1.01);
}
.try-preview .shot-try {
  display: none;
}
.try-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5), 0 14px 40px rgba(0, 0, 0, 0.35);
  animation: ping 2.2s var(--ease) infinite;
}
.try-play span {
  position: absolute;
  left: 34px;
  top: 27px;
  border-left: 22px solid var(--primary);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55), 0 14px 40px rgba(0, 0, 0, 0.35);
  }
  80%,
  100% {
    box-shadow: 0 0 0 28px rgba(255, 255, 255, 0), 0 14px 40px rgba(0, 0, 0, 0.35);
  }
}
@media (max-width: 900px) {
  .try-in {
    grid-template-columns: 1fr;
  }
}

/* the player */
.demo {
  width: min(1560px, 98vw);
  max-width: none;
  max-height: 98vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.demo[open] {
  animation: zoomIn 0.4s var(--ease);
}
.demo::backdrop {
  background: rgba(3, 12, 22, 0.88);
  backdrop-filter: blur(6px);
}
.demo-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 10px;
  width: min(100%, calc((96vh - 150px) * var(--ar, 1.6)));
  flex-wrap: wrap;
}
.demo-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0171c3, #6d5bd0);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.demo-title {
  font-size: 17px;
  font-weight: 650;
  margin-right: auto;
}
/* screen picker */
.demo-pick {
  position: relative;
}
.demo-pickbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  min-width: 230px;
  padding: 0 10px 0 5px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.demo-pickbtn:hover,
.demo-pickbtn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
}
.demo-pickbtn img {
  width: 42px;
  height: 27px;
  border-radius: 5px;
  object-fit: cover;
  object-position: top left;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
}
.demo-pickbtn span {
  flex: 1;
  text-align: left;
}
.demo-pickbtn svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
  transition: transform 0.25s var(--ease);
}
.demo-pickbtn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.demo-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: min(560px, 92vw);
  max-height: min(70vh, 560px);
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 30, 48, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: menuIn 0.22s var(--ease);
  scrollbar-width: thin;
}
.demo-menu[hidden] {
  display: none;
}
@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}
.dm-group {
  padding: 4px 0 6px;
}
.dm-label {
  padding: 4px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f9bb5;
}
.dm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e3e8ee;
  font: inherit;
  font-size: 14px;
  font-weight: 560;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s;
}
.dm-item:hover,
.dm-item:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
}
.dm-item:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(107, 183, 242, 0.7);
}
.dm-item img {
  width: 56px;
  height: 35px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: cover;
  object-position: top left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #fff;
  transition: transform 0.25s var(--ease);
}
.dm-item:hover img {
  transform: scale(1.06);
}
.dm-item span {
  flex: 1;
}
.dm-tick {
  width: 16px;
  height: 16px;
  color: #6bb7f2;
  opacity: 0;
}
.dm-item[aria-selected="true"] {
  background: rgba(43, 143, 219, 0.22);
  color: #fff;
}
.dm-item[aria-selected="true"] .dm-tick {
  opacity: 1;
}
@media (max-width: 600px) {
  .demo-menu {
    grid-template-columns: 1fr;
  }
  .demo-pickbtn {
    min-width: 0;
  }
}
.demo-guide {
  height: 36px;
  padding: 0 16px;
  border-radius: 9px;
  border: 0;
  background: #fff;
  color: #0b2a45;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.demo-guide:hover {
  background: #e6f2fc;
}
.demo-x {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.demo-x:hover {
  background: rgba(255, 255, 255, 0.12);
}
.demo-frame {
  width: min(100%, calc((96vh - 150px) * var(--ar, 1.6)));
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  transition: width 0.35s var(--ease);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  background: #eef2f6;
  border-bottom: 1px solid #dde3ea;
  color: #5a6573;
  font-size: 12px;
}
.demo-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f26b5b;
}
.demo-bar i:nth-child(2) {
  background: #f5bf4f;
}
.demo-bar i:nth-child(3) {
  background: #5ac05a;
}
.demo-bar span {
  margin: 0 auto;
}
.demo-view {
  position: relative;
  aspect-ratio: 1440 / 900;
  overflow: hidden;
  background: #f3f6f9;
}
.demo-view img {
  display: block;
  width: 100%;
  height: 100%;
  transition: opacity 0.18s ease, transform 0.35s var(--ease), filter 0.18s;
}
.demo-view.switching img {
  opacity: 0.25;
  transform: scale(0.992);
  filter: blur(2px);
}
.demo-layer {
  position: absolute;
  inset: 0;
}
/* hotspots: invisible until hovered, briefly shown when a screen opens */
.demo-hs {
  position: absolute;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: box-shadow 0.2s, background-color 0.2s;
}
.demo-hs:hover,
.demo-hs:focus-visible {
  outline: none;
  background: rgba(1, 113, 195, 0.07);
  box-shadow: 0 0 0 2px rgba(1, 113, 195, 0.9), 0 0 0 7px rgba(1, 113, 195, 0.18);
}
.flash .demo-hs.go {
  animation: hsFlash 1.8s ease 0.25s 1;
}
@keyframes hsFlash {
  30%,
  60% {
    background: rgba(1, 113, 195, 0.08);
    box-shadow: 0 0 0 2px rgba(1, 113, 195, 0.75), 0 0 0 8px rgba(1, 113, 195, 0.15);
  }
}
.touring .demo-hs {
  pointer-events: none;
}
/* the spotlight: a hole in a dark overlay that glides between steps */
.demo-spot {
  position: absolute;
  z-index: 2;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 0 0 3px #2b8fdb, 0 0 0 9999px rgba(4, 14, 26, 0.6);
  transition: left 0.55s var(--ease), top 0.55s var(--ease), width 0.55s var(--ease), height 0.55s var(--ease);
}
.demo-spot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgba(43, 143, 219, 0.8);
  animation: spotPulse 1.8s ease-out infinite;
}
@keyframes spotPulse {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.06);
  }
}
.demo-pop {
  position: absolute;
  z-index: 3;
  width: min(360px, 86%);
  padding: 16px 18px 14px;
  border-radius: 14px;
  background: #fff;
  color: #18202a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: popIn 0.4s var(--ease);
}
.demo-pop::before {
  content: "";
  position: absolute;
  left: calc(var(--ax, 50%) - 7px);
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
}
.demo-pop[data-side="below"]::before {
  top: -7px;
}
.demo-pop[data-side="above"]::before {
  bottom: -7px;
}
.demo-pop[data-side="left"]::before,
.demo-pop[data-side="right"]::before,
.demo-pop[data-side="inside"]::before {
  display: none;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
}
.dp-count {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0171c3;
  margin-bottom: 4px;
}
.demo-pop h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #0b2a45;
}
.demo-pop p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #36414f;
}
.dp-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
}
.dp-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dde3ea;
  transition: all 0.3s;
}
.dp-dots i.done {
  background: #9cc9ec;
}
.dp-dots i.on {
  width: 18px;
  border-radius: 3px;
  background: #0171c3;
}
.dp-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dp-btns button {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #c3cdd8;
  background: #fff;
  color: #0b2a45;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  cursor: pointer;
}
.dp-btns .dp-skip {
  margin-right: auto;
  border: 0;
  padding: 0;
  color: #5a6573;
  font-weight: 500;
}
.dp-btns .dp-skip:hover {
  color: #0b2a45;
  text-decoration: underline;
}
.dp-btns .dp-next {
  background: #0171c3;
  border-color: #0171c3;
  color: #fff;
}
.dp-btns .dp-next:hover {
  background: #0161a8;
}
.demo-toast {
  position: absolute;
  z-index: 3;
  max-width: min(330px, 70%);
  padding: 10px 14px;
  border-radius: 10px;
  background: #0b2a45;
  color: #fff;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: popIn 0.3s var(--ease);
}
.demo-hint {
  margin: 10px auto 0;
  text-align: center;
  font-size: 13px;
  color: #9fb3c8;
}
@media (max-width: 700px) {
  .demo-title,
  .demo-hint {
    display: none;
  }
  .demo-pop {
    position: fixed;
    left: 8px !important;
    right: 8px;
    top: auto !important;
    bottom: 8px;
    width: auto;
  }
  .demo-pop::before {
    display: none;
  }
}

/* =====================================================================
   Brand tab: a large logo that hangs from the top bar without making it taller
   ===================================================================== */
.brand-tab {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  gap: 14px;
  padding: 12px 22px 14px 14px;
  margin-bottom: -22px;
  border-radius: 0 0 22px 22px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-soft), 0 16px 34px rgba(11, 42, 69, 0.16);
  transform-origin: 0 0;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
/* a thin brand-coloured edge along the top of the tab */
.brand-tab::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
}
.brand-tab .logo-mark {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(1, 113, 195, 0.35);
}
.brand-tab:hover .logo-mark {
  transform: rotate(-6deg) scale(1.04);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-tab .brand-name {
  font-size: 31px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}
.brand-tab .brand-name b {
  font-weight: 850;
}
.brand-sub {
  margin-top: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
/* scrolled: only a little smaller, still prominent */
.scrolled .brand-tab {
  transform: scale(0.88);
  box-shadow: 0 0 0 1px var(--line-soft), 0 10px 24px rgba(11, 42, 69, 0.14);
}
body.nav-open .brand-tab {
  transform: scale(0.78);
}
/* breadcrumbs sit below the tab */
.crumbs ol {
  padding-top: 34px;
}
@media (max-width: 1240px) {
  .brand-sub {
    display: none;
  }
  .brand-tab .brand-name {
    font-size: 27px;
  }
}
@media (max-width: 640px) {
  .brand-tab {
    gap: 10px;
    padding: 9px 16px 10px 10px;
    margin-bottom: -14px;
    border-radius: 0 0 18px 18px;
  }
  .brand-tab .logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }
  .brand-tab .brand-name {
    font-size: 24px;
  }
  .crumbs ol {
    padding-top: 24px;
  }
}

/* =====================================================================
   Smart Tools: calm bordered grid (replaces the screenshot bento)
   ===================================================================== */
.tools-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 26px 24px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.25s;
}
.tc:hover {
  background: var(--bg-alt);
  color: var(--ink);
}
.tc-num {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--line-strong);
  transition: color 0.25s;
}
.tc:hover .tc-num {
  color: var(--primary);
}
.tc-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  transition: transform 0.35s var(--ease), background-color 0.25s, color 0.25s;
}
.tc:hover .tc-ic {
  transform: translateY(-3px) rotate(-6deg);
  background: var(--primary);
  color: #fff;
}
.tc-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--heading);
}
.tc-line {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  flex: 1;
}
.tc-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 620;
  color: var(--link);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s, transform 0.3s var(--ease);
}
.tc-go .ic {
  width: 16px;
  height: 16px;
}
.tc:hover .tc-go,
.tc:focus-visible .tc-go {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .tc-go {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 960px) {
  .tools-clean {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .tools-clean {
    grid-template-columns: 1fr;
  }
}

/* =====================================================================
   Screen viewer: a list of screens and one big screen
   ===================================================================== */
.sv {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.sv-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.sv-item {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-left: 2px solid var(--line);
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
}
.sv-item b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.sv-item span {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  transition: max-height 0.35s var(--ease), opacity 0.3s, margin 0.3s;
}
.sv-item:hover b {
  color: var(--heading);
}
.sv-item.is-active {
  border-left-color: var(--primary);
  background: linear-gradient(90deg, var(--primary-soft), transparent 85%);
}
.sv-item.is-active b {
  color: var(--heading);
}
.sv-item.is-active span {
  max-height: 3.2em;
  opacity: 1;
  margin-top: 2px;
}
.sv-stage {
  position: sticky;
  top: 100px;
}
.sv-stage img {
  transition: opacity 0.22s ease, transform 0.4s var(--ease);
}
.sv-stage.swap img {
  opacity: 0;
  transform: scale(0.99);
}
.sv-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 900px) {
  .sv {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .sv-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .sv-item {
    white-space: nowrap;
    border-left: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
  }
  .sv-item.is-active {
    background: var(--primary-soft);
    border-color: var(--primary);
  }
  .sv-item span {
    display: none;
  }
  .sv-stage {
    position: static;
  }
}
