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

.active-plan-page {
  --ap-max: 1120px;
  --ap-copy: 720px;
}

.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 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 3.5vw, 3rem);
}

.ap-hero-copy {
  width: 100%;
  min-width: 0;
}

.ap-hero-lockup {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.65rem;
  color: var(--tm-text);
  font-family: var(--tm-display);
  font-size: clamp(1.04rem, 0.98rem + 0.3vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.ap-hero-lockup img {
  width: 8rem;
  height: auto;
  filter: drop-shadow(0 5px 10px rgba(184, 134, 11, 0.14));
}

.ap-hero-copy h1 {
  max-width: none;
  margin: 0;
  color: var(--tm-text);
  font-family: var(--tm-display);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.ap-hero-copy h1 strong {
  display: block;
  margin-top: 0.16em;
  color: var(--tm-teal);
  font-weight: 700;
}

.ap-hero-lede {
  max-width: none;
  margin: 1.6rem 0 0;
  color: var(--tm-text-2);
  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 {
  --ap-preview-height: clamp(13rem, 66vw, 39rem);
  --ap-mobile-shot-gap: clamp(0.35rem, 0.9vw, 0.7rem);
  --ap-mobile-grid-padding: clamp(0.2rem, 0.6vw, 0.45rem);
  --ap-mobile-shot-width: clamp(6.15rem, 31.25vw, 18.4rem);
  --ap-mobile-overview-width: calc(
    var(--ap-mobile-shot-width) + var(--ap-mobile-shot-width) +
      var(--ap-mobile-shot-width) + var(--ap-mobile-shot-gap) +
      var(--ap-mobile-shot-gap) + var(--ap-mobile-grid-padding) +
      var(--ap-mobile-grid-padding)
  );

  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 54rem);
  min-width: 0;
  justify-self: center;
  gap: 1rem;
}

.ap-mobile-shot-grid {
  display: none;
}

.ap-hero-gallery[data-active-shot-mode="mobile"] .ap-hero-shot {
  display: none;
}

.ap-hero-gallery[data-active-shot-mode="mobile"] .ap-mobile-shot-grid {
  display: grid;
}

.ap-shot-controls {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.ap-shot-availability {
  margin: 0;
  color: var(--tm-text-2);
  font-size: 0.96rem;
  line-height: 1.5;
  text-align: center;
}

.ap-shot-cta {
  margin-left: 0.18rem;
}

.ap-shot-cta a {
  color: var(--tm-teal);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.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-shot-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
}

.ap-hero-gallery[data-active-shot-mode="mobile"] .ap-shot-controls {
  z-index: 1;
  width: var(--ap-mobile-overview-width);
  justify-self: center;
}

.ap-hero-gallery[data-active-shot-mode="mobile"] .ap-shot-switcher {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(3, var(--ap-mobile-shot-width));
  gap: var(--ap-mobile-shot-gap);
  width: 100%;
  padding-inline: var(--ap-mobile-grid-padding);
}

.ap-hero-gallery[data-active-shot-mode="mobile"]
  .ap-shot-switcher-button {
  justify-self: center;
  max-width: 100%;
}

.ap-shot-switcher-button {
  appearance: none;
  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;
  cursor: pointer;
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    color 150ms ease,
    transform 150ms ease;
}

.ap-shot-switcher-button:hover: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:disabled {
  cursor: default;
  opacity: 1;
}

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

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

.ap-hero-shot {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-color: rgba(14, 14, 19, 0.2);
  background: var(--tm-dark);
  box-shadow: var(--tm-shadow-lg);
  transform: none;
}

.ap-hero-shot .step-shot-frame {
  display: grid;
  place-items: center;
  height: var(--ap-preview-height);
  aspect-ratio: auto;
  background: var(--tm-light-raised);
}

.ap-mobile-shot-grid {
  box-sizing: border-box;
  grid-template-columns: repeat(3, var(--ap-mobile-shot-width));
  align-items: center;
  gap: var(--ap-mobile-shot-gap);
  width: var(--ap-mobile-overview-width);
  height: calc(var(--ap-preview-height) + 2px);
  padding: 0 var(--ap-mobile-grid-padding);
  justify-self: center;
  background: var(--tm-light-raised);
}

.ap-mobile-shot {
  appearance: none;
  display: grid;
  place-items: center;
  min-width: 0;
  width: auto;
  height: 100%;
  max-height: none;
  aspect-ratio: 356 / 758;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(14, 14, 19, 0.2);
  background: var(--tm-light-raised);
  box-shadow: var(--tm-shadow-sm);
  cursor: zoom-in;
}

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

.ap-mobile-shot-frame {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ap-mobile-shot img,
.ap-mobile-shot:hover img,
.ap-mobile-shot:focus-visible img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
}

.ap-hero-shot img,
.ap-hero-shot:hover img,
.ap-hero-shot:focus-visible img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.shot-dialog-zoom {
  appearance: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--tm-border);
  border-radius: var(--tm-radius-sm);
  background: var(--tm-light-dim);
  color: var(--tm-text);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
}

.shot-dialog-zoom:hover,
.shot-dialog-zoom:focus-visible {
  border-color: var(--tm-teal);
  background: var(--tm-light-hover);
}

.shot-dialog-zoom:focus-visible {
  outline: 3px solid rgba(184, 134, 11, 0.35);
  outline-offset: 2px;
}

.shot-dialog-zoom[hidden] {
  display: none;
}

.shot-dialog[data-shot-kind="mobile"] .shot-dialog-card {
  height: calc(100vh - 2rem);
}

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

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

.shot-dialog[data-shot-kind="desktop"][data-zoomed="true"]
  .shot-dialog-image {
  width: auto;
  max-width: none;
  height: auto;
  max-height: 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 {
  display: grid;
  grid-template-columns: minmax(14rem, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.ap-founder-note {
  margin: 0;
  padding-left: clamp(1.4rem, 3vw, 2.25rem);
  border-left: 4px solid var(--tm-gold);
}

.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-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.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: "+";
  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-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;
}

.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: 1024px) {
  .ap-hero-gallery {
    --ap-mobile-shot-gap: clamp(2rem, 4vw, 3rem);
  }
}

@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 {
    gap: 1.25rem;
  }

  .ap-hero-lockup {
    margin-bottom: 1rem;
  }

  .ap-hero-lockup img {
    width: 7.25rem;
  }

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

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

  .ap-shot-controls {
    gap: 0.55rem;
  }

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

  .ap-shot-switcher-button {
    padding: 0.52rem 0.72rem;
  }

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

  .ap-shot-cta {
    display: block;
    margin: 0.2rem 0 0;
  }

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

  .shot-dialog[data-shot-kind="mobile"] .shot-dialog-card {
    height: calc(100vh - 0.75rem);
  }

  .shot-dialog[data-shot-kind="mobile"] .shot-dialog-image {
    inset: 0.55rem;
    width: calc(100% - 1.1rem);
    height: calc(100% - 1.1rem);
  }

  .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 h1 {
    font-size: clamp(2.45rem, 13.2vw, 3.2rem);
  }
}

@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;
  }

}
