/* ============================================================
   /for-cas/ page-only styles. Everything else on the page reuses
   sections.css (.hero, .ca-inner, .ca-card, .steps, .faq-*).
   ============================================================ */

/* ── Even rhythm: the default 120px section padding stacks to ~240px
   between sections. 80px each side gives a uniform 160px, the same as
   the hero's 80px bottom padding + the next section's top. On phones
   48px each side matches the phone hero's 48px bottom padding. ── */
.ca-page .section { padding-block: var(--space-9); }
@media (max-width: 640px) {
  .ca-page .section { padding-block: var(--space-7); }
}

/* Plan section is centred (like the dashboard and FAQ sections) so the
   short checklist doesn't leave the right half of the row empty */
.ca-page #plan .ca-benefits { max-width: 620px; margin-inline: auto; }

/* site.css zeroes .sec-head .lede; the italic line touched the heading
   (same fix as .home .sec-head .lede in sections.css) */
#dashboard .sec-head .lede,
#how-it-works .sec-head .lede { margin-top: var(--space-3); }

/* ── Dashboard: real multi-firm screenshot in a browser frame, with numbered
   markers placed in % of the image (inline left/top) ── */
.dash-shot { max-width: 1120px; margin: var(--space-7) auto 0; border: var(--bw-hairline) solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-surface); box-shadow: var(--shadow-lg); }
.dash-shot-title { margin-left: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.dash-shot-img { position: relative; }
.dash-shot-img img { display: block; width: 100%; height: auto; }
.dash-shot-img { overflow: hidden; }
/* highlight boxes drawn around the part of the UI each note describes */
.dash-hl {
  position: absolute; z-index: 2;
  border: 2px solid var(--orange); border-radius: 10px;
  box-shadow: 0 0 0 4px rgba(246, 105, 34, 0.18);
  cursor: pointer;
  transition: border-color .35s var(--ease-out), box-shadow .45s var(--ease-out);
}
.dash-hl-num {
  position: absolute; top: -13px; left: -13px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700; line-height: 1;
  color: #fff; background: var(--orange);
  box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(16, 51, 92, 0.25);
  transition: opacity .35s var(--ease-out);
}
.dash-hl-tag-right .dash-hl-num { left: auto; right: -13px; }  /* small box near other UI: tag on the right */
/* tour running (script adds .is-tour): one box lit, the rest of the screen dimmed */
.dash-shot.is-tour .dash-hl { border-color: rgba(246, 105, 34, 0.35); box-shadow: none; }
.dash-shot.is-tour .dash-hl .dash-hl-num { opacity: .45; }
.dash-shot.is-tour .dash-hl.on {
  z-index: 3; border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(246, 105, 34, 0.30), 0 0 0 9999px rgba(16, 51, 92, 0.14);  /* soft shade on the rest */
}
.dash-shot.is-tour .dash-hl.on .dash-hl-num { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .dash-hl, .dash-hl-num, .dash-point { transition: none; }  /* tour still advances, it just switches instantly */
}
/* small phones: the screenshot is too small for boxes to read; drop them and the note numbers */
@media (max-width: 520px) {
  .dash-hl, .dash-num { display: none; }
}

/* ── Three numbered notes explaining the mock ── */
.dash-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1120px;
  margin: var(--space-7) auto 0;
}
.dash-point { border-top: 3px solid var(--orange); padding-top: var(--space-4); outline: none; transition: opacity .35s var(--ease-out), border-color .35s var(--ease-out); }
.dash-points.is-tour .dash-point { opacity: .5; border-top-color: var(--line); cursor: pointer; }
.dash-points.is-tour .dash-point.on { opacity: 1; border-top-color: var(--orange); }
.dash-point:focus-visible { outline: 3px solid var(--orange); outline-offset: 6px; border-radius: 4px; }
.dash-num {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  margin-bottom: var(--space-3);
  font-size: 13px; font-weight: 700; color: #fff; background: var(--orange);
}
.zoffer .dash-point h3 { margin: 0 0 var(--space-2); font-size: var(--fs-body-lg); font-family: var(--font-body); font-weight: 700; color: var(--navy); }
.zoffer .dash-point p { margin: 0; color: var(--muted); font-size: var(--fs-body); line-height: 1.6; }

@media (max-width: 860px) {
  .dash-points { grid-template-columns: 1fr; gap: var(--space-5); }
}

/* ============================================================
   HOW ZOFFER HELPS: even 3 x 2 grid of facts (formats, team numbers,
   own books, setup time, corrections, data). One navy feature card.
   ============================================================ */
.bn-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-7); align-items: end; margin-bottom: var(--space-7); }
.bn-head .sec-head { margin-bottom: 0; }
.zoffer .bn-lede { margin: 0; font-size: var(--fs-body-lg); line-height: 1.6; color: var(--muted); max-width: 42ch; justify-self: end; }
.g6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.g6-card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-6); background: var(--bg-surface);
  border: var(--bw-hairline) solid var(--line-soft); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.g6-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.g6-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--orange-08); color: var(--orange); margin-bottom: var(--space-2); }
.zoffer .g6-card h3 { margin: 0; font-size: var(--fs-h4); line-height: var(--lh-snug); color: var(--navy); }
.zoffer .g6-card p { margin: 0; font-size: var(--fs-body); line-height: 1.6; color: var(--muted); }
.g6-card a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.g6-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--space-2); }
.g6-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-full); background: var(--gray-100); border: var(--bw-hairline) solid var(--line-soft); font-size: 12px; font-weight: 600; color: var(--navy); }
.g6-chip svg { color: var(--orange); }
/* navy feature card with a big figure */
.g6-feature { background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow-lg); justify-content: flex-end; }
.g6-stat { white-space: nowrap; font-family: var(--font-head); font-size: clamp(36px, 3.6vw, 48px); font-weight: 800; line-height: 1; color: var(--orange); letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.zoffer .g6-feature h3 { color: #fff; }
.zoffer .g6-feature p { color: var(--fg-on-navy-muted); }

@media (max-width: 960px) {
  .bn-head { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .zoffer .bn-lede { justify-self: start; }
  .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .g6 { grid-template-columns: minmax(0, 1fr); }
  .g6-card { padding: var(--space-5); }
}
@media (prefers-reduced-motion: reduce) {
  .g6-card, .g6-card:hover { transition: none; transform: none; }
}

/* ============================================================
   HOW IT WORKS / TIME IS MONEY (#how-it-works): a WhatsApp phone (reuses .phone / .wa / .bub
   from sections.css) beside a queue window, on the page background.
   Bills fly from the chat into each client's folder (script on page).
   ============================================================ */
.ib {
  display: grid; grid-template-columns: 330px minmax(0, 1fr);
  gap: var(--space-8); align-items: center;
  max-width: none; margin: var(--space-7) auto 0;  /* full container width, same as the step strip */
}
.ib-phone { width: 330px; margin-inline: auto; }
.ib-feed { justify-content: flex-end; overflow: hidden; }

/* incoming client bills: WhatsApp group style, sender name in client colour */
.ib-in { max-width: 84%; }
.ib-sender { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: var(--cc); }
.ib-img img { width: 168px; height: 132px; object-fit: cover; object-position: top; }
.ib-doc-prev { display: block; width: 190px; height: 84px; object-fit: cover; object-position: top; border-radius: 6px; }
.ib-doc-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; padding: 6px 8px; background: rgba(0, 0, 0, 0.045); border-radius: 6px; }
.ib-pdf { flex: none; width: 26px; height: 30px; display: grid; place-items: center; border-radius: 3px; background: #e5483d; color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .02em; }
.ib-doc-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ib-doc-name b { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.ib-doc-name small { font-size: 10.5px; color: var(--muted); }
.ib-voice { display: flex; align-items: center; gap: 8px; width: 196px; }
.ib-play { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--wa-green); color: #fff; }
.ib-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 24px; }
.ib-wave i { flex: 1; min-width: 2px; border-radius: 2px; background: #8a979f; }
.ib-dur { font-size: 11px; color: var(--muted); }
.zoffer .ib-in p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink); }  /* beat tokens.css .zoffer p */
.ib-said { display: block; margin-top: 4px; font-size: 12px; font-style: italic; color: var(--muted); }

/* Zoffer's reply: outgoing green bubble with blue read ticks */
.ib-out { font-size: 12.5px; line-height: 1.4; padding-right: 14px; }
.ib-out b { color: var(--ink); }
.ib-ok { color: var(--success); font-weight: 800; }
.ib-ticks { color: #53bdeb; letter-spacing: -3px; margin-left: 2px; }
.is-new { animation: ib-in .45s var(--ease-out); }
@keyframes ib-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }

/* queue window */
.ib-win { background: var(--bg-surface); border: var(--bw-hairline) solid var(--line-soft); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.ib-win-bar { gap: 12px; }
.ib-win-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--navy); }
.ib-win-meta { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.ib-folders { list-style: none; margin: 0; padding: var(--space-5) var(--space-5) var(--space-4); display: flex; flex-direction: column; gap: 10px; }
.ib-folder {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: var(--bw-hairline) solid var(--line-soft); border-left: 4px solid var(--cc);
  border-radius: var(--radius-md); background: var(--bg-surface);
  transition: box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.ib-folder.is-active { border-color: var(--cc); box-shadow: 0 0 0 3px var(--orange-08), var(--shadow-md); }
.ib-folder.bump { animation: ib-bump .6s var(--ease-out); }
@keyframes ib-bump { 35% { transform: scale(1.025); } }
.ib-fold-ic { color: var(--cc); display: grid; }
.ib-fold-name { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.ib-fold-name small { font-size: 12px; font-weight: 500; color: var(--muted); }
.ib-thumbs { display: flex; margin-left: auto; padding-left: 8px; min-height: 32px; }
.ib-thumbs > * { width: 26px; height: 32px; margin-left: -8px; border-radius: 3px; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.ib-thumbs img { object-fit: cover; object-position: top; }
.ib-note {  /* stand-in thumbnail for voice notes and texts */
  display: block; background: #fff;
  background-image: linear-gradient(var(--line) 1px, transparent 1px);
  background-size: 100% 5px; background-position: 0 9px;
  border-top: 3px solid var(--cc) !important;
}
.ib-fold-count { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 62px; text-align: right; }
.ib-fold-count i { font-style: normal; }
.ib-fold-count b { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--cc); margin-right: 3px; font-variant-numeric: lining-nums; }

/* the flying copy of a bill (appended to <body> by the script) */
.ib-fly { position: fixed; z-index: 60; pointer-events: none; transform-origin: 0 0; object-fit: cover; object-position: top; border-radius: 6px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30); }

/* live stat strip: received and drafted climb, typed stays at 0 */
.ib-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--bw-hairline) solid var(--line-soft); }
.ib-stat { display: flex; flex-direction: column; gap: 2px; padding: var(--space-4) var(--space-5); }
.ib-stat + .ib-stat { border-left: var(--bw-hairline) solid var(--line-soft); }
.ib-stat b { font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.ib-stat span { font-size: 12px; font-weight: 600; color: var(--muted); }
.ib-stat-zero { background: var(--orange-08); }
.ib-stat-zero b, .ib-stat-zero span { color: var(--orange); }

@media (max-width: 960px) {
  .ib { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .ib-phone { width: 310px; }
}
@media (max-width: 480px) {
  .ib-phone { width: 100%; max-width: 300px; }
  .ib-folders { padding: var(--space-4); }
  .ib-thumbs { display: none; }
  .ib-stat { padding: var(--space-3); }
  .ib-stat b { font-size: 26px; }
  .ib-win-meta { display: none; }
}

/* step strip under the inbox: the four steps, numbered, joined by a line */
.ib-steps {
  list-style: none; margin: var(--space-8) auto 0; padding: 0; max-width: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6);
}
.ib-steps li { position: relative; display: block; padding-top: var(--space-6); font-size: var(--fs-body-sm); line-height: 1.7; color: var(--muted); }
.ib-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: calc(-1 * var(--space-6)); height: 2px; background: var(--orange-20); }
.ib-steps li:last-child::before { right: 14px; }  /* after step 04 the line runs on to the arrowhead */
.ib-steps { position: relative; }
.ib-steps::after {  /* arrowhead at the end of the line */
  content: ""; position: absolute; top: -5px; right: 0;
  border-left: 12px solid var(--orange); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
  opacity: .35; transition: opacity .3s var(--ease-out) .5s;
}
.ib-steps:not(.is-anim)::after { opacity: 1; }
.ib-steps li::after { content: ""; position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.ib-step-num { display: block; margin-bottom: 10px; font-family: var(--font-head); font-size: 22px; font-weight: 800; line-height: 1; color: var(--orange); font-variant-numeric: lining-nums; }
.ib-steps b { display: block; margin-bottom: 8px; font-family: var(--font-head); font-size: var(--fs-h4); font-weight: 700; line-height: var(--lh-snug); color: var(--navy); }
.ib-step-text { display: block; }
.ib-steps a { color: var(--orange); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* animated mode (script adds .is-anim + one .ib-steps-bar): a grey track, an orange
   bar that slides dot to dot, and each step lights only when the bar reaches it */
.ib-steps.is-anim li { z-index: 1; }
/* only the text fades and lifts, so the dots stay sitting on the line */
.ib-steps.is-anim li > * { opacity: .4; transform: translateY(6px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.ib-steps.is-anim li.on > * { opacity: 1; transform: none; }
.ib-steps.is-anim li::before { display: none; }  /* replaced by one continuous track */
.ib-steps.is-anim::before { content: ""; position: absolute; top: 0; left: 5px; right: 12px; height: 2px; background: var(--line); }
.ib-steps-bar {
  position: absolute; top: 0; left: 0; height: 2px; width: 0;
  background: var(--orange); border-radius: 2px; pointer-events: none;
  transition: width .4s var(--ease-in-out), opacity .25s var(--ease-out);
}
.ib-steps.is-anim li::after { background: var(--line); transition: background .2s var(--ease-out), box-shadow .25s var(--ease-out); }
.ib-steps.is-anim li.on::after { background: var(--orange); }
.ib-steps.is-anim li.now::after { box-shadow: 0 0 0 6px var(--orange-20); }
.ib-steps.is-anim li.now b { color: var(--orange); }
.ib-steps.is-anim::after { opacity: .35; transition: opacity .25s var(--ease-out); }
.ib-steps.is-anim.at-end::after { opacity: 1; }
/* wide screens: the strip breaks out past the phone and queue edges */
@media (min-width: 1100px) {
  .ib-steps { width: min(1280px, calc(100vw - 64px)); margin-left: calc((100% - min(1280px, 100vw - 64px)) / 2); }
}
@media (max-width: 860px) {
  .ib-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); }
  .ib-steps li::before, .ib-steps li:last-child::before { right: 0; }
  .ib-steps::after { display: none; }
  /* rows: no sliding bar, each step keeps its own short line and lights in turn */
  .ib-steps-bar, .ib-steps.is-anim::before { display: none; }
  .ib-steps.is-anim li::before { display: block; background: var(--line); }
  .ib-steps.is-anim li.on::before { background: var(--orange); }
}
@media (max-width: 480px) {
  .ib-steps { grid-template-columns: minmax(0, 1fr); }
}
