/* ==========================================================================
   MyndSkill AI — site styles
   1. Design tokens (edit colours here)   6. Hero & flow diagram
   2. Base                                7. Sections & components
   3. Layout helpers                      8. Page-specific
   4. Buttons, chips, icons               9. Forms
   5. Header & footer                     10. Motion & utilities
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Brand */
  --violet: #7c3aed;
  --violet-deep: #6d28d9;
  --magenta: #be185d;
  --grad: linear-gradient(120deg, #6d28d9 0%, #a21caf 55%, #be185d 100%);
  --grad-text: linear-gradient(100deg, #c4b5fd 0%, #f0abfc 50%, #f9a8d4 100%);
  --grad-text-light: linear-gradient(100deg, #6d28d9 0%, #a21caf 60%, #be185d 100%);

  /* Dark bands (hero, demo, CTA, footer) */
  --ink: #0e1530;
  --ink-2: #141d3f;
  --ink-line: rgba(255, 255, 255, 0.1);
  --on-ink: #f3f4fb;
  --on-ink-muted: #aeb5d3;

  /* Light surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --surface: #ffffff;
  --surface-2: #f3f1fd;
  --border: #e4e4ef;
  --border-strong: #cfd0e2;
  --heading: #0e1530;
  --text: #283052;
  --text-muted: #555d7c;
  --link: #6d28d9;
  --focus: #7c3aed;
  --chip-bg: #f3f1fd;
  --chip-text: #4c1d95;
  --success: #047857;
  --success-bg: #ecfdf5;
  --error: #b91c1c;
  --error-bg: #fef2f2;

  /* Shape & depth */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 21, 48, 0.06), 0 2px 8px rgba(14, 21, 48, 0.04);
  --shadow: 0 10px 30px -12px rgba(14, 21, 48, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(14, 21, 48, 0.35);

  /* Type */
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --gutter: 16px;
  --container: 1200px;
  --header-h: 68px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 76px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #0b1129;
    --ink-2: #121a3a;
    --bg: #070b1d;
    --bg-soft: #0c1229;
    --surface: #111936;
    --surface-2: #171f42;
    --border: #232c55;
    --border-strong: #343e6e;
    --heading: #f3f4fb;
    --text: #d5d9ee;
    --text-muted: #a2a9c9;
    --link: #c4b5fd;
    --focus: #c4b5fd;
    --chip-bg: #1d1748;
    --chip-text: #ddd6fe;
    --success: #6ee7b7;
    --success-bg: #06281f;
    --error: #fca5a5;
    --error-bg: #2d0f14;
    --grad-text-light: var(--grad-text);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #0b1129; --ink-2: #121a3a; --bg: #070b1d; --bg-soft: #0c1229; --surface: #111936;
  --surface-2: #171f42; --border: #232c55; --border-strong: #343e6e; --heading: #f3f4fb;
  --text: #d5d9ee; --text-muted: #a2a9c9; --link: #c4b5fd; --focus: #c4b5fd; --chip-bg: #1d1748;
  --chip-text: #ddd6fe; --success: #6ee7b7; --success-bg: #06281f; --error: #fca5a5; --error-bg: #2d0f14;
  --grad-text-light: var(--grad-text);
}

/* 2. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 0.6em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.012em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }

ul, ol { padding-left: 1.2em; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: #ddd6fe; color: #1e1b4b; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #0e1530;
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 3. Layout helpers --------------------------------------------------------- */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - 2 * var(--gutter)); }
.container--mid { width: min(1000px, 100% - 2 * var(--gutter)); }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--soft { background: var(--bg-soft); }
.section--dark {
  background: var(--ink);
  color: var(--on-ink-muted);
  position: relative;
  overflow: hidden;
}
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head p { font-size: 1.125rem; color: var(--text-muted); }
.section--dark .section-head p { color: var(--on-ink-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #c4b5fd; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text-muted); line-height: 1.6; }

.grad-text {
  background: var(--grad-text-light);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .grad-text, .page-hero .grad-text, .section--dark .grad-text { background-image: var(--grad-text); }

.grid { display: grid; gap: clamp(16px, 2.2vw, 24px); }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.center { text-align: center; }
.mt-lg { margin-top: clamp(32px, 4vw, 48px); }

/* 4. Buttons, chips, icons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 50px;
  padding: 0.8rem 1.45rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(124, 58, 237, 0.7);
}
.btn--primary:hover { box-shadow: 0 14px 34px -10px rgba(190, 24, 93, 0.6); color: #fff; }

.btn--secondary {
  background: var(--surface);
  color: var(--heading);
  border-color: var(--border-strong);
}
.btn--secondary:hover { border-color: var(--violet); color: var(--heading); }

.btn--light {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn--light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); color: #fff; }

.btn--sm { min-height: 42px; padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--link);
}
.text-link .icon { width: 16px; height: 16px; transition: transform 0.18s ease; }
.text-link:hover .icon { transform: translateX(3px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.4;
  background: var(--chip-bg);
  color: var(--chip-text);
  border: 1px solid transparent;
}
.chip--outline { background: transparent; border-color: var(--border-strong); color: var(--text-muted); }
.section--dark .chip, .hero .chip { background: rgba(255, 255, 255, 0.07); color: #ddd6fe; border-color: rgba(255, 255, 255, 0.12); }

.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--chip-text);
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--violet-deep);
  border: 1px solid var(--border);
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--grad { background: var(--grad); color: #fff; border: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-badge { color: #c4b5fd; }
}
:root[data-theme="dark"] .icon-badge { color: #c4b5fd; }

/* 5. Header & footer --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 21, 48, 0.86);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--ink-line); background: rgba(11, 17, 41, 0.94); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.brand img, .brand svg { width: 42px; height: 42px; flex: none; margin: -4px 0 -4px -6px; }
.brand__ai {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 0.18em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-nav a:not(.btn) {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--on-ink-muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.97rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.site-nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-wa {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--on-ink-muted);
  border: 1px solid var(--ink-line);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.header-wa:hover { color: #4ade80; border-color: rgba(74, 222, 128, 0.5); }
.header-wa .icon { width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--ink-line);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: inline-block; }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-grid; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    padding: 8px var(--gutter) 24px;
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { display: block; padding: 0.9rem 0.75rem; font-size: 1.06rem; border-radius: 12px; }
  .site-nav .nav-cta { display: block; margin-top: 12px; }
  .site-nav .nav-cta .btn { width: 100%; }
}
@media (max-width: 479px) {
  .header-actions .btn { display: none; }
  .btn { white-space: normal; text-align: center; }
  .hero .btn-row .btn, .page-hero .btn-row .btn, .cta-band .btn-row .btn { width: 100%; }
}
@media (max-width: 359px) {
  .header-wa { display: none; }
  .brand { font-size: 1.12rem; }
}

.site-footer {
  background: var(--ink);
  color: var(--on-ink-muted);
  padding-block: clamp(56px, 7vw, 88px) 32px;
  font-size: 0.97rem;
  border-top: 1px solid var(--ink-line);
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer-brand p { max-width: 34ch; margin-top: 14px; }
.site-footer h2 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 4px; color: #c4b5fd; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-line);
  font-size: 0.88rem;
}

/* 6. Hero & flow diagram ---------------------------------------------------- */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(124, 58, 237, 0.32) 0%, transparent 60%),
    radial-gradient(45% 55% at 5% 95%, rgba(190, 24, 93, 0.22) 0%, transparent 60%),
    var(--ink);
  color: var(--on-ink-muted);
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero > .container, .page-hero > .container { position: relative; }

.hero { padding-block: clamp(48px, 8vw, 104px) clamp(64px, 9vw, 120px); }
.hero h1 { color: #fff; }
.hero__grid {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}
.hero__grid > *, .demo-grid > *, .svc > *, .split > *, .contact-grid > * { min-width: 0; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.08fr 0.92fr; } }
.hero__sub { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 58ch; color: var(--on-ink-muted); }
.hero .btn-row { margin-top: 32px; }

.trust-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 0.93rem;
}
.trust-list li { display: inline-flex; align-items: center; gap: 8px; }
.trust-list .icon { width: 18px; height: 18px; color: #86efac; stroke-width: 2.2; }

/* Flow diagram (decorative, described for screen readers in markup) */
.flow {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.5vw, 26px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  max-width: 520px;
  margin-inline: auto;
  width: 100%;
}
.flow::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(196, 181, 253, 0.55), transparent 40%, transparent 60%, rgba(249, 168, 212, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.flow__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  margin-bottom: 18px;
  color: var(--on-ink-muted);
}
.flow__live { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.flow__live::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: pulse 2s infinite;
}
.flow__steps { list-style: none; margin: 0; padding: 0; }
.flow__step {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: stepGlow 8s infinite;
}
.flow__step + .flow__step { margin-top: 22px; }
.flow__step + .flow__step::before {
  content: "";
  position: absolute;
  left: 34px;
  top: -23px;
  width: 2px;
  height: 22px;
  background: linear-gradient(180deg, rgba(196, 181, 253, 0.15), rgba(196, 181, 253, 0.8), rgba(196, 181, 253, 0.15));
  background-size: 100% 200%;
  animation: flowLine 2s linear infinite;
}
.flow__step:nth-child(2) { animation-delay: 2s; }
.flow__step:nth-child(3) { animation-delay: 4s; }
.flow__step:nth-child(4) { animation-delay: 6s; }
.flow__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.22);
  color: #ddd6fe;
}
.flow__icon .icon { width: 21px; height: 21px; }
.flow__icon--wa { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.flow__icon--ai { background: var(--grad); color: #fff; }
.flow__icon--done { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.flow__title { display: block; color: #fff; font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.flow__meta { display: block; font-size: 0.83rem; line-height: 1.45; color: var(--on-ink-muted); }
.flow__status {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86efac;
}
.flow__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
}
.flow__foot strong { color: #fff; white-space: nowrap; }

/* Inner-page hero */
.page-hero { padding-block: clamp(56px, 8vw, 96px) clamp(56px, 7vw, 88px); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.page-hero .lead { color: var(--on-ink-muted); max-width: 62ch; }
.page-hero .btn-row { margin-top: 28px; }

/* 7. Sections & components ----------------------------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 30px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card h3 { margin-top: 18px; }
.card p { color: var(--text-muted); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }

/* Problem → fix */
.pf-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.pf-card__problem { padding: 24px 24px 20px; }
.pf-card__problem .tag { background: var(--error-bg); color: var(--error); }
.pf-card__problem p { margin-top: 14px; color: var(--heading); font-weight: 550; font-size: 1.05rem; line-height: 1.5; }
.pf-card__fix {
  margin-top: auto;
  padding: 20px 24px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
.pf-card__fix .tag { background: var(--success-bg); color: var(--success); }
.pf-card__fix p { margin-top: 12px; color: var(--text); font-size: 0.98rem; }

/* Service pillars */
.pillar { display: flex; flex-direction: column; }
.pillar__top { display: flex; align-items: center; gap: 14px; }
.pillar__top .eyebrow { margin: 0; }
.pillar h3 { font-size: 1.4rem; }
.pillar .chips { margin: 4px 0 22px; }
.pillar__links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Demo band */
.demo-grid { display: grid; gap: clamp(36px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .demo-grid { grid-template-columns: 1fr 1fr; } }
.demo-grid .lead { color: var(--on-ink-muted); }
.prompt-list { list-style: none; padding: 0; margin: 24px 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.prompt-chip {
  font: inherit;
  font-size: 0.92rem;
  color: #ede9fe;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.prompt-chip:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(196, 181, 253, 0.6); }

.chat-mock {
  background: #f8f8fd;
  color: #283052;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  margin-inline: auto;
  width: 100%;
}
.chat-mock__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #0e1530;
  color: #fff;
}
.chat-mock__avatar {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  font-weight: 700;
  font-family: var(--font-display);
}
.chat-mock__head strong { display: block; font-size: 0.95rem; }
.chat-mock__head span { display: block; font-size: 0.78rem; color: #aeb5d3; }
.chat-mock__body { padding: 18px; display: grid; gap: 12px; }
.bubble {
  max-width: 86%;
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  font-size: 0.93rem;
  line-height: 1.5;
}
.bubble--user { justify-self: end; background: #6d28d9; color: #fff; border-bottom-right-radius: 4px; }
.bubble--bot { justify-self: start; background: #fff; border: 1px solid #e4e4ef; border-bottom-left-radius: 4px; }
.chat-mock__note { padding: 0 18px 16px; font-size: 0.75rem; color: #6b7190; }

/* Example builds */
.build-card { display: flex; flex-direction: column; }
.build-card h3 { margin-top: 14px; }
.build-card .flow-mini { margin: 6px 0 20px; }
.build-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.build-card ul.outcomes { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.outcomes li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 0.96rem; }
.outcomes .icon { width: 18px; height: 18px; margin-top: 4px; color: var(--success); stroke-width: 2.2; }
.build-card .chips { margin-top: auto; }

.flow-mini {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.flow-mini li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--heading);
}
.flow-mini li span {
  padding: 0.34rem 0.62rem;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.flow-mini li:not(:last-child)::after {
  content: "";
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), #db2777);
  border-radius: 2px;
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.note .icon { width: 20px; height: 20px; color: var(--link); margin-top: 2px; }

/* Process steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 12px 24px -12px rgba(124, 58, 237, 0.8);
}
@media (min-width: 1024px) {
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 68px;
    right: -12px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px);
  }
}
.step h3 { margin: 20px 0 8px; }
.step p { color: var(--text-muted); font-size: 0.98rem; }
.step__meta { display: inline-block; margin-top: 10px; font-size: 0.82rem; font-weight: 600; color: var(--link); }

/* Industries & features */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature h3 { font-size: 1.1rem; margin: 2px 0 6px; }
.feature p { color: var(--text-muted); font-size: 0.97rem; }

.tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.tile h3 { font-size: 1.08rem; margin: 14px 0 6px; }
.tile p { color: var(--text-muted); font-size: 0.95rem; }

/* Founder */
.founder {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 820px) { .founder { grid-template-columns: 140px 1fr; align-items: start; } }
.founder__monogram {
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  border-radius: 32px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.03em;
  box-shadow: 0 20px 40px -18px rgba(124, 58, 237, 0.75);
}
@media (max-width: 819px) { .founder__monogram { width: 96px; height: 96px; font-size: 2.1rem; border-radius: 24px; } }
.founder__chips { margin-top: 18px; }
.founder__photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 24px;
  object-fit: cover;
  background: var(--surface-2);
}
.founder blockquote { margin: 0; }
.founder blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--heading);
  font-weight: 550;
  letter-spacing: -0.01em;
}
.founder__name { margin-top: 20px; font-weight: 700; color: var(--heading); }
.founder__role { color: var(--text-muted); font-size: 0.95rem; }
.founder__links { margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details[open] { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.07rem;
  color: var(--heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--link), var(--link)) center / 12px 2px no-repeat,
    linear-gradient(var(--link), var(--link)) center / 2px 12px no-repeat,
    var(--surface-2);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { border-radius: var(--radius); }
.faq__body { padding: 0 22px 22px; color: var(--text-muted); }

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(190, 24, 93, 0.45), transparent 60%),
    radial-gradient(60% 80% at 0% 100%, rgba(124, 58, 237, 0.55), transparent 60%),
    #0e1530;
  color: var(--on-ink-muted);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cta-band p { max-width: 58ch; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-band .fine { margin: 18px 0 0; font-size: 0.88rem; }

/* 8. Page-specific -------------------------------------------------------------- */
/* Services page */
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
html:has(.subnav) { scroll-padding-top: calc(var(--header-h) + 64px); }
.subnav ul {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-block;
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.subnav a:hover, .subnav a.is-active { background: var(--surface-2); color: var(--heading); }

.svc { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .svc { grid-template-columns: 1fr 1.05fr; } }
.svc__intro h2 { margin-top: 18px; }
.svc__intro .lead { margin-bottom: 24px; }
.svc__meta { display: grid; gap: 10px; margin: 24px 0 28px; }
.svc__meta div { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; }
.svc__meta .icon { width: 20px; height: 20px; color: var(--link); margin-top: 3px; }
.svc__panel h3 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; }
.svc__panel h3:not(:first-child) { margin-top: 28px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.check-list .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--success); stroke-width: 2.2; }

/* About */
.values { counter-reset: v; }
.split { display: grid; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; }
.facts strong { display: block; color: var(--heading); }
.facts span { color: var(--text-muted); font-size: 0.96rem; }

/* Contact */
.contact-grid { display: grid; gap: clamp(24px, 3vw, 40px); align-items: start; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1.45fr 1fr; } }
.contact-aside { display: grid; gap: 20px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { display: block; color: var(--heading); font-size: 0.95rem; }
.contact-list a, .contact-list span { color: var(--text-muted); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--link); text-decoration: underline; }
.scheduler { margin-top: clamp(32px, 4vw, 48px); }
.scheduler iframe {
  width: 100%;
  height: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.audit-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.audit-list li { display: flex; gap: 10px; align-items: flex-start; }
.audit-list .icon { width: 20px; height: 20px; color: #86efac; margin-top: 3px; stroke-width: 2.2; }

/* Legal prose */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }
.prose li + li { margin-top: 0.4em; }
.prose .updated { color: var(--text-muted); font-size: 0.95rem; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

/* 9. Forms ------------------------------------------------------------------------ */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 40px);
  box-shadow: var(--shadow);
}
.form-card h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
.field label, .field legend {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--heading);
  margin-bottom: 7px;
}
.field .req { color: var(--magenta); }
.field .hint { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--heading);
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.78rem 0.95rem;
  min-height: 50px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: grid; gap: 10px; }
@media (min-width: 520px) { .checks { grid-template-columns: 1fr 1fr; } }
.field .check {
  display: flex;
  margin-bottom: 0;
  font-weight: 500;
  gap: 10px;
  align-items: center;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.check:hover { border-color: var(--border-strong); }
.check:has(input:checked) { border-color: var(--violet); background: var(--surface-2); }
.field .check input {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--violet);
  flex: none;
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.form-foot small { color: var(--text-muted); font-size: 0.86rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.97rem;
}
.form-status.is-success { display: block; background: var(--success-bg); color: var(--success); border: 1px solid currentColor; }
.form-status.is-error { display: block; background: var(--error-bg); color: var(--error); border: 1px solid currentColor; }
.form-status.is-info { display: block; background: var(--surface-2); color: var(--heading); border: 1px solid var(--border-strong); }

/* n8n chat widget theming (html:root beats the widget's own :root defaults) */
html:root {
  --chat--color-primary: #7c3aed;
  --chat--color-primary-shade-50: #6d28d9;
  --chat--color-primary-shade-100: #5b21b6;
  --chat--color-secondary: #be185d;
  --chat--color-secondary-shade-50: #9d174d;
  --chat--color-dark: #0e1530;
  --chat--toggle--background: #7c3aed;
  --chat--toggle--hover--background: #6d28d9;
  --chat--toggle--active--background: #5b21b6;
  --chat--header--background: #0e1530;
  --chat--header--color: #ffffff;
  --chat--header--padding: 12px 16px;
  --chat--heading--font-size: 1.05em;
  --chat--subtitle--font-size: 0.78em;
  --chat--subtitle--line-height: 1.3;
  --chat--message--user--background: #6d28d9;
  --chat--message--user--color: #ffffff;
  --chat--border-radius: 16px;
  --chat--window--z-index: 60;
}
.chat-window-wrapper { font-family: var(--font-body); }

/* 10. Motion & utilities --------------------------------------------------------- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes stepGlow {
  0%, 30%, 100% {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
  }
  6%, 22% {
    border-color: rgba(196, 181, 253, 0.55);
    background: rgba(124, 58, 237, 0.14);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12), 0 12px 30px -12px rgba(124, 58, 237, 0.6);
  }
}
@keyframes flowLine {
  from { background-position: 0 100%; }
  to { background-position: 0 -100%; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: 0.08s; }
.js .reveal-delay-2 { transition-delay: 0.16s; }
.js .reveal-delay-3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* 11. Guides & infographics ------------------------------------------------------ */
.breadcrumb { font-size: 0.88rem; margin: 0 0 14px; color: var(--on-ink-muted); }
.breadcrumb a { color: #c4b5fd; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.facts-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 32px; }
.fact { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 14px 16px; }
.fact span { display: block; font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: #c4b5fd; font-weight: 700; }
.fact strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.02rem; font-weight: 650; line-height: 1.35; margin-top: 4px; }

.ig-caption { font-size: 0.88rem; color: var(--text-muted); margin: 18px auto 0; text-align: center; max-width: 70ch; }
.ig-label { font-family: var(--font-display); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--link); margin: 0 0 12px; }

/* Journey: numbered steps with connectors (vertical on mobile, horizontal on desktop) */
.ig-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: igs; }
.ig-steps > li {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; align-content: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
}
.ig-steps__icon {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(124, 58, 237, 0.8);
}
.ig-steps__icon .icon { width: 26px; height: 26px; }
.ig-steps__icon::after {
  counter-increment: igs; content: counter(igs);
  position: absolute; top: -9px; right: -9px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; font-family: var(--font-display);
  background: var(--ink); color: #fff; border: 2px solid var(--surface);
}
.ig-steps h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.ig-steps p { font-size: 0.93rem; color: var(--text-muted); margin: 0; }
.ig-steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 45px; bottom: -21px; width: 2px; height: 22px;
  background: linear-gradient(var(--violet), #db2777);
}
@media (min-width: 1024px) {
  .ig-steps { grid-template-columns: repeat(var(--n, 5), 1fr); gap: 18px; }
  .ig-steps > li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 16px 22px; }
  .ig-steps > li:not(:last-child)::after { left: auto; right: -19px; top: 53px; bottom: auto; width: 20px; height: 2px; background: linear-gradient(90deg, var(--violet), #db2777); }
}

/* Hub: inputs -> core -> outputs */
.ig-hub { display: grid; gap: 18px; align-items: center; }
.ig-hub__col { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.ig-hub__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ig-hub__col li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); font-weight: 600; color: var(--heading); font-size: 0.95rem; line-height: 1.3; }
.ig-hub__col li .icon { width: 20px; height: 20px; color: var(--link); }
.ig-hub__col li small { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.ig-hub__core {
  position: relative; margin: 0 auto; width: 100%; max-width: 250px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; padding: 26px; color: #fff;
  background: radial-gradient(circle at 50% 38%, #2e1d72 0%, #0e1530 72%);
  box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.09), 0 0 0 22px rgba(124, 58, 237, 0.05), 0 30px 60px -20px rgba(124, 58, 237, 0.65);
}
.ig-hub__core img { width: 76px; height: 76px; margin: 0 auto 4px; }
.ig-hub__core strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
.ig-hub__core span { display: block; font-size: 0.84rem; color: var(--on-ink-muted); margin-top: 4px; line-height: 1.4; }
@media (min-width: 960px) {
  .ig-hub { grid-template-columns: 1fr minmax(240px, 0.9fr) 1fr; gap: 56px; }
  .ig-hub__core { max-width: 280px; }
  .ig-hub__col--in::after, .ig-hub__col--out::before {
    content: ""; position: absolute; top: 50%; width: 56px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--violet) 0 7px, transparent 7px 12px);
  }
  .ig-hub__col--in::after { right: -57px; }
  .ig-hub__col--out::before { left: -57px; }
}

/* Split: AI handles vs your team handles */
.ig-split { display: grid; gap: 16px; }
@media (min-width: 860px) { .ig-split { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.ig-split__side { border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
.ig-split__side--ai { border-color: rgba(124, 58, 237, 0.35); background: linear-gradient(160deg, rgba(124, 58, 237, 0.1), rgba(219, 39, 119, 0.05)), var(--surface); }
.ig-split__head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.ig-split__head h3 { margin: 0; font-size: 1.15rem; }
.ig-split__head p { margin: 2px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.ig-split__mid { display: grid; justify-items: center; align-content: center; gap: 8px; text-align: center; padding: 4px 8px; }
.ig-split__mid > span:last-child { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--link); max-width: 9em; }
.ig-split__arrow { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(124, 58, 237, 0.8); }
@media (max-width: 859px) { .ig-split__arrow .icon { transform: rotate(90deg); } }

/* Before / after */
.ig-compare { display: grid; gap: 18px; }
@media (min-width: 860px) { .ig-compare { grid-template-columns: 1fr 1fr; } }
.ig-compare__card { border-radius: var(--radius-lg); padding: 24px; border: 1px solid var(--border); background: var(--bg-soft); }
.ig-compare__card--after { border-color: rgba(124, 58, 237, 0.35); background: linear-gradient(160deg, rgba(124, 58, 237, 0.1), rgba(219, 39, 119, 0.05)), var(--surface); box-shadow: var(--shadow); }
.ig-compare__card h3 { margin: 10px 0 0; font-size: 1.15rem; }
.ig-compare ol { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; counter-reset: igc; }
.ig-compare li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 0.93rem; color: var(--heading); }
.ig-compare li::before { counter-increment: igc; content: counter(igc); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; background: var(--border); color: var(--heading); }
.ig-compare__card--after li::before { background: var(--grad); color: #fff; }
.ig-who { margin-left: auto; flex: none; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.ig-who--person { background: var(--error-bg); color: var(--error); }
.ig-who--auto { background: var(--success-bg); color: var(--success); }
.ig-compare__foot { margin: 16px 0 0; font-weight: 650; font-size: 0.95rem; color: var(--heading); display: flex; gap: 10px; align-items: center; }
.ig-compare__foot .icon { width: 20px; height: 20px; color: var(--link); }

/* Timeline */
.ig-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ig-phase { position: relative; padding: 0 0 26px 34px; }
.ig-phase::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: -6px; width: 4px; border-radius: 4px; background: var(--grad); opacity: 0.35; }
.ig-phase:last-child::before { display: none; }
.ig-phase::after { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.15); }
.ig-phase__when { display: inline-block; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.ig-phase h3 { font-size: 1.1rem; margin: 4px 0 8px; }
.ig-phase ul { margin: 0; padding-left: 1.1em; color: var(--text-muted); font-size: 0.93rem; }
.ig-phase li + li { margin-top: 3px; }
@media (min-width: 900px) {
  .ig-timeline { grid-template-columns: repeat(var(--n, 4), 1fr); }
  .ig-phase { padding: 34px 18px 0 0; }
  .ig-phase::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 4px; opacity: 0.35; }
  .ig-phase:last-child::before { display: block; right: 40%; }
  .ig-phase::after { top: 0; }
}

/* Dashboard illustration */
.ig-dash { background: #0e1530; border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-lg); color: #fff; display: grid; gap: 12px; border: 1px solid rgba(255, 255, 255, 0.08); }
.ig-dash__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.8rem; color: #aeb5d3; }
.ig-dash__top strong { color: #fff; font-family: var(--font-display); font-size: 0.95rem; }
.ig-dash__kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .ig-dash__kpis { grid-template-columns: repeat(4, 1fr); } }
.ig-dash__kpi { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 10px 12px; }
.ig-dash__kpi span { display: block; font-size: 0.7rem; color: #aeb5d3; }
.ig-dash__kpi b { display: block; height: 14px; width: var(--w, 60%); margin: 8px 0 6px; border-radius: 4px; background: linear-gradient(90deg, #c4b5fd, #f9a8d4); }
.ig-dash__kpi i { font-style: normal; font-size: 0.7rem; font-weight: 700; color: #86efac; }
.ig-dash__kpi i.down { color: #fca5a5; }
.ig-dash__charts { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .ig-dash__charts { grid-template-columns: 1.7fr 1fr; } }
.ig-dash__panel { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 12px; }
.ig-dash__panel > span { display: block; font-size: 0.72rem; color: #aeb5d3; margin-bottom: 10px; }
.ig-dash__bars { display: flex; align-items: flex-end; gap: 7px; height: 110px; }
.ig-dash__bars i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #d946ef, #7c3aed); }
.ig-dash__donut { width: 104px; aspect-ratio: 1; margin: 2px auto 0; border-radius: 50%;
  background: conic-gradient(#8b5cf6 0 40%, #d946ef 0 66%, #f472b6 0 84%, #334155 0);
  -webkit-mask: radial-gradient(circle, transparent 50%, #000 51%); mask: radial-gradient(circle, transparent 50%, #000 51%); }
.ig-dash__alert { display: flex; gap: 10px; align-items: center; font-size: 0.82rem; background: rgba(124, 58, 237, 0.18); border: 1px solid rgba(196, 181, 253, 0.35); border-radius: 12px; padding: 10px 12px; color: #ede9fe; }
.ig-dash__alert .icon { width: 18px; height: 18px; color: #f0abfc; }
.ig-annotations { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: iga; }
.ig-annotations li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.ig-annotations li::before { counter-increment: iga; content: counter(iga); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-family: var(--font-display); }
.ig-annotations strong { display: block; color: var(--heading); }
.ig-annotations span { color: var(--text-muted); font-size: 0.94rem; }

/* Cost drivers */
.ig-drivers { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ig-driver { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.ig-driver h3 { font-size: 1rem; margin: 12px 0 12px; }
.ig-scale__bar { height: 8px; border-radius: 999px; background: linear-gradient(90deg, #86efac, #fcd34d 55%, #f472b6); }
.ig-scale { display: grid; gap: 6px; font-size: 0.86rem; color: var(--text-muted); margin-top: 12px; line-height: 1.4; }
.ig-scale span { display: flex; gap: 9px; align-items: baseline; }
.ig-scale span::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: #4ade80; transform: translateY(-1px); }
.ig-scale span:last-child::before { background: #f472b6; }

.guide-link { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; }

/* Guide cards (hub page) */
.guide-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.guide-card:hover { text-decoration: none; }
.guide-card h3 { margin: 16px 0 6px; font-size: 1.3rem; }
.guide-card .flow-mini { margin: 14px 0 20px; }
.guide-card .text-link { margin-top: auto; }

[hidden] { display: none !important; }
