/* ============================================================
   CONVERSION AUTOMATION — page composition.

   Teal is this page's signal colour. Motion is reserved for the
   hero thread, the human handoff, and the shared rhythm rail. Every
   value is a token or an rgba() of a palette hex. Loads after
   afterburner.css and never redefines a foundation component.
   ============================================================ */

/* ============================================================
   SHARED — the AI mark inside small labels, headings, bubbles
   ============================================================ */

.ca-eyebrow .rn-ai {
  font-size: 0.92em;
  letter-spacing: 0.08em;
}

/* ============================================================
   §1 HERO — copy left, the live thread right
   ============================================================ */

/* Spec §5 type scale: Display is the homepage H1 only; interior
   pages use the H1 step. */
.ca-hero h1 {
  font-size: var(--h1);
  line-height: 1;
}

.ca-hero .rn-hero__lead {
  margin-bottom: var(--space-4);
}

.ca-hero__lead-2 {
  margin-bottom: var(--space-6);
  font-size: var(--body);
  line-height: 1.65;
}

.ca-hero__actions {
  margin-bottom: var(--space-5);
}

.ca-hero__note {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--text-faint-dark);
  font-size: var(--small);
}

/* ---- The phone ------------------------------------------- */

.ca-thread {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  margin: 0;
}

.ca-phone {
  width: min(320px, 100%);
  flex: 0 0 auto;
  padding: var(--space-3) var(--space-3) var(--space-4);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-frame);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(2, 15, 20, 0.78);
  box-shadow: var(--shadow-lg);
}

.ca-phone__notch {
  display: block;
  width: 76px;
  height: 5px;
  border-radius: var(--radius-pill);
  margin: 0 auto var(--space-3);
  background: rgba(255, 255, 255, 0.14);
}

.ca-phone__bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0 var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--line-dark);
  margin-bottom: var(--space-4);
  color: var(--text-faint-dark);
  font-size: 0.72rem;
}

.ca-phone__bar span:first-child {
  color: var(--text-body-dark);
  font-weight: 500;
}

.ca-thread__feed {
  display: grid;
  gap: var(--space-2);
  padding: 0 var(--space-1);
}

/* ---- Message bubbles (hero thread + handoff vignette) ----- */

.ca-msg {
  max-width: 86%;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-control);
  color: var(--text-body-dark);
  font-size: 0.78rem;
  line-height: 1.45;
}

.ca-msg--them {
  border-bottom-left-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted-dark);
}

.ca-msg--us {
  border-color: rgba(50, 223, 200, 0.25);
  border-bottom-right-radius: 3px;
  margin-left: auto;
  background: rgba(50, 223, 200, 0.1);
}

.ca-msg__who {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-faint-dark);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ca-msg--us .ca-msg__who {
  color: var(--system);
}

.ca-sys {
  margin: var(--space-1) 0;
  color: var(--text-faint-dark);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

.ca-star {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(50, 223, 200, 0.28);
  border-radius: var(--radius-control);
  margin: var(--space-1) 0 0;
  background: rgba(50, 223, 200, 0.08);
  color: var(--text-heading-dark);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-align: center;
  text-transform: uppercase;
}

.ca-star i {
  color: var(--action-hover);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.12em;
}

/* ---- The one live element: nine beats on a 19s cycle ------
   Bubbles hold their space at all times, so nothing reflows.
   Without JavaScript, and under reduced motion, the whole
   thread renders static and complete. */

/* Longhands on purpose: the shorthand would out-rank the per-beat
   animation-delay below and every beat would fire at once. */
.js .ca-beat {
  opacity: 0;
  animation-name: ca-beat;
  animation-duration: 19s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes ca-beat {
  0% { opacity: 0; transform: translateY(6px); }
  3% { opacity: 1; transform: translateY(0); }
  88% { opacity: 1; transform: translateY(0); }
  93% { opacity: 0; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(0); }
}

.ca-beat--1 { animation-delay: 0.4s; }
.ca-beat--2 { animation-delay: 2.2s; }
.ca-beat--3 { animation-delay: 4s; }
.ca-beat--4 { animation-delay: 5.8s; }
.ca-beat--5 { animation-delay: 7.6s; }
.ca-beat--6 { animation-delay: 9.4s; }
.ca-beat--7 { animation-delay: 11.6s; }
.ca-beat--8 { animation-delay: 13.4s; }
.ca-beat--9 { animation-delay: 15.2s; }

/* ---- Beat rail (desktop only) ----------------------------- */

.ca-beats {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-6) 0 0 var(--space-4);
  border-left: 1px solid var(--line-dark);
  margin: 0;
  list-style: none;
}

.ca-beats li {
  position: relative;
  color: var(--text-faint-dark);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ca-beats li::before {
  position: absolute;
  top: 0.3em;
  left: calc(-1 * var(--space-4) - 3px);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(50, 223, 200, 0.45);
  content: "";
}

.ca-beats li:last-child::before {
  background: var(--system);
  box-shadow: 0 0 10px rgba(50, 223, 200, 0.5);
}

/* ============================================================
   §2 THE WEEK — six timing problems, then the two companies
   ============================================================ */

.ca-week {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ca-week__card {
  display: grid;
  align-content: start;
  gap: 0;
  padding: 0;
}

.ca-week__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line-dark);
  background: var(--surface-deep);
}

.ca-week__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}

/* Owner directive: the six week cards respond to the mouse. */
.ca-week__card {
  transition: transform 220ms var(--ease), border-color 220ms var(--ease),
    background-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.ca-week__card:hover {
  border-color: var(--line-dark-strong);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  transform: translateY(-3px);
}

.ca-week__card:hover .ca-week__media img {
  transform: scale(1.03);
}

.ca-week__card:hover .ca-week__n {
  color: var(--action-hover);
}

.ca-week__beat {
  display: grid;
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-5) var(--space-6);
  grid-template-columns: auto minmax(0, 1fr);
}

.ca-week__n {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(50, 223, 200, 0.28);
  border-radius: 50%;
  background: rgba(50, 223, 200, 0.08);
  color: var(--system);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.ca-week__card h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* ---- The split -------------------------------------------- */

.ca-split__head {
  margin-top: var(--space-9);
}

.ca-split {
  align-items: stretch;
}

.ca-side {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: var(--space-6) var(--space-6) var(--space-5);
}

.ca-side::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
}

.ca-side--a::before {
  background: linear-gradient(90deg, rgba(239, 91, 55, 0.55), transparent 78%);
}

.ca-side--b::before {
  background: linear-gradient(90deg, rgba(50, 223, 200, 0.55), transparent 78%);
}

.ca-side--b {
  background:
    radial-gradient(circle at 86% 18%, rgba(50, 223, 200, 0.08), transparent 32%),
    var(--surface-raised);
}

.ca-side__tag {
  margin-bottom: var(--space-2);
  color: var(--text-faint-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ca-side h3 {
  margin-bottom: var(--space-5);
  font-size: 1.45rem;
}

.ca-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ca-list li {
  position: relative;
  padding-left: 1.55rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.ca-list li::before {
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-control);
  content: "";
}

.ca-list--lost li {
  color: var(--text-muted-dark);
}

.ca-list--lost li::before {
  border: 1px solid rgba(239, 91, 55, 0.4);
  background:
    linear-gradient(45deg, transparent 45%, rgba(239, 91, 55, 0.78) 45%, rgba(239, 91, 55, 0.78) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, rgba(239, 91, 55, 0.78) 45%, rgba(239, 91, 55, 0.78) 55%, transparent 55%);
}

.ca-list--won li {
  color: var(--text-body-dark);
}

.ca-list--won li::before {
  border: 1px solid rgba(50, 223, 200, 0.45);
  background: rgba(50, 223, 200, 0.12);
}

.ca-list--won li::after {
  position: absolute;
  top: 0.62em;
  left: 4px;
  width: 6px;
  height: 3px;
  border-bottom: 1.75px solid var(--system);
  border-left: 1.75px solid var(--system);
  content: "";
  transform: rotate(-45deg);
}

/* Stats live on Company A's side only. */
.ca-stats {
  display: grid;
  gap: 0 var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-5);
}

.ca-stat {
  display: grid;
  gap: 0.15rem;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line-dark);
}

.ca-stat b {
  color: var(--text-heading-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.1;
  text-transform: uppercase;
}

.ca-stat span {
  color: var(--text-muted-dark);
  font-size: 0.78rem;
  line-height: 1.42;
}

.ca-stat cite {
  color: var(--text-faint-dark);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ca-side__punch {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  margin: auto 0 0;
  color: var(--system);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ============================================================
   §3 WHAT WE INSTALL — channels, tiles, the log, the handoff
   ============================================================ */

.ca-channels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  margin: 0 0 var(--space-5);
  list-style: none;
}

.ca-channels li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted-dark);
  font-size: 0.8rem;
  font-weight: 500;
}

.ca-channels li::before {
  display: none;
}

.ca-channel__icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--system);
}

/* One system, eight jobs: a single frame with hairline cells, not
   eight floating cards. */
.ca-tiles {
  display: grid;
  overflow: hidden;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-frame);
  background: var(--line-dark);
}

.ca-tile {
  position: relative;
  z-index: 0;
  padding: var(--space-5);
  background:
    linear-gradient(rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.022)),
    var(--surface-canvas);
  transition:
    background-color var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    transform var(--duration) var(--ease);
}

/* Owner override: these product tiles may respond on hover even though they
   are not links; the motion communicates one installed product system. */
.ca-tile:hover {
  z-index: 1;
  background:
    radial-gradient(circle at 18% 12%, rgba(50, 223, 200, 0.08), transparent 42%),
    var(--surface-raised);
  box-shadow:
    inset 0 0 0 1px rgba(50, 223, 200, 0.38),
    0 14px 30px rgba(2, 15, 20, 0.42);
  transform: translateY(-3px);
}

.ca-tile__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(50, 223, 200, 0.22);
  border-radius: var(--radius-control);
  margin-bottom: var(--space-4);
  background: rgba(50, 223, 200, 0.07);
  color: var(--system);
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.ca-tile__icon svg {
  width: 24px;
  height: 24px;
}

.ca-tile:hover .ca-tile__icon {
  box-shadow: 0 0 24px rgba(50, 223, 200, 0.26);
  transform: scale(1.06);
}

.ca-tile h3 {
  margin-bottom: var(--space-2);
  font-size: 1.02rem;
}

.ca-tile p {
  margin-bottom: 0;
  color: var(--text-muted-dark);
  font-size: 0.85rem;
  line-height: 1.55;
}

.ca-tiles__close {
  margin-top: var(--space-5);
}

.ca-tiles__close .rn-body {
  margin-bottom: var(--space-2);
}

.ca-tiles__close .rn-note {
  margin-bottom: 0;
}

.ca-sub__head {
  margin-top: var(--space-9);
}

/* ---- Owner's view: the conversation log ------------------- */

.ca-log {
  overflow: hidden;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-frame);
  background: rgba(2, 15, 20, 0.6);
  box-shadow: var(--shadow-sm);
}

.ca-log__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.ca-log__table th {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line-dark-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-faint-dark);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.ca-log__table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-muted-dark);
  vertical-align: top;
}

.ca-log__table tbody tr:last-child td {
  border-bottom: 0;
}

.ca-log__table td:first-child {
  color: var(--text-body-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ca-log__table b {
  color: var(--system);
  font-weight: 600;
  white-space: nowrap;
}

/* Four owner-view outcomes, one quiet operational sequence. Each row
   receives a two-second stage in the eight-second cycle. */
.ca-log__table tbody tr {
  animation: ca-log-stage 8s var(--ease) infinite;
}

.ca-log__table tbody tr:nth-child(2) { animation-delay: 2s; }
.ca-log__table tbody tr:nth-child(3) { animation-delay: 4s; }
.ca-log__table tbody tr:nth-child(4) { animation-delay: 6s; }

@keyframes ca-log-stage {
  0%, 21% {
    background: rgba(50, 223, 200, 0.09);
    box-shadow: inset 3px 0 0 rgba(50, 223, 200, 0.88), inset 0 0 32px rgba(50, 223, 200, 0.055);
  }
  27%, 100% {
    background: transparent;
    box-shadow: inset 3px 0 0 transparent, inset 0 0 32px transparent;
  }
}

.ca-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-pill);
  color: var(--text-muted-dark);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- The handoff ------------------------------------------ */

.ca-handoff {
  display: grid;
  gap: var(--space-3);
  max-width: 640px;
  padding: var(--space-5);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-frame);
  background: rgba(255, 255, 255, 0.025);
}

.ca-handoff .ca-msg {
  max-width: 82%;
  font-size: 0.85rem;
}

.ca-handoff .ca-msg__who .rn-ai {
  font-size: 0.9em;
  margin-left: 0.25em;
}

.ca-handoff .ca-sys {
  margin: var(--space-2) 0 0;
}

/* Three calm beats on a twelve-second loop. With JavaScript off, every beat
   remains visible; reduced motion below restores the same complete state. */
.js .ca-handoff__beat {
  opacity: 0;
  animation-name: ca-handoff-beat;
  animation-duration: 12s;
  animation-timing-function: var(--ease);
  animation-iteration-count: infinite;
}

.ca-handoff__beat--1 { animation-delay: 0s; }
.ca-handoff__beat--2 { animation-delay: 1.35s; }
.ca-handoff__beat--3 { animation-delay: 2.7s; }

@keyframes ca-handoff-beat {
  0% { opacity: 0; transform: translateY(6px); }
  6% { opacity: 1; transform: translateY(0); }
  82% { opacity: 1; transform: translateY(0); }
  92%, 100% { opacity: 0; transform: translateY(0); }
}

/* ============================================================
   §4 LIVE — three ways in, then the recorded demos
   ============================================================ */

/* The live demo is the page's saturated action field. */
.ca-demo {
  padding-bottom: 0;
}

.ca-demo > .rn-container-wide > .rn-section-head {
  margin-bottom: var(--space-7);
}

.rn-action-band.ca-demo > .rn-container-wide > .rn-section-head > p {
  color: var(--rn-flight-950);
  font-size: 1.1875rem;
}

.rn-action-band.ca-demo .rn-pill {
  border-color: rgba(2, 15, 20, 0.34);
  background: var(--rn-cloud-50);
  color: var(--rn-flight-950);
}

.rn-action-band.ca-demo > .rn-container-wide > .rn-section-head .rn-ai {
  color: var(--rn-flight-950);
}

.rn-action-band .ca-demo__lead {
  max-width: 60ch;
  color: var(--rn-flight-950);
  font-size: var(--lead);
  font-weight: 600;
}

.ca-ways {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ca-way {
  --ca-way-accent: 239, 91, 55;
  --spot: var(--ca-way-accent);
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-5);
  border-color: rgba(var(--ca-way-accent), 0.28);
  background:
    radial-gradient(circle at 84% 8%, rgba(var(--ca-way-accent), 0.13), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    var(--rn-flight-950);
  box-shadow: 0 22px 50px rgba(56, 10, 2, 0.25);
  color-scheme: dark;
}

.ca-way:nth-child(2) { --ca-way-accent: 50, 223, 200; }
.ca-way:nth-child(3) { --ca-way-accent: 244, 238, 224; }

.rn-action-band .ca-way h3 {
  color: var(--text-heading-dark);
}

.rn-action-band .ca-way p {
  color: var(--text-muted-dark);
}

.rn-action-band .ca-way:hover {
  border-color: rgba(var(--ca-way-accent), 0.58);
  background:
    radial-gradient(circle at 84% 8%, rgba(var(--ca-way-accent), 0.2), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    var(--rn-flight-950);
  box-shadow: 0 28px 60px rgba(56, 10, 2, 0.38), 0 0 28px rgba(var(--ca-way-accent), 0.13);
}

.ca-way__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(var(--ca-way-accent), 0.38);
  border-radius: var(--radius-control);
  margin-bottom: var(--space-3);
  background: rgba(var(--ca-way-accent), 0.09);
  color: rgb(var(--ca-way-accent));
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.ca-way__icon svg {
  width: 31px;
  height: 31px;
}

.ca-way:hover .ca-way__icon,
.ca-way:focus-within .ca-way__icon {
  box-shadow: 0 0 26px rgba(var(--ca-way-accent), 0.24);
  transform: translateY(-2px) scale(1.04);
}

.ca-way__n {
  color: var(--system);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ca-way h3 {
  margin-bottom: 0;
  font-size: 1.15rem;
}

.ca-way p {
  margin-bottom: var(--space-3);
  font-size: var(--small);
}

.ca-way .rn-btn {
  justify-self: start;
}

.rn-action-band .ca-way .rn-btn--primary {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--rn-flight-800);
  color: var(--rn-white);
}

.rn-action-band .ca-way .rn-btn--primary:hover {
  border-color: rgba(50, 223, 200, 0.42);
  background: var(--rn-flight-700);
}

/* The phone is the at-rest owner of the orange band. Its inset repeats
   the field colour so Flight 950 can carry the display-scale number. */
.rn-action-band .ca-way:first-child .rn-btn--primary {
  width: 100%;
  justify-content: flex-start;
  padding: var(--space-3) var(--space-4);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--action);
  color: var(--rn-white);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.25vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.rn-action-band .ca-way:first-child .rn-btn--primary:hover {
  background: var(--action-hover);
}

.ca-way__mail {
  max-width: 100%;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.ca-ways__note {
  margin: var(--space-5) 0 0;
}

.rn-action-band .ca-ways__note {
  color: var(--rn-flight-950);
  font-size: 1.1875rem;
  font-weight: 600;
}

/* Recorded calls return to a dark tail; the full-bleed backing keeps the
   orange-to-dark turn crisp while the content stays on the wide grid. */
.ca-recorded {
  position: relative;
  z-index: 0;
  padding: var(--space-1) 0 var(--section-pad-strip);
  margin-top: var(--space-9);
  color-scheme: dark;
}

.ca-recorded::before {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  background:
    radial-gradient(circle at 82% 12%, rgba(50, 223, 200, 0.07), transparent 30%),
    var(--surface-deep);
  content: "";
  transform: translateX(-50%);
}

.rn-action-band .ca-recorded h2,
.rn-action-band .ca-recorded h3 {
  color: var(--text-heading-dark);
}

.rn-action-band .ca-recorded .rn-section-head p,
.rn-action-band .ca-recorded .rn-note {
  color: var(--text-muted-dark);
}

/* ---- Trades ----------------------------------------------- */

.ca-trades {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  margin: 0 0 var(--space-5);
  list-style: none;
}

.ca-trades li {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill);
  color: var(--text-muted-dark);
  font-size: 0.8rem;
  font-weight: 500;
}

.ca-trades li[aria-current="true"] {
  border-color: rgba(50, 223, 200, 0.45);
  background: rgba(50, 223, 200, 0.09);
  color: var(--system);
  font-weight: 600;
}

/* ---- Players: real UI, honestly disabled ------------------ */

.ca-players {
  align-items: start;
}

.ca-player {
  padding: var(--space-5);
}

.ca-player__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.ca-player__head h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.ca-player__time {
  color: var(--text-faint-dark);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.ca-player__row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* 44px now, so the control is already a legal target the day a
   real recording is wired to it. */
.ca-player__btn {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line-dark-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-faint-dark);
  cursor: not-allowed;
  place-items: center;
}

.ca-player__btn svg {
  margin-left: 2px;
}

.ca-player__track {
  height: 4px;
  flex: 1;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
}

.ca-player__state {
  color: var(--text-faint-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ca-player__result {
  margin: var(--space-4) 0 0;
  color: var(--text-muted-dark);
  font-size: var(--small);
  line-height: 1.55;
}

.ca-player__result b {
  color: var(--text-body-dark);
  font-weight: 600;
}

.ca-player__honest {
  margin: var(--space-2) 0 0;
  color: var(--text-faint-dark);
  font-size: 0.72rem;
}

.ca-players__note {
  margin: var(--space-5) 0 0;
}

/* ============================================================
   §5 HOW WE START, AND WHAT IT COSTS
   ============================================================ */

.ca-rhythm {
  position: relative;
  counter-reset: ca-rhythm;
  gap: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line-light);
  border-radius: 0;
  background: transparent;
}

.ca-rhythm__spark {
  position: absolute;
  z-index: 3;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border: 2px solid var(--rn-white);
  border-radius: 50%;
  background: var(--action);
  box-shadow:
    0 0 0 5px rgba(239, 91, 55, 0.12),
    0 0 18px rgba(239, 91, 55, 0.9);
  pointer-events: none;
  animation-name: ca-rhythm-travel;
  animation-duration: 12s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes ca-rhythm-travel {
  0% { left: 0; }
  100% { left: calc(100% - 10px); }
}

.ca-rhythm .rn-timeline__node span {
  display: block;
}

.ca-rhythm .rn-timeline__node {
  --ca-node-color: var(--action);
  --ca-node-hot: var(--action-hover);
  --ca-node-ring: rgba(239, 91, 55, 0.16);
  --ca-node-glow: rgba(239, 91, 55, 0.7);
  min-width: 0;
  min-height: calc(var(--space-12) + var(--space-9));
  padding: calc(var(--space-9) + var(--space-5)) var(--space-4) var(--space-5);
  border-left: 1px solid var(--line-light);
  color: var(--text-muted-light);
  counter-increment: ca-rhythm;
}

.ca-rhythm .rn-timeline__node:first-of-type {
  border-left: 0;
  padding-left: 0;
}

.ca-rhythm .rn-timeline__node::before {
  top: -4px;
  right: auto;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--action);
  box-shadow: 0 0 0 5px rgba(239, 91, 55, 0.08);
  animation-name: ca-rhythm-node;
  animation-duration: 12s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-delay: var(--ca-node-delay, 0s);
}

.ca-rhythm .rn-timeline__node:nth-of-type(1) { --ca-node-delay: 0s; }
.ca-rhythm .rn-timeline__node:nth-of-type(2) { --ca-node-delay: 1.7s; }
.ca-rhythm .rn-timeline__node:nth-of-type(3) { --ca-node-delay: 3.4s; }
.ca-rhythm .rn-timeline__node:nth-of-type(4) { --ca-node-delay: 5.1s; }
.ca-rhythm .rn-timeline__node:nth-of-type(5) { --ca-node-delay: 6.8s; }
.ca-rhythm .rn-timeline__node:nth-of-type(6) { --ca-node-delay: 8.5s; }
.ca-rhythm .rn-timeline__node:nth-of-type(7) { --ca-node-delay: 10.2s; }
.ca-rhythm .rn-timeline__node:nth-of-type(8) { --ca-node-delay: 11.9s; }

@keyframes ca-rhythm-node {
  0%, 11% {
    border-color: var(--rn-white);
    background: var(--ca-node-hot);
    box-shadow: 0 0 0 7px var(--ca-node-ring), 0 0 18px var(--ca-node-glow);
    transform: scale(1.25);
  }
  18%, 100% {
    border-color: transparent;
    background: var(--ca-node-color);
    box-shadow: 0 0 0 5px var(--ca-node-ring);
    transform: scale(1);
  }
}

.ca-rhythm .rn-timeline__node::after {
  top: var(--space-5);
  left: var(--space-4);
  width: auto;
  height: auto;
  border: 0;
  background: none;
  box-shadow: none;
  color: rgba(9, 37, 45, 0.13);
  content: "0" counter(ca-rhythm);
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 7vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.8;
}

.ca-rhythm .rn-timeline__node:first-of-type::after {
  left: 0;
}

.ca-rhythm .rn-timeline__node:last-child::before {
  background: var(--system-ink);
  box-shadow: 0 0 0 5px rgba(7, 118, 110, 0.1);
}

.ca-rhythm .rn-timeline__node:last-child {
  --ca-node-color: var(--system-ink);
  --ca-node-hot: var(--system-strong);
  --ca-node-ring: rgba(7, 118, 110, 0.14);
  --ca-node-glow: rgba(50, 223, 200, 0.65);
}

.ca-rhythm .rn-timeline__node--mark::after {
  color: rgba(192, 60, 29, 0.2);
}

.ca-rhythm .rn-timeline__node--mark:last-child::after {
  color: rgba(7, 118, 110, 0.22);
}

.ca-rhythm .rn-timeline__node strong {
  min-height: 2.8em;
  color: var(--text-heading-light);
  font-size: 0.98rem;
}

.ca-rhythm .rn-timeline__node--mark strong {
  color: var(--rn-orange-650);
}

.ca-rhythm .rn-timeline__node--mark:last-child strong {
  color: var(--system-ink);
}

.ca-price__stance {
  max-width: 46ch;
  margin: 0 0 var(--space-6);
  color: var(--text-heading-light);
  font-size: var(--lead);
  font-weight: 600;
  line-height: 1.5;
}

.ca-compare {
  align-items: start;
}

.ca-compare__card {
  padding: var(--space-6);
  border-color: var(--line-light);
  background: var(--rn-white);
  color: var(--text-body-light);
}

.ca-compare__card h3 {
  color: var(--text-heading-light);
  font-size: 1.1rem;
}

.ca-compare__card .ca-compare__price {
  margin-bottom: var(--space-2);
  color: var(--rn-orange-650);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.1;
}

.ca-compare__card p:last-child {
  margin-bottom: 0;
  color: var(--text-muted-light);
  font-size: var(--small);
}

/* Ours is the one that matters: teal signal line on the white surface. */
.ca-compare__card--ours {
  border-color: var(--line-light);
  background: var(--rn-white);
}

.ca-compare__card--ours::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--system-ink), rgba(7, 118, 110, 0));
  content: "";
}

.ca-compare__card--ours .ca-compare__price {
  color: var(--system-ink);
}

.ca-commit {
  margin-top: var(--space-9);
  align-items: start;
}

.ca-commit h2 {
  margin-bottom: var(--space-5);
}

.ca-start-band .ca-commit .rn-card {
  border-color: var(--line-light);
  background: var(--rn-white);
  color: var(--text-body-light);
}

.ca-start-band .ca-commit .rn-card h3 {
  color: var(--text-heading-light);
}

.ca-start-band .ca-commit .rn-card p {
  color: var(--text-muted-light);
}

.rn-card .ca-commit__fine {
  padding-top: var(--space-4);
  border-top: 1px solid var(--line-light);
  margin: var(--space-4) 0 0;
  color: var(--text-muted-light);
  font-size: 0.78rem;
  line-height: 1.55;
}

/* ============================================================
   §6 FAQ
   ============================================================ */

.ca-faq {
  max-width: 740px;
  margin-right: auto;
  margin-left: auto;
}

.ca-faq__head {
  max-width: 740px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.ca-inline-link {
  border-bottom: 1px solid rgba(50, 223, 200, 0.5);
  color: var(--system);
  transition: border-color var(--duration-fast) var(--ease);
}

.ca-inline-link:hover {
  border-bottom-color: var(--system);
}

/* ============================================================
   §8 CALCULATOR — booked mode, on the light surface
   ============================================================ */

.ca-calc__fields {
  align-content: start;
}

.ca-out {
  display: grid;
  align-content: start;
}

.ca-out__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line-light);
}

.ca-out__k {
  color: var(--text-muted-light);
  font-size: 0.9rem;
}

.ca-out__v {
  color: var(--text-heading-light);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
  line-height: 1;
}

.ca-out__row--big {
  align-items: baseline;
  padding-top: var(--space-4);
  border-bottom: 0;
}

.ca-out__row--big .ca-out__k {
  color: var(--text-heading-light);
  font-weight: 600;
}

.ca-out__row--big .rn-result-card__number {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  text-align: right;
}

.ca-out__disc {
  margin-top: var(--space-4);
}

/* ============================================================
   §9 BOOK — the inline scheduler
   ============================================================ */

.ca-book__frame {
  width: 100%;
  max-width: 1100px;
  margin-top: var(--space-7);
}

.ca-book__embed:not(:empty) {
  overflow: visible;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ca-book__embed cal-inline,
.ca-book__embed iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
  background: transparent;
}

.ca-book__fallback {
  display: flex;
  justify-content: center;
  margin: 0;
}

.ca-book__frame.is-embedded .ca-book__fallback {
  display: none;
}

.ca-book__call {
  margin: var(--space-6) 0 0;
  color: var(--text-muted-dark);
  font-size: var(--small);
}

.ca-book__call a {
  border-bottom: 1px solid rgba(177, 198, 194, 0.4);
  color: var(--text-body-dark);
  font-weight: 600;
  transition: border-color var(--duration-fast) var(--ease);
}

.ca-book__call a:hover {
  border-bottom-color: currentColor;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1050px) {
  /* The rail is a desktop aid; the thread itself carries the story. */
  .ca-beats {
    display: none;
  }

  .ca-thread {
    justify-content: flex-start;
  }

  .ca-week,
  .ca-ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ca-rhythm {
    display: grid;
    border-top: 0;
  }

  .ca-rhythm__spark {
    display: none;
    animation: none;
  }

  .ca-rhythm .rn-timeline__node,
  .ca-rhythm .rn-timeline__node:first-of-type {
    min-height: 0;
    padding: var(--space-5) 0 var(--space-5) calc(var(--space-9) + var(--space-1));
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }

  .ca-rhythm .rn-timeline__node::before,
  .ca-rhythm .rn-timeline__node:last-child::before {
    display: block;
    top: -4px;
    right: auto;
    bottom: auto;
    left: 0;
    width: 8px;
    height: 8px;
    animation: none;
  }

  .ca-rhythm .rn-timeline__node::after,
  .ca-rhythm .rn-timeline__node:first-of-type::after {
    top: var(--space-5);
    left: 0;
    font-size: var(--display);
  }

  .ca-rhythm .rn-timeline__node strong {
    min-height: 0;
  }

  .ca-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .ca-phone {
    width: min(340px, 100%);
  }

  .ca-side {
    padding: var(--space-5);
  }

  /* The log becomes one labelled block per conversation. Roles keep
     the table semantics that the display change would otherwise drop. */
  .ca-log {
    border: 0;
    background: none;
    box-shadow: none;
  }

  .ca-log__table,
  .ca-log__table tbody,
  .ca-log__table tr,
  .ca-log__table td {
    display: block;
    width: 100%;
  }

  .ca-log__table thead {
    display: none;
  }

  .ca-log__table tr {
    padding: var(--space-4);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius-card);
    background-color: rgba(2, 15, 20, 0.6);
  }

  .ca-log__table tr + tr {
    margin-top: var(--space-3);
  }

  .ca-log__table td {
    display: grid;
    gap: 0.15rem;
    padding: 0;
    border-bottom: 0;
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .ca-log__table td + td {
    margin-top: var(--space-3);
  }

  /* The pill is a chip, not a field: it keeps its own width. */
  .ca-log__table .ca-tag {
    justify-self: start;
  }

  .ca-log__table td::before {
    color: var(--text-faint-dark);
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .ca-log__table tbody tr:last-child td {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .ca-week,
  .ca-ways,
  .ca-tiles {
    grid-template-columns: 1fr;
  }

  .ca-way,
  .ca-player,
  .ca-tile {
    padding: var(--space-5);
  }

  .ca-stats {
    grid-template-columns: 1fr;
  }

  .ca-thread {
    justify-content: center;
  }

  .ca-phone {
    width: 100%;
  }

  .ca-handoff {
    padding: var(--space-4);
  }

  .ca-handoff .ca-msg {
    max-width: 92%;
  }

  .ca-log__table td {
    grid-template-columns: 1fr;
  }

  .ca-out__row--big {
    display: grid;
    justify-items: start;
    gap: var(--space-1);
  }

  .ca-out__row--big .rn-result-card__number {
    text-align: left;
  }

  .ca-book__embed:not(:empty) {
    min-height: 640px;
    padding: var(--space-1);
  }
}

/* ============================================================
   REDUCED MOTION — the thread renders static and complete
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  body *,
  body *::before,
  body *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .ca-beat,
  .ca-beat {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .ca-log__table tbody tr {
    background: rgba(50, 223, 200, 0.035);
    box-shadow: inset 3px 0 0 rgba(50, 223, 200, 0.32);
    animation: none;
  }

  .js .ca-handoff__beat,
  .ca-handoff__beat {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .ca-rhythm__spark {
    display: none;
    animation: none;
  }

  .ca-rhythm .rn-timeline__node::before {
    animation: none;
  }
}
