/* Landing-specific layout and product media. */
.landing {
  --landing-grid: #dce5e1;
  --landing-stage: #f0f3f1;
  --landing-night: #111615;
  --landing-night-text: #f6f9f7;
  --landing-night-muted: #c0cbc7;
  --landing-night-border: #485651;
  --landing-jade-light: #b6dfcf;
}

.landing :is(.masthead, .hero-band) {
  background: var(--landing-night);
  color: var(--landing-night-text);
}
.landing .masthead .brand img {
  background: transparent;
  padding: 0;
}
.landing .masthead .brand, .landing .masthead .brand b,
.landing .masthead nav a { color: var(--landing-night-text); }
.landing .masthead :is(.nav-account,.mobile-nav summary) {
  color: var(--landing-night-text);
  border-color: var(--landing-night-border);
}
.landing .masthead .mobile-nav nav {
  background: var(--landing-night);
  border-color: var(--landing-night-border);
}
.landing .mobile-nav nav a:hover { background: #24312d; }
.landing :is(.masthead,.hero-band) :focus-visible { outline-color: var(--landing-jade-light); }
.landing .hero-band {
  background: radial-gradient(ellipse at 82% 55%, #222b28, transparent 62%), var(--landing-night);
}

.landing .hero {
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(1.75rem, 2.8vw, 3rem);
  padding-block: clamp(3rem, 6.5vw, 6.5rem);
}

.landing .hero h1 {
  max-inline-size: 16ch;
  color: var(--landing-night-text);
  font-size: clamp(2.5rem, 1.45rem + 3.7vw, 5.1rem);
  text-wrap: initial;
}

.landing .hero h1 > span { color: var(--landing-jade-light); }
.landing .hero-description {
  max-inline-size: 42ch;
  color: var(--landing-night-muted);
}
.landing .hero-band .download-note { color: var(--landing-night-muted); }
.landing .hero-band :is(.download-note a,.hero-api-link) { color: var(--landing-night-text); }
.landing .hero-band .intro-actions > .button {
  background: var(--theme-brand);
  color: #fff;
  border-color: #84ac9e;
}
.landing .hero-band .intro-actions > .button:is(:hover,:active) {
  background: #155347;
  border-color: var(--landing-jade-light);
}
.landing .intro-actions { gap: .45rem 1.25rem; }
.landing .hero-api-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 2.75rem;
  gap: .4rem;
  font-weight: 750;
}

.product-shot {
  margin: 0;
  display: grid;
  place-items: center;
  min-inline-size: 0;
  padding: clamp(.85rem, 1.65vw, 1.5rem);
  border: 1px solid #53605c;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse at 45% 45%, #e0e6e2 0%, #b4c0ba 67%, #8c9b95 100%);
}

.product-shot img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 1530 / 1028;
}
.product-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(#fff4 1px, transparent 1px) center / 1.5rem 1.5rem,
    linear-gradient(90deg, #fff4 1px, transparent 1px) center / 1.5rem 1.5rem;
  mask-image: radial-gradient(ellipse at center, transparent 26%, #000 83%);
}

.landing main > .section { padding-block: clamp(2.6rem, 5.25vw, 5rem); }
.landing .api-feature { align-items: center; border-block-start: 0; }
.api-stage {
  min-inline-size: 0;
  padding: clamp(.7rem, 2.5vw, 2rem);
  border: 1px solid var(--landing-grid);
  border-radius: 1rem;
  background:
    radial-gradient(ellipse at 8% 95%, #d7e7e0, transparent 68%),
    #f3f5f3;
}
.api-stage .hero-request {
  border-radius: .55rem;
  box-shadow: 0 .6rem 1.5rem #182b2324;
}

.landing .api-feature h2 { max-inline-size: 16ch; margin-block-end: 1rem; }
.landing .api-feature-copy > p { max-inline-size: 38ch; }
.landing .hero-request .request-header { overflow-wrap: anywhere; }
.landing .hero-request pre { font-size: clamp(.8rem, .73rem + .2vw, .96rem); }

.landing .install-panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
@media (min-width: 50.0625rem) {
  .landing .install-visual { grid-column: 1; grid-row: 1; }
  .landing .install-copy { grid-column: 2; grid-row: 1; }
}
.landing .install-copy h2 { max-inline-size: 16ch; }
.landing .install-steps > p:first-child { margin-block: 0 1rem; max-inline-size: 37ch; }
.landing .install-visual {
  display: grid;
  place-items: center;
  inline-size: 100%;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 1rem;
  background: var(--landing-stage);
}
.landing .install-visual img {
  inline-size: min(100%, 16rem);
  block-size: auto;
  aspect-ratio: 2 / 3;
}

.landing .offers .editorial-title { margin-block-end: .8rem; }
.landing .offers .plan-grid { gap: clamp(1.6rem, 3vw, 2.35rem); }
.landing .offers :is(.code-balance,.quota-list) { color: var(--theme-text); }

@media (max-width: 50rem) {
  .landing .hero, .landing .install-panel { grid-template-columns: minmax(0, 1fr); }
  .landing .hero { padding-block: 2.65rem 2.8rem; gap: 1.5rem; }
  .landing .hero h1 { max-inline-size: 17ch; }
  .product-shot img { max-inline-size: 33rem; }
}

@media (max-width: 36rem) {
  .landing .hero h1 { font-size: clamp(2.2rem, 1.65rem + 3vw, 2.85rem); }
  .landing .hero-description { margin-block-end: .85rem; }
  .landing .install-visual img { inline-size: min(100%, 13rem); }
}


@media (min-width: 24rem) and (max-width: 36rem) {
  .landing .code-tiers { --plan-columns: 2; }
  .landing .code-tiers > .code-tier { padding-inline: .65rem; }
  .landing .code-tiers > :nth-child(odd) { padding-inline-start: 0; border-inline-end: 1px solid var(--theme-border); }
  .landing .code-tiers > :nth-child(2) { border-block-start: 1px solid var(--theme-border); }
  .landing .code-tiers > .is-recommended { border-inline-start: 0; box-shadow: inset 0 2px var(--theme-brand); }
}

/* Decorative layers stay between the grid and the product. */
.product-shot {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.product-shot img { position: relative; z-index: 1; }
.product-sweep {
  position: absolute;
  inset-block: 0;
  inset-inline-start: -42%;
  inline-size: 42%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #fff 50%, #cbded8 53%, transparent);
}

.landing .faq-list summary {
  position: relative;
  display: block;
  list-style: none;
  padding-inline-end: 2rem;
}
.landing .faq-list summary::-webkit-details-marker { display: none; }
.landing .faq-list summary::before,
.landing .faq-list summary::after {
  content: "";
  position: absolute;
  inset-inline-end: .3rem;
  inset-block-start: 1.3rem;
  inline-size: .75rem;
  block-size: 2px;
  background: var(--theme-brand);
}
.landing .faq-list summary::after { transform: rotate(90deg); }
.landing .faq-list details[open] > summary::after { transform: rotate(0); }

@media (prefers-reduced-motion: no-preference) {
  .landing .hero-copy { animation: none; }
  .hero-copy > :nth-child(1) { animation: landing-rise 620ms var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation: landing-rise 580ms 110ms var(--ease-out) both; }
  .hero-copy > :nth-child(3),
  .hero-copy > :nth-child(4) { animation: landing-rise 550ms 200ms var(--ease-out) both; }

  .product-shot img { animation: landing-product 820ms 90ms var(--ease-out) both; }
  .product-sweep { animation: landing-sweep 1150ms 180ms ease-in-out both; }
  .landing .intro-actions a > span,
  .landing .api-feature-actions .button > span,
  .landing .install-download > span { display: inline-block; transition: transform 230ms var(--ease-out); }
  .landing :is(.intro-actions a, .api-feature-actions .button, .install-download):is(:hover, :focus-visible) > span {
    transform: translateX(.25rem);
  }
  .landing .faq-list summary::after { transition: transform 260ms var(--ease-out); }
  .landing .faq-list details[open] > p { animation: landing-rise 300ms var(--ease-out) both; }

  @supports (animation-timeline: view()) and (animation-range: entry 0% entry 100%) {
    .landing [data-enter] {
      animation: landing-section-enter 1s linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product-shot img { transition: translate 480ms var(--ease-out), scale 480ms var(--ease-out); }
  .product-shot:hover img { translate: 0 -.3rem; scale: 1.035; }
  .landing .offers :is(.plan, .code-tier) { transition: translate 240ms var(--ease-out); }
  .landing .offers :is(.plan, .code-tier):hover { translate: 0 -.2rem; }
}

@keyframes landing-rise {
  from { opacity: .6; transform: translateY(.75rem); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes landing-product {
  from { opacity: .68; transform: translateY(1.05rem) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes landing-sweep {
  0% { opacity: 0; transform: translateX(0) skewX(-11deg); }
  26% { opacity: .72; }
  100% { opacity: 0; transform: translateX(370%) skewX(-11deg); }
}
@keyframes landing-section-enter {
  from { opacity: .84; transform: translateY(.9rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Product examples and entry prices. */
.landing .install-copy > p { max-inline-size: 38ch; color: var(--theme-muted); }
.landing .install-visual { margin: 0; gap: .85rem; }
.chat-example-caption {
  text-align: center;
  font-size: .9375rem;
  font-weight: 720;
  color: var(--theme-brand);
}

.install-help { margin-block: .75rem; }
.install-help summary, .request-example summary {
  min-block-size: 2.75rem;
  align-content: center;
  cursor: pointer;
  font-size: .94rem;
  font-weight: 700;
}
.install-help summary { color: var(--theme-brand); }
.install-help .install-steps { padding-inline-start: .5rem; }

.code-example { display: grid; gap: 1rem; padding: clamp(1rem, 3vw, 1.65rem); }
.code-example p { margin: 0; line-height: 1.6; }
.example-question {
  justify-self: end;
  max-inline-size: 32ch;
  padding: .65rem .85rem;
  border-radius: .65rem .65rem .2rem .65rem;
  background: #e1ece6;
  color: #172620;
}
.example-answer { max-inline-size: 38ch; }
.example-answer strong { color: var(--landing-jade-light); }
.request-example { border-block-start: 1px solid var(--theme-inverse-border); }
.request-example summary {
  padding: .35rem clamp(1rem, 3vw, 1.65rem);
  color: var(--landing-jade-light);
}
.request-example summary:focus-visible { outline-offset: -.25rem; outline-color: var(--landing-jade-light); }

.landing .pricing-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: .6rem;
  margin-block: 1.15rem 1.65rem;
  padding-block-end: 0;
  border: 0;
}
.landing .pricing-shortcuts a {
  display: grid;
  gap: .12rem;
  padding: .7rem .95rem;
  background: var(--landing-stage);
  border: 1px solid var(--landing-grid);
  border-radius: .55rem;
  text-decoration: none;
}
.landing .pricing-shortcuts a:is(:hover, :focus-visible) { border-color: var(--theme-brand); }
.landing .pricing-shortcuts strong {
  font-size: clamp(1.05rem, .95rem + .55vw, 1.45rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
}
.landing .pricing-shortcuts a:is(:hover,:focus-visible) > span { text-decoration: underline; }

.landing .pricing-preview-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
}
.landing .pricing-preview-heading .button { margin: 0; }
.landing .pricing-preview .pricing-shortcuts { margin-block-end: 0; }
.landing .api-feature-copy .product-status {
  width: fit-content;
  margin: 0 0 .8rem;
  padding: .3rem .6rem;
  border: 1px solid #a9c8b9;
  border-radius: .35rem;
  color: #0b3e35;
  font-size: .82rem;
  font-weight: 750;
}
