/* Site-wide phone typography. Keep this after page styles so all pages share
   a readable scale instead of shrinking text to make desktop layouts fit. */
@media (max-width: 680px) {
  body { --muted:#56645b; --mobile-copy:17px; --mobile-ui:16px; --mobile-note:14px; }
  body.inner-page { --muted:#56645b; }

  /* Reading hierarchy. #main intentionally takes precedence over page styles. */
  #main { font-size:var(--mobile-copy); }
  #main h1 { font-size:clamp(30px,8.2vw,36px); line-height:1.4; }
  #main h2 { font-size:28px; line-height:1.5; }
  #main h3 { font-size:22px; line-height:1.5; }
  #main p, #main li, #main dd, #main .faq-answer {
    font-size:var(--mobile-copy); line-height:1.85;
  }
  #main :is(.inner-lead,.lead,.section-intro) { font-size:var(--mobile-copy); line-height:1.85; }
  #main :is(.eyebrow,.inner-kicker,.tiny-label,.meta,.breadcrumb,.reading-byline),
  #main :is(small,figcaption,.inline-note,.pricing-note,.article-source,.visual-label),
  #main :is(.step-number,.process-number,.help-topic-number,.strength-number),
  #main :is(.case-category,.case-feature-image > span) {
    font-size:var(--mobile-note); line-height:1.65;
  }
  #main :is(.eyebrow,.inner-kicker,.tiny-label) { letter-spacing:.04em; }
  #main :is(.meta,.breadcrumb,.reading-byline,small,figcaption,.inline-note,.pricing-note,.article-source) { color:#647268; }
  #main .breadcrumb { gap:9px; flex-wrap:wrap; }
  #main .breadcrumb .icon { width:15px; height:15px; }
  #main .context-tags { gap:8px; }
  #main .context-tags li { padding:5px 9px; font-size:14px; line-height:1.5; color:#53675a; }
  #main .check-list { gap:14px; }
  #main .check-list li { align-items:flex-start; gap:10px; line-height:1.75; }
  #main .check-list .icon { width:17px; height:17px; margin-top:6px; }
  #main .faq-list summary { padding-block:22px; font-size:17px; line-height:1.7; gap:18px; }
  #main .faq-answer { padding-right:6px; }
  #main .faq-answer a { text-decoration:underline; text-underline-offset:4px; }

  /* Actions stay comfortably tappable when their labels become larger. */
  #main :is(.button,.text-link,.hero-secondary) { font-size:16px; line-height:1.5; min-height:44px; }
  #main .button { min-height:48px; padding:12px 19px; gap:12px; }
  #main .button.primary:has(>span) { padding:9px 10px 9px 20px; gap:14px; }
  #main .button .icon { width:19px; height:19px; }
  #main .button-row { gap:12px; }
  body .site-header .header-cta { min-height:44px; padding:10px 12px; font-size:15px; }
  body .site-header .menu-toggle { display:grid; place-items:center; width:44px; height:44px; padding:10px; }
  #mobile-nav a { min-height:48px; font-size:17px; }
  #main :is(.subnav a,.scenario-switch > a) { font-size:16px; min-height:48px; padding-block:14px; }
  #main .subnav > .container { gap:27px; padding-block:0; }
  #main .scenario-switch { gap:26px; }
  #main :is(#reports,#people) { scroll-margin-top:36px; }

  /* Homepage: keep the banner composition, enlarge the words that explain it. */
  #main .hero h1 { font-size:clamp(30px,9vw,40px); }
  #main .hero-kicker { font-size:14px; line-height:1.75; gap:10px; flex-wrap:wrap; }
  #main .hero-copy > p { line-height:1.85; }
  #main .hero-copy > p br { display:none; }
  #main .hero-assurance { font-size:14px; gap:14px 16px; }
  #main .hero-assurance > span { white-space:normal; align-items:flex-start; gap:7px; }
  #main .hero-assurance .icon { margin-top:4px; width:16px; height:16px; }
  #main .node-label { font-size:14px; letter-spacing:0; color:#506757; }
  #main .orbit-qr .node-label { right:0; }
  #main .orbit-hub { width:120px; height:125px; }
  #main .orbit-hub > span { font-size:14px; letter-spacing:0; color:#596e5c; }
  #main .orbit-note { font-size:14px; letter-spacing:0; color:#617565; bottom:-10px; }
  #main .orbit { margin-bottom:18px; }
  #main .scenario-card h2 { font-size:27px; }
  #main .scenario-top { flex-wrap:wrap; }
  #main .scenario-card .tiny-label { font-size:14px; }
  #main .steps li { padding-inline:16px; }
  #main .steps li:nth-child(odd) { padding-left:0; }
  #main .steps h3 { font-size:22px; }
  #main .steps p { font-size:16px; }
  #main .product-copy h2 { font-size:30px; }
  #main .benefit-row { gap:16px; align-items:flex-start; }
  #main .benefit-row > span { font-size:14px; padding-top:5px; }
  #main .benefit-row h3 { font-size:22px; }
  #main .benefit-row p { margin-top:7px; }
  #main .benefit-row > .icon { margin-top:8px; }
  #main :is(.scene-caption,.scene-label,.floating-note span) { font-size:14px; line-height:1.6; color:#586c58; }
  #main .scene-caption { left:20px; }
  #main .scene-label { bottom:15px; }
  #main .floating-note { padding:13px; gap:10px; }
  #main .floating-note strong { font-size:16px; line-height:1.6; }
  #main .note-kitchen { bottom:50px; }
  #main .story-body h3 { font-size:26px; }
  #main .story-body .meta { flex-wrap:wrap; gap:8px 14px; }
  #main :is(.story-image > span,.story-category,.story-art-label) { font-size:14px; }

  /* Product preview: let the panel grow with the text instead of clipping it. */
  #main .platform-copy h1 { font-size:clamp(30px,8.2vw,36px); white-space:normal; }
  #main .platform-copy .inner-lead br { display:none; }
  #main .platform-endpoints { gap:12px 20px; }
  #main .platform-endpoints > * { font-size:14px; line-height:1.7; color:#53675b; gap:7px; }
  #main .platform-endpoints .icon { width:19px; height:19px; }
  #main .product-window-bar { font-size:14px; padding:15px 18px; gap:14px; flex-wrap:wrap; color:#607466; }
  #main .product-window-content { height:auto; min-height:370px; padding:22px 18px 0; gap:18px; align-items:stretch; }
  #main .product-screen { width:43%; min-width:0; flex:none; max-height:405px; }
  #main .product-window-copy { flex:1; min-width:0; padding:5px 0 20px; }
  #main .product-window-copy h2 { font-size:25px; line-height:1.5; }
  #main .product-window-copy .inner-kicker { font-size:14px; margin-bottom:13px; }
  #main .product-window-copy ul { margin-block:19px 15px; }
  #main .product-window-copy li { font-size:16px; line-height:1.8; color:#536851; }
  #main .product-window-copy li + li { margin-top:10px; }
  #main .product-window-copy .text-link { gap:7px; }
  #main .product-window-copy .text-link .icon { width:17px; height:17px; }
  #main .process-track { gap:28px 22px; }
  #main .process-track p { font-size:16px; }
  #main .verification-options > a { gap:20px; }
  #main .verification-options img { --equipment-photo-size:86px; }
  #main .verification-options h3 { font-size:24px; }
  #main .verification-options p { font-size:16px; }
  #main .management-list h3 { font-size:22px; }
  #main .demo-body { padding:20px; }
  #main .demo-top { flex-wrap:wrap; gap:10px; }
  #main .demo-top > span { font-size:14px; }
  #main :is(.demo-pill,.demo-heading span,.demo-metrics span,.demo-metrics small,.demo-bottom,.bar-column small) { font-size:14px; line-height:1.6; }
  #main .demo-metrics { gap:12px; }
  #main .demo-metrics strong { font-size:28px; }
  #main .demo-bottom { flex-wrap:wrap; gap:10px 16px; }
  #main .demo-bottom > small { font-size:14px; max-width:none; flex-basis:100%; text-align:left; margin:0; }
  #main .demo-heading h3 { font-size:20px; }
  #main .chart-bars { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; padding:0 0 28px; }
  #main .bar-column { width:auto; min-width:0; }
  #main .bar-column > span, #main .bar-column > i { width:calc((100% - 3px)/2); }
  #main .bar-column small { left:50%; bottom:-26px; transform:translateX(-50%); }

  /* Scene directory: give each scene a readable row rather than tiny columns. */
  #main .solution-directory-grid { grid-template-columns:1fr; gap:14px; }
  #main .solution-choice { display:grid; grid-template-columns:40px minmax(0,1fr) 20px; gap:7px 14px; padding:22px; }
  #main .solution-choice-top { display:contents; }
  #main .solution-choice-top > span { grid-column:1; grid-row:1/3; width:40px; height:40px; }
  #main .solution-choice-top > span .icon { width:29px; height:29px; }
  #main .solution-choice-top > small { display:none; }
  #main .solution-choice-top > .icon { grid-column:3; grid-row:1; width:19px; height:19px; align-self:center; margin:0; }
  #main .solution-choice h2 { grid-column:2; grid-row:1; font-size:25px; }
  #main .solution-choice p { grid-column:2/-1; grid-row:2; font-size:16px; min-height:0; margin:0; }
  #main .solution-choice .context-tags { grid-column:1/-1; grid-row:3; margin-top:10px; }
  #main .directory-note { font-size:15px; line-height:1.8; }
  #main .directory-note > span { align-items:flex-start; }
  #main .directory-note > span .icon { margin-top:5px; }
  #main .scenario-intro h1 > span { font-size:26px; line-height:1.5; }
  #main .scenario-brief h2 { font-size:23px; max-width:none; }
  #main .scenario-brief strong { font-size:17px; }
  #main :is(.scenario-brief > div > span,.setup-steps li > span,.company-service-grid article > span) { font-size:14px; }
  #main .solution-deliverables dl > div { grid-template-columns:80px minmax(0,1fr); gap:14px; }
  #main .solution-deliverables dt { font-size:17px; }

  /* Prices, equipment and customer work. */
  #main :is(.plan-name h2,.equipment-copy h2,.help-topic-list h2) { font-size:25px; }
  #main .plan-name > span { font-size:14px; line-height:1.6; padding:4px 8px; }
  #main .plan-scope { font-size:16px; }
  #main .plan-price small { font-size:16px; }
  #main .plan-price { height:auto; min-height:60px; }
  #main .pricing-intro p { max-width:100%; }
  #main .pricing-intro .button { min-width:0; }
  #main .comparison { font-size:16px; min-width:700px; }
  #main .comparison caption { font-size:17px; }
  #main .table-wrap { max-width:100%; }
  #main .equipment-item { align-items:flex-start; }
  #main .equipment-copy .inner-kicker { font-size:14px; }
  #main .equipment-item > img { margin-top:26px; }
  #main .equipment-assessment li > span { font-size:14px; }
  #main .case-secondary { gap:16px; }
  #main .case-secondary .text-link { font-size:16px; }
  #main .customer-names > div { padding:22px 15px; }
  #main .customer-names strong { font-size:17px; line-height:1.7; }
  #main .customer-names span { font-size:14px; margin-top:10px; }
  #main .journal-entry { grid-template-columns:1fr; gap:15px; }
  #main .journal-entry time { flex-direction:row; align-items:baseline; gap:12px; }
  #main .journal-entry time > span { font-size:15px; }
  #main .journal-entry h2 { font-size:25px; }
  #main .help-topic-list { min-width:0; }
  #main .help-topic-list > a { gap:14px; align-items:flex-start; }
  #main .help-topic-list > a > div { min-width:0; }
  #main .help-topic-list > a > .icon { margin-top:7px; }
  #main .reading-heading h1 { font-size:30px; line-height:1.55; }
  #main .article-body > p { line-height:1.95; }
  #main .article-body .intro { font-size:18px; }
  #main .article-body .article-source { font-size:14px; }

  /* Company, contact and app experience pages. */
  #main .company-intro h1 { font-size:32px; line-height:1.5; }
  #main .company-identity > span { font-size:15px; }
  #main .company-identity > p { font-size:15px; }
  #main .company-identity-words { flex-wrap:wrap; gap:10px; }
  #main .company-location > div > span:not(.inner-kicker) { font-size:15px; }
  #main .company-location .company-address { font-size:17px; line-height:1.85; }
  #main .company-phone { font-size:28px; flex-wrap:wrap; gap:12px; }
  #main .contact-person { gap:12px; flex-wrap:wrap; }
  #main .contact-person > span { font-size:16px; }
  #main .contact-person strong { font-size:22px; }
  #main .contact-person small { font-size:15px; }
  #main .direct-phone { font-size:clamp(29px,8vw,36px); gap:13px; }
  #main .direct-hours { font-size:15px; }
  #main .contact-address { gap:12px; }
  #main .contact-address p { font-size:17px; }
  #main .contact-preparation strong { font-size:16px; line-height:1.75; }
  #main .contact-wechat-panel > p { font-size:14px; }
  #main .app-code-block { gap:20px; flex-wrap:wrap; }
  #main .app-code-block > div { flex:1; min-width:140px; }
  #main .app-code-block img { width:145px; height:145px; }
  #main .app-code-block small { font-size:14px; line-height:1.8; }
  #main .app-code-block p { font-size:16px; }
  #main .app-code-block strong { font-size:22px; }
  #main :is(.experience-device-label,.experience-device > span) { font-size:14px; color:#586e4d; }
  #main .app-demo-link p { font-size:16px; }


  /* Footer: two columns give links room at a readable size. */
  body .site-footer .footer-main { grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px 22px; }
  body .site-footer .footer-brand { display:block; }
  body .site-footer .footer-brand p { font-size:16px; line-height:1.85; margin-top:17px; justify-self:start; }
  body .site-footer .footer-phone { display:inline-flex; min-height:44px; align-items:center; font-size:24px; }
  body .site-footer .footer-brand > span { display:block; font-size:14px; color:#64725d; margin-top:4px; }
  body .site-footer .footer-column { gap:0; }
  body .site-footer .footer-column h2 { font-size:17px; margin-bottom:10px; }
  body .site-footer .footer-column > a { font-size:16px; min-height:44px; padding-block:9px; line-height:1.6; color:#526657; }
  body .site-footer .footer-qr { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
  body .site-footer .footer-qr img { width:120px; height:120px; }
  body .site-footer .footer-qr span { font-size:14px; line-height:1.7; max-width:140px; }
  body .site-footer .footer-bottom { font-size:14px; line-height:1.85; gap:10px; padding-bottom:88px; }
  body .site-footer .footer-bottom > a { display:flex; align-items:center; min-height:44px; }
  #main .cta p { max-width:none; }
  #main .cta-actions { gap:12px; }
  #main .cta-actions .button { flex:1 1 170px; }

  /* Both dialogs keep their own scrolling region with a reachable close button. */
  #contact-dialog .consultation-copy { padding:27px 23px; }
  #contact-dialog .consultation-intro { padding-right:28px; }
  #contact-dialog .consultation-intro h2 { font-size:28px; white-space:normal; }
  #contact-dialog .consultation-intro > p { font-size:17px; line-height:1.8; }
  #contact-dialog .consultation-details { grid-template-columns:1fr; grid-template-areas:'person' 'phone' 'hours'; gap:18px; }
  #contact-dialog .consultation-details li > div > span { font-size:14px; }
  #contact-dialog .consultation-details strong { font-size:19px; }
  #contact-dialog .consultation-details .consultation-phone { font-size:25px; letter-spacing:0; }
  #contact-dialog .consultation-details .consultation-hours { font-size:16px; }
  #contact-dialog .consultation-details > li:nth-child(3) .consultation-detail-icon { display:grid; }
  #contact-dialog .consultation-more { font-size:16px; min-height:44px; line-height:1.7; margin-top:16px; }
  #contact-dialog .consultation-qr h3 { font-size:20px; }
  #contact-dialog .consultation-qr p { font-size:14px; line-height:1.8; }
  #contact-dialog .consultation-close, #demo-dialog .dialog-close { width:44px; height:44px; padding:12px; top:10px; right:10px; }
  #contact-dialog .consultation-close .icon, #demo-dialog .dialog-close .icon { width:19px; height:19px; }
  #demo-dialog { padding:0; overflow:hidden; max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); }
  #demo-dialog .demo-content { display:block; padding:40px 23px 25px; max-height:calc(100vh - 34px); max-height:calc(100dvh - 34px); overflow-y:auto; overscroll-behavior:contain; }
  #demo-dialog h2 { font-size:28px; }
  #demo-dialog .eyebrow { font-size:14px; }
  #demo-dialog p { font-size:17px; line-height:1.8; }
  #demo-dialog .dialog-note { font-size:14px; line-height:1.8; }
  #demo-dialog .text-link { font-size:16px; line-height:1.7; min-height:44px; }
}

@media (max-width: 365px) {
  #main .hero .button-row > a { justify-content:center; flex:1 1 100%; }
  #main .hero-assurance { column-gap:12px; }
  #main .product-window-content { padding-inline:15px; gap:14px; }
  #main .product-screen { width:40%; }
  #main .product-window-copy h2 { font-size:24px; }
  #main .product-window-copy .text-link { font-size:16px; }
  #main .product-window-copy .text-link .icon { width:15px; height:15px; }
  #main .verification-options > a { flex-direction:column; align-items:flex-start; }
  #main .verification-options img { --equipment-photo-size:130px; align-self:center; }
  #main .solution-choice { padding:20px 17px; gap:8px 12px; }
  #main .equipment-item { flex-direction:column-reverse; gap:20px; }
  #main .equipment-item > img { --equipment-photo-size:180px; align-self:center; margin:0; }
  #main .app-code-block > div { min-width:100%; }
  #main .demo-heading { align-items:flex-start; }
  #main .demo-heading > .icon { display:none; }
  #main .demo-metrics { gap:10px; }
  #main .demo-metrics strong { font-size:26px; }
  #main .plan-card { padding:24px; }
  #main .company-identity-words strong { font-size:26px; }
}

@media (max-width:680px) {
  #main .hero .button { border-radius:30px; }
  #main .hero .button.primary:has(>span) { padding:12px 19px; gap:12px; }
  #main .hero .button.primary > span { display:contents; }
}

@media (max-width:680px) {
  #main .steps { gap:14px; row-gap:14px; }
  #main .steps > li,
  #main .steps > li:nth-child(odd) { padding:20px 17px 18px; border:1px solid #dfe9e2; border-radius:14px; background:#fbfdfb; }
}

@media (max-width:680px) {
  #main #how-it-works { padding-block:40px 35px; }
  #main #how-it-works + .section { padding-top:35px; }
}

@media (max-width:680px) {
  #main .orbit-note { display:none; }
}
