/* ==========================================================================
   BizPulse design system
   Single stylesheet, no runtime build step required.
   Tailwind is available for development (see tailwind.config.js); the tokens
   below mirror that config so either approach produces the same result.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light;

  --ink:        #070B15;
  --navy:       #0D1526;
  --navy-soft:  #16203A;

  --blue:       #2563EB;
  --blue-bright:#3B82F6;
  --blue-deep:  #1D4ED8;
  --blue-wash:  #EEF3FE;

  --violet:     #6D28D9;
  --violet-soft:#7C3AED;
  --violet-wash:#F3EEFE;

  --green:      #047857;
  --green-wash: #E7F5EF;
  --amber:      #B45309;
  --amber-wash: #FDF3E3;
  --red:        #B91C1C;
  --red-wash:   #FDECEC;

  --paper:      #FFFFFF;
  --mist:       #F6F8FC;
  --mist-2:     #EDF1F8;
  --line:       #E2E8F2;
  --line-soft:  #EDF1F7;
  --text:       #0B1220;
  --text-2:     #3D4759;
  --muted:      #626C80;

  --surface:    #FFFFFF;
  --surface-2:  #F9FBFE;
  --shadow-sm:  0 1px 2px rgba(11, 18, 32, .05);
  --shadow-md:  0 8px 24px -12px rgba(11, 18, 32, .18);
  --shadow-lg:  0 32px 64px -32px rgba(11, 18, 32, .28);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  --w:     1200px;
  --w-wide:1360px;
  --gutter: 24px;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --blue:       #4F8BFF;
  --blue-bright:#6BA1FF;
  --blue-deep:  #2563EB;
  --blue-wash:  #14213C;
  --violet:     #A78BFA;
  --violet-wash:#1E1937;
  --green:      #34D399;
  --green-wash: #0E2A22;
  --amber:      #FBBF24;
  --amber-wash: #2B2110;
  --red:        #F87171;
  --red-wash:   #2C1618;

  --paper:      #060A12;
  --mist:       #0A1120;
  --mist-2:     #0F1829;
  --line:       #1C2740;
  --line-soft:  #16203A;
  --text:       #E9EEF8;
  --text-2:     #B7C1D4;
  --muted:      #8592A8;

  --surface:    #0B1322;
  --surface-2:  #0E1729;
  --shadow-sm:  0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md:  0 10px 30px -14px rgba(0, 0, 0, .7);
  --shadow-lg:  0 36px 70px -36px rgba(0, 0, 0, .8);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 600; transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--w); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: var(--w-wide); }
.wrap--narrow { max-width: 820px; }

.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--flush-top { padding-top: 0; }
.section--dark { background: var(--ink); color: #E9EEF8; }
.section--mist { background: var(--mist); }
.section--edge { border-top: 1px solid var(--line); }

[data-theme="dark"] .section--dark { background: #04070E; }

.section--dark { --text: #E9EEF8; --text-2: #AEBBD1; --muted: #8493AC; --line: #1E2B45; --line-soft: #17223A; --surface: #0C1526; --surface-2: #101B2F; --paper: #070B15; }

.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)); }
.grid-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.grid-split--reverse > :first-child { order: 2; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .grid-split--reverse > :first-child { order: 0; }
}
@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  :root { --gutter: 20px; }
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* --- Type ----------------------------------------------------------------- */
.display {
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 700;
}
.h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.65rem); line-height: 1.14; letter-spacing: -.028em; }
.h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.25; letter-spacing: -.018em; }
.h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.012em; }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--text-2); }
.body { color: var(--text-2); }
.small { font-size: .9375rem; color: var(--muted); line-height: 1.6; }
.tiny { font-size: .8125rem; color: var(--muted); line-height: 1.55; }
.measure { max-width: 62ch; }
.measure-sm { max-width: 48ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55;
}
.eyebrow--violet { color: var(--violet); }
.eyebrow--plain::before { display: none; }

.index {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .1em;
  color: var(--muted); font-weight: 500;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--blue); }
.text-muted { color: var(--muted); }

/* Section header block ------------------------------------------------------ */
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head__title { margin-top: 18px; }
.sec-head__body { margin-top: 20px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: .95rem; letter-spacing: -.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .28s var(--ease), background-color .2s ease, border-color .2s ease, box-shadow .28s var(--ease);
  will-change: transform;
  text-align: center;
}
.btn:hover { background: var(--blue-deep); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { background: var(--mist); border-color: var(--muted); box-shadow: none; }

.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { background: var(--navy); }

.btn--light { --btn-bg: #fff; --btn-fg: #0B1220; }
.btn--light:hover { background: #EDF1F7; }

.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--sm { padding: 9px 15px; font-size: .85rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .9375rem; color: var(--blue);
}
.link-arrow .arw { transition: transform .3s var(--ease); }
.link-arrow:hover .arw { transform: translateX(4px); }

/* --- Header --------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.header.is-stuck {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--line);
}
@supports not (backdrop-filter: blur(2px)) { .header.is-stuck { background: var(--paper); } }

.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 1.075rem; }
.brand__mark { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.brand__name em { font-style: normal; color: var(--blue); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border-radius: var(--r-xs);
  font-size: .9375rem; font-weight: 500; color: var(--text-2);
  transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover, .nav__item:focus-within .nav__link { color: var(--text); background: var(--mist); }
.nav__link[aria-current="true"], .nav__link.is-active { color: var(--blue); }
.nav__chev { transition: transform .25s var(--ease); opacity: .6; }
.nav__item[data-open="true"] .nav__chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: 100%; left: 50%;
  margin-top: 10px;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  display: grid; gap: 2px;
  /* Closed by default in CSS, so a JavaScript failure can never leave every
     menu hanging open. Alpine only mirrors the state into aria-expanded. */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity .18s var(--ease), transform .22s var(--ease), visibility .18s linear;
}
/* Bridges the 10px gap so the pointer can travel from the link to the panel. */
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }

.nav__item:hover > .mega,
.nav__item:focus-within > .mega,
.nav__item[data-open="true"] > .mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega--2 { min-width: 620px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mega__link { display: block; padding: 11px 13px; border-radius: var(--r-sm); transition: background-color .18s ease; }
.mega__link:hover { background: var(--mist); }
.mega__label { font-weight: 600; font-size: .9375rem; }
.mega__blurb { font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.mega__foot {
  grid-column: 1 / -1; margin-top: 6px; padding: 12px 13px 6px;
  border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}

.header__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: transparent; cursor: pointer; color: var(--text-2);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.theme-toggle:hover { background: var(--mist); color: var(--text); }

.burger {
  display: none; width: 40px; height: 40px; place-items: center;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: transparent; cursor: pointer;
}

.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 80;
  background: var(--paper);
  overflow-y: auto;
  padding: 20px var(--gutter) 40px;
  border-top: 1px solid var(--line);
}
.drawer__group + .drawer__group { margin-top: 8px; }
.drawer__toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; background: none; border: 0; border-bottom: 1px solid var(--line-soft);
  font-size: 1.05rem; font-weight: 600; cursor: pointer;
}
.drawer__panel { padding: 6px 4px 14px; display: grid; gap: 2px; }
.drawer__link { padding: 10px 8px; border-radius: var(--r-sm); font-size: .95rem; color: var(--text-2); }
.drawer__link:hover { background: var(--mist); color: var(--text); }
.drawer__actions { margin-top: 24px; display: grid; gap: 10px; }

@media (max-width: 1080px) {
  .nav, .header__actions .btn--nav, .header__actions .signin { display: none; }
  .burger { display: grid; }
}
@media (min-width: 1081px) { .drawer { display: none !important; } }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto; height: 720px;
  background:
    radial-gradient(60% 55% at 18% 42%, color-mix(in srgb, var(--blue) 12%, transparent), transparent 70%),
    radial-gradient(45% 45% at 82% 30%, color-mix(in srgb, var(--violet) 8%, transparent), transparent 70%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; position: relative; }
@media (max-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } }

.hero__title { margin-top: 22px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__body { margin-top: 24px; }
.hero__cta { margin-top: 32px; }
.hero__sub { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.hero__note { margin-top: 10px; }

.hero__stage { position: relative; min-height: 380px; }
.hero__canvas { position: absolute; inset: -8% -6%; z-index: 0; opacity: .9; }
.hero__svg { position: relative; z-index: 1; width: 100%; height: auto; }

/* --- Cards / surfaces ------------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .35s var(--ease), border-color .3s ease, box-shadow .35s var(--ease);
}
.card--hover:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); box-shadow: var(--shadow-md); }
.card__title { margin-top: 16px; }
.card__body { margin-top: 10px; }
.card__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--blue-wash); color: var(--blue); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.panel__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.panel__dots { display: flex; gap: 5px; }
.panel__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.panel__title { font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.panel__meta { margin-left: auto; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.panel__body { padding: 20px; }

.figure-note {
  margin-top: 14px; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}

/* --- Badges / status ------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: -.005em;
  background: var(--mist-2); color: var(--text-2);
  border: 1px solid transparent;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge--blue   { background: var(--blue-wash);   color: var(--blue); }
.badge--violet { background: var(--violet-wash); color: var(--violet); }
.badge--green  { background: var(--green-wash);  color: var(--green); }
.badge--amber  { background: var(--amber-wash);  color: var(--amber); }
.badge--red    { background: var(--red-wash);    color: var(--red); }
.badge--pulse .badge__dot { animation: pulse-dot 2.4s var(--ease) infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}

/* --- Value strip ----------------------------------------------------------- */
.value-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.value-strip__grid {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
}
.value-strip__item {
  padding: 26px 22px;
  border-right: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.value-strip__item:last-child { border-right: 0; }
.value-strip__label { font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.value-strip__note { font-size: .8125rem; color: var(--muted); }
.value-strip__foot { padding: 14px 22px; border-top: 1px solid var(--line-soft); }
@media (max-width: 1024px) { .value-strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .value-strip__item:nth-child(3n) { border-right: 0; } }
@media (max-width: 640px) { .value-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .value-strip__item:nth-child(3n) { border-right: 1px solid var(--line-soft); } .value-strip__item:nth-child(2n) { border-right: 0; } }

/* --- Problem cards --------------------------------------------------------- */
.problem { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.problem__item { padding: 32px 26px 36px; border-right: 1px solid var(--line); }
.problem__item:last-child { border-right: 0; }
.problem__num { font-family: var(--mono); font-size: .8rem; color: var(--blue); letter-spacing: .12em; }
.problem__title { margin-top: 20px; font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.problem__body { margin-top: 12px; font-size: .9375rem; color: var(--text-2); }
.problem__art { margin-top: 26px; }
@media (max-width: 1024px) { .problem { grid-template-columns: repeat(2, minmax(0, 1fr)); } .problem__item:nth-child(2n) { border-right: 0; } .problem__item { border-bottom: 1px solid var(--line); } }
@media (max-width: 640px) { .problem { grid-template-columns: minmax(0, 1fr); } .problem__item { border-right: 0; } }

/* --- Steps ----------------------------------------------------------------- */
.steps { display: grid; gap: 0; position: relative; }
.step {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px; align-items: start;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--mono); font-size: .82rem; color: var(--muted); letter-spacing: .12em; padding-top: 4px; }
.step__title { font-size: 1.35rem; font-weight: 700; letter-spacing: -.024em; }
.step__body { color: var(--text-2); font-size: .9375rem; }
.step__marker { position: absolute; left: 62px; top: 32px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.step.is-in .step__marker { background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent); }
@media (max-width: 820px) {
  .step { grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
  .step__body { grid-column: 2; }
  .step__marker { display: none; }
}

/* --- Flow / pipeline ------------------------------------------------------- */
.flow { display: grid; gap: 12px; }
.flow__node {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
}
.flow__node--active { border-color: color-mix(in srgb, var(--blue) 50%, var(--line)); background: color-mix(in srgb, var(--blue) 4%, var(--surface)); }
.flow__node--ai { border-color: color-mix(in srgb, var(--violet) 42%, var(--line)); background: color-mix(in srgb, var(--violet) 4%, var(--surface)); }
.flow__step { font-family: var(--mono); font-size: .72rem; color: var(--muted); padding-top: 3px; }
.flow__label { font-weight: 600; font-size: .9375rem; }
.flow__text { font-size: .875rem; color: var(--text-2); margin-top: 4px; }
.flow__arrow { display: grid; place-items: center; color: var(--line); }

/* --- Product UI mock ------------------------------------------------------- */
.ui { font-size: .875rem; }
.ui__row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.ui__row:last-child { border-bottom: 0; }
.ui__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--mist-2); display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--text-2); flex: none; }
.ui__stars { color: #E0A422; letter-spacing: 1px; font-size: .8rem; }
.ui__name { font-weight: 600; font-size: .875rem; }
.ui__time { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.ui__quote { color: var(--text-2); font-size: .875rem; line-height: 1.55; }
.ui__reply {
  margin-top: 12px; padding: 14px; border-radius: var(--r-md);
  border: 1px dashed color-mix(in srgb, var(--violet) 40%, var(--line));
  background: color-mix(in srgb, var(--violet) 4%, transparent);
}
.ui__label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ui__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: .8rem; font-weight: 500; color: var(--text-2); background: var(--surface);
  cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"], .chip.is-on { border-color: var(--blue); color: var(--blue); background: var(--blue-wash); }

.kv { display: grid; gap: 0; }
.kv__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .875rem; }
.kv__row:last-child { border-bottom: 0; }
.kv__k { color: var(--muted); }
.kv__v { font-weight: 600; font-variant-numeric: tabular-nums; }

/* Metric card */
.metric { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.metric__label { font-size: .8125rem; color: var(--muted); }
.metric__value { font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.metric__delta { font-size: .8125rem; font-weight: 600; margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; }
.metric__delta--up { color: var(--green); }
.metric__delta--down { color: var(--red); }
.metric__delta--flat { color: var(--muted); }

/* Calendar */
.cal { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cal__head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--surface-2); border-bottom: 1px solid var(--line-soft); }
.cal__head span { padding: 9px 6px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--muted); text-align: center; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal__day { min-height: 64px; padding: 7px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.cal__day:nth-child(7n) { border-right: 0; }
.cal__pill { margin-top: 6px; padding: 3px 6px; border-radius: 5px; font-family: var(--font); font-size: .68rem; font-weight: 600; line-height: 1.3; }
.cal__pill--blue { background: var(--blue-wash); color: var(--blue); }
.cal__pill--violet { background: var(--violet-wash); color: var(--violet); }
.cal__pill--green { background: var(--green-wash); color: var(--green); }
.cal__pill--amber { background: var(--amber-wash); color: var(--amber); }

/* Bars / charts */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 132px; }
.bars__bar { flex: 1; background: color-mix(in srgb, var(--blue) 28%, transparent); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.bars__bar--hi { background: var(--blue); }
.split-bar { height: 8px; border-radius: 999px; background: var(--mist-2); overflow: hidden; display: flex; }
.split-bar i { display: block; height: 100%; }
.split-bar i:first-child { background: var(--blue); }
.split-bar i:last-child { background: color-mix(in srgb, var(--blue) 24%, transparent); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: block; }

/* Score dial */
.score { display: flex; align-items: center; gap: 24px; }
.score__val { font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.score__max { font-size: 1rem; color: var(--muted); font-weight: 500; }

/* Creative style thumbnails */
.styles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1024px) { .styles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.style-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); transition: transform .35s var(--ease), border-color .3s ease; }
.style-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.style-card__name { padding: 12px 14px; font-size: .8125rem; font-weight: 600; }

/* Pricing */
.pricing { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: start; }
@media (max-width: 940px) { .pricing { grid-template-columns: minmax(0, 1fr); } }
.price-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-md); }
.price-card__head { padding: 32px 32px 28px; border-bottom: 1px solid var(--line); }
.price-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-split__cell { padding: 26px 32px; }
.price-split__cell + .price-split__cell { border-left: 1px solid var(--line); }
.price-split__label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-split__amount { font-size: clamp(2.1rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -.04em; margin-top: 10px; line-height: 1; }
.price-split__note { margin-top: 10px; font-size: .875rem; color: var(--text-2); }
.price-split__cell--renewal { background: var(--surface-2); }
@media (max-width: 560px) {
  .price-split { grid-template-columns: minmax(0, 1fr); }
  .price-split__cell + .price-split__cell { border-left: 0; border-top: 1px solid var(--line); }
}
.price-card__foot { padding: 26px 32px 32px; border-top: 1px solid var(--line); }
.incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 20px; }
@media (max-width: 560px) { .incl { grid-template-columns: minmax(0, 1fr); } }
.incl li { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; font-size: .9rem; color: var(--text-2); }
.incl svg { flex: none; color: var(--green); transform: translateY(2px); }

/* ROI calculator */
.roi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 940px) { .roi { grid-template-columns: minmax(0, 1fr); } }
.field { display: block; margin-bottom: 20px; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .875rem; font-weight: 600; margin-bottom: 8px; }
.field__hint { font-weight: 400; color: var(--muted); font-size: .8125rem; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
  font: inherit; font-size: .9375rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent);
}
.textarea { min-height: 110px; resize: vertical; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--red); }
.field__error { display: block; margin-top: 6px; font-size: .8125rem; color: var(--red); font-weight: 500; }

input[type="range"] { width: 100%; accent-color: var(--blue); height: 24px; }

.roi__out { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.roi__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.roi__row:last-child { border-bottom: 0; }
.roi__k { font-size: .9rem; color: var(--text-2); }
.roi__v { font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.roi__v--lg { font-size: 1.9rem; }
.roi__row--hi { background: var(--blue-wash); }
[data-theme="dark"] .roi__row--hi { background: color-mix(in srgb, var(--blue) 12%, transparent); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; gap: 20px; align-items: flex-start; justify-content: space-between;
  padding: 22px 4px; background: none; border: 0; cursor: pointer;
  text-align: left; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.4;
}
.faq__q:hover { color: var(--blue); }
.faq__icon { flex: none; margin-top: 4px; transition: transform .3s var(--ease); color: var(--muted); }
.faq__item[data-open="true"] .faq__icon { transform: rotate(45deg); color: var(--blue); }
.faq__a { padding: 0 4px 24px; max-width: 74ch; color: var(--text-2); font-size: .95rem; }
.faq__a p + p { margin-top: 12px; }

/* CTA band */
.cta-band {
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--ink) 0%, #101E3A 55%, #16264A 100%);
  color: #EAF0FA;
  padding: clamp(40px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -10%; top: -60%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(59,130,246,.28), transparent 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band .lead { color: #B9C6DC; }
.cta-band .small { color: #93A3BD; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--surface-2); padding: 72px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 1024px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer__col h3 { font-size: .78rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer__col li a { display: block; padding: 5px 0; font-size: .9rem; color: var(--text-2); transition: color .2s ease; }
.footer__col li a:hover { color: var(--blue); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }

/* Breadcrumbs */
.breadcrumbs { padding: 20px 0 0; }
.breadcrumbs__list { display: flex; flex-wrap: wrap; gap: 8px; font-size: .8125rem; color: var(--muted); }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumbs__item a:hover { color: var(--blue); }

/* Notices */
.notice { padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface-2); font-size: .9375rem; }
.notice--ok { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); background: var(--green-wash); color: var(--green); }
.notice--err { border-color: color-mix(in srgb, var(--red) 40%, var(--line)); background: var(--red-wash); color: var(--red); }
.notice--info { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); background: var(--blue-wash); color: var(--blue-deep); }

.callout {
  border-left: 2px solid var(--blue);
  padding: 6px 0 6px 20px;
  color: var(--text-2);
}
.callout--violet { border-left-color: var(--violet); }

/* Quiet rule used as a section divider inside content */
.rule { height: 1px; background: var(--line); margin: 40px 0; }

/* Tag list */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: .8125rem; color: var(--text-2); background: var(--surface);
}

/* Scale ladder */
.ladder { display: grid; gap: 10px; }
.ladder__row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.ladder__label { font-family: var(--mono); font-size: .8rem; color: var(--text-2); }
.ladder__track { height: 34px; border-radius: var(--r-xs); background: var(--mist-2); overflow: hidden; }
.ladder__fill { height: 100%; width: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 65%, transparent), var(--blue)); border-radius: var(--r-xs); }
.ladder__n { font-family: var(--mono); font-size: .8rem; color: var(--muted); }

/* Admin nav mock */
.admin-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 820px) { .admin-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.admin-nav__item { background: var(--surface); padding: 14px 16px; font-size: .85rem; display: flex; align-items: center; gap: 10px; transition: background-color .2s ease; }
.admin-nav__item:hover { background: var(--surface-2); }
.admin-nav__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: .6; flex: none; }

/* Provider matrix */
.matrix { width: 100%; border-collapse: collapse; font-size: .9rem; }
.matrix th, .matrix td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.matrix th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.matrix tr:last-child td { border-bottom: 0; }

/* Scroll reveal defaults (JS adds .is-in) ------------------------------------ */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.no-js .reveal, .js-off .reveal { opacity: 1; transform: none; }

/* SVG drawing helpers */
.draw { stroke-dasharray: var(--len, 400); stroke-dashoffset: var(--len, 400); }
.draw.is-in { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease); }
.no-js .draw, .js-off .draw { stroke-dashoffset: 0; }

/* Custom cursor (pointer devices only, enhancement only) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; border-radius: 50%; opacity: 0; }
.cursor-dot { width: 5px; height: 5px; background: var(--blue); }
.cursor-ring { width: 30px; height: 30px; border: 1px solid color-mix(in srgb, var(--blue) 55%, transparent); transition: width .25s var(--ease), height .25s var(--ease), opacity .25s ease; }
.cursor-ring.is-lg { width: 46px; height: 46px; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* Reduced motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .draw { stroke-dashoffset: 0 !important; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* Print --------------------------------------------------------------------- */
@media print {
  .header, .footer, .cta-band, .hero__stage { display: none; }
  body { color: #000; background: #fff; }
}

/* --- Flow lines: work moving through the platform -------------------------- */
@keyframes bp-flow { to { stroke-dashoffset: -32; } }
.flow-line {
  stroke-dasharray: 4 12;
  stroke-dashoffset: 0;
  animation: bp-flow 1.9s linear infinite;
}
.flow-line--slow { animation-duration: 2.8s; }

@keyframes bp-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.arch__layer .tag { animation: none; }
.arch-arrow svg { animation: bp-drift 2.6s var(--ease) infinite; }
.arch-arrow:nth-child(4n) svg { animation-delay: .35s; }

@keyframes bp-sweep { 0% { opacity: .15; } 50% { opacity: .55; } 100% { opacity: .15; } }
.flow__node--active .flow__step { animation: bp-sweep 2.4s ease-in-out infinite; }

/* Nodes light up in sequence as a flow scrolls into view. */
.flow__node { transition: border-color .45s var(--ease), background-color .45s var(--ease), transform .45s var(--ease); }
.flow__node.is-lit { border-color: color-mix(in srgb, var(--blue) 55%, var(--line)); transform: translateX(2px); }
.flow__node.is-lit .flow__step { color: var(--blue); }

/* --- Alpine ---------------------------------------------------------------- */
[x-cloak] { display: none !important; }

/* --- Small-screen guards --------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__stage { min-height: 0; }
  .hero__canvas { display: none; }
}
@media (max-width: 820px) {
  /* Anything laid out as a two-column product visual collapses cleanly. */
  .grid[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .sec-head { margin-bottom: 40px; }
}
