/* Shared privacy controls and accessibility fixes on every page. */
/* Text surfaces are opaque; decorative artwork remains outside the text. */
main::before,
.campaign-hero::before,
.offer-card::before,
.workflow::before {
  display: none;
}
.offer-card {
  background: #063f35;
}
.offer-promise a {
  color: #a9efbd;
}
.offer-scope a {
  color: #d1e4d9;
  text-decoration: underline;
}
.calc-reduction [data-reduction-label] {
  color: #087d54;
  font-size: 1.4rem;
}
.demo-reset {
  color: #075e54;
}
.workflow {
  background: #075e54;
}
.demo-messages {
  background-image: none;
}
.demo-decisions > p {
  background: #efeae2;
}
.site-header,
.nav-links,
.math-equation,
.offer-price {
  flex-wrap: wrap;
}
.large-text .site-header,
.large-text .proof-copy {
  position: static;
}
.large-text .demo-phone {
  transform: none;
}
[hidden] {
  display: none !important;
}
html {
  scroll-padding-block: 110px calc(120px + var(--cookie-banner-height, 0px));
}
body {
  padding-bottom: calc(80px + var(--cookie-banner-height, 0px));
}
body.has-mobile-offer {
  padding-bottom: calc(180px + var(--cookie-banner-height, 0px));
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #075e54;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #fff;
}
.skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  inset-inline-end: auto;
  z-index: 100;
  max-width: calc(100% - 2rem);
  transform: translateY(-200%);
}
.skip-link:focus {
  top: 1rem;
  transform: none;
}
.site-footer,
.site-footer div {
  flex-wrap: wrap;
}
.site-footer a,
.footer-control,
.language-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a:not(.brand),
.legal-tools a,
.contact-details a {
  text-decoration: underline;
  text-underline-offset: .18em;
}
.footer-control {
  border: 0;
  padding: .4rem 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.site-notice {
  flex-basis: 100%;
  margin: 0;
}
.site-notice:empty {
  display: none;
}
.cookie-banner {
  position: fixed;
  z-index: 40;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-height: 65dvh;
  overflow: auto;
  padding: 1.25rem max(1rem, calc((100vw - 1120px) / 2));
  padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  background: #fff;
  color: #111b21;
  border-top: 3px solid #075e54;
  box-shadow: 0 -8px 36px #063f3526;
}
.cookie-copy {
  flex: 1 1 34rem;
}
.cookie-banner h2 {
  font-size: 1.25rem;
  margin: 0 0 .4rem;
}
.cookie-banner p {
  font-size: .9rem;
  margin: .4rem 0;
}
.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.cookie-banner .privacy-actions {
  flex: 0 1 22rem;
}
.site-dialog button,
.privacy-actions button,
.accessibility-trigger {
  border: 1px solid #075e54;
  border-radius: .6rem;
  min-height: 44px;
  padding: .65rem .9rem;
  background: #e6f8eb;
  color: #075e54;
  font: 600 .9rem/1.5 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.privacy-actions button {
  flex: 1 1 auto;
}
.site-dialog button:hover,
.privacy-actions button:hover,
.accessibility-trigger:hover {
  background: #cbeed6;
}
.cookie-banner a,
.site-dialog a {
  color: #075e54;
  text-decoration: underline;
}
.site-dialog {
  width: min(40rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  margin: auto;
  border: 1px solid #075e54;
  border-radius: 1rem;
  padding: clamp(1rem, 4vw, 2rem);
  color: #111b21;
  background: #fff;
  line-height: 1.7;
}
.site-dialog::backdrop {
  background: #111b21b3;
}
.site-dialog .dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.site-dialog h2 {
  font-size: 1.4rem;
  margin: 0;
}
.site-dialog h3 {
  font-size: 1.1rem;
}
.site-dialog fieldset {
  min-width: 0;
  border: 1px solid #54656f;
  border-radius: .6rem;
  margin: 1rem 0;
  padding: 1rem;
}
.site-dialog select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: .5rem;
  margin-block: .5rem 1rem;
  font: inherit;
}
.preference-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding-block: .5rem;
  cursor: pointer;
}
.preference-row input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  accent-color: #075e54;
}
.accessibility-trigger {
  position: fixed;
  inset-inline-end: 1rem;
  bottom: calc(1rem + var(--cookie-banner-height, 0px));
  z-index: 35;
  box-shadow: 0 3px 16px #063f3526;
}
.has-cookie-banner .mobile-offer,
body:has(dialog[open]) .mobile-offer {
  visibility: hidden;
}
/* Solid text keeps the hero above AA contrast, including the gradient's midpoint. */
.hero h1 .accent {
  color: #087d54;
  background: none;
  -webkit-text-fill-color: currentColor;
}
.brand-mark {
  color: #063f35;
}
.workflow-panel > p:not(.eyebrow) {
  color: #d6e8e2;
}
.contact-form input,
.contact-form select,
.calc-field input {
  border-color: #71847c;
}
.contact-form input[aria-invalid="true"] {
  border-color: #9d3029;
}
.form-status.error {
  color: #9d3029;
}
.field-error {
  display: block;
  color: #9d3029;
  font-size: .85rem;
  margin-top: .3rem;
}
.field-error:empty {
  display: none;
}
.storage-table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1rem;
}
.storage-table th,
.storage-table td {
  border: 1px solid #71847c;
  padding: .7rem;
  text-align: start;
}
.calculator-grid > *,
.calc-fields > *,
.hero > * {
  min-width: 0;
}
main,
.site-footer,
.site-dialog {
  overflow-wrap: anywhere;
}
.a11y-links a {
  text-decoration: underline !important;
}
.a11y-contrast body,
.a11y-contrast body * {
  color: #fff !important;
  background-color: #111 !important;
  background-image: none !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}
.a11y-contrast a {
  color: #ffef6b !important;
  text-decoration: underline !important;
}
.a11y-contrast :focus-visible {
  outline-color: #ffef6b !important;
}
.a11y-contrast input,
.a11y-contrast select {
  color-scheme: dark;
}
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.reduce-motion .hero-scene *,
.reduce-motion .product-demo,
.reduce-motion .guarantee-seal {
  transform: none !important;
}
html.reduce-motion {
  scroll-behavior: auto;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 799px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
  }
  .cookie-copy,
  .cookie-banner .privacy-actions {
    flex: auto;
  }
  .site-header {
    position: relative;
    flex-wrap: wrap;
    gap: .75rem;
    padding-block: .75rem;
  }
}
@media (max-width: 560px) {
  .site-header .nav-links {
    display: flex;
    order: 3;
    flex-basis: 100%;
    gap: .5rem 1rem;
  }
  .accessibility-trigger {
    /* Reserve a real row so reading and editing never pass under the button. */
    position: static;
    display: block;
    max-width: calc(100% - 2rem);
    margin: .5rem 1rem 1rem;
    box-shadow: none;
  }
  .site-footer {
    gap: .75rem;
  }
  .calc-fields {
    grid-template-columns: 1fr;
  }
}
@media print {
  .cookie-banner,
  .accessibility-trigger,
  .mobile-offer,
  dialog {
    display: none !important;
  }
  body {
    padding: 0 !important;
  }
}
