/* The missed-call assistant page and its calculator (web/missed-call-assistant.html,
 * web/missed-call-calculator.html). Added 2026-10-09 (prompt 227), redesigned the same day
 * (prompt 229) after the Director's review. Uses the tokens in studio.css; loads after it. */

.mca { padding: 0 32px; }
.mca-band { padding: 64px 32px; }
.mca-in { max-width: 1100px; margin: 0 auto; }
.mca h2, .mca-band h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 32px; line-height: 1.18; margin: 0 0 14px; text-wrap: balance; }
.mca .lbl, .mca-band .lbl { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.btn-ghost { background: var(--surface); color: var(--teal); border: 1px solid var(--line-strong); }
.btn-teal { background: var(--teal); color: var(--white); border: 1px solid var(--teal); }

/* Hero: text on the left, the call on the right */
.mca-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 48px 0 44px; }
.mca-hero-txt { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.mca-hero h1 { font-family: 'Fraunces', serif; font-weight: 900; font-size: 52px; line-height: 1.05; color: var(--teal); margin: 0; text-wrap: balance; }
.mca-hero p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--hiw-body); max-width: 62ch; text-wrap: pretty; }
.mca-hero p + p { font-size: 16px; }
.mca-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.mca-down { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--teal); font-weight: 600; font-size: 16px; text-decoration: none; }
.mca-down:hover { text-decoration: underline; text-underline-offset: 3px; }
.mca-down .arrow { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--teal); display: flex; align-items: center; justify-content: center; }
.mca-down svg { width: 18px; height: 18px; stroke: var(--teal); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* The call card */
.mca-call-wrap { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; }
.mca-call { width: 360px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 24px 60px rgba(20,86,75,.14); padding: 22px; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px; }
.mca-call .top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted2); }
.mca-call .top b { color: var(--teal); font-weight: 600; }
.mca-call .who { display: flex; align-items: center; gap: 14px; }
.mca-call .who .ph { width: 54px; height: 54px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mca-call .who .ph svg { width: 24px; height: 24px; stroke: var(--white); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mca-call .who strong { display: block; font-size: 17px; }
.mca-call .who span { color: var(--muted2); font-size: 14px; }
.mca-stages { position: relative; height: 176px; }
.mca-st { position: absolute; inset: 0 0 auto 0; opacity: 0; background: var(--canvas); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.mca-st .hd { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.mca-st.caller .hd { color: var(--accent); }
.mca-st .hd span:last-child { font-variant-numeric: tabular-nums; }
.mca-st .said { font-size: 13.5px; line-height: 1.45; color: var(--hiw-body); font-style: italic; text-align: center; margin: 0; }
.mca-st .sent { background: var(--card2-bg); color: var(--card2-ink); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; margin: 0; }
.mca-wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 44px; }
.mca-wave i { display: block; width: 5px; border-radius: 3px; background: var(--teal); transform-origin: center; }
.mca-st.caller .mca-wave i { background: var(--accent); }
.mca-wave i:nth-child(1){height:18px}.mca-wave i:nth-child(2){height:34px}.mca-wave i:nth-child(3){height:26px}.mca-wave i:nth-child(4){height:44px}
.mca-wave i:nth-child(5){height:30px}.mca-wave i:nth-child(6){height:40px}.mca-wave i:nth-child(7){height:22px}.mca-wave i:nth-child(8){height:36px}
.mca-wave i:nth-child(9){height:28px}.mca-wave i:nth-child(10){height:42px}.mca-wave i:nth-child(11){height:20px}.mca-wave i:nth-child(12){height:32px}
.mca-call .foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted2); border-top: 1px solid var(--line); padding-top: 12px; }
.mca-call .foot b { color: var(--teal); }

/* Without motion, the last step shows still */
.mca-st:last-child { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    @keyframes mca-ring { 0%,100%{transform:rotate(0)} 10%{transform:rotate(-12deg)} 20%{transform:rotate(12deg)} 30%{transform:rotate(-8deg)} 40%{transform:rotate(0)} }
    @keyframes mca-pulse { 0%{box-shadow:0 0 0 0 rgba(20,86,75,.45)} 70%{box-shadow:0 0 0 18px rgba(20,86,75,0)} 100%{box-shadow:0 0 0 0 rgba(20,86,75,0)} }
    @keyframes mca-wv { 0%,100%{transform:scaleY(.25)} 50%{transform:scaleY(1)} }
    @keyframes mca-bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
    @keyframes mca-s1 { 0%{opacity:0;transform:translateY(10px)} 1.5%,12.79%{opacity:1;transform:none} 14.29%,100%{opacity:0;transform:translateY(-6px)} }
    @keyframes mca-s2 { 0%,14.29%{opacity:0;transform:translateY(10px)} 15.79%,27.07%{opacity:1;transform:none} 28.57%,100%{opacity:0;transform:translateY(-6px)} }
    @keyframes mca-s3 { 0%,28.57%{opacity:0;transform:translateY(10px)} 30.07%,41.36%{opacity:1;transform:none} 42.86%,100%{opacity:0;transform:translateY(-6px)} }
    @keyframes mca-s4 { 0%,42.86%{opacity:0;transform:translateY(10px)} 44.36%,55.64%{opacity:1;transform:none} 57.14%,100%{opacity:0;transform:translateY(-6px)} }
    @keyframes mca-s5 { 0%,57.14%{opacity:0;transform:translateY(10px)} 58.64%,69.93%{opacity:1;transform:none} 71.43%,100%{opacity:0;transform:translateY(-6px)} }
    @keyframes mca-s6 { 0%,71.43%{opacity:0;transform:translateY(10px)} 72.93%,84.21%{opacity:1;transform:none} 85.71%,100%{opacity:0;transform:translateY(-6px)} }
    @keyframes mca-s7 { 0%,85.71%{opacity:0;transform:translateY(10px)} 87.21%,98.5%{opacity:1;transform:none} 100%{opacity:0} }
    .mca-call .who .ph { animation: mca-pulse 2.4s ease-out infinite; }
    .mca-call .who .ph svg { animation: mca-ring 2.4s ease-in-out infinite; }
    .mca-wave i { animation: mca-wv 1s ease-in-out infinite; }
    .mca-wave i:nth-child(3n+2) { animation-delay: .15s; } .mca-wave i:nth-child(3n) { animation-delay: .3s; }
    .mca-wave i:nth-child(4n) { animation-delay: .45s; }
    .mca-down .arrow { animation: mca-bob 2s ease-in-out infinite; }
    .mca-st { animation: 28s infinite; }
    .mca-st:last-child { opacity: 0; }
    .mca-st:nth-child(1) { animation-name: mca-s1; } .mca-st:nth-child(2) { animation-name: mca-s2; }
    .mca-st:nth-child(3) { animation-name: mca-s3; } .mca-st:nth-child(4) { animation-name: mca-s4; }
    .mca-st:nth-child(5) { animation-name: mca-s5; } .mca-st:nth-child(6) { animation-name: mca-s6; }
    .mca-st:nth-child(7) { animation-name: mca-s7; }
}

/* What goes wrong, and what is done about it */
.mca-green-dk { background: var(--teal); }
.mca-green-dk h2 { color: var(--white); max-width: 30ch; margin-bottom: 26px; }
.mca-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mca-cell { border-radius: var(--radius-lg); padding: 22px; }
.mca-green-dk .mca-cell { background: var(--canvas); display: flex; flex-direction: column; gap: 10px; }
.mca-cell .bad, .mca-cell .fix { margin: 0; display: flex; gap: 8px; line-height: 1.5; }
.mca-cell .bad { color: var(--card1-ink); font-weight: 600; }
.mca-cell .fix { color: var(--teal); }
.mca-cell .bad::before { content: "✕"; flex: 0 0 auto; }
.mca-cell .fix::before { content: "✓"; flex: 0 0 auto; font-weight: 700; }

/* What happens on a call */
.mca-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mca-white .mca-cell { background: var(--canvas); }
.mca-white .mca-cell h3 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 19px; line-height: 1.25; margin: 0 0 6px; }
.mca-white .mca-cell p { margin: 0; line-height: 1.55; font-size: 15px; color: var(--hiw-body); }

/* How it's set up, and the price */
.mca-setup { padding: 72px 0; display: flex; flex-direction: column; gap: 36px; }
.mca-setup .lbl { color: var(--accent); }
.mca-setup h2 { max-width: 34ch; margin: 8px 0 0; font-size: 34px; }
.mca-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--teal); }
.mca-steps > div { padding: 22px 22px 0 0; }
.mca-steps .n { font-family: 'Fraunces', serif; font-weight: 900; font-size: 30px; color: var(--teal); }
.mca-steps h3 { margin: 6px 0; font-size: 17px; font-weight: 600; }
.mca-steps p { margin: 0; line-height: 1.55; color: var(--hiw-body); }
.mca-plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 50px rgba(28,26,23,.07); overflow: hidden; display: flex; flex-wrap: wrap; }
.mca-plan .l { flex: 1 1 380px; min-width: 0; padding: 36px; display: flex; flex-direction: column; gap: 22px; border-right: 1px solid var(--line); }
.mca-plan .l .lbl { color: var(--teal); }
.mca-plan .amts { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-end; }
.mca-plan .big { font-family: 'Fraunces', serif; font-weight: 900; font-size: 64px; line-height: 1; color: var(--teal); }
.mca-plan .mid { font-family: 'Fraunces', serif; font-weight: 600; font-size: 30px; line-height: 1; color: var(--ink); }
.mca-plan .per { color: var(--muted2); margin-top: 6px; }
.mca-plan .l .btn { align-self: flex-start; }
.mca-plan .r { flex: 1 1 340px; min-width: 0; padding: 36px; background: var(--canvas); }
.mca-plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; color: var(--hiw-body); line-height: 1.45; }
.mca-plan li { display: flex; gap: 12px; }
.mca-plan li::before { content: "✓"; color: var(--teal); font-weight: 700; flex: 0 0 auto; }

/* Free first step */
.mca-green { background: var(--card2-bg); color: var(--card2-ink); }
.mca-green h2 { color: var(--card2-ink); }
.mca-green p { margin: 0 0 22px; font-size: 17px; line-height: 1.6; max-width: 62ch; }
.mca-green .btn-out { background: var(--surface); color: var(--card2-ink); border: 1px solid var(--card2-ink); }

/* Fewer questions reach your phone */
.mca-site { padding: 64px 0; }
.mca-site h2 { max-width: 26ch; }
.mca-site p { font-size: 17px; line-height: 1.6; color: var(--hiw-body); max-width: 64ch; margin: 0 0 22px; }

/* Questions owners ask: one column, each opens on click */
.mca-faq { max-width: 820px; border-bottom: 1px solid var(--line); }
.mca-faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.mca-faq summary { cursor: pointer; font-size: 18px; font-weight: 600; color: var(--ink); }
.mca-faq details p { margin: 10px 0 0; line-height: 1.6; color: var(--hiw-body); max-width: 70ch; }

/* The calculator */
.calc-head { padding: 56px 0 28px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.calc-intro { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.calc-try { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; padding: 22px 24px; border: 2px solid var(--teal); border-radius: var(--radius-lg); background: var(--card2-bg); color: var(--card2-ink); }
.calc-try h2 { font-size: 24px; color: var(--card2-ink); margin: 0; }
.calc-head .calc-try p { font-size: 15px; color: var(--card2-sub); max-width: none; }
.calc-try .btn { justify-content: center; text-align: center; }
.calc-head h1 { font-family: 'Fraunces', serif; font-weight: 900; font-size: 46px; line-height: 1.05; color: var(--teal); margin: 4px 0 0; max-width: 20ch; text-wrap: balance; }
.calc-head p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--hiw-body); max-width: 62ch; }
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 64px; }
.calc-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.calc-box h2 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 22px; margin: 0; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 12px; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.calc-row label { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.calc-row small { color: var(--muted); font-size: 13px; font-weight: 400; }
.calc-row input { width: 100%; font: 500 16px 'Inter', sans-serif; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--canvas); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 10px; text-align: right; box-sizing: border-box; }
.calc-out .big { font-family: 'Fraunces', serif; font-weight: 900; font-size: 52px; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums; }
.calc-out .fine { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.calc-lines { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.calc-lines div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
.calc-lines dt { color: var(--muted); }
.calc-lines dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.calc-verdict { font-weight: 600; border-radius: var(--radius); padding: 12px 14px; border: 1px solid currentColor; color: var(--muted); }
.calc-verdict.good { color: var(--success); }
.calc-verdict.warn { color: var(--success); }
.calc-verdict.bad { color: var(--error); }
.calc-next { display: flex; flex-direction: column; gap: 10px; }
.calc-next .btn { text-align: center; }

@media (max-width: 960px) {
    .mca-grid, .mca-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .mca, .mca-band { padding-left: 20px; padding-right: 20px; }
    .mca-hero h1 { font-size: 38px; }
    .mca-hero .mca-ctas { flex-direction: column; align-items: center; }
    .mca-hero .mca-ctas .btn-ghost { order: -1; }
    .mca-setup h2 { font-size: 28px; }
    .calc-head h1 { font-size: 34px; }
    .mca-grid, .mca-steps, .calc, .calc-head { grid-template-columns: 1fr; }
    .mca-plan .l { border-right: 0; border-bottom: 1px solid var(--line); }
    .mca-plan .big { font-size: 52px; }
    .calc-row { grid-template-columns: minmax(0, 1fr) 110px; }
}
