/* Comfortable reading sizes shared by both themes. Point sizes follow the design request. */
html[data-theme] .hero h1,
html[data-theme] .hero .hero-description,
html[data-theme] .hero .risk-strip,
html[data-theme] .solution .section-intro {
  position: relative;
  isolation: isolate;
}
html[data-theme="light"] .hero h1::before,
html[data-theme="light"] .hero .hero-description::before,
html[data-theme="light"] .hero .risk-strip::before,
html[data-theme="light"] .solution .section-intro::before {
  background: #fff;
}
html[data-theme] .hero h1::before,
html[data-theme] .hero .hero-description::before,
html[data-theme] .hero .risk-strip::before,
html[data-theme] .solution .section-intro::before {
  content: "";
  position: absolute;
  inset: -28px 28px -28px -38px;
  z-index: -1;
  pointer-events: none;
  border-radius: 25%;
  filter: blur(24px);
}
/* A broad, softly feathered surface keeps the grid out of the reading area. */
html[data-theme] .hero .hero-description::before {
  inset: -22px 0 -22px -26px;
  border-radius: 12px;
  filter: blur(16px);
}
html[data-theme] .hero .risk-strip::before {
  inset: -12px 0 -24px -26px;
  border-radius: 16px;
  filter: blur(18px);
}
html[data-theme="light"] .solution .section-intro::before {
  background: #f5f7fb;
}
html[data-theme] .solution .section-intro::before {
  inset: -28px -24px -30px;
  border-radius: 20px;
  filter: blur(24px);
}

/* Keep every solution reading area clear while retaining the surrounding grid. */
html[data-theme] .solution :is(.feature-copy, .compact-feature) {
  position: relative;
  isolation: isolate;
}
html[data-theme] .solution .compact-feature > :is(.feature-kicker, h3, p) {
  position: relative;
}
html[data-theme="light"] .solution .feature-copy::before,
html[data-theme="light"] .solution .compact-feature > :is(.feature-kicker, h3, p)::before {
  background: var(--copy-grid-surface, #f8f9fc);
}
html[data-theme] .solution .feature-copy::before,
html[data-theme] .solution .compact-feature > :is(.feature-kicker, h3, p)::before {
  content: "";
  position: absolute;
  inset: -22px -18px -24px;
  z-index: -1;
  pointer-events: none;
  border-radius: 16px;
  filter: blur(18px);
}
/* Follow the solution section's pale blue-to-white background. */
html[data-theme="light"] #payback { --copy-grid-surface: #f6f8fc; }
html[data-theme="light"] #editor-brief { --copy-grid-surface: #fafbfd; }
html[data-theme="light"] .solution .compact-feature { --copy-grid-surface: #fdfdfe; }

/* Supporting descriptions directly beneath the main page and section headings. */
html[data-theme] .hero .hero-description,
html[data-theme] .product-demo-section .section-intro > p,
html[data-theme] .problem .section-intro > p,
html[data-theme] .solution .section-intro > p,
html[data-theme] .trust-panel > div > p,
html[data-theme] .stories .stories-heading > p,
html[data-theme] .pricing-section .pricing-heading-copy > p,
html[data-theme] .final-cta .centered > p:not(.cta-hint),
html[data-theme] dialog .preview-channel,
html[data-theme] dialog .dialog-disclosure {
  font-size: 16pt;
  line-height: 1.65;
}
html[data-theme] :is(.product-demo-section,.problem,.solution) .section-intro > p { max-width: 760px; }
html[data-theme] .trust-panel > div > p { max-width: 440px; }
html[data-theme] .stories .stories-heading > p { max-width: 410px; }
html[data-theme] .pricing-section .pricing-heading-copy > p { max-width: 720px; }

/* Three generous rows keep the reassurance easy to read without adding a new claim. */
html[data-theme] .hero .risk-strip {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 26px;
  padding-top: 24px;
}
html[data-theme] .hero .risk-strip > div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 0;
}
html[data-theme] .hero .risk-strip > div > span { display: block; }
html[data-theme] .hero .risk-strip svg { width: 26px; height: 26px; margin: 1px 0 0; }
html[data-theme] .hero .risk-strip strong { font-size: 14pt; line-height: 1.4; }
html[data-theme] .hero .risk-strip small { font-size: 12pt; line-height: 1.5; margin-top: 3px; }

@media (min-width:851px) {
  html[data-theme] .hero .hero-inner { height: auto; min-height: max(900px, calc(100svh - 96px)); }
  html[data-theme] .hero .hero-copy { padding: 56px 0 64px; }
  html[data-theme] .hero h1 { margin-top: clamp(32px,3vw,54px); }
}
@media (max-width:850px) {
  html[data-theme] .hero .hero-copy { padding-bottom: 48px; }
  html[data-theme] .hero .hero-description { max-width: 650px; }
}
@media (max-width:600px) {
  html[data-theme] .hero h1::before { inset: -20px -16px -20px -26px; filter: blur(20px); }
  html[data-theme] .hero .hero-description::before { inset: -20px -12px -20px -23px; }
  html[data-theme] .hero .risk-strip::before { inset: -12px -12px -24px -23px; }
  html[data-theme] .solution .section-intro::before { inset: -24px -14px -28px; filter: blur(20px); }
  html[data-theme] .solution .feature-copy::before,
  html[data-theme] .solution .compact-feature > :is(.feature-kicker, h3, p)::before {
    inset: -20px -12px -22px;
    filter: blur(16px);
  }
  html[data-theme] .hero .risk-strip { gap: 20px; }
  html[data-theme] .hero .risk-strip > div { gap: 10px; }
}
