/* Mobile: its own composition. Opening with a simulation, sourced statistic, channels,
   process, FAQ and request. Outside the media query only the first rule applies. */
[data-mobile-block] { display: none; }

@media (max-width: 700px), (max-width: 1000px) and (hover: none) and (pointer: coarse) and (orientation: landscape) {
  [data-mobile-block] { display: block; }
  [data-copy-full] { display: none !important; }
  [data-copy-mobile] { display: contents !important; }

  /* Desktop sections stay out of the mobile story. */
  .search-hero, .channels, .evidence, .field-note, .path-section, .care-section, .work-section { display: none; }

  /* Base */
  .wrap { width: calc(100% - 32px); }
  body { padding-bottom: 88px; }
  .header { height: 56px; gap: 16px; }
  .header-note, .header .text-link { display: none; }
  .brand { min-height: 44px; font-size: 22px; letter-spacing: -.9px; gap: 6px; }
  .brand img { width: 28px; height: 28px; }
  .m-eyebrow { margin: 0 0 12px; font-size: 10px; font-weight: 650; letter-spacing: .9px; line-height: 1.5; color: var(--blue); }
  .m-lead { margin: 14px 0 0; max-width: 400px; font-size: 15px; line-height: 1.6; color: var(--muted); }
  .m-micro { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
  .m-tag { font-size: 9px; letter-spacing: 1px; color: var(--muted); }
  .m-chip { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 6px 12px; border-radius: 8px; background: var(--blue); color: var(--white); font-size: 13px; font-weight: 550; white-space: nowrap; }
  .m-chip-ghost { background: var(--tint); color: var(--blue); }
  input { font-size: 16px; }

  /* Opening */
  .m-hero { padding: 16px 0 32px; }
  .m-hero h1 { margin: 0; max-width: 440px; font-size: clamp(22px, 6.4vw, 27px); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; }
  .m-hero h1 em { display: block; margin-top: 4px; font-size: clamp(38px, 11.4vw, 48px); line-height: 1.04; letter-spacing: -.055em; font-weight: 500; }
  .m-cta { width: 100%; margin-top: 20px; }
  .m-hero-demo { position: relative; margin-top: 24px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); }
  .m-hero-demo > .m-tag { position: absolute; top: -7px; right: 14px; padding: 0 6px; background: var(--white); }
  .m-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: 14px; color: var(--ink); }
  .m-search svg { width: 18px; height: 18px; flex: 0 0 18px; stroke: var(--blue); stroke-width: 1.5; }
  .m-query { white-space: nowrap; overflow: hidden; }
  .m-cursor { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--blue); }
  .m-connector { display: block; width: 1px; height: 14px; margin-left: 21px; background: var(--blue); transform-origin: top; }
  .m-result { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px 12px; align-items: center; padding: 12px; border: 1px solid #dadaff; border-radius: 8px; background: var(--white); }
  .m-result-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); }
  .m-result-icon img { width: 22px; height: 22px; object-fit: contain; mix-blend-mode: multiply; }
  .m-result strong { display: block; font-size: 16px; font-weight: 550; letter-spacing: -.3px; line-height: 1.3; }
  .m-result > div > span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
  .m-result .m-chip { grid-column: 2; justify-self: start; }

  /* Sourced statistic */
  .m-band { padding: 44px 0 36px; background: var(--blue); color: var(--white); }
  .m-band .m-eyebrow { color: rgba(255, 255, 255, .72); }
  .m-stat { margin: 0; }
  .m-stat strong { display: block; font-size: clamp(64px, 20vw, 84px); font-weight: 500; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
  .m-band h2 { margin: 12px 0 0; max-width: 360px; font-size: 19px; line-height: 1.4; letter-spacing: -.3px; font-weight: 500; color: var(--white); }
  .m-band-note { margin: 12px 0 0; max-width: 360px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
  .m-source { margin: 8px 0 0; font-size: 12px; }
  .m-source a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
  .m-band a:focus-visible { outline-color: var(--white); }

  /* Channels: horizontal strip with snap, the page itself never scrolls sideways. */
  .m-channels { padding: 44px 0 36px; }
  .m-channels h2, .m-process h2 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -1px; }
  .m-track { display: flex; gap: 12px; margin-top: 20px; padding: 0 16px 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none; }
  .m-track::-webkit-scrollbar { display: none; }
  .m-track:focus-visible { outline-offset: -2px; }
  .m-card { flex: 0 0 min(300px, 82vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); }
  .m-card > header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 550; }
  .m-results { margin: 0; padding: 0; list-style: none; }
  .m-results li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 10px 12px; }
  .m-results li + li { border-top: 1px solid var(--line); }
  .m-results li.is-you { border: 1px solid #dadaff; border-radius: 8px; background: var(--white); }
  .m-rank { padding-top: 3px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
  .m-results li.is-you .m-rank { color: var(--blue); }
  .m-results strong { display: block; font-size: 15px; font-weight: 550; }
  .m-results li:not(.is-you) strong { color: var(--muted); font-weight: 450; }
  .m-results div > span:not(.m-chip) { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
  .m-results .m-chip { margin-top: 10px; }
  .m-map { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--white); }
  .m-map text { font: 11px Inter, system-ui, sans-serif; fill: var(--muted); }
  .m-map .m-map-you { fill: var(--blue); font-weight: 600; }
  .m-chat { display: flex; flex-direction: column; gap: 10px; }
  .m-chat-user { align-self: flex-end; max-width: 90%; margin: 0; padding: 8px 12px; border: 1px solid #dedfff; border-radius: 12px 12px 3px 12px; background: var(--tint); font-size: 14px; line-height: 1.5; }
  .m-chat-answer { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.55; }
  .m-chat-answer p { margin: 0; }
  .m-chat-body { position: relative; }
  .m-chat-answer .m-working { position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); white-space: nowrap; opacity: 0; pointer-events: none; }
  .m-working::before { content: ''; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
  .m-chat-answer strong { color: var(--blue); font-weight: 550; }
  .m-chat-answer sup { margin-left: 3px; padding: 1px 3px; background: var(--tint); color: var(--blue); font-size: 10px; }
  .m-avatar { padding-top: 2px; color: var(--blue); font-size: 10px; }
  .m-cite { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
  .m-cite > span { color: var(--blue); }
  .m-chat .m-chip { margin-top: 8px; }
  .m-footnote { margin: 12px auto 0; font-size: 11px; line-height: 1.5; color: var(--muted); }

  /* After the first contact */
  .m-care { padding: 8px 0 44px; }
  .m-care .wrap { padding-top: 36px; border-top: 1px solid var(--line); }
  .m-care h2 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -1px; }
  .m-care h2 em { display: block; }
  .m-care-card { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--page); }
  .m-care-card > header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 550; }
  .m-thread { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .m-thread li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .m-thread p { max-width: 90%; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; background: var(--white); font-size: 14px; line-height: 1.5; }
  .m-status { padding: 2px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }
  .m-status.is-booked { border-color: #dadaff; background: var(--tint); color: var(--blue); }
  .m-care-points { margin-top: 20px; }

  /* Process and deliverable */
  .m-process { padding: 44px 0; background: var(--page); }
  .m-steps { margin: 20px 0 0; padding: 0; list-style: none; }
  .m-steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
  .m-step-line { position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--blue); transform-origin: left; }
  .m-steps li > span { padding-top: 3px; color: var(--blue); font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; }
  .m-steps h3 { margin: 0; font-size: 17px; font-weight: 550; letter-spacing: -.3px; line-height: 1.35; }
  .m-steps p { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
  .m-deliverable { margin-top: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
  .m-deliverable ul { margin: 0; padding: 0 0 0 18px; }
  .m-deliverable li { font-size: 14px; line-height: 1.6; color: var(--ink); }
  .m-deliverable li + li { margin-top: 8px; }
  .m-deliverable-note { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
  .m-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 8px; color: var(--blue); font-size: 14px; font-weight: 550; }

  /* FAQ, shared with desktop markup */
  .faq { grid-template-columns: 1fr; gap: 12px; padding: 40px 0 32px; border-top: 0; }
  .faq .eyebrow { display: none; }
  .faq h2 { font-size: 26px; letter-spacing: -.8px; }
  .faq-items summary { min-height: 52px; padding: 16px 0; gap: 16px; font-size: 15px; }
  .faq-answer > p { padding-bottom: 20px; }
  .faq-lead { display: block; }

  /* Request form, shared with desktop markup */
  .conversion { padding: 40px 0 44px; }
  .conversion-grid { grid-template-columns: 1fr; gap: 24px; }
  .conversion .eyebrow, .form-heading { display: none; }
  .conversion h2 { max-width: 480px; font-size: clamp(30px, 8.6vw, 36px); line-height: 1.12; letter-spacing: -.04em; }
  .m-reassure { margin: 16px 0 0; padding: 0; list-style: none; }
  .m-reassure li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
  .m-reassure li::before { content: ''; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
  .m-reassure li + li { margin-top: 4px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  footer { padding: 24px 0; min-height: 0; flex-wrap: wrap; gap: 12px; }
  footer > span { width: 100%; }

  /* Fixed CTA */
  .m-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 240ms cubic-bezier(.22, 1, .36, 1); }
  .m-sticky[data-visible="true"] { transform: translateY(0); }
  .m-sticky .button { width: 100%; }

  /* Each section eases in once as it enters. */
  [data-reveal].motion-enter { animation: editorial-enter .5s cubic-bezier(.22, 1, .36, 1) both; }
}

@media (max-width: 1000px) and (hover: none) and (pointer: coarse) and (orientation: landscape) {
  /* Landscape phones: simulation beside the message so both fit the fold. */
  .m-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; column-gap: 24px; align-items: center; }
  .m-hero .wrap > :not(.m-hero-demo) { grid-column: 1; }
  .m-hero-demo { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; }
  .m-hero { padding: 4px 0 24px; }
  .m-hero .m-eyebrow { margin-bottom: 6px; }
  .m-hero h1 { font-size: 20px; }
  .m-hero h1 em { font-size: 36px; }
  .m-hero .m-lead { margin-top: 8px; font-size: 14px; line-height: 1.5; }
  .m-cta { margin-top: 12px; }
  .m-micro { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .m-sticky { transition: none; }
  [data-reveal].motion-enter { animation: none; }
}
