/* ============================================================================
   BuildMyBot — Landing page styles
   Built on the brand tokens in colors_and_type.css. Flat, hairline-first,
   Apple-calm. One blue accent. No gradients, no textures.
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--bmb-font);
  background: var(--bmb-bg);
  color: var(--bmb-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--bmb-blue-ring); }

.container { max-width: var(--bmb-maxw); margin: 0 auto; padding: 0 var(--bmb-gutter); }
.narrow { max-width: 820px; }

a { color: inherit; }

/* ---- Header --------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,247,251,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--bmb-ease), background .2s var(--bmb-ease);
}
.header.scrolled { border-bottom-color: var(--bmb-line); }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--bmb-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--bmb-ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--bmb-radius-sm);
  text-decoration: none; font-weight: 600; font-size: 15px; cursor: pointer;
  border: 1.5px solid transparent; font-family: inherit; white-space: nowrap;
  transition: opacity .15s, color .15s, border-color .15s, background .15s, transform .15s;
}
.btn .arrow { transition: transform .2s var(--bmb-ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.primary { background: var(--bmb-ink-button); color: #fff; }
.btn.primary:hover { opacity: .88; }
.btn.ghost { border-color: var(--bmb-line); color: var(--bmb-ink); background: var(--bmb-surface); }
.btn.ghost:hover { border-color: var(--bmb-muted-3); }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn.lg { padding: 16px 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.onlight { background: #fff; color: var(--bmb-ink); }
.btn.ondark { background: #fff; color: var(--bmb-ink); border-color: #fff; }
.btn.ondark.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn.ondark.ghost:hover { border-color: #fff; }

/* ---- Generic section ------------------------------------------------------ */
section { padding: 60px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 13px; border-radius: var(--bmb-radius-pill);
  background: var(--bmb-blue-tint-2); color: var(--bmb-blue-700);
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bmb-blue); }
.overline { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--bmb-muted-3); }
.sec-head { max-width: 680px; margin: 0 0 34px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.7px; margin: 14px 0 0; }
.sec-head p { font-size: 18px; color: var(--bmb-muted); line-height: 1.55; margin: 16px 0 0; }
.muted { color: var(--bmb-muted); }

/* ---- Cards ---------------------------------------------------------------- */
.card {
  background: var(--bmb-surface); border: 1px solid var(--bmb-line);
  border-radius: var(--bmb-radius-card); padding: 26px;
}

/* ============================================================================
   HERO
   ========================================================================== */
.hero { padding: 56px 0 48px; text-align: center; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 74px); line-height: 1.02; letter-spacing: -1.6px;
  margin: 0 auto 20px; max-width: 16ch; font-weight: 700;
}
.hero h1 .accent { color: var(--bmb-blue); }
.hero .sub { font-size: clamp(17px, 2vw, 20px); color: var(--bmb-muted); line-height: 1.55; max-width: 640px; margin: 0 auto; }
.hero .cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .trust { margin-top: 22px; color: var(--bmb-muted-2); font-size: 13px; }

/* ---- Hero animated workflow card (the before/after centerpiece) ----------- */
.flowwrap { max-width: 940px; margin: 56px auto 0; }
.flowcard {
  background: var(--bmb-surface); border: 1px solid var(--bmb-line);
  border-radius: 22px; box-shadow: var(--bmb-shadow-md);
  overflow: hidden; text-align: left;
}
.flow-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 20px; border-bottom: 1px solid var(--bmb-line);
}
.seg { display: inline-flex; background: var(--bmb-bg); border: 1px solid var(--bmb-line); border-radius: var(--bmb-radius-pill); padding: 4px; gap: 2px; }
.seg button {
  appearance: none; border: none; background: none; font-family: inherit; cursor: pointer;
  padding: 8px 16px; border-radius: var(--bmb-radius-pill); font-size: 13px; font-weight: 600;
  color: var(--bmb-muted-2); transition: color .2s, background .2s; white-space: nowrap;
}
.seg button.on { background: var(--bmb-surface); color: var(--bmb-ink); box-shadow: var(--bmb-shadow-sm); }
.seg button.on.auto { color: var(--bmb-blue-700); }
.flow-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--bmb-muted-2); font-weight: 500; }
.flow-meta .live { width: 7px; height: 7px; border-radius: 50%; background: var(--bmb-muted-3); transition: background .3s; }
.flowcard.is-auto .flow-meta .live { background: var(--bmb-success); animation: livepulse 1.6s var(--bmb-ease) infinite; }
@keyframes livepulse { 0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.35); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); } }

.flow-body { display: grid; grid-template-columns: 1.55fr 1fr; }
.flowsteps { padding: 14px 22px 22px; position: relative; }
.flowsteps::before {
  content: ""; position: absolute; left: 39px; top: 36px; bottom: 36px; width: 2px;
  background: var(--bmb-line); border-radius: 2px;
}
.fstep {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center;
  gap: 14px; padding: 11px 0; opacity: .42; transition: opacity .35s var(--bmb-ease);
}
.fstep.lit { opacity: 1; }
.fdot {
  width: 34px; height: 34px; border-radius: 50%; background: var(--bmb-surface);
  border: 2px solid var(--bmb-line); display: flex; align-items: center; justify-content: center;
  color: var(--bmb-muted-3); position: relative; z-index: 1; transition: all .3s var(--bmb-ease);
}
.fdot svg { width: 17px; height: 17px; }
.fstep.lit .fdot { border-color: var(--bmb-ink); color: var(--bmb-ink); }
.flowcard.is-auto .fstep.lit .fdot { border-color: var(--bmb-blue); color: var(--bmb-blue); background: var(--bmb-blue-tint); }
.fstep.warn.lit .fdot { border-color: var(--bmb-error); color: var(--bmb-error); background: #fef2f2; }
.fstep.done.lit .fdot { border-color: var(--bmb-success); color: var(--bmb-success); background: #f0fdf4; }
.flabel { font-size: 14.5px; font-weight: 600; color: var(--bmb-ink); }
.flabel small { display: block; font-weight: 500; color: var(--bmb-muted-2); font-size: 12.5px; margin-top: 2px; }
.fstatus { font-size: 12.5px; font-weight: 600; color: var(--bmb-muted-2); white-space: nowrap; text-align: right; }
.fstep.warn .fstatus { color: var(--bmb-error); }
.fstep.done .fstatus { color: var(--bmb-success); }

.flowsummary {
  border-left: 1px solid var(--bmb-line); padding: 22px; display: flex; flex-direction: column;
  justify-content: center; gap: 6px; background: var(--bmb-bg);
}
.sum-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--bmb-muted-3); }
.sum-time { font-size: clamp(34px, 4.5vw, 46px); font-weight: 700; letter-spacing: -1px; line-height: 1; color: var(--bmb-ink); transition: color .3s; }
.flowcard.is-auto .sum-time { color: var(--bmb-blue); }
.sum-unit { font-size: 16px; font-weight: 600; color: var(--bmb-muted-2); margin-left: 4px; }
.sum-out {
  margin-top: 14px; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: var(--bmb-radius-pill); font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--bmb-line); background: var(--bmb-surface); color: var(--bmb-muted);
}
.sum-out svg { width: 14px; height: 14px; }
.sum-out.bad { background: #fef2f2; border-color: #fecaca; color: var(--bmb-error); }
.sum-out.good { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.sum-cap { margin-top: 16px; font-size: 12.5px; color: var(--bmb-muted-2); line-height: 1.5; }

/* ---- Trust strip ---------------------------------------------------------- */
.trust-strip { padding: 28px 0 8px; }
.trust-strip .lbl { text-align: center; color: var(--bmb-muted-2); font-size: 13px; margin: 0 0 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 880px; margin: 0 auto; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--bmb-line); border-radius: var(--bmb-radius-pill);
  background: var(--bmb-surface); font-size: 14px; font-weight: 500; color: var(--bmb-muted);
  font-family: inherit; cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.chip:hover { border-color: var(--bmb-blue-300); color: var(--bmb-ink); transform: translateY(-1px); }
.chip:focus-visible { outline: none; box-shadow: var(--bmb-focus-glow); }
.chip[aria-selected="true"] {
  background: var(--bmb-blue-tint); border-color: var(--bmb-blue-300); color: var(--bmb-blue-700); font-weight: 600;
}
.chip svg { width: 15px; height: 15px; color: var(--bmb-muted-3); transition: color .18s ease; }
.chip:hover svg { color: var(--bmb-muted); }
.chip[aria-selected="true"] svg { color: var(--bmb-blue); }

.ind-panel {
  max-width: 720px; margin: 22px auto 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.ind-outcome {
  margin: 0; font-size: 19px; line-height: 1.45; color: var(--bmb-ink); font-weight: 500;
  max-width: 600px; text-wrap: pretty;
  transition: opacity .25s ease, transform .25s ease;
}
.ind-stat {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border-radius: var(--bmb-radius-pill); background: var(--bmb-blue-tint-2); color: var(--bmb-blue-700);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  transition: opacity .25s ease, transform .25s ease;
}
.ind-panel.swapping .ind-outcome,
.ind-panel.swapping .ind-stat { opacity: 0; transform: translateY(4px); }

/* ---- Hours / problem stat ------------------------------------------------- */
.hours { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hours-big { font-size: clamp(64px, 10vw, 116px); font-weight: 700; letter-spacing: -4px; line-height: .9; color: var(--bmb-ink); }
.hours-big .u { font-size: .32em; font-weight: 600; letter-spacing: -1px; color: var(--bmb-blue); margin-left: 6px; }
.bars { display: flex; flex-direction: column; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 52px; align-items: center; gap: 14px; }
.bar-row .name { font-size: 14px; font-weight: 500; color: var(--bmb-ink); }
.bar-track { height: 12px; background: var(--bmb-bg); border: 1px solid var(--bmb-line); border-radius: var(--bmb-radius-pill); overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: var(--bmb-blue); border-radius: var(--bmb-radius-pill); transition: width 1.1s var(--bmb-ease); }
.bar-row .val { font-size: 13px; font-weight: 600; color: var(--bmb-muted-2); text-align: right; }

/* ---- Process steps -------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; }
.step .stepnum { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--bmb-blue-700); margin-bottom: 14px; }
.step .ic { width: 42px; height: 42px; border-radius: var(--bmb-radius-sm); background: var(--bmb-blue-tint); color: var(--bmb-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step .ic svg { width: 21px; height: 21px; }
.step h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.2px; }
.step p { margin: 0; font-size: 14.5px; color: var(--bmb-muted); line-height: 1.55; }

/* ---- Bento (automation examples) ----------------------------------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.bento .card:hover { border-color: var(--bmb-blue-300); box-shadow: var(--bmb-hover-glow); }
.b-wide { grid-column: span 4; }
.b-narrow { grid-column: span 2; }
.b-half { grid-column: span 3; }
.b-third { grid-column: span 2; }
.b-ic { width: 40px; height: 40px; border-radius: var(--bmb-radius-sm); display: flex; align-items: center; justify-content: center; background: var(--bmb-blue-tint); color: var(--bmb-blue); margin-bottom: 16px; }
.b-ic svg { width: 20px; height: 20px; }
.bento h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.2px; }
.bento p { margin: 0; font-size: 14.5px; color: var(--bmb-muted); line-height: 1.55; }
.b-tag { margin-top: auto; padding-top: 16px; }
.b-tag span { display: inline-block; font-size: 12px; font-weight: 600; color: var(--bmb-success); background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--bmb-radius-pill); padding: 5px 11px; }

/* mini chat demo inside the wide bento */
.demo-chat { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 78%; padding: 11px 15px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.bubble.them { align-self: flex-start; background: var(--bmb-bg); border: 1px solid var(--bmb-line); color: var(--bmb-ink); border-bottom-left-radius: 5px; }
.bubble.us { align-self: flex-end; background: var(--bmb-blue); color: #fff; border-bottom-right-radius: 5px; }
.bubble.us small { display: block; opacity: .8; font-size: 11px; margin-top: 3px; }

/* ---- ROI calculator ------------------------------------------------------- */
.roi { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--bmb-line); border-radius: var(--bmb-radius-card); overflow: hidden; background: var(--bmb-surface); }
.roi-controls { padding: 36px; display: flex; flex-direction: column; gap: 26px; }
.roi-field label { display: flex; align-items: baseline; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.roi-field label .v { font-size: 15px; color: var(--bmb-blue-700); font-weight: 700; }
.roi-field input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--bmb-blue-tint); outline: none; }
.roi-field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bmb-surface); border: 2px solid var(--bmb-blue); cursor: pointer; box-shadow: var(--bmb-shadow-sm); transition: transform .12s; }
.roi-field input[type=range]::-webkit-slider-thumb:active { transform: scale(1.12); }
.roi-field input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--bmb-surface); border: 2px solid var(--bmb-blue); cursor: pointer; }
.roi-field .tick { display: flex; justify-content: space-between; font-size: 11px; color: var(--bmb-muted-3); margin-top: 8px; }
.roi-out { background: var(--bmb-ink); color: #fff; padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.roi-out .ro-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #94a3b8; }
.roi-out .ro-hours { font-size: clamp(40px,6vw,60px); font-weight: 700; letter-spacing: -1.5px; line-height: 1; }
.roi-out .ro-hours .u { font-size: .35em; font-weight: 600; color: #cbd5e1; margin-left: 6px; letter-spacing: 0; }
.roi-out .ro-div { height: 1px; background: rgba(255,255,255,.12); margin: 22px 0; }
.roi-out .ro-money { font-size: clamp(30px,4.5vw,42px); font-weight: 700; letter-spacing: -1px; line-height: 1; color: #fff; }
.roi-out .ro-money .pre { color: #6ea8fe; }
.roi-out .ro-sub { font-size: 13px; color: #94a3b8; margin-top: 6px; line-height: 1.5; }
.roi-out .ro-note { margin-top: 24px; font-size: 12px; color: #cbd5e1; display: flex; gap: 9px; align-items: flex-start; }
.roi-out .ro-note svg { width: 15px; height: 15px; color: var(--bmb-success); flex-shrink: 0; margin-top: 1px; }

/* ---- Pricing -------------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.price-card { position: relative; }
.price-card.feature { border-color: var(--bmb-ink); border-width: 1.5px; }
.price-card .ptag { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--bmb-blue-700); background: var(--bmb-blue-tint); border-radius: var(--bmb-radius-pill); padding: 5px 11px; }
.price-card h3 { margin: 0; font-size: 19px; letter-spacing: -.2px; }
.price-card .sub2 { margin: 6px 0 0; font-size: 14px; color: var(--bmb-muted); }
.price-card .price { font-size: 44px; font-weight: 700; letter-spacing: -1.5px; margin: 22px 0 4px; }
.price-card .price .per { font-size: 17px; font-weight: 600; color: var(--bmb-muted-2); letter-spacing: 0; }
.price-card .terms { font-size: 13px; color: var(--bmb-muted-2); margin: 0 0 22px; }
.feat-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 13px; border-top: 1px solid var(--bmb-line); padding-top: 22px; }
.feat-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--bmb-ink); line-height: 1.45; }
.feat-list li svg { width: 18px; height: 18px; color: var(--bmb-success); flex-shrink: 0; margin-top: 1px; }

/* ---- FAQ ------------------------------------------------------------------ */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--bmb-line); }
.faq-item { border-bottom: 1px solid var(--bmb-line); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: none; border: none; font-family: inherit; cursor: pointer; padding: 24px 4px; text-align: left; font-size: 17px; font-weight: 600; color: var(--bmb-ink); letter-spacing: -.2px; }
.faq-q .pm { width: 22px; height: 22px; flex-shrink: 0; position: relative; color: var(--bmb-muted-2); transition: transform .25s var(--bmb-ease); }
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--bmb-ease); }
.faq-a p { margin: 0; padding: 0 4px 24px; font-size: 15.5px; color: var(--bmb-muted); line-height: 1.6; max-width: 92%; }

/* ---- Final CTA ------------------------------------------------------------ */
.finalcta { padding: 72px 0; }
.finalcta-inner { background: var(--bmb-ink); border-radius: 28px; padding: 72px 56px; text-align: center; position: relative; overflow: hidden; }
.finalcta h2 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -1.2px; line-height: 1.05; margin: 0 auto; max-width: 16ch; color: #fff; }
.finalcta p { font-size: 18px; color: #cbd5e1; line-height: 1.55; max-width: 540px; margin: 20px auto 0; }
.finalcta .cta { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.finalcta .fineprint { margin-top: 22px; color: #94a3b8; font-size: 13px; }
.finalcta .mark { width: 46px; height: 46px; margin: 0 auto 26px; opacity: .9; }

/* ---- Footer --------------------------------------------------------------- */
.footer { padding: 44px 0 52px; border-top: 1px solid var(--bmb-line); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand img { height: 34px; }
.footer .fcol h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--bmb-muted-3); margin: 0 0 14px; font-weight: 700; }
.footer .fcol a { display: block; color: var(--bmb-muted); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color .15s; }
.footer .fcol a:hover { color: var(--bmb-ink); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--bmb-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--bmb-muted-2); font-size: 13px; }

/* ---- Scroll reveal -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--bmb-ease), transform .6s var(--bmb-ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

/* ---- Modal ---------------------------------------------------------------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 80; padding: 24px; }
.modal-backdrop.open { display: flex; animation: mfade .2s ease; }
.modal { background: #fff; border-radius: var(--bmb-radius-card); padding: 36px; max-width: 440px; width: 100%; text-align: center; box-shadow: 0 24px 70px rgba(15,23,42,.25); animation: mrise .25s var(--bmb-ease); }
.modal .mark { width: 50px; height: 50px; margin: 0 auto 18px; }
.modal h3 { margin: 0 0 10px; font-size: 23px; letter-spacing: -.4px; }
.modal p { margin: 0 0 24px; color: var(--bmb-muted); line-height: 1.55; font-size: 15px; }
.modal .btn { margin-bottom: 10px; }
@keyframes mfade { from { opacity: 0; } }
@keyframes mrise { from { opacity: 0; transform: translateY(12px); } }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  section { padding: 60px 0; }
  .nav-links { display: none; }
  .flow-body { grid-template-columns: 1fr; }
  .flowsummary { border-left: none; border-top: 1px solid var(--bmb-line); flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .flowsteps::before { left: 39px; }
  .hours { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-wide, .b-narrow, .b-half, .b-third { grid-column: span 2; }
  .testi-grid { grid-template-columns: 1fr; }
  .roi { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .finalcta-inner { padding: 52px 28px; }
}
/* ---- Hero scenario tabs --------------------------------------------------- */
.flow-scenarios { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.flow-scenarios button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--bmb-radius-pill); border: 1px solid var(--bmb-line); background: var(--bmb-surface); color: var(--bmb-muted-2); font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s; }
.flow-scenarios button svg { width: 15px; height: 15px; }
.flow-scenarios button:hover { border-color: var(--bmb-muted-3); color: var(--bmb-ink); }
.flow-scenarios button.on { background: var(--bmb-ink-button); border-color: var(--bmb-ink-button); color: #fff; }

/* ---- Daily-digest mini graphic ------------------------------------------- */
.digest { margin-top: 18px; border: 1px solid var(--bmb-line); border-radius: var(--bmb-radius-sm); background: var(--bmb-bg); overflow: hidden; }
.digest-h { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-bottom: 1px solid var(--bmb-line); background: var(--bmb-surface); }
.digest-h b { font-size: 12.5px; letter-spacing: -.2px; color: var(--bmb-ink); }
.digest-h span { font-size: 11px; color: var(--bmb-muted-2); }
.digest-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; font-size: 13px; }
.digest-row + .digest-row { border-top: 1px solid var(--bmb-line); }
.digest-row .dk { color: var(--bmb-muted); }
.digest-row .dv { font-weight: 700; color: var(--bmb-ink); display: inline-flex; align-items: center; gap: 7px; }
.digest-row .up { color: var(--bmb-success); font-size: 11px; font-weight: 700; }

/* ---- Mini example graphics (scheduling / invoice / review) --------------- */
.mini-panel { margin-top: 18px; border: 1px solid var(--bmb-line); border-radius: var(--bmb-radius-sm); background: var(--bmb-bg); overflow: hidden; }
.mini-h { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; border-bottom: 1px solid var(--bmb-line); background: var(--bmb-surface); }
.mini-h b { font-size: 12.5px; letter-spacing: -.2px; color: var(--bmb-ink); display: inline-flex; align-items: center; gap: 7px; }
.mini-h b svg { width: 14px; height: 14px; color: var(--bmb-blue); }
.mini-h span { font-size: 11px; color: var(--bmb-muted-2); }
.mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 13px; font-size: 13px; }
.mini-row + .mini-row { border-top: 1px solid var(--bmb-line); }
.mini-row .mk { color: var(--bmb-muted); display: inline-flex; align-items: center; gap: 8px; }
.mini-row .mk svg { width: 14px; height: 14px; color: var(--bmb-success); flex: none; }
.mini-row .mv { font-weight: 700; color: var(--bmb-ink); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mini-row.total { background: var(--bmb-surface); border-top: 1px solid var(--bmb-line); }
.mini-row.total .mk { color: var(--bmb-ink); font-weight: 600; }
.pill-paid { font-size: 10.5px; font-weight: 700; color: var(--bmb-success); background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--bmb-radius-pill); padding: 2px 8px; }

.mini-review { margin-top: 18px; border: 1px solid var(--bmb-line); border-radius: var(--bmb-radius-sm); background: var(--bmb-bg); padding: 13px 14px; }
.mini-review .stars { display: inline-flex; gap: 2px; margin-bottom: 9px; }
.mini-review .stars svg { width: 15px; height: 15px; color: #f59e0b; fill: #f59e0b; }
.mini-review .quote { margin: 0 0 10px; font-size: 13px; line-height: 1.5; color: var(--bmb-ink); }
.mini-review .who { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--bmb-muted-2); }
.mini-review .who .src { display: inline-flex; align-items: center; gap: 5px; }
.mini-review .who .src svg { width: 13px; height: 13px; }

/* ---- Testimonials --------------------------------------------------------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tcard { display: flex; flex-direction: column; gap: 16px; transition: border-color .15s var(--bmb-ease), box-shadow .15s var(--bmb-ease); }
.tcard:hover { border-color: var(--bmb-blue-300); box-shadow: var(--bmb-hover-glow); }
.tcard .stars { display: inline-flex; gap: 2px; }
.tcard .stars svg { width: 16px; height: 16px; color: #f59e0b; fill: #f59e0b; }
.tcard blockquote { margin: 0; font-size: 16px; line-height: 1.6; color: var(--bmb-ink); letter-spacing: -.1px; text-wrap: pretty; }
.tcard .tauthor { margin-top: auto; padding-top: 4px; display: flex; align-items: center; gap: 12px; }
.tavatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  background: var(--bmb-blue-tint); color: var(--bmb-blue-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; letter-spacing: -.2px;
}
.tmeta { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.tmeta b { font-size: 14px; color: var(--bmb-ink); font-weight: 600; }
.tmeta small { font-size: 12.5px; color: var(--bmb-muted-2); }

/* ---- Interactive process steps ------------------------------------------- */
.step-rail { height: 3px; background: var(--bmb-line); border-radius: 3px; margin: 0 0 24px; overflow: hidden; }
.step-rail > i { display: block; height: 100%; width: 25%; background: var(--bmb-blue); border-radius: 3px; transition: width .45s var(--bmb-ease); }
.step { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.step:hover { border-color: var(--bmb-blue-300); }
.step.active { border-color: var(--bmb-blue); box-shadow: var(--bmb-hover-glow); }
.step.active .ic { background: var(--bmb-blue); color: #fff; }
.step-more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s var(--bmb-ease), opacity .25s var(--bmb-ease), margin-top .35s var(--bmb-ease); }
.step.active .step-more { max-height: 180px; opacity: 1; margin-top: 16px; }
.step-more .sm-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--bmb-blue-700); margin-bottom: 6px; }
.step-more p { font-size: 13.5px; color: var(--bmb-muted); line-height: 1.5; margin: 0; }

/* ---- Pricing without a fixed cost ---------------------------------------- */
.price-alt { font-size: 25px; font-weight: 700; letter-spacing: -.5px; margin: 22px 0 6px; color: var(--bmb-ink); }
.price-card.feature .price-alt { color: var(--bmb-blue); }

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .b-wide, .b-narrow, .b-half, .b-third { grid-column: span 1; }
  .sum-out { margin-top: 0; }
}

/* ============================================================================
   MOBILE REFINEMENTS
   ========================================================================== */
/* The base .testi-grid rule is declared after the 900px block above, so it
   re-asserts 3 columns at every width. Re-declare the collapse here (last in
   source order) so testimonials stack on tablet/phone. */
@media (max-width: 900px) {
  .testi-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { height: 64px; }
  .brand img { height: 38px; }
  /* Keep the sticky header to logo + primary CTA; Client login lives in the
     footer at this width so the portal stays reachable. */
  .nav-cta .btn.ghost { display: none; }
}
