/* =====================================================================
   Corner v19 — layered on top of corner.css (v18).
   Palette lock: #0071e3 (+ its own tints) and neutrals. The dark [Do It]
   is the one brand exception: it reproduces theflow-ai.com's dark button
   1:1 (its own #3B74FF halo + rgba(59,116,255,.5) glow), exactly as the
   light do-it.png is Flow's own raster.
   ===================================================================== */

@font-face{font-family:'Rubik';src:url('fonts/Rubik-latin.woff2') format('woff2');font-weight:400 800;font-style:normal;font-display:swap}

/* ---------------------------------------------------------------
   1 · [Do It] — Light keeps do-it.png · Dark = Flow's dark button
   Source: theflow-ai.com · .demo-doit (Dual-Core "Do It — Visible")
     background: linear-gradient(180deg, rgba(228,236,250,.2), rgba(9,13,24,.34))
     border: 1px solid rgba(228,236,250,.3) · radius 999px
     text: Rubik 700 · #e6efff · "[Do It]"
     glow: 0 0 22px -4px rgba(59,116,255,.5)
     halo: ::after inset -5px · 1.5px solid #3B74FF
     size: 15.68px type · 9px 24px padding · 26.66px line → 46.66px tall
   Here everything is in em so smaller contexts keep the exact proportions.
   --------------------------------------------------------------- */
.doit-dark{display:none}
html[data-theme="dark"] img.chip-do[src="do-it.png"],
html[data-theme="dark"] img.doit-inline[src="do-it.png"]{display:none !important}
html[data-theme="dark"] .doit-dark{
  --fs:10.5px;
  display:inline-flex;align-items:center;justify-content:center;position:relative;flex:none;
  font-family:'Rubik',system-ui,sans-serif;font-weight:700;font-size:var(--fs);
  line-height:1.7em;padding:.574em 1.53em;letter-spacing:0;white-space:nowrap;
  color:#e6efff;border-radius:999px;
  background:linear-gradient(180deg,rgba(228,236,250,.2),rgba(9,13,24,.34));
  border:1px solid rgba(228,236,250,.3);
  box-shadow:0 0 22px -4px rgba(59,116,255,.5);
  -webkit-font-smoothing:antialiased;
}
html[data-theme="dark"] .doit-dark::after{
  content:"";position:absolute;inset:-.32em;border-radius:999px;pointer-events:none;
  border:1.5px solid #3B74FF;
}
/* sizes per context (proportions identical to the Flow original) */
html[data-theme="dark"] .doit-dark.dc{--fs:15.68px}                       /* Dual-Core: exact Flow size */
html[data-theme="dark"] .doit-dark.pillar{--fs:10.5px}
html[data-theme="dark"] .doit-dark.inl{--fs:7.6px;vertical-align:.12em;margin:0 6px}
html[data-theme="dark"] .doit-dark.inl::after{border-width:1px}
html[data-theme="dark"] .hdg-doit .doit-dark{--fs:9.6px}
/* chip wrapper: no light halo pulse behind the dark button — Flow's own glow only */
html[data-theme="dark"] .do-halo,
html[data-theme="dark"] .glance-surface .do-halo{animation:none !important;box-shadow:none !important;background:transparent !important;border-radius:999px;padding:5px !important;margin:-5px}
html[data-theme="dark"] .do-halo:hover .doit-dark{box-shadow:0 0 30px -2px rgba(59,116,255,.62)}
html[data-theme="dark"] .do-halo:hover .doit-dark::after{border-color:#6E9BFF}
html[data-theme="dark"] .dc-doit-wrap{background:transparent !important;box-shadow:none !important;padding:6px}
html[data-theme="dark"] .dc-card:hover .dc-doit-wrap{transform:translateY(-2px) scale(1.035)}
html[data-theme="dark"] .pillar-chip .doit-dark{margin-right:5px}
@media (prefers-reduced-motion: reduce){html[data-theme="dark"] .dc-card:hover .dc-doit-wrap{transform:none}}

/* ---------------------------------------------------------------
   2 · Glance surface — the ACTIONS Glance will take
   --------------------------------------------------------------- */
.g19 .gs-intent{margin-bottom:12px}
.acts-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 2px 8px}
.acts-label{font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#6e6e73}
.acts-hint{font-size:10.5px;color:#86868b}
.stage-live:not([data-state="propose"]) .acts-hint,
.stage-demo:not([data-state="propose"]) .acts-hint{visibility:hidden}
.stage-live:not([data-state="propose"]) .g19 .gs-add-row{display:none}
.stage-live[data-state="held"] .acts,.stage-demo[data-state="held"] .acts,
.stage-live[data-state="held"] .acts-head,.stage-demo[data-state="held"] .acts-head{opacity:.5;filter:saturate(.7)}

.acts{list-style:none;display:flex;flex-direction:column;gap:6px;margin:0 0 12px;padding:0}
.act{position:relative}
.act-row{
  position:relative;display:grid;grid-template-columns:18px 30px minmax(0,1fr) auto;align-items:center;column-gap:11px;
  padding:9px 12px 9px 11px;border-radius:13px;cursor:pointer;text-align:left;
  background:linear-gradient(180deg,#ffffff 0%,#fcfcfd 100%);
  border:1px solid rgba(0,0,0,.065);
  box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(0,0,0,.03),0 8px 16px -12px rgba(0,40,100,.18);
  transition:transform .25s cubic-bezier(.16,1,.3,1),box-shadow .25s ease,border-color .25s ease,opacity .25s ease,background .25s ease,padding .3s ease;
}
.stage-live[data-state="propose"] .act-row:hover,
.stage-demo[data-state="propose"] .act-row:hover{transform:translateY(-1px);border-color:rgba(0,113,227,.24);box-shadow:inset 0 1px 0 #fff,0 2px 4px rgba(0,0,0,.03),0 12px 24px -14px rgba(0,113,227,.4)}
.act-check{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.act-row:has(.act-check:focus-visible){outline:2px solid rgba(0,113,227,.45);outline-offset:2px}
.act-box{
  position:relative;width:18px;height:18px;border-radius:6px;background:#fff;
  box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.2);transition:background .2s ease,box-shadow .2s ease;
}
.act-box::after{
  content:"";position:absolute;left:6px;top:2.6px;width:4.4px;height:8.6px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(0);transition:transform .2s cubic-bezier(.16,1,.3,1);
}
.act-row:has(.act-check:checked) .act-box{background:#0071e3;box-shadow:inset 0 0 0 1.5px #0071e3,0 3px 8px -3px rgba(0,113,227,.6)}
.act-row:has(.act-check:checked) .act-box::after{transform:rotate(45deg) scale(1)}
.act-glyph{
  width:30px;height:30px;border-radius:9px;display:grid;place-items:center;
  color:#6e6e73;background:linear-gradient(180deg,#f7f7f9,#eff0f3);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.05),inset 0 1px 0 #fff;transition:color .25s ease,background .25s ease;
}
.act-glyph svg{width:15px;height:15px;display:block}
.act-row:hover .act-glyph{color:#0071e3}
.act-body{min-width:0;display:flex;flex-direction:column;gap:1px}
.act-text{font-size:13px;line-height:1.3;font-weight:600;color:#1d1d1f;letter-spacing:-.014em}
.act-out,.act-res{font-size:11.5px;line-height:1.35;color:#6e6e73;letter-spacing:-.006em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.act-app{font-weight:600;color:#3a3a3c}
.act-res{display:none}
.act-tag{
  font-size:9.5px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
  padding:3px 8px;border-radius:980px;color:#6e6e73;background:#f5f5f7;border:1px solid rgba(0,0,0,.06);
}
/* close step — locked until Approve */
.act-close .act-row{cursor:default;border-style:dashed;border-color:rgba(0,0,0,.14);background:#fafafb;box-shadow:none}
.act-close .act-text{font-weight:550;color:#6e6e73}
.act-close .act-glyph{color:#86868b;background:#f5f5f7}
.act-lock{box-shadow:inset 0 0 0 1.5px rgba(0,0,0,.14);background:#f5f5f7}
.act-lock::before{ /* tiny padlock */
  content:"";position:absolute;left:5px;top:8px;width:8px;height:6px;border-radius:1.5px;background:#a1a1a6;
}
.act-lock::after{
  content:"";position:absolute;left:6.5px;top:4px;width:5px;height:5px;border:1.5px solid #a1a1a6;border-bottom:0;border-radius:4px 4px 0 0;transform:none;
}
/* unticked = skipped */
.act-row:has(.act-check:not(:checked)){opacity:.55;box-shadow:none;background:#fafafb}
.act-row:has(.act-check:not(:checked)) .act-text{text-decoration:line-through;text-decoration-color:rgba(0,0,0,.3);color:#6e6e73}
.act-custom .act-glyph{color:#0071e3;background:rgba(0,113,227,.08)}

/* exec run header (working + wait) */
.acts-run{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;
  margin:0 0 10px;padding:10px 12px;border-radius:13px;
  background:linear-gradient(180deg,rgba(0,113,227,.07),rgba(0,113,227,.035));
  border:1px solid rgba(0,113,227,.18);
}
.acts-run[hidden]{display:none !important}
.run-title{font-size:13px;font-weight:620;color:#0071e3;letter-spacing:-.014em;line-height:1.3}
.run-sub{font-size:11.5px;color:#6e6e73;letter-spacing:-.006em;margin-top:1px;line-height:1.35}
.run-count{font-family:var(--mono);font-size:11px;font-weight:600;color:#0071e3;background:rgba(0,113,227,.1);padding:3px 8px;border-radius:980px}
.run-count span{opacity:.5;margin:0 1px}
.run-track{grid-column:1/-1;height:3px;border-radius:3px;background:rgba(0,0,0,.06);overflow:hidden;margin-top:6px}
.run-fill{height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,#0071e3,#59a3ed);transition:width .55s cubic-bezier(.22,1,.36,1)}

/* row states during exec */
.act.is-pending .act-row{opacity:.6}
.act.is-skipped .act-row{opacity:.38}
.act.is-active .act-row{border-color:rgba(0,113,227,.42);background:#fff;box-shadow:inset 0 1px 0 #fff,0 0 0 3px rgba(0,113,227,.08),0 12px 24px -14px rgba(0,113,227,.45)}
.act.is-active .act-glyph{color:#0071e3;background:rgba(0,113,227,.08)}
.act.is-active .act-box{background:#fff !important;box-shadow:inset 0 0 0 1.5px rgba(0,113,227,.25) !important}
.act.is-active .act-box::after{
  left:2px;top:2px;width:14px;height:14px;border-radius:50%;border:2px solid transparent;border-top-color:#0071e3;border-right-color:#0071e3;
  transform:none;animation:actSpin .7s linear infinite;
}
@keyframes actSpin{to{transform:rotate(360deg)}}
.act.is-done .act-out{display:none}
.act.is-done .act-res{display:block;color:#3a3a3c}
.act.is-done .act-glyph{color:#0071e3;background:rgba(0,113,227,.08)}
.act.is-done .act-res{animation:resIn .4s cubic-bezier(.22,1,.36,1) both}
@keyframes resIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
/* close step: ready → final */
.act-close.is-ready .act-row{border-style:solid;border-color:rgba(0,113,227,.4);background:#fff;box-shadow:0 0 0 3px rgba(0,113,227,.07)}
.act-close.is-ready .act-text{color:#1d1d1f}
.act-close.is-ready .act-tag{color:#fff;background:#0071e3;border-color:#0071e3;box-shadow:0 4px 10px -4px rgba(0,113,227,.6)}
.act-close.is-final .act-box{background:#0071e3;box-shadow:inset 0 0 0 1.5px #0071e3}
.act-close.is-final .act-box::before{display:none}
.act-close.is-final .act-box::after{left:6px;top:2.6px;width:4.4px;height:8.6px;border:solid #fff;border-width:0 2px 2px 0;border-radius:0;transform:rotate(45deg)}
.act-close.is-final .act-tag{display:none}
.act-close.is-final .act-glyph{color:#0071e3;background:rgba(0,113,227,.08)}
/* settled = compact receipt rows · one line per action */
.stage-live[data-state="settled"] .acts,
.stage-demo[data-state="settled"] .acts{gap:0;border-radius:13px;border:1px solid rgba(0,0,0,.07);background:#fff;overflow:hidden;box-shadow:0 8px 18px -14px rgba(0,30,80,.25)}
.stage-live[data-state="settled"] .act-row,
.stage-demo[data-state="settled"] .act-row{grid-template-columns:16px 22px minmax(0,1fr);column-gap:10px;padding:7px 12px;border:0;border-radius:0;background:transparent;box-shadow:none;opacity:1}
.stage-live[data-state="settled"] .act + .act .act-row,
.stage-demo[data-state="settled"] .act + .act .act-row{border-top:1px solid rgba(0,0,0,.05)}
.stage-live[data-state="settled"] .act.is-skipped,
.stage-demo[data-state="settled"] .act.is-skipped{display:none}
.stage-live[data-state="settled"] .act-text,
.stage-demo[data-state="settled"] .act-text{display:none}
.stage-live[data-state="settled"] .act-res,
.stage-demo[data-state="settled"] .act-res{font-size:12px;color:#1d1d1f;animation:none}
.stage-live[data-state="settled"] .act-box,
.stage-demo[data-state="settled"] .act-box{width:16px;height:16px;border-radius:50%}
.stage-live[data-state="settled"] .act-box::after,
.stage-demo[data-state="settled"] .act-box::after{left:5.4px;top:2.6px;width:3.8px;height:7.4px}
.stage-live[data-state="settled"] .act-glyph,
.stage-demo[data-state="settled"] .act-glyph{width:22px;height:22px;border-radius:7px}
.stage-live[data-state="settled"] .act-glyph svg,
.stage-demo[data-state="settled"] .act-glyph svg{width:12px;height:12px}
.stage-live[data-state="settled"] .act-close .act-res,
.stage-demo[data-state="settled"] .act-close .act-res{color:#0071e3;font-weight:600}

/* chip: one line summary · Do It disabled with nothing ticked */
.g19 .chip-txt{line-height:1.35}
.no-actions .do-halo{opacity:.35;pointer-events:none;filter:grayscale(.6)}
/* demo held banner (Hold = inline parked banner only — no tray) */
.stage-demo .demo-parked{display:none}
.stage-demo[data-state="held"] .demo-parked{display:flex !important}
.parked-banner em{cursor:pointer}

/* Dark — action list */
html[data-theme="dark"] .acts-label{color:rgba(255,255,255,.55)}
html[data-theme="dark"] .acts-hint{color:rgba(255,255,255,.4)}
html[data-theme="dark"] .act-row{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.08);box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 8px 18px -12px rgba(0,0,0,.7)}
html[data-theme="dark"] .stage-live[data-state="propose"] .act-row:hover,
html[data-theme="dark"] .stage-demo[data-state="propose"] .act-row:hover{background:rgba(255,255,255,.06);border-color:rgba(0,113,227,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 12px 26px -14px rgba(0,113,227,.5)}
html[data-theme="dark"] .act-box{background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.28)}
html[data-theme="dark"] .act-glyph{color:rgba(235,240,250,.62);background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
html[data-theme="dark"] .act-row:hover .act-glyph{color:#59a3ed}
html[data-theme="dark"] .act-text{color:#f5f5f7}
html[data-theme="dark"] .act-out,html[data-theme="dark"] .act-res{color:rgba(235,240,250,.6)}
html[data-theme="dark"] .act-app{color:rgba(235,240,250,.86)}
html[data-theme="dark"] .act-tag{color:rgba(255,255,255,.62);background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.12)}
html[data-theme="dark"] .act-close .act-row{background:rgba(255,255,255,.015);border-color:rgba(255,255,255,.18)}
html[data-theme="dark"] .act-close .act-text{color:rgba(255,255,255,.6)}
html[data-theme="dark"] .act-close .act-glyph{color:rgba(255,255,255,.45)}
html[data-theme="dark"] .act-lock{background:rgba(255,255,255,.05);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.16)}
html[data-theme="dark"] .act-lock::before{background:rgba(255,255,255,.45)}
html[data-theme="dark"] .act-lock::after{border-color:rgba(255,255,255,.45)}
html[data-theme="dark"] .act-row:has(.act-check:not(:checked)){background:transparent}
html[data-theme="dark"] .act-row:has(.act-check:not(:checked)) .act-text{color:rgba(255,255,255,.5);text-decoration-color:rgba(255,255,255,.35)}
html[data-theme="dark"] .acts-run{background:linear-gradient(180deg,rgba(0,113,227,.14),rgba(0,113,227,.06));border-color:rgba(0,113,227,.34)}
html[data-theme="dark"] .run-title{color:#59a3ed}
html[data-theme="dark"] .run-sub{color:rgba(255,255,255,.58)}
html[data-theme="dark"] .run-count{color:#9cc6f5;background:rgba(0,113,227,.22)}
html[data-theme="dark"] .run-track{background:rgba(255,255,255,.08)}
html[data-theme="dark"] .act.is-active .act-row{background:rgba(0,113,227,.1);border-color:rgba(0,113,227,.55);box-shadow:0 0 0 3px rgba(0,113,227,.14),0 0 26px -10px rgba(0,113,227,.6)}
html[data-theme="dark"] .act.is-active .act-box{background:transparent !important;box-shadow:inset 0 0 0 1.5px rgba(0,113,227,.35) !important}
html[data-theme="dark"] .act.is-active .act-box::after{border-top-color:#59a3ed;border-right-color:#59a3ed}
html[data-theme="dark"] .act.is-done .act-res{color:rgba(235,240,250,.82)}
html[data-theme="dark"] .act.is-done .act-glyph,
html[data-theme="dark"] .act.is-active .act-glyph,
html[data-theme="dark"] .act-close.is-final .act-glyph,
html[data-theme="dark"] .act-custom .act-glyph{color:#59a3ed;background:rgba(0,113,227,.16)}
html[data-theme="dark"] .act-close.is-ready .act-row{background:rgba(0,113,227,.08);border-color:rgba(0,113,227,.5);box-shadow:0 0 0 3px rgba(0,113,227,.12)}
html[data-theme="dark"] .act-close.is-ready .act-text{color:#fff}
html[data-theme="dark"] .act-close.is-ready .act-tag{color:#fff;background:#0071e3;border-color:#0071e3;box-shadow:0 0 14px -2px rgba(0,113,227,.7)}
html[data-theme="dark"] .stage-live[data-state="settled"] .acts,
html[data-theme="dark"] .stage-demo[data-state="settled"] .acts{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.1);box-shadow:none}
html[data-theme="dark"] .stage-live[data-state="settled"] .act + .act .act-row,
html[data-theme="dark"] .stage-demo[data-state="settled"] .act + .act .act-row{border-top-color:rgba(255,255,255,.06)}
html[data-theme="dark"] .stage-live[data-state="settled"] .act-res,
html[data-theme="dark"] .stage-demo[data-state="settled"] .act-res{color:#f5f5f7}
html[data-theme="dark"] .stage-live[data-state="settled"] .act-close .act-res,
html[data-theme="dark"] .stage-demo[data-state="settled"] .act-close .act-res{color:#59a3ed}

/* ---------------------------------------------------------------
   3 · Hero — scroll-driven depth (Container-Scroll inspired)
   JS writes --p (0→1) + eased helpers; everything else is CSS.
   Without JS or with reduced motion: a calm static stack.
   --------------------------------------------------------------- */
.hero.hs{padding:0 !important;overflow:clip;min-height:0;display:block;background:#fff !important}
.hs-sticky{
  position:relative;display:flex;flex-direction:column;align-items:center;overflow:hidden;
  background:linear-gradient(180deg,#f7fafc 0%,#ffffff 46%,#ffffff 100%);
  padding-bottom:72px;
}
.hs-copy{position:relative;z-index:3;padding-top:76px;padding-bottom:0 !important;will-change:transform,opacity}
.hs-h1{position:relative;isolation:isolate}
.hs-h1 .h1-main{position:relative;z-index:1;display:block}
.hs-h1 .h1-echo{
  position:absolute;inset:0;z-index:0;display:block;pointer-events:none;user-select:none;
  color:#0071e3;opacity:.1;filter:blur(16px);transform:translateY(10px) scale(1.015);
}
.hero .hs-h1 .h1-echo em{background:none !important;-webkit-background-clip:border-box;background-clip:border-box;color:#0071e3;animation:none;filter:none}
.hs-light{position:absolute;pointer-events:none;z-index:1;border-radius:50%;will-change:transform}
.hs-light-a{width:62vw;height:62vw;left:-22vw;top:-30vw;background:radial-gradient(closest-side,rgba(0,113,227,.07),transparent 72%)}
.hs-light-b{width:48vw;height:48vw;right:-18vw;top:22vh;background:radial-gradient(closest-side,rgba(89,163,237,.08),transparent 72%)}
.gh-tone{position:absolute;inset:0;opacity:0;pointer-events:none;
  background:radial-gradient(70% 55% at 50% 100%,rgba(0,113,227,.2) 0%,rgba(0,113,227,.07) 42%,transparent 72%)}

.hs-stage{position:relative;z-index:2;width:100%;margin-top:56px;perspective:1300px;perspective-origin:50% 0%}
.hs-floor{
  position:absolute;left:50%;top:6%;width:min(980px,86vw);height:88%;transform:translateX(-50%);border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(0,113,227,.22),rgba(0,113,227,.06) 60%,transparent 76%);filter:blur(30px);opacity:.55;
}
.hs-device{
  position:relative;width:min(1000px,calc(100vw - 64px));margin:0 auto;
  transform-style:preserve-3d;transform-origin:50% 0%;will-change:transform;
}
/* — scroll mode — */
.hs-on .hero.hs{height:calc(100vh + 96vh)}
.hs-on .hs-sticky{position:sticky;top:var(--nav-h,48px);height:calc(100vh - var(--nav-h,48px));padding-bottom:0}
.hs-on .hs-copy{
  transform:translate3d(0,calc(var(--pc,0) * -120px),0) scale(calc(1 - var(--pc,0) * .07));
  opacity:calc(1 - var(--pc,0) * 1.45);
  filter:blur(calc(var(--pc,0) * 6px));
}
.hs-on .hs-h1 .h1-echo{
  transform:translate3d(0,calc(10px + var(--p,0) * 56px),0) scale(calc(1.015 + var(--p,0) * .04));
  opacity:calc(.1 + var(--pc,0) * .16);
}
.hs-on .hs-device{
  transform:
    translate3d(0,calc(var(--pe,0) * -1 * var(--rise,0px)),0)
    rotateX(calc((1 - var(--pe,0)) * 20deg))
    scale(calc(.9 + var(--pe,0) * .1));
}
.hs-on .hs-floor{
  transform:translate3d(-50%,calc(var(--pe,0) * -1 * var(--rise,0px)),0) scale(calc(.8 + var(--pd,0) * .25),calc(.7 + var(--pd,0) * .3));
  opacity:calc(.35 + var(--pg,0) * .5);
}
.hs-on .hd-glance{transform:translate3d(0,0,calc(28px + (1 - var(--pe,0)) * 70px))}
.hs-on .glow-horizon{transform:scale(calc(1 + var(--pg,0) * .3));transform-origin:50% 100%;opacity:calc(1 - var(--pd,0) * .2)}
.hs-on .gh-tone{opacity:var(--pg,0)}
.hs-on .hs-light-a{transform:translate3d(calc(var(--p,0) * 6vw),calc(var(--p,0) * -70px),0)}
.hs-on .hs-light-b{transform:translate3d(calc(var(--p,0) * -4vw),calc(var(--p,0) * -230px),0)}
.hs-on .hs-device::after{opacity:calc(.4 + var(--pd,0) * .6)}
body.capture-open .hs-stage{opacity:.15;transition:opacity .3s}

/* device — Gmail window + floating Glance extension */
.hd-win{
  position:relative;border-radius:18px;overflow:hidden;background:#fff;text-align:left;
  box-shadow:0 0 0 1px rgba(0,0,0,.07),0 2px 4px rgba(0,0,0,.03),0 30px 60px -28px rgba(0,30,80,.32),0 70px 120px -50px rgba(0,60,140,.3);
}
.hs-device::after{ /* contact shadow that tightens as the device lands */
  content:"";position:absolute;left:8%;right:8%;bottom:-26px;height:40px;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(0,30,80,.22),transparent);filter:blur(10px);opacity:.7;transform:translateZ(-1px);
}
.hd-top{display:flex;align-items:center;gap:14px;height:46px;padding:0 16px;border-bottom:1px solid rgba(0,0,0,.06);background:#f8f9fb}
.hd-dots{display:flex;gap:6px}.hd-dots i{width:10px;height:10px;border-radius:50%;background:#dcdee3}
.hd-app{display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:560;color:#3a3a3c}
.hd-glyph{display:inline-grid;color:#86868b}.hd-glyph svg{width:15px;height:15px}
.hd-search{flex:0 1 380px;height:30px;border-radius:9px;background:#eef0f3;font-size:12.5px;color:#86868b;display:flex;align-items:center;padding:0 12px}
.hd-user{margin-left:auto;font-size:12px;color:#6e6e73}
.hd-body{display:grid;grid-template-columns:168px minmax(0,1fr);min-height:420px}
.hd-side{display:flex;flex-direction:column;gap:3px;padding:16px 10px;border-right:1px solid rgba(0,0,0,.05);background:#fbfbfc}
.hd-compose{align-self:flex-start;font-size:12.5px;font-weight:600;color:#1d1d1f;background:rgba(0,113,227,.12);padding:10px 18px;border-radius:14px;margin-bottom:10px}
.hd-nav{display:flex;justify-content:space-between;font-size:12.5px;color:#3a3a3c;padding:6px 10px;border-radius:0 980px 980px 0}
.hd-nav em{font-style:normal;font-size:11.5px;color:#6e6e73}
.hd-nav.on{background:rgba(0,113,227,.12);font-weight:600;color:#1d1d1f}
.hd-mail{padding:22px 400px 24px 26px}
.hd-subj{font-family:var(--disp);font-size:20px;font-weight:550;letter-spacing:-.025em;color:#1d1d1f;margin-bottom:18px}
.hd-msg{display:flex;gap:12px}
.hd-av{flex:none;width:36px;height:36px;border-radius:50%;background:#0071e3;color:#fff;font-size:12.5px;font-weight:600;display:grid;place-items:center}
.hd-from{display:flex;gap:8px;align-items:baseline;font-size:13px}
.hd-from b{color:#1d1d1f;font-weight:600}.hd-from span{color:#86868b;font-size:12px}
.hd-msg p{font-size:14px;line-height:1.5;color:#1d1d1f;margin:4px 0 10px;letter-spacing:-.01em}
.hd-pill{display:inline-flex;font-size:11px;font-weight:600;color:#0071e3;background:rgba(0,113,227,.08);border:1px solid rgba(0,113,227,.16);padding:3px 9px;border-radius:980px}
.hd-ghost{display:flex;flex-direction:column;gap:9px;margin:34px 0 0 48px}
.hd-ghost i{display:block;height:8px;border-radius:4px;background:#eceef2;width:92%}
.hd-ghost i.s{width:54%}
.hd-ghost + .hd-ghost{margin-top:26px}
.hd-glance{
  position:absolute;right:26px;top:66px;width:356px;z-index:2;text-align:left;
  padding:14px 14px 12px;border-radius:20px;
  background:radial-gradient(120% 60% at 0% 0%,rgba(0,113,227,.07) 0%,transparent 55%),linear-gradient(180deg,#ffffff 0%,#f8fafd 100%);
  border:1px solid rgba(0,113,227,.18);
  box-shadow:inset 0 1px 0 #fff,0 2px 6px rgba(0,30,80,.06),0 24px 48px -18px rgba(0,40,100,.3),0 50px 90px -40px rgba(0,113,227,.45);
}
.hdg-head{display:flex;align-items:center;gap:9px;margin-bottom:8px}
.hdg-head .living-ico{width:22px !important;height:22px !important}
.hdg-brand{font-family:var(--disp);font-size:13.5px;font-weight:650;color:#0071e3;letter-spacing:-.015em}
.hdg-badge{margin-left:auto;font-size:9.5px;font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:#0071e3;background:rgba(0,113,227,.08);border:1px solid rgba(0,113,227,.18);padding:3px 8px;border-radius:980px}
.hdg-intent{font-size:13px;font-weight:580;line-height:1.38;color:#1d1d1f;letter-spacing:-.014em;margin-bottom:10px}
.hdg-acts{list-style:none;display:flex;flex-direction:column;gap:5px;margin:0 0 10px;padding:0}
.hdg-acts li{display:grid;grid-template-columns:15px 24px minmax(0,1fr);align-items:center;gap:9px;padding:7px 10px;border-radius:11px;background:#fff;border:1px solid rgba(0,0,0,.06);box-shadow:0 6px 12px -10px rgba(0,40,100,.2)}
.hdg-box{width:15px;height:15px;border-radius:5px;background:#0071e3;position:relative}
.hdg-box::after{content:"";position:absolute;left:5px;top:2px;width:3.6px;height:7.4px;border:solid #fff;border-width:0 1.8px 1.8px 0;transform:rotate(45deg)}
.hdg-ic{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;color:#6e6e73;background:#f3f4f6}
.hdg-ic svg{width:12.5px;height:12.5px}
.hdg-t{min-width:0;display:flex;flex-direction:column}
.hdg-t b{font-size:12px;font-weight:600;color:#1d1d1f;letter-spacing:-.012em;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdg-t em{font-style:normal;font-size:10.5px;color:#6e6e73;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdg-acts li.lock{border-style:dashed;border-color:rgba(0,0,0,.14);background:#fafafb;box-shadow:none}
.hdg-acts li.lock .hdg-box{background:#eceef1}
.hdg-acts li.lock .hdg-box::after{display:none}
.hdg-acts li.lock b{color:#6e6e73;font-weight:550}
.hdg-chip{display:flex;align-items:center;gap:10px;padding:7px 7px 7px 12px;border-radius:13px;background:linear-gradient(180deg,rgba(0,113,227,.09),rgba(0,113,227,.05));border:1px solid rgba(0,113,227,.2)}
.hdg-chip-txt{flex:1;min-width:0;font-size:12px;color:#1d1d1f;letter-spacing:-.01em}
.hdg-chip-txt b{color:#0071e3;font-weight:650}
.hdg-doit{display:inline-flex;align-items:center;padding:0 2px}
.hdg-doit .chip-do{height:26px;width:auto}

/* hero device — Dark (Flow night) */
html[data-theme="dark"] .hero.hs{background:#05070d !important;padding:0 !important;min-height:0;display:block}
html[data-theme="dark"] .hs-sticky{background:#05070d}
html[data-theme="dark"] .hs-h1 .h1-echo,html[data-theme="dark"] .hero .hs-h1 .h1-echo em{color:#0071e3}
html[data-theme="dark"] .hs-h1 .h1-echo{opacity:.22;filter:blur(20px)}
html[data-theme="dark"] .hs-light-a{background:radial-gradient(closest-side,rgba(0,113,227,.16),transparent 72%)}
html[data-theme="dark"] .hs-light-b{background:radial-gradient(closest-side,rgba(0,113,227,.12),transparent 72%)}
html[data-theme="dark"] .gh-tone{background:radial-gradient(70% 55% at 50% 100%,rgba(0,113,227,.42) 0%,rgba(0,80,180,.14) 44%,transparent 72%)}
html[data-theme="dark"] .hs-floor{background:radial-gradient(closest-side,rgba(0,113,227,.5),rgba(0,113,227,.12) 60%,transparent 76%)}
html[data-theme="dark"] .hd-win{background:#0c1220;box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 0 0 1px rgba(0,113,227,.28),0 40px 90px -30px rgba(0,0,0,.9),0 0 90px -30px rgba(0,113,227,.55)}
html[data-theme="dark"] .hs-device::after{background:radial-gradient(closest-side,rgba(0,0,0,.7),transparent)}
html[data-theme="dark"] .hd-top{background:#111a2c;border-bottom-color:rgba(255,255,255,.07)}
html[data-theme="dark"] .hd-dots i{background:rgba(255,255,255,.18)}
html[data-theme="dark"] .hd-app{color:#c4c7cc}
html[data-theme="dark"] .hd-glyph{color:rgba(255,255,255,.5)}
html[data-theme="dark"] .hd-search{background:rgba(255,255,255,.07);color:#8b93a1}
html[data-theme="dark"] .hd-user{color:#8b93a1}
html[data-theme="dark"] .hd-side{background:#0a101c;border-right-color:rgba(255,255,255,.06)}
html[data-theme="dark"] .hd-compose{background:rgba(0,113,227,.24);color:#d6e7fb}
html[data-theme="dark"] .hd-nav{color:#c4c7cc}
html[data-theme="dark"] .hd-nav em{color:#8b93a1}
html[data-theme="dark"] .hd-nav.on{background:rgba(0,113,227,.26);color:#fff}
html[data-theme="dark"] .hd-subj,html[data-theme="dark"] .hd-from b,html[data-theme="dark"] .hd-msg p{color:#e8eaed}
html[data-theme="dark"] .hd-from span{color:#8b93a1}
html[data-theme="dark"] .hd-pill{color:#9cc6f5;background:rgba(0,113,227,.16);border-color:rgba(0,113,227,.32)}
html[data-theme="dark"] .hd-ghost i{background:rgba(255,255,255,.06)}
html[data-theme="dark"] .hd-glance{
  background:radial-gradient(120% 60% at 0% 0%,rgba(0,113,227,.18) 0%,transparent 55%),linear-gradient(170deg,rgba(17,27,48,.97) 0%,rgba(9,14,26,.98) 100%);
  border-color:rgba(0,113,227,.42);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 30px 60px -24px rgba(0,0,0,.9),0 0 60px -18px rgba(0,113,227,.6);
}
html[data-theme="dark"] .hdg-brand{color:#59a3ed}
html[data-theme="dark"] .hdg-badge{color:#9cc6f5;background:rgba(0,113,227,.18);border-color:rgba(0,113,227,.38)}
html[data-theme="dark"] .hdg-intent{color:#f5f5f7}
html[data-theme="dark"] .hdg-acts li{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08);box-shadow:none}
html[data-theme="dark"] .hdg-ic{background:rgba(255,255,255,.07);color:rgba(235,240,250,.62)}
html[data-theme="dark"] .hdg-t b{color:#f5f5f7}
html[data-theme="dark"] .hdg-t em{color:rgba(235,240,250,.58)}
html[data-theme="dark"] .hdg-acts li.lock{background:transparent;border-color:rgba(255,255,255,.16)}
html[data-theme="dark"] .hdg-acts li.lock .hdg-box{background:rgba(255,255,255,.1)}
html[data-theme="dark"] .hdg-acts li.lock b{color:rgba(255,255,255,.55)}
html[data-theme="dark"] .hdg-chip{background:linear-gradient(180deg,#141c2e,#0b1120);border-color:rgba(0,113,227,.4)}
html[data-theme="dark"] .hdg-chip-txt{color:rgba(240,244,252,.86)}
html[data-theme="dark"] .hdg-chip-txt b{color:#59a3ed}

/* hero — narrow widths */
@media (max-width:1100px){
  .hd-mail{padding-right:24px}
  .hd-glance{right:18px;top:auto;bottom:-34px;width:340px}
  .hd-body{min-height:400px}
}
@media (max-width:820px){
  .hd-side{display:none}
  .hd-body{grid-template-columns:1fr;min-height:0}
  .hd-mail{padding:18px 18px 296px}
  .hd-search{display:none}
  .hd-glance{right:18px;bottom:-40px;width:min(356px,calc(100vw - 72px))}
  .hs-on .hd-glance{transform:translate3d(0,0,calc(28px + (1 - var(--pe,0)) * 50px))}
  .hd-ghost{margin:30px 0 0 48px;max-width:calc(100% - 430px)}
  .hs-stage{margin-top:40px}
  .hs-copy{padding-top:56px}
}
@media (max-width:480px){
  .hs-device{width:calc(100vw - 32px)}
  .hd-top{gap:10px;padding:0 12px;height:40px}
  .hd-user{display:none}
  .hd-subj{font-size:16.5px;margin-bottom:12px}
  .hd-msg p{font-size:13px}
  .hd-mail{padding:14px 14px 322px}
  .hd-glance{width:calc(100vw - 52px);padding:12px 12px 10px}
  .hdg-t em{font-size:10px}
  .hs-on .hero.hs{height:calc(100vh + 70vh)}
}
@media (max-width:560px){
  .hd-glance{left:50%;right:auto;transform:translateX(-50%)}
  .hs-on .hd-glance{transform:translateX(-50%) translate3d(0,0,calc(28px + (1 - var(--pe,0)) * 50px))}
  .hd-ghost{display:none}
}

/* ---------------------------------------------------------------
   4 · Works where the loop lives — integration components
   --------------------------------------------------------------- */
.ints{position:relative;padding:84px 0 76px;text-align:center;background:var(--bg)}
.ints-kicker{display:block;color:#0071e3;margin:0 auto 14px}
.ints-h{font-family:var(--disp);font-size:44px;line-height:1.06;font-weight:600;letter-spacing:-.04em;color:var(--ink);max-width:17ch;margin:0 auto}
.ints-h em{font-style:italic;font-weight:500;background:linear-gradient(105deg,#1d1d1f 8%,#0071e3 70%);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.05em}
.ints-sub{font-size:16px;color:var(--muted);margin:14px auto 0;max-width:34em;letter-spacing:-.01em}
html[data-theme="dark"] .ints{background:transparent}
html[data-theme="dark"] .ints-h{color:#fff}
html[data-theme="dark"] .ints-h em{background:linear-gradient(100deg,#ffffff 0%,#9cc6f5 38%,#0071e3 95%);-webkit-background-clip:text;background-clip:text;color:transparent}
html[data-theme="dark"] .ints-sub{color:rgba(255,255,255,.5)}

/* shared tool tile */
.tool{
  display:inline-flex;align-items:center;gap:10px;padding:7px 14px 7px 7px;border-radius:14px;
  font:inherit;font-size:13px;font-weight:560;letter-spacing:-.012em;color:#3a3a3c;cursor:default;
  background:linear-gradient(180deg,#ffffff,#fbfbfc);border:1px solid rgba(0,0,0,.07);
  box-shadow:inset 0 1px 0 #fff,0 1px 2px rgba(0,0,0,.03),0 8px 18px -12px rgba(0,30,80,.2);
  transition:border-color .3s ease,box-shadow .3s ease,color .3s ease,transform .3s cubic-bezier(.16,1,.3,1);
}
.tool-ic{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:#86868b;background:linear-gradient(180deg,#f7f7f9,#eff0f3);box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);transition:color .3s ease,background .3s ease}
.tool-ic svg{width:15px;height:15px}
.tool:hover,.tool:focus-visible,.tool.is-hot{color:#1d1d1f;border-color:rgba(0,113,227,.32);box-shadow:inset 0 1px 0 #fff,0 0 0 3px rgba(0,113,227,.06),0 12px 24px -14px rgba(0,113,227,.45);outline:none}
.tool:hover .tool-ic,.tool:focus-visible .tool-ic,.tool.is-hot .tool-ic{color:#0071e3;background:rgba(0,113,227,.08)}
html[data-theme="dark"] .tool{color:rgba(235,240,250,.72);background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 10px 24px -16px rgba(0,0,0,.8)}
html[data-theme="dark"] .tool-ic{color:rgba(235,240,250,.5);background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
html[data-theme="dark"] .tool:hover,html[data-theme="dark"] .tool:focus-visible,html[data-theme="dark"] .tool.is-hot{color:#fff;border-color:rgba(0,113,227,.55);box-shadow:0 0 0 3px rgba(0,113,227,.12),0 0 28px -10px rgba(0,113,227,.6)}
html[data-theme="dark"] .tool:hover .tool-ic,html[data-theme="dark"] .tool:focus-visible .tool-ic,html[data-theme="dark"] .tool.is-hot .tool-ic{color:#59a3ed;background:rgba(0,113,227,.18)}

/* shared Glance hub */
.hub-core{
  position:relative;width:88px;height:88px;border-radius:28px;display:grid;place-items:center;
  background:linear-gradient(180deg,#ffffff,#f6f9fd);border:1px solid rgba(0,113,227,.22);
  box-shadow:inset 0 1px 0 #fff,0 0 0 8px rgba(0,113,227,.05),0 0 0 16px rgba(0,113,227,.025),0 22px 44px -16px rgba(0,113,227,.5);
}
.hub-core .living-ico.hub-ring{width:42px !important;height:42px !important}
.hub-name{font-family:var(--disp);font-size:17px;font-weight:650;letter-spacing:-.02em;color:#1d1d1f;margin-top:14px}
.hub-sub{font-size:12px;color:#86868b;letter-spacing:-.006em}
html[data-theme="dark"] .hub-core{background:linear-gradient(180deg,#121b2e,#0a1120);border-color:rgba(0,113,227,.45);box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 0 0 8px rgba(0,113,227,.08),0 0 0 16px rgba(0,113,227,.04),0 0 50px -10px rgba(0,113,227,.6)}
html[data-theme="dark"] .hub-name{color:#fff}
html[data-theme="dark"] .hub-sub{color:rgba(255,255,255,.5)}

/* B · Animated Beam */
.beam{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) 250px minmax(0,1fr);align-items:center;
  max-width:1000px;margin:44px auto 0;padding:34px 40px;border-radius:30px;
  background:radial-gradient(60% 70% at 50% 50%,rgba(0,113,227,.05),transparent 70%),linear-gradient(180deg,#fbfcfe,#f5f6f8);
  border:1px solid rgba(0,0,0,.05);box-shadow:inset 0 1px 0 #fff,0 30px 60px -36px rgba(0,30,80,.25);
}
.beam-svg{position:absolute;left:0;top:0;z-index:1;pointer-events:none;overflow:visible}
.beam-base{fill:none;stroke:rgba(0,0,0,.08);stroke-width:1.5;transition:stroke .4s ease}
.beam-base.hot{stroke:rgba(0,113,227,.22)}
.beam-pulse{fill:none;stroke-width:2;stroke-linecap:round;opacity:.28;transition:opacity .5s ease}
.beam-pulse.hot{opacity:1;stroke-width:2.4}
.beam-col{position:relative;z-index:2;display:flex;flex-direction:column;gap:10px}
.beam-in{align-items:flex-start}
.beam-out{align-items:flex-end}
.beam-cap{font-family:var(--mono);font-size:10px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:#86868b;margin-bottom:6px}
.beam-hub{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;gap:2px}
.beam-cap-live{
  margin-top:16px;min-height:36px;max-width:230px;font-family:var(--mono);font-size:10.5px;line-height:1.5;letter-spacing:.01em;color:#0071e3;
  padding:6px 10px;border-radius:10px;background:rgba(0,113,227,.06);border:1px solid rgba(0,113,227,.12);
}
html[data-theme="dark"] .beam{background:radial-gradient(60% 70% at 50% 50%,rgba(0,113,227,.12),transparent 70%),linear-gradient(170deg,rgba(16,24,42,.6),rgba(9,13,24,.7));border-color:rgba(0,113,227,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 30px 70px -30px rgba(0,0,0,.8)}
html[data-theme="dark"] .beam-base{stroke:rgba(255,255,255,.08)}
html[data-theme="dark"] .beam-base.hot{stroke:rgba(0,113,227,.4)}
html[data-theme="dark"] .beam-pulse.hot{filter:drop-shadow(0 0 4px rgba(0,113,227,.8))}
html[data-theme="dark"] .beam-cap{color:rgba(255,255,255,.42)}
html[data-theme="dark"] .beam-cap-live{color:#9cc6f5;background:rgba(0,113,227,.14);border-color:rgba(0,113,227,.3)}
@media (max-width:860px){
  .ints{padding:64px 0 56px}
  .ints-h{font-size:32px}
  .beam{grid-template-columns:1fr;gap:26px;padding:26px 18px}
  .beam-svg{display:none}
  .beam-col{flex-direction:row;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px}
  .beam-cap{width:100%;text-align:center;margin-bottom:2px}
  .beam-in{order:1}.beam-hub{order:2}.beam-out{order:3}
  .tool{font-size:12px;padding:5px 11px 5px 5px;gap:8px}
  .tool-ic{width:26px;height:26px}
}

/* A · Orbiting Circles */
.orbits{position:relative;height:500px;max-width:1000px;margin:36px auto 0;display:grid;place-items:center;overflow:hidden;border-radius:30px;
  background:radial-gradient(50% 60% at 50% 50%,rgba(0,113,227,.06),transparent 70%),linear-gradient(180deg,#fbfcfe,#f5f6f8);border:1px solid rgba(0,0,0,.05)}
.orbit-hub{position:relative;z-index:3;display:flex;flex-direction:column;align-items:center}
.orbit-ring{position:absolute;left:50%;top:50%;width:calc(var(--r) * 2px);height:calc(var(--r) * 2px);margin:calc(var(--r) * -1px) 0 0 calc(var(--r) * -1px);border-radius:50%;border:1px solid rgba(0,0,0,.07);z-index:2}
.orb{
  --s:46px;position:absolute;left:50%;top:50%;width:var(--s);height:var(--s);margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  display:grid;place-items:center;border-radius:50%;color:#86868b;
  background:linear-gradient(180deg,#fff,#f7f8fa);border:1px solid rgba(0,0,0,.07);box-shadow:inset 0 1px 0 #fff,0 10px 20px -12px rgba(0,30,80,.3);
  animation:orbitSpin calc(var(--dur) * 1s) linear infinite;transition:color .3s ease,border-color .3s ease,box-shadow .3s ease;
}
.orb svg{width:19px;height:19px}
.orbit-ring.sm .orb{--s:40px}.orbit-ring.sm .orb svg{width:16px;height:16px}
.orbit-ring.rev .orb{animation-direction:reverse}
.orbits:hover .orb{animation-play-state:paused}
.orb:hover{color:#0071e3;border-color:rgba(0,113,227,.35);box-shadow:0 0 0 4px rgba(0,113,227,.08),0 12px 24px -12px rgba(0,113,227,.5)}
.orb-tip{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);font-size:11px;font-weight:560;color:#0071e3;white-space:nowrap;opacity:0;transition:opacity .25s ease;pointer-events:none}
.orb:hover .orb-tip{opacity:1}
@keyframes orbitSpin{
  from{transform:rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--r) * 1px)) rotate(calc(var(--angle) * -1deg))}
  to{transform:rotate(calc(var(--angle) * 1deg + 360deg)) translateY(calc(var(--r) * 1px)) rotate(calc(var(--angle) * -1deg - 360deg))}
}
.orbit-ring .orb{left:50%;top:50%}
html[data-theme="dark"] .orbits{background:radial-gradient(50% 60% at 50% 50%,rgba(0,113,227,.14),transparent 70%),linear-gradient(170deg,rgba(16,24,42,.6),rgba(9,13,24,.7));border-color:rgba(0,113,227,.2)}
html[data-theme="dark"] .orbit-ring{border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .orb{color:rgba(235,240,250,.55);background:linear-gradient(180deg,#131c2e,#0b1120);border-color:rgba(255,255,255,.1);box-shadow:0 10px 24px -12px rgba(0,0,0,.8)}
html[data-theme="dark"] .orb:hover{color:#59a3ed;border-color:rgba(0,113,227,.55);box-shadow:0 0 22px -6px rgba(0,113,227,.7)}
html[data-theme="dark"] .orb-tip{color:#9cc6f5}

/* C · 3D Marquee */
.m3d{
  position:relative;height:460px;max-width:1000px;margin:36px auto 0;overflow:hidden;border-radius:30px;perspective:1000px;
  background:linear-gradient(180deg,#fbfcfe,#f5f6f8);border:1px solid rgba(0,0,0,.05);
}
.m3d-grid{
  position:absolute;left:50%;top:50%;display:flex;gap:16px;width:max-content;
  transform:translate(-50%,-50%) translateZ(-40px) rotateX(22deg) rotateY(-12deg) rotateZ(18deg);transform-style:preserve-3d;
}
.m3d-col{height:860px;overflow:hidden}
.m3d-track{display:flex;flex-direction:column;animation:m3dUp var(--dur) linear infinite}
.m3d-col.rev .m3d-track{animation-direction:reverse}
.m3d:hover .m3d-track{animation-play-state:paused}
@keyframes m3dUp{to{transform:translateY(-50%)}}
.m3d-tile{
  display:flex;align-items:center;gap:12px;width:208px;padding:14px 16px;margin-bottom:16px;border-radius:18px;
  background:linear-gradient(180deg,#fff,#fbfbfc);border:1px solid rgba(0,0,0,.07);box-shadow:inset 0 1px 0 #fff,0 14px 28px -18px rgba(0,30,80,.3);
  color:#86868b;transition:color .3s ease,border-color .3s ease,box-shadow .3s ease;outline:none;
}
.m3d-ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f3f4f6}
.m3d-ic svg{width:17px;height:17px}
.m3d-name{font-size:14px;font-weight:560;color:#3a3a3c;letter-spacing:-.012em}
.m3d-tile:hover,.m3d-tile:focus-visible{color:#0071e3;border-color:rgba(0,113,227,.35);box-shadow:0 0 0 3px rgba(0,113,227,.07),0 16px 30px -16px rgba(0,113,227,.5)}
.m3d-tile:hover .m3d-ic,.m3d-tile:focus-visible .m3d-ic{background:rgba(0,113,227,.08)}
.m3d-fade{position:absolute;inset:0;pointer-events:none;z-index:2;
  background:
    linear-gradient(90deg,#f8f9fb 0%,rgba(248,249,251,0) 22%,rgba(248,249,251,0) 76%,#f8f9fb 100%),
    linear-gradient(180deg,#fafbfd 0%,rgba(250,251,253,0) 22%,rgba(245,246,248,0) 78%,#f5f6f8 100%)}
.m3d-badge{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;display:flex;align-items:center;gap:12px;
  padding:12px 20px 12px 12px;border-radius:20px;text-align:left;
  background:rgba(255,255,255,.82);-webkit-backdrop-filter:blur(14px) saturate(160%);backdrop-filter:blur(14px) saturate(160%);
  border:1px solid rgba(0,113,227,.22);box-shadow:0 0 0 8px rgba(0,113,227,.04),0 30px 60px -24px rgba(0,60,140,.45);
}
.m3d-badge .living-ico{width:34px !important;height:34px !important}
.m3d-badge b{display:block;font-family:var(--disp);font-size:15px;font-weight:650;letter-spacing:-.02em;color:#1d1d1f}
.m3d-badge span{font-size:12px;color:#6e6e73}
html[data-theme="dark"] .m3d{background:linear-gradient(170deg,#0c1322,#080c16);border-color:rgba(0,113,227,.2)}
html[data-theme="dark"] .m3d-tile{background:linear-gradient(180deg,#131c2e,#0c1220);border-color:rgba(255,255,255,.09);box-shadow:0 16px 30px -18px rgba(0,0,0,.9);color:rgba(235,240,250,.5)}
html[data-theme="dark"] .m3d-ic{background:rgba(255,255,255,.06)}
html[data-theme="dark"] .m3d-name{color:rgba(235,240,250,.78)}
html[data-theme="dark"] .m3d-tile:hover{color:#59a3ed;border-color:rgba(0,113,227,.55);box-shadow:0 0 26px -8px rgba(0,113,227,.7)}
html[data-theme="dark"] .m3d-fade{background:linear-gradient(90deg,#0b111e 0%,rgba(11,17,30,0) 22%,rgba(11,17,30,0) 76%,#0a0f1b 100%),linear-gradient(180deg,#0c1322 0%,rgba(12,19,34,0) 22%,rgba(8,12,22,0) 78%,#080c16 100%)}
html[data-theme="dark"] .m3d-badge{background:rgba(12,18,32,.78);border-color:rgba(0,113,227,.45);box-shadow:0 0 50px -12px rgba(0,113,227,.6),0 30px 60px -24px rgba(0,0,0,.8)}
html[data-theme="dark"] .m3d-badge b{color:#fff}
html[data-theme="dark"] .m3d-badge span{color:rgba(255,255,255,.55)}
@media (max-width:860px){.orbits{height:420px}.m3d{height:380px}}

@media (prefers-reduced-motion: reduce){
  .orb,.m3d-track{animation:none !important}
  .orb{transform:rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--r) * 1px)) rotate(calc(var(--angle) * -1deg))}
  .act-row,.tool{transition:none}
  .act.is-active .act-box::after{animation:none}
}

/* ---- v19 review fixes ---- */
/* no status tags while proposing — "Still open" only appears once things are prepared (wait) */
/* the approve bar already says "still open" in wait — one message, not three */
.stage-live[data-state] .g19.g19 .open-badge,
.stage-demo[data-state] .g19.g19 .open-badge{display:none !important}
.stage-live[data-state="wait"] .g19 .acts-run,
.stage-demo[data-state="wait"] .g19 .acts-run{display:none !important}
/* checkbox state flips without a smeared mid-transition frame */
.act-box{transition:background .12s ease,box-shadow .12s ease}
/* chip reads as one sentence: no emoji glyph */
.g19 .chip-ico{display:none !important}
/* decorative glows (stage-glow, pillar-bloom, hero lights) never widen the page — clip, not hidden, so sticky keeps working */
html,body{overflow-x:clip}

/* phones: action rows read in full · close tag drops under its text · chip = sentence, then controls */
@media (max-width:560px){
  .act-row{grid-template-columns:18px 30px minmax(0,1fr);row-gap:0}
  .act-out{white-space:normal;overflow:visible;text-overflow:clip}
  .act-close .act-tag{grid-column:3;justify-self:start;margin-top:5px;font-size:9px;padding:2px 7px}
  .g19 .chip{flex-wrap:wrap;row-gap:10px;column-gap:8px;align-items:center}
  .g19 .chip .chip-txt{order:-1;flex:1 1 100%;min-width:0}
  .g19 .chip .chip-hold{order:1}
  .g19 .chip .chip-act{order:2;margin-inline-start:auto;width:auto;flex:0 0 auto;display:inline-flex;align-items:center;gap:6px}
}
/* the product rises IN FRONT of the receding headline + CTA (not under the CTA) */
.hs-on .hs-stage{z-index:4}
.run-sub .run-app{font-weight:650;color:#1d1d1f}
html[data-theme="dark"] .run-sub .run-app{color:#f5f5f7}
/* beam: both column captions share one baseline (columns stretch; caption pinned top) */
@media (min-width:861px){
  .beam{align-items:stretch}
  .beam-hub{align-self:center}
  .beam-col{justify-content:center;padding-top:30px}
  .beam-cap{position:absolute;top:0;margin:0}
  .beam-in .beam-cap{left:2px}
  .beam-out .beam-cap{right:2px}
}
