/* =====================================================================
   Plenty Automation — main.css

   Palette: black and white, nothing else. Black sections in #0B0B0B,
   one dark grey section in #111111, light sections in #F5F5F5 with
   white cards, and white text on black. No colours, no glows, no
   gradients.

   Dark sections alternate with light ones. Each section picks its theme
   with one class: .theme-dark, .theme-graphite or .theme-light.
   Components only use the theme variables (--bg, --fg, --accent …), so
   the same component works on a dark or a light section.

   To change a colour, edit section 1. Nothing else hard-codes colours.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  /* Palette */
  --black: #0b0b0b;        /* main dark background, text on light */
  --graphite: #111111;     /* dark grey background (the demo section) */
  --paper: #f5f5f5;        /* light background */
  --white: #ffffff;        /* text on dark, cards on light */

  /* Type */
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --step--1: 0.875rem;
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1: clamp(1.08rem, 1.02rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.22rem, 1.1rem + 0.55vw, 1.55rem);
  --step-3: clamp(1.55rem, 1.28rem + 1.3vw, 2.35rem);
  --step-4: clamp(2.1rem, 1.42rem + 3vw, 3.9rem);
  --step-hero: clamp(2.5rem, 1.1rem + 4.6vw, 5.4rem);

  /* Layout */
  --container: 1240px;
  --gutter-l: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  --header-h: 68px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Theme variables. Dark by default (the header and menu use these). */
  --bg: var(--black);
  --surface: #151515;
  --surface-2: #1b1b1b;
  --surface-3: #242424;
  --fg: var(--white);
  --fg-2: #b3b3b3;
  --fg-3: #8c8c8c;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.17);
  --line-3: rgba(255, 255, 255, 0.34);
  --accent: var(--white);   /* icons, checks, active marks */
  --accent-2: #808080;      /* lines and fills */
  --italic: #a3a3a3;        /* the italic words at the end of headlines */
  --solid: var(--white);    /* buttons and the strongest marks */
  --on-solid: var(--black);
  --solid-hover: #e3e3e3;
  --on-accent: var(--black); /* text or icons sitting on --accent */
}

.theme-dark {
  color-scheme: dark;
  --bg: var(--black);
  --surface: #151515;
  --surface-2: #1b1b1b;
  --surface-3: #242424;
  --fg: var(--white);
  --fg-2: #b3b3b3;
  --fg-3: #8c8c8c;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.17);
  --line-3: rgba(255, 255, 255, 0.34);
  --accent: var(--white);
  --accent-2: #808080;
  --italic: #a3a3a3;
  --solid: var(--white);
  --on-solid: var(--black);
  --solid-hover: #e3e3e3;
  --on-accent: var(--black);
}

.theme-graphite {
  color-scheme: dark;
  --bg: var(--graphite);
  --surface: #191919;
  --surface-2: #202020;
  --surface-3: #292929;
  --fg: var(--white);
  --fg-2: #b8b8b8;
  --fg-3: #929292;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.17);
  --line-3: rgba(255, 255, 255, 0.34);
  --accent: var(--white);
  --accent-2: #808080;
  --italic: #a6a6a6;
  --solid: var(--white);
  --on-solid: var(--black);
  --solid-hover: #e3e3e3;
  --on-accent: var(--black);
}

.theme-light {
  color-scheme: light;
  --bg: var(--paper);
  --surface: var(--white);
  --surface-2: #fafafa;
  --surface-3: #ebebeb;
  --fg: var(--black);
  --fg-2: #474747;
  --fg-3: #666666;
  --line: rgba(11, 11, 11, 0.09);
  --line-2: rgba(11, 11, 11, 0.16);
  --line-3: rgba(11, 11, 11, 0.34);
  --accent: var(--black);
  --accent-2: #8a8a8a;
  --italic: #595959;
  --solid: var(--black);
  --on-solid: var(--white);
  --solid-hover: #262626;
  --on-accent: var(--white);
}

.theme-dark,
.theme-graphite,
.theme-light {
  background: var(--bg);
  color: var(--fg);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Paints the strip behind a phone's status bar, above the sticky header. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 110;
  height: env(safe-area-inset-top, 0px);
  background: var(--black);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
  color: inherit;
}

table {
  border-collapse: collapse;
}

[hidden] {
  display: none !important;
}

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

main:focus {
  outline: none;
}

::selection {
  background: #5a5a5a;
  color: #ffffff;
}

/* ---------- 3. Utilities ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 80px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

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

.nowrap {
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: var(--gutter-l);
  z-index: 300;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-2);
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
  white-space: nowrap;
}

.tag .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

/* The italic words at the end of headlines */
.it {
  color: var(--italic);
  font-family: var(--font-serif);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- 4. Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--solid);
  color: var(--on-solid);
}

.btn--primary:hover {
  background: var(--solid-hover);
}

.btn--ghost {
  border-color: var(--line-2);
  background: transparent;
  color: var(--fg);
}

.btn--ghost:hover {
  border-color: var(--line-3);
  background: var(--surface);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn--sm {
  min-height: 40px;
  padding: 0 1.05em;
  font-size: 0.88rem;
}

.btn--lg {
  min-height: 54px;
  padding: 0 1.6em;
  font-size: 1rem;
}

.btn--xl {
  min-height: 60px;
  padding: 0 2em;
  font-size: 1.07rem;
}

.text-link {
  color: var(--fg);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  transition: color 0.2s;
}

.text-link:hover {
  color: var(--accent);
}

/* ---------- 5. Announcement bar ---------- */
.announce {
  border-bottom: 1px solid rgba(11, 11, 11, 0.08);
  background: var(--white);
  color: var(--black);
  font-size: 0.86rem;
  line-height: 1.4;
}

.announce__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 14px;
  min-height: 40px;
  padding-block: 8px;
  text-align: center;
}

.announce a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(11, 11, 11, 0.4);
  text-underline-offset: 3px;
}

.announce a:focus-visible {
  outline-color: var(--black);
}

.announce .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease-out);
}

.announce a:hover .icon {
  transform: translateX(3px);
}

.announce__short {
  display: none;
}

@media (max-width: 639.98px) {
  .announce {
    font-size: 0.82rem;
  }

  .announce__long {
    display: none;
  }

  .announce__short {
    display: inline;
  }
}

/* ---------- 6. Header and navigation ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: var(--black);
  color: var(--fg);
  transition: border-color 0.3s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  max-width: calc(var(--container) + 80px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-right: auto;
  border-radius: 6px;
}

.brand__logo {
  width: auto;
  height: 18px;
}

.btn__short {
  display: none;
}

.site-nav {
  display: none;
}

.site-nav__list {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--fg-2);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 1.5px;
  background: var(--accent-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link[aria-current="true"] {
  color: var(--fg);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="true"]::after {
  transform: scaleX(1);
}

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

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 18px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
}

.menu-toggle__bars {
  position: relative;
  transform: translateY(-3px);
}

.menu-toggle__bars::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 12px;
}

@media (max-width: 479.98px) {
  .site-header .btn__full {
    display: none;
  }

  .site-header .btn__short {
    display: inline;
  }

  .site-header .btn--sm {
    padding: 0 0.95em;
  }
}

@media (min-width: 400px) {
  .brand__logo {
    height: 21px;
  }
}

@media (min-width: 768px) {
  .brand__logo {
    height: 24px;
  }
}

@media (min-width: 1080px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .site-nav {
    display: block;
  }

  .site-header__actions {
    justify-self: end;
  }

  .menu-toggle {
    display: none;
  }
}

/* Without JavaScript the menu button can't open anything, so show the links. */
html:not(.js) .menu-toggle {
  display: none;
}

@media (max-width: 1079.98px) {
  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px;
  }

  html:not(.js) .site-nav {
    display: block;
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--black);
  color: var(--fg);
}

.mobile-menu.is-open {
  animation: menuIn 0.3s var(--ease-out) both;
}

.mobile-menu.is-closing {
  animation: menuOut 0.2s ease-in both;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: var(--header-h);
}

.mobile-menu__close .icon {
  width: 20px;
  height: 20px;
}

.mobile-menu__list {
  display: grid;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.75rem, 7.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  text-decoration: none;
}

.mobile-menu__link .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.mobile-menu.is-open .mobile-menu__list li {
  animation: menuItemIn 0.45s var(--ease-out) both;
  animation-delay: calc(60ms + var(--i, 0) * 40ms);
}

.mobile-menu__foot {
  display: grid;
  gap: 14px;
  margin-top: auto;
  padding-top: 32px;
}

.mobile-menu__foot .btn {
  width: 100%;
}

.mobile-menu__mail {
  color: var(--fg-2);
  font-size: 0.95rem;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ---------- 7. Sections ---------- */
.section {
  position: relative;
  padding-block: clamp(80px, 9.5vw, 128px);
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 820px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-title {
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-lede {
  max-width: 60ch;
  color: var(--fg-2);
  font-size: var(--step-1);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(44px, 6vw, 96px);
}

.hero__intro {
  display: grid;
  gap: 28px;
}

@media (min-width: 1080px) {
  .hero__intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 64px;
    align-items: end;
  }
}

.hero__title {
  font-size: var(--step-hero);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* Hero headline words rise into place on first paint (CSS only). */
.hw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.06em 0.16em 0;
  margin: 0 -0.06em -0.16em 0;
}

.it .hw {
  padding-right: 0.14em;
  margin-right: -0.14em;
}

/* "Into Opportunities." always starts its own line. */
.hero__title .it {
  display: block;
}

.hw > span {
  display: inline-block;
  animation: wordRise 0.9s var(--ease-out) backwards;
  animation-delay: calc(0.05s + var(--i, 0) * 0.055s);
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 24px;
  min-width: 0;
  animation: fadeUp 0.9s var(--ease-out) backwards 0.35s;
}

.hero__lede {
  max-width: 56ch;
  color: var(--fg-2);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  line-height: 1.6;
}

@media (min-width: 1080px) {
  .hero__lede {
    font-size: 1.0625rem;
  }
}

.hero__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
}

.hero__more .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}

.hero__more:hover .icon {
  transform: translateX(4px);
}

/* Email box that opens Calendly with the email filled in */
.book-form {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 540px;
}

.book-form__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.2s;
}

.book-form__field:focus-within {
  border-color: var(--accent);
}

.book-form__field > .icon {
  width: 18px;
  height: 18px;
  color: var(--fg-3);
}

.book-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 1rem;
  outline: none;
}

.book-form input::placeholder {
  color: var(--fg-3);
  opacity: 1;
}

.book-form .btn {
  flex: none;
  min-height: 46px;
}

.book-form__note {
  padding-left: 18px;
  color: var(--fg-3);
  font-size: 0.86rem;
}

.book-form__error {
  padding-left: 18px;
  color: var(--fg);
  font-size: 0.88rem;
  font-weight: 700;
}

.book-form.is-invalid .book-form__field {
  border-color: var(--fg);
}

@media (max-width: 479.98px) {
  .book-form__field {
    flex-wrap: wrap;
    padding: 6px 6px 6px 14px;
    border-radius: 22px;
  }

  .book-form input {
    flex-basis: calc(100% - 40px);
  }

  .book-form .btn {
    width: 100%;
  }

  .book-form__note,
  .book-form__error {
    padding-left: 4px;
  }
}

/* ---------- 9. Product stage: workflow canvas + phone ---------- */
.stage {
  display: grid;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 80px);
  animation: fadeUp 1s var(--ease-out) backwards 0.5s;
}

@media (min-width: 1080px) {
  .stage {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: stretch;
  }
}

.flow {
  position: relative;
  container: flow / inline-size;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.flow__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--line);
}

.flow__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  margin-right: auto;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}

.flow__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--fg-2);
  font-size: 0.75rem;
  font-weight: 700;
}

.flow__state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.flow.is-looping .flow__state {
  color: var(--accent);
}

.flow.is-looping .flow__state::before {
  animation: livePulse 2s infinite;
}

.flow.is-paused .flow__state {
  color: var(--fg-3);
}

.flow.is-paused .flow__state::before,
.flow.is-paused .wire.is-flow {
  animation-play-state: paused;
}

.flow__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--fg-2);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.flow__pause:hover {
  border-color: var(--line-3);
  color: var(--fg);
}

.flow__pause .icon {
  width: 14px;
  height: 14px;
}

.flow__pause .icon--play,
.flow.is-paused .flow__pause .icon--pause {
  display: none;
}

.flow.is-paused .flow__pause .icon--play {
  display: block;
}

.flow__message {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  margin: 16px 16px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  background: var(--surface-2);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}

.flow__message.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.flow__channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.flow__channel .icon {
  width: 14px;
  height: 14px;
}

.flow__time {
  color: var(--fg-3);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.flow__text {
  grid-column: 1 / -1;
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.45;
}

.flow__board {
  position: relative;
  padding: 26px 16px 18px;
}

.flow__wires {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.wire {
  fill: none;
  stroke: var(--line-3);
  stroke-width: 1.25;
  stroke-dasharray: 2 5;
  stroke-linecap: round;
}

.wire.is-flow {
  stroke: var(--accent);
  stroke-dasharray: 5 6;
  animation: wireFlow 0.6s linear infinite;
}

.wire.is-done {
  stroke: var(--accent-2);
  stroke-dasharray: none;
}

.flow__packet {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--surface);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

.flow__packet.is-visible {
  opacity: 1;
}

.flow__nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Snake layout, 2 columns: 1 2 / 4 3 / 5 6 */
.node:nth-child(1) { grid-area: 1 / 1; }
.node:nth-child(2) { grid-area: 1 / 2; }
.node:nth-child(3) { grid-area: 2 / 2; }
.node:nth-child(4) { grid-area: 2 / 1; }
.node:nth-child(5) { grid-area: 3 / 1; }
.node:nth-child(6) { grid-area: 3 / 2; }

@container flow (min-width: 540px) {
  .flow__nodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 34px;
  }

  /* Snake layout, 3 columns: 1 2 3 / 6 5 4 */
  .node:nth-child(1) { grid-area: 1 / 1; }
  .node:nth-child(2) { grid-area: 1 / 2; }
  .node:nth-child(3) { grid-area: 1 / 3; }
  .node:nth-child(4) { grid-area: 2 / 3; }
  .node:nth-child(5) { grid-area: 2 / 2; }
  .node:nth-child(6) { grid-area: 2 / 1; }

  .flow__board {
    padding: 30px 20px 24px;
  }

  .flow__message {
    margin: 18px 20px 0;
  }
}

.node {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color 0.35s, opacity 0.35s, background-color 0.35s;
  animation: nodeIn 0.7s var(--ease-out) backwards;
  animation-delay: calc(0.7s + var(--i, 0) * 0.06s);
}

.node__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--surface-3);
  color: var(--accent);
}

.node__icon .icon {
  width: 17px;
  height: 17px;
}

.node__text {
  display: grid;
  min-width: 0;
}

.node__title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.node__status {
  min-height: 1.3em;
  color: var(--fg-3);
  font-size: 0.74rem;
  line-height: 1.3;
  transition: color 0.3s;
}

.node__num {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--fg-3);
  font-size: 0.64rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.node__check {
  position: absolute;
  top: -8px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}

.node__check .icon {
  width: 11px;
  height: 11px;
  stroke-width: 3;
}

.flow.is-looping .node {
  opacity: 0.45;
}

.flow.is-looping .node.is-active,
.flow.is-looping .node.is-done {
  opacity: 1;
}

.node.is-active {
  border-color: var(--accent);
  background: var(--surface-3);
}

.node.is-active .node__status,
.node.is-done .node__status {
  color: var(--fg-2);
}

.node.is-done .node__check {
  opacity: 1;
  transform: scale(1);
}

.flow__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 0.76rem;
}

@container flow (max-width: 380px) {
  .node {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
    align-items: start;
  }

  .node__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
}

/* Phone */
.phone {
  display: none;
}

@media (min-width: 1080px) {
  .phone {
    display: flex;
    min-width: 0;
  }
}

.phone__frame {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 36px;
  background: var(--surface);
  box-shadow: inset 0 0 0 6px var(--bg);
}

.phone__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 22px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.phone__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

.phone__avatar .icon {
  width: 16px;
  height: 16px;
}

.phone__who {
  display: grid;
  line-height: 1.25;
}

.phone__who b {
  font-size: 0.86rem;
}

.phone__who span {
  color: var(--fg-3);
  font-size: 0.74rem;
}

.phone__chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 0;
  padding: 14px 14px 10px;
  overflow: hidden;
}

.phone__chat .msg {
  flex: none;
  max-width: 88%;
  font-size: 0.82rem;
}

.phone__chat .msg.is-new {
  animation: bubbleIn 0.45s var(--ease-out) backwards;
}

.phone__chat.is-clearing .msg {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.35s, transform 0.35s;
}

.phone__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 12px 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-3);
  font-size: 0.8rem;
}

.phone__input .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.msg--typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
}

.msg--typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  animation: typingDot 1s ease-in-out infinite;
}

.msg--typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.msg--typing i:nth-child(3) {
  animation-delay: 0.3s;
}

.phone.is-paused .msg--typing i {
  animation-play-state: paused;
}

/* ---------- 10. Tools strip (scrolling) ---------- */
.tools {
  margin-top: clamp(56px, 7vw, 96px);
  padding-block: 26px 34px;
  border-top: 1px solid var(--line);
}

.tools__label {
  margin-bottom: 18px;
  color: var(--fg-3);
  font-size: 0.86rem;
  font-weight: 700;
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  margin: 0;
  padding: 0 0 0 clamp(36px, 5vw, 64px);
  list-style: none;
  animation: marquee 40s linear infinite;
}

.marquee__track li {
  color: var(--fg-2);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* ---------- 11. Problem ---------- */
.problem__layout {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .problem__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 72px;
    align-items: center;
  }
}

.problem-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-2);
}

.problem-item:first-child {
  border-top: 1px solid var(--line-2);
}

.problem-item__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--accent);
}

.problem-item__title {
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.problem-item__text {
  margin-top: 4px;
  color: var(--fg-2);
  font-size: 0.98rem;
}

/* Scattered tools snap into one workflow */
.chaos {
  display: grid;
  gap: 18px;
  padding: clamp(16px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.chaos__switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-self: start;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-3);
}

.chaos__switch button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--fg-2);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.chaos__switch button:hover {
  color: var(--fg);
}

.chaos__switch button[aria-pressed="true"] {
  background: var(--solid);
  color: var(--on-solid);
}

html:not(.js) .chaos__switch {
  display: none;
}

.chaos__stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 10 / 9;
  container-type: inline-size;
}

.chaos__chip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2.2cqw;
  width: 44cqw;
  height: 11cqw;
  padding: 0 3cqw;
  border: 1px solid var(--line-2);
  border-radius: 3cqw;
  background: var(--surface);
  color: var(--fg);
  font-size: clamp(11px, 3.4cqw, 15px);
  font-weight: 650;
  white-space: nowrap;
  transform: translate(0, calc(var(--ay) * 1cqw));
  transition: transform 1s var(--ease-out), border-color 0.5s;
  transition-delay: calc(var(--i) * 70ms);
}

.chaos__icon {
  width: 1.15em;
  height: 1.15em;
  color: var(--accent);
}

.chaos__ok {
  width: 1.05em;
  height: 1.05em;
  margin-left: auto;
  color: var(--accent);
  stroke-width: 2.4;
  transition: opacity 0.4s 0.6s, transform 0.4s 0.6s var(--ease-out);
}

.chaos__flag {
  position: absolute;
  top: -0.95em;
  right: 2.5cqw;
  padding: 0.1em 0.6em;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 0.72em;
  font-weight: 700;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.chaos__hub {
  position: absolute;
  top: 20cqw;
  left: 54cqw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3cqw;
  width: 46cqw;
  height: 50cqw;
  padding: 3.6cqw;
  border-radius: 4cqw;
  background: var(--solid);
  color: var(--on-solid);
  font-size: clamp(11px, 3.3cqw, 15px);
  transition: opacity 0.6s 0.45s, transform 0.8s var(--ease-out) 0.45s;
}

.chaos__hub-title {
  font-size: 1.1em;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.chaos__hub-list {
  display: grid;
  gap: 1.8cqw;
  margin: 0;
  padding: 0;
  list-style: none;
  opacity: 0.9;
}

.chaos__hub-list li {
  display: flex;
  align-items: center;
  gap: 0.45em;
}

.chaos__hub-list .icon {
  width: 1em;
  height: 1em;
  stroke-width: 2.6;
}

.chaos__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.chaos__wires path {
  fill: none;
  stroke: var(--accent-2);
  stroke-opacity: 0.7;
  stroke-width: 0.3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s var(--ease-out);
  transition-delay: calc(0.55s + var(--i) * 80ms);
}

.chaos__stage[data-state="before"] .chaos__chip {
  border-color: var(--line);
  transform: translate(calc(var(--bx) * 1cqw), calc(var(--by) * 1cqw)) rotate(var(--br));
  transition-delay: 0ms;
}

.chaos__stage[data-state="before"] .chaos__flag {
  opacity: 1;
  transform: none;
  transition-delay: 0.4s;
}

.chaos__stage[data-state="before"] .chaos__ok {
  opacity: 0;
  transform: scale(0.4);
  transition-delay: 0s;
}

.chaos__stage[data-state="before"] .chaos__hub {
  opacity: 0;
  transform: scale(0.94);
  transition-delay: 0s;
}

.chaos__stage[data-state="before"] .chaos__wires path {
  stroke-dashoffset: 1;
  transition-delay: 0s;
  transition-duration: 0.3s;
}

.chaos__caption {
  min-height: 3em;
  color: var(--fg-2);
  font-size: 0.93rem;
}

/* ---------- 12. Services ---------- */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 680px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .bento {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.svc {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.25s, transform 0.35s var(--ease-out);
}

.svc:hover {
  border-color: var(--line-3);
  transform: translateY(-3px);
}

.svc__visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 196px;
  padding: 18px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.svc__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
}

.svc__title {
  font-size: var(--step-2);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.svc__benefit {
  color: var(--accent);
  font-weight: 650;
}

.svc__desc {
  max-width: 58ch;
  color: var(--fg-2);
  font-size: 0.98rem;
}

.svc__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  width: fit-content;
  margin-top: auto;
  padding-top: 10px;
  border-radius: 6px;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.svc__link .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out);
}

.svc__link:hover .icon {
  transform: translateX(4px);
}

.tools-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 80ch;
  margin-top: 28px;
  color: var(--fg-2);
  font-size: 0.97rem;
}

.tools-line .icon {
  margin-top: 2px;
  color: var(--accent);
}

/* --- Service mini visuals. The finished state is the default; the animation
       plays once when the card scrolls into view. --- */
.viz-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface-2);
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
}

.viz-pill .icon {
  width: 14px;
  height: 14px;
}

.viz-pill--on {
  border-color: var(--solid);
  background: var(--solid);
  color: var(--on-solid);
}

.viz-pill--ai {
  border-style: dashed;
  border-color: var(--accent-2);
  color: var(--accent);
}

/* 1. Decision flow */
.viz-decide {
  display: grid;
  justify-items: center;
}

.viz-decide__link {
  width: 1px;
  height: 12px;
  background: linear-gradient(var(--accent), var(--accent)) top / 100% 100% no-repeat, var(--line-2);
}

.viz-decide__branches {
  position: relative;
  display: flex;
  gap: 12px;
  padding-top: 14px;
}

.viz-decide__branches > .viz-pill {
  flex: 1 1 0;
  justify-content: center;
}

.viz-decide__branches::before {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 14px;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.viz-decide__branches::after {
  content: "";
  position: absolute;
  top: 0;
  left: 25%;
  width: 25%;
  height: 14px;
  border: 1px solid var(--accent);
  border-right: 0;
  border-bottom: 0;
  border-radius: 10px 0 0 0;
  transform-origin: right;
}

.viz-decide__no {
  opacity: 0.55;
}

/* 2. Voice call */
.viz-call {
  display: grid;
  gap: 10px;
  width: min(100%, 340px);
}

.viz-call__top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
}

.viz-call__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

.viz-call__icon .icon {
  width: 14px;
  height: 14px;
}

.viz-call__label {
  font-size: 0.8rem;
  font-weight: 700;
}

.viz-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  margin-left: auto;
}

.viz-wave i {
  width: 3px;
  height: var(--h, 50%);
  border-radius: 2px;
  background: var(--accent);
  transform-origin: center;
}

.viz-say {
  max-width: 92%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.78rem;
  line-height: 1.4;
}

.viz-say b {
  margin-right: 6px;
  color: var(--fg-3);
  font-size: 0.7rem;
}

.viz-say--ai {
  justify-self: end;
  border-color: var(--solid);
  background: var(--solid);
  color: var(--on-solid);
}

.viz-say--ai b {
  color: inherit;
  opacity: 0.6;
}

/* 3. Follow-up timeline */
.viz-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 340px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.viz-steps::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 16%;
  right: 16%;
  height: 1.5px;
  background: var(--accent-2);
  transform-origin: left;
}

.viz-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.viz-steps__dot {
  width: 19px;
  height: 19px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-2);
}

.viz-steps b {
  font-size: 0.78rem;
}

.viz-steps span:last-child {
  color: var(--fg-2);
  font-size: 0.72rem;
  line-height: 1.3;
}

.viz-steps__end {
  position: absolute;
  right: 18px;
  bottom: 18px;
}

/* 4. Chat */
.viz-chat {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(100%, 320px);
}

.viz-bubble {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.viz-bubble--them {
  justify-self: start;
  border: 1px solid var(--line-2);
  border-bottom-left-radius: 4px;
  background: var(--surface-2);
}

.viz-bubble--bot {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--solid);
  color: var(--on-solid);
}

.viz-typing {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  background: var(--surface-2);
  opacity: 0;
}

.viz-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-2);
}

/* 5. CRM table */
.viz-table {
  display: grid;
  width: min(100%, 330px);
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 0.75rem;
}

.viz-row {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
}

.viz-row--head {
  border-top: 0;
  color: var(--fg-3);
  font-weight: 700;
}

.viz-row--new {
  background: var(--surface-3);
}

.viz-st {
  justify-self: start;
  padding: 1px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-2);
  font-size: 0.7rem;
  font-weight: 700;
}

.viz-st--q {
  border-color: var(--accent-2);
  color: var(--accent);
}

.viz-st--b {
  border-color: var(--solid);
  background: var(--solid);
  color: var(--on-solid);
}

/* 6. Integrations chain */
.viz-chain {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}

.viz-chain__node {
  display: grid;
  justify-items: center;
  gap: 8px;
  flex: none;
  width: 60px;
  color: var(--fg-2);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.viz-chain__tile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--accent);
}

.viz-chain__tile .icon {
  width: 20px;
  height: 20px;
}

.viz-chain__link {
  position: relative;
  flex: 1 1 18px;
  max-width: 90px;
  height: 1px;
  margin-top: 23px;
  overflow: hidden;
  background: var(--line-2);
}

.viz-chain__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: translateX(-100%);
}

.viz-sync {
  position: absolute;
  right: 16px;
  bottom: 14px;
}

.svc.will-play .viz-decide__in { animation: vizDim 0.6s var(--ease-out) both 0.1s; }
.svc.will-play .viz-decide__link--a { animation: vizFillY 0.4s ease-out both 0.45s; }
.svc.will-play .viz-decide__rule { animation: vizDim 0.6s var(--ease-out) both 0.75s; }
.svc.will-play .viz-decide__link--b { animation: vizFillY 0.35s ease-out both 1.05s; }
.svc.will-play .viz-decide__branches::after { animation: vizGrowX 0.45s ease-out both 1.3s; }
.svc.will-play .viz-decide__yes { animation: vizPop 0.6s var(--ease-out) both 1.65s; }
.svc.will-play .viz-decide__no { animation: vizFadeIn 0.6s ease-out both 1.65s; }

.svc.will-play .viz-call__top { animation: vizRise 0.6s var(--ease-out) both 0.1s; }
.svc.will-play .viz-wave i { animation: vizWave 0.7s ease-in-out 3 alternate both; animation-delay: calc(0.2s + var(--d, 0) * 60ms); }
.svc.will-play .viz-say--them { animation: vizRise 0.6s var(--ease-out) both 0.7s; }
.svc.will-play .viz-say--ai { animation: vizRise 0.6s var(--ease-out) both 1.5s; }

.svc.will-play .viz-steps::before { animation: vizGrowX 1.4s ease-in-out both 0.2s; }
.svc.will-play .viz-steps li:nth-child(1) { animation: vizRise 0.6s var(--ease-out) both 0.15s; }
.svc.will-play .viz-steps li:nth-child(2) { animation: vizRise 0.6s var(--ease-out) both 0.75s; }
.svc.will-play .viz-steps li:nth-child(3) { animation: vizRise 0.6s var(--ease-out) both 1.35s; }
.svc.will-play .viz-steps__end { animation: vizPop 0.6s var(--ease-out) both 1.9s; }

.svc.will-play .viz-bubble--them { animation: vizRise 0.6s var(--ease-out) both 0.15s; }
.svc.will-play .viz-typing { animation: vizTyping 1.3s ease both 0.75s; }
.svc.will-play .viz-typing i { animation: vizBounce 0.6s ease-in-out 2 both; animation-delay: calc(0.85s + var(--d, 0) * 120ms); }
.svc.will-play .viz-bubble--bot { animation: vizRise 0.6s var(--ease-out) both 2s; }

.svc.will-play .viz-row--new { animation: vizRowIn 0.8s var(--ease-out) both 0.6s; }
.svc.will-play .viz-row--new .viz-st { animation: vizPop 0.5s var(--ease-out) both 1.4s; }

.svc.will-play .viz-chain__node { animation: vizRise 0.6s var(--ease-out) both; animation-delay: calc(0.1s + var(--d, 0) * 120ms); }
.svc.will-play .viz-chain__link::after { animation: vizSweep 1.4s ease-in-out 2; animation-delay: calc(0.7s + var(--d, 0) * 180ms); }
.svc.will-play .viz-sync { animation: vizPop 0.6s var(--ease-out) both 2.4s; }

/* Play-once animations are assigned while the card is still below the fold
   (.will-play) and held on their first frame until it scrolls into view (.is-in). */
.will-play:not(.is-in) *,
.will-play:not(.is-in) *::before,
.will-play:not(.is-in) *::after {
  animation-play-state: paused !important;
}

/* Cards that rise into place the first time they scroll into view.
   Only cards that start below the fold get this, so nothing visible jumps.
   animations.js removes both classes once the card has arrived, so hover
   effects work as normal afterwards. */
.will-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.will-reveal.is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

/* ---------- 13. How we help (the five workflows) ---------- */
.workflows {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
}

.wf {
  display: grid;
  gap: 28px;
  padding-block: clamp(32px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line-2);
}

@media (min-width: 960px) {
  .wf {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 72px);
    align-items: start;
  }
}

.wf__text {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.wf__industry {
  display: inline-flex;
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
}

.wf__title {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.wf__desc {
  max-width: 58ch;
  color: var(--fg-2);
  font-size: var(--step-1);
  line-height: 1.55;
}

.wf__facts {
  display: grid;
  gap: 20px;
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .wf__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

.wf__fact-h {
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 800;
}

.wf__fact p {
  color: var(--fg-2);
  font-size: 0.97rem;
}

.wf__tracked {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wf__tracked li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--fg-2);
  font-size: 0.97rem;
  line-height: 1.45;
}

.wf__tracked li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 0.42em;
  border: 1.5px solid var(--accent-2);
  border-radius: 2px;
}

.wf__visual {
  min-width: 0;
}

/* Sample message screens used as the picture for each workflow */
.mock {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mock__app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 750;
}

.mock__app .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.42;
}

.msg--in {
  align-self: flex-start;
  justify-self: start;
  border-bottom-left-radius: 4px;
  background: var(--surface-3);
  color: var(--fg);
}

.msg--out {
  align-self: flex-end;
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--solid);
  color: var(--on-solid);
}

.msg__button {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.mock__event {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-2);
  font-size: 0.82rem;
  font-weight: 650;
}

.mock__event .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
  stroke-width: 2.2;
}

.mock__event time {
  margin-left: auto;
  color: var(--fg-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.mock__event--call {
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--fg);
}

.mock__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-3);
  font-size: 0.75rem;
  font-weight: 650;
}

.mock__divider::before,
.mock__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.quote-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
}

.quote-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
}

.quote-card p {
  color: var(--fg-2);
  font-size: 0.86rem;
}

.mock__steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock__steps li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-size: 0.86rem;
  line-height: 1.4;
}

.mock__steps .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--accent);
  stroke-width: 2.2;
}

.mock__steps .is-final {
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--solid);
  color: var(--on-solid);
  font-weight: 700;
}

.mock__steps .is-final .icon {
  color: inherit;
}

.mock__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.mock__fields div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mock__fields dt {
  color: var(--fg-3);
  font-size: 0.72rem;
  font-weight: 650;
}

.mock__fields dd {
  font-size: 0.9rem;
  font-weight: 700;
}

.mock__fields .is-hot {
  border-color: var(--accent);
}

.mock__fields .is-hot dd {
  color: var(--accent);
}

.mock__route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: var(--solid);
  color: var(--on-solid);
}

.mock__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
}

.mock__route b {
  display: block;
  font-size: 0.9rem;
}

.mock__route span {
  font-size: 0.78rem;
  opacity: 0.75;
}

.mock__route .icon {
  width: 18px;
  height: 18px;
}

.wf.will-play .mock > * {
  animation: mockIn 0.5s var(--ease-out) both;
  animation-delay: calc(0.1s + var(--d, 0) * 0.32s);
}

/* ---------- 14. Workflow demo ---------- */
.demo {
  display: grid;
  gap: 20px;
  padding: clamp(16px, 2.6vw, 28px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.demo__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.seg__btn {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--fg-2);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.seg__btn:hover {
  color: var(--fg);
}

.seg__btn[aria-checked="true"] {
  background: var(--solid);
  color: var(--on-solid);
}

@media (max-width: 559.98px) {
  .seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .seg__btn {
    padding: 6px 8px;
    font-size: 0.82rem;
    line-height: 1.25;
  }
}

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

html:not(.js) .demo__controls {
  display: none;
}

.demo__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  color: var(--fg-3);
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.demo__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.demo__status.is-running {
  color: var(--accent);
}

.demo__status.is-running::before {
  animation: livePulse 1.6s infinite;
}

.demo__status.is-done {
  color: var(--fg);
}

.demo__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--fg-3);
  font-size: 0.88rem;
}

.demo__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 960px) {
  .demo__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 32px;
  }
}

.dsteps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dstep {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 10px 0 16px;
}

.dstep::before,
.dstep::after {
  content: "";
  position: absolute;
  top: 54px;
  bottom: -2px;
  left: 19.5px;
  width: 1.5px;
}

.dstep::before {
  background: var(--line-2);
}

.dstep::after {
  background: var(--accent-2);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}

.dstep:last-child::before,
.dstep:last-child::after {
  display: none;
}

.dstep[data-state="done"]::after {
  transform: scaleY(1);
}

.dstep__marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg-3);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.dstep__marker .icon {
  position: absolute;
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}

.dstep[data-state="running"] .dstep__marker {
  border-color: var(--accent);
  color: var(--accent);
}

.dstep[data-state="running"] .dstep__marker::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1.5px solid transparent;
  border-top-color: var(--accent);
  border-radius: 16px;
  animation: spin 0.9s linear infinite;
}

.dstep[data-state="done"] .dstep__marker {
  border-color: var(--accent);
  background: var(--accent);
  color: transparent;
}

.dstep[data-state="done"] .dstep__marker .icon {
  color: var(--on-accent);
  opacity: 1;
  transform: none;
}

.dstep__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.dstep__desc {
  margin-top: 2px;
  color: var(--fg-2);
  font-size: 0.9rem;
}

.dstep__state {
  margin-top: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-3);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.dstep[data-state="running"] .dstep__state {
  border-color: var(--accent);
  color: var(--accent);
}

.dstep[data-state="done"] .dstep__state {
  border-color: var(--line-3);
  color: var(--fg);
}

.demo__panel {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.dcard {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  transition: border-color 0.4s;
}

.dcard.is-lit {
  border-color: var(--accent);
}

.dcard__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--fg-3);
  font-size: 0.8rem;
  font-weight: 700;
}

.dmsg {
  display: grid;
  gap: 10px;
}

.dmsg__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--fg-3);
  font-size: 0.8rem;
}

.dmsg__meta .icon {
  width: 14px;
  height: 14px;
}

.dmsg__channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
}

.dmsg__text {
  max-width: 56ch;
  padding: 12px 14px;
  border-radius: 4px 14px 14px 14px;
  background: var(--surface-2);
  font-size: 0.98rem;
  line-height: 1.5;
}

.dmsg__intent {
  justify-self: start;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.78rem;
  font-weight: 750;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}

.dmsg__intent.is-shown {
  opacity: 1;
  transform: none;
}

.dfields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
}

@media (min-width: 560px) {
  .dfields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.dfields dt {
  color: var(--fg-3);
  font-size: 0.74rem;
  font-weight: 600;
}

.dfields dd {
  min-height: 1.45em;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dfields dd.is-empty {
  color: var(--fg-3);
  font-weight: 500;
}

.dfields dd.is-filled {
  animation: fieldIn 0.45s var(--ease-out) both;
}

.dreply {
  color: var(--fg-3);
  font-size: 0.95rem;
}

.dreply.is-filled {
  color: var(--fg);
  animation: fieldIn 0.45s var(--ease-out) both;
}

.dnext {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
}

/* Arrow drawn with a mask (Manrope has no arrow glyph), same shape as the #i-arrow icon. */
.dnext::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 0.15em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dlog {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 10.4em;
  max-height: 14em;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  list-style: none;
}

.dlog li {
  display: grid;
  grid-template-columns: 5.4em minmax(0, 1fr);
  gap: 10px;
  animation: logIn 0.3s var(--ease-out) both;
}

.dlog time {
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.dlog .is-final {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- 15. How it works ---------- */
.process {
  position: relative;
  --p: 1;
}

.process__track {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 19px;
  width: 2px;
  overflow: hidden;
  background: var(--line-2);
}

.process__fill {
  position: absolute;
  inset: 0;
  background: var(--solid);
  transform: scaleY(var(--p));
  transform-origin: top;
}

.process__steps {
  position: relative;
  display: grid;
  gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pstep {
  position: relative;
  padding-left: 64px;
}

.pstep__dot {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg-3);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.4s, color 0.4s, background-color 0.4s;
}

.pstep.is-lit .pstep__dot {
  border-color: var(--solid);
  background: var(--solid);
  color: var(--on-solid);
}

.pstep__title {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.pstep__text {
  max-width: 38ch;
  margin-top: 12px;
  color: var(--fg-2);
}

.pstep__note {
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

@media (min-width: 900px) {
  .process__track {
    top: 19px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 2px;
  }

  .process__fill {
    transform: scaleX(var(--p));
    transform-origin: left;
  }

  .process__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .pstep {
    padding-top: 76px;
    padding-left: 0;
  }
}

/* ---------- 16. Benefits ---------- */
.benefits__layout {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .benefits__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
  }
}

.benefits__lede {
  margin-top: 18px;
}

.benefit-list {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.45;
}

.benefit-list .icon {
  margin-top: 2px;
  color: var(--accent);
  stroke-width: 2.2;
}

.todo {
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.todo__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.todo__title {
  font-size: 1.1rem;
  font-weight: 800;
}

.todo__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.todo__item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color 0.4s;
}

.todo__box {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--line-3);
  border-radius: 6px;
  transition: background-color 0.3s, border-color 0.3s;
}

.todo__box .icon {
  width: 14px;
  height: 14px;
  color: var(--on-accent);
  stroke-width: 2.8;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}

.todo__text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration-line: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: 1.5px;
  transition: color 0.4s, text-decoration-color 0.4s 0.1s;
}

.todo__who {
  padding: 3px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-3);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.todo__who-auto {
  display: none;
}

.todo__item.is-done .todo__box {
  border-color: var(--accent);
  background: var(--accent);
}

.todo__item.is-done .todo__box .icon {
  opacity: 1;
  transform: none;
}

.todo__item.is-done .todo__text {
  color: var(--fg-3);
  text-decoration-color: var(--fg-3);
}

.todo__item.is-done .todo__who {
  border-color: var(--accent-2);
  color: var(--accent);
}

.todo__item.is-done .todo__who-manual {
  display: none;
}

.todo__item.is-done .todo__who-auto {
  display: inline;
}

.todo.is-complete .todo__item--human {
  border-color: var(--accent);
}

.todo.is-complete .todo__item--human .todo__who {
  border-color: var(--solid);
  background: var(--solid);
  color: var(--on-solid);
}

.todo__foot {
  margin-top: 16px;
  color: var(--fg-2);
  font-size: 0.92rem;
  transition: opacity 0.5s;
}

.todo:not(.is-complete) .todo__foot {
  opacity: 0;
}

@media (max-width: 479.98px) {
  .todo__item {
    grid-template-columns: 22px minmax(0, 1fr);
    row-gap: 8px;
  }

  .todo__who {
    grid-column: 2;
    justify-self: start;
  }
}

/* ---------- 17. Measure the impact ---------- */
.measure__layout {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .measure__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
    align-items: start;
  }
}

.measure__text {
  display: grid;
  gap: 18px;
}

.measure__goal {
  max-width: 52ch;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: var(--step-1);
  font-weight: 650;
  line-height: 1.5;
}

.plan {
  display: grid;
  gap: 22px;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan__title {
  font-size: 1.1rem;
  font-weight: 800;
}

.plan__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .plan__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.plan__steps li {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.4;
}

.plan__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--solid);
  color: var(--on-solid);
  font-size: 0.78rem;
  font-weight: 800;
}

.plan__table-wrap {
  overflow-x: auto;
}

.plan__table {
  width: 100%;
  font-size: 0.92rem;
  text-align: left;
}

.plan__table th,
.plan__table td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.plan__table thead th {
  color: var(--fg-3);
  font-size: 0.78rem;
  font-weight: 700;
}

.plan__table tbody th {
  width: 44%;
  font-weight: 700;
}

.plan__table td {
  color: var(--fg-2);
}

.plan__roi {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface-3);
  font-size: 0.95rem;
  font-weight: 650;
}

.plan__roi b {
  color: var(--accent);
  font-weight: 800;
}

/* ---------- 18. Testimonial ---------- */
.testimonial {
  display: grid;
  gap: 32px;
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

@media (min-width: 1000px) {
  .testimonial {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
  }
}

.testimonial__main {
  display: grid;
  align-content: start;
  gap: 28px;
  min-width: 0;
}

.testimonial__quote {
  font-size: var(--step-3);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: pretty;
}

.testimonial__person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.testimonial__who {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.testimonial__name {
  font-size: 1.08rem;
  font-weight: 800;
}

.testimonial__company {
  color: var(--fg-2);
}

.testimonial__site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 4px;
}

.testimonial__site .icon {
  width: 15px;
  height: 15px;
}

.testimonial__facts {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .testimonial__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.testimonial__facts h3 {
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 800;
}

.testimonial__facts p,
.testimonial__facts li {
  color: var(--fg-2);
  font-size: 0.95rem;
}

.testimonial__facts ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.testimonial__facts li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
}

.testimonial__facts li .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--accent);
  stroke-width: 2.2;
}

.testimonial__media {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.testimonial__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  background: #000000;
}

.transcript {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
}

.transcript__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.transcript__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.transcript__title .icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.transcript__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.transcript__list li {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  gap: 10px;
  font-size: 0.93rem;
  line-height: 1.5;
}

.transcript__list time {
  color: var(--fg-3);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.85;
}

.transcript__list p {
  color: var(--fg-2);
}

.transcript__list .is-key p {
  color: var(--fg);
  font-weight: 650;
}

/* ---------- 19. Final call to action ---------- */
.cta {
  position: relative;
  overflow: hidden; /* fallback for browsers without overflow: clip */
  overflow: clip;
  padding-block: clamp(96px, 12vw, 168px);
}

.cta__inner {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
}

.cta__title {
  max-width: 14ch;
  font-size: clamp(2.35rem, 1.2rem + 4.8vw, 5.1rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.cta__text {
  max-width: 52ch;
  color: var(--fg-2);
  font-size: var(--step-1);
  line-height: 1.55;
}

.cta__action {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}

/* Lines from both edges of the screen run into the booking button */
.cta__rail {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  display: flex;
  width: 100vw;
  height: 140px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta__rail-side {
  flex: 1 1 50%;
  height: 100%;
  overflow: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.6s var(--ease-out);
}

.cta__rail-side path {
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.cta.is-pre .cta__rail-side--left {
  clip-path: inset(0 100% 0 0);
  transition: none;
}

.cta.is-pre .cta__rail-side--right {
  clip-path: inset(0 0 0 100%);
  transition: none;
}

.cta__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 10px;
  color: var(--fg-2);
  font-size: 0.95rem;
}

.contact-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-line .text-link {
  overflow-wrap: anywhere;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-2);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.copy-btn:hover {
  border-color: var(--line-3);
  color: var(--fg);
}

.copy-btn .icon {
  width: 14px;
  height: 14px;
}

.copy-btn.is-copied {
  border-color: var(--solid);
  background: var(--solid);
  color: var(--on-solid);
}

html:not(.js) .copy-btn {
  display: none;
}

/* ---------- 20. Footer ---------- */
.site-footer {
  padding-top: 64px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.site-footer__grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 860px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
  }
}

.site-footer__logo {
  width: 210px;
  height: auto;
}

.site-footer__tagline {
  margin: 18px 0 22px;
  color: var(--fg-2);
  font-size: 1.05rem;
  font-weight: 600;
}

.footer-h {
  margin: 0 0 14px;
  color: var(--fg-3);
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  border-radius: 4px;
  color: var(--fg-2);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--fg);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 0.88rem;
}

/* ---------- 21. Keyframes ---------- */
@keyframes wordRise {
  from { transform: translateY(110%); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
}

@keyframes nodeIn {
  from { opacity: 0; transform: translateY(10px); }
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
}

@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-3px); opacity: 1; }
}

@keyframes marquee {
  to { transform: translateX(-100%); }
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes wireFlow {
  to { stroke-dashoffset: -11; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-8px); }
}

@keyframes menuOut {
  to { opacity: 0; transform: translateY(-8px); }
}

@keyframes menuItemIn {
  from { opacity: 0; transform: translateY(16px); }
}

@keyframes fieldIn {
  from { opacity: 0; transform: translateY(5px); }
}

@keyframes logIn {
  from { opacity: 0; transform: translateX(-6px); }
}

@keyframes mockIn {
  from { opacity: 0; transform: translateY(10px); }
}

@keyframes vizDim {
  from { opacity: 0.3; }
}

@keyframes vizFadeIn {
  from { opacity: 0; }
}

@keyframes vizRise {
  from { opacity: 0; transform: translateY(10px); }
}

@keyframes vizPop {
  0% { opacity: 0; transform: scale(0.85); }
  60% { opacity: 1; transform: scale(1.04); }
}

@keyframes vizFillY {
  from { background-size: 100% 0%; }
}

@keyframes vizGrowX {
  from { transform: scaleX(0); }
}

@keyframes vizWave {
  from { transform: scaleY(0.25); }
}

@keyframes vizTyping {
  0% { opacity: 0; transform: translateY(6px); }
  15% { opacity: 1; transform: none; }
  85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}

@keyframes vizBounce {
  50% { transform: translateY(-4px); }
}

@keyframes vizRowIn {
  from { opacity: 0; transform: translateY(-100%); }
}

@keyframes vizSweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }

  /* The tools strip stands still and wraps instead of scrolling. */
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee__track {
    flex-wrap: wrap;
    row-gap: 12px;
    padding-left: 0;
    animation: none !important;
  }

  .marquee__track[aria-hidden="true"] {
    display: none;
  }
}
