/* Illustration-first homepage. Keep the workflow gallery styles independent. */
.goal-examples-page {
  --tm-display: var(--tm-font);
  --ge-section-space: clamp(3rem, 6vw, 5rem);
}

.goal-examples-page .ap-main {
  overflow: visible;
}

.ge-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.goal-examples-page .ap-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: 1.5rem;
  max-width: 36rem;
  margin: 0 auto;
  grid-area: auto;
  text-align: center;
}

.goal-examples-page .ap-hero-intro {
  width: 100%;
}

.goal-examples-page .ap-hero-eyebrow {
  margin: 0;
  color: var(--tm-text-muted);
  font-family: var(--tm-font);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.goal-examples-page .ap-hero-category {
  max-width: none;
  margin: 0;
  font-family: var(--tm-font);
  font-size: clamp(1.16875rem, 1.815vw, 1.30625rem);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.goal-examples-page .ap-hero-category > span {
  display: block;
  white-space: normal;
  text-wrap: balance;
}

.goal-examples-page .ap-hero-message {
  display: block;
  width: 100%;
  aspect-ratio: auto;
}

.goal-examples-page .ap-hero-lede {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.65;
  text-wrap: balance;
}

.ge-preview {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.ge-visuals {
  position: relative;
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.ge-legend {
  position: relative;
  min-width: 0;
  padding: 0 0.5rem 1rem clamp(1.75rem, 7cqw, 3.5rem);
  color: var(--ap-beta-teal);
}

.ge-legend h2 {
  width: max-content;
  margin: 0 0 0.45rem;
  font-family: var(--tm-font);
  font-size: clamp(1.125rem, 3.8cqw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ge-legend ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: clamp(0.65rem, 2cqw, 0.9375rem);
  line-height: 1.6;
}

.ge-legend-arrows {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--ap-beta-teal);
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ge-legend-trail {
  stroke-dasharray: 0.1 6;
}

#goal-arrowhead path {
  stroke-dasharray: none;
}

.ge-visual-images {
  position: relative;
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2cqw, 1rem);
  /* Reserve real turning room for arrows, not just the image's transparent padding. */
  width: calc(100% - clamp(4.5rem, 13cqw, 6rem));
  aspect-ratio: 1475 / 895;
  min-width: 0;
  min-height: 0;
}

.ge-visuals img {
  display: block;
  flex: none;
  width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: contain;
}

.ge-visuals .ge-matter-visual {
  display: none;
}

.ge-visuals[data-preview-mode="mobile"] img {
  position: absolute;
  top: 0;
  width: auto;
  max-width: calc(50% - 0.5rem);
  aspect-ratio: 740 / 1303;
}

.ge-visuals[data-preview-mode="mobile"] #goal-task-visual {
  left: var(--ge-task-panel-left);
}

.ge-visuals[data-preview-mode="mobile"] .ge-matter-visual {
  display: block;
  left: var(--ge-matter-panel-left);
}

.goal-examples-page .ge-availability,
.goal-examples-page .ge-cta {
  grid-area: auto;
}

.goal-examples-page .ge-cta {
  margin: 0;
  gap: 0.75rem;
}

.goal-examples-page .ge-cta p {
  color: var(--tm-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

@media (min-width: 1200px) {
  .goal-examples-page .ap-hero {
    padding-block: clamp(3rem, 5vw, 5rem);
  }

  .ge-hero-layout {
    grid-template-columns: var(--ap-columns);
    column-gap: 2rem;
  }

  .goal-examples-page .ap-hero-copy {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .ge-legend h2 {
    text-box-trim: trim-start;
    text-box-edge: cap alphabetic;
  }

  .ge-preview {
    grid-column: 2;
    grid-row: 1;
  }
}

/* A shared heading rhythm, with the custom lettering reserved for the hero. */
.goal-examples-page .ap-section-heading {
  max-width: 32rem;
  margin-inline: auto;
  text-align: center;
}

.goal-examples-page .ap-section-heading h2,
.goal-examples-page .signup .section-title {
  margin: 0;
  color: var(--tm-text);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
}

.goal-examples-page .ap-section-heading h2::after,
.goal-examples-page .signup .section-title::after {
  display: none;
}

/* Use-case illustrations and explicit-play screencasts. */
.ge-examples {
  padding: var(--ge-section-space) 1.5rem;
  border-top: 1px solid var(--tm-border);
}

.ge-example {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.ge-example + .ge-example {
  border-top: 1px solid var(--tm-border);
}

.ge-example-intro {
  margin-bottom: 1.5rem;
  text-align: center;
}

.ge-example-intro h3,
.ge-more-goals h3 {
  margin: 0;
  font-family: var(--tm-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  text-wrap: balance;
}

.ge-example-intro p {
  max-width: 44rem;
  margin: 0.75rem auto 0;
  color: var(--ap-beta-teal);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: balance;
}

.ge-example-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.ge-example-picture {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ge-example--maths .ge-example-picture {
  width: 85%;
  justify-self: center;
}

.ge-example-player {
  min-width: 0;
}

.ge-example-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  background: var(--tm-light);
}

.ge-example-video:focus-visible {
  outline: 3px solid var(--tm-focus-ring);
  outline-offset: 4px;
}

.ge-example-error {
  margin: 0.75rem 0 0;
  color: var(--tm-text);
  line-height: 1.5;
}

.ge-more-goals {
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--tm-border);
}

.ge-more-goals h3,
.ge-more-goals > p {
  text-align: center;
}

.ge-more-goals > p,
.ge-goal-categories {
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.ge-more-goals > p {
  margin: 0.75rem auto 0;
  color: var(--ap-beta-teal);
}

.ge-goal-categories {
  margin: 1.5rem auto 0;
  padding-left: 1.25rem;
  list-style: disc;
  color: var(--tm-text-2);
}

.ge-goal-categories > li + li {
  margin-top: 0.65rem;
}

.ge-goal-categories strong {
  color: var(--ap-beta-teal);
  font-weight: 600;
}

.ge-more-goals .ge-goals-note {
  margin-top: 1.5rem;
}

/* Reading sections retain the hero's warm surfaces and restrained type scale. */
.goal-examples-page .ap-founder,
.goal-examples-page .ap-faq,
.goal-examples-page .signup {
  padding-block: var(--ge-section-space);
  border-top: 1px solid var(--tm-border);
}

.goal-examples-page .ap-founder,
.goal-examples-page .signup {
  color: var(--tm-text);
  background: var(--tm-light-dim);
}

.goal-examples-page .ap-faq {
  background: var(--tm-light);
}

.goal-examples-page .ap-founder-layout,
.goal-examples-page .ap-faq-layout {
  gap: clamp(2rem, 4vw, 3rem);
}

.goal-examples-page .ap-founder-note {
  max-width: 42rem;
  padding: 0;
}

.goal-examples-page .ap-founder-note blockquote {
  color: var(--tm-text-2);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.75;
}

.goal-examples-page .ap-founder-note blockquote p:first-child {
  color: var(--ap-beta-teal);
  font-weight: 500;
}

.goal-examples-page .ap-founder-note blockquote a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.goal-examples-page .ap-founder-note figcaption {
  align-items: center;
}

.goal-examples-page .ap-founder-photo {
  width: clamp(2.8rem, 4.2vw, 3.325rem);
  border-color: var(--tm-border);
  border-radius: var(--tm-radius-sm);
  box-shadow: none;
}

.goal-examples-page .ap-founder-note cite {
  font-size: 0.875rem;
  font-weight: 400;
}

.goal-examples-page .ap-faq-item summary {
  min-height: 4.25rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.goal-examples-page .ap-faq-answer {
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.75;
}

.goal-examples-page .ap-faq-answer a,
.goal-examples-page .ap-faq-toggle {
  font-weight: 500;
}

/* Light signup surface, including focus, pending and result states. */
.goal-examples-page .signup > .section-inner.signup-inner {
  width: min(100%, 40rem);
  max-width: 40rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.goal-examples-page .signup-lede {
  max-width: 34rem;
  margin: 1rem auto 2rem;
  color: var(--ap-beta-teal);
  opacity: 1;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-align: center;
  text-wrap: balance;
}

.goal-examples-page .signup-form {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 1.25rem;
}

.goal-examples-page .field-label {
  color: var(--tm-text);
  opacity: 1;
  font-size: 0.9375rem;
  font-weight: 500;
}

.goal-examples-page .field input,
.goal-examples-page .field textarea {
  color: var(--tm-text);
  background: var(--tm-light-raised);
  border-color: #918b80;
  border-radius: var(--tm-radius-sm);
  line-height: 1.6;
}

.goal-examples-page .field input::placeholder,
.goal-examples-page .field textarea::placeholder {
  color: var(--tm-text-muted);
  opacity: 1;
}

.goal-examples-page .field input:focus,
.goal-examples-page .field textarea:focus {
  border-color: var(--ap-beta-teal);
  box-shadow: none;
  outline: 2px solid var(--ap-beta-teal);
  outline-offset: 2px;
}

.goal-examples-page .signup-news-choice {
  color: var(--tm-text-2);
  font-size: 0.9375rem;
}

.goal-examples-page .signup-news-choice input {
  accent-color: var(--ap-beta-teal);
}

.goal-examples-page .signup-form .btn-primary {
  align-self: center;
  min-width: 12rem;
  background: var(--tm-dark);
  color: var(--tm-text-on-dark);
}

.goal-examples-page .signup-form .btn-primary:hover {
  background: var(--tm-dark-elev);
  color: var(--tm-text-on-dark);
}

.goal-examples-page .signup-form .btn-primary:disabled {
  background: var(--tm-dark);
  color: var(--tm-text-on-dark);
}

.goal-examples-page .signup-privacy-note {
  margin: 0;
  color: var(--tm-text-muted);
  opacity: 1;
  font-size: 0.875rem;
  line-height: 1.65;
}

.goal-examples-page .signup-privacy-note a {
  color: var(--ap-beta-teal);
}

.goal-examples-page .signup-privacy-note a:hover {
  color: var(--tm-text);
}

.goal-examples-page .form-note {
  color: var(--tm-text-2);
  opacity: 1;
}

.goal-examples-page .form-note.ok {
  color: var(--tm-done);
}

.goal-examples-page .form-note.err {
  color: var(--tm-red);
}

.goal-examples-page .site-footer {
  background: var(--tm-light);
}

.goal-examples-page .footer-inner {
  max-width: var(--ap-max);
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
}

.goal-examples-page .footer-founder {
  max-width: 65ch;
}

@media (min-width: 641px) {
  .ge-example--cooking .ge-example-media {
    isolation: isolate;
  }

  .ge-example--cooking .ge-example-picture {
    /* Enlarge the scene into the video column; only the kitchen backdrop overlaps. */
    width: 117.45%;
    max-width: none;
  }

  .ge-example--cooking .ge-example-player {
    z-index: 1;
  }

  .ge-example--running .ge-example-picture {
    width: 110%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .ge-visuals {
    column-gap: 0.5rem;
  }

  .ge-visual-images {
    /* Use the phone width, leaving 8px outside the transparent image canvas. */
    width: calc(100% + 1rem);
  }

  .ge-examples {
    padding-inline: 1rem;
  }

  .ge-example-media {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .ge-example-picture {
    justify-self: center;
    max-width: 22rem;
    max-height: 18rem;
  }

  .ge-example--cooking .ge-example-picture {
    width: 81%;
    max-width: 17.82rem;
    max-height: 14.58rem;
  }

  .ge-example--running .ge-example-picture {
    max-width: 24.2rem;
    max-height: 19.8rem;
  }

  .ge-example--maths .ge-example-picture {
    max-width: 18.7rem;
    max-height: 15.3rem;
  }

  .goal-examples-page .ap-hero-lede {
    font-size: 1.0625rem;
  }
}
