/* Shared design system for all brand sites. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --tint: #f5f4ff;
  --ink: #1a1f36;
  --slate: #4f566b;
  --muted: #5f6a7d;
  --line: #e3e8ee;
  --line-2: #dde5f0;
  --accent: #635bff;
  --accent-2: #5348e8;
  --accent-soft: #8a83ff;
  --rose: #cd3d64;
  --teal: #1abc9c;
  --amber: #f5a524;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(26, 31, 54, .06), 0 1px 1px rgba(26, 31, 54, .04);
  --shadow: 0 12px 32px -12px rgba(26, 31, 54, .18), 0 2px 6px rgba(26, 31, 54, .05);
  --shadow-lg: 0 40px 80px -30px rgba(50, 40, 160, .28), 0 12px 24px -12px rgba(26, 31, 54, .12);
  --max: 1200px;
  --head: "Manrope", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; color: var(--slate); max-width: 70ch; text-wrap: pretty; }
li { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
.center p, p.center { margin-left: auto; margin-right: auto; }
/* Accent text on tinted backgrounds uses the darker purple for AA contrast */
.section-soft :is(a:not(.btn), .grad, .go, .tag, .pill), .section-tint :is(a:not(.btn), .grad, .go, .tag, .pill) { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

/* Layout */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--tint); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  body { font-size: 16px; }
}

/* Type helpers */
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--slate); max-width: 640px; }
.center .lead { margin-left: auto; margin-right: auto; }
.grad { color: var(--accent); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 700 15px/1 var(--head); cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(99, 91, 255, .7); }
.btn-primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* Cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin-top: 14px; }
.card p:last-child { margin-bottom: 0; }
.icon { display: inline-flex; align-items: center; color: var(--accent); }
.icon svg { width: 28px; height: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--tint); color: var(--accent-2); font: 600 13px/1 var(--head);
}
.tag { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); font: 600 12px/1.4 var(--head); color: var(--slate); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--slate); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 72px;
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header .container { display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 21px/1 var(--head); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { font-weight: 600; color: var(--accent-2); }
.nav { display: flex; align-items: center; gap: 6px; margin-left: 8px; }
.nav > a, .nav > .dd > button {
  background: none; border: 0; cursor: pointer; padding: 10px 14px; border-radius: 10px;
  color: var(--ink); font: 600 15px/1 var(--head);
}
.nav > a:hover, .nav > .dd > button:hover, .nav > a[aria-current] { background: var(--bg-soft); color: var(--accent-2); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-cta .btn { padding: 11px 18px; font-size: 14px; }
.dd { position: relative; }
.dd-panel {
  position: absolute; top: calc(100% + 14px); left: -180px; width: 780px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s var(--ease);
}
.dd-panel::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel, .dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel a { display: flex; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); }
.dd-panel a:hover { background: var(--tint); }
.dd-panel a b { display: block; font: 700 14px/1.3 var(--head); }
.dd-panel a span { display: block; font-size: 13px; line-height: 1.4; color: var(--muted); }
.dd-panel .icon { flex: none; padding-top: 2px; }
.dd-panel .icon svg { width: 18px; height: 18px; }
.dd-panel .dd-all { grid-column: 1 / -1; justify-content: center; background: var(--bg-soft); font: 700 14px/1 var(--head); color: var(--accent); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: .3s; }
.mobile-nav { display: none; }
@media (max-width: 1080px) {
  .nav, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .mobile-nav {
    display: block; position: fixed; inset: 72px 0 0; background: #fff; z-index: 99; overflow-y: auto;
    padding: 16px 16px 40px; transform: translateX(100%); transition: transform .35s var(--ease);
  }
  .mobile-nav.open { transform: none; }
  .mobile-nav a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line); color: var(--ink); font: 600 16px/1.2 var(--head); }
  .mobile-nav .sub a { padding-left: 20px; font-weight: 500; font-size: 15px; color: var(--slate); }
  .mobile-nav .btn { width: 100%; margin-top: 16px; display: flex; }
  .site-header { background: rgba(255, 255, 255, .92); }
}

/* Page hero (inner pages) */
.page-hero { padding: 150px 0 80px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero .lead { margin-bottom: 28px; }
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 720px; pointer-events: none; z-index: -1;
  background: radial-gradient(40% 50% at 70% 30%, rgba(99, 91, 255, .16), transparent 70%),
              radial-gradient(30% 40% at 20% 10%, rgba(138, 131, 255, .14), transparent 70%);
}
.breadcrumb { font: 600 13px/1 var(--head); color: var(--muted); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* App window mock */
.window { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.window-bar i:nth-child(1) { background: #ff6b6b; } .window-bar i:nth-child(2) { background: #ffc547; } .window-bar i:nth-child(3) { background: #3ccf8e; }
.window-bar span { margin-left: 10px; font: 600 12px/1 var(--head); color: var(--muted); }
.window-body { padding: 20px; }

/* Tables used in mocks and comparison */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 700 12px/1 var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--slate); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font: 700 18px/1.4 var(--head); display: flex; justify-content: space-between; gap: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--accent); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 14px 0 0; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(48px, 7vw, 88px) clamp(24px, 7vw, 88px);
  background: radial-gradient(70% 120% at 100% 0%, var(--accent) 0%, #5348e8 50%, #4239d6 100%);
  color: #fff; text-align: center; isolation: isolate;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #fff; color: var(--accent); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); }
.cta-band .btn-primary:hover { background: #fff; color: var(--accent-2); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta-band .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18);
  width: 520px; height: 520px; right: -160px; top: -220px;
}
.cta-band::after { width: 360px; height: 360px; left: -120px; top: auto; bottom: -200px; right: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 36px; margin-top: 40px; background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-grid .footer-h { font: 700 13px/1.3 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.footer-grid a { display: block; color: var(--slate); font-size: 15px; padding: 5px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid address { font-style: normal; color: var(--slate); font-size: 15px; margin-top: 16px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Logo strip: static, wraps on small screens */
.marquee { padding: 0 24px; }
.marquee-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 40px; max-width: var(--max); margin: 0 auto; }
.marquee-track span { font: 800 20px/1 var(--head); color: #5f6a7d; letter-spacing: -.02em; white-space: nowrap; }

/* Stats */
.stat b { display: block; font: 800 clamp(36px, 4.5vw, 56px)/1 var(--head); letter-spacing: -.04em; color: var(--ink); }
.stat span { color: var(--muted); font-size: 15px; }

/* Reveal: elements start hidden only when JS has confirmed motion is allowed */
.js-motion [data-reveal], .js-motion [data-stagger] > * { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
