/* Version 4 builds on Version 2; original colour tokens and logo stay intact. */
.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 58px;
  padding: 10px 12px 10px 25px;
  gap: 18px;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.25s, border-color 0.25s, transform 0.25s,
    box-shadow 0.3s;
}
.button::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, #ffffff1c 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.button:hover::before {
  transform: translateX(110%);
}
.button svg {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: #ffffff1c;
  transition: transform 0.3s, background 0.3s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px #0a1b3a1c;
}
.button:hover svg {
  transform: rotate(-35deg);
  background: #ffffff2c;
}
.button:active {
  transform: translateY(0) scale(0.985);
  box-shadow: 0 4px 9px #0a1b3a14;
}
.button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px var(--paper);
}
.button.primary {
  box-shadow: 0 6px 16px #3768b921;
  border-color: #ffffff10;
}
.button.primary:hover {
  box-shadow: 0 12px 25px #3768b936;
}
.button.secondary svg,
.button.light-button svg {
  background: #3768b911;
}
.button.secondary:hover {
  border-color: var(--blue);
  background: #fffefa;
}
.button.secondary:hover svg,
.button.light-button:hover svg {
  background: #3768b91c;
}
.button:not(:has(svg)) {
  padding-inline: 27px;
}
.nav-actions .button {
  min-height: 52px;
  padding-block: 8px;
}
.nav-actions .button svg {
  width: 30px;
  height: 30px;
  padding: 7px;
}
.text-link {
  position: relative;
  padding-bottom: 3px;
}
.text-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
}
.opening .actions {
  gap: 14px;
}
.opening-stage {
  position: relative;
  height: 330px;
  max-width: 1040px;
  margin-top: 34px;
  isolation: isolate;
}
.stage-track {
  position: absolute;
  inset: 45px 6% 20px;
  border: 1px solid #3768b92b;
  border-radius: 50%;
  transform: rotate(-7deg);
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, #f39a3f16, transparent 65%);
}
.stage-track::after {
  content: '';
  position: absolute;
  inset: 23px -20px;
  border: 1px solid #25b99c24;
  border-radius: 50%;
  transform: rotate(13deg);
}
.stage-phone {
  position: absolute;
  width: 163px;
  left: calc(50% - 68px);
  top: 0;
  z-index: 2;
  filter: drop-shadow(17px 24px 24px #0a1b3a24);
}
.stage-phone img {
  width: 100%;
}
.stage-window {
  position: absolute;
  width: 256px;
  text-align: left;
  border-radius: 22px;
  box-shadow: 0 24px 45px #0a1b3a13;
}
.stage-website {
  left: 12%;
  top: 52px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0 22px 22px;
  transform: rotate(-5deg);
}
.stage-window-bar {
  display: flex;
  gap: 5px;
  padding: 12px 0;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.stage-window-bar i {
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
}
.stage-window-bar i:nth-child(2) {
  background: var(--teal);
}
.stage-window-bar i:nth-child(3) {
  background: var(--blue);
}
.stage-window-label {
  display: block;
  font-size: 11px;
  color: var(--copy);
  margin-bottom: 15px;
}
.stage-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  margin: 17px 0;
}
.stage-layout b {
  grid-row: span 3;
  background: #d7e3f5;
  height: 69px;
  border-radius: 10px;
}
.stage-layout span {
  background: #d7e3f5;
  height: 17px;
  border-radius: 5px;
}
.stage-layout span:first-of-type {
  background: var(--blue);
}
.stage-layout span:last-child {
  width: 65%;
  background: var(--orange);
}
.stage-window strong {
  display: block;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.stage-answer {
  right: 9%;
  top: 91px;
  background: var(--ink);
  color: var(--paper);
  padding: 25px;
  transform: rotate(5deg);
}
.stage-answer > svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 15px;
}
.stage-answer .stage-window-label {
  color: #b5c5df;
}
.stage-answer-line {
  display: block;
  height: 2px;
  width: 38px;
  background: var(--teal);
  margin-top: 22px;
}
.opening-bottom {
  margin-top: 33px;
}
.statement .heading {
  max-width: 1110px;
  margin-inline: auto;
}
.workflow-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: start;
  gap: 84px;
}
.workflow-intro {
  min-width: 0;
}
.workflow-intro .heading {
  font-size: clamp(42px, 4.25vw, 62px);
  margin-bottom: 27px;
}
.workflow-intro .intro {
  font-size: 17px;
  max-width: 420px;
}
.workflow-intro .button {
  margin-top: 29px;
}
.workflow-steps {
  position: relative;
  display: grid;
  gap: 22px;
  min-width: 0;
}
.workflow-rail {
  position: absolute;
  width: 2px;
  top: 45px;
  bottom: 45px;
  left: -23px;
  background: #3768b922;
}
.workflow-rail span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
}
.workflow-step {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  transition: border-color 0.4s, box-shadow 0.4s;
  position: relative;
}
.workflow-step::before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  left: -28px;
  top: 42px;
  border: 2px solid #eff4ee;
  border-radius: 50%;
  background: #a7bad7;
  box-shadow: 0 0 0 3px #eff4ee;
  transition: background 0.4s;
}
.workflow-step.is-current {
  border-color: #3768b981;
  box-shadow: 0 12px 40px #3768b90b;
}
.workflow-step.is-current::before {
  background: var(--blue);
}
.workflow-step summary {
  justify-content: flex-start;
  padding: 25px 28px;
  gap: 19px;
  border-radius: 21px;
}
.workflow-step summary:hover {
  background: #3768b906;
}
.workflow-step summary::after {
  content: none;
}
.workflow-step p {
  padding: 0;
  max-width: none;
  animation: none;
}
.workflow-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 49px;
  height: 49px;
  border-radius: 14px;
  background: #eaf0f8;
  color: var(--blue);
  transition: background 0.3s, color 0.3s;
}
.workflow-step.is-current .workflow-symbol {
  background: var(--blue);
  color: white;
}
.workflow-symbol svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workflow-title {
  min-width: 0;
}
.workflow-title strong {
  display: block;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.workflow-title small {
  display: block;
  color: var(--copy);
  font-size: 12px;
  letter-spacing: 0;
  margin-top: 8px;
}
.workflow-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-left: auto;
}
.workflow-toggle svg {
  width: 16px;
  height: 16px;
  stroke: var(--blue);
  stroke-width: 1.7;
  fill: none;
  transition: transform 0.3s;
}
.workflow-step[open] .workflow-toggle svg {
  transform: rotate(180deg);
}
.workflow-content {
  padding: 0 28px 27px;
}
.workflow-content > p {
  font-size: 15px;
  color: var(--copy);
  line-height: 1.75;
}
.workflow-handoff {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 22px;
}
.workflow-handoff span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 8px;
}
.workflow-handoff p {
  font-size: 13px;
  line-height: 1.6;
}
.workflow-step:not([open]) summary {
  padding-block: 26px;
}
.motion-reduced .workflow-rail span {
  transform: scaleY(1);
}
@media (max-width: 1100px) {
  .stage-website {
    left: 6%;
  }
  .stage-answer {
    right: 3%;
  }
  .workflow-layout {
    gap: 56px;
  }
  .workflow-step summary {
    padding: 22px;
    gap: 13px;
  }
  .workflow-title strong {
    font-size: 23px;
  }
  .workflow-content {
    padding: 0 22px 25px;
  }
}
@media (max-width: 900px) {
  .opening-stage {
    height: 310px;
    margin-top: 30px;
  }
  .stage-phone {
    width: 149px;
    left: calc(50% - 66px);
  }
  .stage-window {
    width: 205px;
  }
  .stage-website {
    left: 1%;
    padding-inline: 18px;
  }
  .stage-answer {
    right: 0;
    padding: 20px;
  }
  .stage-window strong {
    font-size: 17px;
  }
  .workflow-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .workflow-intro .intro {
    max-width: 600px;
  }
  .workflow-intro .heading {
    font-size: 52px;
  }
  .workflow-steps {
    margin-left: 22px;
  }
}
@media (max-width: 600px) {
  .button {
    min-height: 52px;
    padding: 9px 10px 9px 20px;
    gap: 13px;
    font-size: 13px;
  }
  .button svg {
    width: 30px;
    height: 30px;
    padding: 7px;
  }
  .opening .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 342px;
    margin-inline: auto;
  }
  .opening .button {
    min-width: 0;
    padding: 8px 10px 8px 13px;
    gap: 7px;
    font-size: 12px;
  }
  .opening .button svg {
    width: 26px;
    height: 26px;
    padding: 6px;
  }
  .opening-stage {
    height: 225px;
    margin-top: 28px;
    width: calc(100% - 40px);
  }
  .stage-phone {
    width: clamp(90px, 29vw, 109px);
    left: calc(50% - clamp(45px, 14.5vw, 54.5px));
  }
  .stage-track {
    inset: 22px 0 7px;
  }
  .stage-window {
    width: clamp(78px, 25vw, 100px);
    border-radius: 13px;
  }
  .stage-website {
    left: -2px;
    top: 31px;
    padding: 0 11px 12px;
  }
  .stage-window-bar {
    padding-block: 8px;
    margin-bottom: 10px;
    gap: 3px;
  }
  .stage-window-bar i {
    width: 4px;
    height: 4px;
  }
  .stage-window-label {
    display: none;
  }
  .stage-layout {
    gap: 5px;
    margin: 10px 0;
  }
  .stage-layout b {
    height: 40px;
    border-radius: 5px;
  }
  .stage-layout span {
    height: 10px;
    border-radius: 3px;
  }
  .stage-window strong {
    font-size: 11px;
  }
  .stage-answer {
    right: -3px;
    top: 84px;
    padding: 13px;
  }
  .stage-answer > svg {
    width: 23px;
    height: 23px;
    margin-bottom: 10px;
  }
  .stage-answer-line {
    margin-top: 12px;
    width: 24px;
  }
  .opening-bottom {
    margin-top: 20px;
  }
  .statement .heading {
    font-size: clamp(30px, 8.4vw, 42px);
  }
  .workflow-intro .heading {
    font-size: 42px;
  }
  .workflow-intro .intro {
    font-size: 15px;
  }
  .workflow-intro .button {
    margin-top: 24px;
  }
  .workflow-layout {
    gap: 36px;
  }
  .workflow-steps {
    margin-left: 12px;
    gap: 17px;
  }
  .workflow-rail {
    left: -14px;
  }
  .workflow-step::before {
    left: -19px;
  }
  .workflow-step summary {
    gap: 11px;
    padding: 21px 17px;
    align-items: flex-start;
  }
  .workflow-symbol {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .workflow-symbol svg {
    width: 22px;
    height: 22px;
  }
  .workflow-title strong {
    font-size: 20px;
  }
  .workflow-title small {
    font-size: 11px;
    line-height: 1.5;
    margin-top: 6px;
  }
  .workflow-toggle {
    width: 23px;
    height: 23px;
    margin-top: 4px;
  }
  .workflow-content {
    padding: 0 20px 23px;
  }
  .workflow-content > p {
    font-size: 14px;
  }
  .workflow-handoff {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 18px;
    margin-top: 20px;
  }
  .workflow-handoff p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-rail span {
    transform: scaleY(1);
  }
  .button,
  .button::before,
  .button svg,
  .text-link::after,
  .workflow-step,
  .workflow-step::before,
  .workflow-symbol,
  .workflow-toggle svg {
    transition: none;
  }
  .button:hover,
  .button:active,
  .button:hover svg {
    transform: none;
  }
  .button::before {
    display: none;
  }
}
