.product-home {
  --home-header-height: 76px;
  --home-width: min(1220px, calc(100% - 100px));
  --scene-gap: clamp(112px, 15vw, 230px);
  --scene-ease: cubic-bezier(.16,1,.3,1);
  --housing: #f0f1ef;
  --housing-edge: #dddfdc;
  --signal: var(--accent-led);
}

.product-home [hidden] { display: none !important; }
.product-home .site-header, .product-home .site-footer { width: var(--home-width); }
.home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--raised);
  box-shadow: 0 1px 0 var(--line);
}
.home-header .site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: var(--home-header-height);
  gap: clamp(14px, 2vw, 28px);
}
.home-header .brand { justify-self: start; min-height: 44px; }
.home-header .site-header > nav { margin-left: 0; }
.home-header .site-header > nav a { display: inline-flex; align-items: center; min-height: 44px; }
.home-header .header-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 8px; }
.home-header .mobile-nav { display: none; position: relative; }
.home-header .mobile-nav > summary.mobile-nav-toggle {
  list-style: none;
  --kh: 44px;
  width: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
.home-header .mobile-nav > summary.mobile-nav-toggle::-webkit-details-marker { display: none; }
.home-header .mobile-nav:not([open]) .icon-close,
.home-header .mobile-nav[open] .icon-menu { display: none; }
.home-header .mobile-nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  display: grid;
  gap: 2px;
  width: min(240px, calc(100vw - 32px));
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--raised);
  box-shadow: 0 18px 40px -16px rgba(20, 22, 25, .3);
}
.home-header .mobile-nav-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink-1);
  font-size: 15px;
  font-weight: 500;
}
.home-header .mobile-nav-panel a:hover,
.home-header .mobile-nav-panel a[aria-current="page"] {
  background: var(--chassis-top);
  color: var(--accent-ink);
}
.product-home .site-footer .brand { min-height: 44px; }
.product-home .site-footer .legal-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; }
.product-home .site-footer .legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
.product-home #main, .product-home main > section[id] { scroll-margin-top: var(--home-header-height); }
@media (max-width: 740px) {
  .product-home { --home-header-height: 66px; }
  .home-header .site-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .home-header .site-header > nav { display: none; }
  .home-header .mobile-nav { display: block; }
}
@media (max-width: 380px) {
  .home-header .brand { font-size: 17.5px; gap: 6px; }
  .home-header .brand > img { width: 31px; }
  .home-header .header-actions { gap: 6px; }
  .home-header .header-quiz.ni-key { padding-inline: 10px; gap: 5px; font-size: 12.5px; min-width: 0; }
}
.product-home .hero {
  width: var(--home-width);
  padding-top: clamp(33px, 5svh, 65px);
}

.product-home .hero h1 {
  max-width: 20ch;
  margin-inline: auto;
  font-size: clamp(36px, 5.6vw, 84px);
  line-height: 1.04;
  text-wrap: balance;
}

.product-home .workflow {
  /* Same column as the header, so the app frame lines up with the logo and the quiz key. */
  width: var(--home-width);
  margin: clamp(32px, 5svh, 59px) auto 0;
}

.work-surface {
  background: #e9ebe8;
  border-radius: 23px;
  padding: 0 8px 8px;
  border: 1px solid #d3d7d3;
  box-shadow: inset 0 1px #fff, 0 2px #dfe2de, 0 19px 40px -28px #20232250;
}
.work-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding-inline: 13px;
  color: var(--ink-1);
}
.work-bar .workspace-full { margin-left: auto; width: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 20px; }
.work-bar .workspace-action {
  min-height: 45px;
  height: auto;
  padding: 6px 7px 6px 12px;
  gap: 9px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 620;
}
.work-bar a:focus-visible { outline-offset: 3px; }
.workspace-arrow {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--raised);
  font-size: 16px;
  line-height: 1;
}
/* The frame keeps the column size; the demo inside zooms itself to a 1440px laptop layout
   (like Figma's Scale, K; see demo/embed.js), so the app keeps its real proportions. */
.workspace-viewport {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #d7dbd7;
  border-radius: 15px;
  background: var(--chassis);
}
.workspace-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--chassis);
}

.judgment, .product-home .pilot, .product-home .faq-section { margin-top: var(--scene-gap); }
.judgment { width: var(--home-width); max-width: 940px; }
.judgment h2 { margin: 0 auto clamp(48px, 7vw, 97px); max-width: 18ch; text-align: center; font-size: clamp(33px, 4.8vw, 65px); text-wrap: balance; line-height: 1.06; }
.pricing-example { display: grid; grid-template-columns: minmax(100px, .56fr) minmax(0, 1.44fr); align-items: center; gap: clamp(30px, 6vw, 102px); padding: clamp(27px, 6vw, 86px); border-radius: 26px; background: var(--chassis-top); }
.pricing-example .ni-knob-w[hidden] + .policy-panel { grid-column: 1 / -1; }
.pricing-example .ni-knob-w { position: relative; justify-self: center; }
.pricing-example .ni-knob { --s: clamp(93px, 12vw, 168px); --r: -108deg; }

/* Nonidem DS 1.2.0, knurled knob material from demo/ds/bundle.css. */
.ni-knob-w { display: inline-flex; flex-direction: column; align-items: center; }
.ni-knob { position: relative; display: block; width: var(--s); height: var(--s); border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #b9bec3 0 3deg, #eef0f2 3deg 6deg); box-shadow: 0 0 0 1px rgba(20, 22, 25, .18), 0 2px 0 rgba(20, 22, 25, .12), 0 8px 16px -8px rgba(20, 22, 25, .45); }
.ni-knob .kn-cap { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(120% 90% at 35% 20%, #ffffff, #e6e8eb 55%, #cfd3d7); box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 2px rgba(20, 22, 25, .15), 0 1px 2px rgba(20, 22, 25, .3); }
.ni-knob .kn-dot { position: absolute; inset: 14%; transform: rotate(var(--r)); }
.ni-knob .kn-dot::after { content: ''; position: absolute; left: 50%; top: 9%; width: 16%; height: 16%; margin-left: -8%; border-radius: 50%; background: var(--accent-led); box-shadow: 0 0 5px var(--accent-glow); }
.dial-input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ni-knob-w:focus-within .ni-knob { outline: 2px solid var(--accent-focus); outline-offset: 5px; }

.pricing-scale { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 12px; padding-bottom: 25px; }
.scale-marker { display: grid; gap: 4px; color: var(--ink-2); font-size: 13px; }
.scale-marker strong { color: var(--ink-1); font: 500 clamp(34px, 5vw, 68px)/1 var(--font-display); letter-spacing: -.04em; }
.scale-request { justify-self: end; text-align: right; }
.scale-request strong { color: var(--accent-ink); }
.scale-track { position: absolute; inset: auto 0 0; height: 7px; background: var(--line-2); border-radius: 9px; }
.scale-track > span, .scale-track::after { position: absolute; top: 0; left: 0; height: 100%; }
.scale-track > span { width: 100%; background: #272b2f; border-radius: inherit; transform: scaleX(.6); transform-origin: left; }
.scale-track::after { content: ''; left: 80%; top: 50%; width: 15px; height: 15px; border: 2px solid var(--raised); border-radius: 50%; background: var(--accent-base); transform: translate(-50%,-50%); }
[data-resolution="keep"] .scale-track::after { opacity: .5; }
[data-resolution="once"] .scale-track::after { box-shadow: 0 0 0 2px var(--accent-base); }
[data-resolution="update"] .scale-track > span { transform: scaleX(.8); }
[data-resolution="update"] .scale-track::after { background: #272b2f; }
[data-resolution="update"] .scale-request strong { color: var(--ink-1); }
.pricing-actions { margin-top: 25px; flex-wrap: wrap; gap: 4px; }
.pricing-actions > button { min-height: 44px; height: auto; white-space: normal; }
.pricing-example p { min-height: 3em; margin-top: 14px; font-size: 14px; }

.product-home .pilot { width: var(--home-width); padding: clamp(52px, 8vw, 118px) 22px; margin-bottom: 0; }
.pilot h2 { max-width: 19ch; margin-inline: auto; font-size: clamp(37px, 6vw, 84px); line-height: 1.03; text-wrap: balance; }
.pilot > .ni-key { margin-top: clamp(24px, 4vw, 44px); min-height: 44px; white-space: normal; }
.product-home .faq-section { padding-bottom: clamp(80px, 10vw, 140px); }

@media (prefers-reduced-motion: no-preference) {
  .hero.has-entered h1 { animation: settle .85s var(--scene-ease) both; }
  .workspace-arrow { transition: transform .28s var(--scene-ease); }
  .workspace-action:hover .workspace-arrow { transform: translate(2px, -2px); }
  .ni-knob .kn-dot, .scale-track > span { transition: transform .58s var(--scene-ease); }
  .scale-track::after, .scale-request strong { transition: opacity .24s, color .24s, background-color .24s, box-shadow .24s; }
  .judgment.has-entered .ni-knob { animation: dial-seat .8s var(--scene-ease) both; }

  @keyframes settle { from { opacity: .78; transform: translateY(16px); } }
  @keyframes dial-seat { from { opacity: .74; rotate: -28deg; scale: .91; } }
}

@media (max-width: 885px) {
  /* Switch to the demo's native mobile/tablet layout at the exact pixel where iframe width < 768px. */
  .workspace-viewport { aspect-ratio: auto; height: clamp(540px, 75svh, 680px); }
}
@media (max-width: 760px) {
  .product-home { --home-width: calc(100% - 40px); --scene-gap: clamp(104px, 19vw, 148px); }
  .product-home .workflow { width: var(--home-width); }

  .pricing-example { gap: 29px; }
}
@media (max-width: 560px) {
  .pricing-actions.ni-seg {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 4px;
    padding: 4px;
  }
  .pricing-actions.ni-seg > button {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
  .pricing-example p { min-height: 0; }
}
@media (max-width: 520px) {
  .product-home .hero { padding-top: 22px; }
  .product-home .workflow { margin-top: 24px; }
  .work-surface { padding: 0 5px 5px; }
  .work-bar { gap: 8px; min-height: 60px; padding-inline: 8px; }
  .work-bar .workspace-action { padding-inline: 10px 7px; gap: 7px; font-size: 13px; }
  .workspace-arrow { width: 23px; height: 23px; font-size: 14px; }
  .pricing-example { grid-template-columns: 1fr; padding: 26px 16px; }
  .pricing-actions > button { padding-inline: 12px; }
}
@media (max-width: 375px) {
  .product-home { --home-width: calc(100% - 32px); }
  .work-bar .workspace-action { flex-shrink: 1; min-width: 0; padding-inline: 9px; font-size: 12.5px; }
  .workspace-action .workspace-arrow { display: none; }
}

.product-scene { width: var(--home-width); max-width: 940px; margin-top: var(--scene-gap); }
.product-scene > h2 {
  max-width: 19ch;
  margin: 0 auto clamp(48px, 7vw, 97px);
  text-align: center;
  font-size: clamp(33px, 4.8vw, 65px);
  text-wrap: balance;
  line-height: 1.06;
}

.scene-stage {
  display: grid;
  align-items: center;
  gap: clamp(32px, 6vw, 86px);
  padding: clamp(29px, 6vw, 80px);
  border-radius: 26px;
  background: var(--chassis-top);
}
.scene-stage img { flex: none; }
.scene-stage b, .scene-stage strong { font-weight: 610; }
.scene-stage ul, .scene-stage ol { list-style: none; padding: 0; margin: 0; }
.scene-caption { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }

.result-document { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

.team-stage { justify-items: center; gap: 29px; }
.team-switch > button { min-height: 44px; }
.goal-object { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 15px; font: 500 clamp(18px, 2.8vw, 27px)/1.35 var(--font-display); text-align: center; }
.tools-stage { gap: 25px; }
.tool-route { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.tool-route li { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 5px; position: relative; text-align: center; }
.tool-route li + li::before { content: '→'; position: absolute; left: 0; top: 13px; transform: translateX(-50%); color: var(--ink-2); }
.tool-route img { margin: 0 auto 7px; }
.tool-route li span { color: var(--ink-2); font-size: 13px; }
.tools-stage .scene-caption { text-align: center; }

.results-stage { grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); }
.result-document { gap: 7px; }
.result-document strong { font: 500 clamp(25px, 4vw, 46px)/1.15 var(--font-display); letter-spacing: -.04em; }
.result-document span { color: var(--ink-2); font-size: 13px; }
.result-checks { display: grid; gap: 17px; }
.result-checks li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.result-checks .ni-mk { margin-inline: 6px; }

@media (prefers-reduced-motion: no-preference) {
  .pricing-example.has-entered .scale-track::after { animation: conflict-arrives .8s .24s var(--scene-ease) backwards; }
  @keyframes conflict-arrives { from { opacity: .25; transform: translate(-140%, -50%) scale(.8); } }
}

@media (max-width: 640px) {
  .results-stage { grid-template-columns: 1fr; gap: 23px; }
  .tool-route { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px 7px; }
  .tool-route li:nth-child(3)::before { content: none; }
}

/* Instrument materials and motion are scoped away from the discount example. */
.work-bar { position: relative; }
.work-bar .workspace-full { --k-edge: #c8cdca; }
.chassis-vents {
  display: inline-block;
  width: 63px;
  height: 14px;
  background-color: #d9ddda;
  background-image: repeating-linear-gradient(90deg, transparent 0 2px, #8c9490 2px 3px, #adb5b0 3px 4px, #fff8 5px 7px);
  border-radius: 4px;
  box-shadow: inset 0 1px 2px #525b5540, 0 1px #fff;
}
.work-bar .chassis-vents { position: absolute; left: 50%; transform: translateX(-50%); width: 77px; }
.product-home .header-quiz.ni-key {
  --k-top: var(--accent-base);
  --k-bot: var(--accent-hover);
  --k-edge: var(--accent-hover);
  --k-lip: var(--accent-pressed);
  --k-hi: #ffe2d170;
  --k-fg: var(--accent-on);
}
.product-home .header-quiz.ni-key:hover {
  --k-top: var(--accent-hover);
  --k-bot: var(--accent-pressed);
}

.scene-stage {
  border: 1px solid var(--housing-edge);
  background: var(--housing);
  box-shadow: inset 0 1px #fff, 0 2px #dddfdc;
}
.scene-caption { font-size: 12px; }

#initiative > h2 { margin-bottom: clamp(32px, 5vw, 70px); }
.initiative-stage {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 3vw, 24px);
  margin: 0;
}
.initiative-device {
  position: relative;
  isolation: isolate;
  width: min(100%, 490px);
  aspect-ratio: 1120 / 1563;
}
.initiative-device > img { display: block; width: 100%; height: 100%; }
.initiative-device::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/duo-frame.webp') center / 100% 100%;
  clip-path: circle(3.05% at 87% 9.3%);
  pointer-events: none;
}
.initiative-thread {
  position: absolute;
  inset: 0;
  padding: 3.66% 3.73% 3.40% 5.04%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #f7f7f7;
  /* Contour sampled from the actual screen in the Duo image. */
  clip-path: polygon(
    6.22% 2.63%, 85.41% 2.63%, 87.24% 2.81%, 89.33% 3.28%,
    91.95% 4.46%, 93.59% 5.63%, 94.57% 6.57%, 95.22% 7.50%,
    95.75% 8.44%, 96.07% 9.38%, 96.27% 11.73%, 96.27% 88.65%,
    96.14% 90.06%, 95.88% 91.46%, 95.35% 92.64%, 94.50% 93.81%,
    93.52% 94.75%, 92.28% 95.68%, 90.45% 96.62%, 88.68% 97.23%,
    86.98% 97.56%, 5.76% 97.56%, 5.30% 97.23%, 5.04% 96.62%,
    5.04% 3.75%, 5.17% 3.28%, 5.30% 3.05%, 5.63% 2.81%
  );
}
.initiative-thread-header, .initiative-thread-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px clamp(10px, 4.3vw, 22px);
}
.initiative-thread-header {
  padding-right: 21%;
  min-height: 66px;
  border-bottom: 1px solid #e1e1e1;
  background: #f2f2f2;
}
.initiative-thread-header img { flex: none; width: 34px; height: 34px; }
.initiative-thread-header strong, .initiative-thread-header small { display: block; }
.initiative-thread-header strong { font: 650 15px/1.3 var(--font-display); }
.initiative-thread-header small { margin-top: 2px; font-size: 11px; color: var(--ink-2); }
.initiative-thread-footer {
  min-height: 55px;
  padding-right: 13%;
  border-top: 1px solid #e1e1e1;
  background: #f2f2f2;
}
.initiative-composer { display: flex; align-items: center; gap: 6px; width: 100%; }
.initiative-composer input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 5px 12px;
  border: 1px solid var(--housing-edge);
  border-radius: 20px;
  background: var(--raised);
  color: var(--ink-1);
  font: 400 14px/1.3 var(--font-work);
}
.initiative-composer input::placeholder { color: var(--ink-2); }
.initiative-composer .ni-key { --kh: 36px; flex: none; border-radius: 12px; font-size: 19px; }
.initiative-messages [data-demo-message] .message-bubble { overflow-wrap: anywhere; }
.initiative-scroll {
  position: relative;
  min-height: 0;
  overflow: auto;
  overflow-anchor: none;
  scrollbar-color: var(--housing-edge) transparent;
  scrollbar-width: thin;
}
.initiative-scroll:focus-visible { outline-offset: -3px; }
.initiative-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 13px clamp(12px, 4.3vw, 22px) 14px;
  list-style: none;
}
.initiative-messages [data-chat-continuation] { margin-top: -5px; }
.initiative-messages .message-sender { margin-bottom: 3px; padding-inline: 4px; }
.initiative-messages .message-bubble { max-width: min(93%, 37ch); }
.initiative-messages li:has(> .outgoing) > .message-sender { text-align: right; }
@media (max-width: 650px) {
  .initiative-thread-footer { min-height: 54px; padding-block: 4px; }
  .initiative-composer input { min-height: 44px; font-size: 16px; }
  .initiative-composer .ni-key { --kh: 44px; min-height: 44px; }
}
@media (max-width: 420px) {
  .initiative-thread-header { min-height: 53px; }
  .initiative-thread-header img { width: 29px; height: 29px; }
}

.message-sender:has(.agent-avatar) {
  display: flex;
  align-items: center;
  gap: 6px;
}
.agent-avatar {
  width: 31px;
  height: 31px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}
.chat-meme {
  position: relative;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  margin: 7px 0 2px;
  border-radius: 12px;
  background: #2d2c29;
}
.chat-meme img { display: block; width: auto; max-width: 100%; height: auto; max-height: 142px; }
.message-bubble + .message-bubble { margin-top: 5px; }

.message-sender { display: block; color: var(--ink-2); font-size: 11px; font-weight: 550; }
.message-bubble, .typing-bubble {
  display: block;
  width: fit-content;
  max-width: 93%;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 5px;
  color: var(--ink-1);
  background: var(--raised);
  font-size: 14px;
  line-height: 1.45;
  transform-origin: bottom left;
}
.message-mention {
  padding-inline: 3px;
  border-radius: 4px;
  color: var(--accent-ink);
  background: var(--accent-tint);
  font-weight: 650;
}
.message-bubble.outgoing, .typing-row.is-outgoing .typing-bubble {
  margin-left: auto;
  border-radius: 16px 16px 5px 16px;
  background: var(--accent-tint);
  transform-origin: bottom right;
}
.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 31px;
  padding: 6px 11px;
}
.typing-bubble i { width: 6px; height: 6px; border-radius: 50%; background: #7b746d; }

.initiative-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 10px; }
.initiative-actions .message-sender { width: 100%; text-align: right; }
.initiative-actions button { padding-inline: 10px; }
.initiative-review { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.initiative-review p { margin-top: 4px; }
.initiative-caption {
  display: flex;
  width: 100%;
  min-height: 44px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-2);
}
.initiative-stage > .initiative-caption { width: min(100%, 490px); }
.initiative-caption .ni-key { min-height: 44px; padding-inline: 8px; }
.initiative-caption .ni-key span { font-size: 16px; }

#discovery > h2 { margin-bottom: clamp(28px, 5vw, 62px); }
.discovery-stage {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 3vw, 24px);
  width: min(100%, 660px);
  margin: 0 auto;
}
.discovery-chat {
  display: grid;
  justify-items: center;
  gap: 24px;
  width: 100%;
}
.discovery-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: min(100%, 470px);
  padding: 12px 14px;
  border: 1px solid var(--housing-edge);
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 13px 24px -18px #1c201d75;
}
.discovery-notice-name,
.discovery-notice-meta { display: flex; align-items: baseline; gap: 5px; }
.discovery-notice-name { justify-content: space-between; }
.discovery-notice-name strong { font: 650 14px/1.3 var(--font-display); }
.discovery-notice-meta { color: var(--ink-2); font-size: 11px; }
.discovery-notice p { margin-top: 3px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.discovery-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: 'draft action';
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--housing-edge);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 2px 0 #e6e7e5;
}
.discovery-draft {
  grid-area: draft;
  min-width: 0;
  padding: 8px 9px;
  color: var(--ink-1);
}
.discovery-draft p { font-size: 15px; line-height: 1.5; }
.discovery-send { grid-area: action; min-height: 44px; }
.discovery-hint {
  justify-self: end;
  margin: -13px 16px 0 0;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
}
.discovery-hint [aria-hidden] { display: inline-block; margin-right: 4px; }
.discovery-typing { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.discovery-typing small { color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.discovery-typing .typing-bubble { min-height: 23px; padding: 4px 8px; border: 0; background: #fae2d8; }
.discovery-typing .typing-bubble i { background: var(--accent-ink); width: 5px; height: 5px; }
.discovery-stage:is([data-phase="draft"], [data-phase="done"]) .discovery-composer {
  grid-template-areas: 'draft draft' 'destination action';
}
.discovery-stage[data-phase="refining"] .discovery-composer {
  grid-template-areas: 'draft draft' '. action';
}
.discovery-stage:is([data-phase="refining"], [data-phase="draft"], [data-phase="done"]) .discovery-draft {
  padding: 12px;
  border-radius: 11px;
  background: #fff2eb;
}
.discovery-stage[data-phase="refining"] .discovery-draft { min-height: 112px; }
.discovery-stage[data-phase="refining"] [data-discovery-copy]::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  background: var(--accent-base);
  vertical-align: -.12em;
}
.discovery-refined-label { display: block; margin-bottom: 3px; color: var(--accent-ink); font-size: 12px; font-weight: 650; }
.discovery-destination {
  grid-area: destination;
  display: grid;
  min-width: 0;
  gap: 9px;
  padding: 2px 0 0 3px;
  justify-items: start;
}
.discovery-options > button { min-height: 44px; }
.discovery-target { margin: 0; color: var(--ink-1); font-size: 13px; }
.discovery-target small { display: block; color: var(--ink-2); font-size: 12px; }
.discovery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.discovery-stage[data-phase="done"] .discovery-composer {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'draft' 'destination' 'status';
}
.discovery-stage[data-phase="done"] .discovery-status {
  grid-area: status;
  position: static;
  width: auto;
  height: auto;
  clip-path: none;
  margin: 0 0 0 3px;
  color: var(--ink-2);
  font-size: 12px;
}
@media (max-width: 540px) {
  .discovery-stage[data-phase="draft"] .discovery-composer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'draft' 'destination' 'action';
  }
  .discovery-stage[data-phase="draft"] .discovery-send { justify-self: end; }
}
.team-progress { font-size: 12px; color: var(--ink-2); }
.team-progress[data-done="true"] { color: var(--status-verified-fg); }
.team-stage { --route: #ad654a; justify-items: center; padding: clamp(20px, 4.4vw, 54px); gap: 0; }
.team-console {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(12px, 2.5vw, 25px);
  background: #fbfcfb;
  border: 1px solid #d9ded9;
  border-radius: 15px;
  box-shadow: inset 0 1px #fff, 0 2px 3px #1517190a;
}
.team-console .goal-object { padding: 0; }
.team-selector { display: flex; align-items: center; gap: 14px; flex: none; }
.team-dial { position: relative; }
.team-dial .ni-knob { --s: clamp(49px, 6.5vw, 78px); --r: -55deg; }
.team-stage[data-mode="team"] .team-dial .ni-knob { --r: 55deg; }
.team-coordinator {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 10px 13px;
  border: 1px solid var(--housing-edge);
  border-radius: 12px;
  background: #fff;
  font-size: 14px;
  line-height: 1.4;
}
.team-coordinator::before,
.team-branches::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--route);
  transform-origin: top;
}
.team-coordinator::before { bottom: 100%; height: 27px; }
.team-model {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.25;
}
.team-branches {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(7px, 2vw, 16px);
}
.scene-stage .team-branches { padding-top: 42px; }
.team-branches::before {
  content: '';
  position: absolute;
  top: 22px;
  inset-inline: 16%;
  height: 1px;
  background: var(--route);
  transform-origin: center;
}
.team-branches::after { top: 0; height: 23px; }
.team-branch { position: relative; min-width: 0; }
.team-branch::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 20px;
  background: var(--route);
  transform-origin: top;
}
.team-division {
  margin: 0 0 8px;
  padding: 8px;
  border-bottom: 1px solid var(--housing-edge);
  color: var(--ink-2);
  text-align: center;
  font: 600 13px/1.3 var(--font-work);
}
[data-team]:not([data-mode="solo"]) .team-division,
[data-team][data-mode="solo"] .team-lead { display: none; }
.team-lead {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 6px 9px;
  margin: 0 0 8px;
  padding: 10px;
  border-bottom: 1px solid var(--housing-edge);
  color: var(--ink-1);
  font: 400 13px/1.3 var(--font-work);
}
.team-lead img { border-radius: 50%; }
.team-lead strong, .team-lead small { display: block; }
.team-lead small, .team-lead-task { color: var(--ink-2); font-size: 12px; }
.team-lead-task { grid-column: 2; }
.team-branch ol { display: grid; gap: 7px; }
.team-agent {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 3px 8px;
  padding: 10px;
  border: 1px solid var(--housing-edge);
  border-radius: 10px;
  background: #fbfcfb;
  line-height: 1.3;
  font-size: 13px;
}
.team-agent p, .team-agent .team-progress { grid-column: 2; }
.team-agent p { margin-top: 4px; color: var(--ink-2); font-size: 12px; }
@media (max-width: 670px) {
  .team-coordinator { justify-self: start; }
  .team-coordinator::before { left: 17px; }
  .scene-stage .team-branches { grid-template-columns: 1fr; padding: 14px 0 0 28px; gap: 12px; }
  .team-branches::before { display: none; }
  .team-branches::after { left: 17px; height: auto; inset-block: 0 22px; }
  .team-branch::before { top: 17px; left: -11px; width: 11px; height: 1px; transform-origin: left; }
  .team-division { padding-left: 0; text-align: left; }
}
.tools-stage { --rail-inset: 12.5%; --lamp: var(--signal); gap: 28px; }
.patch-rail { position: relative; margin-inline: var(--rail-inset); height: 6px; border-radius: 7px; background: #d8dcd8; box-shadow: inset 0 1px 2px #202b2029, 0 1px #fff; }
.patch-rail i { position: absolute; top: -2px; left: 0; right: 0; height: 10px; }
.patch-rail i::after { content: ''; position: absolute; right: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 0 2px #fff, 0 0 9px #e76b38ab; }
.tool-route { border: 1px solid #dce0dc; border-radius: 16px; background: #fafbfa; }
.tool-route li { position: relative; padding: 20px 8px 18px; }
.tool-route li + li { border-left: 1px solid #e2e5e2; }
.tool-route li + li::before { content: none; }
.tool-route li::after {
  content: ''; position: absolute; top: -17px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%;
  background: var(--lamp); box-shadow: 0 0 7px var(--lamp);
}

.results-stage { gap: clamp(24px, 5vw, 72px); }
.result-document { position: relative; overflow: hidden; padding: clamp(19px, 3vw, 33px); background: #fcfcfc; border: 1px solid #d0d4d6; border-radius: 13px; box-shadow: 0 4px 0 -2px #d9dcdf, 0 7px 0 -3px #f8f9fa, 0 9px 0 -3px #d3d7da; }
.result-document::after { content: ''; pointer-events: none; opacity: 0; position: absolute; inset: 0 0 auto; height: 45px; background: linear-gradient(transparent, #ffab6326); border-bottom: 2px solid #e3642c; }
.document-lines { width: 100%; display: grid; gap: 5px; margin-top: 8px; }
.document-lines i { height: 3px; border-radius: 2px; background: #c8cdcf; }
.document-lines i:last-child { width: 66%; }
.result-checks li { padding: 13px 12px; border-bottom: 1px solid #dce0dc; }
.result-checks li:last-child { border: 0; border-radius: 8px; background: #f8ede5; }
.result-checks .ni-mk { width: 11px; height: 11px; margin-inline: 5px; }

.company-stage {
  grid-template-columns: minmax(0, 1fr) minmax(116px, .54fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(14px, 2.6vw, 36px);
  padding-block: clamp(40px, 6vw, 80px);
}
.memory-instruction .message-sender { margin: 0 4px 6px; text-align: right; }
.memory-instruction .message-bubble {
  margin: 0;
  max-width: none;
  padding: 14px 17px;
  font-size: clamp(15px, 1.65vw, 21px);
  background: #fbe6da;
  border-color: #e5c7b7;
}
.memory-transfer {
  display: grid;
  gap: 12px;
  color: var(--ink-2);
  font-size: 12px;
  text-align: center;
}
.memory-rail { position: relative; height: 4px; border-radius: 4px; background: #d3d6d0; }
.memory-rail i {
  position: absolute;
  top: 50%;
  left: 100%;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--signal);
  transform: translate(-50%, -50%);
}
.memory-proposal {
  min-width: 0;
  padding: clamp(15px, 2.5vw, 25px);
  border: 1px solid #d0d4d6;
  border-radius: 13px;
  background: var(--raised);
  box-shadow: 0 3px 0 -1px #d7dbd7, 0 10px 18px -11px #20272050;
}
.memory-proposal-title, .memory-check { display: flex; align-items: center; gap: 10px; }
.memory-proposal-title strong { font: 600 clamp(18px, 2.4vw, 25px)/1.2 var(--font-display); }
.memory-check {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.memory-check img { flex: none; }
@media (max-width: 640px) {
  .company-stage { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .memory-instruction, .memory-proposal { width: min(100%, 320px); }
  .memory-instruction .message-sender { text-align: left; }
  .memory-transfer { grid-template-columns: 4px auto; align-items: center; gap: 14px; }
  .memory-rail { width: 4px; height: 34px; }
  .memory-rail i { left: 50%; top: 100%; }
}

.product-home .pilot { background: var(--accent-base); }
.launch-instrument { display: flex; align-items: center; justify-content: center; gap: clamp(13px, 3vw, 38px); margin: 0 auto clamp(25px, 4vw, 48px); }
.launch-instrument .final-mark { display: grid; place-items: center; margin: 0; transform: none; border-radius: 22px; box-shadow: inset 0 1px #fff, 0 2px var(--accent-pressed), 0 8px 18px -10px #773c2475; }
.launch-instrument .chassis-vents { width: clamp(38px, 7vw, 89px); opacity: .7; }
.product-home .faq-list summary > span { border: 1px solid #d0d4d5; box-shadow: inset 0 1px #fff, 0 2px 0 #cbd0d2; }

@media (prefers-reduced-motion: no-preference) {
  .workflow.is-playing .workspace-action .ni-mk { animation: lamp-on .9s .45s both; }
  .company-stage.is-playing .memory-rail i { animation: memory-transfer-x .65s .12s var(--scene-ease) both; }
  .company-stage.is-playing .memory-check { animation: readout-in .46s .52s var(--scene-ease) both; }
  @keyframes memory-transfer-x { from { left: 0; } }
  @keyframes memory-transfer-y { from { top: 0; } }
  @media (max-width: 640px) {
    .company-stage.is-playing .memory-rail i { animation-name: memory-transfer-y; }
  }
  .initiative-stage .chat-arrival .message-bubble { animation: thread-arrival .34s var(--scene-ease) both; }
  .typing-bubble i { animation: typing-pulse .95s ease-in-out infinite both; }
  .typing-bubble i:nth-child(2) { animation-delay: .14s; }
  .typing-bubble i:nth-child(3) { animation-delay: .28s; }
  .discovery-stage[data-discovery-intro] .discovery-notice { animation: notice-arrival .68s var(--scene-ease) both; }
  .discovery-stage[data-discovery-intro][data-phase="ready"] .discovery-hint { animation: send-nudge .85s .65s ease-out both; }
  .discovery-stage[data-discovery-intro][data-phase="ready"] .discovery-send::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 2px solid var(--accent-base);
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    animation: send-ring .85s .72s ease-out 2 both;
  }
  .discovery-stage[data-phase="refining"] [data-discovery-copy]::after { animation: draft-caret .65s step-end infinite; }
  .initiative-stage .chat-arrival .chat-meme { animation: message-pop .45s cubic-bezier(.2,.8,.25,1.15) both; }
  .team-stage.is-playing .goal-object { animation: readout-in .55s var(--scene-ease) both; }
  .team-stage.is-playing .team-branches::after { animation: trace-y .38s .36s linear both; }
  .team-stage.is-playing .team-branches::before { animation: trace-x .37s .74s linear both; }
  .team-stage.is-playing .team-branch::before { animation: trace-y .32s 1.11s linear both; }
  .team-stage.is-playing .team-coordinator::before { animation: trace-y .38s .22s linear both; }
  .team-stage.is-playing .team-progress[data-done="true"] { animation: message-pop .32s var(--scene-ease) both; }
  .tools-stage.is-playing .patch-rail i { animation: packet 2.9s .25s linear both; }
  .tools-stage.is-playing .tool-route li::after { animation: lamp-on .65s var(--cue) both; }
  .tools-stage .tool-route li:nth-child(1) { --cue: .25s; }
  .tools-stage .tool-route li:nth-child(2) { --cue: 1.2s; }
  .tools-stage .tool-route li:nth-child(3) { --cue: 2.15s; }
  .tools-stage .tool-route li:nth-child(4) { --cue: 3.1s; }
  .results-stage.is-playing .result-document::after { animation: document-scan 1.35s .1s ease-in-out both; }
  .results-stage.is-playing .result-checks li { animation: readout-in .48s var(--cue) var(--scene-ease) both; }
  .result-checks li:nth-child(1) { --cue: .2s; }
  .result-checks li:nth-child(2) { --cue: .44s; }
  .result-checks li:nth-child(3) { --cue: .68s; }
  .pilot.is-playing .final-mark { animation: key-seats 1.1s .25s var(--scene-ease) both; }
  .faq-section.is-playing summary > span { animation: key-seats .72s .18s var(--scene-ease) both; }
  .faq-section.is-playing details:nth-child(2) summary > span { animation-delay: .32s; }
  .faq-section.is-playing details:nth-child(3) summary > span { animation-delay: .46s; }

  @keyframes thread-arrival { from { opacity: 0; transform: translateY(4px) scale(.97); } }
  @keyframes typing-pulse {
    0%, 70%, 100% { opacity: .55; transform: translateY(0); }
    34% { opacity: 1; transform: translateY(-3px); }
  }
  @keyframes notice-arrival {
    from { opacity: 0; transform: translateY(-23px) scale(.98); }
  }
  @keyframes send-nudge {
    from { opacity: 0; transform: translateY(5px); }
    55% { transform: translateY(-2px); }
  }
  @keyframes send-ring {
    32% { opacity: .68; }
    to { opacity: 0; transform: scale(1.16); }
  }
  @keyframes draft-caret { 50% { opacity: 0; } }
  @keyframes message-pop { from { opacity: 0; transform: translateY(9px) scale(.86); } }
  @keyframes trace-y { from { transform: scaleY(0); } }
  @keyframes trace-x { from { transform: scaleX(0); } }
  @keyframes readout-in { 0% { opacity: .18; clip-path: inset(0 100% 0 0); } 85% { clip-path: inset(0); } }
  @keyframes packet { 0% { transform: translateX(-100%); } }
  @keyframes lamp-on { 0% { filter: grayscale(1) brightness(.55); } 65% { filter: brightness(1.4); } }
  @keyframes document-scan { 0% { transform: translateY(-45px); } 20%, 78% { opacity: 1; } 100% { transform: translateY(225px); } }
  @keyframes key-seats { 0% { transform: translateY(8px) scale(.94); } 55% { transform: translateY(-2px); } }
}

@media (max-width: 690px) {
  .work-bar .chassis-vents { display: none; }
  .work-bar { justify-content: space-between; }
  .work-bar .workspace-action { order: 1; }
  .work-bar .workspace-full { order: 2; margin-left: auto; }
  .team-console { flex-wrap: wrap; }
  .team-selector { flex: 0 1 auto; }
  .tools-stage { --rail-inset: 0px; grid-template-columns: auto minmax(0,1fr); gap: 15px; }
  .patch-rail { align-self: stretch; height: auto; width: 6px; margin: 32px 0; }
  .patch-rail i { left: -2px; right: auto; top: 0; bottom: 0; height: auto; width: 10px; }
  .patch-rail i::after { right: auto; bottom: -5px; }
  .tools-stage .tool-route { grid-template-columns: 1fr; }
  .tool-route li + li { border-left: 0; border-top: 1px solid #e2e5e2; }
  .tool-route li { grid-template-columns: 30px 1fr; align-items: center; justify-items: start; gap: 1px 10px; text-align: left; padding: 14px 12px; }
  .tool-route img { grid-row: span 2; width: 30px; height: 30px; margin: 0; }
  .tool-route li::after { left: -20px; top: calc(50% - 2px); }
  @media (prefers-reduced-motion: no-preference) {
    .tools-stage.is-playing .patch-rail i { animation-name: packet-down; }
    @keyframes packet-down { 0% { transform: translateY(-100%); } }
  }
}


@media (max-width: 520px) {
  .team-console { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; }
  .team-console .goal-object { text-align: left; justify-content: flex-start; }
  .team-console .goal-object img { width: 36px; height: 36px; }
  .team-selector { gap: 12px; }
  .team-switch > button { padding-inline: 6px; font-size: 12px; white-space: nowrap; }
  @media (prefers-reduced-motion: no-preference) {
    .team-stage.is-playing .team-branch::before { animation-name: trace-x; }
  }
}
