/* ==========================================================================
   WacanaDevs — style.css
   Light "milky" design system: Plus Jakarta Sans, navy ink on a soft
   lavender-white canvas, white glass surfaces, one blue accent and slow,
   smooth easing (cubic-bezier(.22, 1, .36, 1)) on every transition.

   The header, hero and feature cards are measured from the reference
   design (a 1672px-wide frame). --u is one pixel of that frame, scaled to
   the window and clamped, so the home view keeps the mockup's proportions
   on any desktop screen. Everything else uses plain pixel sizes.
   ========================================================================== */

:root {
  color-scheme: light;

  --u: clamp(.8px, calc(100vw / 1672), 1px);
  --container: calc(1522 * var(--u));
  --gutter: 24px;
  --hgutter: 24px;

  --bg: #f5f7fe;
  --bg-soft: #eef2fc;
  --ink: #0e1a3f;
  --ink-2: #27314f;
  --muted: #5a6480;
  --muted-2: #8a93ab;
  --line: #e5e9f5;
  --line-2: #d6ddef;
  --blue: #2667ff;
  --blue-h: #1b5cf5;
  --blue-d: #1d4fd8;
  --blue-50: #f2f6ff;
  --blue-100: #e7eefe;
  --blue-150: #e2eafd;
  --blue-200: #cddafc;
  --ok: #0c8a66;
  --ok-bg: #e3f6ee;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, .05, .36, 1);
  --ring: 0 0 0 1px rgb(30 50 110 / .04);
  --sh-xs: 0 1px 2px rgb(18 34 84 / .05);
  --sh-sm: 0 1px 2px rgb(18 34 84 / .04), 0 10px 26px -14px rgb(34 64 150 / .22);
  --sh-md: 0 2px 6px -2px rgb(18 34 84 / .06), 0 20px 44px -20px rgb(34 64 150 / .3);
  --sh-lg: 0 6px 14px -6px rgb(18 34 84 / .08), 0 36px 72px -28px rgb(34 64 150 / .38);
  --sh-card: var(--ring), 0 1px 2px rgb(18 34 84 / .04), 0 14px 34px -22px rgb(34 64 150 / .3);
  --sh-card-hover: 0 0 0 1px rgb(30 50 110 / .05), 0 2px 4px rgb(18 34 84 / .04), 0 28px 52px -24px rgb(34 64 150 / .4);
  --sh-blue: 0 10px 22px -10px rgb(38 103 255 / .7);
  --sh-blue-lg: 0 16px 32px -12px rgb(38 103 255 / .7);

  --header-top: calc(16 * var(--u));
  --header-h: calc(79 * var(--u));
  --header-space: calc(var(--header-top) + var(--header-h));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #c9d3ec transparent;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: "calt" 1, "kern" 1;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; opacity: .5; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: rgb(38 103 255 / .16); color: var(--ink); }

.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;
}
.i { flex: none; display: inline-block; vertical-align: middle; }

.skip-link {
  position: fixed; left: 16px; top: -64px; z-index: 200;
  padding: 10px 16px; border-radius: 12px;
  background: var(--blue); color: #fff; font-weight: 600;
  box-shadow: var(--sh-blue);
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
main { display: block; min-height: 65vh; outline: none; }
main.page {
  position: relative; isolation: isolate;
  padding: calc(var(--header-space) + 48px) 0 88px;
}
main.page::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: 620px; pointer-events: none;
  background:
    radial-gradient(40% 70% at 90% 0%, #e2e9fd 0%, transparent 72%),
    radial-gradient(28% 55% at 0% 22%, #e8edfd 0%, transparent 72%);
}
.page-in { animation: page-in .6s var(--ease) backwards; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; line-height: 1.5; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.text-gradient {
  background-image: linear-gradient(100deg, #2667ff 15%, #5b8dff 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-accent { color: var(--blue); }
.sub, .muted { color: var(--muted); }
.h-sub { font-size: 26px; line-height: 1.2; letter-spacing: -.03em; margin: 8px 0 12px; }
.kbd {
  display: inline-flex; align-items: center;
  height: 26px; padding: 0 8px; border-radius: 8px;
  background: #e0e4f3; color: #858da6;
  font: 500 12.5px/1 var(--font); word-spacing: 3px; white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; color: var(--ink);
  font-size: 15px; line-height: 20px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  box-shadow: var(--sh-xs);
  transition: translate .45s var(--ease), box-shadow .45s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { translate: 0 -2px; border-color: var(--line-2); box-shadow: var(--sh-sm); }
.btn:active { translate: 0 0; transition-duration: .15s; }
.btn .i { transition: translate .45s var(--ease); }
.btn-primary { background: var(--blue); border-color: transparent; color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--blue-h); border-color: transparent; box-shadow: var(--sh-blue-lg); }
.btn-lg { min-height: 54px; padding: 14px 30px; border-radius: var(--radius-md); font-size: 16.5px; font-weight: 700; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { background: var(--blue-50); border-color: transparent; box-shadow: none; color: var(--ink); }
.btn-block { display: flex; width: 100%; }
.btn.on { background: var(--blue-100); border-color: var(--blue-200); color: var(--blue-d); }
.btn-text {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: color .3s var(--ease);
}
.btn-text:hover { color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 7px 16px;
  border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2);
  font-size: 14px; line-height: 20px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  transition: translate .45s var(--ease), box-shadow .45s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover { translate: 0 -1px; border-color: var(--line-2); box-shadow: var(--sh-xs); color: var(--ink); }
.chip.on { background: var(--blue-100); border-color: var(--blue-200); color: var(--blue-d); }

.link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
  color: var(--blue); font-size: 15px; font-weight: 700;
  transition: color .3s var(--ease);
}
.link .i { transition: translate .45s var(--ease); }
.link:hover { color: var(--blue-d); }
.link:hover .i { translate: 3px 0; }

/* ---------- Badges & pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: #eef1f8; color: var(--muted);
  font-size: 12px; line-height: 18px; font-weight: 700;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgb(12 138 102 / .14); }
.badge.dim { background: #f0f2f8; color: #6b7590; }
.pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 8px;
  background: #f0f3fb; color: #3a4565;
  font-size: 13px; line-height: 18px; font-weight: 600;
}
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.actions, .tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.actions { margin: 20px 0 0; }
.tabs { margin: 0 0 24px; }

/* ---------- Header: floating white pill ---------- */
.site-header {
  position: fixed; z-index: 50; top: var(--header-top); left: 0; right: 0;
  pointer-events: none;
  transition: top .6s var(--ease);
}
.site-header.scrolled { top: calc(var(--header-top) * .6); }
.header-inner {
  pointer-events: auto;
  width: min(var(--container), calc(100% - 2 * var(--hgutter)));
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 calc(23 * var(--u)) 0 calc(42 * var(--u));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgb(255 255 255 / .72);
  border: 1px solid rgb(255 255 255 / .9);
  border-radius: calc(26 * var(--u));
  box-shadow: 0 1px 2px rgb(18 34 84 / .03), 0 14px 34px -18px rgb(34 64 150 / .2);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header.scrolled .header-inner {
  background: rgb(255 255 255 / .86);
  box-shadow: 0 1px 2px rgb(18 34 84 / .04), 0 18px 44px -18px rgb(34 64 150 / .3);
}
.brand {
  display: inline-flex; align-items: center; gap: calc(11 * var(--u)); flex: none;
  color: var(--ink);
  font-size: calc(28.5 * var(--u)); line-height: 1; font-weight: 800; letter-spacing: -.035em;
}
.brand-text { white-space: nowrap; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: calc(45 * var(--u)); height: calc(45 * var(--u));
  border-radius: calc(12 * var(--u));
  background: linear-gradient(160deg, #3a78ff, #2160f4);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgb(38 103 255 / .75), inset 0 1px 0 rgb(255 255 255 / .22);
  transition: rotate .6s var(--ease), scale .6s var(--ease);
}
.brand:hover .logo-mark { rotate: -6deg; scale: 1.05; }
.logo-mark svg { width: 64%; height: 64%; }
.logo-mark.lg { width: 60px; height: 60px; border-radius: 16px; }

.nav-wrap { display: none; align-items: center; }
.nav { display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: calc(8 * var(--u));
  height: calc(44 * var(--u)); padding: 0 calc(20 * var(--u));
  border-radius: calc(16 * var(--u));
  color: var(--ink); white-space: nowrap;
  font-size: max(13.5px, calc(15 * var(--u))); line-height: 1; font-weight: 500;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.nav-link:hover { background: rgb(231 238 254 / .7); }
.nav-link.active { background: var(--blue-100); color: var(--blue-d); font-weight: 600; }

.more { position: relative; }
.more-btn .i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); transition: rotate .45s var(--ease); }
.more.open .more-btn { background: rgb(231 238 254 / .7); }
.more.open .more-btn .i { rotate: 180deg; }
.dropdown {
  position: absolute; z-index: 60; top: calc(100% + 16px); left: 50%;
  width: 560px; padding: 10px;
  /* nearly opaque: the header's own backdrop-filter stops this one from blurring the page behind */
  background: rgb(255 255 255 / .985);
  border: 1px solid #fff;
  border-radius: 24px;
  box-shadow: var(--sh-lg), var(--ring);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  transform-origin: 50% 0;
  opacity: 0; transform: translate(-50%, -8px) scale(.98); pointer-events: none;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.more.open .dropdown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.menu-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 16px;
  transition: background-color .3s var(--ease);
}
.menu-item:hover { background: var(--blue-50); }
.menu-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--blue-100); color: var(--blue);
  transition: background-color .3s var(--ease), color .3s var(--ease), scale .45s var(--ease);
}
.menu-item:hover .menu-icon { scale: 1.06; }
.menu-item.active .menu-icon { background: var(--blue); color: #fff; }
.menu-item b { display: block; color: var(--ink); font-size: 14.5px; line-height: 1.3; font-weight: 700; }
.menu-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.menu-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 6px 4px 0; padding: 12px 8px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px;
}
.menu-foot div { display: flex; gap: 4px; }
.menu-foot a { padding: 6px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 600; transition: background-color .3s var(--ease), color .3s var(--ease); }
.menu-foot a:hover, .menu-foot a.active { background: var(--blue-50); color: var(--blue-d); }

.header-actions { display: flex; align-items: center; gap: calc(16 * var(--u)); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(10 * var(--u));
  height: calc(44 * var(--u)); min-width: calc(44 * var(--u));
  padding: 0 calc(10 * var(--u)) 0 calc(16 * var(--u));
  border-radius: calc(16 * var(--u));
  background: #eef1fc; color: var(--ink);
  transition: background-color .35s var(--ease);
}
.icon-btn:hover { background: #e5eafb; }
.icon-btn > .i { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.icon-btn .kbd {
  height: calc(28 * var(--u)); padding: 0 calc(10 * var(--u)); border-radius: calc(9 * var(--u));
  font-size: max(11.5px, calc(14 * var(--u)));
}
.header-actions .btn {
  min-height: 0; height: calc(44 * var(--u));
  gap: calc(9 * var(--u));
  border-radius: calc(16 * var(--u));
  font-size: max(13px, calc(14.5 * var(--u))); font-weight: 600;
}
.header-actions .btn .i { width: calc(20 * var(--u)); height: calc(20 * var(--u)); }
.header-actions .acct {
  padding: 0 calc(14 * var(--u)) 0 calc(15 * var(--u)); gap: calc(10 * var(--u));
  background: #f0f3fd; border-color: transparent; box-shadow: none;
}
.header-actions .acct:hover { translate: none; background: #e7ecfb; border-color: transparent; box-shadow: none; }
.header-actions .join { padding: 0 calc(19 * var(--u)) 0 calc(20 * var(--u)); gap: calc(10 * var(--u)); }
.header-actions .join:hover { translate: 0 -1px; }

.menu-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: #eef1fc; color: var(--ink);
  transition: background-color .3s var(--ease);
}
.menu-btn:hover { background: #e5eafb; }
.menu-btn .i { position: absolute; width: 22px; height: 22px; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.menu-btn .menu-x { opacity: 0; transform: rotate(-90deg) scale(.4); }
.menu-btn.open .menu-bars { opacity: 0; transform: rotate(90deg) scale(.4); }
.menu-btn.open .menu-x { opacity: 1; transform: none; }

.mobile-panel {
  position: fixed; z-index: 45;
  top: calc(var(--header-space) + 10px);
  right: calc((100% - min(var(--container), 100% - 2 * var(--hgutter))) / 2);
  width: min(340px, calc(100% - 2 * var(--hgutter)));
  max-height: calc(100dvh - var(--header-space) - 24px); overflow-y: auto;
  padding: 10px;
  background: rgb(255 255 255 / .94);
  border: 1px solid #fff; border-radius: 24px;
  box-shadow: var(--sh-lg), var(--ring);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  transform-origin: 100% 0;
  opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none;
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.mobile-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-panel nav { display: grid; gap: 2px; }
.mobile-panel .nav-link { height: 46px; padding: 0 14px; border-radius: 14px; font-size: 15.5px; }
.mobile-panel .btn { width: 100%; margin-top: 8px; min-height: 50px; }

@media (min-width: 1200px) {
  .nav-wrap { display: flex; }
  .menu-btn, .mobile-panel { display: none; }
}
@media (max-width: 1199px) {
  .header-inner { padding: 0 12px 0 20px; }
  .header-actions { gap: 10px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --hgutter: 12px; --header-top: 10px; --header-h: 62px; }
  .header-inner { padding: 0 9px 0 12px; border-radius: 20px; }
  .brand { font-size: 21px; gap: 9px; }
  .logo-mark { width: 38px; height: 38px; border-radius: 11px; }
  .header-actions { gap: 6px; }
  .header-actions .join, .header-actions .kbd { display: none; }
  .icon-btn { width: 42px; height: 42px; padding: 0; border-radius: 13px; }
  .icon-btn > .i { width: 20px; height: 20px; }
  .header-actions .btn { height: 42px; border-radius: 13px; font-size: 14px; }
  .header-actions .btn .i { width: 18px; height: 18px; }
  .menu-btn { width: 42px; height: 42px; border-radius: 13px; }
}
@media (max-width: 380px) {
  .header-actions .acct { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(163 * var(--u)) 0 calc(73 * var(--u));
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(32% 40% at 74% 38%, rgb(255 255 255 / .8), transparent 72%),
    linear-gradient(180deg, #f1f4fd 0%, #f5f6fe 45%, var(--bg) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(to bottom, rgb(245 247 254 / 0), var(--bg));
}
.hero-frame {
  position: absolute; top: 0; left: 50%;
  width: calc(1672 * var(--u)); height: calc(941 * var(--u));
  transform: translateX(-50%);
}
.hero-orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 68% 32%, #eff3fe 0%, #e3e9fc 70%);
  box-shadow: inset -10px -14px 30px rgb(255 255 255 / .55);
}
.hero-orb.o1 { left: calc(-172 * var(--u)); top: calc(73 * var(--u)); width: calc(224 * var(--u)); height: calc(224 * var(--u)); animation: drift 19s ease-in-out infinite alternate; }
.hero-orb.o2 { left: calc(-163 * var(--u)); top: calc(514 * var(--u)); width: calc(246 * var(--u)); height: calc(246 * var(--u)); animation: drift-b 23s ease-in-out infinite alternate; }
.hero-orb.o3 { left: calc(-150 * var(--u)); top: calc(860 * var(--u)); width: calc(300 * var(--u)); height: calc(300 * var(--u)); }
.hero-waves { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-waves .wv-crest { fill: none; stroke: #fff; stroke-opacity: .7; stroke-width: 2.5; stroke-linecap: round; }

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: calc(700 * var(--u)) minmax(0, 1fr); align-items: stretch;
}
.hero-copy { position: relative; z-index: 2; padding-left: calc(42 * var(--u)); }
.badge-pill {
  display: inline-flex; align-items: center;
  height: calc(42 * var(--u)); padding: 0 calc(39 * var(--u)) 0 calc(27 * var(--u));
  border-radius: 999px;
  background: var(--blue-150); color: var(--ink);
  font-size: max(13px, calc(15.8 * var(--u))); font-weight: 500;
}
.hero-title {
  position: relative;
  margin-top: calc(25 * var(--u));
  font-size: calc(94 * var(--u)); line-height: .96; font-weight: 800; letter-spacing: -.04em;
}
.hero-line { display: block; }
/* the artwork's accent line is set heavier than ExtraBold: a same-colour stroke thickens the stems,
   and the extra letter-spacing keeps the gaps between the fattened glyphs */
.hero-accent { color: var(--blue); letter-spacing: .013em; -webkit-text-stroke: .032em currentColor; }
.hero-accent .mark-anchor { margin-left: .016em; }
.title-dot { margin-left: -.075em; }
.mark-anchor { position: relative; display: inline-block; }
.spark { position: absolute; overflow: visible; fill: none; stroke: #2f6bff; stroke-width: 4.6; stroke-linecap: round; pointer-events: none; }
.spark path { transform-box: fill-box; transform-origin: 0 100%; }
.spark-title { left: calc(100% - 16 * var(--u)); top: calc(-40 * var(--u)); width: calc(42 * var(--u)); height: calc(44 * var(--u)); }
/* hand-drawn underline: a faint lead-in plus a tapered arch, sized in em so it follows the title on every screen */
.swoosh { position: absolute; left: .016em; top: .977em; width: 2.043em; height: .1915em; overflow: visible; pointer-events: none; }
.swoosh .sw-tail { fill: none; stroke: url(#swoosh-tail); stroke-width: 3.2; stroke-linecap: round; }
.swoosh .sw-body { fill: #77a1fc; }
.hero-sub {
  margin: calc(40 * var(--u)) 0 0 calc(3 * var(--u));
  color: #08163b;
  font-size: calc(31.5 * var(--u)); line-height: 1.2; font-weight: 800; letter-spacing: -.025em;
}
.hero-lead {
  margin: calc(9 * var(--u)) 0 0 calc(3 * var(--u)); max-width: calc(636 * var(--u));
  color: #4c5571;
  font-size: max(15px, calc(20.4 * var(--u))); line-height: 1.42;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: calc(22 * var(--u)); margin-top: calc(30 * var(--u)); }
.hero-actions .btn {
  min-height: 0; height: calc(57 * var(--u)); padding: 0 calc(30 * var(--u)) 0 calc(33 * var(--u));
  gap: calc(16 * var(--u)); border-radius: calc(18 * var(--u));
  font-size: max(15px, calc(17.8 * var(--u))); font-weight: 700;
}
.hero-actions .btn .i { width: calc(19 * var(--u)); height: calc(19 * var(--u)); }
.hero-actions .btn-primary:hover .i { translate: 2px -2px; }
.hero-actions .btn:not(.btn-primary) { padding: 0 calc(37 * var(--u)) 0 calc(31 * var(--u)); gap: calc(15 * var(--u)); border-color: #e8ecf6; }
.hero-actions .btn:not(.btn-primary) .i { width: calc(26 * var(--u)); height: calc(26 * var(--u)); }

.hero-visual {
  position: relative; z-index: 1;
  margin-left: 1.8%; width: 85.2%;
  pointer-events: none;
}
.hero-stage { position: absolute; left: -16%; right: -26%; top: calc(-123 * var(--u)); height: calc(710 * var(--u)); }
.hero-stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: auto; cursor: grab; touch-action: pan-y; outline: none;
  -webkit-user-select: none; user-select: none;
}
.hero-stage canvas.is-dragging { cursor: grabbing; }
.hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero-fallback[hidden] { display: none; }
.spark-visual { left: 94.9%; top: calc(-16 * var(--u)); width: calc(47 * var(--u)); height: calc(49 * var(--u)); }
.hero-stage canvas:focus-visible { outline: none; }
.hero-stage:has(canvas:focus-visible)::after {
  content: ""; position: absolute; inset: 8% 12% 6% 14%; border-radius: 32px;
  box-shadow: 0 0 0 2px rgb(38 103 255 / .35); pointer-events: none;
}

/* hero entrance: soft blur-in, staggered */
.hero-animate { opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease), background-color .3s var(--ease); }
.hero-animate.in { opacity: 1; transform: none; filter: none; }
.d1 { transition-delay: .05s, .05s, .05s, 0s, 0s, 0s; }
.d2 { transition-delay: .12s, .12s, .12s, 0s, 0s, 0s; }
.d3 { transition-delay: .2s, .2s, .2s, 0s, 0s, 0s; }
.d4 { transition-delay: .3s, .3s, .3s, 0s, 0s, 0s; }
.d5 { transition-delay: .38s, .38s, .38s, 0s, 0s, 0s; }
.d6 { transition-delay: .46s, .46s, .46s, 0s, 0s, 0s; }
.d7 { transition-delay: .58s, .58s, .58s, 0s, 0s, 0s; }
.d8 { transition-delay: .66s, .66s, .66s, 0s, 0s, 0s; }
.d9 { transition-delay: .74s, .74s, .74s, 0s, 0s, 0s; }
.d10 { transition-delay: .82s, .82s, .82s, 0s, 0s, 0s; }
.swoosh { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease) .75s; }
.hero-animate.in .swoosh { clip-path: inset(0); }
.spark path { opacity: 0; transform: scale(.2); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.hero-animate.in .spark path, .spark.in path { opacity: 1; transform: none; }
.spark path:nth-child(1) { transition-delay: .9s; }
.spark path:nth-child(2) { transition-delay: .98s; }
.spark path:nth-child(3) { transition-delay: 1.06s; }

/* feature cards under the hero */
.hero-cards {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(20 * var(--u));
  margin-top: calc(88 * var(--u));
}
.feature-card {
  position: relative;
  display: grid; grid-template-columns: calc(68 * var(--u)) minmax(0, 1fr); align-items: start;
  column-gap: calc(24 * var(--u));
  min-height: calc(135 * var(--u));
  padding: calc(22 * var(--u)) calc(22 * var(--u)) calc(18 * var(--u)) calc(31 * var(--u));
  background: rgb(255 255 255 / .8);
  border: 1px solid rgb(255 255 255 / .95);
  border-radius: calc(22 * var(--u));
  box-shadow: var(--sh-card);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.feature-card:hover { translate: 0 -4px; background: rgb(255 255 255 / .94); box-shadow: var(--sh-card-hover); }
.feature-icon {
  display: grid; place-items: center;
  width: calc(68 * var(--u)); height: calc(68 * var(--u));
  border-radius: calc(18 * var(--u));
  background: var(--blue-100); color: var(--blue);
  transition: scale .6s var(--ease), background-color .4s var(--ease);
}
.feature-icon .i { width: calc(34 * var(--u)); height: calc(34 * var(--u)); }
.feature-card:hover .feature-icon { scale: 1.05; background: #dfe8fe; }
.feature-text { min-width: 0; padding-top: calc(9 * var(--u)); }
.feature-text b {
  display: block; padding-right: calc(40 * var(--u)); color: var(--ink);
  font-size: max(17px, calc(22.5 * var(--u))); line-height: 1.15; font-weight: 800; letter-spacing: -.025em;
}
.feature-text span {
  display: block; margin-top: calc(9 * var(--u));
  color: var(--muted);
  font-size: max(13.5px, calc(15.2 * var(--u))); line-height: 1.64;
}
.feature-arrow {
  position: absolute; top: calc(28 * var(--u)); right: calc(24 * var(--u));
  display: grid; place-items: center;
  width: calc(29 * var(--u)); height: calc(29 * var(--u));
  border-radius: 50%;
  background: #edf1fc; color: var(--ink);
  transition: translate .5s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.feature-arrow .i { width: calc(17 * var(--u)); height: calc(17 * var(--u)); }
.feature-card:hover .feature-arrow { translate: 3px 0; background: var(--blue); color: #fff; }

@media (max-width: 1023px) {
  .hero { padding: calc(var(--header-space) + 40px) 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-waves { display: none; }
  .hero-copy { padding-left: 0; }
  .badge-pill { height: 38px; padding: 0 18px; font-size: 14px; }
  .hero-title { margin-top: 22px; font-size: clamp(50px, 10.4vw, 84px); }
  .spark-title { left: calc(100% - 8px); top: -30px; width: 36px; height: 38px; }
  .hero-sub { margin: 34px 0 0; font-size: clamp(21px, 3.6vw, 28px); }
  .hero-lead { margin: 12px 0 0; max-width: 38rem; font-size: 17px; line-height: 1.55; }
  .hero-actions { gap: 12px; margin-top: 26px; }
  .hero-actions .btn { height: 52px; padding: 0 26px; border-radius: 16px; font-size: 16px; gap: 10px; }
  .hero-actions .btn .i, .hero-actions .btn-primary .i { width: 20px; height: 20px; }
  .hero-actions .btn:not(.btn-primary) { padding: 0 26px 0 22px; }
  .hero-actions .btn:not(.btn-primary) .i { width: 22px; height: 22px; }
  .hero-visual { margin: 18px 0 0; width: 100%; height: clamp(300px, 64vw, 520px); }
  .hero-stage { left: -8%; right: -8%; top: -16px; bottom: 0; height: auto; }
  .spark-visual { left: auto; right: 4%; top: 0; width: 36px; height: 38px; }
  .hero-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
  .feature-card { grid-template-columns: 58px minmax(0, 1fr); column-gap: 16px; min-height: 0; padding: 18px; border-radius: 20px; }
  .feature-icon { width: 58px; height: 58px; border-radius: 16px; }
  .feature-icon .i { width: 28px; height: 28px; }
  .feature-text { padding-top: 4px; }
  .feature-text b { padding-right: 36px; font-size: 18px; }
  .feature-text span { margin-top: 6px; font-size: 14.5px; line-height: 1.5; }
  .feature-arrow { top: 18px; right: 18px; width: 30px; height: 30px; }
  .feature-arrow .i { width: 16px; height: 16px; }
}
@media (max-width: 640px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-cards { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 104px 0; }
.section > .wrap { position: relative; z-index: 2; }
.section.tight { padding: 64px 0; }
.section.flush-top { padding-top: 0; }
.bg-alt { background: linear-gradient(180deg, rgb(238 242 252 / 0), #eef2fc 22%, #eef2fc 78%, rgb(238 242 252 / 0)); }
.fx-grid::before, .fx-grid-soft::before, .fx-grid-faint::before, .fx-glow::before, .fx-radial::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
}
.fx-radial::before { background: radial-gradient(36% 44% at 50% 36%, rgb(38 103 255 / .06), transparent 72%); }
.fx-glow::before { background: radial-gradient(44% 56% at 50% 58%, rgb(38 103 255 / .06), transparent 72%); }
.fx-grid::before { background: radial-gradient(30% 40% at 94% 34%, #e4eafd, transparent 72%); }
.fx-grid-soft::before { background: radial-gradient(30% 40% at 4% 36%, #e6ecfd, transparent 72%); }
.fx-grid-faint::before { background: radial-gradient(30% 40% at 92% 64%, #e4eafd, transparent 72%); }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 24px; margin-bottom: 44px;
}
.section-head h2 { margin-top: 10px; font-size: 36px; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.section-head .link { margin-bottom: -6px; }
.subsection { padding: 56px 0 8px; }
.subsection .section-head { margin-bottom: 30px; }
.subsection .section-head h2 { font-size: 28px; }
@media (min-width: 768px) {
  .section-head h2 { font-size: 46px; }
  .subsection .section-head h2 { font-size: 34px; }
}
@media (max-width: 720px) {
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 30px; }
}

/* page head (sub pages) */
.pagehead { padding: 20px 0 36px; }
.pagehead .eyebrow {
  height: 34px; padding: 0 16px; border-radius: 999px;
  background: var(--blue-150); color: var(--ink);
  font-size: 13.5px; font-weight: 500; letter-spacing: 0; text-transform: none;
}
.pagehead h1 { margin: 18px 0 14px; font-size: 44px; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.pagehead p { max-width: 46rem; color: var(--muted); font-size: 17.5px; line-height: 1.6; }
@media (min-width: 768px) {
  .pagehead h1 { font-size: 58px; }
  .pagehead p { font-size: 19px; }
}
@media (min-width: 1024px) { .pagehead h1 { font-size: 66px; } }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.stack { display: grid; gap: 24px; }
.list { display: grid; gap: 16px; }
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Cards ---------- */
.panel, .card, .item {
  position: relative;
  transition: translate .5s var(--ease), box-shadow .5s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.panel, .card, .item {
  background: rgb(255 255 255 / .84);
  border: 1px solid rgb(255 255 255 / .95);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-card);
}
a.panel:hover, .card:hover, .item.job:hover { translate: 0 -4px; background: #fff; box-shadow: var(--sh-card-hover); }
.panel { padding: 26px; }
.panel h3, .card h3, .item h3 { margin: 6px 0 8px; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.panel p, .item p { color: var(--muted); }
.panel p + p { margin-top: 10px; }
.panel-foot { margin-top: 14px; }
.panel.glass { background: rgb(255 255 255 / .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.panel.empty { text-align: center; color: var(--muted); }
a.panel { display: block; }
.icon-box, .num-box {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 18px;
  border-radius: 16px; background: var(--blue-100); color: var(--blue);
  transition: scale .5s var(--ease), background-color .4s var(--ease);
}
.num-box { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
a.panel:hover .icon-box, .panel.step:hover .num-box { scale: 1.06; background: #dfe8fe; }
.panel .card-arrow { display: flex; align-items: center; gap: 8px; }
.panel .card-arrow .i { color: var(--muted-2); transition: translate .45s var(--ease), color .3s var(--ease); }
a.panel:hover .card-arrow .i { translate: 2px -2px; color: var(--blue); }

/* creator / media cards */
.card { overflow: hidden; display: flex; flex-direction: column; }
.card-media { display: block; width: 100%; padding: 0; }
.card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 20px 22px 22px; }
.card-body .sub { margin-bottom: 8px; font-size: 14.5px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card h3 a { transition: color .3s var(--ease); }
.card h3 a:hover { color: var(--blue); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.rate { color: var(--ink); font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.rate small { margin-left: 2px; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.card .row { margin-top: 6px; }

.art { position: relative; height: 176px; overflow: hidden; background: #e6edfd; }
.art canvas { width: 100%; height: 100%; transition: scale .9s var(--ease); }
.card:hover .art canvas { scale: 1.04; }
.art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0) 55%, rgb(255 255 255 / .26));
}
.art.lg { height: 320px; border-radius: var(--radius-lg); box-shadow: var(--sh-card); }
.art.dialog-art { height: 270px; border-radius: var(--radius-md); }
.tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  padding: 5px 11px; border-radius: 999px;
  background: rgb(255 255 255 / .84); border: 1px solid rgb(255 255 255 / .95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 700;
  box-shadow: var(--sh-xs);
}

/* list items (commissions) */
.item { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 26px; }
.item-main { min-width: 0; }
.item-main p { margin: 2px 0 14px; max-width: 74ch; }
.item h3 a { transition: color .3s var(--ease); }
.item h3 a:hover { color: var(--blue); }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex: none; }
.price { color: var(--ink); font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.price-xl { margin: 10px 0 14px; color: var(--ink); font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.035em; }
.price-xl small { font-size: 15px; font-weight: 500; letter-spacing: 0; }
@media (max-width: 720px) {
  .item { flex-wrap: wrap; align-items: flex-start; }
  .item-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ---------- Stats band ---------- */
.stats {
  display: grid; gap: 28px; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 34px;
  background: rgb(255 255 255 / .74); border: 1px solid #fff; border-radius: var(--radius-xl);
  box-shadow: var(--sh-card);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.stats-label { margin-bottom: 18px; }
.stat { text-align: center; }
.stat b { display: block; margin-bottom: 8px; font-size: 48px; line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 1023px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { gap: 24px 12px; padding: 26px 14px; } .stat b { font-size: 36px; } .stat span { font-size: 13.5px; } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; width: 100%; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 20s) linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee .chip { margin: 0 6px; min-height: 48px; padding: 10px 22px; font-size: 15px; box-shadow: var(--sh-xs); }

/* ---------- Accordion (FAQ) ---------- */
.accordion {
  padding: 6px 26px;
  background: rgb(255 255 255 / .84); border: 1px solid #fff; border-radius: var(--radius-lg);
  box-shadow: var(--sh-card);
}
.acc-item { border-bottom: 1px solid #edf0f7; }
.acc-item:last-child { border-bottom: 0; }
.acc-h { margin: 0; font: inherit; letter-spacing: 0; }
.acc-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 20px 0; text-align: left;
  color: var(--ink); font-size: 17px; line-height: 1.45; font-weight: 700;
}
.acc-trigger:focus { outline: none; }
.acc-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.acc-trigger .i {
  width: 32px; height: 32px; padding: 6px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue);
  transition: rotate .5s var(--ease), background-color .3s var(--ease);
}
.acc-trigger:hover .i { background: var(--blue-100); }
.acc-item.open .acc-trigger .i { rotate: 180deg; background: var(--blue-100); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; min-height: 0; }
.acc-content { padding-bottom: 20px; color: var(--muted); }
.acc-content p + p { margin-top: 10px; }
.accordion.compact { padding: 0 20px; }
.accordion.compact .acc-trigger { padding: 13px 0; font-size: 15px; }
.accordion.compact .acc-trigger .i { width: 28px; height: 28px; padding: 5px; }
.accordion.compact .acc-content { color: var(--ink-2); }
@media (min-width: 768px) { .accordion { padding: 10px 32px; } .accordion.compact { padding: 0 24px; } }
.faq-wrap { max-width: 56rem; }

/* ---------- Carousel (reviews) ---------- */
.carousel { position: relative; max-width: 56rem; margin: 0 auto; touch-action: pan-y; }
.carousel-viewport { overflow: hidden; border-radius: var(--radius-xl); }
.carousel-track { display: flex; transition: transform .8s var(--ease); }
.slide { flex: 0 0 100%; min-width: 0; padding: 4px 16px 28px; }
.quote-card {
  padding: 36px;
  background: rgb(255 255 255 / .86); border: 1px solid #fff; border-radius: var(--radius-xl);
  box-shadow: var(--sh-card);
}
.quote-card blockquote { margin: 14px 0 26px; color: var(--ink); font-size: 21px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.quote-card figcaption { display: flex; align-items: center; gap: 12px; }
.quote-card figcaption b { display: block; color: var(--ink); font-weight: 700; }
.quote-card figcaption small { display: block; color: var(--muted); font-size: 14px; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(160deg, #edf2fe, #dbe5fd); color: var(--blue);
  font-size: 13px; font-weight: 800;
}
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: #cdd6ee; transition: width .5s var(--ease), background-color .3s var(--ease); }
.dot:hover { background: #aebce0; }
.dot.active { width: 26px; background: var(--blue); }
.carousel-arrow {
  position: absolute; top: calc(50% - 20px); transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgb(255 255 255 / .9); border: 1px solid #fff; color: var(--ink);
  box-shadow: var(--sh-sm);
  transition: translate .45s var(--ease), box-shadow .45s var(--ease), color .3s var(--ease);
}
.carousel-arrow:hover { translate: 0 -2px; box-shadow: var(--sh-md); color: var(--blue); }
.carousel-arrow.prev { left: -12px; }
.carousel-arrow.next { right: -12px; }
@media (min-width: 768px) { .carousel-arrow.prev { left: -48px; } .carousel-arrow.next { right: -48px; } }

/* ---------- Numbered steps ---------- */
.step .num-box { margin-bottom: 18px; }
.step h3 { margin: 8px 0 10px; font-size: 23px; line-height: 1.25; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 64rem; align-items: start; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan {
  overflow: hidden;
  background: rgb(255 255 255 / .86); border: 1px solid #fff; border-radius: var(--radius-xl);
  box-shadow: var(--sh-card);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.plan:hover { translate: 0 -5px; box-shadow: var(--sh-card-hover); }
.plan.popular { box-shadow: 0 0 0 2px var(--blue), 0 26px 60px -30px rgb(38 103 255 / .6); }
.plan.popular:hover { box-shadow: 0 0 0 2px var(--blue), 0 34px 70px -30px rgb(38 103 255 / .7); }
.plan-flag { padding: 8px 0; text-align: center; background: linear-gradient(90deg, #2667ff, #4d84ff); color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; }
.plan-body { padding: 28px; }
.plan h3 { margin: 6px 0 4px; font-size: 24px; }
.plan-price { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 8px; }
.plan-price b { color: var(--ink); font-size: 40px; line-height: 1.05; font-weight: 800; letter-spacing: -.04em; }
.plan-price span { margin-bottom: 5px; color: var(--muted); }
.plan-body > p { margin-bottom: 24px; color: var(--muted); }
.plan-features { display: grid; gap: 12px; margin-bottom: 30px; }
.plan-features li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); }
.plan-features li.off { color: #a0a8bd; }
.tick { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--blue-100); color: var(--blue); }
.plan-features li.off .tick { background: #f0f2f7; }
.plan .btn { width: 100%; min-height: 48px; }
.plan-extra { margin-top: 20px; padding: 18px; border-radius: var(--radius-md); background: var(--blue-50); border: 1px solid var(--blue-100); }

/* ---------- CTA band ---------- */
.cta-section { padding: 24px 0 112px; }
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
  padding: 46px 50px; border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(60% 120% at 100% 0%, rgb(255 255 255 / .2), transparent 62%),
    linear-gradient(115deg, #2163fb, #3a7bff 55%, #6c9dff);
  box-shadow: 0 30px 60px -30px rgb(38 103 255 / .65);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: rgb(255 255 255 / .1);
}
.cta-band::before { width: 420px; height: 420px; right: -110px; top: -190px; animation: drift 17s ease-in-out infinite alternate; }
.cta-band::after { width: 300px; height: 300px; left: 30%; bottom: -220px; animation: drift-b 21s ease-in-out infinite alternate; }
.cta-copy { display: flex; align-items: center; gap: 22px; flex: 1 1 420px; min-width: 0; }
.cta-band h2 { color: #fff; font-size: 34px; line-height: 1.1; letter-spacing: -.035em; text-wrap: balance; }
@media (min-width: 768px) { .cta-band h2 { font-size: 42px; } }
.cta-band .logo-mark.lg { background: #fff; color: var(--blue); box-shadow: 0 12px 26px -12px rgb(10 30 90 / .45); }
.cta-band .actions { margin: 0; }
.cta-band .btn { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .34); color: #fff; box-shadow: none; }
.cta-band .btn:hover { background: rgb(255 255 255 / .22); border-color: rgb(255 255 255 / .5); }
.cta-band .btn-primary { background: #fff; border-color: #fff; color: var(--blue); box-shadow: 0 12px 26px -12px rgb(10 30 90 / .5); }
.cta-band .btn-primary:hover { background: #fff; border-color: #fff; }
@media (max-width: 640px) {
  .cta-band { padding: 30px 24px; border-radius: 26px; }
  .cta-copy { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cta-band h2 { font-size: 28px; }
  .cta-band .actions { width: 100%; }
  .cta-band .actions .btn { flex: 1 1 100%; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 8px; margin: 0 0 16px; color: var(--ink); font-size: 14px; line-height: 1.2; font-weight: 600; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; height: 46px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink);
  font-size: 15px; line-height: 22px; font-weight: 500;
  box-shadow: var(--sh-xs);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
textarea { height: auto; min-height: 112px; resize: vertical; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #9aa3ba; opacity: 1; font-weight: 400; }
input:not([type=checkbox]):hover, select:hover, textarea:hover { border-color: #c4cee8; }
input:not([type=checkbox]):focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgb(38 103 255 / .14);
}
select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6480' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.form > .btn { margin-top: 8px; }
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; }
.tools > select { width: auto; min-width: 190px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 16px; margin: 0; align-items: end; }
.search-field { position: relative; flex: 1 1 260px; display: block; }
.search-field .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.search-field input:not([type=checkbox]) { padding-left: 40px; }
.filters { margin-bottom: 20px; }
.count { margin: 8px 0 16px; color: var(--muted); font-size: 14px; }
.load-more { display: flex; justify-content: center; margin-top: 26px; }

.check-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; color: var(--ink-2); cursor: pointer; }
.check {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 20px; height: 20px; margin: 2px 0 0; border-radius: 7px;
  border: 1.5px solid #c3cce4; background: #fff; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.check:hover { border-color: var(--blue); }
.check:checked {
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
  border-color: var(--blue);
  box-shadow: 0 4px 10px -4px rgb(38 103 255 / .6);
}
.check:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; border-bottom: 1px solid #edf0f7; color: var(--ink); font-weight: 600; }
.switch-row:last-of-type { border-bottom: 0; }
.switch-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 500; }
.switch {
  position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px;
  border: 2px solid transparent; background: #d5dcef;
  transition: background-color .35s var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgb(18 34 84 / .2);
  transition: transform .45s var(--ease);
}
input:checked + .switch { background: var(--blue); }
input:checked + .switch::after { transform: translateX(20px); }
input:focus-visible + .switch { box-shadow: 0 0 0 4px rgb(38 103 255 / .2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { height: 46px; padding: 0 16px; text-align: left; color: var(--muted); font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 16px; border-bottom: 1px solid #eef1f8; color: var(--ink-2); }
.table tbody th { color: var(--ink); }
.table tbody tr { transition: background-color .25s var(--ease); }
.table tbody tr:hover { background: var(--blue-50); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.rank { color: var(--blue); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Compare bar ---------- */
.compare-bar {
  position: sticky; bottom: 16px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 24px; padding: 12px 12px 12px 22px;
  border-radius: var(--radius-lg); border: 1px solid #fff;
  background: rgb(255 255 255 / .88); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: var(--sh-lg), var(--ring);
}

/* ---------- Dialog ---------- */
.modal {
  width: min(560px, calc(100vw - 32px)); max-height: 88dvh;
  padding: 0; margin: auto; overflow: visible;
  color: var(--ink-2); background: transparent; border: 0;
}
.modal.wide { width: min(740px, calc(100vw - 32px)); }
.modal::backdrop { background: rgb(15 27 61 / .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-inner {
  position: relative; max-height: 88dvh; overflow-y: auto;
  padding: 28px; border-radius: 26px;
  background: rgb(255 255 255 / .96); border: 1px solid #fff;
  box-shadow: 0 40px 90px -30px rgb(20 40 100 / .45), var(--ring);
}
.modal[open] { animation: dialog-in .45s var(--ease); }
.modal[open]::backdrop { animation: fade-in .35s var(--ease); }
.modal.closing { animation: dialog-out .24s var(--ease-io) forwards; }
.modal.closing::backdrop { animation: fade-out .24s var(--ease-io) forwards; }
.dialog-title { margin: 0 44px 12px 0; font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.dialog-close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #f0f3fb; color: var(--muted);
  transition: background-color .3s var(--ease), color .3s var(--ease), rotate .5s var(--ease);
}
.dialog-close:hover { background: #e6ebf8; color: var(--ink); rotate: 90deg; }
.modal-inner > p, .modal-body > p { margin-bottom: 12px; color: var(--muted); }
.modal-body .actions { margin-top: 16px; }
.banner {
  display: grid; place-items: center; aspect-ratio: 16 / 7; margin-bottom: 18px;
  border-radius: 18px; color: #fff;
  background:
    radial-gradient(60% 90% at 82% 8%, rgb(255 255 255 / .26), transparent 62%),
    linear-gradient(120deg, #2163fb, #5a8dff);
}
.banner svg { width: 76px; height: 76px; filter: drop-shadow(0 8px 18px rgb(10 30 90 / .35)); }
.pre { white-space: pre-wrap; padding: 16px; border-radius: 14px; background: #f5f7fd; border: 1px solid var(--line); color: var(--ink); font: 400 14px/1.65 var(--font-mono); }

/* command palette */
.cmdk { margin: 6px -28px -28px; border-top: 1px solid var(--line); }
.cmdk-input-wrap { display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--muted-2); }
.cmdk-input-wrap input:not([type=checkbox]) { height: 56px; border: 0; background: transparent; padding: 0; box-shadow: none !important; font-size: 16px; }
.cmdk-list { max-height: min(380px, 52dvh); overflow-y: auto; padding: 10px; }
.cmdk-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; border-radius: 12px;
  color: var(--ink); font-size: 14.5px; font-weight: 500; text-align: left;
  transition: background-color .25s var(--ease);
}
.cmdk-item:hover, .cmdk-item:focus { background: var(--blue-50); outline: none; }
.cmdk-item .eyebrow { min-width: 92px; font-size: 10.5px; }
.cmdk-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Toasts ---------- */
.toaster {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  display: flex; flex-direction: column-reverse; gap: 8px;
  padding: 16px; pointer-events: none;
}
@media (min-width: 640px) {
  .toaster { top: auto; left: auto; bottom: 0; right: 0; flex-direction: column; width: 100%; max-width: 420px; padding: 20px; }
}
.toast {
  position: relative; pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; overflow: hidden;
  padding: 18px 40px 18px 20px;
  border-radius: 18px; border: 1px solid #fff;
  background: rgb(255 255 255 / .96); color: var(--ink);
  box-shadow: var(--sh-lg), var(--ring);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: toast-in-top .5s var(--ease);
}
@media (min-width: 640px) { .toast { animation-name: toast-in-bottom; } }
.toast.out { animation: toast-out .28s var(--ease-io) forwards; }
.toast-title { color: var(--ink); font-size: 14.5px; font-weight: 700; }
.toast-desc { color: var(--muted); font-size: 14px; }
.toast-close {
  position: absolute; top: 10px; right: 10px; padding: 4px; border-radius: 8px;
  color: var(--muted-2); opacity: 0;
  transition: opacity .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.toast:hover .toast-close, .toast-close:focus-visible { opacity: 1; }
.toast-close:hover { color: var(--ink); background: #f0f3fb; }

/* ---------- Scroll to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  display: inline-flex; padding: 13px; border-radius: 50%;
  background: rgb(255 255 255 / .92); border: 1px solid #fff; color: var(--blue);
  box-shadow: var(--sh-md);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .45s var(--ease), transform .5s var(--ease), translate .45s var(--ease), box-shadow .45s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { translate: 0 -3px; box-shadow: var(--sh-lg); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; padding: 72px 0 36px;
  background: linear-gradient(180deg, rgb(255 255 255 / .5), rgb(255 255 255 / .92));
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; gap: 40px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.footer-brand { grid-column: span 2; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { max-width: 24rem; margin-bottom: 24px; color: var(--muted); }
.socials { display: flex; gap: 12px; }
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--sh-xs);
  transition: translate .45s var(--ease), box-shadow .45s var(--ease), color .3s var(--ease);
}
.social:hover { translate: 0 -2px; color: var(--blue); box-shadow: var(--sh-sm); }
.footer-col h3 { margin-bottom: 16px; font-size: 15px; letter-spacing: 0; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--muted); transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
  color: var(--muted-2); font-size: 14px;
}
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Scroll reveal (one way: soft rise and un-blur) ---------- */
.reveal {
  opacity: 0; transform: translateY(24px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease), translate .5s var(--ease), box-shadow .5s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; filter: none; }
.grid > .reveal:nth-child(3n + 2) { transition-delay: .08s, .08s, .08s, 0s, 0s, 0s, 0s; }
.grid > .reveal:nth-child(3n) { transition-delay: .16s, .16s, .16s, 0s, 0s, 0s, 0s; }

/* ---------- Misc ---------- */
.notice { padding: 16px 18px; border-radius: var(--radius-md); background: rgb(255 255 255 / .7); border: 1px dashed var(--line-2); color: var(--muted); font-size: 14.5px; }
.preview-card h2 { margin: 10px 0 6px; font-size: 30px; letter-spacing: -.03em; }
.preview-card h3 { margin-top: 16px; }
.preview-card .bio { margin-top: 12px; white-space: pre-wrap; }
.mt-24 { margin-top: 24px; }
.narrow { max-width: 40rem; }
.narrow-lg { max-width: 48rem; }
.modal-body > .lead-text { margin: 8px 0 12px; color: var(--ink); font-size: 18px; line-height: 1.55; font-weight: 600; }
.item-actions { margin: 0; }
.op { color: var(--ok); }
noscript p { padding: 160px 24px; text-align: center; color: var(--muted); }

/* ---------- Keyframes ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(14px, -16px, 0); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-16px, 12px, 0); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes dialog-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes toast-in-bottom { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@keyframes toast-in-top { from { opacity: 0; transform: translateY(-16px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }

/* ---------- Reduced motion & "Ambient motion" off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .hero-animate { opacity: 1; transform: none; filter: none; }
  .swoosh { clip-path: none; }
  .spark path { opacity: 1; transform: none; }
  .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 12px; animation: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
  .marquee-group[aria-hidden] { display: none; }
}
.motion-off { scroll-behavior: auto; }
.motion-off *, .motion-off *::before, .motion-off *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
.motion-off .reveal, .motion-off .hero-animate { opacity: 1; transform: none; filter: none; }
.motion-off .swoosh { clip-path: none; }
.motion-off .spark path { opacity: 1; transform: none; }
.motion-off .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; }
.motion-off .marquee-group { flex-wrap: wrap; justify-content: center; row-gap: 12px; }
.motion-off .marquee-group[aria-hidden] { display: none; }
