/* Active-plan landing variant: /active-plan/ */

.active-plan-page {
  --ap-max: 1120px;
  --ap-copy: 720px;
  --ap-beta-teal: #2e6263;
  --ap-columns: minmax(0, 1fr) minmax(0, 2fr);
  --ap-column-gap: clamp(2rem, 5vw, 4rem);
}

.active-plan-page .ap-main {
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 68rem 34rem at 48% -8rem,
      rgba(184, 134, 11, 0.12) 0%,
      rgba(184, 134, 11, 0.055) 42%,
      rgba(184, 134, 11, 0) 76%
    ),
    var(--tm-light);
}

.active-plan-page .site-header {
  border-bottom: 1px solid rgba(229, 224, 212, 0.7);
}

.active-plan-page .brand-icon--full {
  display: block;
}

.ap-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.ap-header-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.35rem);
}

.ap-header-nav a {
  color: var(--tm-text-2);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: rgba(45, 42, 38, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  white-space: nowrap;
}

.ap-header-nav a:hover,
.ap-header-nav a:focus-visible {
  color: var(--tm-text);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

.ap-header-nav a:focus-visible {
  border-radius: var(--tm-radius-sm);
  outline: 3px solid var(--tm-focus-ring);
  outline-offset: 3px;
}

.active-plan-page .site-header-cta {
  margin-left: 0;
}

.ap-header-brand {
  flex-direction: row;
  gap: 0.65rem;
}

.ap-header-brand-name {
  color: var(--tm-text);
  font-family: var(--tm-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.ap-header-brand-chevron {
  position: relative;
  width: 0.65rem;
  height: 0.65rem;
  margin-left: 0.05rem;
  opacity: 0;
  transform: translateY(0.2rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.ap-header-brand-chevron::before {
  content: "";
  position: absolute;
  inset: 0.12rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
}

.ap-header-brand--scrolled .ap-header-brand-chevron {
  opacity: 1;
  transform: translateY(0.08rem);
}

.ap-wrap {
  width: min(100%, var(--ap-max));
  margin-inline: auto;
}

.ap-section-heading {
  max-width: var(--ap-copy);
}

.ap-section-heading h2 {
  margin: 0;
  color: var(--tm-text);
  font-family: var(--tm-display);
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.99;
}

.ap-section-heading h2::after {
  content: "";
  display: block;
  width: 3.4rem;
  height: 4px;
  margin-top: 1rem;
  border-radius: 2px;
  background: var(--tm-gold);
}

.ap-section-heading > p:last-child {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: var(--tm-text-2);
  font-size: clamp(1.03rem, 1.7vw, 1.16rem);
  line-height: 1.72;
}

/* Hero */
.ap-hero {
  padding: clamp(2.5rem, 4vw, 4rem) 1.5rem clamp(4.5rem, 7vw, 6.5rem);
}

.ap-hero-layout {
  --ap-gallery-gap: 1rem;
  --ap-copy-gap: clamp(2rem, 3.5vw, 3rem);

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--ap-gallery-gap);
}

.ap-hero-copy {
  --ap-hero-title-size: clamp(3.25rem, 6vw, 5rem);
  --ap-hero-subtitle-size: clamp(1.65rem, 2.2vw, 2.125rem);
  --ap-hero-subtitle-leading: 1.15;
  --ap-hero-brand-gap: clamp(1rem, 1.8vw, 1.5rem);

  margin-bottom: calc(var(--ap-copy-gap) - var(--ap-gallery-gap));
  width: 100%;
  min-width: 0;
}

.ap-hero-eyebrow,
.ap-hero-category {
  color: var(--tm-text);
  font-family: var(--tm-display);
  font-size: var(--ap-hero-subtitle-size);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: var(--ap-hero-subtitle-leading);
}

.ap-hero-eyebrow {
  margin: 0 0 var(--ap-hero-brand-gap);
}

.ap-hero-tagline-brand {
  display: inline-block;
  padding-right: 0.45em;
  color: var(--tm-dark);
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.ap-hero-tagline-matter {
  position: relative;
  display: inline-block;
}

.ap-hero-matter-field {
  position: absolute;
  top: -0.28em;
  left: -0.35em;
  width: calc(100% + 1em);
  height: 1.6em;
  overflow: visible;
  pointer-events: none;
}

.ap-hero-matter-field path {
  fill: none;
  stroke: var(--tm-text);
  stroke-width: 1;
  stroke-opacity: 0.25;
  vector-effect: non-scaling-stroke;
}

.ap-hero-matter-field circle {
  fill: var(--tm-gold);
}

.ap-hero-matter-field .ap-hero-matter-node {
  fill: var(--tm-dark);
}

.ap-hero-copy h1 {
  display: flex;
  flex-direction: column;
  max-width: none;
  margin: 0;
  color: var(--tm-text);
  font-family: var(--tm-display);
  font-size: var(--ap-hero-title-size);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.ap-hero-category {
  display: block;
  max-width: 20ch;
  margin-top: var(--ap-hero-brand-gap);
}

.ap-hero-category > span {
  white-space: nowrap;
}

.ap-hero-lede {
  max-width: 38ch;
  margin: 1.6rem 0 0;
  color: var(--ap-beta-teal);
  font-size: clamp(1.08rem, 1.8vw, 1.22rem);
  line-height: 1.68;
}

/* Hero screenshot: switchable preview plus the shared /full/ lightbox. */
.ap-hero-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 54rem);
  min-width: 0;
  justify-self: center;
  gap: var(--ap-gallery-gap);
}

.ap-preview-stage[hidden] {
  display: none;
}

.ap-preview-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  /* Delivery screenshots share one normalized ratio per device mode. */
  aspect-ratio: 1068 / 886;
  width: 100%;
  min-width: 0;
  min-height: 0;
  container-type: inline-size;
}

.ap-hero-gallery[data-active-shot-mode="mobile"] .ap-hero-shot {
  width: auto;
  aspect-ratio: 357 / 757;
}

.ap-shot-controls {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  width: 100%;
}

.ap-shot-availability {
  width: min(100%, 54rem);
  justify-self: center;
  margin: 0;
  color: var(--tm-text-2);
  font-size: 0.96rem;
  line-height: 1.5;
  text-align: center;
}

.ap-hero-cta {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin-top: clamp(1.25rem, 2.5vw, 2.5rem);
  text-align: center;
}

.ap-hero-cta p {
  margin: 0;
  color: var(--ap-beta-teal);
  font-size: 1rem;
  font-weight: 700;
}

.ap-shot-mode-button {
  appearance: none;
  padding: 0.1rem 0.12rem;
  border: 0;
  background: transparent;
  color: var(--tm-teal);
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  cursor: pointer;
}

.ap-shot-mode-button:hover,
.ap-shot-mode-button:focus-visible,
.ap-shot-mode-button[aria-pressed="true"] {
  color: var(--tm-text);
  text-decoration-thickness: 2px;
}

.ap-shot-mode-button:focus-visible {
  outline: 3px solid rgba(184, 134, 11, 0.32);
  outline-offset: 3px;
}

.ap-work-navigation {
  display: contents;
}

.ap-work-navigation[hidden] {
  display: none;
}

.ap-work-menu-toggle,
.ap-mobile-work-subtitle {
  display: none;
}

.ap-shot-switcher {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.ap-workflow-row {
  --ap-play-size: clamp(0.875rem, 1.25vw, 1.125rem);
  --ap-connector-min: calc(var(--ap-play-size) * 2 + 1.5rem);

  display: grid;
  /* Every arrow owns the whole gap, including the final continuation link. */
  grid-template-columns: repeat(4, max-content minmax(var(--ap-connector-min), 1fr)) max-content;
  align-items: start;
  width: 100%;
}

.ap-preview-content {
  display: grid;
  gap: var(--ap-gallery-gap);
  min-width: 0;
  align-self: start;
}

.ap-workflow {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Keep the slot so switching workspace never moves the screenshot. */
.ap-workflow[inert],
.ap-workflow-more[inert] {
  visibility: hidden;
}

.ap-workflow-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  align-self: stretch;
  appearance: none;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  border: 0;
  border-radius: var(--tm-radius-sm);
  background: transparent;
  color: var(--tm-teal);
  font: inherit;
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  white-space: nowrap;
}

.ap-disclosure-icon::before {
  content: "+";
}

.ap-workflow-more[aria-expanded="true"] .ap-disclosure-icon::before {
  content: "−";
}

.ap-workflow-more:hover {
  color: var(--tm-dark);
}

.ap-workflow-more:focus-visible {
  outline: 3px solid var(--tm-focus-ring);
  outline-offset: 1px;
}

.ap-workflow-more-panel[hidden] {
  display: none;
}

.ap-workflow-more-panel {
  margin: 0;
  font-size: 0.9rem;
  color: var(--tm-text-2);
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--tm-border);
  line-height: 1.72;
}

.ap-workflow-more-panel p {
  margin: 0;
}

.ap-workflow-more-panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  list-style: disc;
  font-weight: 700;
}

.ap-workflow-more-panel li + li {
  margin-top: 0.3rem;
}

.ap-workflow li {
  display: contents;
}

.ap-workflow-demo {
  position: relative;
  display: grid;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
}

.ap-workflow-play {
  /* Outside text flow: the four labels and arrows keep their original spacing. */
  position: absolute;
  left: calc(100% + 0.25rem);
  top: 50%;
  transform: translateY(-50%);
  display: inline-grid;
  place-items: center;
  width: var(--ap-play-size);
  height: var(--ap-play-size);
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: var(--tm-teal);
  cursor: pointer;
}

.ap-workflow-play[hidden] {
  display: inline-grid;
  visibility: hidden;
}

.ap-workflow-play svg {
  width: 60%;
  height: 60%;
  fill: currentColor;
}

/* Extend the hit area vertically without covering the adjacent step link. */
.ap-workflow-play::after {
  content: "";
  position: absolute;
  inset: calc((100% - 2.75rem) / 2) 0;
}

.ap-workflow-play:hover {
  background: rgba(45, 106, 106, 0.08);
}

.ap-workflow-play:focus-visible {
  outline: 3px solid var(--tm-focus-ring);
}

.ap-stop-icon,
.ap-workflow-play[aria-pressed="true"] .ap-play-icon {
  display: none;
}

.ap-workflow-play[aria-pressed="true"] .ap-stop-icon {
  display: block;
}

.ap-demo-video {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  border: 1px solid rgba(14, 14, 19, 0.2);
  border-radius: var(--tm-radius-sm);
  background: var(--tm-dark);
  box-shadow: var(--tm-shadow-lg);
}

.ap-demo-video[hidden],
.ap-hero-shot[hidden],
.ap-demo-error[hidden] {
  display: none;
}

.ap-demo-error {
  margin: 0;
  color: var(--tm-text);
  font-size: 0.9rem;
}

.ap-workflow-arrow {
  align-self: center;
  justify-self: center;
  width: 1rem;
  text-align: center;
  color: var(--tm-text-3);
  pointer-events: none;
}

.ap-workflow-link {
  appearance: none;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  border: 0;
  border-radius: var(--tm-radius-sm);
  background: transparent;
  color: var(--tm-text-2);
  font: inherit;
  font-size: clamp(0.72rem, 1.1vw, 0.875rem);
  font-weight: 500;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: var(--tm-border);
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.ap-workflow-link:hover,
.ap-workflow-link[aria-current="step"] {
  color: var(--tm-teal);
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
}

.ap-workflow-link[aria-current="step"] {
  font-weight: 700;
}

.ap-workflow-link:focus-visible {
  outline: 3px solid var(--tm-focus-ring);
  outline-offset: 1px;
}

.ap-shot-switcher-button {
  appearance: none;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-sm);
  background: var(--tm-light-raised);
  color: var(--tm-text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.ap-shot-switcher-button:hover:not(:disabled):not([aria-pressed="true"]) {
  border-color: var(--tm-teal);
  background: rgba(45, 106, 106, 0.07);
}

.ap-shot-switcher-button[aria-pressed="true"] {
  border-color: var(--tm-dark);
  background: var(--tm-dark);
  color: var(--tm-text-on-dark);
}

.ap-shot-switcher-button:active:not(:disabled) {
  transform: translateY(1px);
}

.ap-shot-switcher-button:focus-visible {
  outline: 3px solid rgba(184, 134, 11, 0.38);
  outline-offset: 3px;
}

.ap-hero-shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(14, 14, 19, 0.2);
  border-radius: var(--tm-radius-md);
  width: 100%;
  height: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: center;
  margin: 0;
  padding: 0;
  background: var(--tm-dark);
  box-shadow: var(--tm-shadow-lg);
  transform: none;
}

.ap-hero-shot[role="button"] {
  cursor: zoom-in;
}

.ap-hero-shot[role="button"]:focus-visible {
  outline: 3px solid var(--tm-focus-ring);
  outline-offset: 3px;
}

/* Portrait screenshots still fit fully inside the desktop-only dialog. */
.shot-dialog[data-shot-kind="mobile"] .shot-dialog-card {
  height: calc(100vh - 2rem);
}

.shot-dialog[data-shot-kind="mobile"] .shot-dialog-body {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.shot-dialog[data-shot-kind="mobile"] .shot-dialog-image {
  position: absolute;
  inset: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ap-hero-shot img {
  width: 100%;
  height: 100%;
  /* Cover absorbs border/subpixel rounding without letterboxing. */
  object-fit: cover;
  transform: none;
}

/* Founder note */
.ap-founder {
  padding: clamp(5.5rem, 9vw, 8rem) 1.5rem;
  border-top: 1px solid rgba(47, 125, 58, 0.2);
  background: #f5faf4;
}

.ap-founder-layout,
.ap-faq-layout {
  display: grid;
  grid-template-columns: var(--ap-columns);
  gap: var(--ap-column-gap);
  align-items: start;
}

.ap-founder-note {
  margin: 0;
}

.ap-founder-note blockquote {
  margin: 0;
  color: var(--tm-text);
  font-family: var(--tm-display);
  font-size: clamp(1.12rem, 2vw, 1.36rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.58;
}

.ap-founder-note blockquote p {
  margin: 0;
}

.ap-founder-note blockquote p + p {
  margin-top: 1.25rem;
}

.ap-founder-note figcaption {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ap-founder-photo {
  width: clamp(4rem, 6vw, 4.75rem);
  height: auto;
  border: 1px solid rgba(14, 14, 19, 0.16);
  border-radius: 0;
  box-shadow: var(--tm-shadow-sm);
}

.ap-founder-note cite {
  color: var(--tm-text-muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
}

/* FAQ */
.ap-faq {
  padding: clamp(5.5rem, 9vw, 8rem) 1.5rem;
  border-top: 1px solid var(--tm-border);
  background: var(--tm-light-dim);
}

.ap-faq-list {
  border-top: 1px solid var(--tm-border);
}

.ap-faq-item {
  border-bottom: 1px solid var(--tm-border);
}

.ap-faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.5rem;
  align-items: center;
  gap: 1rem;
  min-height: 4.75rem;
  padding: 1.15rem 0;
  color: var(--tm-text);
  font-family: var(--tm-display);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.ap-faq-item summary::-webkit-details-marker {
  display: none;
}

.ap-faq-item summary::after {
  content: "+";
}

.ap-faq-item summary::after,
.ap-disclosure-icon {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(45, 106, 106, 0.35);
  border-radius: 50%;
  color: var(--tm-teal);
  font-family: var(--tm-font);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.ap-workflow-more .ap-disclosure-icon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  font-size: 0.75rem;
}

.ap-faq-item[open] summary::after {
  content: "−";
}

.ap-faq-item summary:hover {
  color: var(--tm-teal);
}

.ap-faq-item summary:focus-visible {
  border-radius: var(--tm-radius-sm);
  outline: 3px solid var(--tm-focus-ring);
  outline-offset: 3px;
}

.ap-faq-answer {
  max-width: 680px;
  padding: 0 2.5rem 1.55rem 0;
  color: var(--tm-text-2);
  font-size: 0.98rem;
  line-height: 1.72;
}

.ap-faq-answer p {
  margin: 0;
}

.ap-faq-answer p + p {
  margin-top: 0.9rem;
}

.ap-faq-answer a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.ap-faq-item[hidden],
.ap-faq-toggle[hidden] {
  display: none;
}

.ap-faq-toggle {
  display: block;
  margin: 1.35rem auto 0;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(45, 106, 106, 0.4);
  border-radius: var(--tm-radius-sm);
  background: transparent;
  color: var(--tm-teal);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ap-faq-toggle:hover,
.ap-faq-toggle[aria-expanded="true"] {
  background: rgba(45, 106, 106, 0.08);
  color: var(--tm-text);
}

.ap-faq-toggle:focus-visible {
  outline: 3px solid var(--tm-focus-ring);
  outline-offset: 3px;
}

.active-plan-page .signup {
  padding-block: clamp(5.5rem, 9vw, 8rem);
}

.active-plan-page #founder-title,
.active-plan-page #faq-title,
.active-plan-page #signup-title {
  scroll-margin-top: 6.75rem;
}

/* Responsive */
@media (prefers-reduced-motion: reduce) {
  .ap-shot-switcher-button {
    transition: none;
  }
}

@media (min-width: 641px) {
  .ap-header-brand-name {
    font-size: 1.35rem;
  }
}

@media (min-width: 1200px) {
  .ap-hero {
    padding-block: clamp(6rem, 8vw, 8rem);
  }

  .ap-hero-layout {
    grid-template-columns: var(--ap-columns);
    grid-template-rows: auto auto auto auto;
    column-gap: var(--ap-column-gap);
    row-gap: var(--ap-gallery-gap);
  }

  .ap-hero-gallery {
    grid-column: 2;
    grid-row: 1 / 3;
    grid-template-rows: subgrid;
    align-self: stretch;
  }

  .ap-shot-availability {
    grid-column: 2;
    grid-row: 3;
  }

  .ap-hero-cta {
    grid-column: 2;
    grid-row: 4;
  }

  .ap-hero-copy {
    --ap-hero-title-size: 7rem;
    --ap-hero-subtitle-size: 2.5rem;
    --ap-hero-subtitle-leading: 1.1;
    --ap-hero-brand-gap: 0.5rem;

    /* Share control and preview tracks, without measuring either in JS. */
    grid-column: 1;
    grid-row: 1 / 3;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    align-self: stretch;
  }

  .ap-hero-intro {
    z-index: 1;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
  }

  .ap-hero-eyebrow {
    margin: 0 0 var(--ap-hero-brand-gap);
    text-box-trim: trim-start;
    text-box-edge: cap alphabetic;
  }

  .ap-hero-message {
    /* The copy column is half the preview width. Keep its closed-preview height
       independent of optional content expanding in the right column. */
    grid-column: 1;
    grid-row: 2;
    aspect-ratio: 534 / 886;
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1.5rem;
    min-width: 0;
  }

  .ap-hero-tagline-brand {
    font-family: var(--tm-font);
    font-weight: 700;
    line-height: 0.99;
    white-space: normal;
    /* Keep the intro group's spacing tied to visible capitals, not font leading. */
    text-box-trim: trim-start;
    text-box-edge: cap alphabetic;
  }

  .ap-hero-tagline-matter {
    display: block;
    width: max-content;
  }

  .ap-hero-matter-field {
    top: -0.11em;
    height: 1.25em;
  }

  .ap-hero-category {
    max-width: none;
    text-wrap: balance;
  }

  .ap-hero-category > span {
    white-space: normal;
  }

  .ap-hero-lede {
    margin-top: 0;
    font-size: 1.625rem;
    line-height: 1.45;
  }

  .ap-hero-lede > span {
    display: block;
  }
}

@media (max-width: 960px) {
  .ap-founder-layout,
  .ap-faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.8rem;
  }
}

@media (max-width: 640px) {
  .active-plan-page .ap-main {
    background: var(--tm-light);
  }

  .active-plan-page .site-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ap-header-actions {
    justify-self: end;
    gap: 0.55rem;
    margin-left: 0;
  }

  .ap-header-nav {
    gap: 0.55rem;
  }

  .ap-header-nav a {
    font-size: 0.78rem;
  }

  .active-plan-page .brand-icon--full {
    display: block;
    width: 6.5rem;
  }

  .ap-founder,
  .ap-faq {
    padding: 4.25rem 1rem;
  }

  .active-plan-page #founder-title,
  .active-plan-page #faq-title,
  .active-plan-page #signup-title {
    scroll-margin-top: 4rem;
  }

  .ap-founder-note {
    padding-left: 1.25rem;
  }

  .ap-hero {
    padding: 0.85rem 1rem 2.75rem;
  }

  .ap-hero-layout {
    --ap-copy-gap: 1.25rem;
    --ap-gallery-gap: 0.75rem;
  }

  .ap-hero-lede {
    margin-top: 1.15rem;
    line-height: 1.58;
  }

  .ap-hero-gallery {
    --ap-gallery-inset: 0.5rem;
    width: calc(100% + 2rem);
    gap: 0.75rem;
  }

  .ap-shot-controls {
    box-sizing: border-box;
    padding-inline: var(--ap-gallery-inset);
    gap: 0.55rem;
  }

  .ap-shot-switcher {
    gap: 0.3rem;
  }

  .ap-shot-switcher-button {
    padding-inline: 0.75rem;
  }

  .ap-work-menu-toggle:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0 0.5rem;
    border: 0;
    border-radius: var(--tm-radius-sm);
    background: transparent;
    color: var(--tm-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .ap-work-menu-toggle svg {
    flex-shrink: 0;
  }

  .ap-work-menu-toggle:hover,
  .ap-work-menu-toggle[aria-expanded="true"] {
    color: var(--tm-teal);
  }

  .ap-work-menu-toggle:focus-visible {
    outline: 3px solid var(--tm-focus-ring);
    outline-offset: 2px;
  }

  .ap-work-navigation:not([hidden]) {
    display: block;
    position: relative;
    width: 100%;
  }

  .ap-workflow-row {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    inset-inline: 0;
    z-index: 10;
    box-sizing: border-box;
    grid-template-columns: minmax(0, 1fr);
    padding: 0.25rem;
    border: 1px solid var(--tm-border);
    border-radius: var(--tm-radius-sm);
    background: var(--tm-light);
    box-shadow: 0 0.5rem 1.5rem rgba(14, 14, 19, 0.14);
  }

  .ap-hero-gallery[data-work-menu-open="true"] .ap-workflow-row {
    display: grid;
  }

  .ap-workflow,
  .ap-workflow li,
  .ap-workflow-demo {
    display: block;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .ap-workflow-arrow,
  .ap-workflow .ap-workflow-play,
  .ap-workflow-more .ap-disclosure-icon {
    display: none;
  }

  .ap-workflow-link,
  .ap-workflow-more {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.9rem;
    text-align: left;
    text-decoration: none;
  }

  .ap-workflow-link[aria-current="step"],
  .ap-workflow-more[aria-current="true"] {
    background: color-mix(in srgb, var(--tm-teal) 10%, var(--tm-light));
    color: var(--tm-teal);
    font-weight: 700;
  }

  .ap-mobile-work-subtitle:not([hidden]) {
    display: flex;
    transition: none;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.75rem;
    color: var(--tm-text);
    font-size: 0.95rem;
    font-weight: 600;
  }

  .ap-mobile-demo-play {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
  }

  .ap-mobile-demo-play[hidden] {
    display: none;
  }

  .ap-mobile-demo-play::before {
    content: "";
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid currentColor;
    border-radius: 50%;
    pointer-events: none;
  }

  .ap-mobile-demo-play::after {
    content: none;
  }

  .ap-mobile-demo-play svg {
    width: 0.75rem;
    height: 0.75rem;
  }

  .ap-workflow-more-panel {
    margin-inline: var(--ap-gallery-inset);
    font-size: 1rem;
  }

  .ap-preview-stage {
    width: calc(100% - 2 * var(--ap-gallery-inset));
    margin-inline: var(--ap-gallery-inset);
  }

  .ap-hero-cta {
    margin-top: 0.75rem;
  }

  .ap-shot-availability {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .ap-hero-shot {
    transform: none;
  }

  .ap-section-heading h2 {
    font-size: clamp(2rem, 11vw, 2.9rem);
  }
}

@media (max-width: 420px) {
  .active-plan-page .brand-icon--full {
    width: 5.75rem;
  }

  .ap-hero-copy {
    --ap-hero-title-size: clamp(2.85rem, 13.2vw, 3.45rem);
  }
}

@media (max-width: 400px) {
  .active-plan-page .site-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ap-header-actions {
    gap: 0.4rem;
  }

  .active-plan-page .brand-icon--full {
    width: 4.5rem;
  }

  .ap-header-brand {
    gap: 0.35rem;
  }

  .ap-header-brand-name {
    font-size: 0.82rem;
  }

  .ap-header-nav {
    gap: 0.35rem;
  }

  .ap-header-nav a {
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .active-plan-page .brand-icon--full {
    width: 4rem;
  }

  .ap-header-brand {
    gap: 0.3rem;
  }

  .ap-header-brand-name {
    font-size: 0.78rem;
  }
}

@media (max-width: 340px) {
  .active-plan-page .brand-icon--full {
    width: 3.25rem;
  }

  .ap-header-brand {
    gap: 0.25rem;
  }

  .ap-header-brand-name {
    font-size: 0.72rem;
  }

  .ap-header-brand-chevron {
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0;
  }

  .ap-header-actions {
    gap: 0.3rem;
  }

  .ap-header-nav {
    gap: 0.25rem;
  }

  .ap-header-nav a {
    font-size: 0.68rem;
  }

  .active-plan-page .site-header-cta {
    padding-inline: 0.45rem;
  }

  .ap-hero-lede {
    margin-top: 1.15rem;
    font-size: 1rem;
    line-height: 1.5;
  }

}
