/* ==========================================================================
   demo.css — the floating "Book a demo" launcher and its popup.

   The launcher is bottom-left, deliberately nowhere near the Appearance tab
   on the right edge: the two are different kinds of thing and should not read
   as a pair. It is also the louder of the two on purpose — Appearance is a
   preference, this is what the site exists to get — hence the rim that turns
   continuously, the pulse behind it and the sparks, none of which Appearance
   has.

   TO REMOVE: delete this file, assets/js/demo.js, and the two lines that link
   them. No page markup was changed; the launcher builds its own DOM.
   ========================================================================== */

/* ---------- the launcher ---------- */

.dcta {
  position: fixed;
  bottom: 2.2rem;
  left: 2.2rem;
  z-index: 9001;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  box-shadow: 0 16px 40px -14px rgba(var(--accent-rgb), 0.85);
  transition: transform 0.45s var(--ease), box-shadow 0.35s ease;
}

.dcta:hover { transform: scale(1.08) rotate(-6deg); box-shadow: 0 20px 48px -14px rgba(var(--accent-rgb), 0.95); }
.dcta:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

.dcta__i {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the rim, turning continuously — two palette slots so it is unmistakably
   not the same language as the Appearance glyph */
.dcta::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 60%,
    var(--p4) 76%, var(--accent) 88%, transparent 96%);
  animation: dcta-spin 3.4s linear infinite;
}

@keyframes dcta-spin { to { transform: rotate(360deg); } }

/* and a pulse pushing out behind it */
.dcta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.55);
  animation: dcta-ring 2.8s var(--ease) infinite;
  pointer-events: none;
}

@keyframes dcta-ring {
  0%, 68%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  34%           { box-shadow: 0 0 0 18px rgba(var(--accent-rgb), 0); }
}

/* the label, shown on hover and once on the nudge */
.dcta__t {
  position: absolute;
  left: calc(100% + 12px);
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1px solid var(--accent);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.dcta:hover .dcta__t,
.dcta:focus-visible .dcta__t,
.dcta.is-nudging .dcta__t { opacity: 1; transform: none; }

/* ---------- the sparks ---------- */

.dspark {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 70px;
  height: 70px;
  z-index: 9000;
  pointer-events: none;
}

.dspark i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(var(--accent-rgb), 0.85);
  opacity: 0;
  animation: dspark-go 4s var(--ease) infinite;
  animation-delay: var(--d);
}

.dspark i:nth-child(1) { top: 60%; left: 12%; --d: 0s; }
.dspark i:nth-child(2) { top: 78%; left: 46%; --d: -1.3s; }
.dspark i:nth-child(3) { top: 40%; left: 72%; --d: -2.6s; }
.dspark i:nth-child(4) { top: 84%; left: 24%; --d: -3.4s; }

@keyframes dspark-go {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: translate(26px, -34px) scale(0.1); }
}

/* ---------- the popup ---------- */

.dwrap {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  visibility: hidden;
  pointer-events: none;
}

.dwrap.is-open { visibility: visible; pointer-events: auto; }

.dwrap__veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.dwrap.is-open .dwrap__veil { opacity: 1; }

.dw {
  position: relative;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  /* the row must be allowed to shrink, or the panes cannot scroll and the
     bottom of the form is simply clipped by the overflow:hidden below */
  grid-template-rows: minmax(0, 1fr);
  width: min(940px, 100%);
  max-height: min(88vh, 780px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  box-shadow: 0 40px 100px -40px #000;
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}

.dwrap.is-open .dw { opacity: 1; transform: none; }

@media (max-width: 780px) {
  .dw { grid-template-columns: 1fr; max-height: 92vh; }
  .dw__side { display: none; }
}

/* a laptop in a short window still has to reach the button */
@media (max-height: 620px) {
  .dw { max-height: 94vh; }
  .dw__side { display: none; }
  .dw { grid-template-columns: 1fr; }
}

/* the panel that holds the promise and does not scroll away */
.dw__side {
  position: relative;
  padding: 1.9rem 1.6rem;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line-soft);
  background:
    linear-gradient(160deg, rgba(var(--accent-rgb), 0.16), transparent 55%),
    var(--ink-3);
}

/* Three rings breathing at different speeds, with motes drifting up through
   them. Abstract on purpose: the copy above it is the message, and anything
   figurative here would compete with it. */
.dw__orb { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.dw__orb span {
  position: absolute;
  left: 50%;
  top: 62%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
}

.dw__orb span:nth-child(1) { width: 150px; height: 150px; animation: dw-orb 9s var(--ease) infinite; }
.dw__orb span:nth-child(2) { width: 230px; height: 230px; animation: dw-orb 12s var(--ease) infinite reverse; }
.dw__orb span:nth-child(3) { width: 310px; height: 310px; animation: dw-orb 16s var(--ease) infinite; }

@keyframes dw-orb {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.55; }
  50%      { transform: scale(1.09) rotate(180deg); opacity: 0.95; }
}

.dw__orb i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 3px rgba(var(--accent-rgb), 0.7);
  animation: dw-mote 11s linear infinite;
}

.dw__orb i:nth-of-type(1) { left: 22%; top: 70%; animation-delay: 0s; }
.dw__orb i:nth-of-type(2) { left: 70%; top: 40%; animation-delay: -4s; }
.dw__orb i:nth-of-type(3) { left: 46%; top: 84%; animation-delay: -8s; }

@keyframes dw-mote {
  0%   { transform: translate(0, 0); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(40px, -120px); opacity: 0; }
}

/* the copy has to sit above the field */
.dw__k, .dw__h, .dw__p, .dw__list { position: relative; z-index: 1; }

.dw__k {
  display: inline-block;
  padding: 0.2rem 0.62rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dw__h { margin: 0.75rem 0 0.45rem; font-size: 1.3rem; line-height: 1.2; }
.dw__p { margin: 0 0 1.3rem; font-size: 0.87rem; line-height: 1.6; color: var(--muted); }

.dw__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem;
  font-size: 0.83rem; color: var(--muted-2); position: relative; }
.dw__list li { display: grid; grid-template-columns: 16px 1fr; gap: 0.5rem; }
.dw__list li::before { content: ""; width: 7px; height: 7px; margin-top: 0.42rem;
  margin-left: 4px; border-radius: 50%; background: var(--accent); }

/* min-height:0 is load-bearing. A grid item defaults to min-height:auto,
   which refuses to shrink below its content — so overflow-y:auto never
   engages, the row grows past the popup's max-height, and everything below
   the fold is cut off. That is what was hiding step 3, the calendar. */
.dw__form {
  padding: 1.6rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.dw__x {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}

.dw__x:hover { color: var(--paper); border-color: var(--accent); transform: rotate(90deg); }

/* ---------- the three steps ---------- */

.dstep { display: grid; grid-template-columns: 26px 1fr; gap: 0.9rem;
  padding: 1.05rem 0; border-top: 1px solid var(--line-soft); }
.dstep:first-of-type { border-top: 0; padding-top: 0.2rem; }

.dstep__n {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  color: var(--accent);
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease;
}

.dstep.is-done .dstep__n { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.dstep__b h4 { margin: 0.15rem 0 0.8rem; font-size: 0.98rem; }

/* ---------- fields ----------
   Written out here rather than borrowed from book.css: that file is linked on
   book.html only, and this popup appears on every page EXCEPT book.html — so
   every class it took from there resolved to nothing. Self-contained now. */

.df__f { margin-bottom: 0.8rem; position: relative; }
.df__f:last-child { margin-bottom: 0; }

.df__l {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.71rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
  transition: color 0.25s ease;
}

.df__f:focus-within .df__l { color: var(--accent); }
.df__l em { font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; }

.df__i, .df__s {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(var(--ink-rgb), 0.5);
  color: var(--paper);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.df__i::placeholder { color: var(--muted-3); }

.df__i:focus, .df__s:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(var(--ink-rgb), 0.75);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.df__row  { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.df__row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }

@media (max-width: 520px) { .df__row, .df__row3 { grid-template-columns: 1fr; } }

.df__sw { position: relative; display: block; }

.df__sw::after {
  content: "";
  position: absolute;
  right: 0.8rem;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1.6px solid var(--muted-2);
  border-bottom: 1.6px solid var(--muted-2);
  transform: rotate(45deg);
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.df__sw:focus-within::after { border-color: var(--accent); }
.df__s { appearance: none; -webkit-appearance: none; padding-right: 2rem; cursor: pointer; }

.df__opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.df__o {
  padding: 0.46rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.df__o:hover { color: var(--c, var(--accent)); border-color: var(--c, var(--accent)); }
.df__o.is-on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #0b0d11; }
.df__o:focus-visible { outline: 2px solid var(--deco); outline-offset: 2px; }

.df__n { margin: 0.5rem 0 0; font-size: 0.76rem; line-height: 1.5; color: var(--muted-3); }

.df__live {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.12rem 0.48rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.65rem;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease;
}

.df__live.is-soon {
  background: rgba(var(--p5-rgb), 0.16);
  color: var(--p5);
  box-shadow: inset 0 0 0 1px rgba(var(--p5-rgb), 0.5);
}

/* ---------- the calendar ---------- */

.dw__cal {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(var(--ink-rgb), 0.35);
}

.df__ch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.88rem;
}

.df__cnav { display: flex; gap: 0.3rem; }

.df__nb {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--line-soft);
  background: none;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.df__nb:hover { color: var(--paper); border-color: var(--accent); }

.df__g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.df__wd { text-align: center; font-size: 0.64rem; color: var(--muted-3); padding-bottom: 0.2rem; }

.df__d {
  aspect-ratio: 1;
  border-radius: 7px;
  border: 1px solid transparent;
  background: rgba(var(--ink-rgb), 0.5);
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.df__d--free { border-color: rgba(var(--accent-rgb), 0.25); }
.df__d:hover:not([disabled]) { border-color: var(--accent); color: var(--paper); }

.df__d.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  animation: df-day 2.8s var(--ease) infinite;
}

@keyframes df-day {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.45); }
  55%      { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0); }
}

.df__d[disabled] { opacity: 0.2; cursor: default; background: none; }

.df__t { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; margin-top: 0.65rem; }

.df__ts {
  padding: 0.48rem 0.2rem;
  border-radius: 7px;
  border: 1px solid var(--line-soft);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  animation: df-slot 0.34s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 0.04s);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

@keyframes df-slot { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.df__ts:hover { color: var(--paper); border-color: var(--accent); }
.df__ts.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }

.df__zone { margin: 0.6rem 0 0; font-size: 0.74rem; color: var(--muted-3); }

/* the running summary */
.df__sum {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.05);
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted-2);
}

.df__sum b { color: var(--paper); }

.df__err {
  margin: 0.7rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--p4-rgb), 0.45);
  background: rgba(var(--p4-rgb), 0.09);
  font-size: 0.82rem;
  color: var(--p4);
}

.df__err a { color: inherit; text-decoration: underline; }

/* off-screen, no label — a bot fills it, a person never sees it */
.df__pot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dw__foot {
  position: sticky;
  bottom: 0;
  margin: 1rem -1.6rem -1.6rem;
  padding: 1rem 1.6rem 1.3rem;
  background: linear-gradient(180deg, transparent, var(--ink-2) 34%);
}

/* auto-width and centred rather than a full-width slab — the button should
   read as the end of a short form, not as a banner across it */
.dw__foot { display: flex; flex-direction: column; align-items: center; }

.dw__go {
  width: auto;
  min-width: 0;
  gap: 0.5rem;
  padding: 0.62rem 1.5rem;
  border-radius: 999px;
  font-size: 0.87rem;
  box-shadow: 0 8px 22px -10px rgba(var(--accent-rgb), 0.8);
  transition: transform 0.35s var(--ease), box-shadow 0.3s ease;
}

.dw__go:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(var(--accent-rgb), 0.95);
}

.dw__go i {
  display: inline-block;
  font-style: normal;
  transition: transform 0.4s var(--ease);
}

.dw__go:hover i { transform: translateX(4px); }
.dw__go[disabled] { transform: none; opacity: 0.7; }
.dw__note { margin: 0.55rem 0 0; font-size: 0.75rem; color: var(--muted-3); text-align: center; }
.dw__note a { color: var(--accent-ink); text-decoration: underline; }

/* ---------- done ---------- */

.dw__done { grid-column: 1 / -1; text-align: center; padding: 3rem 1.6rem; }
.dw__done h3 { margin: 1rem 0 0.5rem; font-size: 1.35rem; }
.dw__done p { margin: 0 0 1.3rem; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.dw__tick {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid var(--accent);
  color: var(--accent);
  animation: dw-pop 0.5s var(--ease);
}

@keyframes dw-pop { from { transform: scale(0.5); opacity: 0; } to { transform: none; opacity: 1; } }

body.dw-open { overflow: hidden; }

@media (max-width: 640px) {
  .dcta { bottom: 1.4rem; left: 1.4rem; width: 56px; height: 56px; }
  .dspark { bottom: 1.2rem; left: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .dcta::before, .dcta::after, .dspark i, .dw__orb span, .dw__orb i, .dw__tick,
  .df__d.is-on, .df__ts { animation: none; }
  .dspark { display: none; }
  .dw, .dwrap__veil { transition: none; }
  .dcta:hover { transform: none; }
  .dw__x:hover, .dw__go:hover { transform: none; }
}

/* ==========================================================================
   Experience Intellicamp — the self-serve path.

   Opposite corner from the demo, labelled at rest. The demo circle can afford
   to be a mystery because booking a call is a small ask; this one asks someone
   to go and use software, so it says what it is.

   Both now carry the theme accent, so the movement is what separates them:
   the demo circle pulses outward and spins a rim, this one breathes.
   ========================================================================== */

.xcta {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  /* clear of .totop, which is 46px tall and pinned to the same corner */
  bottom: calc(clamp(1rem, 3vw, 2rem) + 46px + 0.7rem);
  z-index: 9001;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.35rem 0.85rem 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  background: linear-gradient(140deg,
    rgba(var(--accent-rgb), 0.2), rgba(var(--ink-rgb), 0.94));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--paper);
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
  animation: xcta-breathe 3.4s var(--ease) infinite;
}

.xcta:hover { transform: translateY(-4px); border-color: var(--accent); }
.xcta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* the glow swells and settles rather than travelling */
@keyframes xcta-breathe {
  0%, 100% {
    box-shadow: 0 14px 34px -18px rgba(var(--accent-rgb), 0.75),
                0 0 0 0 rgba(var(--accent-rgb), 0);
  }
  50% {
    box-shadow: 0 22px 54px -18px rgba(var(--accent-rgb), 1),
                0 0 26px 1px rgba(var(--accent-rgb), 0.3);
  }
}

/* a sheen on a slower beat, so the two never land together */
.xcta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%,
    rgba(var(--accent-rgb), 0.3) 50%, transparent 62%);
  background-size: 250% 100%;
  animation: xcta-sheen 4.6s var(--ease) infinite;
}

@keyframes xcta-sheen {
  0%, 62% { background-position: 150% 0; }
  100%    { background-position: -150% 0; }
}

.xcta__t { display: block; line-height: 1.25; }

/* up from 0.9rem — the pill is the second-loudest thing on the page and was
   reading smaller than the nav */
.xcta__w {
  display: flex;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

/* every letter is an outline with a coloured twin behind it, exactly as the
   footer wordmark is built — the colour travels along the word on a loop */
.xl { position: relative; display: inline-block; white-space: pre; }

/* The hollow construction of the footer wordmark, kept — but the stroke is
   brighter here than it is there, because at 1.08rem a faint outline reads as
   dark rather than as an outline. */
.xl__o {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(var(--line-rgb), 0.75);
}

/* The twin never leaves. It rests at 34% so the word always carries colour,
   and the wave brightens it to full as it passes — which is what stops the
   letters reading as black in the gap between waves. */
.xl__f {
  position: absolute;
  inset: 0;
  font-style: normal;
  -webkit-text-stroke: 0;
  color: var(--c, var(--accent));
  opacity: 0.34;
  text-shadow: 0 0 14px rgba(var(--c-rgb, var(--accent-rgb)), 0.55);
  /* Back to 3.2s: the pause between waves was never the problem, the letters
     going dark in it was. With a solid base word there is nothing to wait
     through — the colour simply crosses and lifts away. */
  animation: xl-wave 3.2s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.09s);
}

@keyframes xl-wave {
  0%, 62%, 100% { opacity: 0.34; transform: translateY(0); }
  20%           { opacity: 1; transform: translateY(-3px); }
  40%           { opacity: 0.55; transform: translateY(0); }
}

/* All three lines share one grid cell, so the box measures the longest of
   them and the pill cannot change width as they rotate — which is the one
   real cost of a rotating caption in a fixed corner. */
.xcta__cap {
  display: grid;
  margin-top: 0.22rem;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-2);
  white-space: nowrap;
}

.xcta__cap span {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.5s var(--ease);
}

.xcta__cap span.is-on { opacity: 1; transform: none; }

.xcta__i {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.22);
  border: 1px solid rgba(var(--accent-rgb), 0.6);
  color: var(--accent);
  animation: xcta-iris 3.4s var(--ease) infinite;
}

/* the glyph breathes in step with the halo */
@keyframes xcta-iris {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.xcta__i svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the popup wears the same accent — the two are told apart by their content */
.dwrap.is-trial .dw { border-color: rgba(var(--accent-rgb), 0.5); }

.dw__side--x {
  background:
    linear-gradient(160deg, rgba(var(--accent-rgb), 0.18), transparent 55%),
    var(--ink-3);
}

/* two launchers on a phone would take the whole foot of the screen */
@media (max-width: 700px) {
  .xcta {
    right: 1rem;
    bottom: calc(1rem + 46px + 0.55rem);
    padding: 0.6rem 0.9rem 0.6rem 0.6rem;
    font-size: 0.82rem;
  }
  .xcta__w { font-size: 0.95rem; }
  .xcta__cap { display: none; }
  .xcta__i { width: 34px; height: 34px; }
  .xcta__i svg { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .xcta, .xcta__i, .xcta::after, .xl__f { animation: none; }
  .xl__f { opacity: 0.34; }
  .xcta::after { opacity: 0; }
  .xcta { box-shadow: 0 14px 34px -18px rgba(var(--accent-rgb), 0.75); }
  .xcta:hover { transform: none; }
}
