/* Signup and pricing page: a bare top bar, the pricing hero (copy and the trial button on the left, the two plan cards on the right),
   Questions & Answers and a closing band. Every trial button leads to the login page (login.html).
   The page has no motion of its own: buttons reuse Hero's .button variants and .hero__notes, the accordion opens without easing,
   the logos are static and the plan cards (below) are plain gradients. */
.pricing-page {
  /* Q&A accordion: open and close at once (the duration is read in good-questions.css). */
  --good-questions-motion-duration: 0ms;
  /* This page has no fixed site header, so the Q&A heading sticks closer to the top. */
  --good-questions-sticky-top: var(--space-48);
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--color-lp-headline);
  background: var(--color-canvas);
}

/* The Hero backdrop (.hero__wash in layout.css) is pinned to the viewport, so every part of the page shares one background.
   The Q&A band and footer drop their own fills (good-questions.css, footer.css) to let it show. */
.pricing-page .hero__wash {
  position: fixed;
  height: 100%;
  mask-image: none;
}

.pricing-page .good-questions,
.pricing-page .footer { background: transparent; }

/* The pricing FAQ sits 128px below the approach band and 128px above the closing band, at every width.
   The home page uses the same FAQ markup and keeps its own spacing from good-questions.css. */
.pricing-page .good-questions--faq { padding-block: var(--space-128); }

/* Content sits above the backdrop. */
.pricing-page__bar,
.pricing-page__main,
.footer {
  position: relative;
  z-index: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pricing-page__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  width: min(calc(100% - 2 * var(--page-gutter)), var(--section-track));
  margin-inline: auto;
  padding-block: var(--space-24);
}

.pricing-page__brand {
  display: inline-flex;
  color: inherit;
  text-decoration: none;
}

.pricing-page__logo { --elevate-logo-height: var(--space-32); }

.pricing-page__back {
  gap: var(--space-8);
  white-space: nowrap;
}

.pricing-page__back-icon {
  flex: none;
  width: var(--space-16);
  height: var(--space-16);
}

/* Every block in the main column is capped to the page track; the Q&A and approach bands stay full width. */
.pricing-page__main > :not(.good-questions, .pricing-approach) {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--section-track));
  margin-inline: auto;
}

.pricing-hero {
  display: grid;
  /* The copy is at most 700px wide and the plan cards sit at the right edge of the track; the gap keeps at least 56px between them,
     and on narrower pages the copy takes what the cards leave. */
  grid-template-columns: minmax(0, 700px) minmax(0, 440px);
  justify-content: space-between;
  column-gap: var(--space-56);
  /* The first card's top edge lines up with the eyebrow. */
  align-items: start;
  padding-block: var(--space-128) var(--space-128);
}



.pricing-hero__eyebrow {
  margin: 0 0 var(--space-16);
  color: var(--color-other-features-eyebrow);
}

/* The page's only h1, set in the H2 style. */
.pricing-hero__title {
  margin: 0;
  font: var(--type-h2-font);
  letter-spacing: var(--type-h2-letter-spacing);
}

.pricing-hero__body {
  margin: var(--space-24) 0 0;
  color: var(--color-lp-subhead);
  font: var(--type-body-1-font);
}

/* The trial button sits 64px below the body text; the check list sits 32px below the button (the same on every width). */
.pricing-hero__cta { margin-top: var(--space-64); }
.pricing-hero__notes { margin: var(--space-32) 0 0; }

/* Plan cards: two cards, one gradient. Both paint the Paper sky scene (assets/backgrounds/paper-sky.svg) at the size of the whole
   stack and offset it by their own position, so the picture runs on from the first card into the second instead of repeating.
   pricing-plans.js sets --plans-w/-h on the stack and --plan-x/-y on each card; without them each card shows the whole scene.
   Cards have no border: the gradient edge is the card edge. */
.pricing-plans { width: 100%; }

.pricing-plans__cards {
  position: relative;
  display: grid;
  gap: var(--space-16);
}

.pricing-plan {
  box-sizing: border-box;
  border-radius: var(--space-8);
  background-color: var(--color-white);
  background-image: url("../assets/backgrounds/paper-sky.svg");
  background-repeat: no-repeat;
  background-size: var(--plans-w, 100%) var(--plans-h, 100%);
  background-position: calc(-1 * var(--plan-x, 0px)) calc(-1 * var(--plan-y, 0px));
  color: var(--color-lp-headline);
}

.pricing-plan__name {
  margin: 0;
  font: var(--type-body-1-font);
  font-weight: 600;
}

.pricing-plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  margin: 0;
}

.pricing-plan__amount {
  font: var(--type-h1-font);
  letter-spacing: var(--type-h1-letter-spacing);
}

.pricing-plan__period,
.pricing-plan__billing {
  margin: 0;
  color: var(--color-lp-subhead);
  font: var(--type-body-1-font);
}

/* Yearly is the recommended plan: a little more room. The Save badge is .feature-card__badge (other-features.css). */
.pricing-plan--yearly { padding: var(--space-32); }

.pricing-plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.pricing-plan--yearly .pricing-plan__price { margin-top: var(--space-24); }
.pricing-plan--yearly .pricing-plan__billing { margin-top: var(--space-16); }

.pricing-plan--monthly {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-24) var(--space-32);
}

.pricing-plan--monthly .pricing-plan__amount {
  font: var(--type-h3-font);
  letter-spacing: var(--type-h2-letter-spacing);
}

.pricing-plans__note {
  margin: var(--space-16) 0 0;
  color: var(--color-lp-subhead);
  font: var(--type-body-2-font);
  text-align: center;
}

/* "How we think about pricing": the title and intro centred on the page, the two cards centred underneath them, on the plain site backdrop.
   Below 640px the cards stack. The cards repeat the feature-card surface from other-features.css: white, 8px corners; their text stays left-aligned. */
.pricing-approach__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: var(--space-56);
  width: min(calc(100% - 2 * var(--page-gutter)), var(--section-track));
  margin-inline: auto;
  padding-block: var(--space-96) var(--space-128);
}

.pricing-approach__title {
  margin: 0;
  font: var(--type-h2-font);
  letter-spacing: var(--type-h2-letter-spacing);
}

.pricing-approach__body {
  max-width: 520px;
  margin: var(--space-24) auto 0;
  color: var(--color-lp-subhead);
  font: var(--type-body-1-font);
}

.pricing-approach__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-24);
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.pricing-approach__item {
  position: relative;
  padding: var(--space-32);
  text-align: left;
  border-radius: var(--space-8);
  background: var(--color-white);
}

.pricing-approach__item-title {
  margin: 0;
  font: var(--type-h4-font);
  letter-spacing: -0.024em;
}

.pricing-approach__item-body {
  margin: var(--space-8) 0 0;
  color: var(--color-lp-subhead);
  font: var(--type-body-1-font);
}

/* Buttons are the Hero pair: orange glowing primary and white secondary. Hero scopes the orange to .hero__actions,
   so this page repeats it; the glow needs the wrapper to be the stacking context (see layout.css). */
/* Hero's .button is used on <a>; these are <button>s, so drop the native border and show the pointer. */
.pricing-page button.button {
  border: 0;
  appearance: none;
  cursor: pointer;
}

.pricing-page .button--primary { background: var(--color-hero-cta); }
.pricing-page .button--primary:hover { background: color-mix(in srgb, var(--color-hero-cta), var(--color-black) 12%); }
.pricing-cta {
  /* The glow band behind .button--glow needs this stacking context (layout.css). */
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: var(--space-16);
  margin: var(--space-128) auto var(--space-96);
  text-align: center;
}

.pricing-cta__title {
  margin: 0;
  font: var(--type-h2-font);
  letter-spacing: var(--type-h2-letter-spacing);
}

.pricing-cta__body {
  max-width: 520px;
  margin: 0;
  color: var(--color-lp-subhead);
  font: var(--type-body-1-font);
}

/* The hero stacks by the width of its column, not the viewport, so narrower hosts (the design-system panel) stack too. */
.pricing-page__main { container-type: inline-size; }

@container (max-width: 1000px) {
  .pricing-hero {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: var(--space-48);
    padding-block: var(--space-128) var(--space-96);
    text-align: center;
  }

  .pricing-hero__copy { max-width: 640px; }
  /* Centred column across the full copy width, so each check sits on the centre line of the copy, like the text above it.
     Without width the list shrinks to its widest check and drifts off-centre. */
  .pricing-hero__notes { width: 100%; flex-direction: column; align-items: center; }
  .pricing-plans { max-width: 440px; text-align: left; }

  .pricing-approach__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-40);
    padding-block: var(--space-64) var(--space-96);
  }
}

@container (max-width: 640px) {
  .pricing-approach__inner { padding-block: var(--space-48) var(--space-72); }
  .pricing-approach__list { grid-template-columns: minmax(0, 1fr); }
  .pricing-approach__item { padding: var(--space-24); }
}

@media (max-width: 640px) {
  .pricing-hero { padding-block: var(--space-128) var(--space-72); }
  .pricing-plan--yearly { padding: var(--space-24); }
  .pricing-plan--monthly { padding: var(--space-16) var(--space-24); }
}

@media (max-width: 420px) {
  .pricing-page__logo { --elevate-logo-height: var(--space-24); }
}
