/* The public site (home, pricing, book a demo, privacy, terms). Loaded only on those pages, after design.css and app.css.
   It is dark only: layout.ts puts data-theme="dark" on the page, so every colour below is a token from design.css.
   Class prefix: ms-. Nothing here writes the product's name. */

.ms-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.rw .ms-page a { color: inherit; }
.ms-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ms-page :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- type ---------- */
.ms-eyebrow { font: 700 12px/16px var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.ms-eyebrow.brass { color: var(--ring); }
.ms-h1 { font: 700 clamp(40px, 5.4vw, 72px)/1.02 var(--font-display); letter-spacing: -.03em; }
.ms-h1 em { font-style: normal; color: var(--brand); }
.ms-h2 { font: 700 44px/48px var(--font-display); letter-spacing: -.025em; }
.ms-h2.sm { font-size: 36px; line-height: 42px; letter-spacing: -.02em; }
.ms-h2.xs { font-size: 28px; line-height: 34px; letter-spacing: -.02em; }
.ms-h2.cta { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em; }
.ms-h3 { font: 650 19px/26px var(--font-display); }
.ms-lead { font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.ms-lead.hero { font-size: 19px; line-height: 30px; max-width: 32em; }
.ms-small { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ms-num { font-variant-numeric: tabular-nums; }
.ms-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }

/* ---------- sections ---------- */
.ms-sec { padding: 96px 0; }
.ms-sec.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ms-sec.tight { padding: 72px 0; }
.ms-sec.hero { padding: 80px 0 96px; }
.ms-stack { display: flex; flex-direction: column; gap: 40px; }
.ms-row { display: flex; flex-wrap: wrap; gap: 64px; }

/* ---------- header and footer ---------- */
.ms-top { border-bottom: 1px solid var(--line); }
.ms-top .ms-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.ms-logo { display: flex; align-items: center; min-height: 44px; }
.ms-logo img { height: 32px; width: auto; display: block; }
.ms-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 600; }
.rw .ms-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.rw .ms-nav a:hover { color: var(--brand); }
.rw .ms-nav a.ms-btn { color: var(--on-brand); }
.rw .ms-nav a.ms-btn:hover { color: var(--on-brand); }
.ms-menu { display: none; }
.ms-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 12px; font-weight: 600; font-size: 15px; }
.ms-menu summary::-webkit-details-marker { display: none; }
.ms-menu[open] { flex: 1 1 100%; }
.ms-menu[open] summary { background: var(--surface); display: flex; width: max-content; margin-left: auto; }
.ms-menu .ms-nav { flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
.ms-menu .ms-nav a { border-bottom: 1px solid var(--line); }
.ms-menu .ms-nav a.ms-btn { margin-top: 12px; border-bottom: 0; justify-content: center; }
.ms-foot { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ms-foot .ms-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.ms-foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.rw .ms-foot a { color: var(--ink-muted); display: inline-flex; align-items: center; min-height: 44px; }
.rw .ms-foot a:hover { color: var(--ink); }
.ms-foot strong { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.ms-foot strong span { color: var(--brand); }

/* ---------- buttons and badges ---------- */
.ms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 22px; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand); font: 600 16px/20px var(--font-sans); text-decoration: none; cursor: pointer; transition: transform var(--duration-fast) ease, background-color var(--duration-fast) ease; }
.rw .ms-btn { color: var(--on-brand); }
.ms-btn:hover { background: var(--ink); border-color: var(--ink); }
.ms-btn:active { transform: translateY(1px); }
.ms-btn.sm { min-height: 44px; padding: 11px 18px; font-size: 15px; }
.ms-btn.ghost, .rw .ms-btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.ms-btn.ghost:hover { background: var(--surface); border-color: var(--ink); }
.ms-btn.block { width: 100%; }
.ms-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font: 600 13px/16px var(--font-sans); letter-spacing: .01em; white-space: nowrap; background: var(--surface-sunk); color: var(--ink); }
.ms-badge.booked { background: var(--good-bg); color: var(--good); }
.ms-badge.afterHours { background: var(--ring-tint); color: var(--ring-ink); }
.ms-badge.businessHours { background: var(--brand-tint); color: var(--brand); }
.ms-badge.tookMessage { background: var(--info-bg); color: var(--info); }
.ms-badge.sm { padding: 3px 8px; font-size: 12px; }
.ms-badge.live { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-tint); color: var(--brand); }
.ms-badge.live::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--ring); }
.ms-ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ms-ico.sm { width: 20px; height: 20px; }

/* ---------- cards ---------- */
.ms-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.ms-sec.alt .ms-card { background: var(--canvas); }
.ms-card .ms-ico { color: var(--brand); }
.ms-card p { color: var(--ink-muted); }
.ms-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- the pulse: the only looping animation ---------- */
.ms-pulse { position: relative; width: 52px; height: 52px; flex: none; display: flex; align-items: center; justify-content: center; }
.ms-pulse.lg { width: 56px; height: 56px; }
.ms-pulse i { position: absolute; inset: 0; border-radius: 999px; border: 2px solid var(--brand); animation: ms-pulse 1800ms ease-out infinite; }
.ms-pulse i + i { animation-delay: 900ms; }
.ms-pulse b { width: 16px; height: 16px; border-radius: 999px; background: var(--ring); }
@keyframes ms-pulse { 0% { transform: scale(.55); opacity: .6; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- hero ---------- */
.ms-js .ms-nojs { display: none; }
html:not(.ms-js) .ms-jsonly { display: none; }
.ms-hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ms-hero-art { flex: 0 1 360px; min-width: 0; margin: 0 auto; }
.ms-hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.ms-line { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.ms-line .who { display: flex; align-items: center; gap: 16px; }
.ms-line .tag { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.ms-line .number { font: 500 clamp(26px, 3vw, 36px)/1.2 var(--font-mono); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ms-line .note { flex-basis: 100%; }
.ms-phone { background: var(--surface-sunk); border: 1px solid var(--line); border-radius: 44px; padding: 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.ms-screen { background: var(--canvas); border-radius: 32px; padding: 24px 18px; display: flex; flex-direction: column; gap: 14px; min-height: 600px; box-sizing: border-box; }
.ms-screen .bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ms-screen .today { font: 700 28px/34px var(--font-display); letter-spacing: -.02em; }
.ms-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ms-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; }
.ms-stat b { display: block; font: 600 28px/32px var(--font-display); font-variant-numeric: tabular-nums; }
.ms-stat span { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.ms-follow { margin-top: 6px; font: 650 16px/24px var(--font-sans); }
.ms-call { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.ms-call .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ms-call .top b { font-weight: 600; }
.ms-call p { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ms-caption { margin-top: 12px; text-align: center; font-size: 13px; color: var(--ink-muted); }

/* ---------- day and night ---------- */
.ms-hours-art { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 32px 48px; box-sizing: border-box; }
.ms-hours-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ms-circle { position: relative; width: min(100%, 400px); aspect-ratio: 1 / 1; }
.ms-circle .disc { position: absolute; inset: 0; border-radius: 999px; background: conic-gradient(var(--ring) 0deg var(--a), var(--brand) var(--a) var(--b), var(--ring) var(--b) 360deg); }
.ms-circle .inner { position: absolute; inset: 13%; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.ms-circle .inner b { font: 700 28px/34px var(--font-display); letter-spacing: -.02em; }
.ms-circle .hr { position: absolute; font-size: 13px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.ms-circle .hr.t { top: -28px; left: 50%; transform: translateX(-50%); }
.ms-circle .hr.r { right: -46px; top: 50%; transform: translateY(-50%); }
.ms-circle .hr.b { bottom: -28px; left: 50%; transform: translateX(-50%); }
.ms-circle .hr.l { left: -46px; top: 50%; transform: translateY(-50%); }
.ms-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; font-size: 14px; margin-top: 8px; }
.ms-legend span { display: flex; align-items: center; gap: 8px; }
.ms-legend i { width: 12px; height: 12px; border-radius: 3px; }
.ms-example { background: var(--canvas); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.ms-example .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- voices ---------- */
.ms-voices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ms-vcard, .ms-vfallback { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; padding: 20px; min-height: 112px; box-sizing: border-box; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: inherit; }
.ms-vcard { cursor: pointer; width: 100%; }
.ms-vcard[disabled] { cursor: not-allowed; opacity: .75; }
.ms-vcard[aria-pressed="true"] { background: var(--brand-tint); border: 2px solid var(--brand); padding: 19px; }
.ms-vcard .head { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.ms-vname { font: 700 24px/30px var(--font-display); letter-spacing: -.02em; }
.ms-vdot { width: 36px; height: 36px; border-radius: 999px; display: flex; align-items: center; justify-content: center; background: var(--line); color: var(--ink); }
.ms-vdot .ms-ico { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.ms-vcard[aria-pressed="true"] .ms-vdot { background: var(--brand); color: var(--on-brand); }
.ms-vcard .status { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.ms-vcard[aria-pressed="true"] .status { color: var(--ink); }
.ms-vfallback audio { width: 100%; min-height: 44px; }
.ms-js .ms-vfallback { display: none; }
html:not(.ms-js) .ms-vcard { display: none; }
.ms-player { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.ms-wave { display: flex; align-items: flex-end; gap: 3px; height: 40px; flex: 1 1 320px; min-width: 0; }
.ms-wave i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--line); }
.ms-wave i.on { background: var(--brand); }
.ms-player .say { flex: 1 1 360px; font-size: 16px; line-height: 24px; }
.ms-player .say small { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-muted); }

/* ---------- setup and honesty ---------- */
.ms-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ms-steps li { display: flex; gap: 16px; align-items: flex-start; }
.ms-steps .n { width: 32px; height: 32px; flex: none; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ms-steps .n.brass { background: var(--ring); color: var(--on-ring); }
.ms-steps .t { padding-top: 4px; }
.ms-chip { font: 500 14px/20px var(--font-mono); background: var(--surface-sunk); padding: 2px 8px; border-radius: 8px; }
.ms-honest { flex: 1 1 420px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.ms-honest .ms-ico { color: var(--good); }
.ms-honest blockquote { margin: 0; font: 600 24px/32px var(--font-display); letter-spacing: -.01em; }

/* ---------- agencies and closing call ---------- */
.ms-agencies { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.ms-panel { background: var(--brand-tint); border: 1px solid var(--line); border-radius: 28px; padding: 56px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.ms-panel .ms-lead { color: var(--ink); opacity: .85; }
.ms-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- pricing, demo form, legal ---------- */
.ms-plans { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ms-plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.ms-plan.featured { background: var(--brand-tint); border: 2px solid var(--brand); padding: 23px; }
.ms-plan .flag { position: absolute; top: -13px; left: 24px; background: var(--brand); color: var(--on-brand); }
.ms-plan .price { font: 700 40px/44px var(--font-display); font-variant-numeric: tabular-nums; }
.ms-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ms-plan li { display: flex; gap: 10px; align-items: flex-start; }
.ms-plan li .ms-ico { color: var(--good); margin-top: 2px; width: 20px; height: 20px; }
.ms-plan .push { margin-top: auto; }
.ms-note { background: var(--brand-tint); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.ms-faq { border-top: 1px solid var(--line); }
.ms-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.ms-faq summary { font: 650 18px/26px var(--font-display); cursor: pointer; list-style: none; display: flex; justify-content: space-between; min-height: 44px; align-items: center; }
.ms-faq summary::after { content: "+"; color: var(--brand); font-size: 24px; }
.ms-faq details[open] summary::after { content: "−"; }
.ms-faq p { margin-top: 10px; color: var(--ink-muted); max-width: 760px; }
.ms-page-head { padding-top: 56px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 12px; }
.ms-form-row { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; padding-top: 56px; padding-bottom: 96px; }
.ms-checks { display: flex; flex-direction: column; gap: 12px; }
.ms-checks p { display: flex; gap: 10px; align-items: flex-start; }
.ms-checks .ms-ico { color: var(--good); width: 20px; height: 20px; margin-top: 2px; }
.ms-legal { padding-top: 48px; padding-bottom: 96px; }

/* ---------- phones ---------- */
@media (max-width: 719px) {
  .ms-nav.wide { display: none; }
  .ms-menu { display: block; }
  .ms-top .ms-in { gap: 8px; }
}
@media (max-width: 600px) {
  .ms-in { padding: 0 16px; }
  .ms-sec, .ms-sec.tight, .ms-sec.hero { padding: 48px 0; }
  .ms-h2 { font-size: 34px; line-height: 38px; }
  .ms-hero-row, .ms-row { gap: 40px; }
  .ms-panel { padding: 36px 24px; }
  .ms-hours-art { padding: 32px 48px; }
  .ms-hero-art { flex-basis: 100%; max-width: 360px; }
  .ms-honest { padding: 24px; }
  .ms-honest blockquote { font-size: 21px; line-height: 29px; }
  .ms-form-row { padding-top: 32px; padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .ms-pulse i { animation: none; opacity: .25; transform: scale(1.3); }
  .ms-btn { transition: none; }
}

/* ---------- the sample call, contact lines, transcript ---------- */
.ms-line.sample { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px; }
.ms-line .what { font: 600 16px/24px var(--font-sans); color: var(--ink); }
.ms-player-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; width: 100%; }
.ms-player-row audio { flex: 1 1 240px; min-width: 0; min-height: 44px; }
.ms-wave.small { flex: 1 1 140px; height: 32px; }
.ms-time { font: 500 13px/16px var(--font-mono); color: var(--ink-muted); min-width: 4.5em; }
.ms-btn .i-play, .ms-btn .i-pause { display: inline-flex; }
.ms-btn .i-pause { display: none; }
.ms-btn[data-playing="true"] .i-play { display: none; }
.ms-btn[data-playing="true"] .i-pause { display: inline-flex; }
.ms-btn[disabled] { opacity: .5; cursor: not-allowed; }
.ms-btn[disabled]:hover { background: var(--brand); border-color: var(--brand); }
.ms-btn .ms-ico { stroke-width: 2; }
.rw .ms-page .ms-text-link { color: var(--brand); text-decoration: underline; }
.rw .ms-page .ms-text-link:hover { color: var(--ink); }
.ms-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ms-small.ink { color: var(--ink); }
.ms-transcript { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 4px 20px; max-width: 32em; }
.ms-transcript summary { cursor: pointer; display: flex; align-items: center; min-height: 44px; font-weight: 600; }
.ms-transcript ol { list-style: none; margin: 0; padding: 4px 0 16px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 24px; }
.ms-transcript b { color: var(--ink-muted); font-weight: 600; margin-right: 6px; }
