/* DISCOVER LISTRAK CONVERSE - LIVE APIS (apis/index.html). The page's own parts on top of THE ONE DESIGN SYSTEM
   (../assets/discover.css): the live wire in the hero, the call-and-answer loop, the four example cards, the screenshots
   in a browser frame, the lanes and the token, the steps and the import illustration. Colours come from the design
   system's tokens (light and dark); the example bands and the dark loop card are dark in both themes, so their own
   colours read the same either way. Motion is a soft pulse and the loop's rows arriving in turn - none of it runs under
   prefers-reduced-motion. */

/* ── The hero ─────────────────────────────────────────────────────────────────────────── */

.ap-hero-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 300px;
}

.ap-hero-phone .sc-phone { min-height: 680px; }

.ap-wire {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ap-wire::before {
  content: "Calls live to";
  font: 0.72rem var(--dc-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dc-navy-muted);
  margin-right: 4px;
}

.ap-wire li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 247, 255, 0.16);
  background: rgba(245, 247, 255, 0.05);
  color: var(--dc-navy-head);
  font: 600 0.84rem var(--dc-font);
}

.ap-pulse {
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dc-mint);
}

.ap-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--dc-mint);
  opacity: 0;
  animation: ap-ping 2.2s var(--dc-ease) infinite;
}

@keyframes ap-ping {
  0% { transform: scale(0.6); opacity: 0.8; }
  80%, 100% { transform: scale(1.9); opacity: 0; }
}

.ap-narrow-card {
  margin-top: 26px;
  padding: 18px;
  border-radius: var(--dc-radius);
  border: 1px solid rgba(30, 234, 143, 0.35);
  background: rgba(30, 234, 143, 0.06);
}

.ap-narrow-card b {
  display: block;
  color: var(--dc-navy-head);
  font-size: 1.05rem;
}

.ap-narrow-card span {
  display: block;
  margin: 4px 0 14px;
}

/* ── In the moment: the customer, the calls, the answer ───────────────────────────────── */

.ap-loop,
.ap-lanes,
.ap-shot {
  margin: 0;
  min-width: 0;
}

.ap-loop-card {
  border-radius: var(--dc-radius-lg);
  background: linear-gradient(160deg, #16202f 0%, #0e1523 100%);
  border: 1px solid #2c3340;
  box-shadow: var(--dc-shadow);
  overflow: hidden;
  color: #c4cad8;
}

.ap-loop-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid #2c3340;
  font: 0.74rem var(--dc-mono);
  letter-spacing: 0.08em;
  color: #939aad;
}

.ap-loop-head span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1eea8f;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.ap-loop-head span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.ap-loop-rows {
  list-style: none;
  margin: 0;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.ap-row {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.ap-row small {
  font: 0.68rem var(--dc-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #939aad;
}

.ap-say {
  justify-self: start;
  max-width: 92%;
  padding: 9px 14px;
  border-radius: 18px;
  background: #eef1f5;
  color: #1f2430;
  font-size: 0.92rem;
  line-height: 1.4;
}

.ap-row-me { justify-items: end; }

.ap-row-me .ap-say {
  justify-self: end;
  background: #1a73e8;
  color: #ffffff;
}

.ap-row-reply .ap-say { background: #ffffff; font-weight: 600; }

.ap-row-call {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed #3a4558;
  background: rgba(7, 11, 19, 0.55);
}

.ap-row-call code {
  font: 0.84rem var(--dc-mono);
  color: #f5f7ff;
  overflow-wrap: anywhere;
}

.ap-row-call code b,
.ap-call b {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #d9a62e;
  color: #0e1523;
  font: 500 0.72rem var(--dc-mono);
  letter-spacing: 0.06em;
}

.ap-row-call em {
  font-style: normal;
  font: 0.8rem var(--dc-mono);
  color: #1eea8f;
  overflow-wrap: anywhere;
}

/* The rows arrive one after another once the card scrolls into view (discover.js adds dc-in). */
.dc-js .ap-loop .ap-row { opacity: 0; transform: translateY(8px); }

.dc-js .ap-loop.dc-in .ap-row {
  animation: ap-arrive 520ms var(--dc-ease) forwards;
  animation-delay: calc(var(--i, 0) * 420ms + 250ms);
}

@keyframes ap-arrive {
  to { opacity: 1; transform: none; }
}

/* ── The four examples ────────────────────────────────────────────────────────────────── */

.ap-examples {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .ap-examples { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ap-ex {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--dc-radius-lg);
  border: 1px solid var(--dc-line);
  background: var(--dc-card);
  overflow: hidden;
  scroll-margin-top: 80px;
  transition: transform 180ms var(--dc-ease), box-shadow 180ms var(--dc-ease), border-color 180ms var(--dc-ease);
}

.ap-ex:hover {
  border-color: var(--dc-mint-btn);
  box-shadow: var(--dc-shadow);
}

.ap-ex-band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 112px;
  padding: 22px 22px 20px;
  background: var(--ap-band, linear-gradient(135deg, #0e1523 0%, #1d2b45 100%));
  overflow: hidden;
}

.ap-ex-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 16px 16px;
  pointer-events: none;
}

.ap-ex-dog { --ap-band: linear-gradient(135deg, #0e1523 0%, #5b3a12 60%, #c08a17 100%); }
.ap-ex-book { --ap-band: linear-gradient(135deg, #0e1523 0%, #2a1f46 60%, #6a4c93 100%); }
.ap-ex-roof { --ap-band: linear-gradient(135deg, #0e1523 0%, #12385a 60%, #2a8cff 100%); }
.ap-ex-poke { --ap-band: linear-gradient(135deg, #0e1523 0%, #5a1e1b 60%, #c8321e 100%); }

.ap-call {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(7, 11, 19, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font: 600 0.86rem var(--dc-font);
  white-space: nowrap;
}

.ap-then {
  position: relative;
  z-index: 1;
  font: 0.7rem var(--dc-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.ap-ex-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 22px 22px 20px;
}

.ap-ex-body .dc-label { margin: 0; }

.ap-ex-body p { margin: 0; }

.ap-ex-body .dc-h3 {
  font-family: var(--dc-display);
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.2;
}

.ap-try {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--dc-card-2);
  border: 1px solid var(--dc-line);
  font-size: 0.94rem;
}

.ap-try b { color: var(--dc-head); }

.ap-ex .dc-btns { margin-top: auto; padding-top: 6px; gap: 8px; }

.ap-ex .dc-btn { min-height: 42px; padding: 9px 16px; font-size: 0.9rem; }

.ap-codes {
  font-size: 0.8rem;
  color: var(--dc-muted);
}

.ap-codes code,
.ap-lane code,
.ap-import code {
  font-family: var(--dc-mono);
  font-size: 0.92em;
}

.ap-textit-note { max-width: 48rem; margin-top: 24px; }

/* ── Under the hood ───────────────────────────────────────────────────────────────────── */

.ap-how {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  gap: 72px;
}

.ap-how-n {
  margin: 0 0 6px;
  font-family: var(--dc-display);
  font-weight: 600;
  font-size: 3rem;
  line-height: 1;
  color: var(--dc-mint-ink);
}

.ap-how .dc-h3 {
  font-family: var(--dc-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.ap-how-wide {
  display: grid;
  gap: 28px;
}

.ap-shot a.dc-browser {
  display: block;
  text-decoration: none;
  transition: transform 180ms var(--dc-ease), border-color 180ms var(--dc-ease);
}

.ap-shot a.dc-browser:hover { transform: translateY(-3px); border-color: var(--dc-teal); }

.ap-shot .dc-browser-bar { display: flex; }

.ap-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: #ffffff;
}

.ap-shot figcaption {
  margin: 14px auto 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--dc-muted);
}

/* The lanes - one Action moment and every way it can end. */
.ap-lanes-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 16px;
  border-radius: var(--dc-radius-lg);
  border: 1px solid var(--dc-line);
  background-color: var(--dc-card);
  background-image: radial-gradient(var(--dc-line) 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: var(--dc-shadow);
}

.ap-lanes-act { border-color: var(--dc-gold); box-shadow: 0 0 0 3px rgba(192, 138, 23, 0.16); }

.ap-lanes-act span {
  display: block;
  margin-top: 2px;
  font: 0.74rem var(--dc-mono);
  color: var(--dc-muted);
}

.ap-lane-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  width: 100%;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  border-top: 2px solid var(--dc-line);
}

@media (min-width: 560px) {
  .ap-lane-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.ap-lane {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--dc-line);
  border-top: 4px solid var(--ap-lane, var(--dc-teal));
  background: var(--dc-card);
  min-width: 0;
}

.ap-lane code {
  align-self: flex-start;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--dc-card-2);
  color: var(--ap-lane-ink, var(--dc-teal-ink));
  font-weight: 500;
}

.ap-lane span {
  font: 700 0.86rem var(--dc-font);
  color: var(--dc-head);
}

.ap-lane b {
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--dc-body);
}

.ap-lane-ok { --ap-lane: var(--dc-mint-btn); --ap-lane-ink: var(--dc-mint-ink); }
.ap-lane-no { --ap-lane: var(--dc-gold); --ap-lane-ink: var(--dc-gold-ink); }
.ap-lane-wait { --ap-lane: var(--dc-teal); --ap-lane-ink: var(--dc-teal-ink); }
.ap-lane-down { --ap-lane: var(--dc-muted); --ap-lane-ink: var(--dc-muted); }

/* The token a builder types, and the words the customer reads. */
.ap-token {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.ap-token code {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: #0b111d;
  color: #e6edf7;
  font: 0.82rem/1.7 var(--dc-mono);
  overflow-wrap: anywhere;
}

.ap-token code span {
  padding: 1px 4px;
  border-radius: 5px;
  background: rgba(30, 234, 143, 0.14);
  color: #1eea8f;
}

.ap-token-arrow {
  justify-self: start;
  font: 0.7rem var(--dc-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dc-muted);
}

.ap-token-arrow::before { content: "\2193\00a0"; }

.ap-token-out {
  justify-self: start;
  padding: 10px 14px;
  border-radius: 18px;
  background: var(--dc-card-2);
  border: 1px solid var(--dc-line);
  color: var(--dc-head);
  font-weight: 600;
}

/* ── Safe by design ───────────────────────────────────────────────────────────────────── */

.ap-safe .dc-label { margin-bottom: 8px; }

/* ── Bring your own API ───────────────────────────────────────────────────────────────── */

.ap-steps {
  list-style: none;
  counter-reset: ap-step;
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ap-steps li {
  counter-increment: ap-step;
  position: relative;
  padding-left: 46px;
  max-width: 44rem;
}

.ap-steps li::before {
  content: counter(ap-step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--dc-mint-btn);
  color: #0e1523;
  font-weight: 800;
}

.ap-steps b { color: var(--dc-head); }

.ap-import .ap-import-label {
  margin: 0 0 8px;
  font: 0.7rem var(--dc-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dc-muted);
}

.ap-import .dc-code { margin-bottom: 18px; }

.ap-import-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ap-import-list li {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--dc-card-2);
  border: 1px solid var(--dc-line);
  min-width: 0;
}

.ap-import-list b { color: var(--dc-head); }

.ap-import-list code {
  color: var(--dc-teal-ink);
  overflow-wrap: anywhere;
}

.ap-import-list span {
  font-size: 0.84rem;
  color: var(--dc-muted);
}

/* ── Everything within reach: the wide desktop, the related strip, ask before the chat ─ */
/* The section is a dark band in both themes; its three conversations are live stages (assets/showcase.js - [data-stage]),
   drawn by the design system's poster until each one starts. */

.ap-reach-intro { margin-bottom: 40px; }

.ap-reach code {
  font-family: var(--dc-mono);
  font-size: 0.88em;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--dc-navy-head);
  white-space: nowrap;
}

.ap-desk {
  display: grid;
  gap: 28px;
}

@media (min-width: 1000px) {
  .ap-desk-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: end;
  }

  .ap-desk-copy .dc-btns {
    flex-direction: column;
    align-items: stretch;
  }
}

.ap-desk-browser {
  border-color: var(--dc-navy-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.ap-desk-stage .sc-stage-poster {
  min-height: 640px;
  border: 0;
  border-radius: 0;
}

.dc-dark .ap-desk-stage .sc-stage-poster,
.dc-dark .ap-desk-stage .sc-stage-away {
  background: var(--dc-card-2);
  color: var(--dc-body);
}

.dc-dark .ap-desk-stage .sc-stage-poster b,
.dc-dark .ap-desk-stage .sc-stage-away p { color: var(--dc-head); }

.ap-desk-stage .sc-stage-away {
  min-height: 640px;
  border: 0;
  border-radius: 0;
}

.ap-desk-stage .sc-stage-away .dc-btn {
  color: var(--dc-head);
  border-color: var(--dc-line);
}

.ap-reach-pair {
  display: grid;
  gap: 40px;
  margin-top: 72px;
}

@media (min-width: 960px) {
  .ap-reach-pair {
    grid-template-columns: 440px minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }
}

/* The RCS look is a box, never a phone (Kirk 2026-11-06) - its poster is the box's size: showcase.js rcsBox(). */
.ap-phone-stage .sc-stage-poster {
  width: 420px;
  max-width: 100%;
  min-height: 680px;
  margin: 0 auto;
  border-radius: 18px;
}

.ap-consent {
  display: grid;
  gap: 24px;
  margin-top: 40px;
  padding: 26px;
  border-radius: var(--dc-radius-lg);
  border: 1px solid var(--dc-navy-line);
  background: rgba(22, 32, 47, 0.75);
}

.ap-consent-stage {
  width: 100%;
  max-width: 480px;
}

.ap-consent-stage .sc-stage-poster { min-height: 460px; }

/* Two more phones side by side (2026-11-06): Book nerd's sheet behind Do more, and Maison Vale's bubbles - each card its
   words, its live stage, a caption and its AI Concierge door. */
.ap-reach-phones {
  display: grid;
  gap: 56px;
  margin-top: 72px;
}

@media (min-width: 960px) {
  .ap-reach-phones {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: start;
  }
}

.ap-reach-card {
  display: grid;
  gap: 20px;
  align-content: start;
}

.ap-reach-door { margin: 0; text-align: center; }

.ap-reach-doors { margin-top: 56px; }

.dc-dark .ap-reach-codes {
  margin: 18px 0 0;
  color: var(--dc-navy-muted);
}

@media (max-width: 760px) {
  .ap-desk-stage .sc-stage-poster,
  .ap-desk-stage .sc-stage-away,
  .ap-phone-stage .sc-stage-poster,
  .ap-consent-stage .sc-stage-poster {
    width: auto;
    min-height: 260px;
    border-radius: 18px;
  }

  .ap-desk-stage .sc-stage-poster,
  .ap-desk-stage .sc-stage-away { border-radius: 0; }

  .ap-consent { padding: 20px 16px; }
}

/* ── Reduced motion: no pulse, the rows all at once, no lift ──────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ap-pulse::after { animation: none; }

  .dc-js .ap-loop .ap-row,
  .dc-js .ap-loop.dc-in .ap-row {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .ap-ex,
  .ap-shot a.dc-browser { transition: none; }

  .ap-shot a.dc-browser:hover { transform: none; }
}
