/* Phone layout: native scrolling, readable diagrams, and direct touch controls. */
.mobile-workflow,.mobile-nav-link,.mobile-diagram-button,.mobile-ack-command{display:none}
.diagram-dialog{width:min(1060px,100%);height:min(94dvh,1100px);max-width:100%;max-height:100dvh;margin:auto;padding:0;border:1px solid #8d989f;background:#e7eaed;color:#191b1d;overflow:hidden}
.diagram-dialog[open]{display:flex;flex-direction:column}
.diagram-dialog::backdrop{background:#10171ed9}
.diagram-dialog-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid #20262b26}
.diagram-dialog h2{font:600 17px/1.4 var(--sans);letter-spacing:-.02em}
.diagram-close,.diagram-zoom button{min-width:46px;min-height:46px;border:1px solid #20262b40;background:#f4f6f8;color:#191b1d;font:500 16px var(--sans)}
.diagram-viewport{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:18px}
.diagram-canvas{width:100%;min-height:100%;display:grid;align-items:center}
.diagram-dialog .diagram-canvas>svg{display:block;max-width:none;height:auto}
.diagram-zoom{flex-shrink:0;display:flex;justify-content:center;align-items:center;gap:12px;padding:10px 20px;border-top:1px solid #20262b26;background:#e7eaed}
.diagram-zoom output{min-width:54px;text-align:center;font:12px var(--mono)}
.diagram-dialog .sl-layer,.diagram-dialog .sl-gap{opacity:1!important;transform:none!important;transition:none}
.diagram-dialog .sl-beam,.diagram-dialog .sl-packet,.diagram-dialog .sl-callout,.diagram-dialog .packet,.diagram-dialog .packet-light,.diagram-dialog .halo,.diagram-dialog .scan{display:none}
@media(max-width:1024px){
 html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:88px}
 body{min-width:0}
 .wrap{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
 .header{position:relative;height:auto;min-height:76px;gap:16px;padding-top:8px;padding-bottom:8px;z-index:50;background:var(--paper)}
 .header .brand{min-height:48px;gap:6px}
 .header .logo-symbol{width:43px;height:38px}
 .header .logo-symbol img{width:78px;height:78px;left:-16px;top:-16px}
 .header .logo-wordmark{width:145px;height:20px}
 .header .logo-wordmark img{width:200px;height:200px;left:-28px;top:-140px}
 .header-access{display:none}
 .header .menu-toggle{display:block;min-height:46px;min-width:76px;padding:10px 14px;font-size:13px;background:#edf0f3;border-color:#8b969e}
 .header #navigation{display:none;position:absolute;inset:100% 0 auto;max-height:calc(100dvh - 90px);overflow-y:auto;grid-template-columns:1fr 1fr;gap:0!important;padding:12px 20px 20px;background:#e8ebee;border-bottom:1px solid #89969f;box-shadow:0 20px 30px #1b28321a;backdrop-filter:none;-webkit-overflow-scrolling:touch}
 .header #navigation.is-open{display:grid}
 .header #navigation a{display:flex;align-items:center;min-height:52px;padding:10px 12px;border-bottom:1px solid #20262b1c;font-size:14px;line-height:1.4}
 .header #navigation a:after{display:none}
 .header #navigation .mobile-nav-link{display:flex}
 .header #navigation .mobile-nav-chat{grid-column:1/-1;justify-content:center;margin-top:14px;background:#20262b;color:#fff;border:0;min-height:48px}
 input,textarea,select{font-size:16px}
 .fx-cursor,.fx-cursor-ring,.fx-cursor-dot,.fx-cursor-read{display:none!important}
 .footer{gap:20px;flex-wrap:wrap}
 .footer a{display:inline-flex;align-items:center;min-height:44px}
 #terms-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 32px);padding:24px 20px}
 #terms-dialog button{min-height:48px}
}
@media(max-width:760px),(max-width:1024px) and (max-height:540px){
 :root{--pad:20px}
 html{scroll-behavior:auto}
 .header{padding-top:max(6px,env(safe-area-inset-top));min-height:70px}
 .fx.fx-boot body::after,.fx-intro,.fx-ambient,.fx-motion,.fx-seal,.fx-lens,.fx-trace,.fx-shine{display:none!important}
 .fx.fx-lock,.fx.fx-lock body{overflow:visible}
 .fx.fx-pre .header,.fx [data-fx],.fx .fx-redact-host,.fx .fx-redact{opacity:1!important;translate:none!important;scale:none!important;filter:none!important;transform:none!important;color:inherit;visibility:visible!important}
 .fx [data-fx],.fx .fx-redact{transition:none!important;animation:none!important;background-image:none!important}
 .fx .code-panel pre{-webkit-mask-image:none!important;mask-image:none!important;animation:none!important}
 .landing .section{padding-block:54px}
 .section-top{gap:12px;align-items:start;flex-direction:column;font-size:10px;line-height:1.6;margin-bottom:24px!important;padding-bottom:16px}
 .section-top>span:last-child{color:#59656f}
 .lp-hero{display:flex;flex-direction:column;align-items:stretch;gap:26px;padding-top:30px;padding-bottom:44px}
 .lp-kicker{font-size:10px;letter-spacing:.045em;line-height:1.6}
 .lp-hero h1{margin-top:18px;font-size:clamp(31px,8.4vw,48px);line-height:1.12;letter-spacing:-.055em}
 .lp-hero h1>span{color:#4d5963;margin-top:9px}
 .lp-hero .lp-lead{margin-top:20px;font-size:15px;line-height:1.75;max-width:none}
 .lp-hero .hero-actions{display:grid;grid-template-columns:1fr;align-items:stretch;gap:8px;margin-top:24px}
 .lp-hero .hero-actions a{min-height:50px;font-size:13px}
 .lp-hero .hero-actions .button{padding-inline:18px}
 .lp-hero .hero-actions .plain-link{justify-content:center;border:0}
 .lp-make{margin-top:20px;border:0;background:transparent;gap:0}
 .lp-make li{grid-template-columns:20px minmax(0,1fr) auto;padding:13px 0;border-bottom:1px solid #20262b26;background:transparent;gap:4px 10px}
 .lp-make strong{font-size:13px;line-height:1.4}
 .lp-make small{font-size:11px;color:#4b5964}
 .lp-state{font-size:9px;line-height:1.6;padding:3px 6px}
 .lp-core{border:1px solid #8c9aa4;background:#e7ebee;max-width:none;width:100%}
 .lp-core>svg{display:none}
 .lp-core figcaption{display:block;padding:13px 16px;font:10px/1.7 var(--mono);background:#e7ebee}
 .lp-core figcaption>span:last-child{display:none}
 .mobile-workflow{display:block;padding:20px 16px 8px}
 .mw-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;font:10px/1.6 var(--mono);color:#4a5d6b}
 .mw-title span:last-child{display:flex;align-items:center;gap:6px}
 .mw-title i{width:6px;height:6px;background:#4d7d68;border-radius:50%}
 .mw-inference{background:#202a32;color:#f1f5f8;padding:20px;border:1px solid #465967}
 .mw-inference-header{display:flex;align-items:center;gap:12px}
 .mw-inference-header svg{width:26px;height:26px;flex-shrink:0;color:#a4c4df}
 .mobile-workflow strong{font-size:15px;font-weight:600;letter-spacing:-.02em;line-height:1.4}
 .mobile-workflow p{font-size:12px;line-height:1.7;margin-top:7px}
 .mw-inference p{color:#bacbd8}
 .mw-models{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
 .mw-models span{padding:7px 10px;background:#34434f;border:1px solid #5a6c7b;color:#e9f1f7;font-size:12px}
 .mw-connector{height:28px;position:relative;display:grid;place-items:center}
 .mw-connector:before{content:'';height:28px;width:1px;background:#687f91}
 .mw-connector:after{content:'';position:absolute;bottom:0;border:4px solid transparent;border-top-color:#687f91;transform:translateY(4px)}
 .mw-policy{background:#f3f6f8;border:1px solid #8b9eac;padding:17px 19px}
 .mw-policy p{color:#536675}
 .mw-decisions{display:flex;gap:7px;margin-top:12px;flex-wrap:wrap;font:10px var(--mono)}
 .mw-decisions span{padding:5px 7px;background:#dce9e1;color:#2a543c}
 .mw-decisions span:nth-child(2){background:#eedfdd;color:#7a302c}
 .mw-decisions span:last-child{background:#ede6d6;color:#72551e}
 .mw-resources{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .mw-resources span{text-align:center;border:1px solid #9aa9b3;padding:12px 4px;font-size:11px;background:#f0f4f6}
 .mw-receipt{display:flex;gap:10px;align-items:center;margin-top:16px;font:11px/1.6 var(--mono);color:#3d586b}
 .mw-receipt:before{content:'✓';display:grid;place-items:center;width:23px;height:23px;background:#d5e3db;color:#28583c;flex-shrink:0}
 .mobile-diagram-button{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;width:calc(100% - 32px);margin:8px 16px 14px;padding:11px 13px;background:transparent;border:1px solid #8e9faa;color:#253c4d;font:500 12px/1.5 var(--sans)}
 .mobile-diagram-button:after{content:'↗';font-size:18px}
 .mobile-diagram-button[hidden]{display:none}
 .lp-stack{padding-top:44px}
 .lp-stack .stack-heading{padding-bottom:12px}
 .lp-stack .stack-heading h2{font-size:34px;line-height:1.14}
 .lp-stack .stack-heading>p{font-size:15px;margin-top:18px;line-height:1.75}
 .stack-layout{display:flex;flex-direction:column;gap:10px}
 .lp-stack-visual{display:block;position:relative;top:auto;height:auto;min-height:0;width:100%;max-width:560px;margin:0 auto;padding:0;border:1px solid #9ca7ae;background:#e4e9ed}
 .lp-stack-art{width:100%;padding:8px 5px 0}
 .lp-stack-art .sl-layer,.lp-stack-art .sl-gap{opacity:1!important;transform:none!important;transition:none}
 .lp-stack-art .sl-layer.is-dim{opacity:1}
 .lp-stack-art .sl-beam,.lp-stack-art .sl-packet,.lp-stack-art .sl-callout{display:none}
 .lp-stack-visual figcaption{display:none}
 .lp-stack .stack-map{position:static;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border-top:1px solid #9ca7ae}
 .lp-stack .stack-map a{min-width:0;min-height:46px;border:0;border-right:1px solid #9ca7ae;font-size:12px}
 .lp-stack .stack-map a:last-child{border:0}
 .stack-story{width:100%;display:block;margin-top:12px}
 .stack-step{padding:24px 0;min-height:0;align-items:start;border-bottom:1px solid #20262b26;scroll-margin-top:18px}
 .stack-step-copy{opacity:1!important;max-width:none}
 .stack-step-meta{margin-bottom:14px;font-size:10px;gap:10px}
 .stack-step h3{font-size:26px;line-height:1.2;margin-bottom:12px}
 .stack-step h3 br{display:none}
 .stack-step p{font-size:14px;line-height:1.8;max-width:none}
 .stack-boundary{margin:15px 0 10px;padding-left:12px}
 .stack-boundary>span{font-size:10px}
 .stack-boundary>strong{font-size:12px}
 .stack-step .plain-link{min-height:44px;font-size:12px}
 .stack-outro{flex-direction:column;align-items:stretch;gap:18px;padding-block:28px 40px;border-top:0}
 .stack-outro>p{font-size:25px}
 .stack-outro .button{min-height:49px;font-size:12px;gap:14px}
 .stack-outro small{font-size:11px;color:#4f606d}
 .heading-row{display:block;margin-bottom:24px}
 .heading-row h2,.landing .heading-row h2,.ack-developer h2{font-size:32px;line-height:1.15;letter-spacing:-.045em}
 .heading-row>p{font-size:15px;line-height:1.75;margin-top:17px}
 .lp-demo .product-film{margin-inline:-4px;box-shadow:none}
 .product-film video{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
 .film-play-icon{width:46px;height:46px;box-shadow:none}
 .film-play{gap:9px;font-size:12px}
 .film-play-label{padding:6px 9px}
 .film-caption{font-size:13px;line-height:1.7}
 .lp-models,.lp-proof,.lp-teams{grid-template-columns:1fr}
 .lp-model{padding:23px 20px}
 .lp-model h3{margin-top:26px;font-size:34px}
 .lp-model>p{font-size:14px}
 .lp-model dl{margin-top:22px}
 .lp-model dt{font-size:8px;letter-spacing:0;line-height:1.6}
 .lp-model dd{font-size:27px}
 .lp-model .plain-link{min-height:48px;padding-top:15px;font-size:13px}
 .lp-teams>div{padding:19px}
 .lp-teams p{font-size:14px;line-height:1.75}
 .lp-stat{padding:22px;gap:12px;grid-template-columns:1fr}
 .lp-stat strong{font-size:52px}
 .lp-stat small,.lp-proof-foot{font-size:10px;line-height:1.9;color:#4f606b}
 .lp-stat a{min-height:44px;display:inline-flex;align-items:center}
 .ack-developer .developer-grid{grid-template-columns:1fr;gap:24px}
 .ack-developer h2 br{display:none}
 .ack-developer .developer-description{font-size:15px;line-height:1.75}
 .ack-quickstart pre{font-size:11px!important;line-height:1.9;padding:20px 16px!important;overflow-x:auto}
 .ack-quickstart .code-top,.ack-quickstart .code-footer{font-size:9px;gap:12px;flex-wrap:wrap}
 .ack-quickstart .code-top button{min-height:44px;font-size:11px}
 .ack-selected{font-size:11px}
 .ack-harness-heading{margin-top:32px}
 .ack-harness-heading h3{font-size:24px;line-height:1.3}
 .ack-harness-heading p{font-size:13px;line-height:1.8}
 .ack-harness-grid{grid-template-columns:repeat(2,minmax(0,1fr));background:#e8edf0}
 .ack-harness{padding:18px 12px;min-height:100px;gap:10px;flex-direction:column;align-items:flex-start;justify-content:flex-start}
 .ack-harness img{display:block;opacity:1;visibility:visible;width:34px;height:34px;flex:0 0 34px;object-fit:contain;max-width:none}
 .ack-harness strong{font-size:12px;line-height:1.4;letter-spacing:-.02em}
 .ack-harness code{font-size:10px;line-height:1.4;margin-top:4px}
 .ack-harness:last-child{grid-column:1/-1;flex-direction:row;align-items:center;gap:14px;min-height:76px}
 .mobile-ack-command{display:flex;flex-direction:column;gap:8px;background:#26343f;color:#edf3f8;padding:17px;margin-top:14px;font:11px/1.6 var(--mono)}
 .mobile-ack-command code{font-size:15px;overflow-wrap:anywhere}
 .ack-scope-note{font-size:12px;line-height:1.85;color:#4b5f6e}
 .lp-price{grid-template-columns:1fr;gap:12px;background:none;border:0}
 .lp-price>article{border:1px solid #8e9da7;padding:24px}
 .lp-price strong{font-size:43px;margin-top:19px}
 .lp-price p{font-size:14px}
 .lp-price a{min-height:48px;padding-top:16px;font-size:13px}
 .lp-price-foot{align-items:stretch;flex-direction:column}
 .lp-price-foot .plain-link{min-height:48px;font-size:14px}
 .member-card{padding:24px!important}
 .member-limits>div{font-size:12px;gap:10px}
 .member-limits dt{max-width:62%}
 .member-cta{min-height:50px}
 .membership-section .heading-row h2,.payg-section .heading-row h2{font-size:32px}
 .member-fine p,.member-value-note p{font-size:13px}
 .member-common,.member-common>a{font-size:12px;line-height:1.7}
 .closing{padding-block:44px!important;min-height:0}
 .closing-link h2{font-size:38px!important;line-height:1.1}
 .closing-bottom{align-items:start;flex-direction:column;gap:16px}
 .closing-bottom p{font-size:14px;line-height:1.7}
 .affiliation{padding-top:35px;padding-bottom:35px;flex-direction:column;gap:15px}
 .inception-membership{display:flex;align-items:center;gap:12px;max-width:100%}
 .inception-logo{width:165px;height:60px;max-width:52vw}
 .inception-logo img{width:285px;height:auto;left:-60px;top:-37px;opacity:1!important;visibility:visible!important}
 .footer{padding-top:18px;padding-bottom:max(24px,env(safe-area-inset-bottom));font-size:12px;line-height:1.7;align-items:start;flex-direction:column;gap:8px}
 .footer>div:last-child{display:flex;flex-wrap:wrap;gap:6px 20px}
 .diagram-dialog{width:100%;height:100dvh;max-height:100dvh;max-width:100%;border:0;margin:0}
 .diagram-dialog-header{padding-top:max(12px,env(safe-area-inset-top))}
 .diagram-zoom{padding-bottom:max(10px,env(safe-area-inset-bottom))}
}
@media(max-width:359px){
 .header .logo-wordmark{width:125px;height:18px}
 .header .logo-wordmark img{width:175px;height:175px;left:-24px;top:-123px}
 .header .menu-toggle{min-width:64px;padding-inline:10px}
 .lp-hero h1{font-size:30px}
 .mw-resources{grid-template-columns:1fr 1fr}
 .lp-model dd{font-size:24px}
 .lp-model dl>div{padding-right:5px}
 .lp-model dl>div+div{padding-left:8px}
}

/* One layer per swipe; the original vertical story remains the no-JS fallback. */
.mobile-stack{display:none}
@media(max-width:760px),(max-width:1024px) and (max-height:540px){
 .lp-stack.has-mobile-stack .stack-layout{display:none}
 .mobile-stack{display:block;border-top:1px solid #8c9ca7;margin-top:8px}
 .swipe-heading{display:flex;justify-content:space-between;align-items:center;padding:17px 0 8px;font:11px/1.6 var(--mono);color:#486073}
 .swipe-heading>span:first-child:after{content:' ↔';padding-left:8px;font-size:17px}
 .swipe-track{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-x pan-y pinch-zoom}
 .swipe-track::-webkit-scrollbar{display:none}
 .swipe-slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;display:flex;flex-direction:column}
 .mobile-stack .swipe-graphic{width:100%;height:230px;padding:5px 0 0;display:flex;justify-content:center;align-items:center;background:radial-gradient(ellipse at center,#ebeff2 0,transparent 70%)}
 .mobile-stack .swipe-graphic svg{display:block;width:auto;height:100%;max-width:100%}
 .mobile-stack .swipe-graphic .sl-layer{opacity:.2!important;transform:none!important;transition:none}
 .mobile-stack .swipe-graphic .swipe-current{opacity:1!important}
 .mobile-stack .swipe-graphic .sl-top{fill:#e2e8ec}
 .mobile-stack .swipe-current .sl-top{fill:#c5d6e2;stroke:#2d5774;stroke-width:2.8}
 .mobile-stack .swipe-current .sl-left{fill:#91abbe;stroke:#2d5774}
 .mobile-stack .swipe-current .sl-right{fill:#7695ad;stroke:#2d5774}
 .mobile-stack .swipe-current .cell-hot{fill:#2d5774;stroke:#2d5774}
 .mobile-stack .swipe-graphic .sl-gap{opacity:.16!important}
 .mobile-stack .swipe-graphic .tx,.mobile-stack .swipe-graphic .tx-sm,.mobile-stack .swipe-graphic .sl-callout,.mobile-stack .swipe-graphic .sl-packet,.mobile-stack .swipe-graphic .sl-beam{display:none}
 .swipe-copy{padding:14px 1px 8px;flex:1;opacity:1!important}
 .swipe-copy .stack-step-meta{margin-bottom:12px;gap:10px;font-size:10px}
 .swipe-copy h3{font-size:28px;line-height:1.18;letter-spacing:-.045em;margin-bottom:14px}
 .swipe-copy h3 br{display:none}
 .swipe-copy>p{font-size:14px;line-height:1.75;max-width:42ch}
 .swipe-copy .stack-boundary{margin-block:17px 6px}
 .swipe-copy .plain-link{min-height:46px;font-size:12px;display:inline-flex;align-items:center}
 .swipe-controls{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #91a0ac;padding-top:12px}
 .swipe-controls>button{width:46px;height:46px;flex-shrink:0;border:1px solid #8c9eaa;background:#e6ebef;color:#2d4d64;font:20px var(--sans)}
 .swipe-controls>button:disabled{opacity:.3}
 .swipe-dots{display:flex;justify-content:center;gap:0}
 .swipe-dots button{width:36px;height:46px;padding:0;display:grid;place-items:center;background:none;border:0}
 .swipe-dots button:after{content:'';width:7px;height:7px;border:1px solid #526c80;border-radius:50%;background:transparent;transition:width .15s}
 .swipe-dots button[aria-current]:after{width:22px;border-radius:4px;background:#2d5774}
 .swipe-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .mobile-stack>.mobile-diagram-button{width:100%;margin:14px 0 0;min-height:46px}
 .lp-stack .stack-outro{margin-top:20px}
}
@media(max-width:359px){.swipe-dots button{width:32px}.mobile-stack .swipe-graphic{height:210px}.swipe-copy h3{font-size:26px}}
