/* Mesmra landing: page CSS only, inside visuals. Everything else comes from the kit in /static/kit. */

/* Hero window: Mesmra's lead list beside the call in progress */
.hero__window { background:
  radial-gradient(120% 60% at 70% 118%, #6f7f3a 0 40%, transparent 41%),
  radial-gradient(90% 50% at 10% 108%, #57703f 0 42%, transparent 43%),
  radial-gradient(80% 40% at 60% 92%, #9fb2c4 0 40%, transparent 41%),
  linear-gradient(#5f93cc, #a9c7e4 70%, #c8d6dd); }
.d-win { border-radius: 12px; overflow: hidden; font: 400 14px/1.4 var(--font-text); text-align: left; }
.d-win--dark { background: #17191c; color: #eceef0; box-shadow: 0 0 0 1px rgb(255 255 255 / .08), 0 30px 70px -30px rgb(0 0 0 / .8); }
.d-win__bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(255 255 255 / .07); font-size: 13px; color: #9aa0a6; }
.d-win__bar b { color: #eceef0; font-weight: 500; } .d-win__bar .sp { flex: 1; }
.d-win__dots { display: flex; gap: 6px; } .d-win__dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3e43; }
.d-win__body { display: grid; grid-template-columns: 250px 1fr; min-height: 420px; }
.inbox { border-right: 1px solid rgb(255 255 255 / .07); padding: 14px 10px; display: grid; align-content: start; gap: 2px; }
.inbox .q { height: 34px; margin-bottom: 6px; border-radius: 9px; background: rgb(255 255 255 / .06); display: flex; align-items: center; padding: 0 10px; color: #7d8389; font-size: 13px; }
.inbox .t { display: grid; grid-template-columns: 30px 1fr auto; gap: 1px 10px; padding: 9px 8px; border-radius: 9px; font-size: 13px; }
.inbox .t.is-on { background: rgb(255 255 255 / .07); }
.inbox .t i { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 13px/1 var(--font-text); font-style: normal; color: #0f0f0f; }
.inbox .t b { font-weight: 500; color: #eceef0; } .inbox .t time { color: #7d8389; font-size: 13px; }
.inbox .t span { grid-column: 2 / -1; color: #8d9399; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo { display: grid; min-width: 0; align-content: start; }
.d-chat { display: grid; gap: 8px; align-content: start; padding: 14px 18px; font-size: 14px; }
.d-msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.d-msg--me { justify-self: end; background: #f2f2f0; color: #121314; border-bottom-right-radius: 6px; }
.d-msg--bot { max-width: 86%; background: #22262b; color: #e9ecee; border-bottom-left-radius: 6px; }
.d-tool { justify-self: center; font-size: 13px; color: #9aa0a6; }
.acts { display: flex; gap: 8px; }
.acts span { height: 30px; padding: 0 12px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; background: var(--p-accent); color: #0f0f0f; }
.acts span + span { background: rgb(255 255 255 / .08); color: #e9ecee; }
@media (max-width: 639px) {
  .d-win__bar .sp ~ span { display: none; }
  .d-win__body { grid-template-columns: 1fr; } .inbox { display: none; }
  .d-chat { font-size: 13px; padding: 12px 14px; }
  .d-tool { display: none; }
}

/* app-frame (sections-library.md): the lead list beside one lead's thread */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.ui-win__crumb .m-mark { width: 17px; height: auto; flex: none; color: var(--u-ink); }
.ui-chat__day { text-align: center; }
.ui-chat__online::before { display: none; }
.app .ui-win__nav { white-space: nowrap; }
.ui-msg__av:has(.m-mark), .ui-note__av:has(.m-mark) { display: grid; place-items: center; flex: none; border-radius: 50%; background: var(--p-accent); color: #0f0f0f; }
.ui-msg__av .m-mark, .ui-note__av .m-mark { width: 62%; height: auto; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* steps and pricing panels */
#how .panel { --p-h: 336px; }
.price-panel { --p-h: 440px; margin-top: var(--s-5); }
.price-eg { font-size: var(--t-lead); line-height: 1.5; max-width: 40ch; }
.faq-lede { margin: var(--s-4) 0 var(--s-3); }
@media (max-width: 639px) { #how .panel { --p-h: 290px; } #pricing .price-eg { display: none; } .price-panel { --p-h: 220px; }
  #pricing .grid { display: flex; flex-direction: column; }
  #pricing .grid > div { display: contents; }
  #pricing .section-head { order: 1; } #pricing .price-panel { order: 2; margin: 0 0 var(--s-5); } #pricing .rows { order: 3; } #pricing .price-cta { order: 4; } .footer__lede { display: none; } }
.hero.hero--centred .hero__lead { color: #c9c9c9; }
.price-cta { margin-top: var(--s-6); }
.faq-panel { --p-h: 300px; margin-top: var(--s-7); }
@media (max-width: 639px) { .faq-panel { --p-h: 420px; } }
.hero__window > .loop-pause:focus-visible { outline-color: #0f0f0f; }
@media (min-width: 640px) and (max-width: 1279px) {
  #how { --h: 2 }
  .price-panel { --p-h: 260px; }
  .faq-panel { --p-h: 110px; } .faq-lede { display: none; }
}

/* the logo mark */
.footer__mark .m-mark { height: 0.78em; width: auto; margin-right: 0.22em; vertical-align: -0.04em; }

/* the race under the speed statement: one lead, four businesses, time from the form */
.race { margin-top: var(--s-8); padding: var(--s-5) var(--s-6) var(--s-4); border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--ink) 7%, transparent); font-size: 15px; }
.race__head { color: var(--muted); }
.race__head b { font-weight: 500; color: var(--ink); }
.race__scale { min-height: 40px; }
.race__axis { position: relative; height: 16px; font-size: 13px; }
.race__axis i { position: absolute; top: 0; font-style: normal; white-space: nowrap; transform: translateX(-50%); }
.race__axis i:first-child { transform: none; }
.race__lanes { list-style: none; margin: 0; padding: 0; }
.race__lane { display: grid; grid-template-columns: 200px 1fr 260px; align-items: center; gap: var(--s-4); min-height: 54px; color: var(--muted); }
.race__who { display: inline-flex; align-items: center; gap: 8px; }
.race__who .m-mark { width: 20px; height: auto; color: var(--p-accent); }
.race__track { position: relative; height: 10px; border-radius: 99px; background: color-mix(in oklab, var(--ink) 7%, transparent); overflow: hidden; }
.race__track i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: color-mix(in oklab, var(--ink) 34%, transparent); }
.race__lane.is-you { color: var(--ink); }
.race__lane.is-you .race__track i { background: var(--p-accent); box-shadow: 0 0 18px color-mix(in oklab, var(--p-accent) 60%, transparent); }
.race__lane.is-you .race__end b { color: var(--p-accent); font-weight: 500; }
.race__lane.is-none .race__track i { background: repeating-linear-gradient(90deg, color-mix(in oklab, var(--ink) 16%, transparent) 0 8px, transparent 8px 14px); }
.race.is-in .race__track i { animation: race-grow var(--t) cubic-bezier(.3, .7, .4, 1) both; }
.race.is-in .race__end { animation: pl-up .35s ease both; animation-delay: var(--t); }
.race.is-in .is-you .race__end b { display: inline-block; animation: race-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: var(--t); }
@keyframes race-grow { from { width: 0; } to { width: var(--w); } }
@keyframes race-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pl-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1023px) { .race__lane { grid-template-columns: 150px 1fr 220px; } }
@media (max-width: 639px) {
  .race { margin-top: var(--s-6); padding: var(--s-4) var(--s-4) var(--s-2); font-size: 14px; }
  .hero .pill { display: flex; width: 100%; justify-content: center; }
  .hero .pill .muted, #first .t-label { display: none; }
  .race__scale { display: none; }
  .race__lane { grid-template-columns: 1fr auto; grid-template-areas: "who end" "track track"; gap: 8px 12px; padding: 12px 0; }
  .race__who { grid-area: who; } .race__end { grid-area: end; text-align: right; font-size: 13px; } .race__track { grid-area: track; height: 8px; }
}

/* the follow-up thread plays in order as it comes into view (the start state lives in the keyframes, so nothing hides without the script) */
#follow-up.is-in .ui-chat__body > * { animation: pl-up .35s ease both; animation-delay: calc(var(--i) * 170ms + 150ms); }

/* the close: the glowing mark */
.closing__cta > .close__glow { background: #000; }
.closing__cta > .close__glow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
