/* Call For Me product page: one call told top to bottom. Every rule is scoped under .p-cfm.
   Brand from apps/mobile/src/theme.ts: white cards on a warm grey ground, ink for buttons,
   the system font. Amber means live and nothing else; green and red only on an outcome. */

.p-cfm {
  --cfm-bg: #F6F6F7;
  --cfm-card: #FFFFFF;
  --cfm-alt: #EFEFF1;
  --cfm-line: #E4E4E8;
  --cfm-line-2: #D3D3DA;
  --cfm-text: #15151B;
  --cfm-dim: #63636E;
  --cfm-faint: #6E6E79; /* the app's #8E8E99 darkened for 4.5:1 on small text */
  --cfm-accent: #C2610C;
  --cfm-accent-soft: #FDF1E3;
  --cfm-good: #1B7F4B;
  --cfm-good-soft: #E7F4ED;
  --cfm-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --cfm-shadow: 0 2px 10px rgba(27, 27, 34, 0.06);
  background: var(--cfm-bg);
  color: var(--cfm-text);
  font-family: var(--cfm-font);
  overflow-x: clip;
}
.p-cfm h1, .p-cfm h2, .p-cfm h3 { font-family: var(--cfm-font); font-weight: 700; color: var(--cfm-text); letter-spacing: -0.03em; }
.p-cfm h1 span, .p-cfm h2 span { color: var(--cfm-dim); }
.p-cfm a { color: var(--cfm-text); text-decoration-color: var(--cfm-line-2); }
.p-cfm a:hover { color: var(--cfm-text); text-decoration-color: var(--cfm-text); }
.p-cfm :focus-visible { outline: 2px solid var(--cfm-text); outline-offset: 3px; }
.p-cfm p { margin: 0; }
.p-cfm .cfm-narrow { max-width: 920px; }

/* ---- one-line intro */
.p-cfm .cfm-intro-sec { padding: 48px 0 8px; text-align: center; }
.p-cfm .cfm-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 600; color: var(--cfm-dim); margin-bottom: 18px; }
.p-cfm .cfm-icon { width: 36px; height: 36px; border-radius: 9px; }
.p-cfm .cfm-intro-sec h1 { font-size: clamp(1.875rem, 5vw, 3.25rem); line-height: 1.08; margin: 0 auto 14px; }
.p-cfm .cfm-lead { font-size: 1.125rem; line-height: 1.6; color: var(--cfm-dim); max-width: 34em; margin: 0 auto; }

/* ---- the call, as a timeline */
.p-cfm .cfm-call { padding: 40px 0 72px; }
.p-cfm .cfm-timeline { list-style: none; margin: 0; padding: 0; }
.p-cfm .cfm-step { position: relative; margin: 0; padding: 0 0 30px 34px; display: grid; gap: 10px; }
.p-cfm .cfm-step::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: -8px; width: 2px; background: var(--cfm-accent); }
.p-cfm .cfm-step.first::before { top: 12px; }
.p-cfm .cfm-step.last::before { display: none; }
.p-cfm .cfm-step::after { content: ""; position: absolute; left: 1px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--cfm-card); border: 2px solid var(--cfm-accent); box-sizing: border-box; }
.p-cfm .cfm-step.first::after { border-color: var(--cfm-text); }
.p-cfm .cfm-step.last::after { background: var(--cfm-good); border-color: var(--cfm-good); }
.p-cfm .cfm-time { font-size: 0.8125rem; font-weight: 600; color: var(--cfm-text); display: flex; gap: 10px; align-items: baseline; }
.p-cfm .cfm-time span { font-variant-numeric: tabular-nums; color: var(--cfm-faint); font-weight: 500; }
.p-cfm .cfm-aside { font-size: 0.875rem; line-height: 1.55; color: var(--cfm-dim); }

.p-cfm .cfm-card { background: var(--cfm-card); border-radius: 20px; padding: 18px; box-shadow: var(--cfm-shadow); }
.p-cfm .cfm-field { padding: 9px 12px; border: 1px solid var(--cfm-line); border-radius: 12px; font-size: 0.875rem; line-height: 1.4; margin-bottom: 8px; }
.p-cfm .cfm-field span { display: block; font-size: 0.75rem; font-weight: 600; color: var(--cfm-dim); margin-bottom: 2px; }
.p-cfm .cfm-seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 10px; background: var(--cfm-alt); font-size: 0.8125rem; text-align: center; margin-top: 4px; }
.p-cfm .cfm-seg span { padding: 6px 2px; border-radius: 8px; color: var(--cfm-dim); }
.p-cfm .cfm-seg .on { background: var(--cfm-card); color: var(--cfm-text); font-weight: 600; box-shadow: 0 1px 3px rgba(21, 21, 27, 0.12); }
.p-cfm .cfm-btn { margin-top: 12px; padding: 11px; border-radius: 12px; background: var(--cfm-text); color: #fff; text-align: center; font-weight: 600; font-size: 0.9375rem; }

.p-cfm .cfm-sys { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--cfm-dim); padding: 10px 0; }
.p-cfm .cfm-sys b { font-size: 0.75rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--cfm-alt); color: var(--cfm-text); }
.p-cfm .cfm-bubble { max-width: 30em; border-radius: 18px; padding: 11px 15px; font-size: 0.9375rem; line-height: 1.5; box-shadow: var(--cfm-shadow); }
.p-cfm .cfm-bubble b { display: block; font-size: 0.75rem; font-weight: 600; margin-bottom: 2px; color: var(--cfm-dim); }
.p-cfm .cfm-bubble.us { background: var(--cfm-card); border-top-left-radius: 6px; }
.p-cfm .cfm-bubble.them { background: var(--cfm-alt); border-top-left-radius: 6px; box-shadow: none; }

.p-cfm .cfm-tag { padding: 3px 8px; border-radius: 6px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--cfm-alt); color: var(--cfm-dim); }
.p-cfm .cfm-tag.good { background: var(--cfm-good-soft); color: var(--cfm-good); }
.p-cfm .cfm-tag.live { background: var(--cfm-accent-soft); color: var(--cfm-accent); display: inline-flex; align-items: center; gap: 6px; }
.p-cfm .cfm-tag.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cfm-accent); }
@media (prefers-reduced-motion: no-preference) {
  .p-cfm .cfm-tag.live::before { animation: cfm-blink 1.6s ease-in-out infinite; }
  @keyframes cfm-blink { 50% { opacity: 0.25; } }
}

.p-cfm .cfm-ask { background: var(--cfm-card); border: 2px solid var(--cfm-accent); border-radius: 16px; padding: 14px; max-width: 30em; }
.p-cfm .cfm-ask-tag { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cfm-accent); margin-bottom: 6px; }
.p-cfm .cfm-ask-q { font-size: 1rem; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.p-cfm .cfm-ask-btn { padding: 10px; border-radius: 10px; text-align: center; font-size: 0.875rem; font-weight: 600; background: var(--cfm-text); color: #fff; }
.p-cfm .cfm-ask-note { margin-top: 10px; font-size: 0.8125rem; color: var(--cfm-dim); }

.p-cfm .cfm-result { border: 1px solid var(--cfm-line); box-shadow: 0 24px 48px -24px rgba(21, 21, 27, 0.3); }
.p-cfm .cfm-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.p-cfm .cfm-conf { font-size: 0.75rem; color: var(--cfm-faint); }
.p-cfm .cfm-answer { font-size: 1.125rem; line-height: 1.5; margin-bottom: 14px; }
.p-cfm .cfm-block { padding-top: 12px; border-top: 1px solid var(--cfm-line); font-size: 0.9375rem; }
.p-cfm .cfm-block b { display: block; font-size: 0.8125rem; color: var(--cfm-dim); margin-bottom: 2px; }
.p-cfm .cfm-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.p-cfm .cfm-actions-row span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--cfm-line-2); font-size: 0.8125rem; font-weight: 600; }

/* ---- sections */
.p-cfm .cfm-sec { padding: 72px 0; }
.p-cfm .cfm-white { background: var(--cfm-card); border-top: 1px solid var(--cfm-line); border-bottom: 1px solid var(--cfm-line); }
.p-cfm .cfm-sec h2 { font-size: clamp(1.75rem, 4.4vw, 2.5rem); line-height: 1.1; margin: 0 0 14px; }
.p-cfm .cfm-sub { color: var(--cfm-dim); max-width: 38em; margin-bottom: 32px; }
.p-cfm .cfm-after { margin: 24px 0 0; font-size: 0.9375rem; }

/* push levels: three-up comparison */
.p-cfm .cfm-compare { display: grid; gap: 14px; }
.p-cfm .cfm-level { border: 1px solid var(--cfm-line); border-radius: 20px; padding: 20px; background: var(--cfm-bg); }
.p-cfm .cfm-level.mid { background: var(--cfm-card); border: 2px solid var(--cfm-text); }
.p-cfm .cfm-level-h { display: flex; align-items: center; justify-content: space-between; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.p-cfm .cfm-meter { display: flex; gap: 4px; }
.p-cfm .cfm-meter i { width: 22px; height: 6px; border-radius: 3px; background: var(--cfm-text); }
.p-cfm .cfm-meter i.off { background: var(--cfm-line-2); }
.p-cfm .cfm-level dl { margin: 0; }
.p-cfm .cfm-level dl div { padding: 10px 0; border-top: 1px solid var(--cfm-line); }
.p-cfm .cfm-level dt { font-size: 0.75rem; font-weight: 600; color: var(--cfm-faint); }
.p-cfm .cfm-level dd { margin: 2px 0 0; font-size: 0.9375rem; line-height: 1.45; }
.p-cfm .cfm-for { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--cfm-line); font-size: 0.875rem; font-weight: 600; color: var(--cfm-dim); }

/* rules */
.p-cfm .cfm-rules { margin: 28px 0 0; display: grid; gap: 0; }
.p-cfm .cfm-rules div { padding: 16px 0; border-top: 1px solid var(--cfm-line-2); display: grid; gap: 4px 32px; }
.p-cfm .cfm-rules dt { font-weight: 600; }
.p-cfm .cfm-rules dd { margin: 0; color: var(--cfm-dim); font-size: 0.9375rem; line-height: 1.6; }

/* FAQ */
.p-cfm .cfm-faq { margin-top: 20px; }
.p-cfm .cfm-faq details { border-top: 1px solid var(--cfm-line); }
.p-cfm .cfm-faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.p-cfm .cfm-faq summary::-webkit-details-marker { display: none; }
.p-cfm .cfm-faq summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 8px; height: 8px; border-right: 2px solid var(--cfm-dim); border-bottom: 2px solid var(--cfm-dim); transform: rotate(45deg); transition: transform .2s; }
.p-cfm .cfm-faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.p-cfm .cfm-faq details > div { padding: 0 0 18px; color: var(--cfm-dim); max-width: 40em; }
.p-cfm .cfm-more { margin: 24px 0 0; color: var(--cfm-dim); font-size: 0.9375rem; }

/* band */
.p-cfm .cfm-band { background: var(--cfm-text); color: #fff; padding: 64px 0 72px; text-align: center; }
.p-cfm .cfm-band-tag { margin-bottom: 16px; }
.p-cfm .cfm-band .cfm-tag.good { background: #1F3A2B; color: #8FD5AE; }
.p-cfm .cfm-band h2 { color: #fff; font-size: clamp(2rem, 5.4vw, 3.25rem); line-height: 1.05; max-width: 17ch; margin: 0 auto 14px; }
.p-cfm .cfm-band h2 span { color: #A9A9B3; }
.p-cfm .cfm-band p { color: #C9C9D1; }

@media (min-width: 760px) {
  .p-cfm .cfm-step { grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 0 28px; align-items: start; padding-left: 0; padding-bottom: 36px; }
  .p-cfm .cfm-step::before { left: 157px; }
  .p-cfm .cfm-step::after { left: 151px; }
  .p-cfm .cfm-time { flex-direction: column; gap: 0; text-align: right; padding-right: 20px; align-items: flex-end; }
  .p-cfm .cfm-step-body { padding-left: 14px; }
  .p-cfm .cfm-aside { padding-top: 2px; }
  .p-cfm .cfm-compare { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .p-cfm .cfm-rules div { grid-template-columns: 240px 1fr; }
}
@media (min-width: 960px) {
  .p-cfm .cfm-intro-sec { padding-top: 72px; }
  .p-cfm .cfm-sec { padding: 96px 0; }
}
