/* Shared screen-only finish for green banners. Company palettes retain their colors. */
@media screen {
  :root {
    --ca-glass-gradient: linear-gradient(112deg, #071d18 0%, #0c362b 43%, #08764f 76%, #063c2d 100%);
    --ca-glass-sheen: linear-gradient(118deg, transparent 42%, #d5ffed0d 42.1%, #e7fff71c 55%, transparent 55.1%, transparent 72%, #a5ffd50a 72.1%, transparent 88%);
  }
  [dir="rtl"] {
    --ca-glass-gradient: linear-gradient(248deg, #071d18 0%, #0c362b 43%, #08764f 76%, #063c2d 100%);
  }

  html:not([data-company-theme="true"]) :is(.public-hero, .knowledge-hero, .profile-cover-hero, .companies-banner, .companies-hero, .employee-hero, .portal-subscription-card, .account-signin-card > aside, .checkout-card-header, .plan-card-header.text-white),
  .public-landing .public-hero,
  .service-knowledge .knowledge-hero {
    background: var(--ca-glass-gradient) !important;
  }

  :root :is(.public-hero, .knowledge-hero, .profile-cover-hero, .companies-banner, .companies-hero, .employee-hero, .portal-subscription-card, .account-signin-card > aside, .checkout-card-header, .plan-card-header.text-white) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-shadow: inset 0 1px 0 #dcfff52b, inset 0 -1px 0 #001d1a33;
  }

  :root :is(.public-hero, .knowledge-hero, .profile-cover-hero, .companies-banner, .companies-hero, .employee-hero, .portal-subscription-card, .account-signin-card > aside, .checkout-card-header, .plan-card-header.text-white)::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    transform: none;
    pointer-events: none;
    z-index: -1;
    background:
      radial-gradient(ellipse at 86% 10%, #d9fff42e 0%, transparent 43%),
      radial-gradient(ellipse at 10% 110%, #000b0f70 0%, transparent 58%),
      var(--ca-glass-sheen);
  }

  :root :is(.public-hero, .knowledge-hero, .profile-cover-hero, .companies-banner, .companies-hero, .employee-hero, .portal-subscription-card, .account-signin-card > aside, .checkout-card-header, .plan-card-header.text-white)::after {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    transform: none;
    pointer-events: none;
    z-index: -1;
    background:
      radial-gradient(ellipse 74% 165% at 115% 112%, transparent 48%, #caffdf1c 48.15%, transparent 48.4%, transparent 58%, #caffdf0d 58.15%, transparent 58.4%),
      linear-gradient(165deg, #ffffff0d, transparent 38%);
  }

  /* Mirror the highlight with the reading direction, without changing layout. */
  [dir="rtl"] :is(.public-hero, .knowledge-hero, .profile-cover-hero, .companies-banner, .companies-hero, .employee-hero, .portal-subscription-card, .account-signin-card > aside, .checkout-card-header, .plan-card-header.text-white)::before,
  [dir="rtl"] :is(.public-hero, .knowledge-hero, .profile-cover-hero, .companies-banner, .companies-hero, .employee-hero, .portal-subscription-card, .account-signin-card > aside, .checkout-card-header, .plan-card-header.text-white)::after {
    transform: scaleX(-1);
  }

  html:not([data-company-theme="true"]) :is(.portal-shell .portal-sidebar, .employee-dashboard-shell .employee-sidebar) {
    background: linear-gradient(160deg, #ffffff0b 0%, transparent 24%, #beffdf07 55%, transparent 55.2%), linear-gradient(165deg, #103c30 0%, #082c23 54%, #041c18 100%) !important;
    box-shadow: inset -1px 0 0 #c1ffe118;
  }

  .public-hero .public-hero-inner { z-index: 1; }
  .public-hero .public-hero-copy h1 { color: #fff; text-shadow: 0 2px 18px #001c1b26; }
  .public-hero .public-hero-description { color: #deeee7; }
  .public-hero .public-hero-points { color: #c5e5d7; }
  .public-hero .public-eyebrow { color: #a9f0cb; }

  .public-hero .public-workspace-card {
    background: #f8fffcf2;
    border-color: #e4fffbb3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px #001d2145, inset 0 1px 0 #fff;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .public-hero .public-workspace-title { background: #edf9f4a6; }
  .public-hero .public-workspace-shortcuts a { background: #ffffff80; border-color: #cfe5daba; border-radius: 8px; }
  .public-hero .public-workspace-shortcuts a:hover { background: #e9f6ee; border-color: #96c7ad; }
  .public-hero .public-secondary {
    background: linear-gradient(135deg, #ffffff1c, #ffffff08);
    border-color: #d5ffee66;
    box-shadow: inset 0 1px 0 #ffffff24;
  }
  .public-hero .public-secondary:hover { background: #ffffff23; border-color: #dcfff7b3; }
  .public-hero .public-primary {
    background: linear-gradient(135deg, #16895a, #096d46);
    border-color: #82d9ac55;
    box-shadow: inset 0 1px 0 #bdffda26, 0 6px 18px #001f2029;
  }
  .public-hero .public-primary:hover { background: linear-gradient(135deg, #1c9865, #087448); }

  @media (max-width: 780px) {
    .public-hero .public-workspace-card { border-radius: 12px; }
    .public-hero::before { background: radial-gradient(ellipse at 100% 0%, #d9fff425, transparent 56%), var(--ca-glass-sheen); }
  }
}
