/* One phone policy, also used when the phone rotates. Desktop scene styles stay local. */
[data-a11y-open] { display: none; }
@media (max-width: 720px), (max-height: 540px) {
  body[data-indigo] {
    --phone-section-top: 40px;
    --phone-section-bottom: 24px;
    --phone-row-gap: 16px;
  }
  body[data-indigo]:not(.a11y-bigtext) { font-size: 16px; }
  body[data-indigo] :is(p, a, button, input, textarea, select, label, legend, figcaption, small, .small, .field-error, .services-hint, .form-note, .footer-bottom, .indigo-nav):not(.indigo-wordmark, .footer-wordmark, .hs-consent *, .consent-row, .consent-row *),
  #contact .field label > span,
  #contact :is(.form-note, .field-error, .small, .services-hint),
  #services :is(p, figcaption, .table-head, .fake-field, .wa-toast, .browser-bar span) { font-size: max(16px, 1em); }

  body[data-indigo] :is(a, button, summary) { min-height: 44px; min-width: 44px; }
  .indigo-nav a, .footer-bottom :is(a, button), #contact .consent-row a {
    display: inline-flex; align-items: center; padding-block: 8px;
  }
  .indigo-wordmark, .footer-wordmark { display: inline-flex; align-items: center; }
  #contact .consent-row { min-height: 44px; }
  #contact .consent-row input { margin-top: 4px; }
  .indigo-header, .indigo-nav, .contact-layout, .lead-panel { min-width: 0; }
  #contact .contact-wa { overflow-wrap: anywhere; }

  /* Hide complete secondary passages. All approved source copy remains intact. */
  /* Service benefits and the persona intro stay: rows without them read as bare labels (full pass, 23.11.2026). */
  #services .services-heading > p { display: none; }
  #services .service-benefit {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
    max-width: 40ch; margin: 0 0 4px; line-height: 1.55;
  }
  #persona .persona-heading > p { display: block; margin-top: 8px; line-height: 1.55; }
  /* About and contact keep their full copy: the one-sentence about was rejected (owner, 23.11.2026). */
  #about [data-copy="about.body.2"], #about [data-copy="about.body.3"], #contact .contact-top > p { display: block; }
  /* The opening's phone and landscape layouts (film whole, copy under or beside it) live in
     css/film/opening.css; the offer stays visible there, including without JS. */
  #top .opening-offer { display: block; }

  /* Consent is a real row after the opening. No decision is inferred by scrolling. */
  [data-mobile-consent-slot] .hs-consent {
    position: static; flex-direction: column; align-items: stretch; gap: 12px;
    padding: 16px 24px; border-block: 1px solid var(--deep);
  }
  [data-mobile-consent-slot] .hs-consent-actions button { flex: 1; min-height: 44px; }
  /* Consent wording is fine print on phones too (owner, 24.11.2026); its buttons are not. */
  body[data-indigo] .hs-consent-actions button { font-size: 16px; }

  /* Without enhancement the tools are normal footer controls. */
  body[data-indigo]:not([data-mobile-tools="ready"]) :is(.wa-float, .a11y-btn) {
    position: static; margin: 16px 24px;
  }
  /* Hidden tools keep their box (visibility, not display), so the next reading still
     measures the film-contact footprint. The fade itself lives in consent.css. */
  [data-mobile-obscured="true"] { visibility: hidden; pointer-events: none; }
  .indigo-nav [data-a11y-open] {
    display: inline-flex; align-items: center; padding: 8px 0; border: 0;
    border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: start;
  }

  /* One spacing scale; content determines height instead of filling blank screens. */
  #persona.persona-slot, #about.about-scene, #contact.contact-scene {
    padding: var(--phone-section-top) 24px var(--phone-section-bottom);
  }
  /* Film over 78svh (as before), then 22svh of light (js/film/opening-bloom.mjs). */
  #top.film-opening { --opening-film: 100svh; }

  #services .services-heading { padding: var(--phone-section-top) 24px 0; }
  #services .services-heading h2 { margin-bottom: 12px; }
  /* Without the reel (no JS, reduced motion, landscape, content taller than the screen) the
     services are an ordinary stacked list. */
  #services.has-service-scenes [data-service-scene] { height: auto; }
  #services.has-service-scenes .service-scene-pin {
    position: static; height: auto; display: block;
  }
  #services .service-row-inner {
    flex-direction: column; align-items: stretch;
    padding: var(--phone-section-bottom) 24px;
    gap: var(--phone-row-gap);
  }
  #services.has-service-scenes [data-service-scene] .service-row-inner {
    opacity: 1; transform: none;
  }
  #services.has-service-scenes [data-service-scene] .service-proof {
    clip-path: none; transform: none;
  }
  #services .service-copy, #services .service-proof { flex: none; width: 100%; }
  #services .service-copy h3 { font-size: clamp(28px, 7.1vw, 34px); margin-bottom: 8px; }
  #services .service-label::before { margin-bottom: 8px; }
  #services .service-contact { padding-block: 4px; }
  #services .demo-screen .preview-stage, #services .demo-browser .preview-stage { width: 100%; }
  /* The reel leaves room for header, copy and the 56px floating-tools zone, so a row held
     under the header ends above the tools (the tools yield to copy, not to media). */
  #services .social-frame { max-width: min(100%, calc((100svh - 360px) * 9 / 16)); }
  #services .service-row-persona .service-row-inner { padding-block: var(--phone-section-bottom); }
  #services .persona-proof-link { padding-block: 12px; }

  /* About and contact phone layout lives in css/indigo/about.css, css/film/about.css and contact.css. */

  /* The closing film owns its phone layout (pinned stage): css/film/closing.css. */
  .indigo-footer { padding-block: var(--phone-section-top) max(var(--phone-section-bottom), env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 721px) and (max-height: 540px) {
  #services .service-row-inner { flex-direction: row; align-items: start; }
  #services .service-copy, #services .service-proof { flex: 1 1 50%; width: auto; }
  #services .automation-diagram { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  #services .automation-diagram .auto-connector { display: none; }
  #services .automation-diagram :is(.auto-form, .lead-table, .wa-toast) { width: 100%; margin: 0; }
  #services .automation-diagram .wa-toast { grid-column: 1 / -1; }
  /* Benefit copy and the site preview both fit one landscape screen. */
  #services .service-benefit { margin-bottom: 8px; font-size: 16px; line-height: 1.5; }
  #services .demo-browser { max-width: calc(48svh * 1.6 + 14px); margin-inline: auto 0; }
}
/* Compact phones (<=380px): the same copy and proofs on less paper. Only spacing, the reel
   height and the message box shrink; body text stays 16px and every tap target 44px. */
@media (max-width: 380px) {
  body[data-indigo] { --phone-section-top: 28px; --phone-section-bottom: 16px; --phone-row-gap: 12px; }
  #services .services-heading h2 { max-width: none; margin-bottom: 8px; }
  /* The 160px reel of the original phone layout (css/film/services.css). */
  #services .social-frame { max-width: min(160px, calc((100svh - 400px) * 9 / 16)); }
  #services .browser-bar { height: 28px; }
  #service-automation :is(.auto-form, .lead-table, .wa-toast) { padding-block: 10px; }
  #service-automation .fake-field { min-height: 28px; }
  #service-automation .auto-connector { height: 12px; }
  #persona .persona-heading > p { margin-top: 4px; }
  #persona .persona-instructions { margin-bottom: 4px; }
  #persona[data-persona-renderer="frames"] .persona-stage { width: min(100%, 260px, 78svh); }
  #persona[data-persona-renderer="frames"] .persona-phone-labels { margin-top: 8px; gap: 4px; }
  #persona .persona-controls { margin-top: 8px; }
  body[data-indigo] #about.about-scene { padding: var(--phone-section-top) 24px var(--phone-section-bottom); }
  #about .about-kicker { margin-bottom: 8px; }
  #about .about-letter { gap: 12px; padding-top: 8px; }
  #about .letter-body p { margin-bottom: 12px; }
  #contact .contact-top { margin-bottom: 16px; }
  #contact .contact-layout { gap: 16px; }
  #contact .lead-panel { padding: 16px; }
  #contact .form-note { margin-bottom: 8px; }
  #contact .field { margin-bottom: 10px; }
  #contact .field textarea { min-height: 80px; }
  #contact .service-options { margin-bottom: 10px; }
  #contact .contact-submit-row { margin-top: 12px; row-gap: 8px; }
  [data-mobile-consent-slot] .hs-consent { padding-block: 12px; gap: 8px; }
  .indigo-footer .footer-findability { margin-top: 12px; padding-block: 4px; }
  .indigo-footer .footer-bottom { margin-top: 8px; row-gap: 0; }
  .indigo-footer .footer-bottom p { margin-block: 8px; }
  .indigo-footer .footer-bottom nav { row-gap: 8px; }
  /* Page budget (<=12.5 screens, qa/m9-mobile-density.browser.mjs): the shortest allowed
     hand-off band and a slightly shorter opening scrub on the smallest phones. */
  #closing .closing-handoff { height: 120px; }
  #top.film-opening { --opening-film: 96svh; }
}
