/* Homepage editorial layout and product visuals. */
html[data-site-page="home"] .homeMain > .hero {
  min-height: clamp(700px, 82vh, 880px);
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(72px, 8vw, 112px);
  background: var(--section-surface-brand) !important;
}

html[data-site-page="home"] .homeMain .heroInner {
  grid-template-columns: minmax(520px, 0.82fr) minmax(0, 1.18fr);
  gap: 0;
}

html[data-site-page="home"] .homeMain .heroCopy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

html[data-site-page="home"] .homeMain .heroCopy > h1,
html[data-site-page="home"] .homeMain .heroCopy > .lead,
html[data-site-page="home"] .homeMain .heroCopy > .heroActions {
  animation: homeHeroTextEnter 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-site-page="home"] .homeMain .heroCopy > h1 {
  animation-delay: 180ms;
}

html[data-site-page="home"] .homeMain .heroCopy > .lead {
  animation-delay: 280ms;
}

html[data-site-page="home"] .homeMain .heroCopy > .heroActions {
  animation-delay: 380ms;
}

@media (min-width: 1201px) {
  html[data-site-page="home"] .homeMain .heroProductStage > picture {
    -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 12%,
      rgba(0, 0, 0, 0.65) 28%,
      black 45%
    );
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 0, 0, 0.18) 12%,
      rgba(0, 0, 0, 0.65) 28%,
      black 45%
    );
  }
}

html[data-site-page="home"] .homeMain .heroVisual {
  --hero-visual-shift: clamp(0px, calc((100vw - var(--max)) / 2), 56px);

  position: relative;
  top: 52px;
  width: min(74vw, 1040px);
  min-width: 0;
  margin: 0;
  justify-self: end;
  pointer-events: none;
  transform: translateX(var(--hero-visual-shift));
  animation: homeHeroVisualEnter 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes homeHeroTextEnter {
  from {
    opacity: 0;
    translate: -16px 8px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes homeHeroVisualEnter {
  from {
    opacity: 0;
    translate: 22px 10px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

html[data-site-page="home"] .homeMain .heroProductStage {
  position: relative;
}

html[data-site-page="home"] .homeMain .heroProductStage > picture,
html[data-site-page="home"] .homeMain .heroVisual img {
  display: block;
  width: 100%;
}

html[data-site-page="home"] .homeMain .heroProductStage > picture {
  position: relative;
  z-index: 1;
}

html[data-site-page="home"] .homeMain .heroVisual img {
  height: auto;
}

html[data-site-page="home"] .homeMain .hero h1 {
  color: var(--primary-white);
}

html[data-site-page="home"] .homeMain .hero .lead {
  max-width: 590px;
  color: color-mix(in srgb, var(--primary-white) 90%, transparent);
}

html[data-site-page="home"]
  .homeMain
  :is(.hero, .homeFeatureAnalysis.sectionSurfaceBrand)
  .button.primary {
  border-color: var(--primary-white);
  background: var(--primary-white);
  color: var(--primary-green);
}

html[data-site-page="home"]
  .homeMain
  :is(.hero, .homeFeatureAnalysis.sectionSurfaceBrand)
  .button.primary:hover {
  border-color: var(--primary-white);
  background: var(--primary-white);
  color: var(--primary-green);
}

html[data-site-page="home"]
  .homeMain
  :is(.hero, .homeFeatureAnalysis.sectionSurfaceBrand)
  .button.primary:focus-visible {
  outline-color: var(--aqua-500);
}

.homeFeatureVisual {
  min-width: 0;
}

.homeFeatureVisual > picture,
.homeFeatureVisual > img {
  display: block;
  width: 100%;
}

.homeFeatureVisual img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(3, 11, 6, 0.1);
}

.homePlanningImageButton {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  box-shadow: 0 3px 12px rgba(3, 11, 6, 0.18);
}

.homePlanningImageButton img {
  display: block;
  box-shadow: none;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.homePlanningImageButton:hover img,
.homePlanningImageButton:focus-visible img {
  transform: scale(1.008);
}

.homePlanningImageButton:focus-visible {
  outline: 3px solid var(--aqua-500);
  outline-offset: 5px;
}

.visualPlaceholder {
  display: grid;
  min-height: clamp(300px, 36vw, 510px);
  place-items: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px dashed var(--placeholder-border);
  border-radius: 8px;
  background: var(--placeholder-surface);
  color: var(--green-400);
}

.homeFeatureSection {
  overflow: hidden;
}

.homeFeatureLayout {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(460px, 1.22fr);
  align-items: center;
  gap: clamp(54px, 8vw, 120px);
}

.homeFeatureCopy {
  max-width: 570px;
}

.homeFeatureCopy .sectionTitle {
  max-width: 15ch;
}

.homeFeatureCopy .sectionText {
  max-width: 54ch;
  margin: 24px 0 0;
  color: var(--green-400);
}

.homeFeatureLink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: var(--primary-green);
}

.homeFeatureLink:hover {
  color: var(--blue-600);
}

.homeFeatureLink:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--blue-500);
  outline-offset: 5px;
}

.homeFeatureVisual {
  width: 100%;
  margin: 0;
}

.homeFeatureVisual.visualPlaceholder {
  min-height: clamp(320px, 35vw, 500px);
}

.homeFeatureReverse .homeFeatureCopy {
  order: 2;
}

.homeFeatureReverse .homeFeatureVisual {
  order: 1;
}

.homeFeatureSection.sectionSurfaceBrand .sectionTitle,
.homeFeatureSection.sectionSurfaceBrand .homeFeatureLink {
  color: var(--primary-white) !important;
}

.homeFeatureSection.sectionSurfaceBrand .homeFeatureCopy .sectionText {
  color: color-mix(in srgb, var(--primary-white) 82%, transparent);
}

.homeFeatureSection.sectionSurfaceBrand .homeFeatureLink:hover {
  color: var(--aqua-500) !important;
}

.homeFeatureSection.sectionSurfaceBrand .homeFeatureLink:focus-visible {
  outline-color: var(--aqua-500);
}

.homeFeatureSection.sectionSurfaceBrand .visualPlaceholder {
  border-color: var(--green-300);
  background: var(--green-600);
  color: color-mix(in srgb, var(--primary-white) 82%, transparent);
}

.homeAnalysisLayout {
  display: grid;
  justify-items: center;
  gap: clamp(28px, 4vw, 44px);
}

html[data-site-page="home"] .homeMain > .homeFeatureAnalysis.sectionStage {
  padding-block: clamp(64px, 7vw, 96px) !important;
}

.homeAnalysisLayout > .sectionTitle {
  max-width: 22ch;
  margin: 0;
}

.homeAnalysisFlowPanel {
  width: min(100%, 1160px);
  min-width: 0;
  padding: 0;
  background: transparent;
}

.homeAnalysisSteps {
  --analysis-icon-size: 64px;
  --analysis-step-gap: clamp(28px, 3.5vw, 56px);

  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--analysis-step-gap);
  min-width: 0;
  margin: 0;
  padding: 0;
}

.homeAnalysisStep {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-rows: var(--analysis-icon-size) auto 1fr;
  justify-items: center;
  align-content: start;
  row-gap: 10px;
  color: var(--primary-green);
}

.homeAnalysisStep:not(:last-child)::after {
  position: absolute;
  top: calc(var(--analysis-icon-size) / 2);
  left: calc(50% + var(--analysis-icon-size) / 2);
  width: calc(100% + var(--analysis-step-gap) - var(--analysis-icon-size));
  height: 12px;
  background: currentColor;
  clip-path: polygon(
    0 calc(50% - 1.5px),
    calc(100% - 10px) calc(50% - 1.5px),
    calc(100% - 10px) 0,
    100% 50%,
    calc(100% - 10px) 100%,
    calc(100% - 10px) calc(50% + 1.5px),
    0 calc(50% + 1.5px)
  );
  color: var(--primary-green);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.homeAnalysisIcon {
  position: relative;
  z-index: 1;
  display: grid;
  width: var(--analysis-icon-size);
  height: var(--analysis-icon-size);
  place-items: center;
  border: 1px solid var(--green-100);
  border-radius: 50%;
  background: var(--primary-white);
  color: var(--primary-green);
  box-shadow: 0 4px 12px rgba(3, 11, 6, 0.07);
}

.homeAnalysisIcon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.homeAnalysisStep h3 {
  margin: 0;
  color: var(--primary-green);
}

.homeAnalysisStep p {
  max-width: 22ch;
  margin: 0;
  color: var(--green-400);
}

.homeFeatureAnalysis.sectionSurfaceBrand .homeAnalysisStep,
.homeFeatureAnalysis.sectionSurfaceBrand .homeAnalysisStep h3 {
  color: var(--primary-white);
}

.homeFeatureAnalysis.sectionSurfaceBrand .homeAnalysisStep p {
  color: color-mix(in srgb, var(--primary-white) 82%, transparent);
}

.homeFeatureAnalysis.sectionSurfaceBrand .homeAnalysisStep:not(:last-child)::after {
  color: var(--primary-white);
}

.homeAnalysisCta {
  gap: 9px;
}

.homeAnalysisCta:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 4px;
}

.homeFeatureAnalysis.sectionSurfaceBrand .homeAnalysisCta:focus-visible {
  outline-color: var(--aqua-500);
}

@media (max-width: 1200px) {
  html[data-site-page="home"] .homeMain .heroInner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(12px, 2vw, 28px);
    padding-right: 0;
  }

  html[data-site-page="home"] .homeMain .heroCopy {
    max-width: 700px;
    transform: none;
  }

  html[data-site-page="home"] .homeMain .heroVisual {
    --hero-visual-shift: 0px;

    top: 0;
    width: min(100%, 960px);
    margin-top: 64px;
    justify-self: end;
    transform: none;
  }
}

@media (max-width: 767px), (max-width: 932px) and (orientation: landscape) {
  html[data-site-page="home"] .homeMain .heroInner {
    row-gap: 18px;
  }

  html[data-site-page="home"] .homeMain .heroCopy {
    display: contents;
  }

  html[data-site-page="home"] .homeMain .heroVisual {
    order: 1;
    margin-top: 0;
  }

  html[data-site-page="home"] .homeMain .heroCopy > .heroActions {
    order: 2;
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  .homeAnalysisFlowPanel {
    width: min(100%, 680px);
    overflow: visible;
    padding-bottom: 0;
  }

  .homeAnalysisSteps {
    --analysis-icon-size: 56px;
    --analysis-step-gap: 0px;

    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .homeAnalysisStep {
    min-height: 76px;
    grid-template-columns: var(--analysis-icon-size) minmax(0, 1fr);
    grid-template-rows: auto auto;
    justify-items: start;
    align-items: center;
    column-gap: 16px;
    row-gap: 4px;
    padding: 10px 0;
  }

  .homeAnalysisStep:not(:last-child)::after {
    top: calc(10px + var(--analysis-icon-size));
    left: calc(var(--analysis-icon-size) / 2 - 1px);
    width: 2px;
    height: calc(100% - var(--analysis-icon-size));
    background: var(--primary-green);
    clip-path: none;
    transform: none;
  }

  .homeAnalysisIcon {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .homeAnalysisStep h3,
  .homeAnalysisStep p {
    grid-column: 2;
  }

  .homeAnalysisStep h3 {
    align-self: end;
  }

  .homeAnalysisStep p {
    max-width: 46ch;
    align-self: start;
  }
}

.homeCycleSection {
  display: grid;
  min-height: clamp(720px, 55vw, 820px);
  overflow: hidden;
  align-items: center;
}

.homeCycleInner {
  width: 100%;
}

.homeCycleIntro {
  display: grid;
  justify-items: center;
}

.homeCycleIntro > .sectionTitle {
  max-width: 25ch;
  color: var(--primary-white) !important;
}

.homeCycleLead {
  max-width: 38ch;
  margin: 24px 0 0;
  color: color-mix(in srgb, var(--primary-white) 82%, transparent);
}

.homeCycleJourney {
  position: relative;
  margin-top: clamp(58px, 6vw, 84px);
}

.homeCycleConnector {
  position: absolute;
  z-index: 0;
  top: -28px;
  left: 0;
  width: 100%;
  height: 150px;
  overflow: visible;
  color: var(--primary-white);
  pointer-events: none;
}

.homeCycleConnectorLine {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.homeCycleArrowhead {
  fill: currentColor;
}

.homeCycleSteps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(52px, 7.5vw, 108px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.homeCycleStep {
  min-width: 0;
}

.homeCycleIcon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary-white) 72%, transparent);
  border-radius: 50%;
  background: var(--primary-white);
  color: var(--primary-green);
  box-shadow: 0 8px 28px rgba(3, 11, 6, 0.16);
}

.homeCycleNumber {
  display: block;
  margin-top: 24px;
  color: var(--primary-white);
}

.homeCycleStep h3 {
  margin: 10px 0 0;
  color: var(--primary-white);
}

.homeCycleStep p {
  max-width: 31ch;
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--primary-white) 82%, transparent);
}

html[data-site-page="home"] .homeMain > .homeFinalCta {
  margin-top: 0 !important;
}

@media (max-width: 980px) {
  .homeFeatureLayout {
    grid-template-columns: minmax(0, 1fr);
  }

  .homeFeatureLayout {
    gap: 44px;
  }

  .homeFeatureVisual {
    width: min(100%, 780px);
  }

  .homeFeatureReverse .homeFeatureCopy,
  .homeFeatureReverse .homeFeatureVisual {
    order: initial;
  }
}

@media (max-width: 840px) {
  .homeCycleSection {
    min-height: 0;
  }

  .homeCycleIntro > .sectionTitle {
    max-width: 19ch;
  }

  .homeCycleJourney {
    width: min(100%, 680px);
    margin: 48px auto 0;
  }

  .homeCycleConnector {
    display: none;
  }

  .homeCycleSteps {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .homeCycleStep {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 20px;
  }

  .homeCycleStep:not(:last-child)::after {
    position: absolute;
    z-index: -1;
    top: 32px;
    left: 31px;
    width: 2px;
    height: calc(100% + 36px);
    background: var(--primary-white);
    content: "";
  }

  .homeCycleIcon {
    grid-row: 1 / span 3;
    width: 64px;
    height: 64px;
  }

  .homeCycleNumber,
  .homeCycleStep h3,
  .homeCycleStep p {
    grid-column: 2;
  }

  .homeCycleNumber {
    grid-row: 1;
    margin-top: 0;
  }

  .homeCycleStep h3 {
    grid-row: 2;
    margin-top: 8px;
  }

  .homeCycleStep p {
    grid-row: 3;
    max-width: 42ch;
    margin-top: 8px;
  }
}

@media (max-width: 720px) {
  html[data-site-page="home"] .homeMain > .hero {
    min-height: auto;
    padding: 0 20px 64px;
  }

  html[data-site-page="home"] .homeMain .heroInner {
    gap: 12px;
  }

  html[data-site-page="home"] .homeMain .heroVisual {
    width: min(100%, max(calc(100% - 100px), 350px));
    max-width: none;
    margin-top: 40px;
    margin-right: 0;
    justify-self: center;
  }

  html[data-site-page="home"] .homeMain .heroProductStage > picture {
    width: 100%;
    max-width: none;
  }

  .homeFeatureLayout {
    gap: 34px;
  }

  .homeFeatureVisual.visualPlaceholder {
    min-height: 250px;
  }

  .homeFeatureCopy .sectionTitle {
    max-width: none;
  }

  .homeAnalysisLayout {
    gap: 26px;
  }

  .homeAnalysisFlowPanel {
    width: 100%;
  }

  .homeAnalysisIcon svg {
    width: 26px;
    height: 26px;
  }

  .homeCycleLead {
    margin-top: 20px;
  }

  .homeCycleJourney {
    margin-top: 42px;
  }
}

@media (max-width: 440px) {
  .homeCycleStep {
    grid-template-columns: 60px minmax(0, 1fr);
    column-gap: 16px;
  }

  .homeCycleStep:not(:last-child)::after {
    top: 28px;
    left: 27px;
  }

  .homeCycleIcon {
    width: 56px;
    height: 56px;
  }
}

@media (orientation: landscape) and (max-height: 560px) and (min-width: 900px) and (max-width: 1200px) {
  html[data-site-page="home"] .homeMain > .hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 72px;
  }

  html[data-site-page="home"] .homeMain .heroInner {
    display: grid;
    grid-template-columns: minmax(440px, 0.9fr) minmax(0, 1.1fr);
    gap: 20px;
    padding-right: 0;
  }

  html[data-site-page="home"] .homeMain .heroCopy {
    max-width: 560px;
    margin-top: 0;
    padding-bottom: 0;
  }

  html[data-site-page="home"] .homeMain .heroVisual {
    width: min(58vw, 680px);
    margin-top: 36px;
    justify-self: end;
    transform: none;
  }
}

@media (orientation: landscape) and (max-height: 560px) and (max-width: 899px) {
  html[data-site-page="home"] .homeMain > .hero {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 72px;
  }

  html[data-site-page="home"] .homeMain .heroInner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-right: 0;
  }

  html[data-site-page="home"] .homeMain .heroCopy {
    max-width: none;
    margin-top: 0;
    padding-bottom: 0;
  }

  html[data-site-page="home"] .homeMain .heroVisual {
    width: min(92vw, 620px);
    margin-top: 36px;
    justify-self: center;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-site-page="home"] .homeMain .heroCopy > h1,
  html[data-site-page="home"] .homeMain .heroCopy > .lead,
  html[data-site-page="home"] .homeMain .heroCopy > .heroActions,
  html[data-site-page="home"] .homeMain .heroVisual {
    opacity: 1 !important;
    translate: none !important;
    animation: none !important;
  }

  html[data-site-page="home"] .homeMain .heroCopy,
  .homeFeatureVisual img,
  .visualPlaceholder,
  .homeFeatureLink {
    transform: none !important;
    transition: none !important;
  }
}
