/* Client-journey refinements layered over the established ZayavkaBot identity. */
html {
  background: var(--paper);
  scroll-behavior: auto;
}

.hero {
  align-items: start;
  padding-block: 48px 54px;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(48px, 5.25vw, 76px);
  line-height: .96;
}

.hero-lead {
  margin-top: 22px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-points {
  margin-top: 26px;
}

.solution-hero {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  gap: 56px;
  padding-block: 62px 68px;
}

.solution-hero > *,
.conversation-layout > * {
  min-width: 0;
}

.solution-hero h1 {
  max-width: 780px;
  font-size: clamp(46px, 4.8vw, 68px);
  line-height: .97;
  overflow-wrap: break-word;
}

.solution-hero > div > p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: 17px;
  line-height: 1.55;
}

.demo-context {
  display: grid;
  gap: 5px;
  max-width: 680px;
  margin-top: 26px;
  padding: 17px 0 0 19px;
  border-top: 1px solid var(--ink);
  border-left: 3px solid var(--blue);
}

.demo-context strong {
  font-size: 15px;
}

.demo-context span {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
}

.solution-hero aside {
  box-shadow: 10px 10px 0 rgba(18, 59, 229, .1);
}

.solution-hero aside > strong {
  margin: 25px 0 12px;
  font-size: 34px;
}

.solution-hero aside > a {
  margin-top: 26px;
}

.solution-quick-facts {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid rgba(17, 17, 18, .2);
  list-style: none;
  color: #3c3d3d;
  font-size: 12px;
}

.solution-quick-facts li::before {
  content: "✓";
  margin-right: 8px;
  color: #377b00;
  font-weight: 900;
}

.conversation {
  padding-block: 68px 76px;
}

.conversation-head {
  grid-template-columns: minmax(0, 1fr) 410px;
}

.conversation-head h2 {
  max-width: 760px;
  font-size: clamp(40px, 4.5vw, 62px);
}

.conversation-layout {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 28px;
}

.question-panel,
.generated-result {
  min-height: 0;
  padding: 24px;
}

.question-panel:focus {
  outline: none;
}

.journey-progress {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.journey-progress > div {
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 5px;
}

.journey-progress i {
  height: 4px;
  background: var(--line);
}

.journey-progress i.active {
  background: var(--blue);
}

.dialog-stack {
  display: grid;
}

.dialog-turn {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.dialog-turn.current {
  padding-bottom: 8px;
  border-bottom: 0;
}

.dialog-step {
  grid-row: 1 / 3;
  color: var(--blue);
  font: 800 19px/1 "Arial Narrow", Arial, sans-serif;
}

.dialog-turn h3,
.question-panel .dialog-turn h3 {
  margin: 0 0 14px;
  font-size: 29px;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.dialog-turn h3:focus {
  outline: none;
}

.dialog-answer,
.option-list {
  grid-column: 2;
}

.dialog-answer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.dialog-answer strong {
  display: block;
  color: var(--blue);
  font-size: 15px;
}

.dialog-answer p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dialog-answer button,
.result-edit {
  border: 0;
  background: transparent;
  padding: 2px 0;
  color: var(--muted);
  font: 700 12px/1.2 Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.dialog-answer button:hover,
.result-edit:hover {
  color: var(--blue);
}

.option-button {
  min-height: 54px;
}

.option-button b {
  color: var(--blue);
}

.option-button:hover b,
.option-button:focus-visible b {
  transform: translateX(2px);
}

.conversation-layout.has-result {
  grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr);
}

.conversation-layout.has-result .question-panel {
  background: transparent;
}

.generated-result {
  scroll-margin-top: 20px;
  box-shadow: 10px 10px 0 rgba(17, 17, 18, .08);
}

.generated-result h3 {
  max-width: 680px;
  font-size: clamp(34px, 3.3vw, 48px);
}

.business-outcome {
  margin-top: 24px;
  padding: 20px;
  border-left: 3px solid var(--blue);
  background: var(--soft-blue);
}

.business-outcome span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.business-outcome p {
  margin: 8px 0 0;
  color: #343535;
  font-size: 14px;
}

.brief-details {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.brief-details > span {
  font-size: 13px;
  font-weight: 800;
}

.brief-details > span i {
  margin-left: 6px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.brief-details small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.brief-details textarea {
  width: 100%;
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  padding: 13px;
  color: var(--ink);
  font: 14px/1.45 Arial, sans-serif;
  resize: vertical;
}

.brief-details textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(18, 59, 229, .18);
  outline-offset: 2px;
}

.result-actions {
  align-items: stretch;
  flex-wrap: wrap;
}

.result-actions .button {
  flex: 1 1 230px;
  gap: 20px;
  min-height: 54px;
  text-align: center;
}

.result-edit {
  margin-top: 8px;
}

.contact-fallback {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.contact-fallback > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.contact-fallback a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.contact-fallback button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue);
  font: 700 12px/1.2 Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.contact-fallback button:focus-visible {
  outline: 3px solid rgba(18, 59, 229, .25);
  outline-offset: 3px;
}

.contact-fallback p {
  min-height: 16px;
  margin: 0;
  color: #377b00;
  font-size: 11px;
}

.offer .contact-fallback {
  margin-top: 18px;
}

.pilot-mini-list {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  padding: 16px 0 16px 22px;
  border-block: 1px solid var(--line);
  color: #343535;
  font-size: 13px;
}

.continuation-note {
  margin-top: 18px;
  padding: 16px;
  background: var(--soft-lime);
}

.continuation-note strong {
  display: block;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.continuation-note p {
  margin: 7px 0 0;
  color: #343535;
  font-size: 12px;
}

.manual-copy {
  width: 100%;
  min-height: 180px;
  margin-top: 10px;
  border: 1px solid var(--blue);
  background: white;
  padding: 13px;
  color: var(--ink);
  font: 13px/1.45 Arial, sans-serif;
  resize: vertical;
}

.manual-copy:focus {
  outline: 3px solid rgba(18, 59, 229, .2);
  outline-offset: 2px;
}

.solution-proof {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding-block: 26px 70px;
  border-top: 1px solid var(--ink);
}

.solution-proof > span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.solution-proof p {
  max-width: 760px;
  margin: 0;
  font-size: 14px;
}

.solution-proof a {
  color: var(--blue);
  font-size: 12px;
}

.pilot-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr);
  gap: 64px;
  align-items: start;
  padding-block: 78px 86px;
}

.pilot-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(50px, 5.7vw, 84px);
  line-height: .94;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.pilot-hero h1 em {
  display: block;
  color: var(--blue);
  font-style: normal;
}

.pilot-lead {
  max-width: 740px;
  margin: 28px 0 0;
  color: #343535;
  font-size: 18px;
}

.pilot-start-card {
  border: 1px solid var(--ink);
  background: #fbfaf6;
  padding: 26px;
  box-shadow: 10px 10px 0 rgba(17, 17, 18, .08);
}

.pilot-start-card > span,
.pilot-start-card label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.pilot-start-card > strong {
  display: block;
  margin: 26px 0 10px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 35px;
  line-height: 1;
  text-transform: uppercase;
}

.pilot-start-card > p {
  color: var(--muted);
  font-size: 13px;
}

.pilot-start-card .button {
  width: 100%;
  margin-top: 12px;
}

.pilot-start-card .mail-safety {
  margin: 8px 0 22px;
  font-size: 11px;
}

.pilot-start-card textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  padding: 12px;
  color: #343535;
  font: 12px/1.45 Arial, sans-serif;
  resize: vertical;
}

.pilot-start-card textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(18, 59, 229, .18);
  outline-offset: 2px;
}

.copy-message-row {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.copy-message-row button {
  width: max-content;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--blue);
  font: 700 12px/1.3 Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.copy-message-row button:focus-visible {
  outline: 3px solid rgba(18, 59, 229, .25);
  outline-offset: 3px;
}

.copy-message-row span {
  min-height: 16px;
  color: #377b00;
  font-size: 11px;
}

.pilot-email {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
}

.pilot-steps,
.pilot-outcomes {
  padding-block: 74px;
  border-top: 1px solid var(--ink);
}

.pilot-step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border: 1px solid var(--ink);
  list-style: none;
}

.pilot-step-grid li {
  min-height: 250px;
  padding: 25px;
}

.pilot-step-grid li + li {
  border-left: 1px solid var(--ink);
}

.pilot-step-grid b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 58px;
  background: var(--blue);
  color: white;
}

.pilot-step-grid strong {
  display: block;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}

.pilot-step-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pilot-we-do {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  padding-block: 82px;
  border-top: 1px solid var(--ink);
}

.pilot-we-do h2 {
  margin: 0;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(40px, 4.5vw, 64px);
  line-height: .96;
  letter-spacing: -.05em;
  text-transform: uppercase;
}

.pilot-we-do ul {
  align-self: start;
  margin: 0;
  padding: 22px 28px 22px 46px;
  background: var(--soft-lime);
}

.pilot-we-do li {
  padding: 7px 0;
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
}

.outcome-grid article {
  min-height: 230px;
  padding: 25px;
}

.outcome-grid article + article {
  border-left: 1px solid var(--ink);
}

.outcome-grid span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.outcome-grid strong {
  display: block;
  margin-top: 50px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.outcome-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.not-found {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 230px);
  padding-block: 72px;
}

.not-found-page .site-header {
  grid-template-columns: 1fr auto;
}

.not-found h1 {
  max-width: 860px;
  margin: 0;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: clamp(54px, 8vw, 108px);
  line-height: .9;
  letter-spacing: -.065em;
  text-transform: uppercase;
}

.not-found > p:not(.eyebrow) {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.not-found-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
}

.option-button:focus-visible,
.dialog-answer button:focus-visible,
.result-edit:focus-visible,
.result-actions .button:focus-visible {
  outline: 3px solid rgba(18, 59, 229, .28);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(48px, 8vw, 68px);
  }

  .solution-hero,
  .conversation-head,
  .conversation-layout,
  .conversation-layout.has-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .solution-hero {
    gap: 32px;
  }

  .conversation-head > p {
    max-width: 680px;
  }

  .pilot-hero,
  .pilot-we-do {
    grid-template-columns: 1fr;
  }

  .pilot-hero {
    gap: 42px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-block: 38px 46px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero-lead {
    margin-top: 20px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .hero-points {
    margin-top: 23px;
  }

  .solution-hero {
    gap: 25px;
    padding-block: 34px 42px;
  }

  .solution-hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 9.8vw, 40px);
    line-height: .98;
    letter-spacing: -.055em;
    overflow-wrap: anywhere;
  }

  .solution-hero > div > p:not(.eyebrow) {
    margin-top: 18px;
    font-size: 15px;
  }

  .demo-context {
    margin-top: 20px;
    padding-top: 14px;
    padding-left: 14px;
  }

  .solution-hero aside {
    padding: 20px;
    box-shadow: 6px 6px 0 rgba(18, 59, 229, .1);
  }

  .solution-hero aside > strong {
    margin-top: 14px;
    font-size: 27px;
  }

  .solution-hero aside > p {
    margin-bottom: 0;
    font-size: 13px;
  }

  .solution-quick-facts {
    display: none;
  }

  .solution-hero aside > a {
    margin-top: 15px;
    padding-top: 13px;
  }

  .conversation {
    padding-block: 50px 58px;
  }

  .conversation-head h2 {
    font-size: 38px;
  }

  .conversation-layout {
    gap: 18px;
    margin-top: 30px;
  }

  .question-panel,
  .generated-result {
    padding: 17px;
  }

  .journey-progress {
    align-items: center;
  }

  .journey-progress > div {
    grid-template-columns: repeat(3, 22px);
  }

  .dialog-turn {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 9px;
  }

  .dialog-turn h3,
  .question-panel .dialog-turn h3 {
    font-size: 26px;
  }

  .dialog-answer {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .dialog-answer button {
    justify-self: start;
  }

  .generated-result {
    box-shadow: 6px 6px 0 rgba(17, 17, 18, .08);
  }

  .business-outcome {
    padding: 17px;
  }

  .not-found {
    min-height: calc(100vh - 190px);
    padding-block: 54px;
  }

  .not-found h1 {
    font-size: 54px;
  }

  .not-found > p:not(.eyebrow) {
    margin-top: 22px;
    font-size: 16px;
  }

  .not-found-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }

  .solution-proof {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding-block: 22px 54px;
  }

  .pilot-hero {
    gap: 28px;
    padding-block: 38px 52px;
  }

  .pilot-hero h1 {
    font-size: clamp(40px, 11vw, 45px);
  }

  .pilot-lead {
    margin-top: 20px;
    font-size: 16px;
  }

  .pilot-page .hero-points {
    margin-top: 16px;
  }

  .pilot-start-card {
    padding: 18px;
  }

  .pilot-start-card > strong {
    margin: 18px 0 8px;
    font-size: 31px;
  }

  .pilot-step-grid,
  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .pilot-step-grid li,
  .outcome-grid article {
    min-height: auto;
  }

  .pilot-step-grid li + li,
  .outcome-grid article + article {
    border-top: 1px solid var(--ink);
    border-left: 0;
  }

  .pilot-step-grid b,
  .outcome-grid strong {
    margin-bottom: 34px;
  }

  .outcome-grid strong {
    margin-top: 34px;
  }

  .pilot-steps,
  .pilot-outcomes,
  .pilot-we-do {
    padding-block: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .option-button b {
    transition: none;
  }
}
