/* Forms and aftercare: Ember Skin's own site, after Waida's Formix. A flat light grey page framed by
   dashed guide lines, heavy tight grotesk headlines that fade to grey, "/ 001 /" pill labels, black
   and outlined pills, and grey-on-grey cards with a soft white edge. The one dark card is the active
   step. Orange is kept for small ticks. */
.demo--ms-forms-aftercare {
  --bg: #e8e8e7; --card: #efefee; --card-2: #f5f5f4; --well: #e0e0df; --ink: #111; --ink-2: #333; --muted: #5a5a5a; --line: #d2d2d0; --dash: #bdbdbb;
  --orange: #d63d14; --green: #1f7a45; --amber: #8b5800; --red: #b3261e;
  background: var(--bg); color: var(--ink); font: 400 16px/1.5 Inter, Geist, system-ui, sans-serif; letter-spacing: -.012em;
}
.demo--ms-forms-aftercare main { overflow-x: clip; }
.demo--ms-forms-aftercare img { height: auto; }
.demo--ms-forms-aftercare :focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.em-page { position: relative; max-width: 1440px; margin: 0 auto; }
.em-page::before, .em-page::after { content: ""; position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed var(--dash); pointer-events: none; }
.em-page::before { left: 40px; } .em-page::after { right: 40px; }

/* pills */
.em-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 1.5px solid transparent; padding: 15px 24px; font: 500 15px/1 Inter, sans-serif; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s; }
.em-btn--dark { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px -10px rgba(0,0,0,.6); }
.em-btn--dark:hover:not(:disabled) { background: #2b2b2b; }
.em-btn--line { border-color: #c4c4c2; color: var(--ink); background: transparent; }
.em-btn--line:hover:not(:disabled) { border-color: var(--ink); }
.em-btn--sm { padding: 11px 18px; font-size: 14px; }
.em-btn--xs { padding: 8px 14px; font-size: 13px; }
.em-btn:disabled { opacity: .4; cursor: default; }
.em-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid #c9c9c7; font: 500 11.5px/1 Inter, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.em-h2 { margin-top: 20px; font: 600 clamp(2.4rem, 4.8vw, 4.2rem)/1.04 Inter, sans-serif; letter-spacing: -.06em; }
.em-h2 span { color: #6a6a68; }
.em-sub { margin-top: 18px; max-width: 30em; color: var(--ink-2); font-size: 16px; }
.em-sub--narrow { max-width: 24em; }

/* ---------- nav + hero ---------- */
.em-nav { display: flex; align-items: center; gap: 24px; padding: 14px 20px; border-bottom: 1px dashed var(--dash); }
.em-logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 700 21px/1 Inter, sans-serif; letter-spacing: -.05em; margin-right: auto; }
.em-logo rect { fill: var(--ink); } .em-logo path { fill: #fff; }
.em-nav__links { display: flex; gap: 6px; }
.em-nav__links a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; }
.em-nav__links a:hover { background: var(--card); }

.em-hero { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px dashed var(--dash); margin: 0 40px; }
.em-hero__txt { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(50px, 6vw, 80px) 40px 50px; border-right: 1px dashed var(--dash); }
.em-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid #c9c9c7; font: 500 11.5px/1 Inter, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.em-status i { width: 7px; height: 7px; border-radius: 50%; background: #2fb36a; box-shadow: 0 0 0 3px rgba(47,179,106,.2); }
.em-hero h1 { margin-top: 22px; font: 600 clamp(2.7rem, 5vw, 4.5rem)/1.06 Inter, sans-serif; letter-spacing: -.06em; max-width: 9.4em; }
.em-hero h1 span { color: #5f5f5d; }
.em-lede { margin-top: 24px; max-width: 29em; color: var(--ink-2); font-size: 16.5px; }
.em-hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.em-trust { margin-top: auto; padding-top: 70px; display: flex; align-items: center; gap: 14px; }
.em-trust__faces { display: flex; }
.em-trust__faces img { width: 46px; height: 46px !important; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); margin-left: -12px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); }
.em-trust__faces img:first-child { margin-left: 0; }
.em-trust b { display: block; font-weight: 500; font-size: 15px; }
.em-trust small { font: 500 11px/1.4 Inter, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.em-hero__art { position: relative; padding: 40px; display: flex; align-items: center; justify-content: center; }
.em-hero__photo { width: min(100%, 470px); border-radius: 24px; overflow: hidden; background: #2b2724; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.em-hero__photo img { width: 100%; aspect-ratio: 470 / 560; object-fit: cover; object-position: 50% 25%; }
.em-float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--card-2); box-shadow: 0 0 0 1px rgba(255,255,255,.8), 0 18px 40px -18px rgba(0,0,0,.35); font-size: 14px; }
.em-float b { display: block; font-weight: 600; letter-spacing: -.02em; }
.em-float small { color: var(--muted); font-size: 12.5px; }
.em-float--a { left: 6%; top: 22%; }
.em-float--b { right: 5%; bottom: 16%; }
.em-float__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.em-float__k { padding: 8px 9px; border-radius: 10px; background: var(--well); font: 600 11px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; }

.em-logos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px dashed var(--dash); margin: 0 40px; }
.em-logos li { display: grid; place-items: center; padding: 26px 10px; border-left: 1px dashed var(--dash); font: 700 19px/1 'Space Grotesk', Inter, sans-serif; letter-spacing: -.03em; color: #666664; text-align: center; }
.em-logos li:first-child { border-left: 0; }
.em-logos li:nth-child(2n) { font-family: 'Bricolage Grotesque', Inter, sans-serif; font-weight: 600; }

/* ---------- sections ---------- */
.em-sec { margin: 0 40px; padding: clamp(60px, 7vw, 100px) 40px; border-bottom: 1px dashed var(--dash); }
.em-demo__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px 60px; align-items: end; margin-bottom: 36px; }
.em-demo__go { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.em-safety { padding: 16px 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 1px 2px rgba(0,0,0,.05); font-size: 14px; color: var(--ink-2); }
.em-safety__h { font: 600 11.5px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.em-safety__h::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.em-safety li { position: relative; padding-left: 22px; margin-top: 5px; }
.em-safety li::before, .em-ticks li::before { content: "✓"; position: absolute; left: 0; top: 3px; width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--orange); color: var(--orange); font-size: 9px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* the stage: a grey well with grey-on-grey cards */
.fa-stage { padding: 8px; border-radius: 26px; background: var(--well); box-shadow: inset 0 1px 2px rgba(0,0,0,.06); }
.fa-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.fa-rail li { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--card); color: var(--muted); font-size: 14.5px; font-weight: 500; letter-spacing: -.02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.7); transition: background .3s, color .3s; }
.fa-rail span { font: 500 11.5px/1 Inter, sans-serif; letter-spacing: .04em; color: #767674; }
.fa-rail li.is-done { color: var(--ink); }
.fa-rail li.is-done span::after { content: " ✓"; color: var(--orange); }
.fa-rail li.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.fa-rail li.is-on span { color: #c4c4c4; }
.fa-grid { display: grid; gap: 8px; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; }
.fa-card { min-width: 0; padding: 18px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 1px 2px rgba(0,0,0,.05); }
.fa-card--phone { padding: 12px 12px 20px; }
.fa-cap { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); padding: 6px 6px 14px; }
.fa-cap b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; letter-spacing: -.025em; }
.fa-cap__av { flex: none; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; }
.fa-cap__av img { width: 100%; height: 100% !important; object-fit: cover; object-position: 50% 20%; }
.fa-cap--plain { padding: 0 0 14px; justify-content: space-between; }
.fa-sys { font: 700 14px/1 'Space Grotesk', sans-serif; letter-spacing: -.02em; padding: 6px 10px; border-radius: 8px; background: var(--card-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }

.fa-phone { position: relative; margin: 0 auto; max-width: 318px; height: 620px; border-radius: 46px; border: 9px solid #141414; background: #fff; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px #2a2a2a, 0 30px 50px -28px rgba(0,0,0,.5); }
.fa-phone__bar { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 11px 22px 6px; font-size: 12.5px; font-weight: 600; }
.fa-phone__isl { width: 82px; height: 23px; border-radius: 20px; background: #0a0a0a; }
.fa-scr { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fa-phone__who { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0 10px; font-size: 11.5px; font-weight: 500; border-bottom: 1px solid #ededed; background: #f7f7f7; }
.fa-phone__who span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; }
.fa-msgs { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; }
.fa-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 20px 8px; }
.fa-empty b { color: var(--ink); }
.fa-msg { max-width: 90%; font-size: 13.5px; line-height: 1.45; animation: em-pop .3s ease both; }
.fa-msg__meta { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.fa-msg__body { padding: 9px 12px; border-radius: 18px; border-bottom-left-radius: 5px; background: #ececeb; white-space: pre-line; }
.fa-msg--out { align-self: flex-end; }
.fa-msg--out .fa-msg__meta { text-align: right; }
.fa-msg--out .fa-msg__body { background: var(--ink); color: #fff; border-radius: 18px; border-bottom-right-radius: 5px; }
.fa-msg--urgent .fa-msg__body { background: #fdecea; box-shadow: inset 0 0 0 1.5px #eeb0a9; }
.fa-msg--sys { align-self: center; max-width: 100%; font-size: 11.5px; color: var(--muted); text-align: center; }
.fa-link { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; white-space: normal; }
.fa-link small { display: block; font-weight: 400; color: var(--muted); }
.fa-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 14px; border-top: 1px solid #ededed; background: #fafafa; }
.fa-chips:empty { display: none; }
.fa-chips__hint { width: 100%; font: 600 10.5px/1.2 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fa-chip { border: 1px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 12.5px; line-height: 1.3; text-align: left; }
.fa-chip:hover { background: var(--ink); color: #fff; }
.fa-chip--quiet { border-color: #c9c9c7; color: var(--muted); }
.fa-chip--red { border-color: var(--red); color: var(--red); }
.fa-chip--red:hover { background: var(--red); color: #fff; }

/* the form screen inside the phone */
.fa-form { background: #f4f4f3; animation: em-pop .3s ease both; }
.fa-form__top { flex: none; padding: 6px 16px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.fa-form__brand { font: 600 10.5px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fa-form__top h3 { margin-top: 6px; font: 600 19px/1.15 Inter, sans-serif; letter-spacing: -.04em; }
.fa-form__for { margin-top: 3px; font-size: 12px; color: var(--muted); }
.fa-form__body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 12px 12px 16px; }
.fa-form__note { font-size: 11.5px; color: var(--muted); padding: 0 4px 8px; }
.fa-qs { display: flex; flex-direction: column; gap: 6px; }
.fa-qs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 12px; background: #fff; font-size: 13px; line-height: 1.3; }
.fa-sw { flex: none; display: flex; align-items: center; gap: 7px; border: 0; background: none; padding: 2px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); }
.fa-sw i { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #bdbdbb; transition: background .2s; }
.fa-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.fa-sw b { width: 24px; text-align: left; font-weight: 600; }
.fa-sw[aria-checked="true"] i { background: var(--ink); }
.fa-sw[aria-checked="true"] i::after { transform: translateX(16px); }
.fa-sw[aria-checked="true"] b { color: var(--ink); }
.fa-consent { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 12.5px; line-height: 1.35; }
.fa-consent input { margin: 1px 0 0; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.fa-form__go { width: 100%; margin-top: 12px; padding: 13px 20px; }
.fa-form__err { margin-top: 8px; font-size: 12px; color: var(--red); }

/* clinic view */
.fa-appt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.fa-appt__time { font: 600 20px/1 Inter, sans-serif; letter-spacing: -.04em; padding-right: 14px; border-right: 1px dashed var(--dash); }
.fa-appt__time small { display: block; margin-top: 5px; font: 500 11px/1 Inter, sans-serif; letter-spacing: .02em; color: var(--muted); }
.fa-appt__who { font: 600 19px/1.1 Inter, sans-serif; letter-spacing: -.04em; }
.fa-appt__what { margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.fa-appt__st, .fa-pill { font: 600 11px/1 Inter, sans-serif; letter-spacing: .05em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--well); color: var(--ink-2); white-space: nowrap; }
.demo--ms-forms-aftercare .is-ok { background: #dcefe3; color: var(--green); }
.demo--ms-forms-aftercare .is-warn { background: #f7ead3; color: var(--amber); }
.demo--ms-forms-aftercare .is-red { background: #fbe1de; color: var(--red); }
.demo--ms-forms-aftercare .is-dark { background: var(--ink); color: #fff; }
.fa-checks { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fa-checks li { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); font-size: 12.5px; color: var(--muted); }
.fa-checks li .fa-pill { align-self: flex-start; }
.fa-sub { margin: 16px 0 8px; font: 600 11px/1 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fa-flags, .fa-after { display: flex; flex-direction: column; gap: 6px; }
.fa-flags__none { font-size: 13px; color: var(--muted); padding: 2px 2px 4px; }
.fa-flag { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; padding: 11px 12px; border-radius: 12px; background: var(--card-2); font-size: 13px; animation: em-pop .3s ease both; }
.fa-flag b { font-weight: 600; letter-spacing: -.01em; }
.fa-flag small { grid-column: 1; display: block; color: var(--muted); font-size: 12px; }
.fa-flag .fa-pill { grid-row: 1 / span 2; grid-column: 2; }
.fa-flag--red { box-shadow: inset 3px 0 0 var(--red); }
.fa-flag--warn { box-shadow: inset 3px 0 0 #d69a2a; }
.fa-flag--urgent { background: #fdecea; box-shadow: inset 0 0 0 1.5px #eeb0a9; }
.fa-flag--urgent b { color: var(--red); }

.fa-log__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fa-log__head h3 { font: 600 20px/1.15 Inter, sans-serif; letter-spacing: -.045em; }
.fa-log__body { height: 640px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #c2c2c0 transparent; }
.demo--ms-forms-aftercare .rf-log { display: flex; flex-direction: column; gap: 6px; }
.demo--ms-forms-aftercare .rf-log__empty { color: var(--muted); font-size: 14px; padding-top: 6px; }
.demo--ms-forms-aftercare .rf-log__item { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 2px 10px; padding: 11px 12px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); font-size: 13.5px; line-height: 1.45;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.demo--ms-forms-aftercare .rf-log__item.is-in { opacity: 1; transform: none; }
.demo--ms-forms-aftercare .rf-log__time { font: 600 11.5px/1.9 Inter, sans-serif; color: var(--muted); }
.demo--ms-forms-aftercare .rf-log__tag { grid-column: 2; justify-self: start; margin-top: 4px; font: 600 10.5px/1 Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: var(--well); color: var(--ink-2); }
.demo--ms-forms-aftercare .rf-log__item.is-hot .rf-log__text { color: var(--red); font-weight: 600; }
.demo--ms-forms-aftercare .rf-log__item.is-hot { box-shadow: inset 3px 0 0 var(--red); }
.demo--ms-forms-aftercare .rf-log__item.is-hot .rf-log__tag { background: #fbe1de; color: var(--red); }
.demo--ms-forms-aftercare .rf-log__item.is-done .rf-log__text::before { content: "✓ "; color: var(--orange); font-weight: 700; }

/* stats: Formix number cards with pill meters */
.fa-stats { margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fa-stats div { display: flex; flex-direction: column; padding: 18px 20px 20px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75), 0 1px 2px rgba(0,0,0,.05); }
.fa-stats dd { order: -1; margin: 0; font: 600 clamp(1.9rem, 3vw, 2.6rem)/1 Inter, sans-serif; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.fa-stats dt { margin-top: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.fa-meter { margin-top: 16px; height: 10px; border-radius: 999px; background: #d6d6d4; overflow: hidden; }
.fa-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width .5s ease; }
@keyframes em-pop { from { opacity: 0; transform: translateY(6px); } }

/* ---------- services (Formix rows with photo strips) ---------- */
.em-svc { margin-top: 44px; padding: 8px; border-radius: 26px; background: var(--well); display: flex; flex-direction: column; gap: 8px; }
.em-svc__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 20px; background: var(--card); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); }
.em-svc__txt { padding: 20px 26px; }
.em-svc__btn { display: flex; align-items: center; gap: 16px; width: 100%; border: 0; background: none; padding: 0; text-align: left; font: 600 19px/1.2 Inter, sans-serif; letter-spacing: -.035em; }
.em-svc__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); font: 600 12px/1 Inter, sans-serif; letter-spacing: .02em; color: var(--ink-2); }
.is-open .em-svc__ico { background: var(--ink); color: #fff; box-shadow: none; }
.em-svc__more { padding: 22px 0 10px; max-width: 26em; }
.em-svc__more p { color: var(--ink-2); font-size: 15px; }
.em-ticks { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.em-ticks li { position: relative; padding-left: 28px; font-size: 14.5px; font-weight: 500; }
.em-svc__row img { width: 100%; height: 84px !important; object-fit: cover; object-position: 50% 45%; transition: height .35s ease; }
.em-svc__row.is-open img { height: 360px !important; }
.em-svc__row:nth-child(1) img { object-position: 50% 38%; }

/* ---------- how (process cards) ---------- */
.em-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px 60px; }
.em-how__txt { align-self: start; }
.em-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; }
.em-link i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: 14px; }
.em-steps { padding: 8px; border-radius: 26px; background: var(--well); display: flex; flex-direction: column; gap: 8px; }
.em-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
.em-step__n { padding: 12px 0; border-radius: 16px; background: var(--card); text-align: center; font: 500 12px/1 Inter, sans-serif; color: var(--ink-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); }
.em-step > div { padding: 22px 24px 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); }
.em-step__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card-2); font-weight: 600; }
.em-step h3 { margin-top: 44px; font: 600 20px/1.2 Inter, sans-serif; letter-spacing: -.04em; }
.em-step p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 30em; }
.em-step--dark .em-step__n, .em-step--dark > div { background: #111; color: #fff; box-shadow: none; }
.em-step--dark .em-step__n { color: #ddd; }
.em-step--dark .em-step__ico { background: #1c1c1c; box-shadow: inset 0 0 0 1px #333; color: #fff; }
.em-step--dark p { color: #c4c4c4; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .fa-grid { grid-template-columns: 1fr 1fr; }
  .fa-card--log { grid-column: 1 / -1; }
  .fa-log__body { height: 380px; }
  .fa-stats { grid-template-columns: 1fr 1fr; }
  .em-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .em-logos li:nth-child(4) { border-left: 0; }
  .em-logos li:nth-child(n+4) { border-top: 1px dashed var(--dash); }
}
@media (max-width: 900px) {
  .em-nav__links { display: none; }
  .em-hero { grid-template-columns: 1fr; }
  .em-hero__txt { border-right: 0; border-bottom: 1px dashed var(--dash); }
  .em-demo__head, .em-how { grid-template-columns: 1fr; }
  .fa-rail li { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; font-size: 13px; }
}
@media (max-width: 680px) {
  .em-page::before { left: 10px; } .em-page::after { right: 10px; }
  .em-nav { padding: 12px 16px; }
  .em-hero, .em-logos, .em-sec { margin: 0 10px; }
  .em-hero__txt { padding: 44px 8px 36px; }
  .em-trust { padding-top: 40px; }
  .em-hero__art { padding: 30px 8px 40px; }
  .em-float { font-size: 13px; padding: 10px 14px 10px 10px; }
  .em-float--a { left: 0; top: 12%; }
  .em-float--b { right: 0; bottom: 8%; }
  .em-logos { grid-template-columns: 1fr 1fr; }
  .em-logos li { padding: 20px 8px; font-size: 16px; border-left: 0; border-top: 0; }
  .em-logos li:nth-child(even) { border-left: 1px dashed var(--dash); }
  .em-logos li:nth-child(n+3) { border-top: 1px dashed var(--dash); }
  .em-sec { padding: 56px 8px; }
  .fa-stage { padding: 6px; border-radius: 20px; }
  .fa-grid { grid-template-columns: 1fr; }
  .fa-card--log { grid-column: auto; }
  .fa-rail { gap: 4px; }
  .fa-rail li { padding: 8px 6px; font-size: 11.5px; border-radius: 10px; }
  .fa-rail span { font-size: 10px; }
  .fa-phone { height: 600px; }
  .fa-log__body { height: 340px; }
  .fa-checks { grid-template-columns: 1fr; }
  .fa-appt { grid-template-columns: auto minmax(0, 1fr); }
  .fa-appt__st { grid-column: 1 / -1; justify-self: start; }
  .fa-stats div { padding: 14px 14px 16px; }
  .fa-stats dt { font-size: 13px; }
  .em-svc__row { grid-template-columns: 1fr; }
  .em-svc__row img { order: -1; height: 70px !important; }
  .em-svc__row.is-open img { height: 220px !important; min-height: 0; }
  .em-svc__txt { padding: 16px; }
  .em-step h3 { margin-top: 26px; }
  .em-step > div { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo--ms-forms-aftercare *, .demo--ms-forms-aftercare *::before, .demo--ms-forms-aftercare *::after { animation: none !important; transition: none !important; }
}

/* ---- responsive pass 2026-09-22 ---- */
/* below desktop the log grows with its content instead of a tall empty box before the demo starts */
@media (max-width: 1180px) {
  .fa-log__body { height: auto; min-height: 96px; max-height: 380px; }
}
/* tablet: the clinic column is narrow next to the phone, so the booking state drops under the name */
@media (min-width: 681px) and (max-width: 900px) {
  .fa-appt { grid-template-columns: auto minmax(0, 1fr); }
  .fa-appt__st { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .fa-card--log .em-btn, .fa-chip { min-height: 40px; }
}
