/* ════════════════════════════════════════════════════
   Campaign landing pages. Loads after styles.css and
   reuses its tokens — see DESIGN.md before editing.
   ════════════════════════════════════════════════════ */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ═════════ Hero ═════════ */
.lp-hero {
  position: relative; overflow: hidden;
  padding: 84px 0 76px;
  background: linear-gradient(180deg, var(--cream) 0%, #fbf3ee 62%, var(--paper) 100%);
}
.lp-hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 64px; align-items: stretch;   /* so the rule runs the full height, not just the text */
}
.lp-hero-main { min-width: 0; }
.lp-hero-side {
  min-width: 0; padding-left: 30px;
  border-left: 1px solid rgba(47, 59, 74, .14);
}
.lp-hero-side p { color: var(--ink-soft); margin: 0 0 14px; font-size: .98rem; line-height: 1.7; }
.lp-hero-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lp-hero-list li {
  font-size: .82rem; font-weight: 600; color: var(--navy-deep);
  background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: var(--r-pill);
}
.lp-hero--dark .lp-hero-side { border-left-color: rgba(255, 255, 255, .22); }
.lp-hero--dark .lp-hero-side p { color: rgba(255, 255, 255, .76); }
.lp-eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);
}
.lp-eyebrow::before {
  content: ""; width: 28px; height: 2px; flex: none;
  background: var(--coral); border-radius: 2px;
}
.lp-hero h1 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.06;
  letter-spacing: -.018em; color: var(--navy-deep);
  margin: 0 0 24px; text-wrap: balance;
}
.lp-hero h1 em { font-style: normal; color: var(--coral-deep); }
.lp-lead {
  font-size: 1.16rem; line-height: 1.6; color: var(--ink);
  max-width: 62ch; margin: 0 0 20px;
}
.lp-sub { color: var(--ink-soft); max-width: 66ch; margin: 0 0 16px; text-wrap: pretty; }
.lp-cta { margin-top: 14px; }

/* dark variant for the pain-point page */
.lp-hero--dark {
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: rgba(255,255,255,.9);
}
.lp-hero--dark h1 { color: #fff; }
.lp-hero--dark h1 em { color: var(--coral-soft); }
.lp-hero--dark .lp-lead { color: rgba(255,255,255,.92); }
.lp-hero--dark .lp-sub { color: rgba(255,255,255,.76); }
.lp-hero--dark .lp-sub strong { color: #fff; }
.lp-hero--dark .lp-cta { background: var(--coral); }
.lp-hero--dark .lp-cta:hover { background: var(--coral-deep); }
.lp-pains {
  font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.35;
  color: var(--coral-soft); margin: 0 0 20px;   /* no max-width: 24ch broke it into four rows */
  text-wrap: balance;
}

/* ═════════ The 30-day guarantee ═════════ */
/* navy on coral, not white on coral: white measured 2.46:1 here, and this is
   the one line the brief asked to make big and emphatic. */
.lp-guarantee { background: var(--coral); color: var(--navy-deep); }
.lp-guarantee p {
  margin: 0; padding: 26px 0;
  display: flex; align-items: baseline; justify-content: center;
  gap: 12px; flex-wrap: wrap; text-align: center;
}
.lp-guarantee strong {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); letter-spacing: -.01em;
}
.lp-guarantee span { font-size: 1.02rem; font-weight: 600; }

/* ═════════ Blocks ═════════ */
.lp-block { padding: 76px 0; }
.lp-block--tint {
  background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 55%, var(--paper) 100%);
}
.lp-narrow { max-width: 760px; }
.lp-center { text-align: center; margin-inline: auto; }
.lp-center .lp-eyebrow, .lp-center .lp-pills { justify-content: center; }
.lp-center .lp-kicker::before { margin-inline: auto; }

.lp-kicker {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--coral-deep); margin: 0 0 12px;
}
.lp-block h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.14;
  letter-spacing: -.015em; color: var(--navy-deep);
  margin: 0 0 20px; text-wrap: balance;
}
.lp-block p { color: var(--ink-soft); line-height: 1.72; margin: 0 0 16px; text-wrap: pretty; }
.lp-block .lp-center p { margin-inline: auto; max-width: 62ch; }

.lp-strike { color: var(--ink); font-weight: 600; }
.lp-label {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft); margin-block: 22px 12px !important;
}

.lp-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.lp-pills li {
  font-size: .84rem; font-weight: 600; color: var(--navy-deep);
  background: var(--cream-2); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: var(--r-pill);
}

.lp-quote {
  border-left: 3px solid var(--coral); padding: 4px 0 4px 26px; margin: 30px 0 0;
}
.lp-quote p { margin-bottom: 12px; }
.lp-quote-kick {
  font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.35;
  color: var(--navy-deep) !important; margin: 0 !important;
}

/* ═════════ Split with screenshots ═════════ */
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.lp-split-copy { min-width: 0; }
/* The panels beside this copy run 1055px against 592px of text, which left a
   463px hole in the left column. The copy rides down with them instead of
   sitting at the top of a half-empty column. Needs the `align-items: start`
   above: a stretched grid item has no room to stick. 109px clears the 85px
   sticky nav. */
@media (min-width: 981px) {
  .lp-split-copy { position: sticky; top: 109px; }
}
.lp-split-shot { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.shot {
  margin: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--paper);
  box-shadow: var(--shadow-md);
}
.shot img { width: 100%; height: auto; }
.shot figcaption {
  font-size: .8rem; color: var(--ink-soft);
  padding: 12px 16px; border-top: 1px solid var(--line); background: var(--cream);
}
.shot-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 44px 26px; min-height: 200px;
  border-style: dashed; border-color: var(--coral-soft);
  background: var(--cream); box-shadow: none;
}
.shot-empty span {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);   /* coral-deep is 3.23:1 at this size */
}
.shot-empty p { margin: 0; font-size: .86rem; color: var(--ink-soft); max-width: 34ch; }

/* ═════════ Feature grid ═════════ */
.lp-feat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2px; margin-top: 48px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden;
}
.lp-feat {
  background: var(--paper); padding: 32px 30px;
  transition: background .2s ease;
}
.lp-feat:hover { background: var(--cream); }
.lp-feat h3 {
  font-family: var(--font-sans); font-size: 1.06rem; font-weight: 700;
  color: var(--navy-deep); margin: 0 0 10px; text-wrap: balance;
}
.lp-feat p { margin: 0; font-size: .94rem; color: var(--ink-soft); line-height: 1.65; }

/* ═════════ Demo form ═════════ */
.demo { background: var(--navy-deep); padding: 76px 0 68px; scroll-margin-top: 90px; }
.demo-inner {
  display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px;
  align-items: center;     /* the copy is much shorter than the form; start-aligning stranded it */
}
.demo-copy h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem); line-height: 1.16;
  color: #fff; margin: 0 0 16px; text-wrap: balance;
}
.demo-copy p { color: rgba(255,255,255,.78); margin: 0 0 18px; max-width: 42ch; }
.lf-guarantee {
  font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.35;
  color: var(--coral-soft) !important; border-left: 3px solid var(--coral);
  padding-left: 18px; margin-top: 24px !important;
}

.lead-form {
  background: rgba(255,255,255,.94);
  border-radius: var(--r-lg); padding: 34px 34px 30px;
  box-shadow: var(--shadow-lg);
}
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.lf-field { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lf-wide { grid-column: 1 / -1; }
.lf-field label {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.lf-field input {
  font-family: inherit; font-size: .98rem; color: var(--ink);
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.lf-field input:hover { border-color: var(--coral-soft); }
.lf-field input:focus-visible {
  outline: none; border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(212,149,149,.4);
}
.lf-field.is-bad input { border-color: #c0554d; }
.lf-err { font-size: .78rem; color: #a8443c; margin: 0; }

.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lf-submit { margin-top: 18px; width: 100%; justify-content: center; }
.lf-submit[disabled] { opacity: .6; cursor: default; }
.lf-status { margin: 14px 0 0; font-size: .92rem; min-height: 1.3em; }
.lf-status.is-ok { color: #1f7a5c; font-weight: 600; }
.lf-status.is-bad { color: #a8443c; }
.lf-note { margin: 16px 0 0; font-size: .84rem; color: var(--muted); }

/* ═════════ Footer trim ═════════ */
.footer-slim { grid-template-columns: 1.6fr 1fr; }

/* ═════════ Responsive ═════════ */
@media (max-width: 980px) {
  .lp-split, .demo-inner, .lp-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero-side { padding-left: 0; border-left: 0; border-top: 1px solid rgba(47,59,74,.14); padding-top: 26px; }
  .lp-hero--dark .lp-hero-side { border-top-color: rgba(255,255,255,.22); }
  .lp-feat-grid { grid-template-columns: 1fr; }
  .footer-slim { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .lp-hero { padding: 60px 0 54px; }
  .lp-block { padding: 60px 0; }
  .lf-grid { grid-template-columns: 1fr; }
  .lead-form { padding: 26px 22px 24px; }
  .demo { padding: 60px 0; }
}

/* ════════════════════════════════════════════════════
   Live recreations of the admin screens.
   Marketing palette (DESIGN.md), not the admin blue.
   Every figure on these panels is simulated.
   ════════════════════════════════════════════════════ */
.ss-panel {
  margin: 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
}
.ss-panel-head {
  background: var(--navy); color: #fff;
  padding: 12px 18px; font-size: .88rem; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ss-panel-head em {
  font-style: normal; font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-deep); background: var(--coral-soft);
  padding: 3px 9px; border-radius: var(--r-pill);
}

/* ── Family insights ── */
.fp-body { padding: 18px; }
.fp-who { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fp-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .86rem; letter-spacing: .02em;
}
.fp-who h3 {
  margin: 0; font-family: var(--font-serif); font-weight: 400;
  font-size: 1.35rem; color: var(--navy-deep);
}
.fp-who p { margin: 2px 0 0; font-size: .78rem; color: var(--ink-soft); }

.fp-main { display: flex; flex-direction: column; gap: 16px; }
.fp-billed { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.fp-billed-label {
  order: 1; width: 100%; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.fp-billed-value {
  order: 2; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--navy-deep);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.fp-billed-sub {
  order: 3; font-size: .74rem; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 7px;
}
.fp-billed-sub em {
  font-style: normal; background: var(--sage-bg); color: var(--sage-ink);
  padding: 2px 8px; border-radius: var(--r-pill); font-weight: 700; font-size: .7rem;
}

.fp-chart-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.fp-chart { width: 100%; height: auto; display: block; margin-top: 6px; overflow: visible; }
.fp-grid line { stroke: var(--line); stroke-width: 1; }
.fp-ylab text, .fp-rlab text, .fp-xlab text {
  font-size: 9px; fill: var(--ink-soft); font-family: var(--font-sans);
}
.fp-area { fill: rgba(212, 149, 149, .16); }
.fp-line-billed {
  fill: none; stroke: var(--navy); stroke-width: 2.6;
  stroke-linejoin: round; stroke-linecap: round;
}
.fp-line-visits { fill: none; stroke: var(--sage); stroke-width: 1.8; stroke-dasharray: 4 4; }
.fp-dot { fill: var(--paper); stroke: var(--coral-deep); stroke-width: 2.4; }

.fp-legend { display: flex; gap: 18px; justify-content: center; margin-top: 6px; }
.fp-key { font-size: .72rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; }
.fp-key::before { content: ""; width: 14px; height: 0; }
.fp-key--billed::before { border-top: 2.5px solid var(--navy); }
.fp-key--visits::before { border-top: 2.5px dashed var(--sage); }

.fp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.fp-tile {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 13px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.fp-tile-ico {
  width: 26px; height: 26px; border-radius: 8px; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
}
.fp-tile-ico svg { width: 14px; height: 14px; }
.fp-tile--bookings .fp-tile-ico { background: var(--cream-2); color: var(--navy); }
.fp-tile--hours    .fp-tile-ico { background: var(--sage-bg); color: var(--sage-ink); }
.fp-tile--avg      .fp-tile-ico { background: rgba(212, 149, 149, .22); color: var(--coral-deep); }
.fp-tile--member   .fp-tile-ico { background: var(--cream); color: var(--navy-deep); }
.fp-tile-label { font-size: .74rem; font-weight: 700; color: var(--navy-deep); }
.fp-tile-value {
  font-family: var(--font-serif); font-weight: 400; font-size: 1.3rem;
  color: var(--navy-deep); font-variant-numeric: tabular-nums; line-height: 1.2;
}
.fp-tile-sub { font-size: .7rem; color: var(--ink-soft); }

/* ── Agency overview ── */
.ov-body { padding: 16px 18px 18px; }

/* ── the exec summary: the revenue headline beside its trend ───────────── */
.ov-range {
    margin-left: auto; margin-right: 10px;
    font-size: .72rem; font-weight: 600; color: var(--ink-soft);
    background: var(--paper); border: 1px solid var(--line);
    padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap;
}
.ov-top {
    display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: 12px; margin-bottom: 16px;
}
.ov-hero, .ov-trend {
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--cream); padding: 14px 16px;
}
.ov-trend { background: var(--paper); min-width: 0; }

.ov-hero-label { font-size: .82rem; font-weight: 700; color: var(--navy-deep); }
.ov-hero-eyebrow {
    display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--ink-soft); margin-top: 2px;
}
.ov-hero-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ov-hero-main strong {
    font-family: var(--font-serif); font-weight: 400; font-size: 2.1rem; line-height: 1;
    color: var(--navy-deep); font-variant-numeric: tabular-nums;
}
.ov-up {
    font-style: normal; font-size: .74rem; font-weight: 700; color: var(--sage-ink);
    background: rgba(168, 192, 174, .26); padding: 3px 8px; border-radius: var(--r-pill);
}
.ov-hero-cap { display: block; font-size: .74rem; color: var(--ink-soft); margin-top: 4px; }

.ov-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.ov-pills b {
    font-size: .66rem; font-weight: 600; color: var(--ink-soft);
    background: var(--paper); border: 1px solid var(--line);
    padding: 4px 9px; border-radius: var(--r-pill);
}
.ov-pills b.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.ov-card-title { font-size: .86rem; font-weight: 700; color: var(--navy-deep); }
.ov-card-sub { display: block; font-size: .72rem; color: var(--ink-soft); margin-top: 1px; }

/* ── revenue by service ── */
.rv-chart { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.rv-grid line { stroke: var(--line); stroke-width: 1; }
.rv-ylab text, .rv-xlab text { font-size: 8.5px; fill: var(--ink-soft); font-family: var(--font-sans); }

/* shades of the brand hue, the way the product derives them from the accent */
.rv-s0 { fill: #35485c; }
.rv-s1 { fill: #4a6480; }
.rv-s2 { fill: #6a86a3; }
.rv-s3 { fill: #93aac2; }
.rv-s4 { fill: #7fae8c; }
.rv-s5 { fill: #c98a8a; }

.rv-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; }
.rv-key { display: inline-flex; align-items: center; font-size: .68rem; color: var(--ink-soft); }
.rv-key::before {
    content: ""; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px;
}
.rv-key--0::before { background: #35485c; }
.rv-key--1::before { background: #4a6480; }
.rv-key--2::before { background: #6a86a3; }
.rv-key--3::before { background: #93aac2; }
.rv-key--4::before { background: #7fae8c; }
.rv-key--5::before { background: #c98a8a; }

.ov-section {
    margin: 0 0 8px; font-size: .7rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}

@media (max-width: 720px) {
    .ov-top { grid-template-columns: 1fr; }
    .ov-range { display: none; }
}
.ov-live {
  margin: 0 0 14px; font-size: .72rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 8px;
}
.ov-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sage);
  box-shadow: 0 0 0 4px rgba(168, 192, 174, .3);
}
.ov-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
    position: relative; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--paper); padding: 12px 14px 0;
}
.kpi-label {
    display: block; font-size: .68rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
}
.kpi-row { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.kpi-value {
    font-family: var(--font-serif); font-weight: 400; font-size: 1.85rem;
    line-height: 1; color: var(--navy-deep); font-variant-numeric: tabular-nums;
}
.kpi-delta { font-size: .74rem; font-weight: 700; }
.kpi--up .kpi-delta, .kpi--good .kpi-delta { color: var(--sage-ink); }
.kpi--flat .kpi-delta { color: #8a4d50; }
.kpi-sub {
    display: block; font-size: .7rem; color: var(--ink-soft);
    margin-top: 3px; margin-bottom: 8px;
}

/* the line runs the full width of the card and sits on its floor */
.kpi-spark {
    display: block; width: calc(100% + 28px); height: 34px;
    margin: 0 -14px -1px; overflow: visible;
}
.kpi-spark-line, .kpi-spark-dot { vector-effect: non-scaling-stroke; }
.kpi-spark-area { fill: rgba(74, 93, 111, .1); }
.kpi-spark-line {
  fill: none; stroke: var(--navy); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.kpi--good .kpi-spark-line { stroke: var(--sage-ink); }
.kpi--good .kpi-spark-area { fill: rgba(168, 192, 174, .22); }
.kpi--flat .kpi-spark-line { stroke: #8a4d50; }
.kpi-spark-dot { fill: var(--navy); stroke: var(--paper); stroke-width: 1.4; }
.kpi--good .kpi-spark-dot { fill: var(--sage-ink); }
.kpi--flat .kpi-spark-dot { fill: #8a4d50; }
.kpi--flat .kpi-spark-area { fill: rgba(212, 149, 149, .18); }

/* ── Sitter insights ── */
.st-body { padding: 6px 4px 10px; overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.st-table th, .st-table td { padding: 10px 9px; text-align: right; white-space: nowrap; }
.st-table thead th {
  font-size: .66rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line);
}
.st-table thead th:first-child, .st-table tbody th { text-align: left; }
.st-table tbody th {
  font-weight: 700; color: var(--navy-deep);
  display: flex; align-items: center; gap: 9px;
}
.st-table tbody tr { border-bottom: 1px solid var(--line); }
.st-table tbody tr:last-child { border-bottom: 0; }
.st-table tbody tr:hover { background: var(--cream); }
.st-av {
  width: 27px; height: 27px; border-radius: 50%; flex: none;
  background: var(--sage); color: #fff; font-size: .64rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.st-rev { min-width: 132px; }
.st-bar {
  display: block; height: 5px; border-radius: 3px; background: var(--cream-2);
  overflow: hidden; margin-bottom: 5px;
}
.st-bar-fill {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--navy), var(--coral)); width: var(--pct);
}
.st-num, .st-n { font-variant-numeric: tabular-nums; color: var(--navy-deep); }
.st-n { color: var(--ink-soft); }
.st-rate { color: var(--navy-deep); font-weight: 700; font-variant-numeric: tabular-nums; }
.st-rate span { color: var(--coral-deep); }   /* coral-deep alone was 3.47:1 at this size */

/* ── entrance ──
   The finished state is the DEFAULT. JavaScript adds .is-armed only once it has
   confirmed it can animate, then .is-live to play. A failure anywhere leaves the
   panels fully drawn rather than blank. */
.ss-panel.is-armed .fp-line-billed,
.ss-panel.is-armed .fp-line-visits,
.ss-panel.is-armed .kpi-spark-line {
  stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000);
}
.ss-panel.is-armed .fp-area,
.ss-panel.is-armed .kpi-spark-area { opacity: 0; }
.ss-panel.is-armed .fp-dot {
  opacity: 0; transform: scale(.4); transform-origin: center; transform-box: fill-box;
}
.ss-panel.is-armed .st-bar-fill { width: 0; }
.ss-panel.is-armed .st-table tbody tr { opacity: 0; transform: translateY(6px); }

.ss-panel.is-live .fp-line-billed { animation: fp-draw 1.5s cubic-bezier(.4, 0, .2, 1) forwards; }
.ss-panel.is-live .fp-line-visits { animation: fp-draw 1.5s cubic-bezier(.4, 0, .2, 1) .25s forwards; }
.ss-panel.is-live .kpi-spark-line {
  animation: fp-draw .9s cubic-bezier(.4, 0, .2, 1) forwards;
  animation-delay: calc(var(--i) * .09s);
}
.ss-panel.is-live .fp-area,
.ss-panel.is-live .kpi-spark-area { animation: fp-fade .8s ease .7s forwards; }
.ss-panel.is-live .fp-dot {
  animation: fp-pop .42s cubic-bezier(.34, 1.4, .64, 1) forwards;
  animation-delay: calc(.55s + var(--i) * .075s);
}
.ss-panel.is-live .st-bar-fill {
  animation: st-grow 1s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(.15s + var(--i) * .1s);
}
.ss-panel.is-live .st-table tbody tr {
  animation: st-in .5s ease forwards; animation-delay: calc(var(--i) * .09s);
}

@keyframes fp-draw { to { stroke-dashoffset: 0; } }
@keyframes fp-fade { to { opacity: 1; } }
@keyframes fp-pop  { to { opacity: 1; transform: scale(1); } }
@keyframes st-grow { to { width: var(--pct); } }
@keyframes st-in   { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .ss-panel.is-armed .fp-line-billed,
  .ss-panel.is-armed .fp-line-visits,
  .ss-panel.is-armed .kpi-spark-line { stroke-dashoffset: 0; animation: none; }
  .ss-panel.is-armed .fp-area,
  .ss-panel.is-armed .kpi-spark-area { opacity: 1; animation: none; }
  .ss-panel.is-armed .fp-dot { opacity: 1; transform: none; animation: none; }
  .ss-panel.is-armed .st-bar-fill { width: var(--pct); animation: none; }
  .ss-panel.is-armed .st-table tbody tr { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 620px) {
  .fp-tiles { grid-template-columns: repeat(2, 1fr); }
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-body, .ov-body { padding: 14px; }
}

.lp-overview { max-width: 900px; margin: 44px auto 0; }

/* ═════════ What comes with the platform ═════════ */
/* A two-column list with hairlines, not another card grid: the page already
   has the feature stack and the KPI cards, and a third grid of boxes would
   read as the same section three times. */
.inc-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    column-gap: 48px; margin-top: 34px;
    border-top: 1px solid var(--line);
}
.inc-row {
    display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
    gap: 4px 20px; align-items: baseline;
    padding: 16px 0; border-bottom: 1px solid var(--line);
}
.inc-row strong {
    font-size: .95rem; font-weight: 700; color: var(--navy-deep); text-wrap: balance;
}
.inc-row span { font-size: .9rem; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }

@media (max-width: 900px) {
    .inc-grid { grid-template-columns: 1fr; column-gap: 0; }
    .inc-row { grid-template-columns: 1fr; gap: 3px; padding: 14px 0; }
}

/* ═════════ Campaign photography ═════════ */
/* The library is portrait-shaped, so these crop to 4:5 with a per-image focus
   point rather than running at their native height and out-running the copy. */
.lp-photo {
  position: relative; margin: 0; min-width: 0;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.lp-photo img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover;
}
.lp-photo figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; flex-direction: column; gap: 1px;
  padding: 12px 16px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .66);
  backdrop-filter: blur(20px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, .78);
}
@supports not (backdrop-filter: blur(1px)) {
  .lp-photo figcaption { background: rgba(255, 255, 255, .95); }
}
.lp-photo figcaption strong {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 1.22rem; line-height: 1.2; color: var(--navy-deep);
}
.lp-photo figcaption span {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.lp-photo--tall img { aspect-ratio: 5 / 6; }
/* square where the copy beside it is short, so the column does not out-run it */
.lp-photo--wide img { aspect-ratio: 1 / 1; }

/* A photo column beside copy sits centred rather than sticky: the two are
   about the same height, and a sticky item that never moves reads as a bug. */
.lp-split--photo { align-items: center; }
@media (min-width: 981px) {
  .lp-split--photo .lp-split-copy { position: static; }
}

/* the intro of "what comes with the platform", paired with art */
.inc-lead { display: grid; grid-template-columns: 1fr .72fr; gap: 56px; align-items: center; }
.inc-lead .lp-narrow { min-width: 0; }
@media (max-width: 980px) {
  .inc-lead { grid-template-columns: 1fr; gap: 34px; }
  .inc-lead .lp-photo { max-width: 460px; }
}

/* ═════════ Before / after wipe ═════════ */
/* Two captures of the same screen, same pixel size, one clipped over the other.
   The handle follows the pointer on hover and drags on touch; the range input
   underneath carries keyboard and assistive support. */
.cw { margin-top: 52px; }
.cw-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.7vw, 2.05rem); line-height: 1.22;
  letter-spacing: -.01em; color: var(--navy-deep);
  text-align: center; text-wrap: balance;
  margin: 0 0 26px;
}
.cw-stage {
  position: relative; aspect-ratio: 1920 / 1080;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  background: var(--cream);
  touch-action: pan-y;              /* let the page still scroll vertically over it */
  --x: 50%;
}
.cw-stage:focus-within { outline: 2px solid var(--coral); outline-offset: 2px; }
.cw-stage picture { position: absolute; inset: 0; display: block; }
.cw-img {
  position: absolute; inset: 0; display: block;
  width: 100%; height: 100%; object-fit: cover;
}
.cw-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }

.cw-bar {
  position: absolute; top: 0; bottom: 0; left: var(--x);
  width: 2px; margin-left: -1px; background: var(--coral); z-index: 3;
}
.cw-grip {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--coral); color: #fff; box-shadow: var(--shadow-md);
}

/* Solid, not glass: a translucent chip nearly vanished over the pale legacy
   screenshot underneath it, which is exactly the ground it has to read on. */
.cw-lab {
  position: absolute; top: 16px; z-index: 2;
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 9px 16px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
}
.cw-lab--old { left: 16px; background: var(--navy-deep); color: #fff; }
.cw-lab--new { right: 16px; background: var(--coral); color: var(--navy-deep); }

/* the input is the whole surface: invisible, but it is what a keyboard drives */
.cw-range {
  position: absolute; inset: 0; z-index: 4;
  width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0; cursor: ew-resize; background: transparent;
  -webkit-appearance: none; appearance: none;
}
.cw-range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.cw-range::-moz-range-thumb { width: 44px; height: 100%; border: 0; }

/* `.lp-block p { margin: 0 0 16px }` is element+class (0,1,1), which outranks
   a bare `.cw-note` (0,1,0) regardless of source order — scope under the
   parent to win on specificity instead of fighting it with !important. */
.cw .cw-note {
  margin: 30px auto 0; max-width: 620px; font-size: .88rem; line-height: 1.6;
  color: var(--ink-soft); text-align: center; text-wrap: pretty;
}
/* Under 720px both layers swap to the phone captures (see wipe_img in
   landing.py), so the stage takes their shape instead of cropping a 16:9
   desktop shot down to a 175px-tall smudge. The two labels go to opposite
   corners there or they overlap on a 311px card. */
@media (max-width: 720px) {
  .cw { margin-top: 36px; }
  .cw-title { font-size: 1.32rem; margin-bottom: 18px; }
  .cw-stage { aspect-ratio: 440 / 953; max-width: 340px; margin-inline: auto; }
  .cw-lab { font-size: .64rem; letter-spacing: .05em; padding: 6px 12px; top: 12px; }
  .cw-lab--old { left: 12px; }
  .cw-lab--new { top: auto; bottom: 12px; right: 12px; }
  .cw-grip { width: 36px; height: 36px; }
  .cw-grip svg { width: 16px; height: 12px; }
}
