.workflow-hero {
  /* Size the desktop composition against the space below the fixed navigation. */
  --hero-height: calc(100svh - var(--top-menu-height));
  --hero-unit: min(1vw, calc(var(--hero-height) / 56), 1.06rem);
  --hero-footer: 2rem;
  --hero-green: #80ef89;
  --hero-violet: #d1acff;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 1fr var(--hero-footer);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: clip;
  padding-top: var(--top-menu-height);
  background:
    radial-gradient(ellipse at 78% 55%, #39156b 0%, #1c0d41 24%, transparent 52%),
    radial-gradient(ellipse at 48% 112%, #191039, transparent 57%),
    linear-gradient(110deg, #07071c 18%, #0a0821 56%, #100a2c);
  color: #faf9ff;
}

/* With measurement available, even unusually short windows get the full composition. */
.workflow-hero--fitted {
  height: 100svh;
  grid-template-rows: minmax(0, 1fr) var(--hero-footer);
}

.workflow-hero:is(#getting-started, #archive-workflow-hero) .process-landing-sketch-hero-scroll {
  position: static;
  justify-self: center;
  height: var(--hero-footer);
  transform: none;
}

.workflow-hero__layout {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.035fr) minmax(0, 1fr);
  grid-template-areas: "intro art" "benefits art" "actions art";
  column-gap: 3.6%;
  width: 100%;
  transform: scale(var(--hero-fit, 1));
  max-width: 106rem;
  margin-inline: auto;
  padding: max(.5rem, calc(2 * var(--hero-unit))) min(3.4%, 3.6rem) .4rem min(4.1%, 4.35rem);
}

.workflow-hero__intro {
  grid-area: intro;
  width: max-content;
  max-width: 116%;
  padding-left: min(1.4vw, 1.5rem);
}

.workflow-hero__intro h1,
.workflow-hero__card h2 {
  --landing-font-family: "Funnel Sans", sans-serif;
  font-variation-settings: normal;
  color: #faf9ff;
  font-weight: 800;
  margin: 0;
}

.workflow-hero__intro h1 {
  --landing-letter-spacing: -.024em;
  max-width: none;
  font-size: clamp(2.25rem, calc(5.05 * var(--hero-unit)), 5.35rem);
  line-height: 1.01;
}

.workflow-hero__intro h1 span { color: var(--hero-green); }
.workflow-hero__intro h1 em { color: var(--hero-violet); font-style: normal; }

.workflow-hero__intro p {
  margin: .24em 0 0;
  color: #c9c5d7;
  font-size: clamp(1.1rem, calc(2.19 * var(--hero-unit)), 2.32rem);
  line-height: 1.24;
}

.workflow-hero__benefits {
  grid-area: benefits;
  display: grid;
  gap: max(.4rem, calc(1.08 * var(--hero-unit)));
  margin-top: max(.65rem, calc(1.6 * var(--hero-unit)));
}

.workflow-hero__card {
  display: grid;
  grid-template-columns: max(3.25rem, calc(8.65 * var(--hero-unit))) minmax(0, 1fr);
  min-height: calc(8.22 * var(--hero-unit));
  box-sizing: border-box;
  align-items: center;
  gap: clamp(.85rem, 1.3vw, 1.4rem);
  padding: calc(.95 * var(--hero-unit)) 1rem calc(1.2 * var(--hero-unit)) 0;
  border: 1px solid #49357b;
  border-radius: clamp(.85rem, 1.15vw, 1.25rem);
  background: linear-gradient(105deg, #0e1023eb 10%, #15142fe8 72%, #27194bdd);
  box-shadow: inset 0 0 16px #8061e115, 0 5px 16px #04041430;
}

.workflow-hero__icon {
  display: grid;
  place-items: center;
  position: relative;
  height: 90%;
  min-height: calc(5.4 * var(--hero-unit));
  border-right: 1px solid #79768c;
  color: var(--hero-green);
}

.workflow-hero__icon svg {
  box-sizing: border-box;
  width: max(2.4rem, calc(5.5 * var(--hero-unit)));
  height: max(2.25rem, calc(5 * var(--hero-unit)));
  padding: 10% 9%;
  border-radius: 19%;
  background: linear-gradient(135deg, #143c34, #10322e);
  filter: drop-shadow(0 4px 9px #07132255);
}

.workflow-hero__card h2 {
  --landing-letter-spacing: -.035em;
  margin-bottom: .18em;
  font-size: max(1.2rem, calc(2.12 * var(--hero-unit)));
  line-height: 1.05;
}

.workflow-hero__card ul {
  display: grid;
  gap: .34em;
  list-style: none;
  padding: 0;
  margin: 0;
  --landing-letter-spacing: -.03em;
  font-size: max(1rem, calc(1.075 * var(--hero-unit)));
  font-weight: 500;
  line-height: 1.32;
}

.workflow-hero__card li { position: relative; padding-left: 1.98em; }

.workflow-hero__card li::before {
  position: absolute;
  top: .03em;
  left: .08em;
  width: 1.24em;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: var(--hero-green);
}

.workflow-hero__card li::after {
  position: absolute;
  top: .31em;
  left: .52em;
  width: .23em;
  height: .45em;
  box-sizing: content-box;
  border: solid #0e2e1b;
  border-width: 0 .13em .13em 0;
  content: "";
  transform: rotate(42deg);
}

.workflow-hero__figure {
  grid-area: art;
  align-self: center;
  position: relative;
  min-width: 0;
  margin: 0;
  justify-self: center;
  width: min(100%, calc(var(--hero-height) * 1.1));
}

.workflow-hero__scene {
  position: relative;
  isolation: isolate;
  aspect-ratio: 732 / 500;
  background: radial-gradient(ellipse at 45% 50%, #a13cff66, transparent 67%);
}

.workflow-hero__scene::before,
.workflow-hero__scene::after {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.workflow-hero__scene::before {
  inset: 77% -16% -15% -22%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 62% 48%, #aa58ffbb, transparent 40%),
    radial-gradient(ellipse at 36% 48%, #625da18a, transparent 49%),
    radial-gradient(ellipse, #5715b7b5, transparent 68%);
  filter: blur(8px);
}

.workflow-hero__scene::after {
  inset: 87% 8% -5% -6%;
  background:
    radial-gradient(ellipse at 50% 42%, #120622dc 2%, transparent 20%),
    radial-gradient(ellipse at 20% 43%, #100c25c9, transparent 22%),
    radial-gradient(ellipse 36% 42% at 62% 45%, #9f51fdc2, transparent);
  filter: blur(3px);
}

/* The source includes a second diagram on the right. Frame just the mascot and spreadsheet. */
.workflow-hero__scene img {
  position: absolute;
  top: 1%;
  left: -14.5%;
  width: 116%;
  max-width: none;
  height: auto;
  clip-path: polygon(0 0, 77% 0, 76% 39%, 80% 49%, 80% 59%, 78% 63%, 75% 67%, 75% 100%, 0 100%);
}

.workflow-hero__diagram { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.workflow-hero__connectors { filter: drop-shadow(0 0 4px #34ff9b) drop-shadow(0 0 8px #12c97a); }
.workflow-hero__tiles { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px #f628ff) drop-shadow(0 0 10px #a52bff); }
.workflow-hero__glyphs { filter: drop-shadow(0 3px 2px #230053); }

.workflow-hero:is(#getting-started, #archive-workflow-hero) .workflow-hero__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem min(2vw, 2.125rem);
  align-items: center;
  max-width: none;
  margin: max(.75rem, calc(2.3 * var(--hero-unit))) 0 0 .3vw;
}

.workflow-hero__signup,
.workflow-hero__plans { display: inline-flex; align-items: center; min-height: 44px; }

.workflow-hero__signup {
  --landing-letter-spacing: -.025em;
  padding: .7em 1.4em;
  border-radius: .46em;
  background: linear-gradient(115deg, #197444, #278051);
  color: white;
  font-size: max(1rem, calc(1.69 * var(--hero-unit)));
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}

.workflow-hero__signup:hover { background: #298b59; color: white; }

.workflow-hero__plans {
  color: var(--hero-green);
  font-size: max(1rem, calc(1.36 * var(--hero-unit)));
  font-weight: 550;
  text-decoration: underline;
  text-underline-offset: .38em;
}

.workflow-hero__plans:hover { color: #b0ffb6; }
.workflow-hero:is(#getting-started, #archive-workflow-hero) .workflow-hero__actions a:focus-visible { outline: 3px solid var(--hero-focus, #d7bdff); outline-offset: 5px; }

@media (min-width: 66.01rem) and (max-height: 48rem) {
  .workflow-hero__layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .workflow-hero__card { padding-block: .4rem; }
  .workflow-hero:is(#getting-started, #archive-workflow-hero) .workflow-hero__actions { margin-top: .8rem; }
}

/* Tablets pair the introduction and illustration above full-width cards. */
@media (max-width: 66rem) {
  .workflow-hero__layout {
    max-width: 55rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    grid-template-areas: "intro art" "benefits benefits" "actions actions";
    align-items: center;
    padding-inline: 4%;
  }
  .workflow-hero__intro { width: auto; max-width: none; padding-left: 0; }
  .workflow-hero__intro h1 { font-size: clamp(2rem, 4.45vw, 2.9rem); }
  .workflow-hero__figure { width: min(100%, 36svh); }
  .workflow-hero__card { padding-block: clamp(.4rem, 1.1svh, 1rem); }
  .workflow-hero__actions { justify-content: center; }
}

/* Give the illustration the room left after the copy and actions on tall phones. */
@media (max-width: 40rem) {
  .workflow-hero__layout {
    max-width: 31rem;
    min-height: calc(var(--hero-height) - var(--hero-footer));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(5rem, 1fr) auto auto;
    grid-template-areas: "intro" "art" "benefits" "actions";
    gap: clamp(.4rem, 1svh, .85rem);
    padding: clamp(.5rem, 1.8svh, 1.25rem) .85rem .25rem;
  }
  .workflow-hero__intro h1 { font-size: clamp(1.7rem, 8vw, 2.5rem); }
  .workflow-hero__intro p { font-size: 1rem; }
  .workflow-hero__figure {
    /* An independent grid track lets the picture shrink before the text has to. */
    height: 100%;
    width: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    container-type: size;
  }
  .workflow-hero__scene { width: min(88%, 143cqh, 21rem); }
  .workflow-hero__benefits { margin: 0; gap: clamp(.3rem, .85svh, .65rem); }
  .workflow-hero:is(#getting-started, #archive-workflow-hero) .workflow-hero__actions { margin: 0; gap: .25rem .8rem; flex-wrap: nowrap; }
  .workflow-hero__signup, .workflow-hero__plans { justify-content: center; text-align: center; font-size: .91rem; }
  .workflow-hero__signup { padding: .45em .75em; }
}

/* Inline card headings leave the full card width for the two checklist items. */
@media (max-width: 40rem), (orientation: landscape) and (max-height: 34rem) {
  .workflow-hero__card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: .22em .45em;
    min-height: 0;
    padding: clamp(.3rem, .85svh, .7rem) .65rem;
  }
  .workflow-hero__card > div { display: contents; }
  .workflow-hero__card h2 { margin: 0; font-size: clamp(1rem, 2.6svh, 1.22rem); }
  .workflow-hero__card ul { grid-column: 1 / -1; font-size: clamp(.82rem, 1.93svh, 1rem); line-height: 1.22; gap: .2em; }
  .workflow-hero__card li { padding-left: 1.65em; }
  .workflow-hero__icon { width: 1.35rem; height: 1.35rem; min-height: 0; border: 0; }
  .workflow-hero__icon svg { width: 100%; height: 100%; padding: 2px; }
}

/* On short phones, the mascot shares the headline row. */
@media (max-width: 40rem) and (max-height: 44rem) {
  .workflow-hero__layout {
    min-height: 0;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas: "intro art" "benefits benefits" "actions actions";
    column-gap: .4rem;
    padding-inline: .6rem;
  }
  .workflow-hero__intro h1 { font-size: clamp(1.13rem, 5.55vw, 1.85rem); }
  .workflow-hero__intro p { font-size: .88rem; }
  .workflow-hero__figure { display: block; width: 100%; height: auto; container-type: normal; }
  .workflow-hero__scene { width: 100%; }
}

/* A short landscape window has room for three cards across. */
@media (min-width: 28rem) and (orientation: landscape) and (max-height: 34rem) {
  .workflow-hero { --hero-footer: clamp(1rem, 4svh, 2rem); }
  .workflow-hero__layout {
    min-height: 0;
    max-width: 90rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .95fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    grid-template-areas: "intro art actions" "benefits benefits benefits";
    align-items: center;
    gap: clamp(.4rem, 2svh, .9rem) 2%;
    padding: clamp(.3rem, 2svh, 1rem) 3% .25rem;
  }
  .workflow-hero__intro { max-width: none; width: auto; padding: 0; }
  .workflow-hero__intro h1 { font-size: clamp(1.25rem, min(3.6vw, 8svh), 2.8rem); }
  .workflow-hero__intro p { margin-top: .25em; font-size: clamp(.82rem, 2.8svh, 1rem); }
  .workflow-hero__figure { display: block; height: auto; width: min(100%, 32svh); container-type: normal; }
  .workflow-hero__scene { width: 100%; }
  .workflow-hero__benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.35rem, 1vw, 1rem); margin: 0; }
  .workflow-hero__card { align-content: start; }
  .workflow-hero:is(#getting-started, #archive-workflow-hero) .workflow-hero__actions { flex-direction: column; gap: 0; justify-content: center; margin: 0; }
  .workflow-hero__signup, .workflow-hero__plans { justify-content: center; text-align: center; font-size: clamp(.83rem, 2.8svh, 1rem); }
  .workflow-hero__signup { padding: .45em .8em; }
  .workflow-hero__signup, .workflow-hero__plans { min-height: clamp(1.65rem, 8svh, 2.75rem); }
}

@media (max-width: 40rem) and (max-height: 35rem) {
  .workflow-hero { --hero-footer: 1.1rem; }
  .workflow-hero__card { padding: .18rem .45rem; gap: .1rem .35rem; }
  .workflow-hero__icon { width: 1.05rem; height: 1.05rem; }
  .workflow-hero__card ul { gap: .12em; line-height: 1.15; }
  .workflow-hero__card li { padding-left: 1.45em; }
  .workflow-hero__signup, .workflow-hero__plans { min-height: 2rem; font-size: .83rem; }
}
