/* AmaSheet product guide. All rules are isolated to the series renderer. */
.raxis-amasheet-guide {
  --product-navy: #07182f;
  --product-navy-soft: #102744;
  --product-green: #17b878;
  --product-green-strong: #068b53;
  --product-green-ink: #056b42;
  --product-page: #f8fafb;
  --product-subtle: #f5f8f8;
  --product-border: #d8e1e8;
  --product-copy: #122238;
  --product-muted: #54667b;
  color: var(--product-copy);
  background: var(--product-page);
}

.raxis-product-shell,
.raxis-product-content {
  width: min(calc(100% - 3rem), 1180px);
  margin-inline: auto;
}

.raxis-product-content { width: min(calc(100% - 3rem), 1180px); }

.raxis-product-hero {
  padding: clamp(5.5rem, 9vw, 8.5rem) 0;
  color: #fff;
  background: radial-gradient(circle at 84% 18%, rgb(23 184 120 / 20%), transparent 24rem), var(--product-navy);
}

.raxis-product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
}

.raxis-product-eyebrow,
.raxis-product-section-number,
.raxis-product-navigation p,
.raxis-product-takeaways > p {
  margin: 0;
  color: #8ce7c0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.raxis-product-hero h1 {
  max-width: 12ch;
  margin: 1.25rem 0 0;
  color: #fff;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.raxis-product-hero-intro { max-width: 43rem; margin-top: 2rem; }
.raxis-product-hero-intro p { margin: 0.8rem 0 0; color: #d8e1e8; font-size: 1.05rem; line-height: 1.85; }
.raxis-product-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.raxis-product-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border: 1px solid #fff;
  border-radius: 0.65rem;
  color: #fff;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
}

.raxis-product-button.is-primary { border-color: var(--product-green); color: var(--product-navy); background: var(--product-green); }
.raxis-product-button.is-secondary { background: transparent; }

.raxis-product-takeaways {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 1.25rem;
  background: var(--product-navy-soft);
  box-shadow: 0 32px 70px rgb(0 0 0 / 22%);
}

.raxis-product-takeaways ol { display: grid; gap: 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: takeaway; }
.raxis-product-takeaways li { position: relative; padding: 0 0 1.25rem 3rem; border-bottom: 1px solid rgb(255 255 255 / 12%); color: #fff; line-height: 1.7; counter-increment: takeaway; }
.raxis-product-takeaways li:last-child { padding-bottom: 0; border-bottom: 0; }
.raxis-product-takeaways li::before { position: absolute; top: -0.15rem; left: 0; display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: var(--product-navy); background: var(--product-green); content: counter(takeaway, decimal-leading-zero); font-size: 0.68rem; font-weight: 900; }

.raxis-product-navigation { padding: 2.25rem 0; border-bottom: 1px solid var(--product-border); background: #fff; }
.raxis-product-navigation p { color: var(--product-green-ink); }
.raxis-product-navigation .raxis-product-shell > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.raxis-product-navigation a { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border: 1px solid var(--product-border); border-radius: 0.65rem; color: var(--product-copy); background: var(--product-page); font-size: 0.9rem; font-weight: 750; text-decoration: none; }
.raxis-product-navigation b { color: var(--product-green-strong); }

.raxis-product-section { padding: clamp(5.5rem, 8vw, 8rem) 0; scroll-margin-top: calc(var(--raxis-header-height) + 1rem); background: #fff; }
.raxis-product-section:nth-of-type(even) { background: var(--product-page); }
.raxis-product-section-number { color: var(--product-green-strong); }
.raxis-product-section h2 { max-width: 24ch; margin: 0.8rem 0 2rem; color: var(--product-copy); font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.25; letter-spacing: -0.035em; }
.raxis-product-section h3 { margin: 3rem 0 1rem; color: var(--product-copy); font-size: 1.35rem; line-height: 1.45; }
.raxis-product-section :where(p, li, td, th) { line-height: 1.85; }
.raxis-product-section :where(p, li) { color: var(--product-muted); }
.raxis-product-section a { color: var(--product-green-ink); font-weight: 750; }

.raxis-product-section table { display: block; width: 100%; margin: 2.25rem 0; overflow-x: auto; border-spacing: 0; border-collapse: collapse; background: #fff; }
.raxis-product-section :where(th, td) { min-width: 9rem; padding: 1rem; border: 1px solid var(--product-border); text-align: left; vertical-align: top; }
.raxis-product-section th { color: var(--product-copy); background: var(--product-subtle); }

.raxis-product-section.is-cards ol,
.raxis-product-section.is-cards > .raxis-product-content > ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
.raxis-product-section.is-cards ol > li,
.raxis-product-section.is-cards > .raxis-product-content > ul > li { min-height: 8rem; padding: 1.5rem; border: 1px solid var(--product-border); border-radius: 0.85rem; color: var(--product-copy); background: #fff; box-shadow: 0 12px 30px rgb(7 24 47 / 5%); font-weight: 700; }

.raxis-product-section#steps h3 { padding: 1.5rem 1.5rem 1.5rem 4.75rem; border: 1px solid var(--product-border); border-left: 4px solid var(--product-green); border-radius: 0.85rem; background: #fff; }
.raxis-product-section#steps h3 + p { margin: -0.25rem 1.5rem 0 4.75rem; }
.raxis-product-section.is-pricing table { border-radius: 0.85rem; box-shadow: 0 20px 45px rgb(7 24 47 / 7%); }
.raxis-product-section#limitations { background: #fffaf0; }
.raxis-product-section#limitations .raxis-product-content { padding: clamp(2rem, 5vw, 4rem); border: 1px solid #ecd49e; border-radius: 1rem; background: #fff; }

.raxis-product-section.is-dark { color: #fff; background: var(--product-navy); }
.raxis-product-section.is-dark :where(.raxis-product-section-number, h2, h3) { color: #fff; }
.raxis-product-section.is-dark :where(p, li) { color: #d8e1e8; }
.raxis-product-section.is-dark h3 { padding-top: 1.75rem; border-top: 1px solid rgb(255 255 255 / 16%); }

.raxis-product-section.is-faq { background: var(--product-subtle); }
.raxis-product-faq-list { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
.raxis-product-faq-item { border: 1px solid var(--product-border); border-radius: 0.8rem; background: #fff; }
.raxis-product-faq-item summary { position: relative; min-height: 68px; padding: 1.25rem 4rem 1.25rem 1.5rem; cursor: pointer; color: var(--product-copy); font-weight: 800; line-height: 1.5; }
.raxis-product-faq-item summary::after { position: absolute; top: 50%; right: 1.5rem; color: var(--product-green-strong); content: "+"; font-size: 1.5rem; transform: translateY(-50%); }
.raxis-product-faq-item[open] summary::after { content: "−"; }
.raxis-product-faq-item > div { padding: 0 1.5rem 1.5rem; }
.raxis-product-faq-item > div p:last-child { margin-bottom: 0; }

.raxis-product-section.is-final-cta { color: #fff; background: var(--product-green-strong); }
.raxis-product-section.is-final-cta .raxis-product-content { width: min(calc(100% - 3rem), 1000px); text-align: center; }
.raxis-product-section.is-final-cta :where(.raxis-product-section-number, h2, p, li, a) { color: #fff; }
.raxis-product-section.is-final-cta h2 { margin-inline: auto; }
.raxis-product-section.is-final-cta ul { display: inline-grid; gap: 0.35rem; text-align: left; }
.raxis-product-section.is-references { padding-block: 3rem; border-top: 1px solid var(--product-border); background: var(--product-page); }
.raxis-product-section.is-references h2 { font-size: 1.25rem; }

@media (min-width: 1025px) {
  .raxis-amasheet-guide { width: 100%; max-width: 100% !important; margin-inline: 0 !important; }

  /* The block editor does not carry the landing template wrapper. Break the
     product guide out of Gutenberg's narrow prose column for an honest preview. */
  .editor-styles-wrapper .raxis-amasheet-guide {
    position: relative;
    left: 50%;
    width: min(calc(100vw - 4rem), 1280px) !important;
    max-width: none !important;
    margin-inline: 0 !important;
    transform: translateX(-50%);
  }

  .raxis-product-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .raxis-product-hero-copy {
    display: grid;
    grid-template-columns: minmax(26rem, 0.95fr) minmax(0, 1.05fr);
    column-gap: clamp(3rem, 7vw, 6rem);
    align-items: start;
  }

  .raxis-product-hero-copy .raxis-product-eyebrow,
  .raxis-product-hero-copy h1 { grid-column: 1; }
  .raxis-product-hero-copy .raxis-product-hero-intro,
  .raxis-product-hero-copy .raxis-product-actions { grid-column: 2; }
  .raxis-product-hero-copy .raxis-product-hero-intro { grid-row: 1 / span 2; margin-top: 0; }
  .raxis-product-hero-copy .raxis-product-actions { grid-row: 3; align-self: start; }
  .raxis-product-hero h1 { max-width: none; font-size: clamp(3.5rem, 5vw, 4.75rem); text-wrap: balance; }

  .raxis-product-takeaways { padding: 2rem 2.5rem; }
  .raxis-product-takeaways ol { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .raxis-product-takeaways li {
    min-height: 4.5rem;
    padding: 0 2rem 0 3rem;
    border-right: 1px solid rgb(255 255 255 / 12%);
    border-bottom: 0;
  }
  .raxis-product-takeaways li:last-child { padding-right: 0; border-right: 0; }

  .raxis-product-section.is-cards ol,
  .raxis-product-section.is-cards > .raxis-product-content > ul { grid-template-columns: 1fr; }
  .raxis-product-section.is-cards ol > li,
  .raxis-product-section.is-cards > .raxis-product-content > ul > li {
    display: flex;
    min-height: 0;
    align-items: center;
    padding: 1.25rem 1.75rem;
  }
}

@media (max-width: 820px) {
  .raxis-product-hero-grid { grid-template-columns: 1fr; }
  .raxis-product-navigation .raxis-product-shell > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .raxis-product-shell, .raxis-product-content { width: min(calc(100% - 2rem), 100%); }
  .raxis-product-hero { padding: 4.5rem 0; }
  .raxis-product-hero h1 { font-size: 3rem; }
  .raxis-product-hero-intro p { font-size: 0.95rem; }
  .raxis-product-actions, .raxis-product-button { width: 100%; }
  .raxis-product-navigation .raxis-product-shell > div,
  .raxis-product-section.is-cards ol,
  .raxis-product-section.is-cards > .raxis-product-content > ul { grid-template-columns: 1fr; }
  .raxis-product-section { padding: 4.5rem 0; }
  .raxis-product-section h2 { font-size: 2rem; }
  .raxis-product-section#steps h3, .raxis-product-section#steps h3 + p { margin-left: 0; }
  .raxis-product-section#steps h3 { padding: 1.25rem; }
  .raxis-product-section#limitations .raxis-product-content { padding: 1.5rem; }
}
