/* Phone composition. Desktop keeps its original layout and motion. */
.nav .mobile-app-link { display: inline-flex; }
.phone-copy { display: none; }
@media (max-width: 600px), (max-width: 900px) and (max-height: 550px) and (orientation: landscape) and (pointer: coarse) {
  html { scroll-behavior: auto; scroll-padding-top: 86px; }
  body { overflow-x: clip; }
  .section, .container { width: calc(100% - 32px); }
  .section { padding-block: 48px; }
  .desktop-copy { display: none !important; }
  .phone-copy { display: block; }
  .scroll-fade, .reveal-ready .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: opacity 420ms cubic-bezier(.16,1,.3,1); }
  .scroll-fade.phone-out { opacity: .18 !important; }
  .scroll-fade:focus-within, .is-paused .scroll-fade, .is-paused .scroll-fade.phone-out { opacity: 1 !important; transform: none !important; }
  .company-page .hero-content, .product-page .product-hero-layout { opacity: 1 !important; transform: none !important; will-change: auto; }
  .nav { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .zepo-window, .plan-surface { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .product-page .hero-content { opacity: 1 !important; transform: none !important; }
  .company-page .nav-inner { gap: 8px; padding-inline: 10px; }
  .company-page .nav-actions { gap: 6px; }
  .company-page .nav .logo img { width: clamp(74px, 23vw, 94px); }
  .company-page .nav .btn { padding: 8px 10px; min-height: 44px; gap: 5px; white-space: nowrap; }
  .company-page .nav .mobile-app-link { display: inline-flex; color: #245ca6; }
  .company-page .nav .btn-nav:not(.mobile-app-link) .icon { display: none; }
  .company-page .nav-burger { width: 36px; flex-shrink: 0; }
  .section-heading h2, .product-heading h2, .product-page .section-heading h2 { font-size: clamp(30px, 8vw, 38px); line-height: 1.18; }
  .section-heading p, .product-heading > p { font-size: 16px; line-height: 1.55; margin-top: 12px; }
  .section-heading { text-align: center; }
  .motion-controls { display: flex; left: 12px; bottom: 10px; transform: none; }
  .motion-controls button, .product-page .motion-controls button { width: 40px; height: 40px; }
  .motion-controls #introReplay { display: none; }

  /* A phone has no useful keyboard canvas; the live search remains in the demo. */
  .company-page #keyboard { display: none; }
  .company-page .hero { min-height: 100svh; height: auto; max-height: none; display: grid; place-items: center; padding: 124px 24px 88px; }
  .company-page .hero-content { padding: 0; isolation: isolate; }
  .company-page .hero-content::before { inset: -46px -24px -28px; background: radial-gradient(ellipse at 45% 46%, #f1f3f6e6 12%, #f1f3f6a6 48%, transparent 76%); filter: blur(18px); }
  .company-page .hero-content > * { animation: phone-arrive 650ms cubic-bezier(.16,1,.3,1) both; filter: none; }
  .company-page .hero h1 { font-size: clamp(35px, 10.6vw, 46px); line-height: 1.14; }
  .company-page .hero-content > p { margin-top: 28px; font-size: 19px; line-height: 1.65; }
  .company-page .hero-actions { margin-top: 32px; }
  .company-page .hero-actions > .text-link { display: none; }
  .company-page .studio-section { display: block; padding-block: 64px 68px; text-align: center; }
  .company-page .studio-section h2 { font-size: 35px; }
  .company-page .studio-copy { margin-top: 24px; }
  .company-page .studio-copy p { font-size: 16px; line-height: 1.7; }
  .company-page .studio-copy .phone-copy { margin-top: 0; }
  .company-page .studio-links { display: none; }
  .company-page .showcase { padding-top: 54px; }
  .company-page .showcase .zepo-intro { gap: 13px; }
  .company-page .showcase .zepo-icon { width: 48px; height: 48px; }
  .company-page .showcase .zepo-benefits { display: none; }
  .company-page .showcase .zepo-cta-intro { margin-top: 24px; }
  .company-page .showcase .section-heading { margin-bottom: 22px; }
  .company-page .showcase .zepo-benefits { margin-top: 18px; gap: 5px; }
  .company-page .showcase .home-zepo-media { margin-top: 18px; }
  .company-page .showcase > .desktop-stage { height: 470px; margin-top: 18px !important; }

  /* One featured product, followed by a compact two-up preview of what's next. */
  .company-page .apps-section > .section-heading { margin-bottom: 26px; }
  .company-page .app-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .company-page .app-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; }
  .company-page .app-card:first-child .app-art { grid-column: 1; grid-row: 1; width: 88px; height: 100%; min-height: 0; padding: 19px 10px; justify-content: flex-start; background: none; }
  .company-page .app-card:first-child .app-glyph { width: 62px; height: 62px; }
  .company-page .app-card:first-child .app-preview { display: none; }
  .company-page .app-card:first-child .app-info { grid-column: 2; grid-row: 1; padding: 21px 15px 14px 5px; }
  .company-page .app-card:first-child .app-info p { font-size: 14px; line-height: 1.5; }
  .company-page .app-card:first-child .app-card-action { grid-column: 1 / -1; grid-row: 2; margin-inline: 16px; min-height: 48px; }
  .company-page .app-coming { min-width: 0; min-height: 174px; }
  .company-page .app-coming .app-art { display: none; }
  .company-page .app-coming .app-info { padding: 17px 12px 8px; }
  .company-page .app-coming .app-info h3 { font-size: 17px; line-height: 1.2; }
  .company-page .app-coming .app-info p { font-size: 13px; line-height: 1.45; margin-top: 7px; }
  .company-page .app-coming .app-card-status { margin-inline: 12px; min-height: 38px; font-size: 9px; letter-spacing: .07em; }
  .company-page .bespoke-section { width: calc(100% - 20px); margin-block: 26px 12px; }
  .company-page .bespoke-shell { padding: 34px 18px 32px; }
  .company-page .bespoke-shell h2 { font-size: clamp(30px, 8vw, 38px); }
  .company-page .bespoke-shell > .section-heading { margin-bottom: 14px; }
  .company-page .bespoke-shell .section-heading p { font-size: 15px; line-height: 1.5; margin-top: 13px; }
  .company-page .bespoke-stage { height: 235px; margin-bottom: 8px; }
  .company-page .build-scene { transform: scale(.78); transform-origin: 50% 18%; }
  .company-page .build-stage-note { display: none; }
  .company-page .process-options { gap: 6px; }
  .company-page .process-options button { font-size: 11px; line-height: 1.3; min-height: 69px; padding-top: 12px; }
  .company-page #buildCaption { min-height: 0; margin: 10px auto 18px; }
  .company-page .faq-section { gap: 16px; }

  /* The offline proof is one coherent phone panel, with the three counts aligned. */
  .product-page .product-hero { min-height: 100svh; height: auto; max-height: none; padding: 114px 16px 66px; }
  .product-page .product-hero-layout { gap: 28px; }
  .product-page .hero-content > * { animation: phone-arrive 650ms cubic-bezier(.16,1,.3,1) both; filter: none; }
  .product-page .hero h1 { max-width: none; font-size: clamp(34px, 10.2vw, 46px); white-space: nowrap; line-height: 1.2; }
  .product-page .hero-features { margin-top: 26px; gap: 6px; }
  .product-page .product-hero-media { width: min(100%, max(180px, calc((100svh - 420px) * 1.3333 + 18px))); max-width: 410px; }
  .product-page .video-hero-field { display: block; }
  .product-page .has-video-hero > .optical-field { visibility: hidden; }
  .product-page .optical-field { opacity: .322; }
  .product-page .hero-content::before { display: block; }
  .product-page .product-hero > .motion-controls { display: flex; }

  .product-page .hero-features li { font-size: 13px; gap: 4px; }
  .product-page .hero-features .icon { width: 23px; height: 23px; }
  .product-page .product-included { padding-top: 38px; }
  .product-page .product-included .product-heading h2 { font-size: 35px; }
  .product-page .offline-window { margin-top: 20px; }
  .product-page .offline-surface { gap: 12px; padding: 23px 15px 18px; }
  .product-page .offline-copy h3 { font-size: 26px; line-height: 1.14; }
  .product-page .offline-copy p { font-size: 15px; line-height: 1.5; margin-top: 10px; }
  .product-page .offline-proof { margin-top: 11px; gap: 9px; }
  .product-page .offline-proof strong { font-size: 48px; }
  .product-page .offline-proof span { font-size: 14px; line-height: 1.35; }
  .product-page .local-workspace { display: none; }
  .product-page .offline-library { gap: 0; margin-top: 0; }
  .product-page .offline-library > div { padding: 12px 2px 2px !important; }
  .product-page .offline-library dd { font-size: clamp(23px, 6.6vw, 30px); }
  .product-page .offline-library dt { font-size: 12px; line-height: 1.3; margin-top: 5px; }

  /* Three phases read as one sequence instead of three full desktop cards. */
  .product-page .product-workflow { padding-block: 44px; }
  .product-page .workflow-heading h2 { font-size: 29px; }
  .product-page .workflow-pause { display: none; }
  .product-page .product-steps { margin-top: 19px; padding: 5px; }
  .product-page .product-steps li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; min-height: 110px; padding: 12px 14px; }
  .product-page .step-title { grid-column: 1; gap: 8px; }
  .product-page .step-number { font-size: 26px; }
  .product-page .product-steps h3 { font-size: 19px; }
  .product-page .product-steps p { grid-column: 1; font-size: 13px; line-height: 1.35; margin: 0; }
  .product-page .workflow-example { grid-column: 2; grid-row: 1 / 3; min-height: 0; max-width: 122px; margin: 0; padding: 7px; gap: 5px; border: 0; box-shadow: none; background: transparent; backdrop-filter: none; font-size: 13px; line-height: 1.25; }
  .product-page .workflow-example > .icon { width: 20px; height: 20px; }
  .product-page .workflow-example > .workflow-plan { width: 30px; height: 28px; }
  .product-page .workflow-example small { font-size: 9px; }

  /* The live demo stays interactive, but loses the redundant desktop frame. */
  .product-page .product-examples { gap: 21px; }
  .product-page .product-examples .product-heading { width: 100%; max-width: 100%; text-align: right; padding-inline: 16px; }
  .product-page .product-examples .product-heading > p { margin-top: 10px; }
  .product-page .product-demo { padding: 19px 5px 7px; min-height: 0; }
  .product-page .product-demo .desktop-bar, .product-page .product-demo .revit-surface { display: none; }
  .product-page .product-demo .command-window { width: 100%; }
  .product-page .command-title { padding: 9px 12px; }
  .product-page .command-search { padding: 10px 12px; }
  .product-page .command-search input { font-size: 16px; }
  .product-page .command-results { gap: 3px; padding: 6px; }
  .product-page .command-row { min-height: 43px; padding: 5px 7px; }
  .product-page .tool-symbol { width: 27px; height: 27px; }
  .product-page .tool-symbol .icon { width: 16px; height: 16px; }
  .product-page .command-detail { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 2px 10px; padding: 10px 14px; text-align: right; }
  .product-page .command-detail .detail-icon { grid-column: 1; grid-row: 1 / 3; }
  .product-page .command-detail strong, .product-page .command-detail > span:not(.detail-icon):not(.match-label) { grid-column: 2; }
  .product-page .command-detail p, .product-page .command-detail .match-label { grid-column: 1 / -1; }
  .product-page .detail-icon .icon { width: 26px; height: 26px; }
  .product-page .command-detail p { margin: 3px 0; line-height: 1.4; }
  .product-page .command-footer { padding: 7px 10px; }
  .product-page .product-demo .demo-dock { display: none; }
  .product-page .product-guidance { gap: 17px; }
  .product-page .product-guidance .product-heading > p { margin-top: 9px; }
  .product-page .product-guidance .text-link { margin-top: 12px; }
  .product-page .product-guide { min-height: 0; padding: 18px 5px 7px; }
  .product-page .product-guide .desktop-bar, .product-page .product-guide .revit-surface { display: none; }
  .product-page .product-guide .guide-chat { gap: 10px; padding: 14px; }
  .product-page .product-guide .guide-chat ol { line-height: 1.75; }

  /* Native-feeling plan choice presents one readable offer at a time. */
  .product-page .product-pricing { width: calc(100% - 20px); margin: 22px auto; padding: 34px 16px 32px; }
  .product-page .product-pricing .product-heading h2 { font-size: 34px; }
  .product-page .product-pricing > .product-heading > p { font-size: 15px; margin-top: 9px; }
  .mobile-plan-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-top: 24px; padding: 5px; border: 1px solid #ffffffb8; border-radius: 15px; background: #eaf4ff8c; box-shadow: inset 0 1px 2px #fff; }
  .mobile-plan-picker button { min-height: 43px; border-radius: 11px; background: transparent; color: #294566; font-size: 14px; font-weight: 550; }
  .mobile-plan-picker button[aria-pressed="true"] { color: #17375a; background: linear-gradient(145deg,#f9fcff,#cce2fb); box-shadow: inset 0 1px 1px #fff, 0 3px 9px #32567924; }
  .mobile-plan-picker button[data-mobile-plan="annual"] { color: #493a21; background: linear-gradient(145deg,#fff4d8,#ecd39c); box-shadow: inset 0 1px 1px #fff; }
  .mobile-plan-picker button[data-mobile-plan="annual"][aria-pressed="true"] { box-shadow: inset 0 0 0 1px #b4934c, inset 0 2px 2px #fff, 0 3px 9px #66502526; }
  .product-page .is-recommended .plan-cta { background: linear-gradient(150deg,#fff1c9,#edcf8b 58%,#e5c075); background-color: #edcf8b; color: #493a21; border-color: #fff3d2; }
  .product-page .pricing-plans { margin-top: 14px; }
  .product-page .pricing-plan[hidden] { display: none !important; }
  .product-page .plan-surface { padding: 22px; }
  .product-page .plan-price { margin-top: 14px; }
  .product-page .plan-price bdi { font-size: 47px; }
  .product-page .plan-billing { margin-top: 12px; font-size: 16px; }
  .product-page .plan-duration { margin-bottom: 8px; font-size: 15px; }
  .product-page .plan-availability { padding-top: 13px; }
  .product-page .pricing-renewal { font-size: 14px; line-height: 1.5; margin-top: 15px; }
  .product-page .faq-section { gap: 15px; }
  .product-page .final-section { padding-block: 55px; }
  .product-page .final-section .section-heading p, .product-page #download > .closing-benefits { font-size: 15px; line-height: 1.5; }
  .product-page #download > .closing-benefits { margin-block: 16px; }
}

@keyframes phone-arrive {
  from { opacity: .65; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-fade.phone-out { opacity: 1 !important; transition: none; }
  .company-page .hero-content > *, .product-page .hero-content > * { animation: none; }
}

@media (max-width: 350px) {
  .company-page .app-card:first-child { grid-template-columns: 69px minmax(0, 1fr); }
  .company-page .app-card:first-child .app-art { width: 69px; padding-inline: 8px; }
  .company-page .app-card:first-child .app-glyph { width: 50px; height: 50px; }
  .company-page .app-coming .app-info h3 { font-size: 15px; }
  .product-page .hero-features li { font-size: 12px; }
  .product-page .workflow-example { max-width: 94px; font-size: 11px; }
}
