/* Sample links (functions/_samples.js, ct-sample.js): the strip at the top of
   the page and the "This is a sample" sheet. Brand green (--mark-a), not the
   link's accent: it is the site speaking, not the plan. */

.ct-sample-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--ring);
  border-radius: 12px;
  background: var(--card);
}
.ct-sample-bar p {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: .9rem;
  line-height: 1.35;
  color: var(--muted);
}
.ct-sample-bar p b { display: block; color: var(--text); font-weight: 600; }
.ct-sample-bar .ct-sample-make,
.ct-sample-panel .ct-sample-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--mark-a);
  color: var(--on-accent, #fff);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  white-space: nowrap;
}
.ct-sample-bar .ct-sample-make:hover,
.ct-sample-panel .ct-sample-go:hover { text-decoration: none; filter: brightness(.94); }

/* The sheet: a bottom sheet on phones, a centred panel on wider screens. */
.ct-sample-sheet { position: fixed; inset: 0; z-index: 2147483000; }
.ct-sample-scrim {
  position: absolute; inset: 0;
  background: rgba(8, 16, 13, .42);
  opacity: 0;
  transition: opacity .2s ease;
}
.ct-sample-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  gap: 12px;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  border-radius: 18px 18px 0 0;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .14);
  transform: translateY(16px);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.ct-sample-sheet.is-in .ct-sample-scrim { opacity: 1; }
.ct-sample-sheet.is-in .ct-sample-panel { transform: none; opacity: 1; }
.ct-sample-panel h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.ct-sample-panel p {
  margin: 0 0 6px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}
.ct-sample-panel .ct-sample-go { min-height: 48px; font-size: 1rem; }
.ct-sample-panel .ct-sample-stay {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.ct-sample-panel:focus { outline: none; }
.ct-sample-panel a:focus-visible,
.ct-sample-panel button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
@media (min-width: 640px) {
  .ct-sample-panel {
    left: 50%; right: auto; bottom: auto; top: 50%;
    width: 400px;
    padding: 28px 24px 20px;
    border-radius: 16px;
    transform: translate(-50%, calc(-50% + 12px));
  }
  .ct-sample-sheet.is-in .ct-sample-panel { transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ct-sample-scrim, .ct-sample-panel { transition: none; }
}
html.ct-sample-open { overflow: hidden; }
