/* Missed Call Text-Back. Each section acts out its own topic: a call ringing out, missed calls piling up,
   the text going out, the reply landing in the inbox, repeat calls skipped, a second line taking over. */
.mc section { padding-block: 96px; }
.mc .h3 { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 18px; }
.mc-sec-head { display: grid; gap: 12px; margin-bottom: 44px; max-width: 760px; }
.mc [data-s] { transition: opacity 0.45s ease, transform 0.45s ease; }
.mc [data-s].off { opacity: 0; transform: translateY(10px); }

/* hero: the phone rings, the call is missed, the text goes out, the reply and the booking follow */
.mc-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; padding-top: 56px; }
.mc-hero-copy { display: grid; gap: 22px; }
.mc-back { font-size: 14px; color: var(--muted); }
.mc-back:hover { color: var(--ink); }
.mc-hero h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.02; }
.mc-lead { font-size: 18px; color: var(--muted); max-width: 56ch; }
.mc-hero .cta { width: max-content; }
.mc-phone { position: relative; justify-self: center; width: min(360px, 100%); }
.mc-screen { position: relative; border-radius: 44px; background: var(--ink); padding: 14px; box-shadow: 0 40px 80px -40px rgba(19, 21, 17, 0.55); }
.mc-screen > * { position: relative; }
.mc-status { display: flex; justify-content: space-between; color: #fff; font: 500 13px var(--mono); padding: 8px 18px 10px; }
.mc-dots { display: flex; gap: 3px; align-items: center; }
.mc-dots i { width: 4px; height: 4px; border-radius: 50%; background: #fff; }
.mc-thread, .mc-call { background: #fff; border-radius: 32px; min-height: 470px; padding: 26px 18px; }
.mc-thread { display: flex; flex-direction: column; gap: 10px; }
.mc-call { position: absolute; inset: 44px 14px 14px; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; }
.mc-call b { font-size: 20px; margin-top: 22px; }
.mc-call small { color: var(--muted); font-size: 15px; }
.mc-ring { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; }
.mc-ring svg { width: 34px; fill: var(--ink); animation: mc-shake 1s ease-in-out infinite; }
.mc-ring i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime); animation: mc-pulse 1.6s ease-out infinite; }
.mc-ring i + i { animation-delay: 0.8s; }
@keyframes mc-pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes mc-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } }
.mc-missed { display: flex; align-items: center; gap: 8px; align-self: center; font-size: 13px; color: var(--muted); background: var(--soft); border-radius: 99px; padding: 7px 14px; }
.mc-missed svg { width: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mc-out, .mc-in { max-width: 82%; padding: 12px 15px; border-radius: 20px; font-size: 15px; line-height: 1.45; }
.mc-out { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.mc-link { display: block; margin-top: 8px; font-weight: 600; color: var(--lime); }
.mc-auto { align-self: flex-end; font: 12px var(--mono); color: var(--faint); }
.mc-in { align-self: flex-start; background: var(--soft); border-bottom-left-radius: 6px; }
.mc-booked { align-self: center; display: flex; align-items: center; gap: 8px; margin-top: auto; background: var(--lime); border-radius: 99px; padding: 10px 18px; font-weight: 600; font-size: 14px; }
.mc-booked svg, .mc-ticks li::before { flex: none; }
.mc-booked svg { width: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mc-tag { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); font: 12px var(--mono); color: var(--faint); white-space: nowrap; }

/* the cost: a day of calls that nobody answered, counted one by one */
.mc-cost { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.mc-cost-copy { display: grid; gap: 16px; }
.mc-cost-copy p { color: var(--muted); font-size: 17px; }
.mc-log { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; background: var(--bg); }
.mc-log-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.mc-log-head span { font-size: 14px; color: var(--muted); }
.mc-log-head em { font-style: normal; font: 600 30px var(--font); color: var(--ink); margin-left: 6px; }
.mc-log ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mc-log li { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--soft); font-size: 14px; transition: opacity 0.4s, transform 0.4s; }
.mc-log li span { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.mc-log li i { font-style: normal; font-size: 12px; color: var(--muted); }
.mc-log li::after { content: ""; grid-column: 1 / -1; height: 2px; border-radius: 2px; background: var(--ink); transform-origin: left; transform: scaleX(0); transition: transform 1.2s ease 0.2s; opacity: 0.18; }
.mc-log li.gone::after { transform: scaleX(1); }
.mc-log li.wait { opacity: 0; transform: translateY(8px); }
.mc-log-foot { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* what it includes: five small working demos */
.mc-feats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.mc-f { grid-column: span 2; display: grid; align-content: start; gap: 12px; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.mc-f1, .mc-f2 { grid-column: span 3; }
.mc-f h3 { font-size: 20px; margin-top: 6px; }
.mc-f > p { color: var(--muted); font-size: 15px; }
.mc-demo { position: relative; min-height: 200px; border-radius: 20px; background: var(--soft); padding: 18px; display: grid; align-content: center; gap: 10px; overflow: hidden; }
.mc-ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.mc-ticks li { display: flex; gap: 10px; }
.mc-ticks li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--lime); }
.mc-toggle, .mc-chan { display: inline-flex; justify-self: start; background: #fff; border-radius: 99px; padding: 4px; font-size: 13px; }
.mc-toggle span, .mc-chan span { padding: 6px 12px; border-radius: 99px; transition: background 0.4s; }
.mc-toggle span.on, .mc-chan span.on { background: var(--ink); color: #fff; }
.mc-bubble { position: relative; background: var(--ink); color: #fff; border-radius: 18px 18px 6px 18px; padding: 14px 16px; font-size: 15px; justify-self: end; max-width: 92%; min-height: 76px; }
.mc-bubble p { transition: opacity 0.4s; }
.mc-bubble .mc-v2 { position: absolute; inset: 14px 16px; opacity: 0; }
.mc-d1-after .mc-v1 { opacity: 0; }
.mc-d1-after .mc-v2 { opacity: 1; }
.mc-bubble mark { background: var(--lime); color: var(--ink); border-radius: 4px; padding: 0 3px; }
.mc-inbox { display: grid; gap: 6px; }
.mc-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 9px 12px; font-size: 13px; transition: transform 0.5s, opacity 0.5s; }
.mc-row small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-row em { font-style: normal; font: 11px var(--mono); color: var(--faint); }
.av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--line); }
.mc-new .av { background: var(--lime); }
.mc-d2-wait .mc-new { opacity: 0; transform: translateY(-14px); }
.mc-d2-wait .mc-row:not(.mc-new) { transform: translateY(-44px); }
.mc-assign { justify-self: end; font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; border-radius: 99px; padding: 6px 12px; transition: opacity 0.4s 0.6s; }
.mc-d2-wait .mc-assign { opacity: 0; transition-delay: 0s; }
.mc-dup { display: grid; grid-template-columns: 62px 1fr; gap: 2px 10px; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; transition: opacity 0.4s, transform 0.4s; }
.mc-dup span { grid-row: span 2; font: 12px var(--mono); color: var(--muted); align-self: center; }
.mc-dup i { font-style: normal; font-size: 12px; color: var(--muted); }
.mc-dup i.sent { color: var(--ink); font-weight: 600; }
.mc-dup i.sent::before { content: "\2713  "; }
.mc-dup.wait { opacity: 0; transform: translateX(-12px); }
.mc-line { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; background: #fff; border-radius: 14px; padding: 10px 12px; font-size: 13px; }
.mc-line small { color: var(--muted); grid-column: 1; }
.mc-line .x, .mc-line .ok { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 600; transition: opacity 0.4s, transform 0.4s; }
.mc-line .x { font-size: 20px; color: var(--muted); }
.mc-line .ok { background: var(--lime); border-radius: 99px; padding: 4px 10px; font-size: 12px; }
.mc-route { width: 100%; height: 40px; }
.mc-route path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 260; stroke-dashoffset: 260; transition: stroke-dashoffset 1s ease; }
.mc-line .x, .mc-line .ok { opacity: 0; transform: scale(0.6); }
.mc-x .mc-la .x, .mc-ok .mc-lb .ok { opacity: 1; transform: none; }
.mc-go .mc-route path { stroke-dashoffset: 0; }
.mc-wa { background: #fff; border-radius: 16px 16px 16px 6px; padding: 12px 14px; font-size: 14px; transition: opacity 0.4s, transform 0.4s; }
.mc-wa small { display: block; margin-top: 6px; font: 11px var(--mono); color: var(--muted); }
.mc-d5-sms .mc-wa { opacity: 0.25; transform: translateY(6px); }

/* real situations: each card plays its own short timeline */
.mc-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mc-case { display: grid; align-content: start; gap: 14px; border-radius: var(--r); background: var(--soft); padding: 24px; }
.mc-clock { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.mc-clock span { font: 600 18px var(--mono); color: var(--ink); background: #fff; border-radius: 12px; padding: 6px 10px; }
.mc-case ol { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 10px; border-left: 2px solid var(--line); }
.mc-case li { position: relative; font-size: 14px; }
.mc-case li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.mc-case li.mc-win { font-weight: 600; }
.mc-case li.mc-win::before { background: var(--lime); }
.mc-case h3 { font-size: 19px; margin-top: 6px; }
.mc-case > p { font-size: 14px; color: var(--muted); }

/* how it works: the line fills step by step, the test checks itself */
.mc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.mc-steps::before, .mc-steps::after { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: var(--line); }
.mc-steps::after { background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 0.3s linear; }
.mc-steps li { position: relative; z-index: 1; display: grid; gap: 10px; align-content: start; }
.mc-steps li > span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); font-weight: 600; transition: background 0.3s, border-color 0.3s; }
.mc-steps li.done > span { background: var(--lime); border-color: var(--ink); }
.mc-steps h3 { font-size: 19px; }
.mc-steps p { font-size: 14px; color: var(--muted); }
.mc-test { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-test i { font-style: normal; font-size: 12px; border-radius: 99px; padding: 5px 10px; background: var(--soft); transition: background 0.3s; }
.mc-test i.ok { background: var(--lime); }
.mc-test i.ok::before { content: "\2713  "; }

/* who does what: the tasks tick off */
.mc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mc-col { border-radius: var(--r); padding: 28px; background: var(--ink); color: #fff; }
.mc-col2 { background: var(--soft); color: var(--ink); }
.mc-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mc-col li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.mc-col li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 2px solid currentColor; opacity: 0.5; transition: background 0.3s, opacity 0.3s; }
.mc-col li.ok::before { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23131511' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--lime); opacity: 1; }
.mc-note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; padding: 16px 20px; }
.mc-note b { color: var(--ink); }

/* connected services: a signal runs along the chips */
.mc-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mc-hub { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-chips a { border: 1px solid var(--line); border-radius: 99px; padding: 9px 14px; font-size: 14px; transition: background 0.35s, border-color 0.35s; }
.mc-chips a:hover, .mc-chips a.lit { background: var(--lime); border-color: var(--lime); }
.mc-chips a:focus-visible, .mc-back:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.still .mc *, .still .mc *::before, .still .mc *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { .mc *, .mc *::before, .mc *::after { animation: none !important; transition: none !important; } }
@media (max-width: 1000px) {
  .mc-hero, .mc-cost, .mc-split, .mc-links { grid-template-columns: 1fr; gap: 40px; }
  .mc-feats { grid-template-columns: 1fr 1fr; }
  .mc-f, .mc-f1, .mc-f2 { grid-column: span 1; }
  .mc-case-grid { grid-template-columns: 1fr; }
  .mc-steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .mc-steps::before, .mc-steps::after { display: none; }
}
@media (max-width: 640px) {
  .mc section { padding-block: 64px; }
  .mc-feats, .mc-steps { grid-template-columns: 1fr; }
  .mc-log li { grid-template-columns: 64px 1fr; }
  .mc-log li i { grid-column: 2; }
}
