/* Touch layouts are composed for reading, with full examples available on demand. */
.we-mobile-intro, .we-demo-launch, .we-demo-toolbar { display: none; }
@media (max-width: 860px) {
  .landing #particle-canvas { display: none; }
  body.landing.mobile-layout-ready { overflow-anchor: none; }
  .landing-nav.wrap, .has-scrolled .landing-nav.wrap {
    top: 12px; width: calc(100% - 32px); max-width: none; min-height: 44px;
    height: auto; padding: 0; grid-template-columns: 1fr auto; align-items: center;
  }
  .landing-nav.wrap::before { content: ''; position: absolute; inset: -6px -8px; z-index: -1; border-radius: 32px; opacity: 0; pointer-events: none; }
  .has-scrolled .landing-nav.wrap::before { opacity: 1; background: #fffffff5; box-shadow: 0 5px 30px #15251c0d; backdrop-filter: blur(12px); }
  .landing-nav .landing-brand, .has-scrolled .landing-nav .landing-brand {
    height: 44px; padding: 0; gap: 7px; font-size: 23px; background: transparent;
  }
  .landing-nav .landing-brand img, .has-scrolled .landing-nav .landing-brand img { width: 28px; height: 28px; }
  .landing-nav .nav-actions { grid-column: 2; grid-row: 1; gap: 7px; padding: 0; }
  .landing-nav .nav-price { display: none; }
  .landing-nav .nav-cta, .has-scrolled .landing-nav .nav-cta {
    display: inline-flex; width: auto; height: 44px; min-height: 44px; min-width: 96px;
    padding: 0 17px; font-size: 13px; border-radius: 24px; color: #fff; background: #292a37;
  }
  .landing-nav .nav-cta:is(:hover,:focus-visible) { color: #fff; background: #292a37; }
  .landing-nav .nav-cta::before { display: none; }
  .landing-nav .nav-demo.menu-toggle, .has-scrolled .landing-nav .nav-demo { width: 44px; height: 44px; min-height: 44px; padding: 0; }
  .landing-nav .nav-wave { width: 22px; height: 18px; }
  .landing-nav #landing-navigation, .has-scrolled .landing-nav #landing-navigation { top: 56px; max-height: calc(100svh - 92px); }
  .hero-statement { grid-area: auto; position: absolute; top: 76px; left: 0; right: 0; margin: 0; height: auto; font-size: clamp(16px,4.8vw,26px); line-height: 1.7; }
  .spatial-hero, .motion-paused .spatial-hero { height: min(78svh, 670px, calc(100svh - 90px)); min-height: min(490px, calc(100svh - 90px)); padding: 0; }
  .hero-sticky.wrap { height: 100%; padding: 164px 16px 0; }
  .hero-art, .motion-paused .hero-art { position: relative; top: auto; bottom: auto; left: auto; right: auto; height: 100%; width: 100%; min-height: 0; margin: 0; aspect-ratio: auto; border-radius: 20px; }
  .platform-strip { height: 90px; padding: 12px 0 15px; gap: 10px; }
  .platform-status { font-size: 10px; letter-spacing: 0; }

  .landing .wenti-features { padding: 26px 0 44px; }
  .wenti-features { --wf-unit: 8px; --wf-padding: 18px; --wf-radius: 16px; --wf-gap: 8px; }
  .wenti-features .wf-container { padding-inline: 20px; }
  .wf-overview { margin: 0 0 24px; }
  .wf-overview__grid { display: block; }
  .wf-overview__label { margin-bottom: 12px; }
  .wf-overview__label h2 { font-size: 13px; color: #717777; line-height: 1.5; }
  .wf-overview__text { max-width: 540px; font-size: 19px; line-height: 1.65; letter-spacing: -.02em; }
  .wf-section { margin: 0; }
  .wf-mobile-ready .wf-stage { height: auto !important; opacity: 1 !important; }
  .wf-mobile-ready { overflow-anchor: none; }
  .wf-card { padding: 16px 18px; border-radius: 16px; }
  .wf-card__head { flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 12px; }
  .wf-card__head h3 { flex: 1; min-width: 0; font-size: 20px; line-height: 1.4; letter-spacing: -.035em; }
  .wf-card__toggle { position: relative; display: block; width: 100%; min-height: 44px; padding: 5px 23px 5px 0; }
  .wf-mobile-ready .wf-card__toggle::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 22px/1 Arial,sans-serif; opacity: .5; }
  .wf-mobile-ready .is-open .wf-card__toggle::after { content: '−'; }
  .wf-card__number { width: 18px; margin: 0; font-size: 11px; line-height: 1; opacity: .45; }
  .wf-card__text { max-width: 560px; margin-top: 12px; font-size: 14px; line-height: 1.7; letter-spacing: .01em; color: #d9d8de; }
  .wf-card__action { margin: 12px 0 0; }
  .wf-more { min-height: 44px; gap: 12px; font-size: 13px; }
  .wf-more__circle { width: 28px; height: 28px; }
  .wf-more__circle img { width: 12px; height: 12px; }
  .wf-card__texture { width: 88%; opacity: .35; }
  .wenti-features.wf-mobile-ready .wf-card__accordion { grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
  .wenti-features.wf-mobile-ready .wf-card__content { opacity: 0; transition: opacity .15s ease; }
  .wf-mobile-ready .wf-card:not(.is-open) { color: #292d30; }
  .wf-mobile-ready .wf-card:not(.is-open) .wf-card__fill { background: #f0f1f2; }
  .wf-mobile-ready .wf-card:not(.is-open) .wf-card__texture { opacity: 0; }
  .wenti-features.wf-mobile-ready .wf-card.is-open .wf-card__accordion { grid-template-rows: 1fr; }
  .wenti-features.wf-mobile-ready .wf-card.is-open .wf-card__content { opacity: 1; }
  .wf-mobile-ready .wf-card.is-open .wf-card__texture { opacity: .55; }
  .wf-mobile-ready .wf-word { transform: none !important; }

  #experience.wt-tour { padding-top: 0; }
  .wt-container { width: calc(100% - 40px); }
  .we-demo { margin-bottom: 56px; scroll-margin-top: 82px; }
  .we-mobile-intro { display: block; margin: 0 0 20px; }
  .we-mobile-intro > p:first-child, .wt-tour .wf-updates-eyebrow { margin: 0 0 8px; color: #777e7c; font-size: 12px; line-height: 1.5; }
  .we-mobile-intro h2, .wf-updates-story h3, .wt-story h3 { font-size: 25px; font-weight: 500; letter-spacing: -.045em; line-height: 1.45; }
  .we-mobile-intro > p:last-child { margin-top: 10px; max-width: 520px; color: #727879; font-size: 14px; line-height: 1.8; }
  .we-demo-stage, .wf-updates-scene { padding: 12px; border-radius: 18px; background: linear-gradient(140deg,#e5ece9,#eceaf3); }
  .mobile-layout-ready .we-demo-window:not(:modal) { max-height: 350px; border-color: #d8ddda; border-radius: 12px; box-shadow: 0 8px 20px #313e3810; }
  .mobile-layout-ready .we-demo-window:not(:modal)::after { content: ''; position: absolute; inset: auto 0 0; height: 72px; pointer-events: none; background: linear-gradient(transparent,#f5f5ee); }
  .mobile-layout-ready .we-demo-window:not(:modal) iframe { pointer-events: none; }
  .we-demo-titlebar, .wf-updates-scene .we-demo-titlebar { height: 28px; }
  .we-demo-titlebar h2, .wf-updates-scene .we-demo-titlebar h2 { font-size: 10px; }
  .we-mode, .wf-updates-scene .we-mode { display: none; }
  .we-window-controls, .wf-updates-scene .we-window-controls { left: 10px; gap: 4px; }
  .we-window-controls i, .wf-updates-scene .we-window-controls i { width: 6px; height: 6px; }
  .we-demo-launch { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin-top: 10px; padding: 10px 15px; border: 0; border-radius: 12px; background: #fff; color: #293c34; font-size: 13px; font-weight: 500; }
  .we-demo-launch::after { content: '↗'; font-size: 20px; font-weight: 400; }
  .we-demo-launch:active { background: #f1f5f2; }
  .mobile-layout-ready .we-demo-controls, .mobile-layout-ready .wf-updates-reset { display: none; }

  .wf-updates, .wf-materials { display: flex; flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 56px; padding: 0; background: transparent; border: 0; border-radius: 0; scroll-margin-top: 82px; }
  .wf-updates-story, .wf-materials .wf-updates-story { order: -1; padding: 0; }
  .wf-updates-story h3 { margin-bottom: 10px; }
  .wf-updates-story h3 br, .wf-updates-note br { display: none; }
  .wf-updates-story > p:not(.wf-updates-eyebrow):not(.wf-updates-note) { max-width: 540px; font-size: 14px; line-height: 1.8; }
  .wt-tour .wf-updates-note { margin-top: 8px; font-size: 12px; line-height: 1.7; color: #8a8f8c; }
  .wf-updates-story .wt-link { margin-top: 4px; font-size: 13px; min-height: 44px; }

  /* A native modal keeps focus, Escape, scrolling and the same iframe state. */
  body.demo-modal-active { overflow: hidden; }
  .we-demo-window:modal, .wf-updates-scene .we-demo-window:modal {
    position: fixed; inset: 0; width: calc(100% - 24px); height: calc(100dvh - 24px);
    max-width: 780px; max-height: calc(100dvh - 24px); margin: auto; padding: 0;
    overflow: auto; overscroll-behavior: contain; border: 1px solid #dce3dd;
    border-radius: 18px; box-shadow: 0 24px 80px #101b2255;
    scroll-padding-top: 64px; -webkit-overflow-scrolling: touch;
  }
  .we-demo-window::backdrop { background: #17201ed9; backdrop-filter: blur(5px); }
  .we-demo-window:modal .we-demo-titlebar { display: none; }
  .we-demo-window:modal .we-demo-toolbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; padding: 7px 12px; border-bottom: 1px solid #e0e4df; background: #f5f5ee; color: #345044; font-size: 13px; }
  .we-demo-toolbar > div { display: flex; gap: 6px; }
  .we-demo-toolbar button { min-height: 44px; min-width: 44px; border: 0; border-radius: 10px; padding: 10px; background: transparent; color: #61716a; font-size: 12px; }
  .we-demo-toolbar .we-demo-close { color: #fff; background: #264c3e; padding-inline: 16px; }

  #experience.wt-tour #agent.wt-chapter { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; padding: 0; background: transparent; scroll-margin-top: 82px; }
  #agent .wt-story { padding: 0; order: 0; }
  #agent .wt-story h3 { font-size: 25px; }
  #agent .wt-story > p { margin-top: 10px; font-size: 14px; line-height: 1.8; color: #727879; letter-spacing: 0; }
  #agent .wt-story .wt-link { margin-top: 4px; font-size: 13px; }
  #agent .wt-agent-scene { padding: 12px; border-radius: 18px; }
  #agent .wt-api-window { padding: 14px; border-radius: 12px; transform: none; opacity: 1; }
  .wt-agent-heading { padding-bottom: 12px; }
  .wt-agent-run { min-height: 44px; }
  .wt-pipeline { flex-direction: row; justify-content: space-between; gap: 6px; margin: 16px 0 0; }
  .wt-pipeline-node { display: flex; flex-direction: column; justify-content: center; gap: 10px; flex: 1; min-height: 86px; padding: 10px 2px; border: 0; border-radius: 8px; }
  .wt-pipeline-node strong { font-size: 11px; }
  .wt-pipeline-node > span, .wt-agent-output { display: none; }
  #agent .wt-scene-foot { align-items: flex-start; gap: 10px; margin-top: 12px; font-size: 11px; line-height: 1.6; }
  .wt-tour #faq.wt-faq { width: calc(100% - 40px); grid-template-columns: 1fr; gap: 20px; padding: 16px 0 36px; }
  .wt-faq-intro h2 { font-size: 25px; }
  .wt-questions summary { min-height: 64px; padding: 18px 0; font-size: 14px; }
  .wt-questions details > p { font-size: 13px; line-height: 1.8; }
  .wt-tour #pricing.wt-closing { padding-top: 0; }
  .wt-closing-main { padding: 42px 0; gap: 22px; }
  .wt-closing-main h2 { font-size: clamp(29px,7.8vw,40px); }
  .wt-footer { padding: 24px 0 max(22px,env(safe-area-inset-bottom)); gap: 16px; }
  .wt-footer > div a { display: inline-flex; align-items: center; min-height: 44px; }
  .wf-more__title-track, .wf-more__circle, .nav-cta::before { transition: none; }
  .wf-more:hover .wf-more__title-track, .wf-more:focus-visible .wf-more__title-track { transform: none; }
}
@media (min-width: 601px) and (max-width: 860px) {
  .hero-sticky.wrap { padding-top: 190px; }
}
@media (max-width: 359px) {
  .landing-nav.wrap, .has-scrolled .landing-nav.wrap { width: calc(100% - 24px); }
  .landing-nav .landing-brand { font-size: 20px; gap: 5px; }
  .landing-nav .nav-cta { min-width: 88px; padding-inline: 13px; }
  .wenti-features .wf-container { padding-inline: 16px; }
  .wt-container, .wt-tour #faq.wt-faq { width: calc(100% - 32px); }
  .wf-card { padding-inline: 14px; }
  .wf-card__head { gap: 8px; }
  .wf-card__head h3 { font-size: 18px; }
  .we-demo-stage, .wf-updates-scene { padding: 10px; }
}
@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
  .wf-mobile-ready .wf-card__accordion, .wf-mobile-ready .wf-card__content { transition: none; }
}
