/* Sample Front Desk only: slim Midnight Glow trial bar. Hidden unless JS shows it. */
.sample-trial-bar[hidden] { display: none; }
.sample-trial-bar {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 4px;
  row-gap: 0;
  padding: 8px 8px 8px 16px;
  background:
    radial-gradient(240px 90px at 6% 130%, rgba(25, 211, 197, 0.34), transparent 70%),
    radial-gradient(280px 100px at 96% -40%, #18366d, transparent 72%),
    #060b1c;
  color: #f5f7fb;
  border-bottom: 1px solid #324f7e;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  box-shadow: 0 8px 20px rgba(10, 22, 40, 0.18);
  box-sizing: border-box;
}
.sample-trial-bar .stb-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
  padding: 0 8px 0 0;
}
.sample-trial-bar p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: center;
}
.sample-trial-bar .stb-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.sample-trial-bar .stb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #19d3c5, #5bc8ff);
  color: #0a1628;
  font: 700 13px/1 "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(25, 211, 197, 0.32);
}
.sample-trial-bar .stb-btn:hover { filter: brightness(1.06); }
.sample-trial-bar .stb-btn:focus-visible {
  outline: 2px solid #f5f7fb;
  outline-offset: 2px;
}
.sample-trial-bar .stb-btn.soon {
  background: #101d34;
  color: #c6d1e4;
  border: 1px solid #324f7e;
  box-shadow: none;
  cursor: default;
  filter: none;
}
.sample-trial-bar .stb-close {
  position: static;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #aab6c8;
  font: 600 22px/1 "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}
.sample-trial-bar .stb-close:hover { color: #f5f7fb; background: rgba(255, 255, 255, 0.06); }
.sample-trial-bar .stb-close:focus-visible {
  outline: 2px solid #f5f7fb;
  outline-offset: 2px;
}

/* In-flow: bar takes its own height so it never covers the desk. */
body.has-sample-trial-bar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
@media (min-width: 761px) {
  html:has(body.has-sample-trial-bar),
  body.has-sample-trial-bar {
    height: 100%;
    overflow: hidden;
  }
  body.has-sample-trial-bar .shell {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }
}
@media (max-width: 760px) {
  .sample-trial-bar {
    padding: 10px 6px 12px 12px;
  }
  .sample-trial-bar .stb-main {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-right: 4px;
  }
  .sample-trial-bar p { font-size: 13px; }
  .sample-trial-bar .stb-cluster { gap: 6px 10px; }
  .sample-trial-bar .stb-btn { min-height: 32px; padding: 5px 12px; }
  .sample-trial-bar .stb-close {
    width: 36px;
    height: 36px;
  }
  .sample-trial-bar .stb-notice {
    padding: 0 4px;
  }
}

.sample-trial-bar .stb-notice {
  flex: 1 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #c6d1e4;
  letter-spacing: 0;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Slimmer sample bar on phones so Schedule jobs appear higher on the first screen. */
@media (max-width: 599px) {
  .sample-trial-bar {
    padding: 5px 4px 5px 10px;
    column-gap: 2px;
    row-gap: 0;
  }
  .sample-trial-bar .stb-main {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 8px;
    padding-right: 2px;
  }
  .sample-trial-bar p { font-size: 13px; line-height: 1.3; }
  .sample-trial-bar .stb-cluster { gap: 4px 8px; }
  .sample-trial-bar .stb-btn { min-height: 30px; padding: 4px 10px; font-size: 12px; }
  .sample-trial-bar .stb-close { width: 32px; height: 32px; font-size: 20px; }
  .sample-trial-bar .stb-notice {
    font-size: 11px;
    line-height: 1.3;
    padding: 0;
    margin: 0;
  }
}


/* Phone-only Option A card. Hidden on 600px+ so desktop/tablet stay the top bar. */
.sample-trial-bar .stb-mobile { display: none; }

@media (max-width: 599px) {
  .sample-trial-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    top: auto;
    z-index: 40;
    display: block;
    padding: 20px 18px 16px;
    border-radius: 20px;
    background:
      radial-gradient(220px 80px at 8% 120%, rgba(25, 211, 197, 0.34), transparent 70%),
      radial-gradient(240px 90px at 96% -30%, #18366d, transparent 72%),
      #060b1c;
    color: #f5f7fb;
    border: 1px solid #324f7e;
    box-shadow: 0 16px 36px rgba(10, 22, 40, 0.32);
    box-sizing: border-box;
    text-align: center;
  }
  .sample-trial-bar .stb-main { display: none; }
  .sample-trial-bar .stb-mobile { display: block; text-align: center; }
  .sample-trial-bar .stb-m-title {
    margin: 0 28px 6px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-align: center;
  }
  .sample-trial-bar .stb-m-sub {
    margin: 0 8px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: #c6d1e4;
    text-align: center;
  }
  .sample-trial-bar .stb-m-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, #19d3c5, #5bc8ff);
    color: #0a1628;
    font: 700 15px/1 "Plus Jakarta Sans", Inter, system-ui, sans-serif;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(25, 211, 197, 0.32);
    box-sizing: border-box;
  }
  .sample-trial-bar .stb-m-btn:hover { filter: brightness(1.06); }
  .sample-trial-bar .stb-m-btn:focus-visible {
    outline: 2px solid #f5f7fb;
    outline-offset: 2px;
  }
  .sample-trial-bar .stb-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    margin: 0;
    align-self: auto;
    justify-self: auto;
    grid-column: auto;
    grid-row: auto;
  }
  #stb-scroll-spacer { display: block; width: 100%; }
  /* Keep payment (and other) buttons above the fixed 'Like what you see?' card.
     Padding lives on .content so it survives view.innerHTML route changes. */
  body.has-sample-trial-bar .content {
    padding-bottom: calc(24px + var(--stb-card-space, 180px));
  }
}

/* Quieter sample trial bar on desktop (Dec 4, 2026): plain strip, small type, no glow, no second line. The phone card is unchanged. */
@media (min-width: 600px) {
  body.sample-quiet-bar .sample-trial-bar {
    background: #eef1f6;
    color: #44516a;
    border-bottom: 1px solid #dfe5ef;
    box-shadow: none;
    padding: 2px 6px 2px 16px;
  }
  body.sample-quiet-bar .sample-trial-bar p { font-size: 12px; font-weight: 500; }
  body.sample-quiet-bar .sample-trial-bar .stb-notice { display: none; }
  body.sample-quiet-bar .sample-trial-bar .stb-btn { min-height: 26px; padding: 4px 11px; font-size: 12px; background: #ffffff; color: #0b1b3a; border: 1px solid #b9c6dc; box-shadow: none; }
  body.sample-quiet-bar .sample-trial-bar .stb-close { width: 28px; height: 28px; font-size: 18px; color: #6b7a93; }
  body.sample-quiet-bar .sample-trial-bar .stb-close:hover { color: #0b1b3a; background: rgba(11, 27, 58, 0.06); }
}

/* Slim trial strip (Dec 4, 2026, Ryan): thin line on every width. The phone card becomes a one-line bottom strip. */
@media (min-width: 600px) {
  .sample-trial-bar { padding: 2px 6px 2px 12px; }
  .sample-trial-bar .stb-main { flex-wrap: nowrap; gap: 8px 12px; }
  .sample-trial-bar .stb-cluster { flex-wrap: nowrap; }
  .sample-trial-bar .stb-notice { display: none; }
  .sample-trial-bar .stb-btn { min-height: 24px; padding: 3px 10px; font-size: 12px; }
  .sample-trial-bar .stb-close { width: 26px; height: 26px; font-size: 17px; }
}
@media (max-width: 599px) {
  body.has-sample-trial-bar .sample-trial-bar {
    left: 0; right: 0; bottom: 0; top: auto;
    display: flex; align-items: center; gap: 8px;
    padding: 5px 4px 5px 10px;
    border-radius: 0; border-width: 1px 0 0 0;
    box-shadow: 0 -4px 12px rgba(10, 22, 40, 0.18);
    text-align: left;
  }
  body.has-sample-trial-bar .sample-trial-bar .stb-mobile { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
  body.has-sample-trial-bar .sample-trial-bar .stb-m-title { display: none; }
  body.has-sample-trial-bar .sample-trial-bar .stb-m-sub { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 11.5px; line-height: 1.25; text-align: left; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  body.has-sample-trial-bar .sample-trial-bar .stb-m-btn { width: auto; flex: 0 0 auto; min-height: 30px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; }
  body.has-sample-trial-bar .sample-trial-bar .stb-close { position: static; width: 28px; height: 28px; flex: 0 0 auto; font-size: 18px; }
  body.has-sample-trial-bar .content { padding-bottom: calc(12px + var(--stb-card-space, 56px)); }
}
