/* Moving page headers on product and solution pages (scripts/page-scenes.mjs).
   Cards from the Noddis app drift on a tilted plane behind the title. The hero
   paints no background of its own, so the site's paper and lines show through. */
.marketing-site .page-hero.has-scene{position:relative;isolation:isolate}
.has-scene .ps-scene{position:absolute;z-index:-1;top:72px;left:45%;right:0;height:clamp(560px,78vh,760px);overflow:hidden;pointer-events:none;perspective:1600px;contain:layout paint;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 20%,#000 70%,transparent 100%),linear-gradient(180deg,transparent 0%,#000 8%,#000 62%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(90deg,transparent 0%,#000 20%,#000 70%,transparent 100%),linear-gradient(180deg,transparent 0%,#000 8%,#000 62%,transparent 100%);
  mask-composite:intersect}

/* The title, words and buttons sit on the clear left side; the page's own screen moves below them. */
.has-scene .solution-hero-grid{grid-template-columns:minmax(0,1fr)!important;gap:0}
.has-scene .solution-hero-grid>div:first-child{max-width:min(560px,100%)}
.marketing-site .has-scene .h-display{font-size:clamp(40px,4.5vw,64px);line-height:1.02;letter-spacing:-.04em;max-width:none}
.has-scene .solution-hero-image{transform:none;max-width:1040px;margin-top:clamp(40px,5vw,64px)}
.has-scene .solution-hero-image:hover{transform:translateY(-3px)}
.has-scene.has-demo .solution-intro{max-width:560px}
/* Features, Pricing and Timeline: their header grid becomes one text column beside the scene. */
.has-scene :is(.hero-grid,.pricing-hero-grid){display:block!important}
.has-scene .hero-copy{max-width:min(560px,100%)}
/* Their headers are shorter than the scene: keep the next section clear of it. */
.marketing-site .page-hero.has-scene:not(.solution-hero){min-height:calc(72px + clamp(560px,78vh,760px) * .88)}
/* Documentation (/guides, drawn by React) has no screenshot under its header: the same rule keeps its guides clear of the visual. */
.docs-page .page-hero.has-scene{min-height:calc(72px + clamp(560px,78vh,760px) * .88)}
@media(max-width:760px){.marketing-site .page-hero.has-scene:not(.solution-hero),.docs-page .page-hero.has-scene{min-height:0}}

/* One size for every header: each sheet starts at the same height and runs to the
   bottom of the visual, so every page fades out the same way (the Workspaces
   overview keeps its drifting cards). */
.ps-scene>[class^="pse-"]:not(.pse-drift){top:7%;bottom:0;height:auto;min-height:0;box-sizing:border-box}
.ps-scene>[class^="pse-"]:not(.pse-drift)>[class$="-sheet"]{height:100%;min-height:0;box-sizing:border-box;overflow:hidden}
.ps-scene>[class^="pse-"]:not(.pse-drift):not(:has(>[class$="-sheet"])){overflow:hidden}

ps-t::before{content:attr(data-t)}
/* Cards, drawn in the app's own style. */
.ps-card{display:block;padding:15px 17px;border:1px solid #E6E7EA;border-radius:14px;background:#fff;color:#0F0F10;font:400 12px/1.4 'Satoshi',Inter,-apple-system,sans-serif;box-shadow:0 1px 2px rgba(15,15,16,.05),0 16px 32px -20px rgba(15,15,16,.25)}
.ps-card b{display:block;font-size:13.5px;font-weight:600;line-height:1.35}
.ps-card small{display:block;margin-top:5px;font-size:11.5px;color:#6B6F76}
.ps-k{margin:0 0 8px!important;font:500 9.5px/1.3 'IBM Plex Mono',monospace!important;letter-spacing:.1em;text-transform:uppercase;color:#6B6F76!important}
.ps-k em{font-style:normal;color:#B42318}
.ps-dim{color:#8E9299!important}
.ps-ph{display:flex;align-items:center;gap:10px}
.ps-ph i,.ps-av,.ps-avatar{flex:none;display:grid;place-items:center;width:28px;height:28px;border:1px solid #E6E7EA;border-radius:7px;font:600 10px/1 'Satoshi',sans-serif;font-style:normal;color:#2B2D31}
.ps-bar{height:5px;margin-top:12px;border-radius:9px;background:#EEEFF1;overflow:hidden}
.ps-bar span{display:block;height:100%;border-radius:9px;background:#0F0F10}
.ps-pct{display:block;margin-top:8px;font:600 12px/1 'Satoshi',sans-serif;font-style:normal}
.ps-ring{display:grid;grid-template-columns:1fr;justify-items:start}
.ps-ringwrap{position:relative;display:grid;place-items:center;width:64px;height:64px;margin:12px 0 2px}
.ps-ringwrap svg{position:absolute;inset:0;transform:rotate(-90deg)}
.ps-ringwrap circle{fill:none;stroke-width:3.4}
.ps-rt{stroke:#EEEFF1}.ps-rf{stroke:#0F0F10;stroke-linecap:round}
.ps-ringwrap b{font-size:12px}
.ps-cb{flex:none;display:inline-grid;place-items:center;width:16px;height:16px;border:1.5px solid #B9BBC0;border-radius:5px}
.ps-cb.ps-on{background:#0F0F10;border-color:#0F0F10}
.ps-cb svg{width:11px;height:11px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.ps-task{display:grid;grid-template-columns:18px 1fr;gap:3px 12px;align-items:center}
.ps-task small{grid-column:2;margin-top:0}
.ps-struck{color:#6B6F76;text-decoration:line-through}
.ps-amber{color:#B45309!important}.ps-red{color:#B42318!important}
.ps-date{display:flex;align-items:center;gap:14px}
.ps-day{flex:none;display:grid;place-items:center;width:44px;padding:6px 0;border:1px solid #E6E7EA;border-radius:9px}
.ps-day small{margin:0;font:500 9px/1 'IBM Plex Mono',monospace;letter-spacing:.1em;text-transform:uppercase}
.ps-day b{font-size:17px}
.ps-day.ps-amber{border-color:#F3D9B5}
.ps-slot .ps-block{display:block;padding:9px 12px;border-left:3px solid #0F0F10;border-radius:4px 8px 8px 4px;background:#F4F5F6}
.ps-row{display:grid;grid-template-columns:18px minmax(0,1fr) 28px;gap:4px 10px;align-items:center}
.ps-row .ps-status{grid-column:2/4;justify-self:start;padding:3px 8px;border-radius:99px;background:#F4F5F6;font:500 10.5px/1.2 'Satoshi',sans-serif;font-style:normal;color:#2B2D31}
.ps-row .ps-s1{background:#0F0F10;color:#fff}.ps-row .ps-s2{background:#FFF4E5;color:#9A4B07}.ps-row .ps-s3{color:#6B6F76}
.ps-gantt .ps-track{position:relative;display:block;height:16px;margin-top:10px;border-radius:5px;background:repeating-linear-gradient(90deg,#F4F5F6 0 calc(20% - 1px),#E6E7EA calc(20% - 1px) 20%)}
.ps-gantt .ps-track span{position:absolute;top:3px;bottom:3px;border-radius:4px;background:#0F0F10}
.ps-col{background:#F7F7F8}
.ps-mini{display:block;margin-top:7px;padding:9px 11px;border:1px solid #E6E7EA;border-radius:9px;background:#fff;font-size:12px;font-weight:500}
.ps-note{display:block;width:210px;min-height:128px;padding:18px 18px 24px;border-radius:4px;background:#FFFDF5;border:1px solid #EDE7D3;color:#2B2D31;font:500 14px/1.35 'Satoshi',sans-serif;box-shadow:0 12px 24px -16px rgba(15,15,16,.3);transform:rotate(-1.5deg)}
.ps-note--dark{background:#1D1F22;border-color:#1D1F22;color:#F4F4F1;transform:rotate(1.2deg)}
.ps-person{display:flex;gap:12px;align-items:flex-start}
.ps-avatar{width:34px;height:34px;border-radius:50%;background:#F4F5F6}
.ps-embed .ps-lines{display:grid;gap:6px;margin-bottom:12px}
.ps-embed .ps-lines i{display:block;height:6px;border-radius:4px;background:#EEEFF1}
.ps-embed .ps-lines i+i{width:70%}
.ps-frame{display:block;padding:12px;border:1px solid #E6E7EA;border-radius:10px}
.ps-brief span{display:block;padding:8px 0;border-top:1px solid #EEEFF1;font-size:12.5px;font-weight:500}
.ps-brief span:first-of-type{border-top:0}

@media(max-width:1000px){
  .has-scene .ps-scene{left:30%;height:520px}
}
/* Phones and small tablets: the visual sits under the words, in full, scaled to fit.
   The product screenshot steps aside for it; pages with a live demo keep the demo instead. */
@media(max-width:760px){
  .marketing-site .page-hero.has-scene{display:flex;flex-direction:column}
  .has-scene>.wrap{order:0}
  .has-scene .ps-scene{order:1;position:relative;inset:auto;z-index:0;height:330px;margin:28px 16px 0;
    -webkit-mask-image:linear-gradient(90deg,#000 78%,transparent 100%),linear-gradient(180deg,#000 62%,transparent 100%);
    mask-image:linear-gradient(90deg,#000 78%,transparent 100%),linear-gradient(180deg,#000 62%,transparent 100%)}
  .has-scene .ps-scene>*{left:0!important;top:0!important;right:auto!important;scale:.5;transform-origin:0 0}
  .has-scene .ps-scene>[class^="pse-"]:not(.pse-drift){bottom:auto;height:660px}
  .has-scene .solution-hero-image{display:none}
  .has-scene .solution-hero-image:has(.hero-walkthrough){display:block;margin-top:28px}
  .has-scene:has(.hero-walkthrough) .ps-scene{display:none}
  .has-scene.has-demo .ps-scene{display:none}
}
/* Engines stop their own motion for reduced motion; this catches anything they miss. */
@media(prefers-reduced-motion:reduce){.ps-scene *{animation:none!important;transition:none!important}}
