/* AI agents, Resources and the home page: the interactive parts (assets/agents.js) and the cards around them.
   Only the theme's tokens (style.css :root). Everything is readable without JavaScript: the live states below only
   apply once the script adds .is-live, and nothing moves for visitors who prefer reduced motion. */

/* ---------- Ask Wren buttons: shown only when the chat widget is on the page and ready ---------- */
.ax-ask { display: none; }
.laa-chat-ready .ax-ask { display: grid; gap: 10px; margin: 22px 0 0; }
.ax-ask__k { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.ax-ask__list { display: flex; flex-wrap: wrap; gap: 8px; }
.ax-ask button {
  font: 500 .95rem/1.3 var(--font-body); color: var(--text); background: var(--card); cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.ax-ask button::before { content: "\201C"; color: var(--amber); margin-right: 2px; }
.ax-ask button::after { content: "\201D"; color: var(--amber); margin-left: 1px; }
.ax-ask button:hover { border-color: var(--amber); background: var(--card-2); }

/* ---------- Shared bits ---------- */
.ax-btn, .ax-pause {
  font: 600 .88rem/1 var(--font-body); color: var(--text); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px;
}
.ax-btn:hover, .ax-pause:hover { border-color: var(--muted); }
.ax-pause { font-size: .78rem; padding: 6px 10px; margin-left: auto; }
.ax-note { color: var(--muted); font-size: .9rem; margin: 12px 0 0; }
.ax-example { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; }
.ax-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(28px, 5vw, 64px); align-items: center; }
.ax-split--top { align-items: start; }
@media (max-width: 900px) { .ax-split { grid-template-columns: 1fr; } }

/* Reveal on scroll: only elements the script armed (they were off screen at load). */
.ax-armed { opacity: 0; transform: translateY(16px); }
.ax-armed.is-in { opacity: 1; transform: none; transition: opacity .55s ease var(--ax-delay, 0ms), transform .55s ease var(--ax-delay, 0ms); }

/* ---------- Outcome cards (hub and home) ---------- */
.ax-outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .ax-outcomes { grid-template-columns: 1fr; } }
.ax-outcomes + .ax-stats { margin-top: 24px; }
.ax-outcome {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px); display: grid; gap: 10px; align-content: start; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.ax-outcome::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--amber); opacity: .8; }
.ax-outcome:hover { border-color: #3a4554; }
.ax-outcome .k { font-family: var(--font-mono); font-size: .72rem; color: var(--amber); letter-spacing: .1em; text-transform: uppercase; }
.ax-outcome h3 { margin: 0; font-size: 1.45rem; }
.ax-outcome p { margin: 0; color: var(--muted); }
.ax-outcome ul { margin: 4px 0 0; padding-left: 1.1em; }
.ax-outcome ul li::marker { color: var(--amber); }
.ax-outcome a.more { font-weight: 600; text-decoration: none; margin-top: 4px; }
.ax-outcome a.more::after { content: ""; position: absolute; inset: 0; }   /* the whole card is the link */
.ax-outcome a.more:hover { text-decoration: underline; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .ax-outcome:hover { transform: translateY(-2px); } }

/* Home: four compact outcome links */
.ax-outcomes--compact { gap: 10px; margin-top: 4px; }
@media (max-width: 760px) { .ax-outcomes--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ax-outcomes--compact { grid-template-columns: 1fr; } }
.ax-mini {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; transition: border-color .15s ease;
}
.ax-mini .k { font-family: var(--font-mono); font-weight: 400; font-size: .74rem; color: var(--amber); }
.ax-mini::after { content: "→"; content: "→" / ""; color: var(--amber); margin-left: auto; }
.ax-mini:hover { border-color: var(--amber); color: var(--text); }

/* Sourced numbers */
.ax-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ax-stat { background: var(--panel); padding: 22px 22px 18px; display: grid; gap: 6px; align-content: start; margin: 0; }
.ax-stat__n { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 3rem); line-height: 1; color: var(--amber); }
.ax-stat__t { margin: 0; }
.ax-stat__src { margin: 0; color: var(--muted); font-size: .84rem; }
.ax-stat__src a { color: var(--muted); }

/* ---------- "A night with your AI agent" ---------- */
.ax-feed { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.ax-feed__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.ax-feed__title { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ax-feed__clock { font-family: var(--font-mono); font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }
.ax-feed__list { list-style: none; margin: 0; padding: 8px 16px 14px; display: grid; }
.ax-feed__list li { margin: 0; display: grid; grid-template-columns: 74px 1fr; gap: 4px 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.ax-feed__list li:first-child { border-top: 0; }
.ax-feed__list time { font-family: var(--font-mono); font-size: .82rem; color: var(--muted-on-tint); padding-top: 2px; font-variant-numeric: tabular-nums; }   /* the lighter gray: the newest row is tinted, and its tint fades out after the row stops being newest */
.ax-feed__what { display: grid; gap: 3px; }
.ax-feed__tag { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.ax-feed__tag--phone { color: #7cc4ff; }
.ax-feed__tag--auto { color: var(--online); }
.ax-feed__what p { margin: 0; font-size: .96rem; line-height: 1.45; }
.ax-feed.is-live .ax-feed__list li { opacity: .18; transition: opacity .4s ease, background .6s ease; }
.ax-feed.is-live .ax-feed__list li.is-shown { opacity: 1; }
.ax-feed.is-live .ax-feed__list li.is-new { background: linear-gradient(90deg, rgba(242,169,59,.10), transparent 70%); }

/* ---------- Example phone call ---------- */
.ax-call { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.ax-call__head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.ax-call__who { display: grid; gap: 1px; }
.ax-call__who strong { font-family: var(--font-display); font-size: 1.1rem; }
.ax-call__state, .ax-call__time { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ax-call__time::before { content: "\00B7  "; }
.ax-call__wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-left: 4px; }
.ax-call__wave i { display: block; width: 3px; height: 30%; border-radius: 2px; background: var(--amber); opacity: .55; }
.ax-call.is-speaking .ax-call__wave i { animation: ax-wave 1s ease-in-out infinite; opacity: 1; }
.ax-call__wave i:nth-child(2) { animation-delay: -.8s; } .ax-call__wave i:nth-child(3) { animation-delay: -.6s; }
.ax-call__wave i:nth-child(4) { animation-delay: -.4s; } .ax-call__wave i:nth-child(5) { animation-delay: -.2s; }
.ax-call__wave i:nth-child(6) { animation-delay: -.7s; } .ax-call__wave i:nth-child(7) { animation-delay: -.3s; }
@keyframes ax-wave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
.ax-call__lines { list-style: none; margin: 0; padding: 14px 16px 6px; display: grid; gap: 9px; }
.ax-call__line { margin: 0; padding: 9px 12px; border-radius: 9px; line-height: 1.45; max-width: 92%; font-size: .96rem; }
.ax-call__line b { display: block; font-family: var(--font-mono); font-weight: 400; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.ax-call__line.is-caller { background: #2a3442; justify-self: end; }
.ax-call__line.is-agent { background: var(--card-2); border: 1px solid var(--line); }
.ax-call.is-live .ax-call__line { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.ax-call.is-live .ax-call__line.is-shown { opacity: 1; transform: none; }
.ax-call__summary { margin: 8px 16px 16px; padding: 14px 16px; border: 1px dashed rgba(242,169,59,.5); border-radius: 10px; background: rgba(242,169,59,.06); }
.ax-call__summary :is(h3, .ax-call__summary-title) { font-family: var(--font-mono); font-size: .74rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin: 0 0 8px; }
.ax-call__summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: .92rem; }
.ax-call__summary dt { color: var(--muted); }
.ax-call__summary dd { margin: 0; }
.ax-call.is-live .ax-call__summary { opacity: 0; transition: opacity .5s ease; }
.ax-call.is-live .ax-call__summary.is-shown { opacity: 1; }
/* The same player as a website chat: no sound wave, a person from the team, and system notes. */
.ax-call--chat .ax-call__wave, .ax-call--chat .ax-call__time { display: none; }
.ax-call--chat .ax-call__state::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--online); margin-right: 6px; vertical-align: 1px; }
.ax-call__line.is-staff { background: rgba(242,169,59,.12); border: 1px solid rgba(242,169,59,.35); }
.ax-call__line.is-staff b, .ax-call__line.is-caller b { color: var(--muted-on-tint); }
.ax-call__line.is-sys { justify-self: center; max-width: none; padding: 2px 0; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }

/* ---------- Automation pipeline ---------- */
.ax-pipe { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 0 16px; overflow: hidden; }
.ax-pipe__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card-2); margin-bottom: 18px; }
.ax-pipe__steps { list-style: none; margin: 0; padding: 0 16px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: pipe; }
@media (max-width: 980px) { .ax-pipe__steps { grid-template-columns: 1fr; } }
.ax-pipe__step { position: relative; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); display: grid; gap: 4px; align-content: start; transition: border-color .3s ease, background .3s ease, box-shadow .3s ease; }
.ax-pipe__step::before { counter-increment: pipe; content: "0" counter(pipe); font-family: var(--font-mono); font-size: .72rem; color: var(--amber); letter-spacing: .1em; }
.ax-pipe__step h3 { margin: 0; font-size: 1.05rem; }
.ax-pipe__step p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.ax-pipe.is-live .ax-pipe__step { opacity: .5; }
.ax-pipe.is-live .ax-pipe__step.is-on { opacity: 1; border-color: var(--amber); background: rgba(242,169,59,.08); box-shadow: 0 0 0 3px rgba(242,169,59,.12); }
.ax-pipe.is-live .ax-pipe__step.is-done { opacity: 1; border-color: rgba(92,194,138,.55); }
.ax-pipe.is-live .ax-pipe__step.is-done::after { content: "\2713"; position: absolute; top: 10px; right: 12px; color: var(--online); font-weight: 700; }
.ax-pipe__log { list-style: none; margin: 16px 16px 0; padding: 10px 12px; min-height: 2.4em; border-radius: 8px; background: #0d1116; font-family: var(--font-mono); font-size: .8rem; color: var(--muted); display: grid; gap: 3px; }
.ax-pipe__log li { margin: 0; }
.ax-pipe__t { color: var(--online); }

/* ---------- Calculators ---------- */
.ax-calc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 30px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px clamp(24px, 4vw, 48px); }
@media (max-width: 860px) { .ax-calc { grid-template-columns: 1fr; } }
.ax-calc__fields { display: grid; gap: 16px; align-content: start; margin: 0; padding: 0; border: 0; min-width: 0; }
.ax-calc__fields legend { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; padding: 0; }
.ax-field { display: grid; gap: 6px; }
.ax-field label { font-weight: 500; }
.ax-field .hint { color: var(--muted); font-size: .86rem; margin: 0; }
.ax-field__input { display: flex; align-items: center; gap: 8px; }
.ax-field__input span { color: var(--muted); font-family: var(--font-mono); }
.ax-calc input[type="number"], .ax-calc input[type="text"] {
  width: 100%; max-width: 220px; font: 500 1.05rem/1.2 var(--font-body); color: var(--text); background: var(--panel);
  border: 1px solid var(--field-line); border-radius: 7px; padding: 10px 12px;
}
.ax-calc input:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.ax-calc__result { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; display: grid; gap: 14px; align-content: start; }
.ax-calc__result h3 { margin: 0; font-family: var(--font-mono); font-weight: 400; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.ax-calc__row { display: grid; gap: 2px; }
.ax-calc > * { min-width: 0; }
.ax-calc__row output { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ax-calc__row--big output { color: var(--amber); font-size: clamp(2.3rem, 5vw, 3.2rem); }
.ax-calc__row span { color: var(--muted); font-size: .92rem; }
.ax-calc__bar { height: 8px; border-radius: 99px; background: #0d1116; overflow: hidden; }
.ax-calc__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), #ff8a5c); border-radius: inherit; transition: width .4s ease; }
.ax-calc__math { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 14px; }
.ax-calc:not(.is-live) .ax-calc__result output::after { content: "\2014"; }   /* no script: a dash, and the math below explains it */
.ax-calc.is-live .ax-calc__nojs { display: none; }

/* Hours calculator rows */
.ax-hours__head, .ax-hours__row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 96px 34px; gap: 8px; align-items: center; }
.ax-hours__head { font-size: .8rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: .04em; }
.ax-hours__rows { display: grid; gap: 8px; }
.ax-hours__row input[type="text"] { max-width: none; }
.ax-hours__row input[type="number"] { max-width: 96px; }
.ax-hours__remove { width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.ax-hours__remove:hover { color: var(--danger); border-color: var(--danger); }
.ax-hours__add { justify-self: start; }
@media (max-width: 520px) {
  /* The task name gets its own line; the two number headings stay, over their columns. */
  .ax-hours__head { grid-template-columns: 1fr 1fr 34px; }
  .ax-hours__head span:first-child { display: none; }
  .ax-hours__row { grid-template-columns: 1fr 1fr 34px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .ax-hours__row input[type="text"] { grid-column: 1 / -1; }
  .ax-hours__row input[type="number"] { max-width: none; }
}

/* ---------- Pick your business ---------- */
.ax-biz__pick { font-weight: 600; margin: 0 0 10px; }
.ax-biz__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ax-chip {
  font: 500 .95rem/1.2 var(--font-body); color: var(--text); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; transition: border-color .15s ease, background .15s ease;
}
.ax-chip:hover { border-color: var(--muted); }
.ax-chip[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); font-weight: 600; }
.ax-biz__panels { display: grid; gap: 22px; }
.ax-biz__panel { margin: 0; }
.ax-biz.is-live .ax-biz__panel > h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ax-biz__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .ax-biz__cols { grid-template-columns: 1fr; } }
.ax-biz__col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.ax-biz__col h4 { font-family: var(--font-mono); font-weight: 400; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin: 0 0 10px; }
.ax-biz__col ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.ax-biz__col li { margin: 0; }
.ax-biz__col li::marker { color: var(--amber); }
.ax-biz__panel.is-in .ax-biz__col { animation: ax-pop .4s ease both; }
.ax-biz__panel.is-in .ax-biz__col:nth-child(2) { animation-delay: .06s; }
.ax-biz__panel.is-in .ax-biz__col:nth-child(3) { animation-delay: .12s; }
@keyframes ax-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Resources: guide cards ---------- */
.ax-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 980px) { .ax-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ax-guides { grid-template-columns: 1fr; } }
.ax-guide { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.ax-guide[hidden], .ax-biz__panel[hidden], .ax-hours__remove[hidden] { display: none; }   /* the filter and picker hide with the hidden attribute */
.ax-guide:hover { border-color: #3a4554; }
.ax-guide .k { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.ax-guide h3 { margin: 0; font-size: 1.25rem; }
.ax-guide p { margin: 0; color: var(--muted); font-size: .95rem; }
.ax-guide a { font-weight: 600; text-decoration: none; }
.ax-guide a::after { content: ""; position: absolute; inset: 0; }
.ax-guide .meta { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.ax-guides__status { color: var(--muted); font-size: .9rem; margin: -8px 0 14px; min-height: 1.2em; }

/* ---------- Guide pages ---------- */
.ax-article { max-width: 760px; }
.ax-article h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ax-article h3 { margin-top: 1.3em; }
.ax-article li::marker { color: var(--amber); }
.ax-tldr { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 8px; padding: 16px 20px; margin: 0 0 28px; }
.ax-tldr h2 { margin: 0 0 8px; font-family: var(--font-mono); font-weight: 400; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.ax-tldr ul { margin: 0; }
.ax-checklist { margin-top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); }
.ax-checklist h2 { margin-top: 0; }
/* The guide's PDF-for-email box (laa-tools guides.php). The form inside uses the site's .laa-form styles. */
.laa-guide-box { max-width: 760px; margin-top: 24px; border: 1px solid rgba(242,169,59,.4); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); background: linear-gradient(135deg, rgba(242,169,59,.08), rgba(242,169,59,0) 60%), var(--panel); }
.laa-guide-box h2 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.laa-guide-box > p { color: var(--muted); }
.laa-guide-box .laa-form { margin-top: 14px; }
@media (max-width: 620px) { .laa-guide-box .laa-form { grid-template-columns: 1fr; } }
@media print {
  .laa-guide-box, .svc-more, .site-header, .site-footer, .cta-band, #laa-chat, .ax-pause { display: none !important; }
  /* Everything prints, whether or not it has scrolled into view or a demo is mid-play. */
  .ax-armed, .ax-feed.is-live .ax-feed__list li, .ax-call.is-live .ax-call__line, .ax-call.is-live .ax-call__summary, .ax-pipe.is-live .ax-pipe__step { opacity: 1 !important; transform: none !important; }
}
.ax-sources { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 18px; color: var(--muted); font-size: .9rem; }
.ax-sources h2 { font-size: 1.1rem; margin: 0 0 10px; }
.ax-sources ol { padding-left: 1.3em; }

/* ---------- Home: What We Do cards (the Resources card look, plus motion) ---------- */
.ax-svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .ax-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .ax-svcs { grid-template-columns: 1fr; } }
.ax-svc {
  position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; align-content: start;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}   /* minmax(0, 1fr): a long line can't widen the column past the box, where its overflow: hidden would cut it off */
/* A soft amber light that follows the pointer (agents.js sets --mx/--my), centred at the top right otherwise. */
.ax-svc::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(420px circle at var(--mx, 85%) var(--my, 0%), rgba(242,169,59,.13), transparent 60%); }
.ax-svc:hover, .ax-svc:focus-within { border-color: rgba(242,169,59,.6); box-shadow: 0 18px 44px rgba(0,0,0,.38); }
.ax-svc:hover::before, .ax-svc:focus-within::before { opacity: 1; }
/* With a mouse, pointer-light.js does the lighting: over a box it shows a light clipped to that box, the same size and
   strength as this one (Kendall: "only in that box like we already had it"), and html.laa-lit is set while either of its
   lights shows. This box light then stays off, including on a focused box the mouse has left, so lights never stack.
   A focused box keeps its amber edge; keyboard-only and less-motion visitors still get this light. */
.laa-lit .ax-svc::before { opacity: 0; }
.ax-svc .k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); padding-right: 52px; }
.ax-svc h3 { margin: 0; font-size: 1.32rem; padding-right: 40px; }
.ax-svc p { margin: 0; color: var(--muted); font-size: .97rem; }
.ax-svc .meta { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.ax-svc--lead p, .ax-svc--lead .meta { color: var(--muted-on-tint); }   /* on its amber corner, even under the mouse light */
.ax-svc a { font-weight: 600; text-decoration: none; margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; }   /* a label too long for the box wraps instead of being cut off */
.ax-svc a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }   /* the whole card is the link */
.ax-svc a:focus-visible { outline: none; }
.ax-svc a:focus-visible::after { outline: 2px solid var(--amber); outline-offset: -3px; }   /* inside the box: its overflow: hidden would cut off a ring drawn outside */
.ax-svc:hover a { color: #ffc56e; }
.ax-svc__arrow { display: inline-block; transition: transform .25s ease; }
.ax-svc:hover .ax-svc__arrow, .ax-svc:focus-within .ax-svc__arrow { transform: translateX(5px); }
.ax-svc__icon { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; color: var(--amber); background: rgba(242,169,59,.08); border: 1px solid rgba(242,169,59,.22); transition: transform .3s ease, background .3s ease; }
.ax-svc__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ax-svc__icon .ani--fill { fill: currentColor; stroke: none; }
.ax-svc:hover .ax-svc__icon, .ax-svc:focus-within .ax-svc__icon { background: rgba(242,169,59,.16); }
/* A lead card left alone on the last row stretches across it (7 cards: 3 + 3 + 1, or 2 + 2 + 2 + 1). */
.ax-svc--lead:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
@media (max-width: 980px) { .ax-svc--lead:last-child:nth-child(3n + 1) { grid-column: auto; } .ax-svc--lead:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 620px) { .ax-svc--lead:last-child:nth-child(odd) { grid-column: auto; } }
/* Home "What We Do": a card left alone on the last row stretches across it (SPEC 2.17). */
@media (min-width: 981px) { .ax-svcs > .ax-svc:last-child:nth-child(3n + 2) { grid-column: span 2; } }
/* Ten cards with online payments (2026-11-29, stripe-page-plan.md 6a): the last one alone on its row spans it. */
@media (min-width: 981px) { .ax-svcs > .ax-svc:last-child:nth-child(3n + 1) { grid-column: 1 / -1; } }
@media (min-width: 621px) and (max-width: 980px) { .ax-svcs > .ax-svc:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.ax-svc--lead { background: linear-gradient(135deg, rgba(242,169,59,.12), rgba(242,169,59,0) 65%), var(--card); border-color: rgba(242,169,59,.35); }
@media (prefers-reduced-motion: no-preference) {
  .ax-svc:hover, .ax-svc:focus-within { transform: translateY(-4px); }
  .ax-svc:hover .ax-svc__icon, .ax-svc:focus-within .ax-svc__icon { transform: rotate(-4deg) scale(1.06); }
  .ax-svc:hover .ani, .ax-svc:focus-within .ani { animation: ax-icon-pulse 1.1s ease-in-out infinite; }
  .ax-svc:hover .ani--fill:nth-of-type(2), .ax-svc:focus-within .ani--fill:nth-of-type(2) { animation-delay: .15s; }
  .ax-svc:hover .ani--fill:nth-of-type(3), .ax-svc:focus-within .ani--fill:nth-of-type(3) { animation-delay: .3s; }
  .ax-svc:hover .ani--dash, .ax-svc:focus-within .ani--dash { stroke-dasharray: 3 3; animation: ax-icon-dash .8s linear infinite; }
  .ax-svc:hover .ani--draw, .ax-svc:focus-within .ani--draw { stroke-dasharray: 14; animation: ax-icon-draw 1.4s ease-in-out infinite; }
}
@keyframes ax-icon-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes ax-icon-dash { to { stroke-dashoffset: -12; } }
@keyframes ax-icon-draw { 0% { stroke-dashoffset: 14; } 45%, 100% { stroke-dashoffset: 0; } }

/* ---------- Home: the carousel of examples ---------- */
.ax-car { min-width: 0; display: grid; gap: 12px; }
.ax-car__bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 0; }
.ax-car__bar:empty { display: none; }
.ax-car__tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto; }
.ax-car__tab {
  position: relative; overflow: hidden; font: 500 .82rem/1 var(--font-body); color: var(--muted); background: transparent; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.ax-car__tab:hover { color: var(--text); border-color: var(--muted); }
.ax-car__tab[aria-selected="true"] { color: var(--amber-ink); background: var(--amber); border-color: var(--amber); font-weight: 600; }
/* While it turns by itself, the selected tab fills up to show how long until the next example. */
.ax-car__tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: rgba(26,18,5,.45); }
.ax-car.is-rotating .ax-car__tab[aria-selected="true"]::after { animation: ax-car-progress var(--dur, 10s) linear both; }
@keyframes ax-car-progress { to { width: 100%; } }
.ax-car__pause { font: 600 .74rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); background: transparent; border: 1px solid var(--field-line); border-radius: 6px; padding: 8px 10px; cursor: pointer; margin-left: auto; }
.ax-car__pause:hover { border-color: var(--muted); }
.ax-car__track {
  position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: 14px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.ax-car__track::-webkit-scrollbar { display: none; }
.ax-car__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: flex; }
.ax-car__panel { flex: 1; margin: 0; box-shadow: none; }
.ax-car .chat-demo__body { font-size: .9rem; gap: 9px; }
.ax-car__hint { margin: 0; color: var(--muted); font-size: .85rem; display: none; }
html:not(.js) .ax-car__hint { display: block; }
.ax-car__panel .ax-call__summary-k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin: 0 0 8px; }
.ax-car .ax-call__line { font-size: .9rem; }

/* Automation workflow */
.ax-flow { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ax-flow__head, .ax-sec__head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.ax-flow__title { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: auto; }
.ax-flow__steps { list-style: none; margin: 0; padding: 16px 16px 4px; display: grid; gap: 10px; position: relative; }
.ax-flow__steps::before, .ax-flow__steps::after { content: ""; position: absolute; left: 27px; top: 30px; bottom: 26px; width: 2px; background: var(--line); }
.ax-flow__steps::after { background: linear-gradient(var(--amber), var(--online)); transform-origin: top; }
.ax-flow__step { margin: 0; position: relative; z-index: 1; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px 9px 0; }
.ax-flow__dot { width: 24px; height: 24px; border-radius: 50%; background: var(--panel); border: 2px solid var(--online); display: grid; place-items: center; }
.ax-flow__dot::after { content: "\2713"; font-size: .72rem; font-weight: 700; color: var(--online); }
.ax-flow__what { display: grid; gap: 1px; min-width: 0; }
.ax-flow__what b { font-weight: 600; font-size: .95rem; }
.ax-flow__what span { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.ax-flow__step time { font-family: var(--font-mono); font-size: .74rem; color: var(--online); }
.ax-flow__done { margin: auto 16px 16px; padding: 10px 12px; border-radius: 8px; background: rgba(92,194,138,.1); border: 1px solid rgba(92,194,138,.35); font-size: .88rem; display: flex; align-items: center; gap: 8px; }

/* Security: server check */
.ax-sec { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.ax-sec__live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--online); }
.ax-sec__body { padding: 12px 16px 16px; display: grid; gap: 8px; align-content: start; }
.ax-sec__k { margin: 4px 0 0; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.ax-sec__rules { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ax-sec__rules th { text-align: left; font-weight: 500; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .06em; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--line); }
.ax-sec__rules td { padding: 6px; border-bottom: 1px solid var(--line); }
.ax-sec__rules td:first-child { font-family: var(--font-mono); }
.ax-sec__new td { background: rgba(242,169,59,.07); }
.ax-pill { display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.ax-pill.is-ok { color: var(--online); border-color: rgba(92,194,138,.5); background: rgba(92,194,138,.08); }
.ax-pill.is-no { color: #ff958c; border-color: rgba(255,138,128,.5); background: rgba(255,138,128,.08); }   /* a shade lighter than --danger: 4.8:1 even under the mouse light */
.ax-sec__saved { margin: 0; font-size: .8rem; color: var(--online); }
.ax-sec__find { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .85rem; }
.ax-sec__find li { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ax-flip { display: inline-grid; justify-items: end; }
.ax-flip > * { grid-area: 1 / 1; }
.ax-flip .was { visibility: hidden; }   /* at rest (no script, reduced motion, paused): only the result shows */
.ax-sec__log { list-style: none; margin: 4px 0 0; padding: 8px 10px; border-radius: 8px; background: #0d1116; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); display: grid; gap: 4px; }
.ax-sec__log li { margin: 0; }
.ax-sec__log time { color: var(--online); margin-right: 6px; }

/* Playing: only on the shown slide, only while the carousel animates (agents.js adds .is-anim; .is-static stops it). */
.ax-car.is-anim:not(.is-static) .ax-car__slide.is-active .ax-in { animation: ax-car-in .45s ease both; animation-delay: var(--d, 0s); }
.ax-car.is-anim:not(.is-static) .ax-car__slide.is-active .ax-flow__step { animation: ax-car-step .45s ease both; animation-delay: var(--d, 0s); }
.ax-car.is-anim:not(.is-static) .ax-car__slide.is-active .ax-flow__steps::after { animation: ax-car-fill 5s linear both; animation-delay: .4s; }
.ax-car.is-anim:not(.is-static) .ax-car__slide.is-active .ax-flip .was { animation: ax-car-was .35s ease both; animation-delay: var(--d, 0s); }
.ax-car.is-anim:not(.is-static) .ax-car__slide.is-active .ax-flip .now { animation: ax-car-in .35s ease both; animation-delay: var(--d, 0s); }
.ax-car.is-anim:not(.is-static) .ax-car__slide.is-active .ax-call__wave i { animation: ax-wave 1s ease-in-out infinite; opacity: 1; }
@keyframes ax-car-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ax-car-step { from { opacity: .3; } to { opacity: 1; } }
@keyframes ax-car-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ax-car-was { from { visibility: visible; opacity: 1; } to { visibility: hidden; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ax-car__track { scroll-behavior: auto; }
  .ax-armed { opacity: 1; transform: none; }
  .ax-call__wave i { animation: none !important; }
  .ax-biz__panel.is-in .ax-biz__col { animation: none; }
  .ax-outcome, .ax-calc__bar span { transition: none; }
}
