/* The marketing site's own layer.
 *
 * Everything here sits on the tokens platform/base.html defines — no colour is
 * spelled out except inside the branding mockup, where cream and terracotta
 * are CONTENT (a picture of a customer's site), not UI. Both themes therefore
 * work without a line of theme-specific CSS in this file.
 *
 * Two disciplines, inherited from the rest of the codebase:
 *   - #ff3b30 is never a surface under text; filled controls use
 *     var(--live-solid), which base.html keeps at AA against white.
 *   - every animation has a reduced-motion story. JS-driven motion checks the
 *     media query before starting; CSS motion is switched off wholesale in the
 *     block at the end of this file, and every mockup's resting markup is its
 *     most informative frame, so a page with no motion still explains itself.
 */

/* ── Layout ─────────────────────────────────────────────────────────────── */

.mwrap { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem 4rem; }

.msec { padding-top: 6.5rem; }
.msec--tight { padding-top: 4rem; }

.eyebrow {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--live); margin: 0 0 0.9rem;
}

.msec h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.08;
  letter-spacing: -0.035em; font-weight: 700; margin: 0 0 1rem;
  text-wrap: balance; max-width: 24ch;
}
.msec .sub {
  color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 52ch; margin: 0 0 2.5rem;
}
.msec .sub a { color: var(--ink); text-decoration-color: var(--dim); }

/* Two columns that become one; `--flip` swaps which side the visual sits on,
   so a long features page alternates instead of listing. */
.frow {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem;
  align-items: center; margin-top: 3rem;
}
/* A grid item's automatic minimum size is its MIN-CONTENT width, and the domain
   mockup's address is `white-space: nowrap` — so the column could not shrink
   below a full URL and every .frow page (landing, features, examples) scrolled
   sideways on a phone, ~143px past the viewport. The ellipsis was already
   there; without this it never got the chance to apply. */
.frow > * { min-width: 0; }
.md__bar, .md__url { min-width: 0; }
.frow > .frow__copy h3 {
  font-size: 1.35rem; letter-spacing: -0.025em; margin: 0 0 0.6rem;
}
.frow > .frow__copy p { color: var(--muted); margin: 0 0 1rem; max-width: 46ch; }
.frow > .frow__copy p strong { color: var(--ink); font-weight: 600; }
.frow > .frow__copy ul { color: var(--muted); margin: 0; padding-left: 1.1rem; }
.frow > .frow__copy li { margin: 0.35rem 0; }
.frow--flip .frow__copy { order: 2; }
.frow--flip .frow__viz { order: 1; }
/* For a tall visual (a full-page screenshot), centring the copy against it
   strands the text in space — pin both to the top instead. */
.frow--top { align-items: start; }
.frow--top .frow__copy { padding-top: 1rem; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem;
  align-items: center; padding-top: 2.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem); line-height: 1.0;
  letter-spacing: -0.045em; font-weight: 700;
  margin: 1.6rem 0 1.25rem; max-width: 14ch; text-wrap: balance;
}
.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted);
  max-width: 44ch; margin: 0 0 2.25rem;
}

.live-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--live-dim); color: var(--live);
  border-radius: 999px; padding: 0.3rem 0.8rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em;
}
.live-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--live); box-shadow: 0 0 0 3px var(--live-dim);
}

.cta { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin: 0; }
.cta small { color: var(--dim); font-size: 0.85rem; flex-basis: 100%; }

/* ── Code, copyable ─────────────────────────────────────────────────────── */

.codewrap { position: relative; margin-top: 0.5rem; }
.code {
  background: var(--sunken); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.15rem 1.3rem; overflow-x: auto; margin: 0;
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.7;
  color: var(--ink);
}
.code .tag { color: var(--dim); }
.code .attr { color: var(--live); }
.code .com { color: var(--dim); }
.copybtn {
  position: absolute; top: 0.6rem; right: 0.6rem;
  font: inherit; font-size: 0.78rem; font-weight: 600;
  color: var(--muted); background: var(--raised); border: 1px solid var(--line);
  border-radius: 7px; padding: 0.3rem 0.7rem; cursor: pointer;
}
.copybtn:hover { color: var(--ink); border-color: var(--dim); }
.copybtn:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }

/* ── Card grids ─────────────────────────────────────────────────────────── */

.gridcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.25rem; }
.gridcards--3 { grid-template-columns: repeat(3, 1fr); }
.gridcards--2 { grid-template-columns: repeat(2, 1fr); }
.gcard {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.25rem;
}
.gcard h3 { font-size: 0.98rem; margin: 0 0 0.4rem; letter-spacing: -0.01em; }
.gcard p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.gcard .gcard__glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 8px;
  background: var(--live-dim); color: var(--live); margin-bottom: 0.8rem;
}
.gcard .gcard__glyph svg { width: 1.05rem; height: 1.05rem; }

.rule-line {
  border-left: 3px solid var(--live); padding: 0.2rem 0 0.2rem 1.1rem;
  color: var(--muted); max-width: 56ch; margin: 2rem 0 0;
}
.rule-line strong { color: var(--ink); }

/* ── Mockup shells ──────────────────────────────────────────────────────── */

.shell { position: relative; }
/* The glow below is inset -10% horizontally on purpose — it should bleed past
   the mockup — but on a phone the mockup IS the page width, so the bleed became
   10px of horizontal page scroll. `clip` rather than `hidden`: hidden would make
   this a scroll container and force the other axis to auto, which breaks any
   position: sticky inside it. */
.mwrap { overflow-x: clip; }
.shell::before {
  content: ""; position: absolute; inset: -14% -10%;
  background: radial-gradient(closest-side, var(--live-dim), transparent 72%);
  z-index: 0; pointer-events: none;
}
.shell > * { position: relative; z-index: 1; }

.mock {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.5);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Mockup A — the ask widget ──────────────────────────────────────────── */

.mw { padding: 1.5rem; max-width: 24rem; }
.mw__title { font-weight: 700; letter-spacing: -0.02em; font-size: 1.1rem; margin: 0 0 0.25rem; }
.mw__lede { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.25rem; }

.mw__stage {
  display: flex; align-items: center; gap: 0.9rem;
  background: var(--raised-2); border: 1px solid var(--line);
  border-radius: 11px; padding: 0.85rem 1rem; min-height: 4.1rem;
}
.mw__rec {
  flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--live-solid); display: flex; align-items: center; justify-content: center;
}
.mw__rec i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #fff; display: block; }
.is-rec .mw__rec i { border-radius: 2px; }              /* recording: the dot squares into "stop" */
.is-rec .mw__rec { animation: mw-pulse 1.6s ease-out infinite; }
@keyframes mw-pulse {
  0%   { box-shadow: 0 0 0 0 var(--live-dim); }
  70%  { box-shadow: 0 0 0 11px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.mw__wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 2rem; }
.mw__wave i {
  flex: 1; height: 100%; border-radius: 2px; background: var(--live);
  transform: scaleY(var(--h, 0.4)); transform-origin: center;
}
.is-idle .mw__wave i { transform: scaleY(0.12); opacity: 0.45; }
.is-rec .mw__wave i { animation: mw-bounce 0.8s ease-in-out infinite alternate; }
@keyframes mw-bounce { from { transform: scaleY(0.12); } to { transform: scaleY(var(--h, 0.4)); } }
/* Five height profiles, distributed so neighbours differ. Delays desynchronise
   the columns; together they read as speech rather than as a metronome. */
.mw__wave i:nth-child(5n + 1) { --h: 0.35; animation-delay: -0.10s; }
.mw__wave i:nth-child(5n + 2) { --h: 0.85; animation-delay: -0.45s; }
.mw__wave i:nth-child(5n + 3) { --h: 0.55; animation-delay: -0.24s; }
.mw__wave i:nth-child(5n + 4) { --h: 1.0;  animation-delay: -0.62s; }
.mw__wave i:nth-child(5n + 5) { --h: 0.45; animation-delay: -0.33s; }
.mw__wave i:nth-child(3n + 2) { animation-duration: 0.66s; }

.mw__time { flex: 0 0 auto; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.is-rec .mw__time { color: var(--live); }

.mw__foot { display: flex; align-items: center; gap: 0.9rem; margin-top: 1.1rem; }
.mw__send {
  background: var(--live-solid); color: #fff; font-weight: 600; font-size: 0.85rem;
  border-radius: 9px; padding: 0.55rem 1rem;
}
.is-idle .mw__send, .is-rec .mw__send { opacity: 0.45; }
.mw__hint { color: var(--dim); font-size: 0.78rem; }

/* The thanks state sits over the stage and fades in when the cycle sends. */
.mw { position: relative; }
.mw__sent {
  position: absolute; inset: 0; border-radius: 14px;
  background: var(--raised); display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.is-sent .mw__sent { opacity: 1; }
.mw__check {
  width: 1.4rem; height: 1.4rem; border-radius: 50%; flex: 0 0 auto;
  background: var(--ok); color: var(--bg); display: inline-flex;
  align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700;
}

/* ── Mockup B — the episode player ──────────────────────────────────────── */

.mp { display: flex; gap: 1.1rem; padding: 1.25rem; max-width: 30rem; --p: 65; }
.mp__art {
  flex: 0 0 auto; width: 5.2rem; height: 5.2rem; border-radius: 10px;
  background: linear-gradient(135deg, var(--raised-2), var(--sunken));
  border: 1px solid var(--line); position: relative;
  display: flex; align-items: center; justify-content: center;
}
.mp__art span {
  font-weight: 700; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--dim);
}
.mp__art i {
  position: absolute; right: 0.4rem; bottom: 0.4rem;
  width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--live-solid);
}
.mp__art i::before {
  content: ""; position: absolute; left: 55%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 0.22rem 0 0.22rem 0.36rem;
  border-color: transparent transparent transparent #fff;
}
.mp__body { flex: 1; min-width: 0; }
.mp__title {
  font-weight: 600; font-size: 0.95rem; letter-spacing: -0.015em;
  line-height: 1.35; margin: 0 0 0.8rem;
}

/* The split scrub bar: the question's minutes and the answer's minutes are
   different colours, so the shape of the conversation is visible before you
   press anything. The played portion is a full-strength overlay clipped at
   --p percent; the unplayed remainder is the same gradient, knocked back. */
.mp__bar { position: relative; height: 7px; border-radius: 4px; overflow: hidden; }
.mp__bar::before, .mp__on {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--dim) 0 31%, var(--live) 31% 100%);
}
.mp__bar::before { opacity: 0.28; }
.mp__on {
  clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0);
  transition: clip-path 0.12s linear;
}
.mp__meta {
  display: flex; align-items: center; gap: 0.6rem; margin-top: 0.7rem; flex-wrap: wrap;
}
.mp__time { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.mp__chap {
  font: inherit; font-size: 0.76rem; font-weight: 600; color: var(--muted);
  background: var(--raised-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.25rem 0.7rem; cursor: pointer;
}
.mp__chap:hover { color: var(--ink); border-color: var(--dim); }
.mp__chap:focus-visible { outline: 2px solid var(--live); outline-offset: 2px; }
.mp__chap[aria-pressed="true"] { color: var(--ink); border-color: var(--dim); }

/* ── Mockup C — inbox and studio ────────────────────────────────────────── */

.mc { position: relative; padding: 0; background: none; border: none; box-shadow: none; }
.mc__inbox, .mc__studio {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.5);
}
.mc__inbox { padding: 0.9rem; max-width: 21rem; }
.mc__studio {
  padding: 1.25rem; max-width: 20rem; margin: -2.2rem 0 0 auto; position: relative;
}
.mc__row {
  display: flex; gap: 0.7rem; align-items: baseline;
  padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line);
}
.mc__row:last-child { border-bottom: none; }
.mc__row p { margin: 0; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.mc__chip {
  flex: 0 0 auto; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  border-radius: 999px; padding: 0.14rem 0.55rem;
}
.mc__chip--new { background: var(--live-dim); color: var(--live); }
.mc__chip--proc { background: var(--raised-2); color: var(--dim); border: 1px solid var(--line); }
.mc__chip--pub { color: var(--ok); background: none; border: 1px solid var(--line); }

/* The processing row resolves: chip and ghost text crossfade into the real
   transcript. At rest (and under reduced motion) the resolved pair is shown. */
.mc__swap { position: relative; flex: 1; }
.mc__swap .mc__was, .mc__swap .mc__now {
  display: flex; gap: 0.7rem; align-items: baseline;
}
.mc__swap > * { transition: opacity 0.4s ease; }
.mc__swap .mc__was { position: absolute; inset: 0; opacity: 0; }
.mc.play .mc__swap .mc__was { opacity: 1; transition: none; }
.mc.play.played .mc__swap .mc__was { opacity: 0; transition: opacity 0.4s ease 2.1s; }
.mc.play .mc__swap .mc__now { opacity: 0; transition: none; }
.mc.play.played .mc__swap .mc__now { opacity: 1; transition: opacity 0.4s ease 2.1s; }

.mc__label {
  display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 0.4rem;
}
.mc__input {
  font-size: 0.85rem; font-weight: 600; line-height: 1.35; margin: 0 0 0.9rem;
  background: var(--raised-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 0.55rem 0.7rem;
}
.mc__list { list-style: none; margin: 0 0 1rem; padding: 0; }
.mc__list li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; color: var(--muted); padding: 0.28rem 0;
}
.mc__list li::before {
  content: "✓"; display: inline-flex; align-items: center; justify-content: center;
  width: 1.05rem; height: 1.05rem; border-radius: 50%; flex: 0 0 auto;
  background: var(--ok); color: var(--bg); font-size: 0.66rem; font-weight: 800;
}
.mc.play .mc__list li { opacity: 0; transform: translateY(4px); }
.mc.play.played .mc__list li {
  opacity: 1; transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mc.play.played .mc__list li:nth-child(1) { transition-delay: 0.45s; }
.mc.play.played .mc__list li:nth-child(2) { transition-delay: 0.85s; }
.mc.play.played .mc__list li:nth-child(3) { transition-delay: 1.25s; }
.mc__pub {
  display: inline-block; background: var(--live-solid); color: #fff;
  font-weight: 600; font-size: 0.82rem; border-radius: 8px; padding: 0.45rem 1rem;
}
.mc.play .mc__pub { opacity: 0.35; }
.mc.play.played .mc__pub { opacity: 1; transition: opacity 0.3s ease 1.7s; }

/* ── Mockup D — branding, read from the customer's site ─────────────────── */

.mb {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem;
  align-items: center; padding: 1.5rem;
}
.mb__site { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.mb__chrome {
  display: flex; align-items: center; gap: 0.3rem;
  background: var(--raised-2); border-bottom: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
}
.mb__chrome i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--line); }
.mb__chrome span {
  margin-left: 0.4rem; font-family: var(--mono); font-size: 0.62rem; color: var(--dim);
}
/* The page inside the little browser is a PICTURE of a customer's site —
   Pretty Smart Money's cream and terracotta. Hex on purpose: these are the
   colours being read, not our UI, and they must not follow our theme. */
.mb__page { background: #f6f4f0; padding: 0.9rem; position: relative; }
.mb__page i { display: block; border-radius: 4px; }
.mb__page .b-logo { width: 42%; height: 0.55rem; background: #c2410c; margin-bottom: 0.6rem; }
.mb__page .b-h { width: 88%; height: 0.85rem; background: #2b2620; margin-bottom: 0.35rem; }
.mb__page .b-h2 { width: 64%; height: 0.85rem; background: #2b2620; margin-bottom: 0.7rem; }
.mb__page .b-p { width: 76%; height: 0.4rem; background: #d8d2c6; margin-bottom: 0.3rem; }
.mb__page .b-p2 { width: 58%; height: 0.4rem; background: #d8d2c6; margin-bottom: 0.8rem; }
.mb__page .b-btn { width: 38%; height: 0.8rem; background: #c2410c; border-radius: 999px; }
.mb__scan {
  position: absolute; inset: 0 auto 0 -12%; width: 12%;
  background: linear-gradient(90deg, transparent, var(--live-dim), transparent);
  opacity: 0;
}
.mb.play .mb__scan { animation: mb-scan 1.6s ease-in-out 0.2s 1; }
@keyframes mb-scan {
  0% { opacity: 1; left: -12%; } 100% { opacity: 1; left: 100%; }
}

.mb__arrow { color: var(--dim); font-size: 1.1rem; }

/* In a half-width feature column the three-across grid has no room; the
   little site and the proposal stack instead, arrow pointing down. */
.frow__viz .mb { grid-template-columns: 1fr; }
.frow__viz .mb__arrow { transform: rotate(90deg); justify-self: center; }

.mb__prop {
  background: var(--raised-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 0.9rem;
}
.mb__swatches { display: flex; gap: 0.35rem; margin-bottom: 0.7rem; }
.mb__swatches i {
  width: 1.15rem; height: 1.15rem; border-radius: 6px;
  border: 1px solid var(--line); background: var(--c);
}
.mb__row {
  font-size: 0.72rem; color: var(--muted); padding: 0.28rem 0;
  border-top: 1px solid var(--line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mb__row strong { color: var(--ink); font-weight: 600; }
.mb__apply {
  display: inline-block; margin-top: 0.7rem; background: var(--live-solid);
  color: #fff; font-weight: 600; font-size: 0.74rem;
  border-radius: 7px; padding: 0.35rem 0.85rem;
}
.mb__note { display: block; margin-top: 0.5rem; font-size: 0.68rem; color: var(--dim); }

.mb.play .mb__swatches i,
.mb.play .mb__row,
.mb.play .mb__apply { opacity: 0; transform: translateY(4px); }
.mb.play.played .mb__swatches i,
.mb.play.played .mb__row,
.mb.play.played .mb__apply {
  opacity: 1; transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.mb.play.played .mb__swatches i:nth-child(1) { transition-delay: 1.0s; }
.mb.play.played .mb__swatches i:nth-child(2) { transition-delay: 1.12s; }
.mb.play.played .mb__swatches i:nth-child(3) { transition-delay: 1.24s; }
.mb.play.played .mb__swatches i:nth-child(4) { transition-delay: 1.36s; }
.mb.play.played .mb__swatches i:nth-child(5) { transition-delay: 1.48s; }
.mb.play.played .mb__row:nth-of-type(1) { transition-delay: 1.7s; }
.mb.play.played .mb__row:nth-of-type(2) { transition-delay: 1.85s; }
.mb.play.played .mb__row:nth-of-type(3) { transition-delay: 2.0s; }
.mb.play.played .mb__apply { transition-delay: 2.3s; }

/* ── Mockup E — before/after, whose domain the words live on ────────────── */

.md { padding: 1.5rem; display: grid; gap: 0.8rem; max-width: 30rem; }
.md__bar {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--raised-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 0.6rem 0.8rem;
  font-family: var(--mono); font-size: 0.74rem;
}
.md__bar svg { width: 0.85rem; height: 0.85rem; flex: 0 0 auto; }
.md__url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.md__bar--before { color: var(--dim); }
.md__bar--before .md__url::after {
  content: ""; position: absolute; left: 0; top: 50%; height: 1px;
  background: var(--dim); width: 100%;
}
.md__bar--after { color: var(--ink); border-color: var(--dim); }
.md__bar--after .md__lock { color: var(--ok); }
.md__tag {
  margin-left: auto; flex: 0 0 auto; font-family: var(--sans);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--ok); text-transform: uppercase;
}
.md.play .md__bar--before .md__url::after { width: 0; transition: width 0.5s ease 0.8s; }
.md.play.played .md__bar--before .md__url::after { width: 100%; }
.md.play .md__bar--after { opacity: 0.4; transform: translateY(3px); }
.md.play.played .md__bar--after {
  opacity: 1; transform: none;
  transition: opacity 0.4s ease 1.5s, transform 0.4s ease 1.5s;
}

/* ── Insights mini bar chart (static) ───────────────────────────────────── */

.mi { padding: 1.25rem 1.25rem 1rem; max-width: 24rem; }
.mi__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.9rem; }
.mi__head strong { font-size: 0.85rem; letter-spacing: -0.01em; }
.mi__head span { font-size: 0.72rem; color: var(--dim); }
.mi__bars { display: flex; align-items: flex-end; gap: 4px; height: 4.2rem; }
.mi__bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--live-dim); height: calc(var(--v) * 1%); position: relative; }
.mi__bars i::after {
  content: ""; position: absolute; inset: auto 0 0 0; border-radius: 3px 3px 0 0;
  background: var(--live); height: calc(var(--w) * 1%);
}
.mi__foot { display: flex; gap: 1rem; margin-top: 0.8rem; font-size: 0.7rem; color: var(--dim); }
.mi__foot i { width: 0.6rem; height: 0.6rem; border-radius: 3px; display: inline-block; margin-right: 0.3rem; vertical-align: -1px; }
.mi__foot .k1 i { background: var(--live-dim); }
.mi__foot .k2 i { background: var(--live); }

/* Mockup F: a curated archive — themes to filter by, and a chosen order. */
.ma { padding: 1.25rem; max-width: 26rem; }
.ma__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 1rem; }
.ma__chip {
  font-size: 0.7rem; color: var(--dim); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.2rem 0.6rem; white-space: nowrap;
}
.ma__chip i { font-style: normal; opacity: 0.6; margin-left: 0.2rem; }
.ma__chip--on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.ma__rows { display: grid; gap: 0.7rem; }
.ma__row { display: flex; align-items: center; gap: 0.7rem; }
.ma__n {
  font-size: 0.7rem; color: var(--dim); flex: 0 0 0.9rem; text-align: right;
  font-variant-numeric: tabular-nums;
}
.ma__line { height: 0.55rem; border-radius: 4px; background: var(--line); }
/* Wound back only when motion is allowed — the resting markup above is already
   the complete picture, which is what makes no-JS and reduced-motion correct. */
.ma.play .ma__row { opacity: 0; transform: translateY(4px); }
.ma.play.played .ma__row {
  opacity: 1; transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ma.play.played .ma__row:nth-child(2) { transition-delay: 0.12s; }
.ma.play.played .ma__row:nth-child(3) { transition-delay: 0.24s; }

/* ── Pricing ────────────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.5rem; }
.plan {
  background: var(--raised); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.6rem; display: flex; flex-direction: column;
}
.plan--now { border-color: var(--live); }
.plan__tag {
  align-self: flex-start; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--live);
  background: var(--live-dim); border-radius: 999px; padding: 0.2rem 0.6rem;
  margin-bottom: 0.9rem;
}
.plan h3 { margin: 0 0 0.2rem; font-size: 1.15rem; letter-spacing: -0.02em; }
.plan .plan__price { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; margin: 0.4rem 0 0.2rem; }
.plan .plan__price small { font-size: 0.82rem; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.plan .plan__for { color: var(--muted); font-size: 0.85rem; margin: 0 0 1.2rem; }
.plan ul { list-style: none; margin: 0 0 1.6rem; padding: 0; flex: 1; }
.plan li { font-size: 0.88rem; color: var(--muted); padding: 0.3rem 0; }
.plan li::before { content: "—"; color: var(--live); margin-right: 0.55rem; }
.plan li strong { color: var(--ink); font-weight: 600; }
.plan .btn { align-self: stretch; }

.pricenote { color: var(--dim); font-size: 0.85rem; max-width: 56ch; margin-top: 1.5rem; }

/* ── FAQ / details ──────────────────────────────────────────────────────── */

.faq { margin-top: 2.25rem; max-width: 44rem; }
.faq details {
  border-top: 1px solid var(--line); padding: 0.4rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 0.75rem 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-weight: 500; font-size: 1.1rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 1rem; max-width: 60ch; }

/* ── Docs ───────────────────────────────────────────────────────────────── */

.docs { display: grid; grid-template-columns: 13rem 1fr; gap: 3.5rem; align-items: start; }
.toc { position: sticky; top: 1.5rem; font-size: 0.88rem; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 0.28rem 0; }
.toc a:hover { color: var(--ink); }
.docbody { min-width: 0; max-width: 44rem; }
.docbody h2 {
  font-size: 1.45rem; letter-spacing: -0.025em; margin: 3rem 0 0.75rem;
  padding-top: 1rem; max-width: none;
}
.docbody h2:first-child { margin-top: 0; }
.docbody p, .docbody li { color: var(--muted); }
.docbody p strong, .docbody li strong { color: var(--ink); font-weight: 600; }
.docbody a { color: var(--ink); text-decoration-color: var(--dim); }
.docbody code {
  font-family: var(--mono); font-size: 0.84em; color: var(--ink);
  background: var(--sunken); border: 1px solid var(--line);
  border-radius: 5px; padding: 0.08em 0.35em;
}
.docbody .code code { background: none; border: none; padding: 0; }
.dtable { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 1rem 0; }
.dtable th {
  text-align: left; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--dim); font-weight: 600;
  padding: 0.5rem 0.9rem 0.5rem 0; border-bottom: 1px solid var(--line);
}
.dtable td {
  padding: 0.6rem 0.9rem 0.6rem 0; border-bottom: 1px solid var(--line);
  color: var(--muted); vertical-align: top;
}
.dtable td:first-child { font-family: var(--mono); font-size: 0.8rem; color: var(--ink); white-space: nowrap; }

/* ── Examples ───────────────────────────────────────────────────────────── */

.shot {
  max-width: 26rem; width: 100%; height: auto; margin: 0 auto;
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.5); display: block;
}

/* A PICTURE of a Pretty Smart Money episode card — cream and terracotta are
   her brand, shown as evidence the widget disappears into a customer's site.
   Not tokens, and must not follow our theme. */
.psm-card {
  background: #ffffff; color: #2b2620; border: 1px solid #e3e0da;
  border-radius: 8px; padding: 1.1rem; max-width: 24rem;
  font-family: var(--sans);
  box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.35);
}
.psm-card h4 { margin: 0 0 0.5rem; font-size: 0.95rem; letter-spacing: -0.01em; color: #2b2620; }
.psm-card p { margin: 0 0 0.8rem; font-size: 0.8rem; color: #6b6257; }
.psm-card .psm-bar { height: 6px; border-radius: 3px; overflow: hidden; position: relative; background: #efe9df; }
.psm-card .psm-bar i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #7c35a0 0 31%, #c2410c 31% 100%);
  clip-path: inset(0 42% 0 0);
}
.psm-card .psm-meta { display: flex; gap: 0.5rem; margin-top: 0.6rem; font-size: 0.7rem; color: #6b6257; }
.psm-card .psm-meta b { color: #c2410c; font-weight: 600; }

/* ── The agent strip ────────────────────────────────────────────────────── */

.agent {
  margin-top: 3rem; border: 1px solid var(--line); border-radius: 16px;
  background: var(--sunken); padding: 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
}
.agent h3 { margin: 0 0 0.5rem; font-size: 1.2rem; letter-spacing: -0.02em; }
.agent p { color: var(--muted); margin: 0; font-size: 0.92rem; max-width: 40ch; }
.agent p a { color: var(--ink); text-decoration-color: var(--dim); }
.agent pre {
  margin: 0; font-family: var(--mono); font-size: 0.74rem; line-height: 1.65;
  color: var(--muted); overflow-x: auto;
}
.agent pre .attr { color: var(--live); }

/* ── Final CTA ──────────────────────────────────────────────────────────── */

.endcta {
  margin-top: 6.5rem; text-align: center; padding: 4rem 1.5rem;
  border: 1px solid var(--line); border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% -20%, var(--live-dim), transparent 60%),
    var(--raised);
}
.endcta h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.7rem); letter-spacing: -0.04em;
  margin: 0 auto 0.75rem; max-width: 18ch;
}
.endcta p { color: var(--muted); margin: 0 auto 1.75rem; max-width: 44ch; }
.endcta .cta { justify-content: center; }
.endcta .cta small { flex-basis: auto; }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.mfooter { border-top: 1px solid var(--line); margin-top: 6rem; }
.mfooter__in {
  max-width: 64rem; margin: 0 auto; padding: 3rem 1.5rem 1.5rem;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 3rem;
}
.mfooter__brand p { color: var(--dim); font-size: 0.88rem; margin: 0.9rem 0 0; }
.mfooter__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.mfooter__cols h3 {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--dim); margin: 0 0 0.7rem; font-weight: 600;
}
.mfooter__cols a {
  display: block; color: var(--muted); text-decoration: none;
  font-size: 0.9rem; padding: 0.22rem 0;
}
.mfooter__cols a:hover { color: var(--ink); }
.mfooter__base {
  max-width: 64rem; margin: 0 auto; padding: 1.25rem 1.5rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--dim); font-size: 0.85rem;
}

/* ── Scroll reveals ─────────────────────────────────────────────────────── */
/* The hidden state is applied by marketing.js, never in markup — a browser
   with no JS (or no IntersectionObserver) shows everything, always. */

.reveal-init { opacity: 0; transform: translateY(14px); }
.reveal-in {
  opacity: 1; transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

/* ── Small screens ──────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero, .frow, .agent, .docs { grid-template-columns: 1fr; }
  .frow { gap: 1.75rem; margin-top: 2.5rem; }
  .frow--flip .frow__copy { order: 1; }
  .frow--flip .frow__viz { order: 2; }
  .hero { gap: 2.25rem; padding-top: 1.5rem; }
  .gridcards, .plans { grid-template-columns: 1fr 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
  .mfooter__in { grid-template-columns: 1fr; gap: 2rem; }
  .mc__studio { margin-top: -1.4rem; }
  .msec { padding-top: 4.5rem; }
}

@media (max-width: 600px) {
  .gridcards, .plans { grid-template-columns: 1fr; }
  /* Room to breathe: a nowrap code column leaves the prose column one word
     wide on a phone. */
  .dtable td:first-child { white-space: normal; word-break: break-word; }
  .mb { grid-template-columns: 1fr; }
  .mb__arrow { transform: rotate(90deg); justify-self: center; }
  .bar nav { gap: 0.9rem; }
  .bar nav a:not(.btn):not([href="/login/"]) { display: none; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
/* marketing.js checks the same query and never starts its timers, so the
   .play classes below are belt-and-braces: even if a class lands, nothing
   moves, and every mockup rests on its most informative frame. */

@media (prefers-reduced-motion: reduce) {
  .mwrap *, .mwrap *::before, .mwrap *::after,
  .mfooter *, .mock *, .mock *::before, .mock *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal-init { opacity: 1; transform: none; }
  .mw__wave i { transform: scaleY(var(--h, 0.4)); }
  .mb__scan { display: none; }
}
