/* =========================================================
   Webnauts — styles
   ========================================================= */

:root {
  --white: #ffffff;
  --navy: #16162e;
  --blue: #3988f6;
  --violet: #7c3aed;
  --cyan: #00ffff;
  --mint: #00feb3;

  --navy-80: rgba(22, 22, 46, 0.8);
  --navy-60: rgba(22, 22, 46, 0.6);
  --text: var(--navy);
  --text-muted: #5b5e7a;
  --tint: #f5f7fc;
  --tint-2: #eef1f9;
  --line: #e3e7f1;
  --line-dark: rgba(255, 255, 255, 0.12);

  --grad: linear-gradient(90deg, var(--blue), var(--violet));
  --grad-full: linear-gradient(90deg, var(--blue) 0%, var(--violet) 50%, var(--mint) 100%);

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(22, 22, 46, 0.05), 0 4px 14px rgba(22, 22, 46, 0.06);
  --shadow-md: 0 8px 30px rgba(22, 22, 46, 0.1);
  --shadow-blue: 0 10px 30px rgba(57, 136, 246, 0.35);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

h1 { font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.25rem; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-muted); max-width: 46ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.88rem; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(57, 136, 246, 0.28); }
.btn-primary:hover { box-shadow: var(--shadow-blue); }
.btn-primary svg { transition: transform 0.25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

.btn-ghost-light { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.link-arrow { color: var(--blue); font-weight: 700; display: inline-flex; gap: 0.35rem; align-items: center; }
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 24px rgba(22, 22, 46, 0.06); background: rgba(255, 255, 255, 0.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 2rem; }

.logo { display: inline-flex; align-items: center; }
.logo-img { height: 26px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a:not(.btn) { font-weight: 600; font-size: 0.95rem; color: var(--text-muted); transition: color 0.2s; }
.site-nav a:not(.btn):hover { color: var(--navy); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
/* Soft brand-tint mesh: fills the top edge completely, fades to white by mid-hero */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  --t-blue: #e4eefe; --t-violet: #efe9fd; --t-cyan: #e0fbfb; --t-mint: #e2fbf3;
  background-image:
    radial-gradient(110% 80% at 100% 0%, var(--t-cyan) 0%, rgba(224, 251, 251, 0) 62%),
    radial-gradient(95% 85% at 0% 0%, var(--t-violet) 0%, rgba(239, 233, 253, 0) 60%),
    radial-gradient(70% 60% at 78% 45%, var(--t-mint) 0%, rgba(226, 251, 243, 0) 65%),
    radial-gradient(90% 70% at 40% 10%, var(--t-blue) 0%, rgba(228, 238, 254, 0) 70%),
    linear-gradient(180deg, #e9eefc 0%, #eef2fc 40%, #ffffff 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%, 200% 200%, 100% 100%;
  background-position: 100% 0%, 0% 0%, 80% 40%, 40% 10%, 0 0;
  animation: meshShift 24s ease-in-out infinite alternate;
  mask-image: linear-gradient(180deg, #000 0%, #000 12%, rgba(0, 0, 0, 0) 50%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 12%, rgba(0, 0, 0, 0) 50%);
}
@keyframes meshShift {
  from { background-position: 100% 0%, 0% 0%, 80% 40%, 40% 10%, 0 0; }
  to   { background-position: 80% 10%, 15% 10%, 65% 30%, 55% 0%, 0 0; }
}

.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 780px; margin: 0 auto; text-align: center; }
.hero-copy .lead { margin-inline: auto; }
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Flow animation ---------- */
.flow {
  position: relative; margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: minmax(200px, 260px) auto minmax(220px, 280px);
  justify-content: space-between; gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background:
    radial-gradient(circle, rgba(57, 136, 246, 0.18) 1px, transparent 1.2px) 0 0 / 26px 26px,
    rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.flow-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 1rem; }
.flow-col-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.flow-outcomes .flow-col-label { color: var(--blue); }

.node-title { display: block; font-weight: 700; line-height: 1.25; }
.node-sub { display: block; font-size: 0.72rem; font-weight: 500; color: var(--text-muted); line-height: 1.3; margin-top: 1px; }

.chaos-nodes { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.chaos-node {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.85rem; border-radius: 12px;
  background: #fff; border: 1px dashed #c9cede; color: var(--navy);
  font-size: 0.85rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.chaos-node svg { width: 18px; height: 18px; flex: 0 0 18px; color: #8b8fa8; }
.chaos-node:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }

/* Version 2 — scattered square tiles */
.flow-v2 { grid-template-columns: 380px auto 1fr; column-gap: 52px; justify-content: normal; }
.flow-v2 .flow-outcomes { justify-self: end; width: min(100%, 280px); }
.chaos-board { position: relative; width: 380px; height: 430px; margin: 30px 0 8px; }
.chaos-tile {
  position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px);
  width: 68px; height: 68px; padding: 6px 3px 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.chaos-tile svg { width: 24px; height: 24px; color: var(--c, #8b8fa8); stroke-width: 2; }
.chaos-tile span { font-size: 0.58rem; font-weight: 700; line-height: 1.15; text-align: center; color: var(--text-muted); }
.chaos-tile:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }

.hub { position: relative; display: grid; place-items: center; padding: 1.5rem; }
.hub-core {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 1.6rem 2rem; border-radius: 20px;
  background: var(--navy); color: #fff;
  border: 1.5px solid transparent;
  box-shadow: 0 16px 40px rgba(22, 22, 46, 0.3);
}
@property --hub-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.hub-core::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--hub-angle), var(--blue), var(--violet), var(--cyan), var(--mint), var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: hubBorder 4s linear infinite;
}
@keyframes hubBorder { to { --hub-angle: 360deg; } }
.hub-logo { height: 24px; width: auto; }
.hub-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin-top: 0.6rem; max-width: 230px; }
.hub-badges span {
  font-size: 0.66rem; font-weight: 700; padding: 0.22rem 0.65rem; border-radius: 999px;
  background: var(--badge-bg); border: 1px solid var(--badge); color: var(--badge);
}
.hub-badges span:nth-child(1) { --badge: var(--blue); --badge-bg: rgba(57, 136, 246, 0.16); }
.hub-badges span:nth-child(2) { --badge: var(--mint); --badge-bg: rgba(0, 254, 179, 0.14); }
.hub-badges span:nth-child(3) { --badge: #a78bfa; --badge-bg: rgba(124, 58, 237, 0.22); }
.hub-badges span:nth-child(4) { --badge: var(--cyan); --badge-bg: rgba(0, 255, 255, 0.12); }

.outcome-nodes { display: flex; flex-direction: column; gap: 1.1rem; }
.outcome-node {
  position: relative; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
/* shared outcome icon (hero animation + Before/After block) */
.outcome-icon, .outcome-mini-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
  background: linear-gradient(135deg, rgba(57, 136, 246, 0.12), rgba(124, 58, 237, 0.12)); color: var(--blue);
}
.outcome-icon svg, .outcome-mini-icon svg { width: 20px; height: 20px; color: var(--blue); stroke: var(--blue); }
.status-dot {
  position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%;
  background: #d5d9e6; transition: background 0.3s, box-shadow 0.3s;
}
.outcome-node.is-hit { border-color: var(--mint); box-shadow: 0 8px 30px rgba(0, 254, 179, 0.3); transform: translateX(4px); }
.outcome-node.is-hit .status-dot { background: var(--mint); box-shadow: 0 0 0 5px rgba(0, 254, 179, 0.25); }

/* SVG parts (styled from JS-created elements) */
.flow-path { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.flow-path-chaos { stroke: #a9afc6; stroke-dasharray: 5 5; opacity: 0.8; animation: flowDash 0.9s linear infinite; }
.flow-path-order { stroke-width: 1.8; }
.flow-arrow { fill: var(--mint); }
.flow-port { fill: #fff; stroke: #a9afc6; stroke-width: 1.4; }
.flow-port-out { stroke: var(--blue); }
@keyframes flowDash { to { stroke-dashoffset: -20; } }
.flow-particle { filter: drop-shadow(0 0 6px currentColor); }
.flow-particle-in { fill: var(--blue); color: var(--blue); }
.flow-particle-out { fill: var(--mint); color: var(--mint); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }
.section-head p:last-child { margin-bottom: 0; }

.section-head-center { margin-inline: auto; text-align: center; }
.section-dark .section-head p { color: rgba(255, 255, 255, 0.72); }

/* Outgrown systems — interactive checklist */
.familiar-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.familiar-inner .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.familiar-hint { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; color: var(--navy) !important; }
.familiar-hint::after { content: "→"; color: var(--blue); font-weight: 800; }
.checklist { display: grid; gap: 0.6rem; }
.check-grid { display: grid; gap: 0.6rem; }
.check-item {
  display: flex; align-items: flex-start; gap: 0.9rem; cursor: pointer;
  padding: 0.9rem 1.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  font-weight: 600; line-height: 1.4; user-select: none; font-size: 0.97rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.check-item:hover { border-color: #c9cede; box-shadow: var(--shadow-sm); }
.check-item input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px;
  border: 2px solid #c9cede; background: #fff; position: relative; transition: background 0.2s, border-color 0.2s;
}
.check-box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(45deg) scale(0); transition: transform 0.2s var(--ease);
}
.check-item input:checked ~ .check-box { background: var(--grad); border-color: transparent; }
.check-item input:checked ~ .check-box::after { transform: rotate(45deg) scale(1); }
.check-item.is-checked { border-color: rgba(57, 136, 246, 0.5); background: rgba(57, 136, 246, 0.04); }
.check-item input:focus-visible ~ .check-box { outline: 3px solid rgba(57, 136, 246, 0.35); outline-offset: 2px; }
.check-result {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; margin-top: 0.5rem; min-height: 4.5rem;
  padding: 1rem 1.25rem; border-radius: var(--radius); background: var(--tint); border: 1px dashed #c9cede;
  transition: background 0.3s, border-color 0.3s;
}
.check-result.is-hot { background: var(--navy); border-color: transparent; color: #fff; }
.check-count { font-size: 0.9rem; color: var(--text-muted); }
.check-count strong { font-size: 1.5rem; color: var(--navy); margin-right: 0.15rem; }
.check-result.is-hot .check-count { color: rgba(255, 255, 255, 0.7); }
.check-result.is-hot .check-count strong { color: var(--mint); }
.check-count { white-space: nowrap; }
.check-msg { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check-cta { visibility: hidden; opacity: 0; transform: translateX(8px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s; }
.check-cta.is-visible { visibility: visible; opacity: 1; transform: none; }

/* Before / After */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: stretch; margin-top: 1rem; }
.ba-panel {
  position: relative; padding: 1.5rem; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.ba-before { background: linear-gradient(180deg, #fff, #f9f5f6); }
.ba-after { background: linear-gradient(180deg, #fff, #f0fbf7); border-color: rgba(0, 201, 154, 0.45); box-shadow: 0 20px 50px rgba(0, 201, 154, 0.12); }
.ba-label {
  display: inline-block; margin-bottom: 1rem; padding: 0.3rem 0.8rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--tint-2); color: var(--text-muted);
}
.ba-label-after { background: rgba(0, 201, 154, 0.14); color: #00a878; }
.ba-arrow { display: grid; place-items: center; color: var(--blue); }
.ba-arrow svg { width: 44px; height: 44px; filter: drop-shadow(0 6px 14px rgba(57, 136, 246, 0.35)); }
.ba-points { display: grid; gap: 0.5rem; margin-top: 1.25rem; font-size: 0.92rem; color: var(--text-muted); font-weight: 500; }
.ba-points li { position: relative; padding-left: 1.4rem; }
.ba-points li::before { content: "×"; position: absolute; left: 0; top: -1px; font-weight: 800; color: #e5486a; }
.ba-points-after li::before { content: "✓"; color: #00a878; }
.ba-points-after { color: var(--navy); }

/* before scene */
.ba-scene { position: relative; height: 230px; }
.ba-sheet {
  position: absolute; left: 0; top: 0; width: 62%; padding: 8px; border-radius: 8px;
  background: #fff; color: var(--navy); transform: rotate(-2deg); box-shadow: 0 10px 28px rgba(22, 22, 46, 0.14); border: 1px solid var(--line);
}
.ba-sheet-head, .ba-sheet-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 4px; margin-bottom: 4px; }
.ba-sheet-head span { height: 8px; border-radius: 2px; background: #1e7145; opacity: 0.85; }
.ba-sheet-row span { height: 8px; border-radius: 2px; background: #e3e7f1; }
.ba-sheet-row span.err { background: #ffb3c0; }
.ba-mail {
  position: absolute; right: 0; top: 34px; width: 60%; padding: 8px; border-radius: 8px;
  background: #fff; color: var(--navy); transform: rotate(2deg); box-shadow: 0 10px 28px rgba(22, 22, 46, 0.14); border: 1px solid var(--line);
}
.ba-mail-row { display: flex; align-items: center; gap: 6px; padding: 5px 4px; border-bottom: 1px solid #eef1f9; font-size: 9px; color: #5b5e7a; white-space: nowrap; overflow: hidden; }
.ba-mail-row i { width: 8px; height: 8px; border-radius: 50%; background: #c9cede; flex: 0 0 8px; }
.ba-mail-row b { width: 20px; height: 6px; border-radius: 2px; background: #c9cede; flex: 0 0 20px; }
.ba-mail-row.unread { font-weight: 700; color: var(--navy); }
.ba-mail-row.unread i { background: var(--blue); }
.ba-note {
  position: absolute; padding: 8px 10px; width: 92px; font-size: 9px; line-height: 1.3; font-weight: 700; color: #5a4a00;
  background: #ffe770; box-shadow: 0 6px 16px rgba(22, 22, 46, 0.18); font-family: var(--font);
}
.ba-note-1 { left: 8%; bottom: 8px; transform: rotate(-6deg); }
.ba-note-2 { left: 46%; bottom: 26px; transform: rotate(4deg); background: #ffb8d9; color: #5a0030; }
.ba-chat {
  position: absolute; right: 6%; bottom: 10px; display: flex; gap: 4px; padding: 8px 10px; border-radius: 12px 12px 12px 2px;
  background: #25d366; box-shadow: 0 6px 16px rgba(22, 22, 46, 0.18);
}
.ba-chat span { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: typing 1.2s ease-in-out infinite; }
.ba-chat span:nth-child(2) { animation-delay: 0.2s; }
.ba-chat span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.6; } 30% { transform: translateY(-4px); opacity: 1; } }

/* after dashboard */
.ba-dash {
  height: 230px; padding: 12px; border-radius: 12px; display: flex; flex-direction: column; gap: 10px;
  background: #fff; color: var(--navy); box-shadow: 0 16px 40px rgba(22, 22, 46, 0.14); border: 1px solid var(--line);
}
.ba-dash-top { display: flex; align-items: center; justify-content: space-between; }
.ba-dash-title { width: 90px; height: 8px; border-radius: 3px; background: var(--navy); }
.ba-dash-pill { font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(0, 254, 179, 0.2); color: #00a878; }
.ba-dash-pill::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #00c99a; margin-right: 4px; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.ba-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ba-kpi { padding: 8px; border-radius: 8px; background: var(--tint); display: flex; flex-direction: column; gap: 1px; }
.ba-kpi small { font-size: 8px; color: var(--text-muted); font-weight: 600; }
.ba-kpi strong { font-size: 16px; line-height: 1.1; }
.ba-kpi em { font-size: 8px; font-style: normal; font-weight: 700; color: #00a878; }
.ba-kpi em.warn { color: #e8891d; }
.ba-chart { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 0 2px; }
.ba-chart span { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--blue), var(--violet)); opacity: 0.85; transform-origin: bottom; animation: grow 1.2s var(--ease) both; }
.ba-chart span:nth-child(even) { background: linear-gradient(180deg, var(--mint), var(--blue)); }
.ba-chart span:nth-child(2) { animation-delay: 0.06s; } .ba-chart span:nth-child(3) { animation-delay: 0.12s; } .ba-chart span:nth-child(4) { animation-delay: 0.18s; }
.ba-chart span:nth-child(5) { animation-delay: 0.24s; } .ba-chart span:nth-child(6) { animation-delay: 0.3s; } .ba-chart span:nth-child(7) { animation-delay: 0.36s; } .ba-chart span:nth-child(8) { animation-delay: 0.42s; }
@keyframes grow { from { transform: scaleY(0); } }
.ba-list { display: grid; gap: 4px; }
.ba-list-row { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 600; color: var(--text-muted); }
.ba-list-row i { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.ba-list-row i.ok { background: #00c99a; }
.ba-list-row i.run { background: var(--blue); animation: blink 1s ease-in-out infinite; }

.outcomes-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(2rem, 4vw, 3rem); }
.outcome-mini { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.outcome-mini strong { display: block; margin-bottom: 0.15rem; }
.outcome-mini span { font-size: 0.92rem; color: var(--text-muted); }

/* What we do */
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.svc {
  position: relative; padding: 1.75rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.svc::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--grad-full); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.35s;
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.svc:hover::before { opacity: 1; }
.svc-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.1rem; background: linear-gradient(135deg, rgba(57, 136, 246, 0.12), rgba(124, 58, 237, 0.12)); color: var(--blue); }
.svc-icon svg { width: 24px; height: 24px; }
.svc h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.svc p { color: var(--text-muted); margin-bottom: 1rem; }

.saas-strip {
  display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: 1rem 1.5rem; border-radius: var(--radius);
  background: var(--navy); color: #fff; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.saas-strip:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(22, 22, 46, 0.25); }
.saas-strip-tag { flex: 0 0 auto; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(124, 58, 237, 0.35); color: #c4b5fd; }
.saas-strip-text { flex: 1; color: rgba(255, 255, 255, 0.8); }
.saas-strip-text strong { color: #fff; }
.saas-strip-arrow { font-size: 1.3rem; color: var(--mint); transition: transform 0.3s var(--ease); }
.saas-strip:hover .saas-strip-arrow { transform: translateX(4px); }

.tools { margin-top: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.tools-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.tools-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.tools-cloud li {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 16px; background: var(--tint); border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.tools-cloud li:hover, .tools-cloud li:focus-visible { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 22, 46, 0.08); outline: none; }
.tools-cloud img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.tools-cloud img.is-wide { width: 40px; }
.tool-name {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px);
  padding: 0.3rem 0.6rem; border-radius: 6px; background: var(--navy); color: #fff; font-size: 0.75rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s var(--ease); z-index: 2;
}
.tool-name::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--navy); }
.tools-cloud li:hover .tool-name, .tools-cloud li:focus-visible .tool-name { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 480px) {
  .tools-cloud li { width: 52px; height: 52px; border-radius: 12px; }
  .tools-cloud img { width: 24px; height: 24px; }
  .tools-cloud img.is-wide { width: 34px; }
}

/* Proof */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.stat { padding: 1.25rem 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat strong { display: block; font-size: 2.2rem; line-height: 1; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 0.4rem; }
.stat span { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.case { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.case-thumb { position: relative; height: 170px; padding: 14px; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.case-thumb-1 { background: linear-gradient(135deg, #e9f2ff, #f3ecff); }
.case-thumb-2 { background: linear-gradient(135deg, #e6fff7, #e9f2ff); }
.case-thumb-3 { background: linear-gradient(135deg, #f3ecff, #e6fff7); }
.ct-bar { display: flex; justify-content: space-between; }
.ct-bar span { height: 8px; border-radius: 3px; background: rgba(22, 22, 46, 0.25); width: 34%; }
.ct-bar span:last-child { width: 14%; background: var(--blue); }
.ct-card { padding: 8px; border-radius: 8px; background: #fff; display: flex; align-items: center; gap: 6px; box-shadow: var(--shadow-sm); }
.ct-card b { width: 22px; height: 22px; border-radius: 6px; background: var(--grad); }
.ct-card i { height: 6px; border-radius: 2px; background: #e3e7f1; flex: 1; }
.ct-card i.short { flex: 0.4; }
.ct-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.ct-avatar { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--violet)); flex: 0 0 16px; }
.ct-row i { flex: 1; height: 6px; border-radius: 2px; background: #e3e7f1; }
.ct-row em { font-size: 8px; font-style: normal; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: rgba(0, 254, 179, 0.2); color: #00a878; }
.ct-row em.pending { background: rgba(57, 136, 246, 0.15); color: var(--blue); }
.ct-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ct-kpis div { padding: 6px 8px; border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); }
.ct-kpis small { display: block; height: 5px; width: 60%; border-radius: 2px; background: #e3e7f1; margin-bottom: 4px; }
.ct-kpis b { font-size: 14px; }
.ct-table { display: grid; gap: 4px; }
.ct-table div { display: grid; grid-template-columns: 1.5fr 1fr 1fr 24px; gap: 6px; align-items: center; padding: 5px 8px; border-radius: 6px; background: #fff; box-shadow: var(--shadow-sm); }
.ct-table i { height: 5px; border-radius: 2px; background: #e3e7f1; }
.ct-table em { height: 8px; width: 8px; border-radius: 50%; justify-self: end; }
.ct-table em.ok { background: #00c99a; }
.ct-table em.warn { background: #e8891d; }
.ct-kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; flex: 1; }
.ct-kanban div { padding: 6px; border-radius: 8px; background: rgba(255, 255, 255, 0.7); display: flex; flex-direction: column; gap: 4px; }
.ct-kanban small { height: 5px; width: 60%; border-radius: 2px; background: rgba(22, 22, 46, 0.25); margin-bottom: 2px; }
.ct-kanban b { height: 16px; border-radius: 4px; background: #fff; box-shadow: var(--shadow-sm); border-left: 3px solid var(--blue); }
.ct-kanban b.hl { border-left-color: var(--violet); }
.ct-kanban b.done { border-left-color: #00c99a; opacity: 0.7; }
.case-body { padding: 1.25rem 1.5rem 1.5rem; }
.case-tag { display: inline-block; margin-bottom: 0.6rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.case h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.case p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.case-before { color: var(--navy); font-weight: 600; }
.cases-cta { margin-top: 2rem; text-align: center; }

.check-list { display: grid; gap: 0.8rem; }
.check-list li { position: relative; padding-left: 2rem; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0, 254, 179, 0.15); border: 1.5px solid var(--mint);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: calc(0.3rem + 4px); width: 5px; height: 8px;
  border-right: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(45deg);
}

/* How we work — horizontal flow */
.steps-flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; padding-top: 0.5rem; }
.steps-flow::before {
  content: ""; position: absolute; top: calc(0.5rem + 24px); left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--mint)); opacity: 0.35;
}
.steps-flow::after {
  content: ""; position: absolute; top: calc(0.5rem + 24px); left: 12.5%; right: 12.5%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 20px);
  background-size: 20px 2px; opacity: 0.9; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  animation: stepsDash 1.2s linear infinite;
}
@keyframes stepsDash { to { background-position: 20px 0; } }
.sf-step { position: relative; text-align: center; padding: 0 0.5rem; }
.sf-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 1rem;
  background: #fff; border: 2px solid var(--blue); color: var(--blue); font-weight: 800; font-size: 1rem; box-shadow: 0 0 0 8px #fff;
}
.sf-step:nth-child(2) .sf-num { border-color: #5a63f1; color: #5a63f1; }
.sf-step:nth-child(3) .sf-num { border-color: var(--violet); color: var(--violet); }
.sf-step:nth-child(4) .sf-num { border-color: #00c99a; color: #00b58a; }
.sf-step h3 { margin-bottom: 0.3rem; font-size: 1.15rem; }
.sf-step p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.discovery-badge { display: inline-block; margin-bottom: 0.75rem; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(0, 201, 154, 0.14); color: #00a878; }

/* Final CTA / contact */
.cta-final { position: relative; overflow: hidden; }
.cta-bullets { display: grid; gap: 0.6rem; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.cta-bullets li { position: relative; padding-left: 1.6rem; }
.cta-bullets li::before { content: "✓"; position: absolute; left: 0; color: #00a878; font-weight: 800; }
.cta-action { display: grid; gap: 1.25rem; align-content: center; padding: clamp(1.5rem, 3vw, 2.5rem); }
.cta-action h3 { font-size: 1.25rem; margin: 0; }
.cta-action .btn { justify-self: start; }
.cta-action .form-note { text-align: left; }
/* unified contact card: offer (left) + form (right) */
.contact-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; max-width: 1040px; margin-inline: auto;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); overflow: hidden;
}
.cta-offer {
  display: grid; gap: 1.25rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(180deg, #f5f7fc, #eef4ff); border-right: 1px solid var(--line);
}
.cta-offer-head h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.cta-offer-head p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
.cta-offer .check-list li { color: var(--navy); font-size: 0.97rem; }
.cta-offer .check-list li::before { background: rgba(0, 201, 154, 0.14); border-color: #00c99a; }
.cta-offer .check-list li::after { border-color: #00a878; }
.cta-offer-note { margin: 0; padding-top: 0.75rem; border-top: 1px dashed #c9cede; font-size: 0.85rem; color: var(--text-muted); }

.contact-form { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); background: #fff; color: var(--navy); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; font-size: 0.85rem; font-weight: 700; }
.field input, .field textarea {
  font: inherit; font-weight: 500; font-size: 0.95rem; color: var(--navy);
  padding: 0.8rem 0.95rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--tint);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(57, 136, 246, 0.15); }
.field input.is-invalid, .field textarea.is-invalid { border-color: #ff5f7e; }
.form-submit { width: 100%; }
.form-note { margin: 0; font-size: 0.85rem; color: var(--text-muted); text-align: center; }
.form-note a { color: var(--blue); font-weight: 600; }
.form-note.is-sent { color: #00a878; font-weight: 600; }
.form-note.is-error { color: #ff5f7e; font-weight: 600; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.cf-turnstile { margin: 0; }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-brand { max-width: 380px; }
.footer-brand p { color: var(--text-muted); font-size: 0.95rem; margin-top: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: start; }
.footer-nav a { font-weight: 600; font-size: 0.92rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--navy); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-muted); }

/* =========================================================
   Service pages
   ========================================================= */
.page-hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.page-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.page-hero .lead { max-width: 54ch; }
.hero-actions-left { justify-content: flex-start; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { opacity: 0.5; }
.breadcrumb em { font-style: normal; color: var(--blue); }

/* pipeline visual */
.pipeline {
  display: grid; gap: 0; padding: 1.5rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pipe-node {
  position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 0.85rem;
  padding: 0.85rem 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 0.92rem;
}
.pipe-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(57, 136, 246, 0.12), rgba(124, 58, 237, 0.12)); color: var(--blue); }
.pipe-icon svg { width: 20px; height: 20px; }
.pipe-trigger { border-style: dashed; border-color: #c9cede; }
.pipe-trigger .pipe-icon { background: var(--tint); color: #8b8fa8; }
.pipe-result { border-color: rgba(0, 201, 154, 0.5); background: linear-gradient(180deg, #fff, #f0fbf7); }
.pipe-result .pipe-icon { background: rgba(0, 201, 154, 0.15); color: #00a878; }
.pipe-tag { grid-column: 3; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 999px; background: var(--tint-2); color: var(--text-muted); }
.pipe-tag-ok { background: rgba(0, 201, 154, 0.15); color: #00a878; }
.pipe-link { position: relative; height: 26px; margin-left: 1.9rem; width: 2px; background: linear-gradient(180deg, var(--blue), var(--violet)); opacity: 0.5; }
.pipe-link i { position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: pipeDrop 1.6s linear infinite; }
.pipe-link:nth-of-type(4) i { animation-delay: 0.5s; }
.pipe-link:nth-of-type(6) i { animation-delay: 1s; }
@keyframes pipeDrop { 0% { transform: translateY(-4px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(22px); opacity: 0; } }

/* what we automate */
.auto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.auto-item { display: grid; gap: 0.35rem; padding: 1.5rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.auto-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.auto-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 0.6rem; background: linear-gradient(135deg, rgba(57, 136, 246, 0.12), rgba(124, 58, 237, 0.12)); color: var(--blue); }
.auto-icon svg { width: 22px; height: 22px; }
.auto-item strong { font-size: 1.05rem; }
.auto-item span:last-child { color: var(--text-muted); font-size: 0.95rem; }

/* scenarios */
.scenarios { display: grid; gap: 1.25rem; }
.scenario { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1.5rem 2rem; padding: 1.75rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.scenario-head { display: grid; gap: 0.5rem; align-content: start; }
.scenario-num { font-size: 0.85rem; font-weight: 800; letter-spacing: 0.1em; color: var(--blue); }
.scenario h3 { font-size: 1.35rem; margin: 0; }
.mini-flow { display: grid; gap: 0.4rem; counter-reset: mf; position: relative; padding-left: 1.9rem; }
.mini-flow::before { content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--blue), var(--violet), var(--mint)); opacity: 0.35; }
.mini-flow li { position: relative; padding: 0.4rem 0.75rem; border-radius: 10px; background: var(--tint); font-size: 0.9rem; font-weight: 500; counter-increment: mf; }
.mini-flow li::before {
  content: counter(mf); position: absolute; left: -1.9rem; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--blue); color: var(--blue); font-size: 0.7rem; font-weight: 800;
}
.mini-flow li:last-child::before { border-color: #00c99a; color: #00a878; }
.scenario-ba { display: grid; gap: 0.75rem; align-content: start; }
.scenario-ba > div { padding: 0.9rem 1rem; border-radius: 12px; border: 1px solid var(--line); }
.scenario-ba > div:last-child { border-color: rgba(0, 201, 154, 0.45); background: linear-gradient(180deg, #fff, #f0fbf7); }
.scenario-ba p { margin: 0.35rem 0 0; font-size: 0.92rem; color: var(--text-muted); }
.scenario-ba > div:last-child p { color: var(--navy); font-weight: 500; }
.ba-tag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ba-tag-before { background: var(--tint-2); color: var(--text-muted); }
.ba-tag-after { background: rgba(0, 201, 154, 0.14); color: #00a878; }

/* fit */
.fit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.fit-col { padding: 1.75rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.fit-col h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.fit-yes { border-color: rgba(0, 201, 154, 0.45); }
.fit-yes h3 { color: #00a878; }
.fit-no h3 { color: var(--text-muted); }
.fit-col .check-list li { color: var(--navy); }
.x-list { display: grid; gap: 0.8rem; }
.x-list li { position: relative; padding-left: 2rem; font-weight: 500; color: var(--text-muted); }
.x-list li::before { content: "×"; position: absolute; left: 4px; top: -2px; font-size: 1.15rem; font-weight: 800; color: #c9cede; }
.x-list a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.timeline::before { content: ""; position: absolute; top: 7px; left: 4%; right: 4%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--violet), var(--mint)); opacity: 0.35; }
.tl-item { position: relative; padding-top: 1.75rem; }
.tl-dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 0 0 5px #fff; }
.tl-item:nth-child(2) .tl-dot { border-color: #5a63f1; }
.tl-item:nth-child(3) .tl-dot { border-color: var(--violet); }
.tl-item:nth-child(4) .tl-dot { border-color: #00c99a; }
.tl-when { display: inline-block; margin-bottom: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.tl-item h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.tl-item p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* tools (page variant) */
.tools-page { margin-top: 0; }
.tools-heading { margin-bottom: 0.5rem; }
.tools-sub { color: var(--text-muted); max-width: 60ch; margin: 0 auto 1.5rem; }

/* faq */
.faq-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.faq-inner .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.faq { display: grid; gap: 0.6rem; }
.faq-item { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: box-shadow 0.25s, border-color 0.25s; }
.faq-item[open] { border-color: rgba(57, 136, 246, 0.4); box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--blue); font-weight: 800; transition: transform 0.25s var(--ease), background 0.25s; }
.faq-item[open] summary::after { content: "–"; transform: rotate(180deg); background: rgba(57, 136, 246, 0.12); }
.faq-item p { margin: 0; padding: 0 1.25rem 1.25rem; color: var(--text-muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.service-grid .reveal:nth-child(2), .cases .reveal:nth-child(2) { transition-delay: 0.08s; }
.service-grid .reveal:nth-child(3), .cases .reveal:nth-child(3) { transition-delay: 0.16s; }
.service-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .flow-v2 { grid-template-columns: 1fr; gap: 3rem; }
  .flow-v2 .hub { justify-self: center; }
  .flow-v2 .flow-outcomes { justify-self: stretch; width: 100%; }
  .flow-v2 .chaos-board { margin-inline: auto; }
  .familiar-inner { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .cta-offer { border-right: 0; border-bottom: 1px solid var(--line); }
  .familiar-inner .section-head { position: static; margin-bottom: 0.5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: 1fr; }
  .case { display: grid; grid-template-columns: 240px 1fr; }
  .case-thumb { height: auto; min-height: 170px; }
  .outcomes-row { grid-template-columns: 1fr; }
  .page-hero-inner, .faq-inner, .fit-cols { grid-template-columns: 1fr; }
  .faq-inner .section-head { position: static; }
  .auto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario { grid-template-columns: 1fr 1fr; }
  .scenario-head { grid-column: 1 / -1; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { display: none; }
}

@media (max-width: 860px) {
  .flow, .flow-v2 { grid-template-columns: 1fr; gap: 3rem; }
  .chaos-board { margin-inline: auto; }
  .flow-col-label, .flow-outcomes .flow-col-label { text-align: center; }
  .flow-center .flow-col-label { display: none; }
  .hub { justify-self: center; }
  .chaos-nodes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; }
  .chaos-node { flex-direction: column; text-align: center; gap: 0.35rem; font-size: 0.74rem; padding: 0.6rem 0.4rem; }
  .chaos-node .node-sub { display: none; }
  .outcome-nodes { flex-direction: row; gap: 0.75rem; }
  .outcome-node { flex: 1; flex-direction: column; text-align: center; gap: 0.5rem; padding: 0.9rem 0.6rem; }
  .outcome-node .node-sub { display: none; }
  .outcome-node.is-hit { transform: translateY(-3px); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .header-inner { height: 68px; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(22, 22, 46, 0.12);
    padding: 0.5rem 1.25rem 1.25rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .site-nav a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }
  .service-grid { grid-template-columns: 1fr; }
  .auto-grid, .scenario, .timeline { grid-template-columns: 1fr; }
  .pipe-node { grid-template-columns: 40px 1fr; }
  .pipe-tag { grid-column: 2; justify-self: start; }
  .steps-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .steps-flow::before, .steps-flow::after { display: none; }
  .ba { grid-template-columns: 1fr; }
  .ba-arrow svg { transform: rotate(90deg); }
  .case { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .saas-strip { flex-wrap: wrap; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 520px) {
  .chaos-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chaos-node { flex-direction: row; text-align: left; gap: 0.5rem; font-size: 0.74rem; padding: 0.5rem 0.7rem; }
  .outcome-node { font-size: 0.78rem; }
  .stats { grid-template-columns: 1fr; }
  .steps-flow { grid-template-columns: 1fr; }
  .check-result { grid-template-columns: auto minmax(0, 1fr); }
  .check-cta { grid-column: 1 / -1; width: 100%; }
  .hub-core { padding: 1.1rem 1.4rem; }
  .hub-logo { height: 20px; }
  .logo-img { height: 22px; }
}

/* ---------- Reduced motion ---------- */
@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; }
  .reveal { opacity: 1; transform: none; }
}
