/*
 * GPTX public motion/design preview, influenced by Animate UI's calm,
 * spring-like feedback. All existing SEO copy, anchors, downloads and checkout
 * forms remain unchanged. Loaded after public theme + responsive styles.
 */
:root {
  --gptx-out: cubic-bezier(.22, 1, .36, 1);
  --gptx-soft: cubic-bezier(.215, .61, .355, 1);
  --gptx-glow-a: rgba(105, 135, 238, .12);
  --gptx-glow-b: rgba(78, 185, 174, .10);
}
html[data-site-theme="dark"] {
  --gptx-glow-a: rgba(151, 139, 255, .13);
  --gptx-glow-b: rgba(111, 210, 199, .09);
}

/* Light-catching hero: graphical decoration sits behind real copy and CTA. */
body.landing-body .download-hero.download-hero-classic {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 850px 470px at 84% 2%, var(--gptx-glow-a), transparent 75%),
    radial-gradient(ellipse 680px 470px at 4% 75%, var(--gptx-glow-b), transparent 77%),
    var(--site-hero-bg);
}
body.landing-body .download-hero.download-hero-classic::before {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: -1;
  opacity: .25;
  background-image: linear-gradient(var(--site-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--site-line) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, transparent 4%, black 44%, transparent 96%);
}
body.landing-body .download-hero-inner {
  position: relative;
  z-index: 1;
}
body.landing-body .download-hero h1 {
  letter-spacing: -.058em;
  text-wrap: balance;
}
body.landing-body .download-hero .download-hero-value {
  text-wrap: pretty;
}
body.landing-body .download-product-video {
  position: relative;
  overflow: hidden;
  border-radius: clamp(14px, 2vw, 22px);
  box-shadow: 0 24px 76px -35px rgba(20, 33, 66, .40),
    0 0 0 1px var(--site-line);
}

/* Interactive surfaces get stronger materiality without changing layout. */
body.landing-body :is(.download-feature-banner, .download-art-panel,
  .download-pricing-card:not(.is-loading), .partner-application-panel,
  .partner-discount, .download-benefits article, .download-history-item) {
  transition: border-color 230ms ease, box-shadow 230ms ease, background-color 230ms ease;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--site-text) 5%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  body.landing-body :is(.download-feature-banner, .download-art-panel,
    .download-pricing-card:not(.is-loading), .partner-discount,
    .download-benefits article):hover {
    border-color: var(--site-line-strong);
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--site-text) 7%, transparent),
      0 19px 52px -38px color-mix(in srgb, var(--site-text) 48%, transparent);
  }
}

/* One softly luminous edge highlights the primary purchase path. */
body.landing-body .download-pricing-card.is-featured {
  position: relative;
  border-color: color-mix(in srgb, var(--site-text) 24%, var(--site-line));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--site-text) 8%, transparent),
    0 18px 55px -42px var(--site-text);
}

/* Fast press, never hover scale. Touch and keyboard remain equivalent. */
body.landing-body :is(.download-header-cta, .download-hero-cta, .download-main-button,
  .download-pricing-button, .landing-cost-primary, .download-guide-button,
  .mobile-hero-trial, .partner-form-submit, .download-menu-button,
  .download-os-inner button) {
  transition: transform 165ms cubic-bezier(.2,.8,.2,1),
    background-color 170ms ease, border-color 170ms ease,
    color 170ms ease, box-shadow 170ms ease;
}
body.landing-body :is(.download-header-cta, .download-hero-cta, .download-main-button,
  .download-pricing-button, .landing-cost-primary, .download-guide-button,
  .mobile-hero-trial, .partner-form-submit, .download-menu-button,
  .download-os-inner button):not(:disabled):active {
  transform: scale(.97);
}
body.landing-body :is(.download-header-cta, .download-hero-cta, .download-main-button,
  .landing-cost-primary, .mobile-hero-trial):focus-visible {
  outline-offset: 4px;
}

/* Underline that grows from the nav label, with no relayout. */
@media (hover: hover) and (pointer: fine) {
  body.landing-body .download-nav > a {
    position: relative;
  }
  body.landing-body .download-nav > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 260ms var(--gptx-out);
  }
  body.landing-body .download-nav > a:hover::after,
  body.landing-body .download-nav > a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

/* Native details accordion keeps keyboard behavior and semantics. */
@supports (interpolate-size: allow-keywords) {
  body.landing-body .download-faq-list details {
    interpolate-size: allow-keywords;
  }
  body.landing-body .download-faq-list details::details-content {
    height: 0;
    opacity: 0;
    overflow: clip;
    transition: height 330ms var(--gptx-soft),
      opacity 330ms var(--gptx-soft),
      content-visibility 330ms allow-discrete;
  }
  body.landing-body .download-faq-list details[open]::details-content {
    height: auto;
    opacity: 1;
  }
}

/* Public guides and partner pages share the same calm visual details. */
body.partner-public-body .partner-application,
body.public-guide-body .public-guide-main {
  background:
    radial-gradient(ellipse 680px 430px at 85% 0%,
      var(--gptx-glow-a), transparent 80%), var(--site-bg);
}
body.partner-public-body .partner-application-copy h1,
body.public-guide-body .vg-head h1 {
  letter-spacing: -.052em;
  text-wrap: balance;
}
@media (prefers-reduced-motion: reduce) {
  body.landing-body :is(.download-header-cta, .download-hero-cta, .download-main-button,
    .download-pricing-button, .landing-cost-primary, .download-guide-button,
    .mobile-hero-trial, .partner-form-submit, .download-menu-button,
    .download-os-inner button):active { transform: none; }
  body.landing-body .download-faq-list details::details-content { transition: none !important; }
  body.landing-body .download-nav > a::after { transition: none; }
}
