/* Shared People Facing design language (loaded on every page after chromatic.css):
   tokens, dark bands, glows, chips, buttons, cards, spotlight, scroll reveal. Sign-in styles live in auth.css. */
/* Keep page width stable when a page gains or loses its scrollbar. */
html { scrollbar-gutter: stable; overflow-x: clip; }
/* With html clipping, body no longer hands its overflow to the viewport, so a body with overflow-x: hidden
   becomes its own scroll container and sticky headers, panels and bars stop sticking. Clip instead. */
body.workspace-page, body.auth-page, .research-page .main { overflow-x: clip; }
/* iOS Safari zooms into fields with text under 16px, which leaves the page panning sideways. */
@media (max-width: 820px) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: max(16px, 1em) !important; }
}

:root {
  --lime: #d8ff3e;
  --lime-soft: rgba(216, 255, 62, 0.55);
  --mint: #7be0a6;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Wordmark ----------
   The Lime Extrude logo (static/logo-wordmark.svg, built by scripts/build_brand_assets.py). It is drawn for
   white surfaces only; the sign-in pages keep it on their white side for that reason. */
.brand-logo { display: block; width: auto; height: 25px; }
.brand, .report-brand, .signin-logo { display: inline-flex; align-items: center; line-height: 0; }
.report-brand .brand-logo { height: 22px; }
@media (max-width: 700px) {
  .brand .brand-logo { height: 21px; }
  .report-brand .brand-logo { height: 19px; }
}

/* ---------- Shared components ---------- */
.pf-dark {
  position: relative; overflow: hidden; isolation: isolate;
  background: #0b0b0b; color: #fff;
}
.pf-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, #000, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 75% at 50% 40%, #000, transparent 80%);
}
.pf-glow {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216,255,62,0.30), rgba(123,224,166,0.10) 60%, transparent);
  filter: blur(10px); animation: pf-breathe 9s ease-in-out infinite;
}
@keyframes pf-breathe { 50% { opacity: 0.55; transform: scale(1.08); } }
.admin-read-only-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 16px;
  background: #0b0b0b; color: #d9d9d5; font-size: 14px;
}
.admin-read-only-bar strong { color: var(--lime); font-weight: 600; }
.admin-read-only-bar a { margin-left: auto; color: #fff; text-decoration: underline; }
@media print { .admin-read-only-bar { display: none; } }
.pf-eyebrow { color: #6d6d68; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.pf-dark .pf-eyebrow { color: var(--lime); }
.pf-hl {
  background-image: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%);
  background-repeat: no-repeat; background-size: 0% 100%;
  animation: pf-hl 1.1s var(--ease-out) 0.4s forwards;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@keyframes pf-hl { to { background-size: 100% 100%; } }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chips span {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px;
  border: 1px solid #e3e3df; border-radius: 999px; background: rgba(255,255,255,0.85);
  color: #3a3a37; font-size: 12px; white-space: nowrap;
}
.pf-chips svg { width: 14px; height: 14px; color: #2d8a4a; }
.pf-dark .pf-chips span, .signin-art .pf-chips span { border-color: rgba(255,255,255,0.14); background: rgba(255,255,255,0.05); color: #d9d9d5; }
.pf-dark .pf-chips svg, .signin-art .pf-chips svg { color: var(--lime); }
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.pf-btn--ink { background: #0b0b0b; color: #fff; }
.pf-btn--ink:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(0,0,0,0.5); }
.pf-btn--lime { background: var(--lime); color: #0b0b0b; }
.pf-btn--lime:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(216,255,62,0.65); }
.pf-btn--ghost { border: 1px solid #d9d9d5; background: #fff; color: #0b0b0b; }
.pf-btn--ghost:hover { border-color: #0b0b0b; }
.pf-dark .pf-btn--ghost { border-color: rgba(255,255,255,0.2); background: transparent; color: #fff; }
.pf-card {
  border: 1px solid #e3e3df; border-radius: 20px; background: #fff;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}
.pf-card:hover { transform: translateY(-4px); border-color: #c9c9c3; box-shadow: 0 22px 50px -26px rgba(0,0,0,0.25); }
.pf-spot { background-image: radial-gradient(380px circle at var(--mx, -999px) var(--my, -999px), rgba(216,255,62,0.17), transparent 45%); }
.pf-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: #0b0b0b; color: var(--lime);
}
.pf-icon svg { width: 20px; height: 20px; }

.pf-js [data-pf-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.pf-js [data-pf-reveal].is-visible { opacity: 1; transform: none; }

/* Shared spinner (research intake loader, sign-in art). */
@keyframes pf-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .pf-glow, .pf-hl { animation: none !important; }
  .pf-hl { background-size: 100% 100%; }
  .pf-js [data-pf-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------- Cookie banner ----------
   A light-lime card, the pricing page's featured-pack colours. Accept is the filled button and
   Reject the outlined one, side by side and the same size, so rejecting is never harder to find. */
.cookie-banner {
  position: fixed; right: 24px; bottom: 24px; z-index: 1000; display: grid; gap: 14px;
  width: min(400px, calc(100vw - 32px)); padding: 18px 18px 16px; border: 1px solid #c5e83a; border-radius: 20px;
  background: #f8fde4; color: #0b0b0b; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.28);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: #3d3d3a; font-size: 14px; line-height: 1.5; }
.cookie-banner strong { display: block; margin-bottom: 4px; color: #0b0b0b; font-size: 15px; }
.cookie-banner a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cookie-banner .pf-btn { padding: 11px 16px; font-size: 14px; }
.cookie-banner .pf-btn--ghost { border-color: #0b0b0b; }
.cookie-banner .pf-btn:focus-visible { outline: 2px solid #0b0b0b; outline-offset: 2px; }
@media (max-width: 560px) { .cookie-banner { right: 16px; bottom: 16px; } }
@media print { .cookie-banner { display: none !important; } }

/* "How did you hear about us?" after sign-up (partials/heard_from_card.html): one tap on a chip.
   Under the search on the research page, and between the progress card and the reassurance
   tiles while a report is researched. On phones the chips scroll sideways in one row. */
.heard-card { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; margin: 16px 0 0; padding: 16px 18px; border: 1px solid #e3e3de; border-radius: 16px; background: #fff; }
.rs-page .heard-card { margin: 0 0 16px; }
.heard-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.heard-head p { margin: 0; color: #111; font-size: 14px; font-weight: 600; line-height: 20px; }
.heard-head small { margin-left: 6px; color: #888884; font-size: 12px; font-weight: 400; }
.heard-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.heard-chips button { flex: none; height: 34px; padding: 0 13px; border: 1px solid #d4d4cf; border-radius: 999px; background: #fff; color: #111; font: inherit; font-size: 13px; white-space: nowrap; cursor: pointer; }
.heard-chips button:hover, .heard-chips button:focus-visible { border-color: #111; background: var(--lime); }
.heard-skip { padding: 0; border: 0; background: none; color: #666; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.heard-thanks { margin: 0; color: #111; font-size: 14px; font-weight: 600; }
@media (max-width: 640px) {
  .heard-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 0 18px 2px; scrollbar-width: none; }
  .heard-chips::-webkit-scrollbar { display: none; }
}
