/* ==================== BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background-color: var(--surface-muted);
  color: var(--ink-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-600);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background-color: currentColor;
}

.btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 50px;
  padding: 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-lg svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.5;
  transition: transform 0.2s var(--ease);
}

.btn-lg:hover svg { transform: translateX(3px); }

.btn-lg.solid {
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -4px rgba(37, 99, 235, 0.45);
}

.btn-lg.solid:hover {
  background: linear-gradient(180deg, var(--brand-600), var(--brand-700));
  transform: translateY(-2px);
}

svg.ico {
  display: block;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==================== HERO ==================== */
.fb-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 5rem;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 18%, rgba(59, 123, 246, 0.16), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(24, 119, 242, 0.1), transparent 40%),
    linear-gradient(180deg, #f7faff 0%, #eaf1fd 100%);
}

/* Soft dotted grid */
.fb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(37, 99, 235, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%, #000 80%, transparent 100%);
  opacity: 0.6;
}

/* Drifting glow */
.fb-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 10%;
  right: 12%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 119, 242, 0.18), transparent 65%);
  filter: blur(10px);
}

.js .fb-hero::after { animation: fbDrift 14s ease-in-out infinite alternate; }

.fb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

/* Copy */
.fb-copy { max-width: 560px; }

.fb-copy h1 {
  font-size: clamp(2.3rem, 5vw, 50px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  margin-bottom: 1.25rem;
}

.fb-copy h1 span { display: block; }

.fb-copy p {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-600);
  max-width: 540px;
}

.fb-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.fb-play {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: color 0.2s ease;
}

.fb-play-btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--brand-600);
  background-color: #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.5), 0 10px 22px -8px rgba(11, 19, 36, 0.35);
  transition: transform 0.2s var(--ease);
}

.fb-play-btn svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
.fb-play:hover { color: var(--brand-600); }
.fb-play:hover .fb-play-btn { transform: scale(1.06); }

.fb-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  list-style: none;
}

.fb-points li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-700);
}

.fb-points .tick {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #e0edff;
  color: var(--brand-600);
}

.fb-points .tick svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==================== HERO VISUAL ==================== */
/* Everything inside .fbv is sized in em, and the em scales with the column width */
.fbv-wrap { container-type: inline-size; }

.fbv {
  --fb: #1877f2;
  position: relative;
  font-size: 13px;
  font-size: calc(100cqw / 52.5);
  width: 52.5em;
  height: 31.5em;
}

.fbv svg.i {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fbv-float { height: 100%; }

/* Connectors */
/* Fixed to the original 49em x 31.5em drawing area so the lines stay aligned with the steps */
.fbv-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 49em;
  height: 31.5em;
  overflow: visible;
  z-index: 1;
}

.fbv-lines path {
  fill: none;
  stroke: #3b7bf6;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
  opacity: 0.75;
}

.js .fbv-lines path { animation: fbDash 1s linear infinite; }

/* Facebook ad card */
.fbv-ad {
  position: absolute;
  left: 0;
  top: 1em;
  width: 14em;
  z-index: 3;
}

.fbv-card {
  padding: 0.9em;
  border-radius: 1em;
  background-color: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -24px rgba(11, 19, 36, 0.35), 0 8px 18px -10px rgba(11, 19, 36, 0.15);
}

/* Mobile mockup showing the leads app */
/* Sits beside the laptop (laptop screen ends at 43.5em) instead of covering it */
.fbv-mob {
  position: absolute;
  left: 43.5em;
  top: 3em;
  width: 9em;
  z-index: 4;
}

/* Standard phone proportions (about 9:19.5) */
.fbv-phone {
  position: relative;
  display: flex;
  height: 19.5em;
  padding: 0.38em;
  border-radius: 1.7em;
  background: linear-gradient(145deg, #2a3548, #0f172a 45%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 34px 60px -24px rgba(11, 19, 36, 0.5),
    0 10px 20px -12px rgba(11, 19, 36, 0.25);
}

/* Dynamic island */
.fbv-phone::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 50%;
  width: 2.9em;
  height: 0.8em;
  margin-left: -1.45em;
  border-radius: 999px;
  background-color: #0b1120;
  z-index: 2;
}

/* Side buttons */
.fbv-phone::after {
  content: "";
  position: absolute;
  top: 4.5em;
  right: -0.18em;
  width: 0.18em;
  height: 2.4em;
  border-radius: 0 0.2em 0.2em 0;
  background-color: #1e293b;
  box-shadow: -9.18em -1em 0 #1e293b, -9.18em 1.8em 0 #1e293b;
}

.fbv-screen {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.35em 0.55em 0.45em;
  border-radius: 1.35em;
  background-color: #f6f9ff;
  overflow: hidden;
}

/* List area takes the remaining screen height; extra rows get clipped */
.fbv-mlist {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.fbv-tabbar {
  display: flex;
  justify-content: space-around;
  padding-top: 0.45em;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-400);
}

.fbv-tabbar svg { width: 0.85em; height: 0.85em; }
.fbv-tabbar .on { color: var(--brand-600); }

.fbv-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 1.5em;
  padding: 0 0.5em;
  margin-bottom: 0.3em;
  font-size: 0.5em;
  font-weight: 700;
  color: var(--ink-900);
}

.fbv-status i {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.15em;
}

.fbv-status i b {
  width: 0.25em;
  border-radius: 1px;
  background-color: var(--ink-900);
}

.fbv-status i b:nth-child(1) { height: 0.35em; }
.fbv-status i b:nth-child(2) { height: 0.55em; }
.fbv-status i b:nth-child(3) { height: 0.75em; }
.fbv-status i b:nth-child(4) { height: 0.95em; }

.fbv-status i u {
  width: 1.7em;
  height: 0.85em;
  margin-left: 0.4em;
  border-radius: 0.25em;
  border: 1.5px solid var(--ink-900);
  background: linear-gradient(90deg, var(--ink-900) 70%, transparent 70%) content-box;
  padding: 1px;
}

.fbv-home {
  flex-shrink: 0;
  width: 3.2em;
  height: 0.22em;
  margin: 0.45em auto 0;
  border-radius: 999px;
  background-color: var(--ink-900);
}

.fbv-mhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5em;
}

.fbv-mhead strong {
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.fbv-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  color: var(--ink-600);
  background-color: #ffffff;
  box-shadow: 0 0 0 1px var(--line-soft);
}

.fbv-bell svg { width: 0.8em; height: 0.8em; }

.fbv-bell b {
  position: absolute;
  top: 0.1em;
  right: 0.1em;
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background-color: #ef4444;
  box-shadow: 0 0 0 1.5px #ffffff;
}

/* Push notification */
.fbv-notif {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45em;
  margin-bottom: 0.45em;
  border-radius: 0.65em;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 16px -10px rgba(11, 19, 36, 0.4), 0 0 0 1px var(--line-soft);
}

.fbv-notif .fb-logo { width: 1.4em; height: 1.4em; }

.fbv-notif strong,
.fbv-lead strong,
.fbv-mrow strong {
  display: block;
  font-size: 0.52em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
  white-space: nowrap;
}

.fbv-notif small,
.fbv-lead small,
.fbv-mrow small {
  display: block;
  font-size: 0.46em;
  line-height: 1.3;
  color: var(--ink-500);
  white-space: nowrap;
}

.fbv-notif, .fbv-lead { overflow: hidden; }

/* New lead detail card */
.fbv-lead {
  padding: 0.55em;
  margin-bottom: 0.45em;
  border-radius: 0.75em;
  background-color: #ffffff;
  box-shadow: 0 0 0 1.5px #bcd4ff, 0 10px 18px -12px rgba(37, 99, 235, 0.5);
}

.fbv-lead-top {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.fbv-lead-top .fbv-av { width: 1.8em; height: 1.8em; font-size: 0.62em; }
.fbv-lead-top .fbv-badge { margin-left: auto; font-size: 0.44em; }

.fbv-lead-meta {
  display: flex;
  gap: 0.3em;
  margin-top: 0.45em;
}

.fbv-lead-meta span {
  font-size: 0.42em;
  font-weight: 600;
  padding: 0.25em 0.6em;
  border-radius: 999px;
  color: var(--ink-600);
  background-color: #f1f5fb;
  white-space: nowrap;
}

.fbv-lead-acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3em;
  margin-top: 0.5em;
}

.fbv-lead-acts span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  height: 1.5em;
  border-radius: 0.45em;
  font-size: 0.5em;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--brand-600);
}

.fbv-lead-acts span:last-child { background-color: #22c55e; }
.fbv-lead-acts svg { width: 1.1em; height: 1.1em; }

/* Compact list */
.fbv-mrow {
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.4em 0.1em;
  border-top: 1px solid var(--line-soft);
}

.fbv-mrow .fbv-av { width: 1.6em; height: 1.6em; font-size: 0.56em; }
.fbv-mrow .fbv-badge { margin-left: auto; padding: 0.3em 0.6em; font-size: 0.36em; }

.fbv-mrow .fbv-badge,
.fbv-lead-top .fbv-badge,
.fbv-mrow .fbv-av,
.fbv-lead-top .fbv-av { flex-shrink: 0; }

.fbv-mrow > div,
.fbv-lead-top > div,
.fbv-notif > div {
  min-width: 0;
  overflow: hidden;
}

.fbv-mrow > div > *,
.fbv-lead-top > div > * { text-overflow: ellipsis; overflow: hidden; }

.fbv-ad-head {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin-bottom: 0.7em;
}

.fb-logo {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background-color: var(--fb);
}

.fb-logo svg { width: 62%; height: 62%; fill: #ffffff; }

.fbv-ad-head strong {
  font-size: 1.15em;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fb);
}

.fbv-ad-head small {
  margin-left: auto;
  font-size: 0.6em;
  font-weight: 600;
  color: var(--ink-400);
}

.fbv-ad-img {
  position: relative;
  height: 7em;
  border-radius: 0.6em;
  background-color: #c9d8ee;
  background-image: url("https://images.unsplash.com/photo-1568605114967-8130f3a36994?auto=format&fit=crop&w=600&q=80");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.fbv-ad-img span {
  position: absolute;
  top: 0.5em;
  right: 0.5em;
  padding: 0.2em 0.55em;
  border-radius: 999px;
  font-size: 0.55em;
  font-weight: 700;
  color: #ffffff;
  background-color: rgba(11, 19, 36, 0.55);
}

.fbv-ad h4 {
  margin-top: 0.75em;
  font-size: 0.92em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.fbv-ad p {
  margin-top: 0.2em;
  font-size: 0.66em;
  line-height: 1.45;
  color: var(--ink-500);
}

.fbv-btn {
  display: grid;
  place-items: center;
  height: 2.3em;
  margin-top: 0.7em;
  border-radius: 0.5em;
  font-size: 0.72em;
  font-weight: 700;
  color: #ffffff;
  background-color: var(--fb);
}

.fbv-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.2em;
  margin-top: 0.5em;
  padding: 0 0.7em;
  border: 1px solid var(--line);
  border-radius: 0.45em;
  background-color: #fafcff;
}

.fbv-field:first-of-type { margin-top: 0.8em; }

.fbv-field .ph,
.fbv-field .val {
  position: absolute;
  left: 0.9em;
  font-size: 0.68em;
  white-space: nowrap;
}

.fbv-field .ph { color: var(--ink-400); opacity: 0; }
.fbv-field .val { font-weight: 600; color: var(--ink-800); }

.fbv-submit { margin-top: 0.6em; }

.fbv-react {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.8em;
  font-size: 0.62em;
  font-weight: 600;
  color: var(--ink-500);
}

.fbv-react .emo { display: flex; }

.fbv-react .emo i {
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  margin-left: -0.35em;
  border-radius: 50%;
  border: 2px solid #ffffff;
  font-style: normal;
  font-size: 0.9em;
  line-height: 1;
}

.fbv-react .emo i:first-child { margin-left: 0; background-color: var(--fb); }
.fbv-react .emo i:nth-child(2) { background-color: #f33e58; }
.fbv-react .emo i:nth-child(3) { background-color: #f7b125; }
.fbv-react em { margin-left: auto; font-style: normal; }

/* Automation step icons (capture, sync, assign, follow-up) */
/* Each step = name label on top + icon; the column is centred on x = 17.25em */
.fbv-step {
  position: absolute;
  left: 14em;
  width: 6.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  z-index: 3;
}

/* Icon centres land at 6.59 / 10.19 / 13.79 / 17.39em (top + 2.19em) */
.fbv-step.s1 { top: 4.4em; --c1: #3b7bf6; --c2: #2563eb; }
.fbv-step.s2 { top: 8em; --c1: #9b6bff; --c2: #7c3aed; }
.fbv-step.s3 { top: 11.6em; --c1: #34d399; --c2: #059669; }
.fbv-step.s4 { top: 15.2em; --c1: #fb923c; --c2: #ea580c; }

/* Tranquil brand node at the top of the steps column */
.fbv-brand {
  position: absolute;
  left: 15.85em;
  top: 1em;
  width: 2.8em;
  height: 2.8em;
  z-index: 3;
}

.fbv-brand-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 0.8em;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px var(--line-soft), 0 0 0 0.3em rgba(255, 255, 255, 0.7), 0 14px 26px -10px rgba(37, 99, 235, 0.5);
}

/* Crops the "A" mark out of the full Tranquil CRM logo */
.fbv-brand-mark {
  width: 1.9em;
  height: 1.66em;
  background-image: url("../images/image.png");
  background-repeat: no-repeat;
  background-size: 14.61em auto;
  background-position: -0.62em -0.86em;
}

.fbv-brand-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--brand-600);
  opacity: 0;
}

.fbv-step-name {
  padding: 0.3em 0.75em;
  border-radius: 999px;
  font-size: 0.52em;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  color: var(--c2);
  background-color: #ffffff;
  box-shadow: 0 6px 14px -8px rgba(11, 19, 36, 0.35), 0 0 0 1px var(--line-soft);
}

.fbv-step-core {
  position: relative;
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 0.3em #ffffff, 0 12px 22px -8px var(--c2);
}

.fbv-step-core svg { width: 46%; height: 46%; }

.fbv-step-core::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--c2);
  opacity: 0;
}

/* Lead "packet" travelling from the form, past the steps, into the CRM */
.fbv-packet {
  position: absolute;
  left: 13.6em;
  top: 2em;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background-color: var(--fb);
  box-shadow: 0 0 0 0.3em rgba(24, 119, 242, 0.2), 0 0 1em rgba(24, 119, 242, 0.6);
  opacity: 0;
  z-index: 2;
}

/* CRM inside a laptop mockup */
.fbv-crm {
  position: absolute;
  left: 19.5em;
  top: 1em;
  width: 25em;
  z-index: 2;
}

.fbv-lid {
  position: relative;
  width: 23em;
  margin: 0 auto;
  padding: 0.75em 0.6em 0.6em;
  border-radius: 1.1em 1.1em 0.3em 0.3em;
  background: linear-gradient(160deg, #2a3548, #0f172a 40%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px -30px rgba(11, 19, 36, 0.45);
}

/* Webcam */
.fbv-lid::before {
  content: "";
  position: absolute;
  top: 0.25em;
  left: 50%;
  width: 0.3em;
  height: 0.3em;
  margin-left: -0.15em;
  border-radius: 50%;
  background-color: #334155;
  box-shadow: 0 0 0 1px #1e293b;
}

.fbv-base {
  position: relative;
  height: 1.05em;
  border-radius: 0.15em 0.15em 1.3em 1.3em / 0.15em 0.15em 0.9em 0.9em;
  background: linear-gradient(180deg, #eef2f8 0%, #cbd4e1 55%, #9aa6b8 100%);
  box-shadow: 0 18px 30px -12px rgba(11, 19, 36, 0.45);
}

/* Opening notch */
.fbv-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4.2em;
  height: 0.38em;
  margin-left: -2.1em;
  border-radius: 0 0 0.5em 0.5em;
  background-color: #a9b4c5;
}

/* Fixed 16:10-style screen, and rows below the fold get clipped like a real screen */
.fbv-window {
  height: 16.5em;
  overflow: hidden;
  border-radius: 0.35em;
  background-color: #ffffff;
}

.fbv-bar {
  display: flex;
  align-items: center;
  gap: 0.35em;
  height: 1.7em;
  padding: 0 0.8em;
  background-color: #f4f7fc;
  border-bottom: 1px solid var(--line-soft);
}

.fbv-bar i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background-color: #d7deea;
}

.fbv-bar i:nth-child(1) { background-color: #ff6159; }
.fbv-bar i:nth-child(2) { background-color: #ffbd2e; }
.fbv-bar i:nth-child(3) { background-color: #28c941; }

.fbv-bar span {
  margin-left: 0.8em;
  padding: 0.25em 1em;
  border-radius: 999px;
  font-size: 0.58em;
  font-weight: 600;
  color: var(--ink-400);
  background-color: #ffffff;
  border: 1px solid var(--line-soft);
}

.fbv-app {
  display: grid;
  grid-template-columns: 3em 1fr;
  height: calc(100% - 1.7em);
}

.fbv-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
  padding: 0.6em 0;
  background-color: #f8faff;
  border-right: 1px solid var(--line-soft);
}

.fbv-side .logo {
  display: grid;
  place-items: center;
  width: 1.8em;
  height: 1.8em;
  margin-bottom: 0.25em;
  border-radius: 0.55em;
  font-size: 0.9em;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
}

.fbv-side a {
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border-radius: 0.5em;
  color: var(--ink-400);
}

.fbv-side a svg { width: 0.95em; height: 0.95em; }

.fbv-side a.on {
  color: #ffffff;
  background-color: var(--brand-600);
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, 0.7);
}

.fbv-main { padding: 0.7em 1em 0.8em; }

.fbv-main-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fbv-main-head h4 {
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.fbv-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  font-size: 0.6em;
  font-weight: 700;
  color: #047857;
  background-color: #dcfce7;
}

.fbv-live::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background-color: #10b981;
}

.js .fbv-live::before { animation: fbBlink 1.4s ease-in-out infinite; }

.fbv-tabs {
  display: flex;
  gap: 0.4em;
  margin: 0.45em 0 0.35em;
}

.fbv-tabs span {
  padding: 0.3em 0.7em;
  border-radius: 999px;
  font-size: 0.6em;
  font-weight: 700;
  color: var(--ink-500);
  background-color: #f1f5fb;
}

.fbv-tabs span.on { color: var(--brand-600); background-color: #e0edff; }

.fbv-row {
  display: grid;
  grid-template-columns: 1fr 3.4em 5.4em;
  column-gap: 0.3em;
  align-items: center;
  height: 2.1em;
  padding: 0 0.4em;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0.5em;
}

/* Keep four whole rows on screen (no half-cut row at the bottom) */
.fbv-row.r5 { display: none; }
.fbv-row.r4 { border-bottom: 0; }

.fbv-row.th {
  height: 1.4em;
  border-radius: 0;
  background-color: transparent;
}

.fbv-row.th span {
  font-size: 0.56em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-400);
}

.fbv-person {
  display: flex;
  align-items: center;
  gap: 0.55em;
  min-width: 0;
}

.fbv-av {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  font-size: 0.72em;
  font-weight: 800;
  color: #ffffff;
}

.fbv-person strong {
  display: block;
  font-size: 0.74em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
}

.fbv-person small {
  display: block;
  font-size: 0.6em;
  color: var(--ink-500);
}

.fbv-row .fb-logo { width: 1.35em; height: 1.35em; }

.fbv-badge {
  justify-self: start;
  padding: 0.3em 0.75em;
  border-radius: 999px;
  font-size: 0.6em;
  font-weight: 700;
  white-space: nowrap;
}

.b-new { color: #2563eb; background-color: #e0edff; }
.b-contacted { color: #7c3aed; background-color: #efe7ff; }
.b-visit { color: #15803d; background-color: #dcfce7; }
.b-interested { color: #b45309; background-color: #fef3c7; }
.b-converted { color: #047857; background-color: #d1fae5; box-shadow: inset 0 0 0 1px #a7f3d0; }

.fbv-row.new { overflow: hidden; }

/* Mini reports card under the laptop */
.fbv-report {
  position: absolute;
  left: 19.5em;
  top: 21.6em;
  width: 18.5em;
  z-index: 2;
}

.fbv-report-in {
  padding: 0.85em 1em 0.9em;
  border-radius: 1em;
  background-color: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgba(11, 19, 36, 0.35), 0 6px 14px -10px rgba(11, 19, 36, 0.15);
}

.fbv-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7em;
}

.fbv-report-head strong {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font-size: 0.78em;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.fbv-report-head strong svg { width: 1.2em; height: 1.2em; color: var(--brand-600); }

.fbv-report-head span {
  padding: 0.3em 0.7em;
  border-radius: 999px;
  font-size: 0.52em;
  font-weight: 700;
  color: var(--brand-600);
  background-color: #e0edff;
}

.fbv-report-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1em;
  align-items: end;
}

.fbv-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35em;
  height: 4.2em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid var(--line-soft);
}

.fbv-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 0.25em 0.25em 0.1em 0.1em;
  background: linear-gradient(180deg, #bcd4ff, #dbe7ff);
}

.fbv-bars i.today { background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); }

.fbv-days {
  display: flex;
  gap: 0.35em;
  margin-top: 0.3em;
}

.fbv-days span {
  flex: 1;
  text-align: center;
  font-size: 0.44em;
  font-weight: 700;
  color: var(--ink-400);
}

.fbv-kpi + .fbv-kpi { margin-top: 0.7em; }

.fbv-kpi small {
  display: block;
  font-size: 0.5em;
  font-weight: 600;
  color: var(--ink-500);
}

.fbv-kpi div {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
}

.fbv-kpi b {
  font-size: 1em;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.fbv-kpi em {
  font-style: normal;
  font-size: 0.48em;
  font-weight: 700;
  color: #059669;
}

.fbv-progress {
  height: 0.35em;
  margin-top: 0.3em;
  border-radius: 999px;
  background-color: #eef2f8;
  overflow: hidden;
}

.fbv-progress i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--c1), var(--c2));
}

/* Floating chips */
.fbv-chip {
  position: absolute;
  z-index: 4;
}

.fbv-chip.c1 { right: 0; top: 27.6em; }

.fbv-chip-in {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.8em 0.4em 0.4em;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 36px -16px rgba(11, 19, 36, 0.35);
}

.fbv-chip-ico {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  color: #ffffff;
}

.c1 .fbv-chip-ico { background: linear-gradient(180deg, #fb923c, #ea580c); }
.fbv-chip-ico svg { width: 48%; height: 48%; }

.fbv-chip strong {
  display: block;
  font-size: 0.7em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink-900);
}

.fbv-chip small {
  display: block;
  font-size: 0.58em;
  line-height: 1.3;
  color: var(--ink-500);
}

.fbv-chip small b { color: #059669; }

/* ==================== HERO ANIMATIONS ==================== */
.js .re-anim {
  opacity: 0;
  transform: translateY(18px);
  animation: reUp 0.8s var(--ease) forwards;
}

.js .re-anim.d1 { animation-delay: 0.08s; }
.js .re-anim.d2 { animation-delay: 0.16s; }
.js .re-anim.d3 { animation-delay: 0.24s; }
.js .re-anim.d4 { animation-delay: 0.32s; }

/* 1. Cards pop in */
.js .fbv-ad { animation: fbPop 0.8s var(--ease) 0.35s both; }
.js .fbv-crm { animation: fbPop 0.8s var(--ease) 0.5s both; }
.js .fbv-step { animation: fbPop 0.6s var(--ease) both; }
.js .fbv-step.s1 { animation-delay: 0.8s; }
.js .fbv-step.s2 { animation-delay: 0.95s; }
.js .fbv-step.s3 { animation-delay: 1.1s; }
.js .fbv-step.s4 { animation-delay: 1.25s; }

/* Each step pings in turn whenever a lead passes (synced with the packet) */
.js .fbv-step-core::after { animation: fbStepPing 3s ease-out infinite; }
.js .s1 .fbv-step-core::after { animation-delay: 4.78s; }
.js .s2 .fbv-step-core::after { animation-delay: 5.05s; }
.js .s3 .fbv-step-core::after { animation-delay: 5.33s; }
.js .s4 .fbv-step-core::after { animation-delay: 5.6s; }

/* Tranquil logo pops in first, then pings when each lead reaches it */
.js .fbv-brand { animation: fbPop 0.6s var(--ease) 0.65s both; }
.js .fbv-brand-core::after { animation: fbStepPing 3s ease-out 4.46s infinite; }
.js .fbv-brand-core { animation: fbBob 4s ease-in-out 1.3s infinite; }
.js .fbv-lines { animation: fbFade 0.8s ease 0.9s both; }

/* 2. Existing CRM rows appear */
.js .fbv-row.r { animation: fbRowIn 0.5s var(--ease) both; }
.js .fbv-row.r2 { animation-delay: 1s; }
.js .fbv-row.r3 { animation-delay: 1.1s; }
.js .fbv-row.r4 { animation-delay: 1.2s; }
.js .fbv-row.r5 { animation-delay: 1.3s; }

/* 3. Someone fills the Facebook lead form */
.js .fbv-field .ph { animation: fbPhOut 0.15s ease both; }
.js .fbv-field .val { animation: fbType 0.7s steps(14, end) both; }
.js .fbv-field.f1 .ph { animation-delay: 1.5s; }
.js .fbv-field.f1 .val { animation-delay: 1.5s; }
.js .fbv-field.f2 .ph { animation-delay: 2.3s; }
.js .fbv-field.f2 .val { animation-delay: 2.3s; }
.js .fbv-field.f3 .ph { animation-delay: 3.1s; }
.js .fbv-field.f3 .val { animation-delay: 3.1s; }

.js .fbv-submit { animation: fbPress 0.35s ease 3.95s both; }

/* 4. The lead travels through Facebook into the CRM (then keeps flowing) */
.js .fbv-packet { animation: fbTravel 3s ease-in-out 4.1s infinite; }

/* 5. It lands at the top of the CRM table */
.js .fbv-row.new { animation: fbNewRow 1.8s var(--ease) 5.9s both; }
.js .fbv-row.new .b-new { animation: fbBadge 2s ease-in-out 7.8s infinite; }

/* 7. ...and on the mobile app at the same time */
.js .fbv-mob { animation: fbPop 0.8s var(--ease) 0.65s both; }
.js .fbv-mrow { animation: fbRowIn 0.5s var(--ease) both; }
.js .fbv-mrow.m1 { animation-delay: 1.1s; }
.js .fbv-mrow.m2 { animation-delay: 1.2s; }
.js .fbv-mrow.m3 { animation-delay: 1.3s; }
.js .fbv-mrow.m4 { animation-delay: 1.4s; }
.js .fbv-bell b { animation: fbPopDot 0.4s var(--ease) 6s both; }
.js .fbv-bell { animation: fbRingBell 0.8s ease 6s both; }
.js .fbv-notif { animation: fbInsert 0.7s var(--ease) 6s both; }
.js .fbv-lead { animation: fbInsert 0.8s var(--ease) 6.4s both; }
.js .fbv-lead .fbv-badge { animation: fbBadge 2s ease-in-out 7.8s infinite; }

/* Reports card: pops in, bars grow, progress fills, today's bar bumps when the lead lands */
.js .fbv-report { animation: fbPop 0.8s var(--ease) 0.9s both; }
.js .fbv-bars i { animation: fbBarGrow 0.7s var(--ease) both; }
.js .fbv-bars i:nth-child(1) { animation-delay: 1.3s; }
.js .fbv-bars i:nth-child(2) { animation-delay: 1.38s; }
.js .fbv-bars i:nth-child(3) { animation-delay: 1.46s; }
.js .fbv-bars i:nth-child(4) { animation-delay: 1.54s; }
.js .fbv-bars i:nth-child(5) { animation-delay: 1.62s; }
.js .fbv-bars i:nth-child(6) { animation-delay: 1.7s; }
.js .fbv-bars i.today { animation: fbBarGrow 0.7s var(--ease) 1.78s both, fbBarBump 0.6s var(--ease) 6s forwards; }
.js .fbv-progress i { animation: fbFill 1.2s var(--ease) 1.6s both; }

/* 8. Chip pops in */
.js .fbv-chip.c1 { animation: fbPop 0.7s var(--ease) 1.5s both; }

/* Idle floating */
.js .fbv-ad .fbv-card { animation: fbFloat 6s ease-in-out 1.2s infinite; }
.js .fbv-crm .fbv-laptop { animation: fbFloat 7s ease-in-out 2s infinite; }
.js .fbv-mob .fbv-phone { animation: fbFloat 5.5s ease-in-out 1.6s infinite; }
.js .fbv-chip.c1 .fbv-chip-in { animation: fbFloat 5s ease-in-out 2.2s infinite; }
.js .fbv-step-core { animation: fbBob 4s ease-in-out infinite; }
.js .s1 .fbv-step-core { animation-delay: 1.5s; }
.js .s2 .fbv-step-core { animation-delay: 1.8s; }
.js .s3 .fbv-step-core { animation-delay: 2.1s; }
.js .s4 .fbv-step-core { animation-delay: 2.4s; }

@keyframes reUp { to { opacity: 1; transform: none; } }

@keyframes fbBarGrow { from { height: 0; } to { height: var(--h); } }
@keyframes fbBarBump { from { height: var(--h); } to { height: var(--h2); } }
@keyframes fbFill { from { width: 0; } to { width: var(--w); } }

@keyframes fbStepPing {
  0% { opacity: 0.7; transform: scale(1); }
  30%, 100% { opacity: 0; transform: scale(1.8); }
}

/* Form -> Tranquil logo -> down through every step -> out of step 4 into the laptop */
@keyframes fbTravel {
  0% { left: 13.6em; top: 2em; opacity: 0; }
  5% { opacity: 1; }
  12% { left: 16.85em; top: 2em; }
  50% { left: 16.85em; top: 16.99em; }
  60% { left: 20.1em; top: 16.99em; opacity: 1; }
  66%, 100% { left: 20.4em; top: 16.99em; opacity: 0; }
}

@keyframes fbInsert {
  from {
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transform: translateY(-0.6em) scale(0.95);
  }
  to { max-height: 8em; opacity: 1; transform: none; }
}

@keyframes fbPopDot {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes fbRingBell {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(14deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-4deg); }
}

@keyframes fbPop {
  0% { opacity: 0; transform: translateY(1.2em) scale(0.94); }
  100% { opacity: 1; transform: none; }
}

@keyframes fbFade { from { opacity: 0; } to { opacity: 1; } }

@keyframes fbRowIn {
  from { opacity: 0; transform: translateY(0.6em); }
  to { opacity: 1; transform: none; }
}

@keyframes fbType {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes fbPhOut { from { opacity: 1; } to { opacity: 0; } }

@keyframes fbPress {
  0%, 100% { transform: scale(1); filter: none; }
  50% { transform: scale(0.94); filter: brightness(1.15); }
}

@keyframes fbRing {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}

@keyframes fbNewRow {
  0% { max-height: 0; height: 0; opacity: 0; background-color: #eaf2ff; transform: translateY(-0.6em); }
  25% { max-height: 2.1em; height: 2.1em; opacity: 1; background-color: #eaf2ff; transform: none; }
  100% { max-height: 2.1em; height: 2.1em; opacity: 1; background-color: transparent; transform: none; }
}

@keyframes fbBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
  50% { box-shadow: 0 0 0 0.35em rgba(37, 99, 235, 0.15); }
}

@keyframes fbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.55em); }
}

@keyframes fbBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.3em); }
}

@keyframes fbDash { to { stroke-dashoffset: -20; } }

@keyframes fbBlink { 50% { opacity: 0.3; } }

@keyframes fbDrift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-60px, 40px) scale(1.15); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .fb-hero { padding: 4rem 0 4.5rem; }
  .fb-hero-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .fb-copy { max-width: 640px; }
  .fbv-wrap { max-width: 720px; width: 100%; margin: 0 auto; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
}

@media (max-width: 580px) {
  .fb-copy h1 { font-size: 2.1rem; }
  .fb-ctas { gap: 0.875rem; }
  .fb-ctas .btn-lg { width: 100%; }
  .fb-hero-grid { gap: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .re-anim { opacity: 1; transform: none; animation: none; }
  .js .fb-hero *, .js .fb-hero *::before, .js .fb-hero *::after, .js .fb-hero::after { animation: none !important; }
  .btn-lg, .fb-play-btn { transition: none; }
}
/* ==================== 5 CORE FEATURE SECTIONS ==================== */
.sec-pad {
  padding: 5.5rem 0;
  position: relative;
}
.sec-pad.alt-surface {
  background-color: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.sec-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}
h1, h2, h3, h4 { text-wrap: balance; }
.sec-title-wrap p, .split-content p, .ps-head p { text-wrap: pretty; }

.sec-title-wrap h2 {
  font-size: clamp(1.9rem, 3.8vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}
.sec-title-wrap p {
  color: var(--ink-600);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* SECTION 1: PAIN VS SOLUTION (DUAL PANELS) */
.gap-analysis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.gap-col {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.gap-col.pain {
  background-color: #fff9f9;
  border: 1px solid #fee2e2;
}
.gap-col.gain {
  background-color: #f6faff;
  border: 1px solid #dbeafe;
}
.gap-col-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.gap-col-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.gap-col.pain h3 { color: #b91c1c; }
.gap-col.gain h3 { color: var(--brand-600); }

.gap-badge {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.gap-col.pain .gap-badge { background: #fee2e2; color: #dc2626; }
.gap-col.gain .gap-badge { background: #dbeafe; color: var(--brand-600); }
.gap-badge svg { width: 20px; height: 20px; }

.gap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.gap-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.5;
}
.gap-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.gap-col.pain .gap-list li svg { color: #ef4444; }
.gap-col.gain .gap-list li svg { color: #10b981; }

/* SECTION 2: 4-STEP AUTOMATION PIPELINE (BENTO) */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "capture quotes pipeline"
    "vault   vault  pipeline"
    "reviews roi    roi";
  gap: 1.25rem;
}
.b-capture  { grid-area: capture; }
.b-quotes   { grid-area: quotes; }
.b-pipeline { grid-area: pipeline; }
.b-vault    { grid-area: vault; }
.b-reviews  { grid-area: reviews; }
.b-roi      { grid-area: roi; }

.bento-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--surface-muted);
  border: 1px solid var(--line-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}
/* Soft brand glow in the top-right corner */
.bento-card.tinted::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 123, 246, 0.16), transparent 70%);
  pointer-events: none;
}
.bento-head { position: relative; }
.bento-head .process-num { margin-bottom: 0.9rem; }
.bento-head h4 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 0.4rem;
}
.bento-head p {
  font-size: 0.875rem;
  color: var(--ink-500);
  line-height: 1.55;
}

.bento-panel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: 0 10px 24px -18px rgba(11, 19, 36, 0.35);
}
.bp-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.bp-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--ink-500); }
.bp-total { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }
.bp-title { display: block; font-size: 0.95rem; font-weight: 800; color: var(--ink-900); }
.bp-chip, .bp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-600);
  white-space: nowrap;
}
.bp-chip {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.bp-chip svg, .bp-link svg { width: 13px; height: 13px; color: var(--brand-600); }
.bp-chip.live { color: #047857; border-color: #a7f3d0; background-color: #ecfdf5; }
.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: #10b981;
}

/* Lead sources */
.src-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.src-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-800);
}
.src-list li i { width: 8px; height: 8px; border-radius: 50%; background-color: var(--c); }
.src-list li span { margin-left: auto; font-weight: 600; color: var(--ink-500); }
.src-bar { display: flex; gap: 5px; margin-top: auto; padding-top: 1.25rem; }
.src-bar i { width: var(--w); height: 9px; border-radius: 999px; background-color: var(--c); }

/* Assignment card */
.assign-card {
  margin-bottom: 0.9rem;
  padding: 0.9rem;
  border-radius: 10px;
  background-color: var(--surface-muted);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.assign-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.assign-tag { font-size: 0.7rem; font-weight: 700; color: var(--brand-600); }
.assign-dots { font-size: 0.7rem; letter-spacing: 0.1em; color: var(--ink-400); }
.assign-row strong { font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--ink-900); }
.prio {
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #dc2626;
  background-color: #fee2e2;
}
.assign-src {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background-color: #1877f2;
}
.assign-src svg { width: 11px; height: 11px; }
.assign-rep { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; font-weight: 700; color: var(--ink-700); }
.assign-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1.5px dashed #93b8fb;
  background-color: var(--brand-50);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-800);
}
.assign-add span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #ffffff;
  background-color: var(--brand-600);
}

/* Avatars */
.av {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
  background-color: var(--c);
}
.av-stack { display: inline-flex; }
.av-stack .av { box-shadow: 0 0 0 2px var(--surface); }
.av-stack .av + .av { margin-left: -8px; }

/* Follow-up inbox */
.msg-stage {
  display: flex;
  align-items: center;
  padding: 1.25rem 0.9rem 0.9rem;
}
.msg-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 -8px 0 -4px #eef2f8, 0 -16px 0 -8px #f5f7fb, 0 18px 34px -20px rgba(11, 19, 36, 0.4);
}
.msg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-500);
}
.msg-head strong {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink-900);
}
.msg-head strong b, .msg-meta .count {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 800;
  color: #ffffff;
  background-color: var(--brand-600);
}
.msg-list { list-style: none; padding: 0.4rem; }
.msg-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem;
  border-radius: 10px;
}
.msg-list li.active { background-color: #f0f7ff; }
.msg-list .av { width: 32px; height: 32px; font-size: 0.7rem; border-radius: 10px; }
.msg-list li > div:nth-child(2) { flex: 1; min-width: 0; }
.msg-list strong { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink-900); }
.msg-list small {
  display: block;
  font-size: 0.7rem;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-list small.typing { color: var(--brand-600); font-weight: 600; }
.dots { display: inline-flex; gap: 2px; margin-left: 3px; vertical-align: middle; }
.dots i { width: 3px; height: 3px; border-radius: 50%; background-color: currentColor; }
.msg-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.msg-meta small { font-size: 0.65rem; color: var(--ink-400); }
.msg-meta small.seen { color: var(--ink-400); }

.prio.sent { color: #047857; background-color: #d1fae5; }

/* Booking pipeline stages */
.stage-list {
  flex: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
}
.stage-list li {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.3rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background-color: var(--surface-muted);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-800);
}
.stage-list li i { width: 8px; height: 8px; border-radius: 50%; background-color: var(--c); }
.stage-list li span { font-weight: 800; color: var(--ink-900); }
.stage-list li i { position: relative; }
.stage-list li em {
  position: relative;
  grid-column: 2 / -1;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background-color: var(--line-soft);
}
.stage-list li em::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: inherit;
  background-color: var(--c);
}

/* "Card moved" toast at the foot of the pipeline */
.pipe-toast {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px -18px rgba(11, 19, 36, 0.45);
}
.pipe-toast > div { flex: 1; min-width: 0; }
.pipe-toast strong { display: block; font-size: 0.78rem; font-weight: 800; color: var(--ink-900); }
.pipe-toast small { font-size: 0.68rem; color: var(--ink-500); }
.pipe-toast svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  color: #ffffff;
  background-color: #10b981;
}

/* Traveler profile & document vault */
.vault-profile { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.vault-profile .av { width: 38px; height: 38px; font-size: 0.75rem; border-radius: 12px; }
.vault-profile strong { display: block; font-size: 0.9rem; font-weight: 800; color: var(--ink-900); }
.vault-profile small { font-size: 0.72rem; color: var(--ink-500); }
.vault-profile > div { flex: 1; min-width: 0; }
.vault-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-600);
  background-color: var(--brand-50);
  white-space: nowrap;
}
.vault-lock svg { width: 12px; height: 12px; }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.doc {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-800);
  background-color: var(--surface-muted);
}
.doc svg { width: 14px; height: 14px; flex-shrink: 0; }
.doc.ok svg { color: #10b981; }
.doc.wait svg { color: #f59e0b; }
.alert-list { list-style: none; margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; }
.alert-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-700);
}
.alert-list li i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background-color: var(--c); }
.alert-list li span {
  margin-left: auto;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--brand-600);
  background-color: var(--brand-50);
  white-space: nowrap;
}

/* Wide cards: copy left, panel right */
/* Agent conversion rate + average sale (analytics card) */
.agent-title { margin-top: 1.1rem; }
.agent-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.75rem; }
.agent-list li { display: flex; align-items: center; gap: 0.7rem; }
.agent-list .av { width: 30px; height: 30px; font-size: 0.66rem; }
.agent-info { flex: 0 0 38%; min-width: 0; }
.agent-info strong { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ink-900); }
.agent-info small { display: block; font-size: 0.7rem; color: var(--ink-500); }
.agent-meter { flex: 1; display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.agent-meter em { flex: 1; height: 6px; overflow: hidden; border-radius: 999px; background-color: var(--line-soft); }
.agent-meter em i { display: block; width: var(--w); height: 100%; border-radius: inherit; background-color: var(--c); }
.agent-meter span { font-size: 0.75rem; font-weight: 800; color: var(--ink-900); }
.js .bento:not(.in-view) .agent-meter em i { width: 0; }
.js .bento.in-view .agent-meter em i { animation: fbFill 1s var(--ease) 1.2s backwards; }
.js .bento.in-view .agent-list li:nth-child(2) .agent-meter em i { animation-delay: 1.35s; }

.bento-card.wide { flex-direction: row; align-items: center; gap: 2rem; }
.bento-card.wide .bento-head { flex: 0 0 40%; }
.bento-card.wide .bento-panel { flex: 1; min-width: 0; }
.camp-table {
  margin-top: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 10px;
  background-color: var(--surface-muted);
}
.camp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 92px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.8rem;
  color: var(--ink-700);
}
.camp-row + .camp-row { border-top: 1px solid var(--line-soft); }
.camp-th { font-size: 0.72rem; font-weight: 700; color: var(--ink-900); }
.camp-row .won { font-weight: 800; color: #059669; }
.camp-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.camp-row > span:nth-child(2) { text-align: center; }
.camp-row > span:last-child { justify-self: end; }
.camp-th > span:first-child { font-weight: 700; }

.process-num {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-600);
  background-color: var(--brand-50);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1.25rem;
}

/* SECTION 2: BENTO ANIMATIONS (start when .bento scrolls into view) */
.b-quotes .assign-card { position: relative; overflow: hidden; }
.b-quotes .assign-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.75) 50%, transparent 65%);
  transform: translateX(-100%);
  pointer-events: none;
}
.assign-add span { position: relative; }
.assign-add span::after,
.stage-list li i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
}
.assign-add span::after { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); }
.stage-list li i::after { background-color: var(--c); }
.doc-grid { position: relative; overflow: hidden; }
.doc-grid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
  box-shadow: 0 0 12px 2px rgba(59, 123, 246, 0.35);
  opacity: 0;
  pointer-events: none;
}

/* Hidden until in view */
.js .bento:not(.in-view) .bento-card,
.js .bento:not(.in-view) .src-list li,
.js .bento:not(.in-view) .assign-card,
.js .bento:not(.in-view) .assign-add,
.js .bento:not(.in-view) .stage-list li,
.js .bento:not(.in-view) .pipe-toast,
.js .bento:not(.in-view) .doc,
.js .bento:not(.in-view) .alert-list li,
.js .bento:not(.in-view) .msg-list li,
.js .bento:not(.in-view) .camp-row { opacity: 0; }
.js .bento:not(.in-view) .src-bar i,
.js .bento:not(.in-view) .stage-list li em::after { width: 0; }

/* Card entrance, staggered */
.js .bento.in-view .bento-card { animation: bnUp 0.7s var(--ease) backwards; }
.js .bento.in-view .b-capture  { animation-delay: 0s; }
.js .bento.in-view .b-quotes   { animation-delay: 0.1s; }
.js .bento.in-view .b-pipeline { animation-delay: 0.2s; }
.js .bento.in-view .b-vault    { animation-delay: 0.3s; }
.js .bento.in-view .b-reviews  { animation-delay: 0.4s; }
.js .bento.in-view .b-roi      { animation-delay: 0.5s; }

/* 01 Capture: rows slide in, bar segments grow, live dot pings */
.js .bento.in-view .src-list li { animation: bnSlide 0.5s var(--ease) backwards; }
.js .bento.in-view .src-list li:nth-child(1) { animation-delay: 0.45s; }
.js .bento.in-view .src-list li:nth-child(2) { animation-delay: 0.55s; }
.js .bento.in-view .src-list li:nth-child(3) { animation-delay: 0.65s; }
.js .bento.in-view .src-list li:nth-child(4) { animation-delay: 0.75s; }
.js .bento.in-view .src-bar i { animation: fbFill 0.7s var(--ease) backwards; }
.js .bento.in-view .src-bar i:nth-child(1) { animation-delay: 0.8s; }
.js .bento.in-view .src-bar i:nth-child(2) { animation-delay: 0.95s; }
.js .bento.in-view .src-bar i:nth-child(3) { animation-delay: 1.1s; }
.js .bento.in-view .src-bar i:nth-child(4) { animation-delay: 1.25s; }
.js .bento.in-view .live-dot::after { animation: bnPing 1.8s ease-out infinite; }

/* 02 Quotes: card drops in, badge pops, shine sweep, pulsing add button */
.js .bento.in-view .assign-card { animation: bnDrop 0.6s var(--ease) 0.55s backwards; }
.js .bento.in-view .prio.sent { animation: bnPop 0.5s var(--ease) 1.1s backwards; }
.js .bento.in-view .b-quotes .assign-card::after { animation: bnShine 4.5s ease-in-out 1.6s infinite; }
.js .bento.in-view .assign-add { animation: bnUp 0.5s var(--ease) 0.8s backwards; }
.js .bento.in-view .assign-add span::after { animation: bnRing 2.2s ease-out 1.4s infinite; }

/* 03 Pipeline: stages cascade, bars fill, dots ping in sequence, toast loops */
.js .bento.in-view .stage-list li { animation: bnSlide 0.45s var(--ease) backwards; }
.js .bento.in-view .stage-list li em::after { animation: fbFill 0.8s var(--ease) backwards; }
.js .bento.in-view .stage-list li i::after { animation: bnPingSeq 6.4s ease-out infinite; }
.js .bento.in-view .stage-list li:nth-child(1), .js .bento.in-view .stage-list li:nth-child(1) em::after { animation-delay: 0.5s; }
.js .bento.in-view .stage-list li:nth-child(2), .js .bento.in-view .stage-list li:nth-child(2) em::after { animation-delay: 0.58s; }
.js .bento.in-view .stage-list li:nth-child(3), .js .bento.in-view .stage-list li:nth-child(3) em::after { animation-delay: 0.66s; }
.js .bento.in-view .stage-list li:nth-child(4), .js .bento.in-view .stage-list li:nth-child(4) em::after { animation-delay: 0.74s; }
.js .bento.in-view .stage-list li:nth-child(5), .js .bento.in-view .stage-list li:nth-child(5) em::after { animation-delay: 0.82s; }
.js .bento.in-view .stage-list li:nth-child(6), .js .bento.in-view .stage-list li:nth-child(6) em::after { animation-delay: 0.9s; }
.js .bento.in-view .stage-list li:nth-child(7), .js .bento.in-view .stage-list li:nth-child(7) em::after { animation-delay: 0.98s; }
.js .bento.in-view .stage-list li:nth-child(8), .js .bento.in-view .stage-list li:nth-child(8) em::after { animation-delay: 1.06s; }
.js .bento.in-view .stage-list li:nth-child(1) i::after { animation-delay: 1.4s; }
.js .bento.in-view .stage-list li:nth-child(2) i::after { animation-delay: 2.2s; }
.js .bento.in-view .stage-list li:nth-child(3) i::after { animation-delay: 3s; }
.js .bento.in-view .stage-list li:nth-child(4) i::after { animation-delay: 3.8s; }
.js .bento.in-view .stage-list li:nth-child(5) i::after { animation-delay: 4.6s; }
.js .bento.in-view .stage-list li:nth-child(6) i::after { animation-delay: 5.4s; }
.js .bento.in-view .stage-list li:nth-child(7) i::after { animation-delay: 6.2s; }
.js .bento.in-view .stage-list li:nth-child(8) i::after { animation-delay: 7s; }
.js .bento.in-view .pipe-toast { animation: bnToast 5s var(--ease) 1.4s infinite backwards; }

/* 04 Vault: docs pop in, scan line sweeps, pending visa pulses */
.js .bento.in-view .doc { animation: bnPop 0.45s var(--ease) backwards; }
.js .bento.in-view .doc:nth-child(1) { animation-delay: 0.7s; }
.js .bento.in-view .doc:nth-child(2) { animation-delay: 0.8s; }
.js .bento.in-view .doc:nth-child(3) { animation-delay: 0.9s; }
.js .bento.in-view .doc:nth-child(4) { animation-delay: 1s; }
.js .bento.in-view .doc-grid::after { animation: bnScan 3.2s ease-in-out 1.4s infinite; }
.js .bento.in-view .doc.wait svg { animation: fbBlink 1.4s ease-in-out infinite; }
.js .bento.in-view .alert-list li { animation: bnSlide 0.5s var(--ease) backwards; }
.js .bento.in-view .alert-list li:nth-child(1) { animation-delay: 1.1s; }
.js .bento.in-view .alert-list li:nth-child(2) { animation-delay: 1.2s; }
.js .bento.in-view .alert-list li i { animation: fbBlink 1.6s ease-in-out 1.6s infinite; }

/* 05 Reviews: messages arrive one by one, typing dots bounce */
.js .bento.in-view .msg-list li { animation: bnMsg 0.5s var(--ease) backwards; }
.js .bento.in-view .msg-list li:nth-child(1) { animation-delay: 0.8s; }
.js .bento.in-view .msg-list li:nth-child(2) { animation-delay: 0.95s; }
.js .bento.in-view .msg-list li:nth-child(3) { animation-delay: 1.1s; }
.js .bento.in-view .dots i { animation: bnDot 1.2s ease-in-out infinite; }
.js .bento.in-view .dots i:nth-child(2) { animation-delay: 0.15s; }
.js .bento.in-view .dots i:nth-child(3) { animation-delay: 0.3s; }

/* 06 ROI: rows rise in */
.js .bento.in-view .camp-row { animation: bnUp 0.5s var(--ease) backwards; }
.js .bento.in-view .camp-row:nth-child(1) { animation-delay: 0.8s; }
.js .bento.in-view .camp-row:nth-child(2) { animation-delay: 0.9s; }
.js .bento.in-view .camp-row:nth-child(3) { animation-delay: 1s; }
.js .bento.in-view .camp-row:nth-child(4) { animation-delay: 1.1s; }

@keyframes bnUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes bnSlide { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes bnMsg { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes bnDrop { from { opacity: 0; transform: translateY(-14px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes bnPop { 0% { opacity: 0; transform: scale(0.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes bnPing { 0% { opacity: 0.6; transform: scale(1); } 100% { opacity: 0; transform: scale(2.8); } }
@keyframes bnPingSeq { 0% { opacity: 0.6; transform: scale(1); } 12%, 100% { opacity: 0; transform: scale(2.8); } }
@keyframes bnRing { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45); opacity: 1; } 70%, 100% { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0); opacity: 1; } }
@keyframes bnShine { 0% { transform: translateX(-100%); } 35%, 100% { transform: translateX(100%); } }
@keyframes bnScan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 50% { top: calc(100% - 2px); opacity: 1; } 60%, 100% { top: calc(100% - 2px); opacity: 0; } }
@keyframes bnDot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes bnToast {
  0% { opacity: 0; transform: translateY(12px) scale(0.97); }
  10%, 82% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .js .bento *, .js .bento *::before, .js .bento *::after { animation: none !important; }
  .js .bento:not(.in-view) * { opacity: 1 !important; }
  .js .bento .src-bar i, .js .bento .stage-list li em::after { width: var(--w) !important; }
  .bento-card { transition: none; }
}

/* SECTION 2B: BOOKING PROCESS WALKTHROUGH (same pattern as the mobile app walkthrough) */
.ps-section {
  --ps-a: #3b7bf6;
  --ps-b: #4f46e5;
  --ps-grad: linear-gradient(135deg, var(--ps-a), var(--ps-b));
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  background:
    radial-gradient(ellipse 45% 60% at 28% 50%, rgba(79, 70, 229, 0.08), transparent 70%),
    linear-gradient(180deg, #f5f8ff 0%, #eef3fe 100%);
  border-bottom: 1px solid var(--line-soft);
}
.ps {
  --sc: #64748b;
  --ps-dur: 7s;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "visual head" "visual steps";
  column-gap: 4rem;
  row-gap: 1.5rem;
}

.ps-head { grid-area: head; align-self: end; }
.ps-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin-bottom: 0.75rem;
}
.ps-head p { max-width: 520px; font-size: 1rem; line-height: 1.6; color: var(--ink-600); }

/* ---- Timeline of stages ---- */
.ps-steps {
  --ic: 46px;
  grid-area: steps;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  list-style: none;
}
.ps-steps::before,
.ps-steps::after {
  content: "";
  position: absolute;
  top: var(--t0, 30px);
  left: calc(var(--ic) / 2 - 1px);
  width: 2px;
  border-radius: 2px;
}
.ps-steps::before { height: var(--th, 0); background-color: #e3e7f6; }
.ps-steps::after {
  height: var(--fill, 0);
  background: linear-gradient(180deg, var(--ps-a), var(--ps-b));
  transition: height 0.6s var(--ease);
}
.ps-step {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  width: 100%;
  padding: 0.35rem 0.75rem 0.35rem 0;
  border: 0;
  border-radius: 14px;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.ps-step:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 2px; }
.ps-step-ico {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--ic);
  height: var(--ic);
  color: var(--ps-b);
  background-color: #ffffff;
  border: 1.5px solid #dfe3f7;
  border-radius: 50%;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, 0.45);
  transition: transform 0.35s var(--ease), color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
/* Gradient fill fades in when the stage is active */
.ps-step-ico::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: 50%;
  background: var(--ps-grad);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ps-glyph { width: 21px; height: 21px; }
/* Countdown ring around the active icon (its end advances to the next stage) */
.ps-cd {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  transform: rotate(-90deg);
  opacity: 0;
  pointer-events: none;
}
.ps-cd circle {
  fill: none;
  stroke: var(--ps-b);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.ps-step:hover .ps-step-ico { border-color: #c4c9f5; transform: translateY(-2px); }
.ps-step.is-done .ps-step-ico { border-color: #c7d2fe; }
.ps-step.is-active .ps-step-ico {
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 14px 28px -8px rgba(79, 70, 229, 0.55);
  transform: scale(1.06);
}
.ps-step.is-active .ps-step-ico::before,
.ps-step.is-active .ps-cd { opacity: 1; }
.ps-step.is-active .ps-cd circle { animation: psProg var(--ps-dur) linear forwards; }
.ps.paused .ps-step.is-active .ps-cd circle { animation-play-state: paused; }
.ps-step-text { min-width: 0; padding-top: 0.6rem; }
.ps-step-text b {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-600);
  transition: color 0.3s ease;
}
.ps-step.is-active .ps-step-text b,
.ps-step:hover .ps-step-text b { color: var(--ink-900); }
/* Accordion: only the active stage shows its description */
.ps-step-text > span {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ink-500);
  transition: max-height 0.45s var(--ease), opacity 0.3s ease, margin 0.3s ease;
}
.ps-step.is-active .ps-step-text > span { max-height: 8em; opacity: 1; margin: 0.25rem 0 0.5rem; }

/* ---- Visual: rings, monitor, floating cards ---- */
.ps-visual {
  grid-area: visual;
  position: relative;
  display: grid;
  place-items: center;
  padding: 1.5rem 0;
}
.ps-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 720px;
  height: 720px;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(79, 70, 229, 0.14) 0 1px, transparent 1px 12px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  mask-image: radial-gradient(circle, #000 25%, transparent 70%);
  pointer-events: none;
}
.ps-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border: 1.5px solid rgba(79, 70, 229, 0.3);
  border-radius: 50%;
  opacity: 0;
  animation: psRipple 7.5s linear infinite;
}
.ps-ripple:nth-child(2) { animation-delay: -2.5s; }
.ps-ripple:nth-child(3) { animation-delay: -5s; }
.ps-floor {
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  width: 420px;
  height: 40px;
  margin-left: -210px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(49, 46, 129, 0.25), transparent 70%);
  filter: blur(6px);
  animation: psShadow 6s ease-in-out infinite;
}
.ps-device {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  animation: psFloat 6s ease-in-out infinite;
}
/* Desktop monitor: dark bezel + stand (same as the home page hero) */
.ps-monitor {
  position: relative;
  padding: 12px 10px 10px;
  border-radius: 20px;
  background: linear-gradient(160deg, #1e293b, #0b1324 70%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -30px rgba(29, 78, 216, 0.45),
    0 20px 40px -20px rgba(11, 19, 36, 0.4);
}
.ps-monitor::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background-color: #334155;
}
.ps-stand { display: flex; flex-direction: column; align-items: center; }
.ps-neck {
  width: 100px;
  height: 26px;
  background: linear-gradient(90deg, #cbd5e1, #e2e8f0 45%, #cbd5e1);
  clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%);
}
.ps-base {
  width: 240px;
  height: 10px;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #e2e8f0, #94a3b8);
  box-shadow: 0 14px 24px -10px rgba(11, 19, 36, 0.35);
}

.ps-float {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem 0.7rem 0.7rem;
  background-color: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: psCardFloat 6s ease-in-out infinite;
}
.ps-float-1 { top: 9%; left: -2.5rem; }
.ps-float-2 { right: -2.5rem; bottom: 22%; max-width: 300px; }
.ps-float-in { display: flex; align-items: center; gap: 0.7rem; }
.ps-float-in.is-swap { animation: psChip 0.5s var(--ease); }
.ps-float-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: var(--ps-grad);
  border-radius: 11px;
}
.ps-float-1 .ps-float-ico { background: var(--sc); transition: background-color 0.4s ease; }
.ps-float-ico svg { width: 19px; height: 19px; stroke-width: 2; }
.ps-float > div, .ps-float-in > div { min-width: 0; }
.ps-float b {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-float b + span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-push small {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ps-b);
}
/* The automation notification arrives part-way through each stage */
.ps-push { opacity: 0; }
.ps-push.is-show { animation: psPush 3.6s var(--ease) 3s both, psCardFloat 6s ease-in-out -3s infinite; }
.ps.paused .ps-push.is-show { animation-play-state: paused; }

@keyframes psProg { to { stroke-dashoffset: 0; } }
@keyframes psRipple {
  0% { opacity: 0; transform: scale(0.7); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.9); }
}
@keyframes psShadow { 50% { transform: scale(0.9); opacity: 0.7; } }
@keyframes psFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes psCardFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes psChip { from { opacity: 0; transform: translateY(6px); } }
@keyframes psPush {
  0% { opacity: 0; transform: translateX(24px) scale(0.95); }
  12%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateX(24px) scale(0.95); }
}

/* Browser window inside the monitor */
.ps-window {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background-color: var(--surface);
}
.ps-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--line-soft);
}
.ps-dots { display: flex; gap: 6px; }
.ps-dots i { width: 10px; height: 10px; border-radius: 50%; background-color: #f87171; }
.ps-dots i:nth-child(2) { background-color: #fbbf24; }
.ps-dots i:nth-child(3) { background-color: #34d399; }
.ps-url {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1;
  max-width: 360px;
  margin: 0 auto;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
  background-color: var(--surface);
  border: 1px solid var(--line-soft);
  white-space: nowrap;
  overflow: hidden;
}
.ps-url svg { width: 11px; height: 11px; flex-shrink: 0; color: #10b981; }

.ps-rec { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.25rem 0.8rem; }
.ps-rec .av { width: 40px; height: 40px; font-size: 0.78rem; border-radius: 12px; }
.ps-rec-info { flex: 1; min-width: 0; }
.ps-rec-info strong { display: block; font-size: 0.95rem; font-weight: 800; color: var(--ink-900); }
.ps-rec-info small { display: block; font-size: 0.75rem; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sc);
  background-color: color-mix(in srgb, var(--sc) 12%, #ffffff);
  transition: color 0.4s ease, background-color 0.4s ease;
}
.ps-rec-badge i { width: 7px; height: 7px; border-radius: 50%; background-color: currentColor; animation: fbBlink 1.4s ease-in-out infinite; }

.ps-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 4px;
  padding: 0 1.25rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.ps-track i { position: relative; height: 5px; overflow: hidden; border-radius: 999px; background-color: var(--line-soft); }
.ps-track i::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--sc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease), background-color 0.4s ease;
}
.ps-track i.done::after, .ps-track i.cur::after { transform: scaleX(1); }
.ps-track i.cur::after { animation: fbBlink 1.4s ease-in-out infinite; }

/* Scenes */
/* All screens share one grid cell, so the stage is as tall as the tallest screen */
.ps-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: 1.25rem;
  background: linear-gradient(180deg, var(--surface) 0%, #f8fbff 100%);
}
.ps-scene {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10%) scale(0.98);
  transition: opacity 0.45s ease, transform 0.6s var(--ease), visibility 0s 0.6s;
}
.ps-scene.is-past { transform: translateX(-10%) scale(0.98); }
.ps-scene.on {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s ease, transform 0.6s var(--ease), visibility 0s;
}

/* Finger tap indicator on buttons the mockup "presses" */
.ps-touch {
  position: absolute;
  top: 50%;
  left: 72%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
}
.ps-scene.on .ps-touch { animation: psTouch 0.9s var(--t, 1s) both; }
@keyframes psTouch {
  0% { opacity: 0; transform: scale(1.6); }
  35% { opacity: 1; transform: scale(1); }
  60% { transform: scale(0.82); }
  100% { opacity: 0; transform: scale(1); }
}
.ps-scene-head { margin-bottom: 1rem; }
.ps-scene-head small {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc);
}
.ps-scene-head h5 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; color: var(--ink-900); }

.ps-box {
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px -18px rgba(11, 19, 36, 0.35);
}
.ps-box strong { display: block; font-size: 0.83rem; font-weight: 700; color: var(--ink-900); line-height: 1.35; }
.ps-box small { display: block; font-size: 0.72rem; color: var(--ink-500); line-height: 1.4; }
.ps-box-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-900);
}
.ps-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--brand-600);
  background-color: var(--brand-50);
  white-space: nowrap;
}
.ps-tag.ok { color: #047857; background-color: #d1fae5; }
.ps-tag.warn { color: #b45309; background-color: #fef3c7; }
.ps-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--c, var(--brand-600));
  background-color: color-mix(in srgb, var(--c, var(--brand-600)) 12%, #ffffff);
}
.ps-ico svg { width: 17px; height: 17px; }
.ps-ico.ok { --c: #10b981; }
.ps-ico.wait { --c: #f59e0b; }
.ps-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.6);
}
.ps-btn svg { width: 14px; height: 14px; }
.ps-btn.sm { width: auto; padding: 0.45rem 0.9rem; font-size: 0.72rem; }

/* 01 Enquiry */
.ps-feed { display: flex; flex-direction: column; gap: 0.55rem; }
.ps-lead, .ps-assign, .ps-pay-row, .ps-doc, .ps-kit, .ps-cmsg, .ps-next { display: flex; align-items: center; gap: 0.75rem; }
.ps-lead > div, .ps-assign > div, .ps-pay-row > div, .ps-doc > div, .ps-kit > div, .ps-cmsg > div, .ps-next > div { flex: 1; min-width: 0; }
.ps-lead.is-new { border-color: #93b8fb; box-shadow: 0 0 0 3px rgba(59, 123, 246, 0.12), 0 10px 22px -18px rgba(11, 19, 36, 0.35); }
.ps-src {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #ffffff;
}
.ps-src svg { width: 17px; height: 17px; }
.ps-src.wa { background-color: #25d366; }
.ps-src.ig { background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af); }
.ps-src.web { background-color: var(--brand-600); }
.ps-time { font-size: 0.68rem; font-weight: 600; color: var(--ink-400); white-space: nowrap; }
.ps-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.8rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-500);
}
.ps-route b { color: var(--ink-800); }
.ps-route svg { width: 16px; height: 16px; color: var(--brand-600); }
.ps-assign { border-color: #a7f3d0; background-color: #f6fffb; }
.ps-assign .av { width: 36px; height: 36px; font-size: 0.72rem; }

/* 02 Requirements */
.ps-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.ps-field label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-400);
}
.ps-type { display: inline-block; font-size: 0.85rem; font-weight: 700; color: var(--ink-900); white-space: nowrap; }
.ps-checks { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.ps-checks span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.ps-checks svg { width: 12px; height: 12px; }
.ps-meter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background-color: var(--surface-muted);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-700);
}
.ps-meter em { height: 7px; overflow: hidden; border-radius: 999px; background-color: var(--line); }
.ps-meter em i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0ea5e9, #10b981); }
.ps-meter b { color: #059669; }

/* 03 Quote */
.ps-quote { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0.75rem; }
.ps-days { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.ps-days li { display: flex; align-items: center; gap: 0.65rem; }
.ps-days li b {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--brand-600);
  background-color: var(--brand-50);
}
.ps-sum { display: flex; flex-direction: column; }
.ps-sum dl { display: flex; flex-direction: column; gap: 0.45rem; }
.ps-sum dl div { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; }
.ps-sum dt { color: var(--ink-500); }
.ps-sum dd { font-weight: 700; color: var(--ink-800); }
.ps-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.8rem 0;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-600);
}
.ps-total strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }
.ps-sum .ps-btn { margin-top: auto; }
.ps-sent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #047857;
}
.ps-sent svg { width: 13px; height: 13px; }

/* 04 Negotiation */
.ps-chat { display: flex; flex-direction: column; gap: 0.6rem; }
.ps-msg {
  max-width: 78%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.5;
}
.ps-msg small { display: block; margin-top: 0.25rem; font-size: 0.64rem; opacity: 0.7; }
.ps-msg.in { align-self: flex-start; color: var(--ink-800); background-color: var(--surface-muted); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.ps-msg.out { align-self: flex-end; color: #ffffff; background: linear-gradient(180deg, var(--brand-500), var(--brand-600)); border-bottom-right-radius: 4px; }
.ps-offer {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-color: #c4b5fd;
  background-color: #faf8ff;
}
.ps-offer strong { font-size: 1rem; font-weight: 800; }
.ps-offer s { margin-right: 0.3rem; font-size: 0.78rem; font-weight: 600; color: var(--ink-400); }
.ps-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
}
.ps-note svg { width: 14px; height: 14px; flex-shrink: 0; color: #8b5cf6; }

/* 05 Deposit */
.ps-pay { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 1.25rem; align-items: center; }
.ps-ring { position: relative; width: 170px; height: 170px; }
.ps-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ps-ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ps-ring .trk { stroke: var(--line-soft); }
.ps-ring .val { stroke: #f59e0b; stroke-dasharray: 100; stroke-dashoffset: 70; }
.ps-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ps-ring strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink-900); }
.ps-ring small { font-size: 0.72rem; font-weight: 600; color: var(--ink-500); }
.ps-pay-list { display: flex; flex-direction: column; gap: 0.55rem; }
.ps-auto {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background-color: #fffbeb;
  border: 1px dashed #fcd34d;
}
.ps-auto strong { display: block; font-size: 0.78rem; font-weight: 700; color: var(--ink-900); }
.ps-auto small { font-size: 0.7rem; color: var(--ink-500); }
.ps-auto .bell { width: 18px; height: 18px; flex-shrink: 0; color: #d97706; transform-origin: 50% 10%; }
.ps-receipt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-500);
}
.ps-receipt svg { width: 14px; height: 14px; color: var(--brand-600); }

/* 06 Vouchers */
.ps-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.ps-doc-ico {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--c);
  background-color: color-mix(in srgb, var(--c) 12%, #ffffff);
}
.ps-doc-ico svg { width: 18px; height: 18px; }
.ps-gen { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; }
.ps-gen svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: #ffffff; background-color: #10b981; }
.ps-gen .spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid var(--line);
  border-top-color: var(--brand-600);
  opacity: 0;
}
.ps-kit { margin-top: 0.9rem; border-color: #a7f3d0; background-color: #f6fffb; }
.ps-kit-plane {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: #ffffff;
  background-color: #10b981;
}
.ps-kit-plane svg { width: 17px; height: 17px; }

/* 07 Travel */
.ps-flight { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.1rem 1.6rem; }
.ps-apt strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.ps-apt.r { text-align: right; }
.ps-path { position: relative; flex: 1; height: 2px; border-top: 2px dashed var(--line); }
.ps-plane {
  position: absolute;
  top: -12px;
  left: calc(100% - 22px);
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #14b8a6;
}
.ps-plane svg { width: 20px; height: 20px; transform: rotate(45deg); }
.ps-landed { position: absolute; left: 50%; bottom: 0.45rem; transform: translateX(-50%); }
.ps-trip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  margin: 1.1rem 0;
  padding: 0 0.5rem;
}
.ps-trip-line { position: absolute; left: 7%; right: 7%; top: 50%; height: 2px; background-color: var(--line); }
.ps-trip-line i { display: block; width: 33%; height: 100%; background-color: #14b8a6; }
.ps-trip span {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--ink-400);
  background-color: var(--surface);
  border: 1.5px solid var(--line);
}
.ps-trip span.done { color: #ffffff; background-color: #14b8a6; border-color: #14b8a6; }
.ps-trip span.cur { color: #0f766e; border-color: #14b8a6; box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.15); }
.ps-concierge { display: flex; flex-direction: column; gap: 0.55rem; }

/* 08 Completion */
.ps-done { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
.ps-welcome, .ps-review { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.ps-welcome strong { font-size: 0.95rem; font-weight: 800; }
.ps-welcome p, .ps-review p { font-size: 0.76rem; line-height: 1.5; color: var(--ink-600); }
.ps-review p { font-style: italic; }
.ps-stars { display: flex; gap: 3px; }
.ps-stars svg { width: 20px; height: 20px; fill: #fbbf24; }
.ps-next { margin-top: 0.75rem; }

/* Scene element animations: default styles are the final state */
.ps-scene.on .a-up    { animation: bnUp 0.55s var(--ease) var(--d, 0s) backwards; }
.ps-scene.on .a-left  { animation: bnSlide 0.5s var(--ease) var(--d, 0s) backwards; }
.ps-scene.on .a-right { animation: bnMsg 0.5s var(--ease) var(--d, 0s) backwards; }
.ps-scene.on .a-pop   { animation: bnPop 0.5s var(--ease) var(--d, 0s) backwards; }
.ps-scene.on .ps-landed.a-pop { animation-name: psPopX; }
.ps-scene.on .a-press { animation: psPress 0.4s ease var(--d, 0s); }
.ps-scene.on .a-star  { animation: psStar 0.45s var(--ease) var(--d, 0s) backwards; }
.ps-scene.on .ps-lead.is-new { animation: bnMsg 0.5s var(--ease) var(--d, 0s) backwards, psGlow 2s ease-in-out 1s infinite; }
.ps-scene.on .ps-type { animation: psType 0.7s steps(16) var(--d, 0s) backwards; }
.ps-scene.on .ps-meter em i { animation: fbFill 2.6s ease-out var(--d, 0s) backwards; }
.ps-scene.on .ps-ring .val { animation: psRing 1.2s var(--ease) 0.4s backwards; }
.ps-scene.on .ps-auto .bell { animation: fbRingBell 1.2s ease-in-out 1.8s 2; }
.ps-scene.on .ps-gen .spin { animation: psSpin 0.7s linear var(--d, 0s) 2 backwards, psShowHide 1.4s linear var(--d, 0s) backwards; }
.ps-scene.on .ps-gen svg { animation: bnPop 0.4s var(--ease) calc(var(--d, 0s) + 1.4s) backwards; }
.ps-scene.on .ps-kit-plane svg { animation: psFly 0.8s var(--ease) 2.6s backwards; }
.ps-scene.on .ps-plane { animation: psPlane 2.2s cubic-bezier(0.45, 0, 0.3, 1) 0.4s backwards; }
.ps-scene.on .ps-trip-line i { animation: fbFill 1s var(--ease) 0.8s backwards; }
.ps-scene.on .ps-trip span.cur { animation: psCur 1.8s ease-in-out 1.6s infinite; }

@keyframes psPress { 50% { transform: scale(0.94); box-shadow: 0 4px 10px -6px rgba(37, 99, 235, 0.6); } }
@keyframes psStar { from { opacity: 0.2; fill: var(--line); transform: scale(0.6) rotate(-20deg); } }
@keyframes psType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes psRing { from { stroke-dashoffset: 100; } }
@keyframes psSpin { to { transform: rotate(360deg); } }
@keyframes psShowHide { 0%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes psFly { 0% { transform: translate(-10px, 10px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes psPlane { from { left: 0; } }
@keyframes psPopX { 0% { opacity: 0; transform: translateX(-50%) scale(0.6); } 100% { opacity: 1; transform: translateX(-50%); } }
@keyframes psCur { 50% { box-shadow: 0 0 0 9px rgba(20, 184, 166, 0.08); } }
@keyframes psGlow { 50% { box-shadow: 0 0 0 6px rgba(59, 123, 246, 0.08), 0 10px 22px -18px rgba(11, 19, 36, 0.35); } }

/* Compact density: the stage is as tall as its tallest screen, so trimming spacing keeps the
   monitor a widescreen shape instead of near-square with empty space under shorter screens */
/* Visual hugs the monitor (centred against the timeline) so the floor shadow sits right under the stand */
.ps-visual { align-self: center; grid-template-columns: minmax(0, 1fr); } /* minmax(0,…) stops the monitor overflowing on phones */
.ps-float-1 { top: -1rem; }
.ps-rec { padding: 0.8rem 1.15rem 0.6rem; }
.ps-track { padding-bottom: 0.75rem; }
.ps-stage { padding: 1rem 1.15rem; }
.ps-scene { align-self: center; }
/* Stage label and title share one line */
.ps-scene-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.1rem 0.6rem; margin-bottom: 0.65rem; }
.ps-scene-head h5 { font-size: 1rem; }
.ps-rec .av { width: 36px; height: 36px; border-radius: 11px; }
.ps-src, .ps-ico { width: 30px; height: 30px; border-radius: 9px; }
.ps-src svg, .ps-ico svg { width: 15px; height: 15px; }
.ps-lead, .ps-cmsg { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.ps-route { margin: 0.4rem 0; }
.ps-box { padding: 0.6rem 0.8rem; border-radius: 12px; }
.ps-feed, .ps-pay-list, .ps-concierge { gap: 0.45rem; }
.ps-route { margin: 0.5rem 0; }
.ps-form { gap: 0.5rem; }
@media (min-width: 641px) { .ps-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ps-checks { margin: 0.7rem 0; }
.ps-meter { padding: 0.6rem 0.9rem; }
.ps-days { gap: 0.4rem; }
.ps-days li b { width: 26px; height: 26px; }
.ps-total { margin: 0.6rem 0; padding-top: 0.55rem; }
.ps-chat { gap: 0.45rem; }
.ps-msg { max-width: 90%; padding: 0.45rem 0.75rem; font-size: 0.77rem; line-height: 1.45; }
.ps-msg small { margin-top: 0.1rem; }
.ps-note { margin-top: 0.6rem; }
.ps-pay { grid-template-columns: 140px minmax(0, 1fr); }
.ps-ring { width: 140px; height: 140px; }
.ps-ring strong { font-size: 1.4rem; }
.ps-auto { padding: 0.55rem 0.8rem; }
.ps-docs { gap: 0.5rem; }
.ps-kit { margin-top: 0.6rem; }
.ps-flight { padding: 0.85rem 1rem 1.45rem; }
.ps-trip { margin: 0.75rem 0; }
.ps-trip span { width: 28px; height: 28px; }
.ps-done { gap: 0.6rem; }
.ps-welcome, .ps-review { gap: 0.4rem; }
.ps-next { margin-top: 0.6rem; }

/* Responsive */
@media (max-width: 1100px) {
  .ps { column-gap: 2.5rem; }
  .ps-float-1 { left: -1rem; }
  .ps-float-2 { right: -1rem; }
}
@media (max-width: 1024px) {
  .ps {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas: "head" "visual" "steps";
    row-gap: 2rem;
  }
  .ps-head { max-width: 640px; margin: 0 auto; text-align: center; }
  .ps-head p { margin-inline: auto; }
  .ps-visual { padding: 2.5rem 0 1.5rem; }
  .ps-device { max-width: 680px; }
  .ps-float-1 { top: 0; left: 2%; }
  .ps-float-2 { right: 2%; bottom: 8%; }
  .ps-steps { width: 100%; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .ps-section { padding: 4rem 0; }
  .ps-rings { transform: scale(0.7); }
  .ps-monitor { padding: 8px 6px 6px; border-radius: 14px; }
  .ps-neck { width: 70px; height: 18px; }
  .ps-base { width: 160px; }
  .ps-floor { width: 280px; margin-left: -140px; }
  .ps-float-1 { top: -0.5rem; left: 0; }
  .ps-float-2 { right: 0; bottom: 2%; max-width: 250px; }
  .ps-bar { padding: 0.6rem 0.8rem; }
  .ps-url { font-size: 0.66rem; }
  .ps-rec { padding: 0.9rem 1rem 0.7rem; }
  .ps-rec-info small { white-space: normal; }
  .ps-track { padding: 0 1rem 0.9rem; }
  .ps-stage { padding: 1rem; }
  .ps-quote, .ps-done, .ps-docs { grid-template-columns: minmax(0, 1fr); }
  .ps-pay { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .ps-pay-list { width: 100%; }
  .ps-msg { max-width: 90%; }
  .ps-offer { flex-wrap: wrap; gap: 0.5rem; }
  .ps-steps { --ic: 42px; }
  .ps-glyph { width: 19px; height: 19px; }
  /* Shorter screens sit in the middle of the (tallest-screen) stage instead of leaving a gap below */
  .ps-scene { align-self: center; }
  /* Keep the two tallest phone screens close to the rest, so the monitor doesn't grow for them */
  .ps-type { white-space: normal; }
  .ps-days small { display: none; }
  .ps-days { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 0.5rem; }
  .ps-days li strong { font-size: 0.74rem; line-height: 1.3; }
  /* Channel ROI: give channel names the room; agents are covered by Agent Performance below */
  .camp-row { grid-template-columns: minmax(0, 1fr) 52px; }
  .camp-row > span:last-child { display: none; }
}
@media (max-width: 480px) {
  .ps-float { display: none; }
  .ps-rec-badge { display: none; }
  .ps-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ps-section *, .ps-section *::before, .ps-section *::after { animation: none !important; transition: none !important; }
}

/* SECTION 3: LEAD ROUTING & TRACKING SPLIT */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split-content h3 {
  font-size: clamp(1.6rem, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin-bottom: 1rem;
}
.split-content p {
  font-size: 1.05rem;
  color: var(--ink-600);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}
.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.pill-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink-800);
}
.pill-item svg { width: 18px; height: 18px; color: var(--brand-600); }

.pipeline-demo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.stage-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  background-color: var(--surface-muted);
  border-left: 4px solid var(--line);
}
.stage-step.new { border-left-color: var(--brand-600); background-color: #f0f7ff; }
.stage-step.qual { border-left-color: #8b5cf6; background-color: #fdf4ff; }
.stage-step.won { border-left-color: #10b981; background-color: #ecfdf5; }
.stage-step-info strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--ink-900); }
.stage-step-info small { font-size: 0.75rem; color: var(--ink-500); }
.stage-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}
.stage-step.new .stage-badge { background: #dbeafe; color: var(--brand-600); }
.stage-step.qual .stage-badge { background: #f3e8ff; color: #7c3aed; }
.stage-step.won .stage-badge { background: #d1fae5; color: #047857; }

/* SECTION 4: INDUSTRY VERTICALS (4 CARDS) */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.ind-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s var(--ease);
}
.ind-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-500);
  box-shadow: var(--shadow-md);
}
.ind-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  background-color: var(--brand-50);
  color: var(--brand-600);
}
.ind-icon svg { width: 24px; height: 24px; }
.ind-card h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink-900);
  margin-bottom: 0.5rem;
}
.ind-card p {
  font-size: 0.875rem;
  color: var(--ink-600);
  line-height: 1.5;
}

/* SECTION 5: COMPARISON MATRIX */
.cmp-container {
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cmp-grid-head, .cmp-grid-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  align-items: center;
}
.cmp-grid-head {
  background: var(--surface-muted);
  border-bottom: 2px solid var(--line);
  padding: 1.25rem 1.5rem;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cmp-grid-row {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
}
.cmp-grid-row:last-child { border-bottom: none; }
.cmp-feature { font-weight: 700; color: var(--ink-900); }
.cmp-old { color: var(--ink-500); display: flex; align-items: center; gap: 0.5rem; }
.cmp-new {
  color: var(--brand-600);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cmp-new svg { width: 16px; height: 16px; color: #10b981; flex-shrink: 0; }
.cmp-old svg { width: 16px; height: 16px; color: #ef4444; flex-shrink: 0; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .split-feature { grid-template-columns: 1fr; gap: 2.5rem; }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "capture  quotes"
      "vault    vault"
      "pipeline reviews"
      "roi      roi";
  }
}
@media (max-width: 768px) {
  .gap-analysis { grid-template-columns: 1fr; }
  .bento {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "capture" "quotes" "pipeline" "vault" "reviews" "roi";
  }
  .bento-card.wide { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .bento-card.wide .bento-head { flex: none; }
  /* Comparison: stacked rows so the Tranquil column never scrolls off-screen */
  .cmp-grid-head { display: none; }
  .cmp-grid-row { grid-template-columns: minmax(0, 1fr); row-gap: 0.45rem; padding: 1.1rem 1.25rem; }
  .cmp-feature { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); }
  /* Mobile: long lead-card rows stack their status badge */
  .stage-step { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}
@media (max-width: 480px) {
  .industry-grid { grid-template-columns: 1fr; }
  .pill-grid { grid-template-columns: 1fr; }
}

/* ==================== HEADING BADGE (shared .ph-badge design) ==================== */
.ph-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
  margin-bottom: 1.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-700, #334155);
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 999px;
  box-shadow: var(--shadow-md, 0 4px 12px rgba(15, 23, 42, 0.08));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ph-badge b {
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, var(--brand-500, #3b7bf6), var(--brand-600, #2563eb));
  border-radius: 999px;
}
/* ==================== FAQ (same design as home page) ==================== */
.faq { position: relative; overflow: hidden; padding: 6rem 0; background-color: var(--surface); border-top: 1px solid var(--line-soft, #eef2f7); }
.faq::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(59, 123, 246, 0.1), transparent 70%); pointer-events: none; }
.faq-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.faq-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 3rem; text-align: center; }
.faq-pill { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; padding: 0.375rem 0.875rem 0.375rem 0.5rem; font-size: 0.8rem; font-weight: 700; color: var(--brand-700); background-color: var(--surface); border: 1px solid #d0e1fd; border-radius: 999px; box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06); }
.faq-pill b { padding: 0.2rem 0.5rem; font-size: 0.675rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; background: var(--brand-600); border-radius: 999px; }
.faq-title { margin: 0 0 1.25rem; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; color: var(--ink-900); }
.faq-desc { max-width: 660px; margin: 0; font-size: 1.1rem; line-height: 1.65; color: var(--ink-600); }
.faq-desc strong { color: var(--ink-900); }
.faq-list { display: flex; flex-direction: column; gap: 0.875rem; }
.faq-item { background-color: #eef4ff; border: 1px solid transparent; border-radius: 20px; transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.faq-item:hover { border-color: #d0e1fd; }
.faq-item.is-open { background-color: var(--surface); border-color: var(--line, #e2e8f0); box-shadow: 0 18px 40px -20px rgba(37, 99, 235, 0.3); }
.faq-question { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.1rem 1.1rem 1.1rem 1.5rem; font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.4; text-align: left; color: var(--ink-900); background: none; border: none; border-radius: 20px; cursor: pointer; }
.faq-question:focus-visible { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 2px; }
.faq-icon { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; color: var(--ink-700); background-color: var(--surface); border-radius: 50%; box-shadow: 0 2px 6px rgba(11, 19, 36, 0.06); transition: transform 0.3s var(--ease), color 0.2s ease, background-color 0.2s ease; }
.faq-icon svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.faq-question:hover .faq-icon { color: var(--brand-600); }
.faq-item.is-open .faq-icon { color: var(--ink-900); background-color: #e2eafa; box-shadow: none; transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; }
.faq-answer p { margin: 0; padding: 0 4.5rem 1.35rem 1.5rem; font-size: 0.9rem; line-height: 1.7; color: var(--ink-500); }

@media (max-width: 640px) {
  .faq { padding: 3.5rem 0; }
  .faq-inner { padding: 0 1.25rem; }
  .faq-head { margin-bottom: 2.25rem; }
  .faq-desc { font-size: 1rem; }
  .faq-question { padding: 0.95rem 0.9rem 0.95rem 1.15rem; font-size: 0.925rem; }
  .faq-icon { width: 34px; height: 34px; }
  .faq-answer p { padding: 0 1.15rem 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-answer, .faq-icon { transition: none; }
}


/* ==================== SEO SECTIONS (page design) ==================== */
.kw-section, .alt-section, .rel-section {
  --kw-accent: #2563eb;
  --kw-accent-ink: color-mix(in srgb, #2563eb 82%, #000);
  --kw-tint: color-mix(in srgb, #2563eb 9%, #fff);
  --kw-tint-2: color-mix(in srgb, #2563eb 16%, #fff);
  --kw-ink: var(--ink-900, #0b1324);
  --kw-text: var(--ink-600, #475569);
  --kw-line: var(--line, #e6ebf2);
  position: relative;
  padding: 6rem 0;
  background-color: var(--surface, #fff);
}
.kw-inner, .rel-inner, .alt-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* Badge: same pill as the page headers (ph-badge) */
.kw-badge {
  display: inline-flex; width: fit-content; max-width: 100%; align-items: center; gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem; margin-bottom: 1.4rem; font-size: 0.8rem; font-weight: 600;
  color: var(--ink-700, #334155); background-color: rgba(255, 255, 255, 0.85); border: 1px solid var(--kw-line);
  border-radius: 999px; box-shadow: var(--shadow-md, 0 8px 24px rgba(11, 19, 36, 0.06));
}
.kw-badge b {
  padding: 0.2rem 0.6rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, var(--brand-500, #3b7bf6), var(--brand-600, #2563eb)); border-radius: 999px;
}

/* ---------- Keyword section: copy + product panel ---------- */
.kw-section .kw-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4.5rem; align-items: center; }
.kw-section.kw-flip .kw-copy { order: 2; }
.kw-copy h2 { margin: 0 0 1.1rem; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.035em; color: var(--kw-ink); }
.kw-lead { margin: 0 0 1.75rem; font-size: 1.05rem; line-height: 1.75; color: var(--kw-text); }
.kw-lead strong { color: var(--kw-ink); }
.kw-list { display: grid; gap: 1.1rem; margin: 0; padding: 0; list-style: none; }
.kw-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0.9rem; align-items: start; }
.kw-check { display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; color: var(--kw-accent-ink); background: var(--kw-tint-2); border-radius: 8px; }
.kw-check svg { width: 15px; height: 15px; stroke-width: 3; }
.kw-item h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; line-height: 1.4; color: var(--kw-ink); }
.kw-item p { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--kw-text); }
.kw-item a, .alt-card a { font-weight: 700; color: var(--kw-accent-ink); text-decoration: none; }

.kw-visual { position: relative; padding: 2rem 1rem 3rem; }
.kw-visual::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, var(--kw-tint-2), transparent); filter: blur(10px); }
.kw-panel { position: relative; overflow: hidden; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 22px; box-shadow: var(--shadow-lg, 0 24px 60px -12px rgba(11, 19, 36, 0.18)); }
.kw-panel-head { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.25rem; color: #fff; background: linear-gradient(135deg, var(--kw-accent), var(--kw-accent-ink)); }
.kw-panel-logo { display: grid; place-items: center; width: 38px; height: 38px; background: rgba(255, 255, 255, 0.18); border-radius: 11px; }
.kw-panel-logo svg { width: 19px; height: 19px; }
.kw-panel-head strong { display: block; font-size: 0.95rem; font-weight: 700; }
.kw-panel-head small { display: block; font-size: 0.72rem; opacity: 0.8; }
.kw-live { display: inline-flex; align-items: center; gap: 0.4rem; margin-left: auto; padding: 0.25rem 0.6rem; font-size: 0.7rem; font-weight: 700; color: var(--kw-accent-ink); background: #fff; border-radius: 999px; }
.kw-live i { width: 6px; height: 6px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
.kw-ico { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; color: var(--kw-accent-ink); background: var(--kw-tint); border-radius: 10px; }
.kw-ico svg { width: 17px; height: 17px; }
.kw-panel-rows { margin: 0; padding: 0.4rem 0; list-style: none; }
.kw-panel-rows li { display: flex; align-items: center; gap: 0.85rem; padding: 0.8rem 1.25rem; border-bottom: 1px solid var(--line-soft, #f0f3f8); }
.kw-panel-rows li:last-child { border-bottom: 0; }
.kw-row-txt { flex: 1; min-width: 0; font-size: 0.88rem; font-weight: 600; color: var(--kw-ink); }
.kw-panel-rows em { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; font-style: normal; font-weight: 700; color: #15803d; }
.kw-panel-rows em svg { width: 13px; height: 13px; stroke-width: 3; }
.kw-panel-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 1.1rem; list-style: none; }
.kw-panel-tiles li { display: flex; flex-direction: column; gap: 0.6rem; padding: 1rem; background: var(--surface-muted, #f7f9fc); border: 1px solid var(--line-soft, #f0f3f8); border-radius: 14px; }
.kw-panel-tiles b { font-size: 0.85rem; font-weight: 700; line-height: 1.35; color: var(--kw-ink); }
.kw-panel-tiles em { width: fit-content; padding: 0.15rem 0.5rem; font-size: 0.68rem; font-style: normal; font-weight: 700; color: #15803d; background: #dcfce7; border-radius: 999px; }
.kw-panel-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.85rem 1.25rem; font-size: 0.75rem; color: var(--ink-500, #64748b); background: var(--surface-muted, #f7f9fc); border-top: 1px solid var(--line-soft, #f0f3f8); }
.kw-panel-foot b { color: var(--kw-accent-ink); }
.kw-toast { position: absolute; bottom: 0; right: 0; display: flex; align-items: center; gap: 0.7rem; max-width: 280px; padding: 0.75rem 1rem 0.75rem 0.75rem; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 16px; box-shadow: var(--shadow-lg, 0 24px 60px -12px rgba(11, 19, 36, 0.18)); }
.kw-toast-ico { display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; color: #fff; background: linear-gradient(180deg, #22c55e, #16a34a); border-radius: 10px; }
.kw-toast-ico svg { width: 17px; height: 17px; stroke-width: 3; }
.kw-toast b { display: block; font-size: 0.82rem; font-weight: 700; line-height: 1.3; color: var(--kw-ink); }
.kw-toast small { display: block; font-size: 0.72rem; color: var(--ink-500, #64748b); }

/* ---------- Related solutions: one rounded card with tinted link chips ---------- */
.rel-section { padding-top: 2rem; }
.rel-card { padding: 2.25rem; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 28px; box-shadow: 0 18px 50px -30px rgba(11, 19, 36, 0.25); }
.rel-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.75rem; }
.rel-top .kw-badge { margin-bottom: 0.9rem; }
.rel-top h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; color: var(--kw-ink); }
.rel-all { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1.1rem; font-size: 0.88rem; font-weight: 700; color: var(--kw-ink); text-decoration: none; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 12px; box-shadow: var(--shadow-md, 0 8px 24px rgba(11, 19, 36, 0.06)); transition: border-color 0.2s ease, color 0.2s ease; }
.rel-all:hover { color: var(--brand-600, #2563eb); border-color: var(--brand-600, #2563eb); }
.rel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.rel-grid a { display: flex; align-items: center; gap: 0.9rem; height: 100%; padding: 0.95rem 1rem; text-decoration: none; background: var(--surface, #fff); border: 1px solid var(--kw-line); border-radius: 16px; transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.rel-grid a:hover { background: var(--surface, #fff); border-color: color-mix(in srgb, var(--kw-accent) 40%, #fff); transform: translateY(-2px); }
.rel-grid a:focus-visible { outline: 3px solid color-mix(in srgb, var(--kw-accent) 40%, transparent); outline-offset: 2px; }
.rel-ico { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; color: #fff; background: var(--kw-accent); border-radius: 12px; box-shadow: 0 2px 6px rgba(11, 19, 36, 0.06); }
.rel-ico svg { width: 19px; height: 19px; }
.rel-txt { flex: 1; min-width: 0; }
.rel-txt strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--kw-ink); }
.rel-txt-desc { display: block; margin-top: 0.15rem; font-size: 0.8rem; line-height: 1.45; color: var(--kw-text); }
.rel-arrow { flex-shrink: 0; color: var(--kw-accent); transition: transform 0.2s ease; }
.rel-grid a:hover .rel-arrow { transform: translateX(3px); }

/* Breadcrumb in the hero, above the badge */
.crumbs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 0.4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: 0.85rem; color: var(--ink-500, #64748b); }
.crumbs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.crumbs li + li::before { content: "›"; color: var(--ink-400, #94a3b8); }
.crumbs a { font-weight: 600; color: #2563eb; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current="page"] { font-weight: 600; color: #0b1324; }

/* Contextual links in body copy: no underline, keep the paragraph colour */
main p a.ctx-link { color: inherit; font-weight: 600; text-decoration: none; }

@media (max-width: 1000px) {
  .kw-section .kw-inner { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .kw-section.kw-flip .kw-copy { order: 0; }
  .kw-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kw-section, .rel-section, .alt-section { padding: 3.5rem 0; }
  .rel-section { padding-top: 1rem; }
  .kw-inner, .rel-inner, .alt-inner { padding: 0 1rem; }
  .kw-visual { padding: 1rem 0 3.5rem; }
  .kw-toast { left: 0.5rem; right: auto; }
  .rel-card { padding: 1.5rem 1.1rem; border-radius: 22px; }
  .rel-top { flex-direction: column; align-items: flex-start; }
  .rel-grid, .alt-grid { grid-template-columns: minmax(0, 1fr); }
  .alt-card:last-child:nth-child(3n + 1) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .rel-grid a, .rel-arrow { transition: none; }
}
/* Hero badge sits inside the H1 (keyword first); keep it looking like the normal badge */
main h1 .ph-badge.h1-badge {
  display: flex; width: fit-content; max-width: 100%; margin: 0 0 1.4rem;
  font-size: 0.8rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-transform: none;
  -webkit-text-fill-color: currentColor;
}
main h1 .ph-badge.h1-badge b { display: inline; }
main h1 .ph-badge.h1-badge b::before { content: attr(data-label); }
/* ==================== END SEO SECTIONS ==================== */
