.landing-pricing {
  position: relative;
  --pricing-surround: #f8f8f8;
  --pricing-surface: #fff;
  scroll-margin-top: 84px;
  margin-top: 32px;
  border: 1px solid var(--line);
  background: var(--pricing-surface);
  color: var(--ink);
}
/* The page frame has a continuous background. Match the outer canvas between sections. */
:is(.landing-pricing, .landing-footer)::before {
  content: "";
  position: absolute;
  inset: -33px -1px auto;
  height: 32px;
  background: var(--pricing-surround);
}
:root[data-landing-theme="dark"] .landing-pricing {
  --pricing-surround: #101010;
  --pricing-surface: #171717;
}
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pricing-offer { padding: clamp(24px, 3vw, 40px); }
.pricing-free { border-inline-end: 1px solid var(--line); }
.pricing-offer h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}
.pricing-offer .workflow-start {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: var(--infull-control-size);
  line-height: var(--infull-control-line);
  font-weight: 500;
}
.pricing-offer .workflow-start:hover { opacity: 1; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(.landing-pricing, .comparison-note) .workflow-start:hover .roll-track { transform: translateY(-17px); }
  .footer-trial .workflow-start:hover .roll-track { transform: translateY(-17px); }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.landing-pricing, .comparison-note) .workflow-start:focus-visible .roll-track { transform: translateY(-17px); }
  .footer-trial .workflow-start:focus-visible .roll-track { transform: translateY(-17px); }
}
.pricing-free .workflow-start {
  background: var(--pricing-surround);
  border-color: var(--line);
  color: var(--ink);
}
.pricing-plan-summary { min-height: 1.5em; margin: 0; color: var(--muted); }
.pricing-offer h4 { margin: 32px 0 8px; font-size: 14px; font-weight: 500; }
.pricing-rate { margin: 20px 0; color: var(--infull-text-muted); }
.pricing-quota { display: block; margin-top: 4px; font-size: var(--infull-label-size); line-height: var(--infull-label-line); }
.pricing-rate strong {
  color: var(--ink);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.pricing-offer .note, .pricing-benefits small {
  color: var(--infull-text-muted);
  font-size: var(--infull-label-size);
  line-height: var(--infull-label-line);
}
.pricing-offer .note { color: var(--infull-text-secondary); justify-self: stretch; min-height: 3em; margin: 8px 0 0; text-align: center; }
.pricing-benefits small { display: block; }
.pricing-benefits { list-style: none; padding: 0; margin: 0; }
.pricing-benefits li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 44px;
  padding: 6px 0;
  color: var(--muted);
}
.pricing-mark { display: block; width: 16px; height: 16px; margin-top: 2.5px; color: #ff6238; }
.pricing-benefits .excluded { color: var(--infull-text-muted); }
.pricing-benefits .excluded .pricing-mark { color: var(--infull-text-muted); }
@media (max-width: 767px) {
  .pricing-offer .note, .pricing-benefits li { min-height: 0; }
}
.pricing-notes {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
  background: var(--pricing-surface);
  grid-column: 1 / -1;
}
.pricing-details { border: 1px solid var(--line); background: var(--pricing-surface); }
.pricing-details summary { padding: 16px; cursor: pointer; }
.pricing-details > p {
  max-width: 52ch;
  margin: 0;
  padding: 0 16px 16px;
  color: var(--infull-text-secondary);
  font-size: .875rem;
  line-height: 1.55;
}
@media (min-width: 1200px) {
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pricing-notes { grid-column: auto; border-top: 0; border-inline-end: 1px solid var(--line); }
  .pricing-plan-summary { min-height: 3em; }
}
@media (max-width: 767px) {
    .pricing-grid { grid-template-columns: 1fr; }
  .pricing-plan-summary { min-height: 0; }
  .pricing-free { border-inline-end: 0; border-bottom: 1px solid var(--line); }
}

.pricing-offer .roll { flex: 0 1 auto; width: max-content; max-width: 100%; }
.pricing-offer .roll-track > span { white-space: nowrap; }

.pricing-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 24px clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
  background: var(--pricing-surface);
}
.pricing-contact-intro { display: flex; align-items: center; gap: 12px; }
.pricing-contact-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: url("assets/botanical-sunny.svg") center / 300% 100% no-repeat; }
.pricing-contact-avatar:not(.comparison-note-flower, .report-flower) { background-size: 345% 115%; }
.pricing-contact h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.pricing-contact p { margin: 0; color: var(--muted); }
.pricing-contact .workflow-start {
  padding: 12px 20px;
  font-weight: 500;
  background: var(--pricing-surface);
  border-color: var(--line);
  color: var(--ink);
}
@media (max-width: 767px) {
  .pricing-contact .workflow-start { width: 100%; text-align: center; }
}

.pricing-contact .workflow-start:hover { opacity: 1; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border-top: 1px solid var(--line); }
.faq-support, .faq-questions { padding: clamp(24px, 4vw, 56px); }
.faq-support { background: var(--pricing-surround); border-inline-end: 1px solid var(--line); }
.faq-support h3 { margin: 0; font-size: 20px; font-weight: 500; }
.faq-support p { margin: 8px 0 20px; color: var(--muted); }
.faq-support .workflow-start { background: var(--pricing-surface); color: var(--ink); border-color: var(--line); }
.faq-questions details { border-bottom: 1px solid var(--line); }
.faq-questions summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 16px 32px;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.faq-questions summary::-webkit-details-marker { display: none; }
.faq-questions summary::after { content: "+" / ""; font-size: 20px; line-height: 1; }
.faq-questions details[open] summary::after { content: "−" / ""; }
.faq-questions p { margin: 0 0 16px; color: var(--infull-text-secondary); font-size: 15px; line-height: 1.6; }
@media (max-width: 767px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-support { grid-row: 2; border-inline-end: 0; border-top: 1px solid var(--line); }
}

:is(.pricing-contact, .faq-support) .workflow-start {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  border-width: 0;
  box-shadow: inset 0 0 0 1px var(--line);
}
:is(.pricing-contact, .faq-support) .roll { flex: 0 1 auto; }
:is(.pricing-contact, .faq-support) .workflow-start {
  min-height: 44px;
  padding: 10px 20px;
}

.faq-support {
  align-self: start;
  justify-self: start;
  width: min(100% - 48px, 220px);
  margin: 16px 24px 24px;
  padding: 19px;
  border: 1px solid var(--line);
}
.faq-avatar {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: url("assets/botanical-sunny.svg") calc(100% + 2px) center / 330% 110% no-repeat;
}
.faq-support h3 { font-size: 16px; }
.faq-support p { margin: 4px 0 16px; font-size: 13px; }
.faq-support .workflow-start {
  width: 100%;
  background: var(--ink);
  color: var(--pricing-surface);
  box-shadow: none;
}
.faq-support .workflow-start:hover { opacity: 1; }
.faq-questions { display: grid; min-height: var(--faq-min-height, 0px); padding: 0; border-inline-start: 1px solid var(--line); }
.faq-questions details:not([open]) > summary { height: 100%; }
:is(.faq-questions, .pricing-notes) summary:hover,
:is(.faq-questions, .pricing-notes) details[open] { background: var(--pricing-surround); }
.faq-questions p { padding-inline: 32px; }
@media (prefers-reduced-motion: no-preference) {
  :is(.faq-questions, .pricing-notes) summary { transition: background-color 160ms ease; }
  :is(.faq-questions, .pricing-notes) details[open] > p { animation: faq-answer-in 220ms ease-out both; }
  @keyframes faq-answer-in { from { opacity: 0; transform: translateY(-6px); } }
}
@media (max-width: 767px) {
  .faq-questions { border-inline-start: 0; }
  .faq-questions summary { min-height: 60px; padding: 14px 24px; }
  .faq-questions p { padding-inline: 24px; }
}

@media (min-width: 768px) {
  .pricing-offer .workflow-start, .pricing-benefits { width: 100%; }
}
@media (min-width: 1200px) {
  .pricing-notes { grid-column: 1; grid-row: 1; }
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 768px) {
    .pricing-grid {
      /* Each plan has six rows before its seven shared benefit rows. */
      --pricing-benefit-rows: 7;
      --pricing-plan-rows: calc(6 + var(--pricing-benefit-rows));
    }
    .pricing-offer {
      display: grid;
      grid-row: 1 / span var(--pricing-plan-rows);
      grid-template-rows: subgrid;
      align-content: start;
      justify-items: start;
    }
    .pricing-benefits {
      display: grid;
      grid-row: span var(--pricing-benefit-rows);
      grid-template-rows: subgrid;
    }
  }
  @media (min-width: 1200px) {
    .pricing-notes { grid-row: 1 / span var(--pricing-plan-rows); }
  }
}
.faq-questions summary { scroll-margin-top: 84px; }

.landing-footer {
  position: relative;
  --pricing-surround: #f8f8f8;
  margin-top: 32px;
  min-height: 350px;
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
:root[data-landing-theme="dark"] .landing-footer {
  --pricing-surround: #101010;
  background: #101010;
}
.landing-footer {
  isolation: isolate;
}
.landing-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("assets/footer-ginkgo-upper.webp") left top / min(22%, 290px) auto no-repeat,
    url("assets/footer-ginkgo-lower.webp") right bottom / min(19.2%, 264px) auto no-repeat;
  mix-blend-mode: multiply;
}
:root[data-landing-theme="dark"] .landing-footer::after {
  display: none;
}
.landing-footer a { color: var(--ink); text-decoration: none; }
.landing-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.landing-footer p { color: var(--muted); }
.footer-bottom {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin-top: auto;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.footer-copyright { color: var(--muted); font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 16px; }
.footer-legal :is(button, a) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.footer-legal :is(button, a):hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: 85dvh;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
:root[data-landing-theme="dark"] .footer-legal-dialog { background: #171717; }
.footer-legal-dialog::backdrop { background: #0006; }
.footer-legal-dialog form { display: flex; justify-content: flex-end; }

.footer-legal-dialog { padding: 0; }
.legal-dialog-header {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px 16px;
  padding: 24px clamp(16px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
  background: inherit;
}
.legal-dialog-header h2 { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -.5px; }
.legal-dialog-header .legal-dates {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--infull-text-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}
.legal-dates :is(dt, dd) { display: inline; margin: 0; }
.legal-dates time { white-space: nowrap; }
.legal-dialog-header button {
  min-height: 35px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 500 13px/1.1 Inter, sans-serif;
  cursor: pointer;
}
:is(#footer-privacy, #footer-terms) .legal-dialog-header > :is(form, button) {
  flex-shrink: 0;
  margin-block-start: 0;
}
.legal-dialog-header button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.legal-dialog-copy { padding: 24px clamp(16px, 4vw, 32px) 32px; }
.legal-dialog-copy h3 { font-size: 16px; font-weight: 500; margin: 24px 0 8px; }
.legal-dialog-copy h3:first-child { margin-top: 0; }
.legal-dialog-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

.landing-footer {
  display: flex;
  flex-direction: column;
}
@media (max-width: 767px) {
  .landing-footer { min-height: 0; }
}

.landing-footer { padding-bottom: 32px; }

.footer-trial {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
  padding: clamp(36px, 7.5vw, 108px) 0 clamp(68px, 10vw, 144px);
}
.footer-trial h2 {
  margin: 0;
  font-size: clamp(16px, 5.2vw, 72px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.landing-faq { margin-top: 32px; }
.landing-faq::before { background: var(--pricing-surround); }
.footer-trial h2 span { color: var(--muted); }
.footer-trial .workflow-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg, #fff);
  text-decoration: none;
}
.footer-trial .workflow-start .roll { flex: 0 0 auto; width: max-content; }
.footer-trial .workflow-start { font-size: var(--infull-control-size); font-weight: 500; }
.footer-trial .workflow-start:hover { opacity: 1; text-decoration: none; }
.footer-trial p { margin: -12px 0 0; color: var(--infull-text-secondary); font-size: var(--infull-label-size); line-height: var(--infull-label-line); }

/* Keep legal-dialog scrolling separate from the page behind it. */
html:has(.footer-legal-dialog) { scrollbar-gutter: stable; }
html:has(.footer-legal-dialog[open]) { overflow: hidden; }
.footer-legal-dialog { overscroll-behavior: contain; }

.partners-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 24px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}
.partners-email .roll { flex: 0 0 auto; width: max-content; }

.partners-email:is(:hover, :focus-visible) .roll-track { transform: translateY(-50%); }
.partners-email:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.capacity-estimator {
  margin: 0 16px 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.capacity-estimator label, .capacity-estimator output { display: block; }
.capacity-estimator input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 8px 0 12px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--pricing-surface);
  color: var(--ink);
  font: inherit;
}
.pricing-details .capacity-estimator p { padding: 0; }
.capacity-estimator output { white-space: pre-line; }

.landing-page .capacity-estimator input:focus {
  outline: 1px solid #555;
  outline-offset: -1px;
}

:is(#footer-privacy, #footer-terms)[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
:is(#footer-privacy, #footer-terms) > .legal-dialog-header { flex: none; }
:is(#footer-privacy, #footer-terms) > .legal-dialog-copy {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-inline-end: 6px;
  scrollbar-width: thin;
  scrollbar-color: #aaa transparent;
}

body.partners-scroll-locked {
  position: fixed;
  top: var(--partners-scroll-top);
  left: 0;
  width: var(--partners-page-width);
}

.landing-page :is(.landing-pricing, .pricing-details, .faq-support, .footer-legal-dialog) { border-radius: 14px; }
.landing-page :is(.workflow-start, .legal-dialog-header button, .capacity-estimator input) { border-radius: 8px; }
