/* Two-hub brand app shell: Services + Quick Checkups only */

html.ez4-app-shell .skip-link,
html.ez4-app-shell header[role="banner"],
html.ez4-app-shell .site-header,
html.ez4-app-shell #site-footer,
html.ez4-app-shell footer[role="contentinfo"],
html.ez4-app-shell .site-footer,
html.ez4-app-shell .home-section-note,
html.ez4-app-shell .ez4-app-shell-hide,
html.ez4-app-shell #mohdnaem-consent-banner,
html.ez4-app-shell #ez4-consent-banner {
  display: none !important;
}

html.ez4-app-shell body {
  padding-top: 6.75rem;
}

html.ez4-app-shell body.ez4-app-shell-submenu-open {
  padding-top: 10rem;
}

.ez4-app-shell-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  background:
    radial-gradient(ellipse 90% 120% at 50% -20%, color-mix(in srgb, #fb923c 22%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 100% at 80% 0%, color-mix(in srgb, #38bdf8 18%, transparent), transparent 50%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  border-bottom: 1px solid color-mix(in srgb, #38bdf8 40%, #334155);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 color-mix(in srgb, #fb923c 25%, transparent);
}

html.ez4-app-shell .ez4-app-shell-bar {
  display: block;
}

.ez4-app-shell-bar__brand {
  position: relative;
  padding: 0.7rem 1rem 0.35rem;
  text-align: center;
}

.ez4-app-shell-bar__brand::after {
  content: "";
  display: block;
  width: min(12rem, 55%);
  height: 2px;
  margin: 0.45rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #fb923c 20%, #f8fafc 50%, #2dd4bf 80%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, #38bdf8 55%, transparent);
}

.ez4-app-shell-bar__kicker {
  margin: 0 0 0.12rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fb923c;
  text-shadow: 0 0 18px color-mix(in srgb, #fb923c 55%, transparent);
}

.ez4-app-shell-bar__title {
  margin: 0;
  font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  background: linear-gradient(105deg, #fdba74 0%, #f8fafc 42%, #7dd3fc 72%, #5eead4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}

.ez4-app-shell-bar__inner {
  display: flex;
  align-items: stretch;
  max-width: 42rem;
  margin: 0 auto;
  min-height: 2.75rem;
}

.ez4-app-shell-bar__inner--triple,
.ez4-app-shell-bar__inner--quad {
  max-width: 52rem;
}

.ez4-app-shell-bar__inner--triple .ez4-app-shell-bar__link,
.ez4-app-shell-bar__inner--quad .ez4-app-shell-bar__link {
  font-size: 0.72rem;
  padding: 0.55rem 0.3rem;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ez4-app-shell-bar__link,
.ez4-app-shell-bar__toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #cbd5e1;
  text-decoration: none;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.ez4-app-shell-bar__link:hover,
.ez4-app-shell-bar__link:focus-visible {
  color: #f8fafc;
  outline: none;
  background: color-mix(in srgb, #38bdf8 14%, transparent);
  text-shadow: 0 0 12px color-mix(in srgb, #38bdf8 45%, transparent);
}

.ez4-app-shell-bar__link.is-active {
  color: #ffffff;
  border-bottom-color: #38bdf8;
  border-bottom-width: 4px;
  text-shadow: 0 0 14px color-mix(in srgb, #38bdf8 55%, transparent);
  background: color-mix(in srgb, #38bdf8 12%, transparent);
}

.ez4-app-shell-only {
  display: none !important;
}

html.ez4-app-shell .ez4-app-shell-only {
  display: block !important;
}

html.ez4-app-shell .citizen-intake-thanks-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

html.ez4-app-shell .citizen-intake-thanks-actions .btn {
  width: 100%;
  margin: 0;
}

html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar {
  background: #f8fafc;
  border-bottom-color: color-mix(in srgb, #0284c7 30%, #cbd5e1);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

/* App shell stays dark-branded; keep title gradient readable if light slips through */
html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__kicker {
  color: #ea580c;
}

html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__title {
  background: linear-gradient(105deg, #ea580c 0%, #0f172a 40%, #0284c7 75%, #0d9488 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: none;
}

html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__link {
  color: #334155;
  text-shadow: none;
}

html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__link:hover,
html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__link:focus-visible {
  color: #0f172a;
  background: color-mix(in srgb, #0284c7 10%, transparent);
  text-shadow: none;
}

html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__link.is-active,
html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__toggle.is-active {
  color: #0f172a;
  border-bottom-color: #0284c7;
  background: color-mix(in srgb, #0284c7 12%, transparent);
  text-shadow: none;
}

.ez4-app-shell-bar__submenu {
  border-top: 1px solid color-mix(in srgb, #38bdf8 20%, #334155);
  background: #020617;
}

.ez4-app-shell-bar__submenu-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0.35rem 0.5rem 0.5rem;
}

.ez4-app-shell-bar__sublink {
  flex: 1 1 42%;
  min-width: 7.5rem;
  text-align: center;
  padding: 0.45rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
}

.ez4-app-shell-bar__sublink:hover,
.ez4-app-shell-bar__sublink:focus-visible {
  color: #f8fafc;
  background: color-mix(in srgb, #38bdf8 14%, transparent);
  outline: none;
}

.ez4-app-shell-bar__sublink.is-active {
  color: #0f172a;
  background: #38bdf8;
}

html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__submenu {
  background: #e2e8f0;
  border-top-color: #cbd5e1;
}

html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__sublink {
  color: #475569;
}

html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__sublink:hover,
html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__sublink:focus-visible {
  color: #0f172a;
  background: color-mix(in srgb, #0284c7 12%, #fff);
}

html[data-theme="light"].ez4-app-shell .ez4-app-shell-bar__sublink.is-active {
  color: #fff;
  background: #0284c7;
}

/* Labs tool pages: only the checkup form/results panel */
html.ez4-app-shell .labs-tool-page .labs-ez4-strip,
html.ez4-app-shell .labs-tool-page .labs-results-cta,
html.ez4-app-shell .labs-tool-page .labs-upsell,
html.ez4-app-shell .labs-tool-page .labs-stack > :not(.labs-check-wrap),
html.ez4-app-shell .labs-page:not(.labs-tool-page) .labs-ez4-strip,
html.ez4-app-shell .labs-page:not(.labs-tool-page) .labs-stack > :not(.labs-check-wrap) {
  display: none !important;
}

html.ez4-app-shell .labs-tool-page .site-main,
html.ez4-app-shell .labs-tool-page .portfolio-article,
html.ez4-app-shell .labs-tool-page .page-body,
html.ez4-app-shell .labs-tool-page .labs-stack {
  margin: 0 !important;
  padding: 0.75rem 0.75rem 1.25rem !important;
  max-width: none !important;
}

html.ez4-app-shell .labs-tool-page .labs-check-wrap {
  display: block !important;
  margin: 0 auto !important;
  max-width: 42rem;
}

/* Hide paid upsell CTAs inside the tool panel in app mode */
html.ez4-app-shell .labs-check-wrap .labs-results-cta,
html.ez4-app-shell .labs-check-wrap .labs-upsell {
  display: none !important;
}
