/* MESH V9.36 — unified readable text over the approved MESH artwork.
   Loaded LAST on all public and account pages, after theme-specific styles.
   Keeps Matrix, Ion and Solar palettes and the original background graphic. */

/* Apply a dark, theme-matched veil to the bright full-screen artwork.
   Background art remains visible but never sits directly at full brightness
   behind important text. */
html[data-theme] body::before {
  background-image:
    linear-gradient(106deg,
      rgb(var(--mesh-deep-rgb) / .70) 0%,
      rgb(var(--mesh-deep-rgb) / .57) 48%,
      rgb(var(--mesh-deep-rgb) / .69) 100%),
    var(--mesh-bg-url);
  background-position:center center,center center;
  background-size:cover,cover;
  background-repeat:no-repeat,no-repeat;
}

/* Source page styles sometimes use pale grey on an image instead of a panel.
   The same readable palette is used consistently throughout the site. */
html[data-theme] :is(
  .v8-hero-copy>p,
  .v8-section-head>p,
  .v8-showcase-copy>p,
  .v8-review-copy p,
  .v4-hero>p,
  .v4-section>p,
  .v4-card p,
  .v4-row p,
  .v4-copy,
  .card-body p,
  .roadmap-card p,
  .download-card p,
  .mesh-resource-card p,
  .mesh-launch-copy p,
  .mesh-founders-head p,
  .mes-early-body p,
  .mes-plan-early-link p,
  .v4-details details>div,
  .site-footer .footer-brand span,
  .site-footer .footer-groups small,
  .site-footer .footer-groups a,
  .site-footer .footer-bottom
) {
  color:var(--mesh-subtext);
}

/* Any text placed on the backdrop without a container receives gentle
   separation instead of neon outlines or unreadable bright-glow effects. */
html[data-theme] :is(
  .v4-hero>p,
  .v4-section>p,
  .v8-section-head>p,
  .v8-hero-copy>p
) {
  text-shadow:0 2px 12px rgb(var(--mesh-deep-rgb) / .82);
}

/* Stop the giant MESH image overpowering the launch and customer-registration
   introductions (as seen in the previous desktop screenshots). */
html[data-theme] .mes-customer-page .mes-account-intro {
  min-width:0;
  isolation:isolate;
  padding:clamp(20px,2.65vw,34px);
  border:1px solid rgb(var(--mesh-primary-rgb) / .38);
  border-radius:21px;
  background:linear-gradient(145deg,
    rgb(var(--mesh-panel-rgb) / .975),
    rgb(var(--mesh-deep-rgb) / .965));
  box-shadow:0 22px 68px rgba(0,0,0,.33);
}
html[data-theme] .mes-account-hero .mes-account-intro h1 {
  font-size:clamp(2.18rem,4.25vw,4.55rem);
  line-height:1.11;
  overflow-wrap:break-word;
}
html[data-theme] .mes-account-hero .mes-account-intro>p,
html[data-theme] .mes-account-hero .mes-account-intro .mes-terms-short {
  color:var(--mesh-subtext);
  text-shadow:none;
  font-size:clamp(.92rem,1.05vw,1.03rem);
  line-height:1.77;
}
html[data-theme] .mes-account-intro .mes-terms-short {
  font-size:max(.88rem,14px);
}
html[data-theme] .mes-account-hero .mes-offer-summary,
html[data-theme] .mes-account-hero .mes-signup-card,
html[data-theme] .mes-account-hero .mes-offer-points>div {
  background:linear-gradient(150deg,
    rgb(var(--mesh-panel-rgb) / .985),
    rgb(var(--mesh-deep-rgb) / .985));
  border-color:rgb(var(--mesh-primary-rgb) / .32);
}
html[data-theme] .mes-account-hero .mes-offer-points>div {
  min-width:0;
}
html[data-theme] .mes-account-hero .mes-offer-summary span,
html[data-theme] .mes-account-hero .mes-offer-points span {
  color:var(--mesh-subtext);
}
html[data-theme] .mes-account-hero .mes-overline,
html[data-theme] .mes-signup-card .mes-card-eyebrow,
html[data-theme] .mes-account-hero .mes-offer-summary small {
  font-size:max(.8rem,13px);
  line-height:1.55;
  letter-spacing:.07em;
  overflow-wrap:break-word;
}
html[data-theme] .mes-account-hero .mes-overline {
  flex-wrap:wrap;
}
html[data-theme] .mes-account-hero .mes-offer-points strong {
  color:var(--mesh-contrast);
}
html[data-theme] .mes-signup-card {
  min-width:0;
  box-shadow:0 20px 65px rgba(0,0,0,.38);
}
html[data-theme] .mes-signup-card>p,
html[data-theme] .mes-signup-card .mes-checkbox,
html[data-theme] .mes-signup-footer p,
html[data-theme] .mes-list-note {
  color:var(--mesh-subtext);
  font-size:max(.88rem,14px);
  line-height:1.72;
}
html[data-theme] .mes-signup-card label:not(.mes-checkbox) {
  color:var(--mesh-contrast);
}
html[data-theme] .mes-status {
  font-size:max(.88rem,14px);
}
html[data-theme] .mes-status[data-state=success] {
  color:#c4ffe9;
  background:#092a26;
  border-color:#4fceb1;
}
html[data-theme] .mes-account-details article {
  background:rgb(var(--mesh-panel-rgb) / .975);
  border-color:rgb(var(--mesh-primary-rgb) / .31);
}
html[data-theme] .mes-account-details article p {
  color:var(--mesh-subtext);
  font-size:max(.87rem,14px);
}
html[data-theme] .mes-policy section,
html[data-theme] .mes-account-tile,
html[data-theme] .mes-account-guest,
html[data-theme] .mes-owner-panel,
html[data-theme] .mes-owner-kpi {
  background:linear-gradient(155deg,
    rgb(var(--mesh-panel-rgb) / .98),
    rgb(var(--mesh-deep-rgb) / .98));
}
html[data-theme] .site-footer .footer-groups a,
html[data-theme] .site-footer .footer-bottom {
  font-size:max(.8rem,13px);
  line-height:1.65;
}
html[data-theme] .site-footer .footer-groups small {
  font-size:max(.76rem,12px);
}
html[data-theme] .footer-brand span {
  font-size:max(.79rem,12.5px);
}
html[data-theme] :is(.mes-signup-card,.mes-account-intro,.mes-account-guest) a {
  text-underline-offset:3px;
}
html[data-theme] :is(.mes-signup-card,.mes-account-intro,.mes-account-guest) a:focus-visible,
html[data-theme] .mes-launch-next button:focus-visible {
  outline:3px solid var(--a);
  outline-offset:3px;
}
[hidden] { display:none !important; }

/* After a successful server response, replace the form with an actual
   verification-next-step screen (not an inline status below the fields). */
html[data-theme] .mes-launch-next {
  min-width:0;
  color:var(--mesh-contrast);
}
html[data-theme] .mes-launch-next-icon {
  width:82px;
  height:82px;
  display:grid;
  place-items:center;
  margin:4px 0 22px;
  border:1px solid rgb(var(--mesh-secondary-rgb) / .66);
  border-radius:22px;
  background:linear-gradient(135deg,
    rgb(var(--mesh-primary-rgb) / .17),
    rgb(var(--mesh-secondary-rgb) / .14));
  color:var(--b);
  box-shadow:0 0 35px rgb(var(--mesh-primary-rgb) / .12);
}
html[data-theme] .mes-launch-next-icon svg {
  display:block;
  width:42px;
  height:42px;
}
html[data-theme] .mes-launch-next h2 {
  margin:12px 0 13px;
  color:var(--mesh-contrast);
  font-size:clamp(2rem,3.1vw,2.65rem);
  line-height:1.16;
  scroll-margin-top:115px;
}
html[data-theme] .mes-launch-next-lead {
  color:var(--mesh-subtext);
  font-size:1rem;
  line-height:1.72;
}
html[data-theme] .mes-launch-next-steps {
  list-style:none;
  counter-reset:launch-step;
  display:grid;
  gap:11px;
  padding:0;
  margin:24px 0 20px;
}
html[data-theme] .mes-launch-next-steps li {
  counter-increment:launch-step;
  position:relative;
  padding:13px 14px 13px 54px;
  border:1px solid rgb(var(--mesh-primary-rgb) / .29);
  border-radius:12px;
  background:rgb(var(--mesh-deep-rgb) / .88);
}
html[data-theme] .mes-launch-next-steps li::before {
  content:counter(launch-step);
  position:absolute;
  left:13px;top:15px;
  width:26px;height:26px;
  border-radius:8px;
  display:grid;
  place-items:center;
  color:rgb(var(--mesh-deep-rgb));
  background:var(--a);
  font-size:.82rem;
  font-weight:850;
}
html[data-theme] .mes-launch-next-steps strong {
  display:block;
  color:var(--mesh-contrast);
  font-size:.95rem;
}
html[data-theme] .mes-launch-next-steps span {
  display:block;
  color:var(--mesh-subtext);
  font-size:.89rem;
  line-height:1.62;
  margin-top:4px;
}
html[data-theme] .mes-launch-next-footnote {
  color:var(--mesh-subtext);
  font-size:.88rem;
  line-height:1.72;
}
html[data-theme] .mes-launch-next-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:19px;
}
html[data-theme] .mes-launch-next-actions :is(button,a) {
  flex:1 1 185px;
  justify-content:center;
  text-align:center;
  min-height:46px;
  padding:12px 15px;
  text-decoration:none;
  font-size:.91rem;
}
@media(max-width:1050px){
  html[data-theme] .mes-account-hero .mes-account-intro{
    padding:clamp(18px,4vw,27px);
  }
  html[data-theme] .mes-account-hero .mes-account-intro h1{
    font-size:clamp(2.15rem,6vw,3.9rem);
  }
}
@media(max-width:650px){
  html[data-theme] .mes-account-hero .mes-account-intro{
    padding:18px;
    border-radius:16px;
  }
  html[data-theme] .mes-account-hero .mes-account-intro h1{
    font-size:clamp(2rem,9vw,3.05rem);
  }
  html[data-theme] .mes-launch-next-actions :is(button,a){
    flex-basis:100%;
  }
  html[data-theme] .mes-launch-next h2{
    font-size:clamp(1.8rem,8vw,2.3rem);
  }
  html[data-theme] .mes-account-hero .mes-offer-summary {
    gap:10px;
    padding:12px;
  }
  html[data-theme] .mes-account-hero .mes-offer-summary img {
    width:52px;
    height:52px;
    flex-basis:52px;
  }
  html[data-theme] .mes-account-hero .mes-offer-price strong {
    font-size:clamp(2rem,10vw,2.5rem);
  }
  html[data-theme] .mes-account-hero .mes-offer-summary>div {
    min-width:0;
    overflow-wrap:anywhere;
  }
}
@media(prefers-contrast:more){
  html[data-theme] body::before {
    background-image:
      linear-gradient(rgb(var(--mesh-deep-rgb) / .88),
        rgb(var(--mesh-deep-rgb) / .88)),
      var(--mesh-bg-url);
  }
  html[data-theme] .mes-customer-page .mes-account-intro {
    background:rgb(var(--mesh-deep-rgb) / .99);
  }
}

/* V9.49 — RELIABLE MESH BACKGROUND
   Use a normal WebP URL on the body instead of the malformed, truncated
   data URI in a negative-z pseudo-element. This guarantees visibility,
   avoids duplicate image downloads and keeps existing content legible. */
html[data-theme] body {
  background-color: #020910;
  background-image:
    linear-gradient(180deg,
      rgba(1,6,10,.10) 0%,
      rgba(2,8,13,.15) 23%,
      rgba(2,8,13,.48) 49%,
      rgba(2,8,13,.82) 76%,
      #020910 100%),
    var(--mesh-bg-url);
  background-repeat: no-repeat, no-repeat;
  background-position: center top, center 72px;
  background-size: 100% 1230px, max(100vw, 1672px) auto;
  background-attachment: scroll;
}
html[data-theme] body::before,
html[data-theme] body::after { display: none !important; }
html[data-theme] .v8-hero-copy,
html[data-theme] .mesh-hero-routes {
  background: rgba(3, 13, 21, .88);
  border-color: rgba(114, 221, 242, .23);
}
@media (max-width: 780px) {
  html[data-theme] body {
    background-position: center top, center 66px;
    background-size: 100% 1000px, auto 680px;
  }
  html[data-theme] .v8-home .v8-hero {
    padding-top: clamp(230px, 50vw, 290px);
  }
  html[data-theme] .v8-hero-copy,
  html[data-theme] .mesh-hero-routes {
    background: rgba(3, 13, 21, .93);
  }
}
@media (prefers-reduced-data: reduce) {
  html[data-theme] body {
    background-image: linear-gradient(180deg, #04131d, #020910 920px);
  }
}
