/* Final layout layer for the connected How / Ask / Trust chapter. */
.decision-chapter {
  padding-bottom: clamp(7.5rem, 9vw, 9.5rem);
  background:
    radial-gradient(circle at 72% 54%, rgba(0, 180, 255, 0.07), transparent 31rem),
    radial-gradient(circle at 16% 69%, rgba(37, 99, 235, 0.055), transparent 28rem),
    #0f1725;
}

.decision-chapter::after {
  height: clamp(7rem, 9vw, 9.5rem);
  background: linear-gradient(
    180deg,
    rgba(239, 248, 255, 0) 0%,
    rgba(223, 243, 255, 0.14) 36%,
    rgba(233, 247, 255, 0.72) 72%,
    #eef8ff 100%
  );
}

.how-story-code-section {
  padding-bottom: 0;
  background: linear-gradient(180deg, #eef8ff 0%, #f6fbff 14%, #edf7ff 100%);
}

.how-story-code-section::before {
  -webkit-mask-image: none;
  mask-image: none;
}

.how-story-code-section::after {
  content: none;
}

.how-story-code-section + .assistant-section,
body:has(.hero-shell) .assistant-section,
.assistant-section {
  margin-top: 0;
  padding: clamp(3.25rem, 4vw, 4.25rem) max(18px, calc((100vw - var(--max)) / 2)) clamp(2rem, 2.8vw, 2.75rem);
  background: linear-gradient(180deg, #101726 0%, #0f1725 10rem, #0f1725 100%);
}

.assistant-section::before,
.how-story-code-section + .assistant-section::before {
  content: none;
}

.assistant-showcase {
  width: min(100%, 1120px);
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: clamp(1.75rem, 2.5vw, 2.5rem);
}

.assistant-showcase .assistant-intro {
  width: 100%;
  display: block;
}

.assistant-showcase .assistant-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5.5rem);
}

.assistant-showcase .assistant-intro h2 {
  max-width: 18ch;
  font-size: clamp(2.1rem, 2.8vw, 2.8rem);
  line-height: 1.01;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.assistant-showcase .assistant-intro p {
  max-width: 43ch;
  justify-self: end;
  color: rgba(228, 240, 255, 0.68);
  font-size: clamp(0.94rem, 1vw, 1rem);
  line-height: 1.62;
}

.assistant-product {
  border-radius: 16px;
  background:
    radial-gradient(circle at 72% 4%, rgba(0, 180, 255, 0.1), transparent 21rem),
    linear-gradient(145deg, #0a1828, #081320 72%);
  box-shadow: none;
}

.assistant-product-head {
  min-height: 60px;
  padding: 0.65rem 0.72rem 0.65rem 0.95rem;
}

.assistant-product-body {
  min-height: 324px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.24fr);
}

.assistant-dialogue {
  padding: clamp(1.75rem, 3vw, 2.6rem);
}

.assistant-product .assistant-answer {
  max-width: 23ch;
  font-size: clamp(1.55rem, 2.25vw, 2.15rem);
  line-height: 1.1;
}

.assistant-decision {
  padding: clamp(1.35rem, 2.2vw, 1.9rem);
  background:
    radial-gradient(circle at 94% 5%, rgba(82, 214, 255, 0.1), transparent 10rem),
    linear-gradient(160deg, rgba(30, 92, 150, 0.18), rgba(7, 19, 32, 0.24) 64%);
}

.assistant-decision strong {
  max-width: 13ch;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  line-height: 1.08;
}

.decision-chapter .trust-section {
  width: min(1120px, calc(100% - 40px));
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  padding: clamp(2.25rem, 3vw, 3rem) 0 clamp(3.5rem, 4.5vw, 4.5rem);
}

.decision-chapter .trust-section::before {
  content: none;
}

.decision-chapter .trust-copy h2 {
  max-width: 15ch;
  font-size: clamp(1.9rem, 2.35vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.decision-chapter .trust-copy p {
  max-width: 40ch;
  margin-top: 1rem;
  font-size: 0.94rem;
  line-height: 1.62;
}

.decision-chapter .trust-copy a {
  margin-top: 1.2rem;
}

.decision-chapter .trust-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 2.6vw, 2.5rem);
}

.decision-chapter .trust-proof article,
.decision-chapter .trust-proof article:last-child {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0;
  border: 0;
}

.decision-chapter .trust-mark {
  width: 24px;
  height: 2px;
  margin-top: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #52d6ff, rgba(82, 214, 255, 0.18));
  box-shadow: none;
}

.decision-chapter .trust-mark::after {
  content: none;
}

.decision-chapter .trust-proof h3 {
  font-size: 0.96rem;
  line-height: 1.3;
}

.decision-chapter .trust-proof p {
  margin-top: 0.48rem;
  font-size: 0.82rem;
  line-height: 1.58;
}

.stack-section {
  width: min(1120px, calc(100% - 40px));
  min-height: 0;
  margin: 0 auto;
  padding: clamp(4rem, 6vw, 6rem) 0;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.stack-section::before {
  content: none;
}

.stack-copy .section-kicker {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.stack-copy h2 {
  max-width: 10ch;
  font-size: clamp(2.75rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.stack-copy p {
  max-width: 36ch;
  font-size: 1rem;
  line-height: 1.6;
}

.stack-visual {
  min-height: clamp(390px, 34vw, 460px);
}

.faq-section {
  width: min(1120px, calc(100% - 40px));
  display: block;
  margin: 0 auto;
  padding: clamp(4.5rem, 6vw, 6rem) 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.faq-section::before {
  content: none;
}

.faq-copy {
  position: static;
  display: block;
}

.faq-copy h2 {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.faq-list {
  display: block;
  margin-top: clamp(2.5rem, 4vw, 4rem);
  border-top: 1px solid rgba(29, 34, 43, 0.14);
}

.faq-list details {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(29, 34, 43, 0.14);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.faq-list summary {
  min-height: clamp(76px, 7vw, 94px);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  font-weight: 750;
  line-height: 1.3;
}

.faq-list summary::after {
  flex: 0 0 auto;
  float: none;
  margin-left: auto;
  color: #758297;
  font-size: 1.45rem;
  font-weight: 500;
}

.faq-list details[open] summary {
  color: #135b91;
}

.faq-list details[open] summary::after {
  content: '\2212';
}

.faq-list p {
  max-width: 72ch;
  margin: -0.3rem 0 0;
  padding: 0 3rem 1.6rem 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.ready-section {
  width: min(1120px, calc(100% - 40px));
  min-height: 0;
  margin: 0 auto clamp(3rem, 5vw, 5rem);
  padding: clamp(4rem, 5vw, 5rem) 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(29, 34, 43, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ready-section::before {
  content: none;
}

.ready-copy h2 {
  max-width: 11ch;
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.ready-section p {
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.65;
}

.ready-scene {
  min-height: clamp(350px, 32vw, 410px);
}

.ready-card {
  width: min(460px, 100%);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 28px 76px rgba(4, 12, 28, 0.2);
}

.ready-card h3 {
  max-width: 14ch;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1;
}

@media (max-width: 980px) {
  .how-story-code-section {
    padding: 0;
    background: linear-gradient(180deg, #eef8ff 0%, #f6fbff 9rem, #edf7ff 100%);
  }

  .assistant-showcase .assistant-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.85rem;
  }

  .assistant-showcase .assistant-intro p {
    justify-self: start;
  }

  .decision-chapter .trust-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .decision-chapter .trust-copy h2 {
    max-width: 18ch;
  }

  .stack-section,
  .ready-section {
    grid-template-columns: 1fr;
  }

  .stack-copy h2,
  .ready-copy h2 {
    max-width: 14ch;
  }
}

@media (max-width: 720px) {
  .how-story-code-section + .assistant-section,
  body:has(.hero-shell) .assistant-section,
  .assistant-section {
    padding: 2.5rem 14px 2rem;
  }

  .assistant-showcase .assistant-intro h2 {
    max-width: 13ch;
    font-size: clamp(2.15rem, 10vw, 2.7rem);
  }

  .assistant-product-head {
    align-items: flex-start;
  }

  .assistant-product .assistant-modes {
    width: min(48vw, 200px);
  }

  .assistant-product-body {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .assistant-decision {
    min-height: 190px;
  }

  .decision-chapter .trust-section {
    width: calc(100% - 28px);
    padding: 2.75rem 0 4rem;
  }

  .decision-chapter .trust-proof {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stack-section,
  .faq-section,
  .ready-section {
    width: calc(100% - 28px);
  }

  .stack-section,
  .faq-section {
    padding-block: 3rem;
  }

  .ready-section {
    padding-block: 3.75rem;
  }

  .stack-copy h2,
  .ready-copy h2 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 11vw, 3rem);
  }

  .faq-copy h2 {
    font-size: clamp(2.5rem, 12vw, 3.2rem);
  }

  .faq-list summary {
    min-height: 74px;
    gap: 1rem;
    font-size: 1rem;
  }

  body:has(.hero-shell) .faq-list details {
    border-radius: 0;
  }

  body:has(.hero-shell) .faq-list summary {
    min-height: 74px;
    padding: 0;
  }

  body:has(.hero-shell) .faq-list p {
    padding: 0 0 1.6rem;
  }

  .ready-section {
    border-top: 0;
  }
}

/* Final review pass: clearer proof progression, restrained motion, and a purpose-built mobile edit. */
html,
body {
  overflow-x: clip;
}

.how-mobile-stage-tabs {
  display: none;
}

.decision-chapter .trust-proof p,
.assistant-showcase .assistant-intro p,
.assistant-answer-copy,
.assistant-decision span {
  color: rgba(228, 240, 255, 0.76);
}

.trust-example-label {
  display: block;
  color: #52d6ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trust-confidence-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.decision-chapter .trust-confidence-row h3 {
  font-size: 1.15rem;
}

.trust-confidence-row b {
  color: rgba(228, 240, 255, 0.72);
  font-size: 0.72rem;
}

.trust-meter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 0.65rem;
}

.trust-meter i {
  height: 4px;
  border-radius: 999px;
  background: #52d6ff;
}

.trust-meter i.is-missing {
  background: rgba(228, 240, 255, 0.16);
}

.stack-section {
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
}

.stack-copy h2 {
  max-width: 11ch;
  font-size: clamp(2.35rem, 3.45vw, 3.45rem);
  line-height: 1.02;
}

.stack-points {
  display: grid;
  gap: 0;
  margin-top: 1.65rem;
  border-top: 1px solid rgba(29, 34, 43, 0.11);
}

.stack-points span {
  display: grid;
  grid-template-columns: 4.7rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid rgba(29, 34, 43, 0.11);
  border-radius: 0;
  color: #637188;
  background: transparent;
  font-size: 0.8rem;
  line-height: 1.45;
}

.stack-points b {
  color: #182231;
}

.stack-visual {
  min-height: 0;
}

.stack-visual::before,
.stack-visual::after,
.stack-rails,
.stack-logo-tile {
  display: none;
  animation: none !important;
}

.stack-browser {
  position: relative;
  inset: auto;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(36, 96, 150, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 70px rgba(31, 65, 104, 0.13);
  transform: none;
}

.stack-browser::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.75);
}

.stack-browser-bar {
  min-height: 58px;
  grid-template-columns: repeat(3, 8px) minmax(0, 1fr) auto;
  gap: 0.48rem;
  padding: 0 1.2rem;
  border-bottom: 1px solid rgba(36, 96, 150, 0.1);
  background: #f5f9ff;
}

.stack-browser-bar > span {
  width: 8px;
  height: 8px;
  background: #cfdae8;
}

.stack-browser-bar strong {
  margin-left: 0.45rem;
  font-size: 0.82rem;
}

.stack-browser-bar small {
  color: #7a899e;
  font-size: 0.68rem;
  font-weight: 700;
}

.stack-browser-body {
  min-height: 360px;
  grid-template-columns: minmax(230px, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  padding: 0;
}

.stack-source-list {
  gap: 0;
  padding: 1rem;
  border-right: 1px solid rgba(36, 96, 150, 0.1);
}

.stack-source-list > div {
  min-height: 76px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(36, 96, 150, 0.09);
  border-radius: 0;
  background: transparent;
}

.stack-source-list > div:last-child {
  border-bottom: 0;
}

.stack-source-list img {
  width: 36px;
  height: 36px;
  padding: 0.35rem;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(31, 65, 104, 0.1);
  object-fit: contain;
}

.stack-source-list span {
  display: grid;
  gap: 0.2rem;
}

.stack-source-list b {
  color: #162131;
  font-size: 0.84rem;
}

.stack-source-list small {
  color: #748398;
  font-size: 0.68rem;
}

.stack-source-list em {
  color: #177654;
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 800;
}

.stack-data-map {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 0;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  color: #edf6ff;
  background:
    radial-gradient(circle at 84% 8%, rgba(82, 214, 255, 0.14), transparent 16rem),
    linear-gradient(150deg, #0e1b2f, #07111e 72%);
}

.stack-data-map > span {
  color: #52d6ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stack-data-map h3 {
  margin: 0.55rem 0 1.25rem;
  color: #fff;
  font-size: clamp(1.45rem, 2.1vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.stack-map-row {
  min-height: 52px;
  display: grid;
  grid-template-columns: 4.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border-top: 1px solid rgba(164, 199, 232, 0.14);
}

.stack-map-row small {
  color: #8fa3ba;
  font-size: 0.68rem;
}

.stack-map-row b {
  min-width: 0;
  color: #e9f3fd;
  font-size: 0.76rem;
}

.stack-map-row i {
  color: #74ddb3;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
}

.stack-data-map p {
  margin: 1.25rem 0 0;
  color: #a9b9cc;
  font-size: 0.72rem;
  line-height: 1.55;
}

.ready-section {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}

.ready-copy h2 {
  max-width: 10ch;
  font-size: clamp(2.3rem, 3.5vw, 3.45rem);
}

.ready-path {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0.25rem 0;
}

.ready-path::before {
  content: '';
  position: absolute;
  top: 2.25rem;
  bottom: 2.25rem;
  left: 1.28rem;
  width: 1px;
  background: linear-gradient(180deg, #36c8fb, #2563eb 54%, rgba(37, 99, 235, 0.15));
}

.ready-path article {
  position: relative;
  min-height: 108px;
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}

.ready-path article > span {
  z-index: 1;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 50%;
  color: #176fd2;
  background: #f6fbff;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
}

.ready-path article > div {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(29, 34, 43, 0.1);
}

.ready-path article:last-child > div {
  border-bottom: 0;
}

.ready-path small {
  color: #2475dd;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ready-path h3 {
  margin: 0.28rem 0 0;
  color: #151e2c;
  font-size: 1.05rem;
  line-height: 1.2;
}

.ready-path p {
  margin: 0.35rem 0 0;
  color: #67768b;
  font-size: 0.78rem;
  line-height: 1.55;
}

.landing-ready [data-reveal] {
  opacity: 0.86;
  transform: translateY(10px);
}

.landing-ready [data-reveal].is-visible {
  transition:
    opacity 360ms ease-out,
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.assistant-product.is-refreshing .assistant-question,
.assistant-product.is-refreshing .assistant-answer,
.assistant-product.is-refreshing .assistant-answer-copy,
.assistant-product.is-refreshing .assistant-signal,
.assistant-product.is-refreshing .assistant-decision > * {
  animation: none;
}

.how-code-canvas.is-live .how-code-chart .line {
  animation: how-line-draw 1.25s 260ms var(--ease-out) forwards;
}

.how-code-canvas.is-live .how-code-step > i::after,
.how-code-canvas.is-live .how-code-tabs button.active::after,
.how-code-canvas.is-live .how-code-chart circle {
  animation-iteration-count: 1;
}

@media (max-width: 980px) {
  .stack-section,
  .ready-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stack-copy,
  .ready-copy {
    max-width: 620px;
  }

  .stack-copy h2,
  .ready-copy h2 {
    max-width: 13ch;
  }
}

@media (max-width: 720px) {
  .how-code-canvas {
    gap: 0.85rem;
    padding: 2.75rem 14px 4rem;
  }

  .how-code-night {
    top: 16.5rem;
    right: -20vw;
    left: -20vw;
    border-radius: 44px 0 0;
  }

  .how-code-copy {
    margin-bottom: 0.5rem;
  }

  .how-code-copy h2 {
    max-width: 12ch;
    font-size: clamp(2.25rem, 10.5vw, 2.9rem);
    line-height: 1.02;
  }

  .how-code-copy p {
    max-width: 31ch;
    font-size: 0.94rem;
  }

  .how-mobile-stage-tabs {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
    margin: 0.6rem 0 0.2rem;
    padding: 0.3rem;
    border: 1px solid rgba(83, 136, 193, 0.24);
    border-radius: 14px;
    background: rgba(10, 24, 40, 0.92);
    box-shadow: 0 14px 34px rgba(4, 15, 29, 0.16);
  }

  .how-mobile-stage-tabs button {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 0.4rem;
    border: 0;
    border-radius: 10px;
    color: #9fb1c7;
    background: transparent;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 750;
  }

  .how-mobile-stage-tabs button span {
    color: #54cfff;
    font-size: 0.62rem;
  }

  .how-mobile-stage-tabs button[aria-selected='true'] {
    color: #071321;
    background: #52d6ff;
  }

  .how-mobile-stage-tabs button[aria-selected='true'] span {
    color: #125487;
  }

  .how-code-step,
  .how-code-window {
    display: none;
  }

  .how-code-step.is-mobile-active {
    display: grid;
  }

  .how-code-window.is-mobile-active {
    display: block;
  }

  .how-code-step {
    max-width: none;
    margin: 0.25rem 0;
    color: #eef7ff;
  }

  .how-code-step strong {
    font-size: 0.82rem;
  }

  .how-code-step p {
    color: #b8c7d8;
    font-size: 0.82rem;
  }

  .how-code-window {
    border-radius: 18px;
    transform: none;
    box-shadow: 0 22px 46px rgba(1, 8, 20, 0.26);
  }

  .how-code-window header span,
  .how-code-window header small {
    font-size: 0.7rem;
  }

  .how-code-trend-summary small,
  .how-code-trend-summary b,
  .how-code-trend-badge small,
  .how-code-chart-wrap > b,
  .how-code-explain > header > b,
  .how-code-window header .how-code-calendar > small,
  .how-code-window header .how-code-calendar > div > b,
  .how-code-window header .how-code-calendar > div > span,
  .how-code-weekdays b,
  .how-code-weekdays span {
    font-size: 0.68rem;
  }

  .how-code-weekdays span {
    min-height: 48px;
  }

  .trust-confidence-row,
  .trust-meter {
    max-width: 280px;
  }

  .stack-copy h2,
  .ready-copy h2 {
    max-width: 12ch;
    font-size: clamp(2.15rem, 10vw, 2.75rem);
  }

  .stack-browser {
    border-radius: 16px;
  }

  .stack-browser-bar {
    grid-template-columns: repeat(3, 7px) minmax(0, 1fr);
    min-height: 52px;
    padding-inline: 0.9rem;
  }

  .stack-browser-bar small {
    display: none;
  }

  .stack-browser-body {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .stack-source-list {
    padding: 0.55rem 0.8rem;
    border-right: 0;
    border-bottom: 1px solid rgba(36, 96, 150, 0.1);
  }

  .stack-source-list > div {
    min-height: 64px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    padding-inline: 0.3rem;
  }

  .stack-source-list img {
    width: 32px;
    height: 32px;
  }

  .stack-data-map {
    padding: 1.35rem;
  }

  .stack-map-row {
    grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  }

  .ready-path article {
    min-height: 100px;
  }
}

/* Browser-verified corrections for the hero, evidence, and chapter boundaries. */
.sources-more { display: none; }
.nav-links a[aria-current='location'] { color: #1263b5; background: #eaf4ff; }
.decision-chapter { padding-bottom: 3rem; }
.decision-chapter::after {
  height: 32px;
  background: #f6fbff;
  clip-path: ellipse(65% 100% at 50% 100%);
}
.how-story-code-section + .assistant-section,
body:has(.hero-shell) .assistant-section { background: #0f1725; }
.how-code-canvas { -webkit-mask-image: none; mask-image: none; }
.how-story-code-section::after {
  content: ''; height: 28px;
  background: linear-gradient(180deg, transparent, #0f1725);
}
.how-code-night { background: linear-gradient(145deg, #112039, #0f1725 72%); }
.assistant-signal-strip::after,
.stack-browser::before,
.signal-lines path,
.integration-node { animation: none; }

@media (min-width: 981px) {
  .how-code-step-two { top: 44%; }
  body:has(.hero-shell) .hero-shell .dashboard-device { width: 96%; max-width: 100%; }
  body:has(.hero-shell) .hero-shell .landing-preview-marker-row > span strong,
  body:has(.hero-shell) .hero-shell .landing-preview-marker-row > b strong { font-size: 11px; }
  body:has(.hero-shell) .hero-shell .landing-preview-marker-row > span small,
  body:has(.hero-shell) .hero-shell .landing-preview-marker-row > b small,
  body:has(.hero-shell) .hero-shell .landing-preview-marker-row .marker-chevron { display: none; }
  body:has(.hero-shell) .hero-shell .landing-preview-marker-row { grid-template-columns: 18px minmax(0,1fr) auto; }
  body:has(.hero-shell) .hero-shell .landing-preview-marker-row .marker-trend { display: none; }
  .how-code-trend > header { flex-wrap: wrap; }
  .how-code-tabs button { min-height: 28px; font-size: 11px; }
  .how-code-trend-summary { margin-top: 0.65cqw; }
  .how-code-trend-summary small,
  .how-code-trend-summary b,
  .how-code-chart-wrap > b,
  .how-code-window header span { font-size: max(11px, 0.72cqw); }
  .how-code-badges { display: none; }
  .how-code-chart-wrap { height: 16cqw; }
  .how-code-explain { height: auto; min-height: 40%; }
  .how-code-explain > header > b,
  .how-code-feedback,
  .how-code-answer > p:last-of-type { display: none; }
  .how-code-question { max-width: 100%; font-size: 12px; }
  .how-code-answer { padding: 0.8cqw; gap: 0.65cqw; }
  .how-code-answer > p,
  .how-code-answer > span,
  .how-code-answer > span small { font-size: max(11px, 0.76cqw); }
  .how-code-answer > span { grid-template-columns: 20px minmax(0,1fr); }
  .how-code-answer > span small { grid-column: 2; }
  .how-code-answer > span b { white-space: normal; }
  .how-code-calendar { display: none; }
  .how-code-week > header { min-height: 0; grid-template-columns: 1fr; }
  .how-code-weekdays { width: 100%; margin-top: 1.15cqw; }
  .how-code-weekdays b,
  .how-code-weekdays span,
  .how-code-week-outcome > div p,
  .how-code-week-outcome > div b,
  .how-code-week-outcome aside small,
  .how-code-week > footer { font-size: max(11px, 0.72cqw); }
  .how-code-week { height: auto; padding-bottom: 1.1cqw; }
  .how-code-week-outcome aside { transform: none; }
  .decision-chapter .trust-section { grid-template-columns: 0.65fr 1.35fr; gap: 2rem; }
  .decision-chapter .trust-proof { gap: 1.25rem; }
  .decision-chapter .trust-proof article { grid-template-columns: 1fr; gap: 0.7rem; }
  .trust-confidence-row { flex-wrap: wrap; gap: 0.3rem; }
}

@media (max-width: 720px) {
  body:has(.hero-shell) .hero-shell .hero-stage {
    min-height: 0; height: auto; padding: 0; overflow: visible;
    border: 0; background: transparent; box-shadow: none;
  }
  body:has(.hero-shell) .hero-shell .integration-node,
  body:has(.hero-shell) .hero-shell .signal-lines,
  body:has(.hero-shell) .hero-shell .landing-preview-markers,
  body:has(.hero-shell) .hero-shell .mockup-window-bar { display: none; }
  body:has(.hero-shell) .hero-shell .dashboard-device {
    position: relative; inset: auto; width: 100%; max-width: 100%;
    height: auto; min-height: 0; max-height: none; margin: 0; padding: 20px;
    transform: none; border-radius: 22px;
  }
  body:has(.hero-shell) .hero-shell .landing-preview-header { padding: 0; }
  body:has(.hero-shell) .hero-shell .landing-preview-header strong { font-size: 18px; }
  body:has(.hero-shell) .hero-shell .landing-preview-signals { min-height: 0; padding: 18px 0; }
  body:has(.hero-shell) .hero-shell .landing-preview-signals .dashboard-rings {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-height: 0; height: auto; padding: 0; gap: 8px;
  }
  body:has(.hero-shell) .hero-shell .dashboard-rings .metric-ring {
    display: grid; justify-items: center; align-content: start; gap: 8px;
    grid-column: auto; height: auto; min-height: 0; padding: 0; border: 0; background: transparent;
  }
  body:has(.hero-shell) .hero-shell .landing-preview-signals .real-orb { width: 76px; height: 76px; }
  body:has(.hero-shell) .hero-shell .landing-preview-signals .orb-core strong { font-size: 18px; }
  body:has(.hero-shell) .hero-shell .landing-preview-signals .metric-label { font-size: 11px; }
  body:has(.hero-shell) .hero-shell .landing-preview-call {
    display: grid; grid-template-columns: 1fr; gap: 12px; padding: 16px;
    border: 1px solid rgba(129,167,210,.22); border-radius: 14px; background: rgba(255,255,255,.04);
  }
  body:has(.hero-shell) .hero-shell .landing-preview-call-icon { display: none; }
  body:has(.hero-shell) .hero-shell .landing-preview-call-status { display: flex; align-items: center; gap: 10px; }
  body:has(.hero-shell) .hero-shell .landing-preview-call-status small { font-size: 11px; color: #b4c5d9; }
  body:has(.hero-shell) .hero-shell .landing-preview-call-status strong { font-size: 16px; color: #78e5b9; }
  body:has(.hero-shell) .hero-shell .landing-preview-call-copy { display: grid; gap: 8px; }
  body:has(.hero-shell) .hero-shell .landing-preview-call-copy strong { font-size: 15px; line-height: 1.45; }
  body:has(.hero-shell) .hero-shell .landing-preview-call-copy small { font-size: 12px; line-height: 1.5; color: #b4c5d9; }
  body:has(.hero-shell) .hero .works-with { margin-top: 28px; padding-block: 10px 30px; }
  .works-with:not(.sources-expanded) .logo-tile:nth-child(n+4) { display: none; }
  .sources-more { display: block; border: 1px solid #d6e5f1; border-radius: 999px; background: #fff; color: #1e557d; font: inherit; font-size: 12px; font-weight: 700; min-height: 44px; }
  .how-code-canvas { -webkit-mask-image: none; mask-image: none; padding-bottom: 24px; }
  .how-code-night { top: 260px; background: #0f1725; mask-image: linear-gradient(transparent,#000 80px); }
  .how-code-trend-summary p,
  .how-code-badges,
  .how-code-calendar,
  .how-code-week-outcome aside,
  .how-code-week > footer { display: none; }
  .how-code-trend-summary { grid-template-columns: 1fr; min-height: 0; }
  .how-code-trend-summary small br { display: none; }
  .how-code-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  .how-code-tabs button { min-width: 0; padding: 4px; font-size: 11px; }
  .how-code-chart-wrap { height: 180px; }
  .how-code-chart .labels text:nth-child(6),
  .how-code-chart .labels text:nth-child(8),
  .how-code-chart .labels text:nth-child(9) { display: none; }
  .how-code-chart text { font-size: 18px; }
  .how-code-window.is-mobile-active { animation: none; }
  body:has(.hero-shell) .assistant-showcase .assistant-intro h2 { max-width: 20ch; font-size: 30px; }
  .assistant-showcase .assistant-heading { gap: 12px; }
  .assistant-showcase { gap: 20px; }
  .assistant-dialogue { padding: 20px; gap: 16px; }
  .assistant-product .assistant-answer { font-size: 23px; }
  .assistant-product .assistant-answer-copy { font-size: 13px; line-height: 1.6; }
  .assistant-decision { min-height: 0; padding: 20px; gap: 8px; }
  .assistant-decision strong { max-width: none; font-size: 21px; }
  .assistant-decision > img { display: none; }
  .decision-chapter .trust-section { padding: 28px 0; gap: 24px; }
  .decision-chapter .trust-copy h2 { font-size: 27px; }
  .decision-chapter .trust-proof { gap: 20px; }
  .stack-copy .section-kicker { margin-bottom: 14px; }
  .stack-points { margin-top: 18px; }
  .stack-data-map { display: none; }
  .stack-browser-body { min-height: 0; }
  .ready-section { gap: 24px; margin-bottom: 20px; }
  .ready-path article { min-height: 0; padding: 10px 0; }
  .ready-path p { font-size: 13px; }
  body:has(.hero-shell) .universal-site-footer { margin-top: 16px; padding-top: 32px; }
  body:has(.hero-shell) .universal-footer-grid { grid-template-columns: 1fr; gap: 0; }
  body:has(.hero-shell) .universal-footer-intro { margin-bottom: 24px; }
  body:has(.hero-shell) .universal-footer-intro p { max-width: 32ch; }
}

@media (prefers-reduced-motion: reduce) {
  .landing-ready [data-reveal] { opacity: 1; transform: none; }
  .how-code-canvas.is-live .how-code-chart .line { animation: none; stroke-dashoffset: 0; }
}
