/* Gralus landing page sections. Loaded only on pages that contain them.
   The site's own look arrives as custom properties (accent, ink, background, fonts, corners) read from its stylesheets;
   without them everything falls back to the theme (currentColor, inherit). Headings keep the theme's own colour. */
.sa-sections {
  --sa-a: var(--sa-accent, var(--wp--preset--color--primary, #2f5bff));
  --sa-on: var(--sa-on-accent, #fff);
  --sa-i: var(--sa-ink, currentColor);
  --sa-b: var(--sa-bg, transparent);
  --sa-r: var(--sa-radius, 14px);
  --sa-br: var(--sa-btn-radius, 10px);
  --sa-tint: color-mix(in srgb, var(--sa-a) 8%, var(--sa-b));
  /* Alternate bands: the site's own background, a shade darker (keeps a warm or cool ground as it is). */
  --sa-soft: color-mix(in srgb, var(--sa-b) 96%, #000);
  --sa-line: color-mix(in srgb, var(--sa-i) 13%, transparent);
  --sa-line-strong: color-mix(in srgb, var(--sa-i) 85%, transparent);
  --sa-muted: color-mix(in srgb, var(--sa-i) 72%, var(--sa-b));
  --sa-gutter: clamp(20px, 4vw, 40px);
  color: var(--sa-i);
  background: var(--sa-b);
  line-height: 1.65;
  font-size: 1.0625rem;
  margin: 0 !important;
  padding: 0;
  max-width: none !important;
  overflow-wrap: break-word;
}
.sa-sections *, .sa-sections *::before, .sa-sections *::after { box-sizing: border-box; }
.sa-sections .wp-block-group, .sa-sections figure { margin: 0; }
/* Classic themes: WordPress wraps every group's blocks in an extra div; let its children sit in our grids. */
.sa-sections .wp-block-group__inner-container { display: contents; }
.sa-sections .sa-section { margin: 0; padding: clamp(56px, 8vw, 112px) 0; max-width: none; width: 100%; }
.sa-sections .sa-inner { width: min(var(--sa-width, 1200px), 100%); padding-inline: var(--sa-gutter); margin: 0 auto; max-width: none; }
.sa-sections .sa-inner > * + * { margin-top: 0; }
.sa-sections .sa-section:nth-child(odd):not(:first-child):not(.sa-cta) { background: var(--sa-soft); }

/* Type */
.sa-sections h1, .sa-sections h2, .sa-sections h3 { margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
.sa-sections .sa-hero-title { font-size: clamp(2.3rem, 4.4vw, 3.7rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 750; max-width: 22ch; }
.sa-sections h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); line-height: 1.1; font-weight: 720; }
.sa-sections h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 680; letter-spacing: -0.01em; }
.sa-sections p { margin: 0; }
.sa-sections p + p { margin-top: 0.9em; }
.sa-sections a:not(.sa-link):not(.wp-block-button__link) { color: var(--sa-a); text-underline-offset: 3px; }
.sa-sections .sa-eyebrow { font-size: 0.98rem; font-weight: 650; color: var(--sa-a); margin: 0 0 18px; letter-spacing: 0; }
.sa-sections .sa-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--sa-muted); max-width: 60ch; }
.sa-sections .sa-hero-title + .sa-lead { margin-top: 24px; }
.sa-sections .sa-head { max-width: 760px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.sa-sections .sa-intro { margin-top: 16px; font-size: 1.15rem; color: var(--sa-muted); max-width: 62ch; }

/* Buttons */
.sa-sections .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.sa-sections .wp-block-button { margin: 0; }
.sa-sections .sa-btn .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; border-radius: var(--sa-br); padding: 0.85em 1.55em; font-weight: 650; font-size: 1.02rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease; box-shadow: none; }
.sa-sections .sa-btn-primary .wp-block-button__link { background: var(--sa-a); color: var(--sa-on); border-color: var(--sa-a); }
.sa-sections .sa-btn-secondary .wp-block-button__link { background: transparent; color: var(--sa-i); border-color: var(--sa-line-strong); }
.sa-sections .sa-btn .wp-block-button__link:hover { transform: translateY(-1px); filter: brightness(0.94); }
.sa-sections .sa-btn .wp-block-button__link:focus-visible, .sa-sections .sa-link:focus-visible, .sa-sections summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--sa-a) 45%, transparent); outline-offset: 3px; }

/* Hero */
.sa-sections .sa-hero { background: var(--sa-tint); padding: clamp(64px, 9vw, 128px) 0; }
/* Full-width pages start under the theme's header: when it is fixed, clear it the way the theme's own pages do. */
.gralus-landing-main .sa-sections .sa-section:first-child { padding-top: calc(var(--sa-header-offset, 0px) + clamp(64px, 9vw, 128px)); }
.sa-sections .sa-hero.sa-has-side .sa-inner { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
/* Pictures keep their own proportions: site pictures are often infographics or screenshots with text to the edges. */
.sa-sections .sa-media img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; border-radius: var(--sa-r); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--sa-i) 45%, transparent); }
.sa-sections .sa-hero-points { background: var(--sa-b); border: 1px solid var(--sa-line); border-radius: var(--sa-r); padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--sa-i) 45%, transparent); }
.sa-sections .sa-points { list-style: none; margin: 0; padding: 0; }
.sa-sections .sa-points li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--sa-line); font-weight: 600; line-height: 1.45; margin: 0; }
.sa-sections .sa-points li:first-child { border-top: 0; }
.sa-sections .sa-points li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 18px; height: 10px; border-left: 2.5px solid var(--sa-a); border-bottom: 2.5px solid var(--sa-a); transform: rotate(-45deg); }

/* Numbers */
.sa-sections .sa-stats h2 { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.sa-sections .sa-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; }
.sa-sections .sa-stat { padding: 6px clamp(18px, 3vw, 36px); border-left: 1px solid var(--sa-line); }
.sa-sections .sa-stat:first-child { border-left: 0; padding-left: 0; }
.sa-sections .sa-stat-value { font-family: var(--sa-heading-font, inherit); font-size: clamp(2.5rem, 4.6vw, 3.75rem); font-weight: 750; line-height: 1; letter-spacing: -0.035em; color: var(--sa-a); }
.sa-sections .sa-stat-label { margin-top: 12px; color: var(--sa-muted); font-size: 1rem; max-width: 26ch; }

/* Benefits, features, steps */
.sa-sections .sa-grid { display: grid; gap: clamp(28px, 3.5vw, 48px) clamp(24px, 3vw, 40px); }
.sa-sections .sa-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sa-sections .sa-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sa-sections .sa-card { position: relative; padding-top: 24px; border-top: 2px solid var(--sa-line-strong); }
.sa-sections .sa-card p { margin-top: 10px; color: var(--sa-muted); }
.sa-sections .sa-card p:empty { display: none; }
.sa-sections .sa-steps .sa-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.sa-sections .sa-steps .sa-card { border-top-color: var(--sa-a); }
.sa-sections .sa-num { display: block; font-family: var(--sa-heading-font, inherit); font-size: 2.6rem; font-weight: 750; line-height: 1; letter-spacing: -0.04em; color: var(--sa-a); margin-bottom: 18px; }

/* Text and text with picture */
.sa-sections .sa-text .sa-inner { max-width: 760px; }
.sa-sections .sa-text h2 { margin-bottom: 24px; }
.sa-sections .sa-text h3 { margin: 1.6em 0 0.5em; }
.sa-sections .sa-text ul, .sa-sections .sa-text ol { margin: 1em 0; padding-left: 1.3em; }
.sa-sections .sa-split .sa-split-copy { max-width: 760px; }
.sa-sections .sa-split .sa-split-copy h2 { margin-bottom: 24px; }
.sa-sections .sa-split .sa-split-copy .sa-points { margin-top: 24px; }
.sa-sections .sa-split.sa-has-side .sa-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.sa-sections .sa-split.sa-reverse.sa-has-side .sa-split-media { order: -1; }

/* Related pages */
.sa-sections .sa-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.sa-sections .sa-link { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 56px 24px 24px; border: 1px solid var(--sa-line); border-radius: var(--sa-r); background: var(--sa-b); color: inherit; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.sa-sections .sa-link:hover { border-color: var(--sa-a); transform: translateY(-2px); }
.sa-sections .sa-link-label { font-weight: 680; font-size: 1.08rem; }
.sa-sections .sa-link-text { color: var(--sa-muted); font-size: 0.96rem; }
.sa-sections .sa-link-arrow { position: absolute; right: 22px; top: 24px; color: var(--sa-a); font-weight: 700; transition: transform 0.15s ease; }
.sa-sections .sa-link:hover .sa-link-arrow { transform: translateX(4px); }

/* Testimonials */
.sa-sections .sa-testimonials .sa-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sa-sections .sa-quote { margin: 0; padding: 0; border: 0; font-style: normal; }
.sa-sections .sa-quote::before { content: "“"; display: block; font-family: Georgia, serif; font-size: 4rem; line-height: 0.8; color: var(--sa-a); }
.sa-sections .sa-quote p { font-size: 1.2rem; line-height: 1.55; margin: 8px 0 18px; }
.sa-sections .sa-quote cite { font-style: normal; font-weight: 650; }
.sa-sections .sa-cite-detail { display: block; font-weight: 400; color: var(--sa-muted); font-size: 0.95rem; }

/* Pricing */
.sa-sections .sa-pricing .sa-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.sa-sections .sa-pricing .sa-grid:has(.sa-plan:only-child) { max-width: 560px; }
.sa-sections .sa-plan { border: 1px solid var(--sa-line); border-radius: var(--sa-r); padding: clamp(26px, 3vw, 36px); background: var(--sa-b); }
.sa-sections .sa-plan-featured { border: 2px solid var(--sa-a); }
.sa-sections .sa-price { font-family: var(--sa-heading-font, inherit); font-size: clamp(2.2rem, 3.6vw, 2.8rem); font-weight: 750; letter-spacing: -0.03em; margin: 12px 0 4px; line-height: 1.1; }
.sa-sections .sa-plan-detail { color: var(--sa-muted); }
.sa-sections .sa-plan-list { list-style: none; padding: 0; margin: 22px 0 0; }
.sa-sections .sa-plan-list li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--sa-line); margin: 0; }
.sa-sections .sa-plan-list li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 14px; height: 8px; border-left: 2px solid var(--sa-a); border-bottom: 2px solid var(--sa-a); transform: rotate(-45deg); }
.sa-sections .sa-plan .wp-block-buttons { margin-top: 26px; }

/* Questions and answers */
.sa-sections .sa-faq .sa-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sa-sections .sa-faq .sa-head { position: sticky; top: 110px; margin-bottom: 0; }
.sa-sections .sa-faq-item { border: 0; border-bottom: 1px solid var(--sa-line); border-radius: 0; padding: 0; margin: 0; }
.sa-sections .sa-faq-item:first-child { border-top: 1px solid var(--sa-line); }
.sa-sections .sa-faq-item summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 650; font-size: 1.1rem; line-height: 1.4; }
.sa-sections .sa-faq-item summary::-webkit-details-marker { display: none; }
.sa-sections .sa-faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--sa-a); line-height: 1; }
.sa-sections .sa-faq-item[open] summary::after { content: "−"; }
.sa-sections .sa-faq-item p { margin: 0 0 22px; color: var(--sa-muted); max-width: 64ch; }

/* Call to action */
.sa-sections .sa-cta { background: var(--sa-a); color: var(--sa-on); }
.sa-sections .sa-cta .sa-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; }
.sa-sections .sa-cta h2 { color: var(--sa-on); grid-column: 1; max-width: 22ch; font-size: clamp(2rem, 4vw, 3.2rem); }
.sa-sections .sa-cta .sa-lead { color: color-mix(in srgb, var(--sa-on) 85%, var(--sa-a)); grid-column: 1; margin-top: 0; }
.sa-sections .sa-cta .wp-block-buttons { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; }
.sa-sections .sa-cta .sa-btn-primary .wp-block-button__link { background: var(--sa-on); color: var(--sa-a); border-color: var(--sa-on); }

/* Contact */
.sa-sections .sa-contact.sa-has-side .sa-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.sa-sections .sa-contact .sa-lead { margin-top: 18px; }
.sa-sections .sa-contact-list { list-style: none; padding: clamp(22px, 3vw, 34px); margin: 0; background: var(--sa-b); border: 1px solid var(--sa-line); border-radius: var(--sa-r); }
.sa-sections .sa-contact-list li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--sa-line); margin: 0; }
.sa-sections .sa-contact-list li:first-child { border-top: 0; }
.sa-sections .sa-contact-list li span { font-weight: 600; color: var(--sa-muted); }

@media (max-width: 860px) {
  .sa-sections .sa-hero.sa-has-side .sa-inner, .sa-sections .sa-split.sa-has-side .sa-inner, .sa-sections .sa-faq .sa-inner, .sa-sections .sa-contact.sa-has-side .sa-inner, .sa-sections .sa-cta .sa-inner { grid-template-columns: 1fr; }
  .sa-sections .sa-faq .sa-head { position: static; }
  .sa-sections .sa-cta .wp-block-buttons { grid-column: 1; grid-row: auto; }
  .sa-sections .sa-split.sa-reverse.sa-has-side .sa-split-media { order: 0; }
  .sa-sections .sa-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .sa-sections { font-size: 1rem; }
  .sa-sections .sa-section { padding: 56px 0; }
  .sa-sections .sa-hero { padding: 56px 0 64px; }
  .gralus-landing-main .sa-sections .sa-section:first-child { padding-top: calc(var(--sa-header-offset, 0px) + 48px); }
  .sa-sections .sa-grid-2, .sa-sections .sa-grid-3 { grid-template-columns: 1fr; }
  .sa-sections .sa-stat { border-left: 0; padding: 18px 0; border-top: 1px solid var(--sa-line); }
  .sa-sections .sa-stat:first-child { border-top: 0; }
  .sa-sections .wp-block-buttons .wp-block-button, .sa-sections .wp-block-buttons .wp-block-button__link { width: 100%; justify-content: center; }
  .sa-sections .sa-contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .sa-sections .sa-btn .wp-block-button__link, .sa-sections .sa-link, .sa-sections .sa-link-arrow { transition: none; }
}
