/* ==========================================================================
   WI1 — marketing page components (v1.1.1)

   Loaded on the pages that use these components — the front page, Features and
   About — not site-wide. See wi1_marketing_page_assets() in functions.php for
   the condition and how to widen it.

   Sections 1–7 are the homepage; section 8 is Features and About, which reuse
   the same screenshot frames, example cards and pulse dot rather than
   introducing a second visual language.

   Sections:
     1. Screenshot frames + wireframe placeholders   (shared)
     2. Home hero
     3. "A day with your AI teammate" timeline  <- the animated centrepiece
     4. Worked examples                              (shared)
     5. Product tour rows
     6. Trust / control band
     7. Reduced motion + responsive
     8. Inner pages — Features and About
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Screenshot frames
   -------------------------------------------------------------------------- */
.wi1-shot {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(4, 52, 44, 0.12);
  box-shadow: var(--wp--preset--shadow--lift, 0 18px 48px rgba(4, 52, 44, 0.18));
}
.wi1-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Browser chrome strip above a screenshot */
.wi1-shot-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: linear-gradient(180deg, #fbfbf8, #f1f1ec);
  border-bottom: 1px solid rgba(4, 52, 44, 0.09);
}
.wi1-shot-dots {
  display: flex;
  gap: 0.3rem;
  flex: 0 0 auto;
}
.wi1-shot-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6d6cd;
}
.wi1-shot-url {
  flex: 1 1 auto;
  font: 500 0.72rem/1 var(--wi1-font-sans);
  color: #8b8b82;
  background: #fff;
  border: 1px solid rgba(4, 52, 44, 0.08);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  text-align: center;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* On a dark band the frame needs a lighter edge */
.wi1-dark .wi1-shot {
  border-color: rgba(159, 225, 203, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Caption under a shot */
.wi1-shot-caption {
  margin: 0.7rem 0 0;
  font-size: 0.875rem;
  color: var(--wp--preset--color--ink-muted);
}
.wi1-dark .wi1-shot-caption { color: var(--wp--preset--color--paper-muted); }

/* -------- Wireframe placeholder (shown until a real PNG is dropped in) ---- */
.wi1-wire {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(29, 158, 117, 0.05), rgba(15, 110, 86, 0.08)),
    repeating-linear-gradient(45deg, #fcfcfa 0 10px, #f6f6f1 10px 20px);
  display: grid;
  grid-template-columns: 22% 1fr;
}
.wi1-wire-rail {
  border-right: 1px solid rgba(4, 52, 44, 0.08);
  padding: 0.9rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.wi1-wire-rail span,
.wi1-wire-body span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(15, 110, 86, 0.14);
}
.wi1-wire-rail span:first-child {
  height: 14px;
  background: rgba(15, 110, 86, 0.3);
  margin-bottom: 0.3rem;
}
.wi1-wire-body {
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.wi1-wire-body span:nth-child(1) { width: 45%; height: 13px; background: rgba(15, 110, 86, 0.28); }
.wi1-wire-body span:nth-child(2) { width: 85%; }
.wi1-wire-body span:nth-child(3) { width: 70%; }
.wi1-wire-body span:nth-child(4) { width: 92%; }
.wi1-wire-body span:nth-child(5) { width: 60%; }
.wi1-wire-body span:nth-child(6) { width: 78%; }
.wi1-wire-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.55rem 0.8rem;
  background: rgba(4, 52, 44, 0.82);
  color: #e1f5ee;
  font: 600 0.74rem/1.3 var(--wi1-font-sans);
  letter-spacing: 0.02em;
  text-align: center;
}
.wi1-wire-label code {
  font-family: var(--wp--preset--font-family--mono);
  font-weight: 500;
  color: #9fe1cb;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   2. Home hero
   -------------------------------------------------------------------------- */
.wi1-hero-home { position: relative; overflow: hidden; }

/* Soft moving glow behind the hero (pure CSS, cheap) */
.wi1-hero-home::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  top: -28%;
  right: -14%;
  background: radial-gradient(circle, rgba(93, 202, 165, 0.26) 0%, rgba(93, 202, 165, 0) 66%);
  pointer-events: none;
  animation: wi1-drift 22s ease-in-out infinite alternate;
}
@keyframes wi1-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-5%, 5%, 0) scale(1.12); }
}
.wi1-hero-home > * { position: relative; z-index: 1; }

/* Hero stat row */
.wi1-hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 2.2rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}
.wi1-hero-stats li {
  font-size: 0.9rem;
  color: var(--wp--preset--color--green-mid);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.wi1-hero-stats li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--wp--preset--color--green-bright);
  flex: 0 0 auto;
}

/* The hero screenshot, floated up over the next band */
.wi1-hero-shot-wrap {
  margin: 3rem auto 0;
  max-width: 1060px;
  perspective: 1600px;
}
.wi1-hero-shot-wrap .wi1-shot {
  transform: rotateX(4deg);
  transform-origin: 50% 0;
}

/* Floating agent nudge card over the hero shot */
.wi1-hero-nudge {
  position: absolute;
  right: 4%;
  bottom: 9%;
  width: min(300px, 62%);
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(4, 52, 44, 0.1);
  box-shadow: 0 14px 38px rgba(4, 52, 44, 0.24);
  padding: 0.8rem 0.9rem;
  text-align: left;
  animation: wi1-nudge-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.9s both,
             wi1-float 7s ease-in-out 1.8s infinite alternate;
}
@keyframes wi1-nudge-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes wi1-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-9px); }
}
.wi1-hero-nudge-who {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font: 700 0.68rem/1 var(--wi1-font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wi1-green-deep);
  margin: 0 0 0.4rem;
}
.wi1-hero-nudge p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--wi1-ink);
}

/* Little pulsing presence dot used for "the agent is here" */
.wi1-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wi1-green-bright);
  box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.55);
  animation: wi1-pulse 2.4s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes wi1-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(29, 158, 117, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 158, 117, 0); }
}

/* --------------------------------------------------------------------------
   3. "A day with your AI teammate" — the animated timeline
   -------------------------------------------------------------------------- */
.wi1-tl {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* -------- Left: the step list (acts as a tablist) -------- */
.wi1-tl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* The vertical spine */
.wi1-tl-steps::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: rgba(159, 225, 203, 0.28);
}
.wi1-tl-step { position: relative; }
.wi1-tl-step > button {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.85rem;
  width: 100%;
  background: none;
  border: 0;
  padding: 0.7rem 0.6rem 0.7rem 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 10px;
  transition: background 0.2s ease;
}
.wi1-tl-step > button:hover { background: rgba(159, 225, 203, 0.08); }
.wi1-tl-step > button:focus-visible {
  outline: 2px solid var(--wp--preset--color--green-bright);
  outline-offset: 2px;
}

/* The dot on the spine */
.wi1-tl-dot {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0b4b3d;
  border: 2px solid rgba(159, 225, 203, 0.35);
  display: grid;
  place-items: center;
  font: 700 0.7rem/1 var(--wi1-font-sans);
  color: var(--wp--preset--color--green-mid);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.wi1-tl-step.is-active .wi1-tl-dot {
  background: var(--wp--preset--color--green-bright);
  border-color: var(--wp--preset--color--green-bright);
  color: #04342c;
  transform: scale(1.12);
}
.wi1-tl-step.is-done .wi1-tl-dot {
  background: rgba(29, 158, 117, 0.3);
  border-color: rgba(29, 158, 117, 0.5);
  color: #e1f5ee;
}

.wi1-tl-when {
  display: block;
  font: 700 0.68rem/1 var(--wi1-font-sans);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--wp--preset--color--green-mid);
  margin-bottom: 0.25rem;
}
.wi1-tl-what {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 240, 0.62);
  transition: color 0.25s ease;
}
.wi1-tl-step.is-active .wi1-tl-what,
.wi1-tl-step.is-done .wi1-tl-what { color: var(--wp--preset--color--paper); }
.wi1-tl-note {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--wp--preset--color--paper-muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.wi1-tl-step.is-active .wi1-tl-note {
  max-height: 9rem;
  opacity: 1;
}

/* Per-step progress bar, driven by a CSS custom property from JS */
.wi1-tl-bar {
  display: block;
  height: 2px;
  margin-top: 0.55rem;
  background: rgba(159, 225, 203, 0.18);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.wi1-tl-step.is-active .wi1-tl-bar { opacity: 1; }
.wi1-tl-bar i {
  display: block;
  height: 100%;
  width: var(--wi1-progress, 0%);
  background: var(--wp--preset--color--green-bright);
  border-radius: 2px;
}

/* -------- Controls -------- */
.wi1-tl-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.wi1-tl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(159, 225, 203, 0.12);
  color: var(--wp--preset--color--paper);
  border: 1px solid rgba(159, 225, 203, 0.26);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font: 600 0.8rem/1 var(--wi1-font-sans);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.wi1-tl-btn:hover {
  background: rgba(159, 225, 203, 0.22);
  border-color: rgba(159, 225, 203, 0.45);
}
.wi1-tl-btn:focus-visible {
  outline: 2px solid var(--wp--preset--color--green-bright);
  outline-offset: 2px;
}
.wi1-tl-btn svg { width: 11px; height: 11px; fill: currentColor; }

/* -------- Right: the app stage -------- */
.wi1-tl-stage { position: relative; }

.wi1-tl-app {
  position: relative;
  border-radius: 14px;
  background: #fdfdfb;
  border: 1px solid rgba(159, 225, 203, 0.2);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

/* App title bar */
.wi1-tl-appbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  background: #04342c;
  color: #e1f5ee;
  font: 600 0.78rem/1 var(--wi1-font-sans);
}
.wi1-tl-appdots { display: flex; gap: 0.3rem; }
.wi1-tl-appdots i {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(225, 245, 238, 0.3);
}
.wi1-tl-appbar-title { flex: 1 1 auto; opacity: 0.92; }
.wi1-tl-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--wp--preset--color--green-mid);
  letter-spacing: 0.02em;
}

/* Scenes stack on top of each other; only the active one shows.
   The wrapper holds the height of the tallest scene so nothing reflows. */
.wi1-tl-scenes { position: relative; }
.wi1-tl-scene {
  padding: 1.15rem 1.2rem 1.4rem;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: translateY(10px);
}
.wi1-tl-scene.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  transform: none;
}

/* Children of the active scene fade up in sequence */
.wi1-tl-scene > * {
  opacity: 0;
  transform: translateY(8px);
}
.wi1-tl-scene.is-active > * {
  animation: wi1-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.wi1-tl-scene.is-active > *:nth-child(1) { animation-delay: 0.06s; }
.wi1-tl-scene.is-active > *:nth-child(2) { animation-delay: 0.2s; }
.wi1-tl-scene.is-active > *:nth-child(3) { animation-delay: 0.34s; }
.wi1-tl-scene.is-active > *:nth-child(4) { animation-delay: 0.48s; }
.wi1-tl-scene.is-active > *:nth-child(5) { animation-delay: 0.62s; }
.wi1-tl-scene.is-active > *:nth-child(6) { animation-delay: 0.76s; }
@keyframes wi1-rise {
  to { opacity: 1; transform: none; }
}

/* -------- Scene furniture (mock CRM widgets) -------- */
.wi1-ui-label {
  font: 700 0.66rem/1 var(--wi1-font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b8b82;
  margin: 0 0 0.6rem;
}

/* An email / list row */
.wi1-ui-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(4, 52, 44, 0.1);
  border-radius: 10px;
  background: #fff;
  margin-bottom: 0.5rem;
}
.wi1-ui-row.is-muted { opacity: 0.5; }
.wi1-ui-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--wi1-green-pale);
  color: var(--wi1-green-800);
  display: grid; place-items: center;
  font: 700 0.72rem/1 var(--wi1-font-sans);
}
.wi1-ui-row-main { min-width: 0; }
.wi1-ui-row-who {
  font-size: 0.87rem; font-weight: 650; color: var(--wi1-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wi1-ui-row-sub {
  font-size: 0.8rem; color: #6f6f67; margin-top: 0.1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Status badges */
.wi1-ui-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font: 700 0.64rem/1 var(--wi1-font-sans);
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.3rem 0.5rem; border-radius: 6px;
  white-space: nowrap;
}
.wi1-ui-badge--reply { background: #ffe9d6; color: #8a4b12; }
.wi1-ui-badge--fyi   { background: var(--wi1-green-pale); color: var(--wi1-green-800); }
.wi1-ui-badge--low   { background: #eceae4; color: #6f6f67; }
.wi1-ui-badge--spam  { background: #f8dede; color: #8c2f2f; }
.wi1-ui-badge--done  { background: #d8f3e7; color: #0b5a46; }

/* The agent bubble */
.wi1-ui-agent {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.6rem;
  align-items: start;
  background: linear-gradient(180deg, #e9f8f2, #e1f5ee);
  border: 1px solid rgba(29, 158, 117, 0.22);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin-top: 0.75rem;
}
.wi1-ui-agent-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--wi1-green-deep);
  color: #fff;
  display: grid; place-items: center;
  font: 800 0.62rem/1 var(--wi1-font-sans);
}
.wi1-ui-agent p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--wi1-green-800);
}
.wi1-ui-agent p + p { margin-top: 0.4rem; }

/* Chip row — the suggested actions */
.wi1-ui-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.7rem;
}
.wi1-ui-chip {
  font: 600 0.78rem/1 var(--wi1-font-sans);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 110, 86, 0.3);
  background: #fff;
  color: var(--wi1-green-deep);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.wi1-ui-chip--primary {
  background: var(--wi1-green-deep);
  border-color: var(--wi1-green-deep);
  color: #fff;
}

/* A draft / body panel */
.wi1-ui-draft {
  border: 1px solid rgba(4, 52, 44, 0.1);
  border-radius: 10px;
  background: #fff;
  padding: 0.85rem 0.9rem;
}
.wi1-ui-draft-head {
  font-size: 0.78rem; color: #6f6f67;
  padding-bottom: 0.5rem; margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(4, 52, 44, 0.08);
}
.wi1-ui-draft p {
  margin: 0 0 0.55rem;
  font-size: 0.85rem; line-height: 1.55; color: #33332f;
}
.wi1-ui-draft p:last-child { margin-bottom: 0; }

/* The caught-it-before-it-sent warning */
.wi1-ui-hold {
  border: 1px solid #e8b48a;
  background: linear-gradient(180deg, #fff6ed, #ffefdf);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}
.wi1-ui-hold-top {
  display: flex; align-items: center; gap: 0.45rem;
  font: 700 0.76rem/1 var(--wi1-font-sans);
  color: #8a4b12; margin-bottom: 0.45rem;
}
.wi1-ui-hold p { margin: 0; font-size: 0.85rem; line-height: 1.5; color: #6b4318; }
.wi1-ui-hold code {
  font-family: var(--wp--preset--font-family--mono);
  font-size: 0.8rem;
  background: rgba(138, 75, 18, 0.1);
  padding: 0.05rem 0.28rem; border-radius: 4px;
}

/* A task card with the AI-help meter */
.wi1-ui-task {
  border: 1px solid rgba(4, 52, 44, 0.1);
  border-radius: 12px; background: #fff;
  padding: 0.85rem 0.9rem;
}
.wi1-ui-task-title {
  font-size: 0.95rem; font-weight: 650; color: var(--wi1-ink); margin: 0 0 0.5rem;
}
.wi1-ui-meter {
  height: 7px; border-radius: 4px; background: #eceae4; overflow: hidden; margin: 0.45rem 0 0.3rem;
}
.wi1-ui-meter i {
  display: block; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--wi1-green-deep), var(--wi1-green-bright));
  width: 0;
}
.wi1-tl-scene.is-active .wi1-ui-meter i {
  animation: wi1-fill 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}
@keyframes wi1-fill { to { width: var(--wi1-meter, 70%); } }
.wi1-ui-meter-label {
  font-size: 0.78rem; color: #6f6f67;
  display: flex; justify-content: space-between; gap: 1rem;
}
.wi1-ui-meter-label b { color: var(--wi1-green-deep); }

/* Activity log lines */
.wi1-ui-log { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.wi1-ui-log li {
  display: grid; grid-template-columns: 16px 1fr;
  gap: 0.5rem; align-items: start;
  font-size: 0.82rem; line-height: 1.5; color: #4a4a44;
  padding: 0.25rem 0;
}
.wi1-ui-log li::before {
  content: "";
  width: 11px; height: 11px; margin-top: 0.3rem;
  border-radius: 50%;
  background: var(--wi1-green-pale);
  border: 2px solid var(--wi1-green-bright);
}
.wi1-ui-log li b { color: var(--wi1-ink); font-weight: 650; }

/* --------------------------------------------------------------------------
   4. Worked examples — "show me, do not tell me"
   -------------------------------------------------------------------------- */
.wi1-ex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.wi1-ex {
  background: #fff;
  border: 1px solid rgba(4, 52, 44, 0.1);
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--wp--preset--shadow--soft, 0 8px 24px rgba(15, 110, 86, 0.08));
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.wi1-ex:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(15, 110, 86, 0.14);
}
.wi1-ex-kicker {
  font: 700 0.66rem/1 var(--wi1-font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wi1-green-deep);
  margin: 0 0 0.55rem;
}
.wi1-ex h3 {
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  color: var(--wi1-ink);
}

/* The two-beat before/after */
.wi1-ex-beat {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(4, 52, 44, 0.07);
}
.wi1-ex-beat-mark {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 0.7rem/1 var(--wi1-font-sans);
  margin-top: 0.12rem;
}
.wi1-ex-beat--before .wi1-ex-beat-mark {
  background: #eceae4; color: #7a7a71;
}
.wi1-ex-beat--after .wi1-ex-beat-mark {
  background: var(--wi1-green-deep); color: #fff;
}
.wi1-ex-beat-label {
  display: block;
  font: 700 0.68rem/1 var(--wi1-font-sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.22rem;
}
.wi1-ex-beat--before .wi1-ex-beat-label { color: #8b8b82; }
.wi1-ex-beat--after .wi1-ex-beat-label { color: var(--wi1-green-deep); }
.wi1-ex-beat p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a4a44;
}
.wi1-ex-beat--before p { color: #6f6f67; }

/* Footer line naming the real mechanism */
.wi1-ex-mech {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #8b8b82;
}
.wi1-ex-mech b { color: var(--wi1-green-deep); font-weight: 650; }

/* --------------------------------------------------------------------------
   5. Product tour rows (screenshot + copy, alternating)
   -------------------------------------------------------------------------- */
.wi1-tour-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}
.wi1-tour-row + .wi1-tour-row { margin-top: 4.5rem; }
.wi1-tour-row.is-flipped .wi1-tour-copy { order: 2; }
.wi1-tour-row.is-flipped .wi1-tour-media { order: 1; }

.wi1-tour-copy h3 {
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  margin: 0.4rem 0 0.75rem;
}
.wi1-tour-copy > p {
  margin: 0;
  color: var(--wp--preset--color--ink-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.wi1-tour-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}
.wi1-tour-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #4a4a44;
}
.wi1-tour-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid var(--wi1-green-bright);
  background: var(--wi1-green-pale);
}
.wi1-tour-list li b { color: var(--wi1-ink); font-weight: 650; }

/* An "agent did this" tag you can hang on a tour row */
.wi1-tour-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  background: var(--wi1-green-pale);
  border: 1px solid rgba(29, 158, 117, 0.25);
  color: var(--wi1-green-800);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font: 600 0.8rem/1.3 var(--wi1-font-sans);
}

/* --------------------------------------------------------------------------
   6. Trust / control band
   -------------------------------------------------------------------------- */
.wi1-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}
.wi1-trust-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(159, 225, 203, 0.2);
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.3rem;
}
.wi1-trust-card h3 {
  font-size: 1.05rem;
  margin: 0.7rem 0 0.45rem;
  color: var(--wp--preset--color--paper);
  letter-spacing: -0.01em;
}
.wi1-trust-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--wp--preset--color--paper-muted);
}
.wi1-trust-ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(29, 158, 117, 0.2);
  border: 1px solid rgba(93, 202, 165, 0.35);
  display: grid; place-items: center;
}
.wi1-trust-ico svg { width: 17px; height: 17px; stroke: var(--wp--preset--color--green-mid); fill: none; stroke-width: 1.8; }

/* --------------------------------------------------------------------------
   7. Responsive + reduced motion
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .wi1-tl { grid-template-columns: 1fr; gap: 1.8rem; }
  .wi1-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wi1-tour-row { gap: 2.2rem; }
}

@media (max-width: 860px) {
  .wi1-ex-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .wi1-tour-row { grid-template-columns: 1fr; gap: 1.6rem; }
  /* On one column, always put the screenshot first */
  .wi1-tour-row.is-flipped .wi1-tour-copy,
  .wi1-tour-row.is-flipped .wi1-tour-media { order: 0; }
  .wi1-tour-row + .wi1-tour-row { margin-top: 3rem; }
  .wi1-tour-copy h3 { font-size: 1.45rem; }

  .wi1-hero-nudge {
    position: static;
    width: auto;
    margin: 0.9rem 0 0;
    animation: wi1-nudge-in 0.6s ease 0.3s both;
  }
  .wi1-hero-shot-wrap { margin-top: 2.2rem; }
  .wi1-hero-shot-wrap .wi1-shot { transform: none; }
  .wi1-hero-stats { gap: 0.5rem 1.4rem; }
}

@media (max-width: 600px) {
  .wi1-trust-grid { grid-template-columns: 1fr; }
  .wi1-tl-app { border-radius: 11px; }
  .wi1-tl-scene { padding: 0.9rem 0.85rem 1.1rem; }
  .wi1-ui-row { grid-template-columns: 26px 1fr; row-gap: 0.4rem; }
  /* Badge drops onto its own line rather than squeezing the subject */
  .wi1-ui-row > .wi1-ui-badge { grid-column: 2; justify-self: start; }
  .wi1-ex { padding: 1.1rem 1.1rem 1.2rem; }
  .wi1-ex h3 { font-size: 1.1rem; }
  .wi1-tl-steps::before { left: 11px; }
  .wi1-shot-url { font-size: 0.65rem; }
}

/* Respect the OS setting: no auto-advance, no drifting, no floating.
   JS also reads this and switches the timeline to a static, all-visible mode. */
@media (prefers-reduced-motion: reduce) {
  .wi1-hero-home::after,
  .wi1-hero-nudge,
  .wi1-pulse {
    animation: none !important;
  }
  .wi1-tl-scene,
  .wi1-tl-scene > *,
  .wi1-ui-meter i {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .wi1-ui-meter i { width: var(--wi1-meter, 70%); }
  .wi1-ex { transition: none; }
  .wi1-ex:hover { transform: none; }
}

/* Static fallback: with no JS (or reduced motion) every scene is shown in
   sequence inside the app frame, so the story still reads top to bottom. */
.wi1-tl.is-static .wi1-tl-scene {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  border-top: 1px solid rgba(4, 52, 44, 0.08);
}
.wi1-tl.is-static .wi1-tl-scene:first-child { border-top: 0; }
.wi1-tl.is-static .wi1-tl-scene > * { opacity: 1; transform: none; }
.wi1-tl.is-static .wi1-tl-bar,
.wi1-tl.is-static .wi1-tl-controls { display: none; }
.wi1-tl.is-static .wi1-tl-note { max-height: none; opacity: 1; }
.wi1-tl.is-static .wi1-tl-step > button { cursor: default; }
.wi1-tl.is-static .wi1-ui-meter i { width: var(--wi1-meter, 70%); animation: none; }

/* Sticky header clearance for the hero -> walkthrough jump link */
#a-day-with-your-teammate { scroll-margin-top: 96px; }

/* ==========================================================================
   8. Inner pages — Features and About (v1.1.1)

   The homepage sections above establish the vocabulary (screenshot frames,
   example cards, the pulse dot). These reuse it rather than inventing a second
   look: .wi1-ex / .wi1-shot / .wi1-pulse are shared, and what follows is only
   the furniture those two pages need on top.
   ========================================================================== */

/* -------- Page hero (Features, About) — the compact dark band -------------- */
.wi1-page-hero { position: relative; overflow: hidden; }
.wi1-page-hero-note {
  margin: 1.6rem auto 0;
  max-width: 44rem;
  text-align: center;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--wp--preset--color--paper-muted);
}

/* Anchor chips under the Features hero */
.wi1-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.2rem;
}
.wi1-jump-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(159, 225, 203, 0.3);
  background: rgba(159, 225, 203, 0.1);
  color: var(--wp--preset--color--paper);
  font: 600 0.86rem/1 var(--wi1-font-sans);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.wi1-jump-chip::after {
  content: "\2193";
  color: var(--wp--preset--color--green-mid);
  font-weight: 700;
}
.wi1-jump-chip:hover {
  background: rgba(159, 225, 203, 0.2);
  border-color: rgba(159, 225, 203, 0.5);
  transform: translateY(-1px);
}
.wi1-jump-chip:focus-visible {
  outline: 2px solid var(--wp--preset--color--green-bright);
  outline-offset: 2px;
}

/* -------- A feature area (one per deep section) ---------------------------- */
.wi1-area-inner > * + * { margin-top: 2.6rem; }

/* Clear the sticky header when a jump chip lands here */
.wi1-area-inner { scroll-margin-top: 96px; }

.wi1-area-head {
  max-width: 720px;
}
.wi1-area-head h2 {
  font-size: 2.1rem;
  letter-spacing: -0.025em;
  margin: 0.45rem 0 0;
}
.wi1-area-head .wi1-lead { margin: 0.8rem 0 0; }

/* Screenshot arrangements: one, two or three slots */
.wi1-area-shots {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}
.wi1-area-shots--1 { max-width: 960px; }
/* The pair is deliberately uneven — a lead shot and a supporting one. Centring
   the short one keeps the leftover height off the bottom, where it reads as a
   gap rather than as breathing room. */
.wi1-area-shots--2 {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
}
.wi1-area-shots--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wi1-area-shots--3 > .is-primary { grid-column: 1 / -1; }

/* -------- Capability grid ------------------------------------------------- */
.wi1-caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem 1.8rem;
}
.wi1-cap {
  padding-top: 0.9rem;
  border-top: 2px solid rgba(29, 158, 117, 0.3);
}
.wi1-cap h4 {
  font-size: 1.02rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin: 0 0 0.4rem;
  color: var(--wi1-ink);
}
.wi1-cap p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a4a44;
}
.wi1-cap p b { color: var(--wi1-green-800); font-weight: 650; }

/* -------- "The agents working in here" strip ------------------------------ */
.wi1-agent-strip {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  background: var(--wi1-green-pale);
  border: 1px solid rgba(29, 158, 117, 0.25);
  color: var(--wi1-green-800);
  font-size: 0.92rem;
  line-height: 1.55;
}
.wi1-agent-strip .wi1-pulse { margin-top: 0.45rem; }

/* On the tinted band the strip needs to separate from the background */
.wi1-area.has-green-pale-background-color .wi1-agent-strip {
  background: #fff;
}

/* -------- Chat tool chips ------------------------------------------------- */
.wi1-chipcloud-note {
  margin: 0 0 0.75rem;
  font: 700 0.68rem/1 var(--wi1-font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wi1-green-deep);
}
.wi1-chipcloud ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wi1-chipcloud li {
  font: 600 0.82rem/1 var(--wi1-font-sans);
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 110, 86, 0.22);
  background: #fff;
  color: var(--wi1-green-deep);
}

/* -------- Example cards inside an area ------------------------------------ */
.wi1-area-ex { margin-top: 2.6rem; }
/* The cards are white, so on a white band they need their border to read */
.wi1-area:not(.has-green-pale-background-color) .wi1-ex {
  background: #fcfcfa;
}

/* -------- "The rest of the box" spec grid --------------------------------- */
.wi1-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}
.wi1-spec {
  background: #fff;
  border: 1px solid rgba(4, 52, 44, 0.1);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.1rem;
}
.wi1-spec h3 {
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
  color: var(--wi1-ink);
}
.wi1-spec p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: #6f6f67;
}

/* -------- Approval-point table (dark band) -------------------------------- */
.wi1-gates {
  border: 1px solid rgba(159, 225, 203, 0.2);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}
.wi1-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 0.7fr);
  gap: 1.2rem;
  padding: 0.95rem 1.2rem;
  border-top: 1px solid rgba(159, 225, 203, 0.14);
  align-items: baseline;
}
.wi1-gate:first-child { border-top: 0; }
.wi1-gate.is-head {
  background: rgba(4, 52, 44, 0.45);
  font: 700 0.66rem/1.3 var(--wi1-font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--green-mid);
}
.wi1-gate-what {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--wp--preset--color--paper);
}
.wi1-gate-how {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--wp--preset--color--paper-muted);
}
.wi1-gate-scope {
  font: 600 0.78rem/1.4 var(--wi1-font-sans);
  color: var(--wp--preset--color--green-mid);
}
.wi1-gates-note {
  margin-top: 1.6rem;
  max-width: 900px;
}
.wi1-gates-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--wp--preset--color--paper-muted);
}
.wi1-gates-note b { color: var(--wp--preset--color--paper); font-weight: 650; }

/* -------- How it works: numbered steps ------------------------------------ */
.wi1-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.wi1-step {
  background: #fff;
  border: 1px solid rgba(4, 52, 44, 0.08);
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.3rem;
}
.wi1-step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--wi1-green-deep);
  color: #fff;
  font: 800 1rem/1 var(--wi1-font-sans);
}
.wi1-step h3 {
  font-size: 1.1rem;
  letter-spacing: -0.012em;
  margin: 0.8rem 0 0.4rem;
  color: var(--wi1-ink);
}
.wi1-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a4a44;
}

/* -------- About: prose block ---------------------------------------------- */
.wi1-prose {
  max-width: 720px;
  margin: 0 auto;
}
.wi1-prose h2 {
  font-size: 1.95rem;
  letter-spacing: -0.025em;
  margin: 0.5rem 0 0;
}
.wi1-prose p { margin: 1.1rem 0 0; }
.wi1-prose p:not(.wi1-eyebrow):not(.wi1-standout) {
  font-size: 1.04rem;
  line-height: 1.7;
  color: #3d3d38;
}
.wi1-standout {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--wi1-green-deep);
  padding-left: 1rem;
  border-left: 3px solid var(--wi1-green-bright);
}

/* -------- About: principles ----------------------------------------------- */
.wi1-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.wi1-principle {
  background: #fff;
  border: 1px solid rgba(4, 52, 44, 0.1);
  border-radius: 16px;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--wp--preset--shadow--soft, 0 8px 24px rgba(15, 110, 86, 0.08));
}
.wi1-principle h3 {
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--wi1-ink);
}
.wi1-principle-line {
  margin: 0.5rem 0 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--wi1-green-deep);
  font-weight: 600;
}
.wi1-principle-practice {
  margin: 0.9rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(4, 52, 44, 0.08);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #5f5e5a;
}
.wi1-principle-practice b { color: var(--wi1-green-deep); font-weight: 650; }

/* -------- About: will / won't -------------------------------------------- */
.wi1-pledge {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 980px;
  margin: 0 auto;
}
.wi1-pledge-col {
  border-radius: 16px;
  padding: 1.3rem 1.4rem 1.5rem;
  border: 1px solid rgba(4, 52, 44, 0.1);
}
.wi1-pledge-col.is-will {
  background: var(--wi1-green-pale);
  border-color: rgba(29, 158, 117, 0.26);
}
.wi1-pledge-col.is-wont { background: #fbfbf8; }
.wi1-pledge-col h3 {
  font-size: 1.1rem;
  margin: 0 0 0.9rem;
  letter-spacing: -0.012em;
}
.wi1-pledge-col.is-will h3 { color: var(--wi1-green-800); }
.wi1-pledge-col ul { margin: 0; padding: 0; list-style: none; }
.wi1-pledge-col li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.6rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #4a4a44;
}
.wi1-pledge-col li:last-child { margin-bottom: 0; }
.wi1-pledge-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 1.1rem;
  text-align: center;
  font-weight: 800;
}
.wi1-pledge-col.is-will li::before {
  content: "\2713";
  color: var(--wi1-green-bright);
}
.wi1-pledge-col.is-wont li::before {
  content: "\00d7";
  color: #b06a6a;
  font-size: 1.1rem;
  line-height: 1.35;
}

/* -------- Inner-page responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .wi1-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wi1-spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wi1-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wi1-area-head h2 { font-size: 1.85rem; }
}

@media (max-width: 860px) {
  .wi1-area-shots--2,
  .wi1-area-shots--3 { grid-template-columns: 1fr; }
  .wi1-area-shots--3 > .is-primary { grid-column: auto; }
  .wi1-area-inner > * + * { margin-top: 2rem; }
  .wi1-area-ex { margin-top: 2rem; }
  .wi1-principles { grid-template-columns: 1fr; }
  .wi1-pledge { grid-template-columns: 1fr; }

  /* The three-column gate row becomes a stacked block with the scope on top */
  .wi1-gate { grid-template-columns: 1fr; gap: 0.35rem; }
  .wi1-gate.is-head { display: none; }
  .wi1-gate-scope { order: -1; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
}

@media (max-width: 600px) {
  .wi1-caps { grid-template-columns: 1fr; gap: 1.1rem; }
  .wi1-spec-grid { grid-template-columns: 1fr; }
  .wi1-steps { grid-template-columns: 1fr; }
  .wi1-area-head h2 { font-size: 1.55rem; }
  .wi1-prose h2 { font-size: 1.5rem; }
  .wi1-standout { font-size: 1.12rem; }
  .wi1-jump { gap: 0.4rem; }
  .wi1-jump-chip { font-size: 0.8rem; padding: 0.42rem 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wi1-jump-chip { transition: none; }
  .wi1-jump-chip:hover { transform: none; }
}
