/* Mobile reading layout. All copy and desktop compositions are preserved. */
.navigation-toggle,.reading-controls { display: none; }
.reading-controls[hidden] { display: none; }
@media (max-width: 900px) {
  .pain-small summary,.case-link,.footer-contact,.site-header .brand { min-height: 44px; }
  body .site-header { grid-template-columns: auto minmax(0,1fr) 44px; gap: 8px; }
  body .site-header .header-cta { grid-column: 2; }
  .navigation-toggle { display: grid; place-items: center; grid-column: 3; grid-row: 1; width: 44px; height: 44px; padding: 0; border: 1px solid var(--panel-line); border-radius: 12px; background: var(--surface-raised); color: var(--text-main); }
  .navigation-toggle svg { width: 22px; height: 22px; }
  .navigation-toggle .menu-cross,.is-navigation-open .navigation-toggle .menu-bars { display: none; }
  .is-navigation-open .navigation-toggle .menu-cross { display: block; }
  body .site-header nav { display: none; position: absolute; grid-column: 1 / -1; top: calc(100% + 8px); left: 0; right: 0; padding: 8px; border: 1px solid var(--panel-line); border-radius: 16px; background: var(--surface-raised); }
  body .site-header.is-navigation-open nav { display: grid; gap: 4px; }
  body .site-header nav a { display: flex; align-items: center; min-height: 48px; font-size: 16px; padding: 12px 16px; border-radius: 10px; }
  body #benefits .content-card p,body #control .rules-grid .content-card p,body #solution .stage p,body .pain-card>p { font-size: 16px; line-height: 1.6; }
  .reading-controls { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin: 12px 0 24px; }
  .reading-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--panel-line); border-radius: 12px; background: var(--surface-raised); color: var(--text-main); padding: 0; }
  .reading-controls button:disabled { opacity: .35; cursor: default; }
  .reading-controls button:active:not(:disabled) { background: var(--lime); }
  .reading-controls svg { width: 20px; height: 20px; }
  .reading-position { min-width: 40px; text-align: center; font-size: 13px; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
}
@media (max-width: 750px) {
  html { scroll-padding-top: 88px; }
  body main { padding-inline: 20px; }
  body .hero.beams-surface {
    margin-inline: -20px; max-width: none;
    padding: 32px 20px 40px; gap: 28px;
    border-radius: 0 0 24px 24px;
  }
  .hero-copy { max-width: none; min-width: 0; }
  body .hero h1 {
    font-size: clamp(28px, 7.7vw, 36px); line-height: 1.12;
    letter-spacing: -.035em; text-wrap: pretty; max-width: 22ch;
  }
  body .hero-copy>p:not(.hero-note) {
    font-size: 16px; line-height: 1.6; margin: 20px 0 24px; max-width: 54ch;
  }
  body .hero-cta { margin-top: 0; }
  body .hero-copy .hero-note { margin-top: 16px; font-size: 14px; line-height: 1.55; }
  .hero-demo { min-height: 0; padding: 22px 18px; border-radius: 20px; }
  .hero-demo-label { margin-bottom: 20px; }
  .flow-item { padding: 18px 16px; gap: 12px; font-size: 18px; line-height: 1.3; }
  .flow-item small { margin-top: 10px; font-size: 13px; line-height: 1.55; }
  .flow-line { height: 18px; flex-shrink: 0; margin-left: 22px; }
  .flow-footer { margin-top: 20px; }
}

@media (max-width: 650px) {
  body .site-header { min-height: 68px; padding: 12px 20px; gap: 8px; }
  .site-header .brand { min-height: 44px; gap: 7px; }
  .site-header .brand-mark { width: 40px; height: 30px; }
  .site-header .brand-name { font-size: 20px; }
  body .site-header .header-cta { max-width: 156px; padding-inline: 12px; font-size: 12px; }
  body .cta,body .closing .cta,body .section-5 .cta,body .section-7 .cta,body #consultation-form .cta {
    width: 100%; min-height: 56px; padding: 16px; gap: 10px; font-size: 14px;
  }
  body .site-header .header-cta { width: auto; min-height: 44px; }
  body .site-header .header-cta { max-width: 140px; padding-inline: 8px; }
  .pain-inner>h2,#title,.intro,.tools-band .section-heading,.tools-band .section-inner>p { text-align: left; margin-inline: 0; }
  .tools-band .section-heading { font-size: clamp(28px,7.5vw,32px); line-height: 1.15; }
  .content-section { padding-block: 56px; }
  .section-heading,#title,.pain-inner>h2,.section-8 .section-heading {
    font-size: clamp(28px,7.5vw,32px); line-height: 1.15; text-wrap: pretty;
  }
  .section-inner>p,.intro,.pain-inner>p { font-size: 16px; line-height: 1.6; }
  .section-inner>p { margin-bottom: 28px; }
  .results-band { padding-block: 32px 48px; }
  .results-band .cards-grid { gap: 0; }
  .results-band .content-card { padding-block: 22px; border-bottom: 1px solid var(--panel-line); }
  .results-band .content-card:last-child { border-bottom: 0; padding-bottom: 0; }
  .results-band .content-card h3 { margin-bottom: 12px; font-size: 18px; line-height: 1.4; }
  .pain { margin-inline: -20px; padding: 48px 20px; }
  .pain-card { flex-basis: calc(100% - 20px); min-width: 0; padding: 20px; }
  .pain-card h3 { font-size: 21px; min-height: 0; margin-bottom: 20px; }
  .pain-card>p,.pain-evidence>p { min-height: 0; }
  .pain-card>p { font-size: 15px; }
  .pain-small summary { min-height: 44px; }
  .pain-evidence .pain-small>a { display: inline-block; padding-block: 12px; overflow-wrap: anywhere; }
  .solution { padding-top: 56px; }
  #solution .stage { flex: 0 0 calc(100% - 24px); min-width: 0; padding: 16px 16px 22px; }
  #solution .stage p { font-size: 15px; line-height: 1.6; }
  #solution .stage h2 { font-size: 20px; }
  .closing { margin-top: 28px; }
  .closing .cta { align-self: stretch; }
  .tools-band { padding-block: 40px; }
  .logo-item,.logo-item.model-item,#logo-track .logo-item.logo-sheets { flex-basis: 184px; height: 72px; font-size: 19px; }
  .logo-item img:not(.logo-wordmark),.model-item img { width: 30px; height: 30px; }
  body #benefits .content-card,body #control .rules-grid .content-card {
    display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 16px 14px; align-items: start; padding: 22px;
  }
  #benefits .benefit-symbol,body #control .rules-grid .rule-symbol { width: 44px; height: 44px; margin: 0; grid-row: auto; }
  #benefits .content-card h3,.rules-grid h3 { font-size: 21px; margin: 0; }
  #benefits .content-card p,.rules-grid .content-card p { grid-column: 1 / -1; }
  .section-5,.section-7 { margin-inline: -20px; padding: 56px 20px; }
  .case-track { gap: 14px; touch-action: pan-x pan-y; }
  .case-card { flex-basis: calc(100% - 20px); padding: 22px; }
  .case-photo { width: calc(100% + 44px); margin: -22px -22px 20px; height: 190px; }
  .case-card h3 { font-size: 22px; margin-bottom: 18px; }
  .case-result { font-size: clamp(26px,7.5vw,34px); width: 100%; padding: 0; }
  .case-link { min-height: 44px; padding-top: 16px; }
  body .process-grid { margin-top: 28px; }
  body .process-grid .content-card { padding-left: 54px; gap: 12px; }
  body .process-grid h3 { font-size: 21px; }
  .section-8.beams-surface { margin-inline: -20px; padding: 48px 20px; }
  .section-8 .two-col>div:first-child p { font-size: 20px; line-height: 1.5; margin-top: 0; }
  .section-8 .two-col { gap: 24px; }
  .section-8 .content-card { padding: 22px; }
  .section-8 .content-card h3 { font-size: 22px; line-height: 1.3; }
  .section-8 .content-card p { font-size: 15px; line-height: 1.6; }
  .field,dialog input { font-size: 16px; min-width: 0; width: 100%; }
  dialog { width: calc(100% - 32px); max-height: calc(100dvh - 32px); padding: 24px; overflow-y: auto; overscroll-behavior: contain; }
  dialog h2 { padding-right: 40px; font-size: 25px; line-height: 1.2; }
  .site-footer .brand,.footer-contact { min-height: 44px; }
  .footer-contact { font-size: 22px; text-align: left; }
  body .cta:not(.header-cta),body .closing .cta,body .section-5 .cta,body .section-7 .cta,body #consultation-form .cta { font-size: 15px; }
  body #benefits .content-card p,body #control .rules-grid .content-card p,body #solution .stage p,body .pain-card>p { font-size: 16px; line-height: 1.6; }
  /* Hero flow stays immediately visible while reading on a phone. */
  body .flow-item { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 360px) {
  body main { padding-inline: 16px; }
  body .site-header { padding-inline: 16px; }
  .site-header .brand-name { font-size: 18px; }
  .site-header .brand-mark { width: 34px; height: 26px; }
  body .site-header .header-cta { font-size: 11px; padding-inline: 8px; max-width: 108px; }
  body .hero.beams-surface,.pain,.section-5,.section-7,.section-8.beams-surface { margin-inline: -16px; padding-inline: 16px; }
  body .hero h1 { font-size: 28px; }
  .hero-demo { padding-inline: 14px; }
  .flow-item { padding-inline: 13px; font-size: 17px; }
  .section-heading,#title,.pain-inner>h2,.section-8 .section-heading { font-size: 27px; }
  body #benefits .content-card,body #control .rules-grid .content-card,.section-8 .content-card { padding: 20px; }
}
