/* AI: a repeated request becomes a prepared draft, with people in control. */
.ai-page .site-header {
  isolation: isolate;
  transform: translateZ(0);
}
.ai-page .site-header::before {
  content: "";
  position: absolute;
  inset: -24px calc(-1 * var(--gutter)) -12px;
  background: var(--paper);
  z-index: -1;
}
.ai-page .site-header.header-light::before {
  background: var(--green);
}
.ai-breadcrumb {
  display: flex;
  gap: 13px;
  font-size: 13px;
}
.ai-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.ai-hero {
  background: var(--paper);
}
.ai-hero-stage {
  position: relative;
  height: 100svh;
  height: 100dvh;
  min-height: 600px;
  overflow: clip;
}
.ai-hero h1 {
  font:
    750 min(7.5vw, 10.7svh) / 1.12 Unbounded,
    sans-serif;
  letter-spacing: -0.04em;
  position: absolute;
  left: var(--gutter);
  top: 20%;
  right: var(--gutter);
  margin: 0;
}
.ai-hero h1 > span {
  background: var(--yellow);
  padding: 0 0.07em 0.04em;
  margin-left: -0.07em;
}
.ai-breadcrumb {
  position: absolute;
  left: var(--gutter);
  top: 118px;
}
.ai-hero-copy {
  position: absolute;
  left: var(--gutter);
  top: 55%;
  max-width: 380px;
  width: 31%;
}
.ai-hero-copy > p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.ai-hero-copy .button {
  font-size: 14px;
  min-height: 52px;
}
.ai-outcome {
  position: absolute;
  left: var(--gutter);
  top: 20%;
  right: var(--gutter);
  clip-path: inset(0 0 100%);
}
.ai-outcome h2 {
  font:
    750 clamp(32px, 4.8vw, 86px) / 1.13 Unbounded,
    sans-serif;
  letter-spacing: -0.04em;
}
.ai-outcome h2 span {
  background: var(--yellow);
}
.ai-outcome p {
  margin-top: 20px;
  font-size: 18px;
}
.ai-routing {
  position: absolute;
  left: 52%;
  top: 53%;
  width: 44%;
  height: 29%;
  display: grid;
  grid-template-columns: 1fr 70px 1.1fr;
  gap: 12px;
  align-items: center;
}
.ai-inbox,
.ai-draft {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.diagram-label {
  font-size: 12px;
  font-weight: 650;
  display: block;
  margin-bottom: 15px;
}
.ai-slips {
  display: grid;
  gap: 8px;
}
.ai-slips > span {
  background: var(--green);
  color: var(--paper);
  padding: 12px;
  font-size: 14px;
  transform: translateX(calc(var(--route, 0) * 10px));
}
.ai-slips > span:nth-child(2) {
  transform: translate(
    calc(var(--route, 0) * 17px),
    calc(var(--route, 0) * -4px)
  );
}
.ai-slips > span:nth-child(3) {
  transform: translate(
    calc(var(--route, 0) * 7px),
    calc(var(--route, 0) * -8px)
  );
}
.ai-route-arrow {
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke-width: 2;
  stroke: var(--green);
}
.route-track {
  opacity: 0.2;
}
.route-draw {
  stroke-dasharray: 150;
  stroke-dashoffset: calc(150 * (1 - var(--route, 0)));
}
.ai-draft {
  padding: 22px;
  background: var(--yellow);
  border: 1px solid var(--green);
}
.ai-draft p {
  font-size: clamp(15px, 1.4vw, 23px);
  line-height: 1.5;
}
.ai-approval {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 14px;
  margin-top: auto;
  padding-top: 18px;
}
.ai-approval svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 28;
  stroke-dashoffset: calc(28 * (1 - var(--route, 0)));
}
.ai-diagram-note {
  position: absolute;
  left: 0;
  bottom: -32px;
  font-size: 11px;
  line-height: 1.4;
}
.ai-intro,
.ai-control,
.ai-process {
  padding: 110px var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 8vw;
}
.ai-intro {
  background: var(--green);
  color: var(--paper);
}
.ai-intro h2,
.ai-control h2,
.ai-process h2,
.ai-uses h2,
.ai-faq h2 {
  font:
    750 clamp(36px, 5.1vw, 94px) / 1.13 Unbounded,
    sans-serif;
  letter-spacing: -0.04em;
}
.ai-intro h2 span {
  color: var(--yellow);
}
.ai-intro > div {
  align-self: end;
  max-width: 40ch;
}
.ai-intro p + p {
  margin-top: 22px;
}
.ai-text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.ai-text-link svg,
.ai-related svg {
  width: 26px;
  height: 26px;
}
.ai-uses {
  background: var(--green);
  color: var(--paper);
}
.ai-uses-stage {
  height: 100svh;
  height: 100dvh;
  min-height: 620px;
  padding: 130px var(--gutter) 30px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 28px;
  overflow: clip;
}
.ai-uses h2 {
  font-size: clamp(36px, 4.3vw, 80px);
}
.ai-uses h2 span {
  color: var(--yellow);
}
.ai-use-window {
  overflow: hidden;
  min-height: 0;
}
.ai-use-rail {
  display: flex;
  height: 100%;
  will-change: transform;
}
.ai-use {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  align-items: center;
  min-width: 0;
}
.ai-use-copy {
  max-width: 40ch;
}
.ai-use h3 {
  font:
    650 clamp(26px, 2.4vw, 45px) / 1.2 Unbounded,
    sans-serif;
  letter-spacing: -0.03em;
  margin-bottom: 23px;
}
.ai-use p + p {
  margin-top: 16px;
}
.ai-example {
  background: var(--paper);
  color: var(--green);
  border: 1px solid var(--paper);
  max-width: 590px;
  width: 100%;
  font-size: 16px;
  overflow: hidden;
}
.example-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.example-head span {
  font-weight: 650;
}
.chat-question,
.chat-answer {
  padding: 15px 18px;
  line-height: 1.5;
  margin: 18px;
}
.chat-question {
  background: var(--yellow);
  margin-left: 50px;
}
.chat-answer {
  border: 1px solid var(--line);
  margin-right: 35px;
}
.chat-choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px;
}
.chat-choices button {
  font: inherit;
  font-size: 12px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--green);
  background: none;
  color: inherit;
  cursor: pointer;
}
.chat-choices button[aria-pressed="true"] {
  background: var(--green);
  color: var(--paper);
}
.ai-chat small {
  display: block;
  font-size: 11px;
  margin: 16px 18px;
}
.ai-tasks ol {
  list-style: none;
  padding: 20px 24px;
  margin: 0;
  counter-reset: task;
}
.ai-tasks li {
  position: relative;
  padding: 12px 0 18px 33px;
  border-bottom: 1px solid var(--line);
  counter-increment: task;
}
.ai-tasks li:last-child {
  border: 0;
}
.ai-tasks li:before {
  content: counter(task);
  position: absolute;
  left: 0;
  font-weight: 650;
}
.ai-tasks li span {
  font-weight: 700;
}
.ai-tasks li p {
  margin-top: 4px;
  font-size: 14px;
}
.knowledge-query {
  padding: 16px 20px;
  background: var(--yellow);
  margin: 20px;
}
.knowledge-answer {
  padding: 0 20px 24px;
}
.knowledge-answer > span {
  font-size: 12px;
}
.knowledge-answer strong {
  display: block;
  font:
    650 clamp(24px, 2.1vw, 38px) / 1.2 Unbounded,
    sans-serif;
  letter-spacing: -0.03em;
  margin: 16px 0;
}
.knowledge-answer p {
  font-size: 14px;
}
.knowledge-source {
  display: block;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.ai-use-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ai-use-controls button {
  min-height: 50px;
  text-align: left;
  padding: 12px 18px;
  font:
    650 15px DM,
    sans-serif;
  color: var(--paper);
  border: 1px solid #f5f3ec66;
  background: transparent;
  cursor: pointer;
}
.ai-use-controls button[aria-current="true"] {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--green);
}
.ai-control h2 span {
  background: var(--yellow);
}
.ai-control > div > p,
.ai-process > div > p {
  max-width: 36ch;
  margin-top: 26px;
}
.ai-control dl {
  margin: 0;
}
.ai-control dl > div {
  border-top: 1px solid var(--green);
  padding: 24px 0;
}
.ai-control dt {
  font:
    650 clamp(21px, 2vw, 34px) / 1.25 Unbounded,
    sans-serif;
  letter-spacing: -0.025em;
  margin-bottom: 15px;
}
.ai-control dd {
  margin: 0;
  max-width: 42ch;
}
.ai-process {
  background: var(--yellow);
}
.ai-process .button {
  margin-top: 28px;
  font-size: 14px;
}
.ai-process ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: steps;
}
.ai-process li {
  position: relative;
  padding: 0 0 32px 38px;
  counter-increment: steps;
}
.ai-process li:before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  background: var(--yellow);
  z-index: 1;
}
.ai-process li:after {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  bottom: 8px;
  width: 1px;
  background: var(--green);
  transform: scaleY(var(--reveal, 1));
  transform-origin: top;
}
.ai-process li:last-child:after {
  display: none;
}
.ai-process h3 {
  font:
    650 clamp(20px, 1.8vw, 30px) / 1.3 Unbounded,
    sans-serif;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.ai-process li p {
  max-width: 42ch;
}
.ai-faq {
  padding: 110px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10vw;
}
.ai-faq .faq-heading {
  align-self: start;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.ai-faq .faq-heading > span {
  font:
    750 11vw/1 Unbounded,
    sans-serif;
}
.ai-faq .faq-list {
  width: 100%;
}
.ai-related {
  padding: 20px var(--gutter) 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  font-size: 14px;
}
.ai-related a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.animated .ai-hero {
  height: 270svh;
}
.animated .ai-hero-stage {
  position: sticky;
  top: 0;
}
.animated .ai-uses {
  height: 330svh;
}
.animated .ai-uses-stage {
  position: sticky;
  top: 0;
}
.ai-page [data-ai-reveal] {
  --reveal: 1;
}
.ai-page.ai-enhanced [data-ai-reveal] {
  transform: translateY(calc(28px * (1 - var(--reveal))));
  clip-path: inset(0 0 calc(100% * (1 - var(--reveal))) 0);
}
.ai-page.ai-enhanced [data-ai-reveal]:focus-within,
.ai-page.ai-enhanced details[open] {
  transform: none;
  clip-path: none;
}
@media (hover: hover) {
  .ai-use-controls button:hover {
    border-color: var(--yellow);
  }
  .chat-choices button:hover {
    background: var(--yellow);
    color: var(--green);
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .ai-hero-copy {
    width: 38%;
    max-width: 340px;
  }
  .ai-routing {
    grid-template-columns: 1fr 45px 1fr;
    gap: 7px;
  }
  .ai-draft {
    padding: 15px;
  }
  .ai-use {
    gap: 5vw;
  }
  .ai-use h3 {
    font-size: 26px;
  }
  .ai-use-copy p {
    font-size: 15px;
  }
}
@media (max-width: 760px) {
  .ai-breadcrumb {
    top: 94px;
    font-size: 12px;
  }
  .ai-hero h1 {
    top: 19%;
    font-size: 7.4vw;
    line-height: 1.16;
  }
  .ai-hero-copy {
    top: 34%;
    width: auto;
    left: var(--gutter);
    right: var(--gutter);
    max-width: none;
  }
  .ai-hero-copy > p {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 15px;
  }
  .ai-hero-copy .button {
    font-size: 12px;
    min-height: 44px;
    padding: 10px 13px;
    gap: 15px;
  }
  .ai-routing {
    left: var(--gutter);
    width: calc(100% - var(--gutter) * 2);
    top: 63%;
    height: 25%;
    grid-template-columns: 1fr 34px 1.1fr;
    gap: 7px;
  }
  .diagram-label {
    font-size: 11px;
    margin-bottom: 9px;
  }
  .ai-slips {
    gap: 6px;
  }
  .ai-slips > span {
    font-size: 11px;
    padding: 9px 7px;
  }
  .ai-draft {
    padding: 12px;
  }
  .ai-draft p {
    font-size: 14px;
    line-height: 1.4;
  }
  .ai-approval {
    font-size: 11px;
    gap: 5px;
    padding-top: 13px;
  }
  .ai-approval svg {
    width: 19px;
    height: 19px;
  }
  .ai-diagram-note {
    font-size: 11px;
    bottom: -38px;
    max-width: 30ch;
  }
  .ai-outcome {
    top: 20%;
  }
  .ai-outcome h2 {
    font-size: 7.5vw;
  }
  .ai-outcome p {
    font-size: 15px;
    margin-top: 15px;
  }
  .ai-intro,
  .ai-control,
  .ai-process {
    display: block;
    padding: 70px var(--gutter);
  }
  .ai-intro h2,
  .ai-control h2,
  .ai-process h2,
  .ai-faq h2 {
    font-size: 8.3vw;
  }
  .ai-intro > div,
  .ai-control dl,
  .ai-process ol {
    margin-top: 35px;
  }
  .ai-intro p,
  .ai-control dd,
  .ai-process p {
    font-size: 15px;
  }
  .ai-text-link {
    font-size: 14px;
  }
  .ai-uses-stage {
    padding: 105px var(--gutter) 22px;
    gap: 20px;
  }
  .ai-uses h2 {
    font-size: 7.8vw;
  }
  .ai-use {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .ai-use-copy {
    max-width: none;
  }
  .ai-use h3 {
    font-size: 22px;
    margin-bottom: 14px;
  }
  .ai-use h3 br {
    display: none;
  }
  .ai-use-copy p {
    font-size: 14px;
    line-height: 1.5;
  }
  .ai-use-copy p + p {
    margin-top: 10px;
  }
  .ai-example {
    align-self: center;
    font-size: 14px;
  }
  .example-head {
    font-size: 11px;
    padding: 9px 12px;
  }
  .chat-question,
  .chat-answer {
    margin: 12px;
    padding: 11px 13px;
  }
  .chat-question {
    margin-left: 35px;
  }
  .chat-answer {
    margin-right: 25px;
  }
  .chat-choices {
    margin: 12px;
    gap: 7px;
  }
  .chat-choices button {
    font-size: 11px;
    padding: 8px 10px;
  }
  .ai-chat small {
    font-size: 11px;
    margin: 12px;
  }
  .ai-tasks ol {
    padding: 10px 15px;
  }
  .ai-tasks li {
    padding: 10px 0 12px 25px;
  }
  .ai-tasks li p {
    font-size: 12px;
  }
  .knowledge-query {
    margin: 14px;
    padding: 12px;
  }
  .knowledge-answer {
    padding: 0 14px 18px;
  }
  .knowledge-answer strong {
    font-size: 24px;
    margin: 12px 0;
  }
  .knowledge-answer p {
    font-size: 12px;
  }
  .knowledge-source {
    font-size: 11px;
    padding: 10px 14px;
  }
  .ai-use-controls {
    gap: 5px;
  }
  .ai-use-controls button {
    font-size: 12px;
    min-height: 46px;
    padding: 10px 8px;
  }
  .ai-control dt {
    font-size: 22px;
  }
  .ai-control dl > div {
    padding: 22px 0;
  }
  .ai-process h3 {
    font-size: 21px;
  }
  .ai-process li {
    padding-left: 30px;
  }
  .ai-process .button {
    font-size: 12px;
    gap: 16px;
  }
  .ai-faq {
    display: block;
    padding: 70px var(--gutter);
  }
  .ai-faq .faq-heading {
    margin-bottom: 35px;
  }
  .ai-faq .faq-heading > span {
    font-size: 21vw;
  }
  .ai-related {
    flex-wrap: wrap;
    padding-bottom: 40px;
    font-size: 12px;
    gap: 20px;
  }
  .ai-related > span {
    flex-basis: 100%;
  }
  .ai-related svg {
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 760px) and (max-height: 740px) {
  .ai-hero h1 {
    top: 20%;
    font-size: 7.1vw;
  }
  .ai-hero-copy {
    top: 34%;
  }
  .ai-hero-copy > p {
    font-size: 13px;
  }
  .ai-routing {
    top: 65%;
    height: 24%;
  }
  .ai-slips > span {
    padding: 7px;
  }
  .ai-uses-stage {
    padding-top: 95px;
    gap: 14px;
  }
  .ai-uses h2 {
    font-size: 7vw;
  }
  .ai-use {
    gap: 12px;
  }
  .ai-use h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .ai-use-copy p {
    font-size: 12px;
    line-height: 1.45;
  }
  .ai-example {
    font-size: 12px;
  }
  .chat-question,
  .chat-answer {
    padding: 8px;
    margin-block: 9px;
  }
  .chat-choices {
    margin-block: 9px;
  }
  .ai-chat small {
    margin-block: 8px;
  }
  .ai-use-controls button {
    font-size: 11px;
  }
  .knowledge-query {
    margin: 10px;
    padding: 10px;
  }
  .knowledge-answer {
    padding-bottom: 12px;
  }
  .knowledge-answer strong {
    font-size: 21px;
    margin-block: 9px;
  }
  .ai-tasks li {
    padding-block: 8px;
  }
  .ai-tasks li p {
    font-size: 11px;
  }
}
html:not(.animated) .ai-hero-stage {
  height: auto;
  min-height: 0;
  padding: 130px var(--gutter) 80px;
  overflow: visible;
}
html:not(.animated) .ai-breadcrumb {
  position: static;
  margin-bottom: 50px;
}
html:not(.animated) .ai-hero h1 {
  position: static;
  font-size: 7.5vw;
  line-height: 1.2;
}
html:not(.animated) .ai-hero-copy {
  position: static;
  width: auto;
  max-width: 45ch;
  margin-top: 40px;
}
html:not(.animated) .ai-outcome {
  display: none;
}
html:not(.animated) .ai-routing {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 850px;
  height: auto;
  min-height: 240px;
  margin-top: 45px;
  --route: 1;
}
html:not(.animated) .ai-uses-stage {
  height: auto;
  min-height: 0;
  overflow: visible;
  padding-block: 75px;
}
html:not(.animated) .ai-use-window {
  overflow: visible;
}
html:not(.animated) .ai-use-rail {
  display: block;
  transform: none !important;
}
html:not(.animated) .ai-use {
  margin-top: 65px;
  padding-top: 35px;
  border-top: 1px solid #f5f3ec66;
}
html:not(.animated) .ai-use-controls {
  display: none;
}
@media (max-width: 760px) {
  html:not(.animated) .ai-hero-stage {
    padding-top: 100px;
    padding-bottom: 70px;
  }
  html:not(.animated) .ai-breadcrumb {
    margin-bottom: 45px;
  }
  html:not(.animated) .ai-hero h1 {
    font-size: 7.3vw;
  }
  html:not(.animated) .ai-hero-copy {
    margin-top: 28px;
  }
  html:not(.animated) .ai-routing {
    min-height: 200px;
    margin-top: 35px;
  }
  html:not(.animated) .ai-use {
    gap: 25px;
  }
  html:not(.animated) .ai-use-copy p {
    font-size: 15px;
  }
}
/* Compact phones keep the hero choreography and read the three examples in
   normal flow, giving every paragraph and control its full required height. */
.ai-uses-flow .ai-uses { height: auto; }
.ai-uses-flow .ai-uses-stage { position: relative; height: auto; min-height: 0; overflow: visible; padding-block: 65px; }
.ai-uses-flow .ai-use-window { overflow: visible; }
.ai-uses-flow .ai-use-rail { display: block; transform: none !important; }
.ai-uses-flow .ai-use { grid-template-rows: auto auto; margin-top: 55px; padding-top: 30px; border-top: 1px solid #f5f3ec66; gap: 25px; }
.ai-uses-flow .ai-use h3 { font-size: 22px; }
.ai-uses-flow .ai-use-copy p { font-size: 15px; line-height: 1.5; }
.ai-uses-flow .ai-use-controls { display: none; }
