/* Agent flow: "What an AI agent actually is" diagram on the AI agents page.
   Work appears -> Patch checks your rules -> handles it, or flags you. */
  .explain { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .flow { min-width: 0; }
  @media (min-width: 980px) {
    .explain { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 64px; align-items: center; }
  }
  .explain-copy { min-width: 0; }
  @media (max-width: 979px) {
    .explain--flow { gap: 0; }
    .explain--flow .explain-copy { display: contents; }
    .explain--flow .flow { order: 1; margin-block: 16px 32px; }
    .explain--flow .explain-close { order: 2; }
  }

  .flow {
    --amber: #F2B35B;
    width: 100%; max-width: 400px; margin-inline: auto;
    display: grid; justify-items: center;
    padding: 28px 22px 24px; border: 1px solid var(--line); border-radius: 22px;
    background: radial-gradient(120% 70% at 50% 42%, rgba(78,203,160,0.07), transparent 70%), var(--midnight-soft);
  }
  .flow-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(232,244,240,0.42); margin-bottom: 8px; }
  .flow-card {
    width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--midnight);
    padding: 12px 14px; text-align: center; transition: border-color .35s var(--ease), box-shadow .35s var(--ease), opacity .35s var(--ease);
  }
  .flow-card b { display: block; font-size: 15px; font-weight: 600; color: var(--off-white); line-height: 1.3; }
  .flow-card small { display: block; font-size: 13px; color: rgba(232,244,240,0.55); line-height: 1.35; margin-top: 3px; min-height: 2.7em; }
  .flow-in { width: 100%; }
  .flow-in .flow-card b, .flow-in .flow-card small { transition: opacity .25s ease; }
  .flow-in.swap .flow-card b, .flow-in.swap .flow-card small { opacity: 0; }
  .flow-in.live .flow-card { border-color: rgba(78,203,160,0.45); }

  .flow-wire { width: 100%; display: block; overflow: visible; }
  .flow-wire path { fill: none; stroke-linecap: round; }
  .flow-wire .base { stroke: rgba(78,203,160,0.16); stroke-width: 2; }
  .flow-wire .lit { stroke: var(--spearmint); stroke-width: 2.5; stroke-dasharray: 100 101; stroke-dashoffset: 101; transition: stroke-dashoffset .7s var(--ease); filter: drop-shadow(0 0 4px rgba(78,203,160,0.7)); }
  .flow-wire .lit.you { stroke: var(--amber); filter: drop-shadow(0 0 4px rgba(242,179,91,0.6)); }
  .flow-wire .lit.on { stroke-dashoffset: 0; }
  .wire-in { width: 8px; height: 40px; }
  .wire-out { height: auto; }

  .flow-patch { display: grid; justify-items: center; gap: 6px; }
  .flow-patch svg { width: 92px; height: auto; }
  .flow-think { font-size: 13px; font-weight: 500; color: rgba(232,244,240,0.5); min-height: 1.4em; transition: color .3s ease; }
  .flow-think.on { color: var(--spearmint); }

  .flow-outs { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .flow-outs .flow-card { opacity: 0.45; }
  .flow-outs .flow-card.on { opacity: 1; }
  .flow-outs .ok.on { border-color: rgba(78,203,160,0.6); box-shadow: 0 0 0 4px rgba(78,203,160,0.08); }
  .flow-outs .you.on { border-color: rgba(242,179,91,0.6); box-shadow: 0 0 0 4px rgba(242,179,91,0.08); }
  .flow-outs .ok b::before { content: "✓ "; color: var(--spearmint); }
  .flow-outs .you b::before { content: "! "; color: var(--amber); }
  .flow-caption { margin-top: 16px; font-size: 13px; color: rgba(232,244,240,0.45); text-align: center; text-wrap: balance; }

  @media (prefers-reduced-motion: reduce) {
    .flow-card, .flow-in .flow-card b, .flow-in .flow-card small, .flow-think { transition: none; }
    .flow-wire .lit { transition: none; }
  }

/* How it works: booking call to action under the three steps */
  .steps-cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; margin-top: 52px; }
  .steps-ask { font: inherit; font-size: 15px; color: rgba(232,244,240,0.62); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(78,203,160,0.45); text-underline-offset: 4px; }
  .steps-ask:hover { color: var(--off-white); }
  .steps-ask:focus-visible, .steps-cta .btn:focus-visible { outline: 2px solid var(--spearmint); outline-offset: 3px; }

/* Where we work: Okanagan Valley map */
  .valley { width: 100%; max-width: 340px; margin-inline: auto; display: grid; justify-items: center; gap: 14px; }
  .valley svg { width: 100%; max-height: 520px; height: auto; overflow: visible; }
  .valley .lake { fill: none; stroke: #317762; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
  .valley .lake-glow { fill: none; stroke: #142427; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
  .valley .lake.arm { stroke-width: 9; }
  .valley .lake-glow.arm { stroke-width: 24; }
  .valley .lake.side { stroke-width: 6; stroke: #285F51; }
  .valley .lake-glow.side { stroke-width: 18; }
  .valley .lake-label { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; fill: rgba(232,244,240,0.32); }
  .valley .pin .dot { fill: var(--midnight); stroke: rgba(232,244,240,0.75); stroke-width: 2.5; }
  .valley .pin.home .dot { fill: var(--spearmint); stroke: var(--midnight); stroke-width: 3; }
  .valley .pin.home .ring { fill: none; stroke: var(--spearmint); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: valley-ping 2.4s var(--ease) infinite; }
  .valley .town { font-size: 19px; font-weight: 500; fill: rgba(232,244,240,0.7); }
  .valley .town.home { font-weight: 700; fill: var(--off-white); }
  .valley-cap { display: grid; gap: 2px; text-align: center; font-size: 13px; color: rgba(232,244,240,0.5); }
  .valley-home { font-weight: 600; color: var(--spearmint); letter-spacing: 0.04em; }
  @keyframes valley-ping { 0% { transform: scale(1); opacity: 0.9; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
  @media (max-width: 979px) { .valley svg { max-height: 420px; } }
  @media (prefers-reduced-motion: reduce) { .valley .pin.home .ring { animation: none; opacity: 0.5; } }
