/* Shared styles for the concept product pages (site/products/<slug>/) and the
   research page. Builds on /grove.css tokens; header/footer come from /chrome.js. */

.hl {
  font-style: italic;
  background-color: var(--grove-2);
  color: var(--grove-8);
  padding: 0.02em 0.32em;
  border-radius: 10px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  margin: 0 -0.04em;
}

/* ─── Concept badge ─── */
.cp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px; border-radius: 999px;
  background: #fff; border: 1px dashed var(--grove-4);
  color: var(--grove-8);
  font: 600 10px/1 var(--ff-mono); text-transform: uppercase; letter-spacing: 0.14em;
}
.cp-badge i { font-size: 14px; color: var(--grove-6); }
.cp-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: #D4F542; box-shadow: 0 0 0 3px rgba(212,245,66,0.35); }

/* ─── Hero ─── */
.cp-hero { padding: 88px 28px 40px; text-align: center; position: relative; }
.cp-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 520px; z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, rgba(174,203,172,0.35), transparent 70%);
  pointer-events: none;
}
.cp-hero__inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cp-hero__eyebrow { color: var(--grove-7); }
.cp-hero__title {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(42px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.022em;
  color: var(--grove-9); margin: 0;
}
.cp-hero__sub { max-width: 640px; margin: 0; color: var(--fg-3); font-size: 19px; line-height: 1.55; }
.cp-hero > .cp-hero__inner > * { animation: heroIn 1400ms cubic-bezier(.16,1,.3,1) both; }
.cp-hero > .cp-hero__inner > *:nth-child(2) { animation-delay: 120ms; }
.cp-hero > .cp-hero__inner > *:nth-child(3) { animation-delay: 260ms; }
.cp-hero > .cp-hero__inner > *:nth-child(4) { animation-delay: 420ms; }
.cp-hero > .cp-hero__inner > *:nth-child(5) { animation-delay: 580ms; }

/* ─── CTA row ─── */
.cp-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cp-ctas .g-btn i { font-size: 15px; }
.cp-app[aria-disabled="true"] { color: var(--fg-4); border-style: dashed; cursor: default; }
.cp-app[aria-disabled="true"]:hover { background: transparent; }
.cp-app__note { font: 600 9px/1 var(--ff-mono); text-transform: uppercase; letter-spacing: 0.12em; padding: 4px 7px; border-radius: 999px; background: var(--grove-05); color: var(--grove-6); }
.cp-app[aria-disabled="false"] .cp-app__note { background: #D4F542; color: var(--grove-9); }

/* ─── Mock window ─── */
.cp-stage { padding: 24px 28px 96px; }
.cp-window {
  max-width: 1080px; margin: 0 auto;
  background: #fff; border: 1px solid var(--border-1); border-radius: 12px;
  box-shadow: 0 1px 0 rgba(1,33,27,0.03), 0 40px 80px -40px rgba(1,33,27,0.35), 0 12px 32px -20px rgba(1,33,27,0.18);
  overflow: hidden;
}
.cp-window__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-1); background: var(--bg-app);
}
.cp-window__dots { display: flex; gap: 6px; }
.cp-window__dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.cp-window__title { font: 500 13px/1 var(--ff-sans); color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
.cp-window__title i { color: var(--grove-6); font-size: 15px; }
.cp-window__meta { margin-left: auto; font: 500 11px/1 var(--ff-mono); color: var(--fg-4); letter-spacing: 0.06em; text-transform: uppercase; }
.cp-window__body { padding: 22px; }

.cp-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font: 600 10px/1.2 var(--ff-mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.cp-pill--red   { background: var(--danger-bg);  color: var(--danger-fg); }
.cp-pill--amber { background: var(--warn-bg);    color: var(--warn-fg); }
.cp-pill--green { background: var(--success-bg); color: var(--success-fg); }
.cp-pill--grove { background: var(--grove-1);    color: var(--grove-8); }
.cp-pill--lime  { background: #D4F542;           color: var(--grove-9); }

/* ─── Sections ─── */
.cp-section { padding: 96px 28px; }
.cp-section--white { background: #fff; border-block: 1px solid var(--border-1); }
.cp-section--canopy { background: var(--grove-8); color: #fff; position: relative; overflow: hidden; }
.cp-section--canopy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 32px);
}
.cp-section--understory { background: var(--grove-1); }
.cp-section__inner { max-width: 1180px; margin: 0 auto; position: relative; }
.cp-section__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.cp-section__head .lead { margin: 0; color: var(--fg-3); }
.cp-section--canopy .g-eyebrow { color: var(--grove-2); }
.cp-section--canopy .g-h1 { color: #fff; }
.cp-section--canopy .lead { color: rgba(255,255,255,0.78); }
.cp-section--canopy .hl { background: #D4F542; color: var(--grove-9); }

/* ─── Feature blocks ─── */
.cp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cp-features--3 { grid-template-columns: repeat(3, 1fr); }
.cp-feature {
  background: var(--bg-app); border: 1px solid var(--border-1); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--dur-slow) var(--ease-standard), box-shadow var(--dur-slow) var(--ease-standard);
}
.cp-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.cp-feature__icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grove-8); color: #D4F542; font-size: 20px; margin-bottom: 6px;
}
.cp-feature h3 { font: var(--t-h4); font-size: 21px; margin: 0; color: var(--grove-9); }
.cp-feature p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg-3); }

/* ─── Workflow strip ─── */
.cp-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: step; }
.cp-flow__step {
  position: relative; padding: 18px 16px 16px; border-radius: 10px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-direction: column; gap: 6px; min-height: 132px;
}
.cp-flow__step:not(:last-child)::after {
  content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 1px; background: rgba(255,255,255,0.35);
}
.cp-flow__num { font: 600 10px/1 var(--ff-mono); letter-spacing: 0.14em; color: var(--grove-2); }
.cp-flow__name { font: 500 16px/1.25 var(--ff-sans); color: #fff; }
.cp-flow__note { font: 400 13px/1.45 var(--ff-sans); color: rgba(255,255,255,0.66); margin-top: auto; }
.cp-flow__step.is-hot { background: rgba(212,245,66,0.1); border-color: rgba(212,245,66,0.6); }
.cp-flow__step.is-hot .cp-flow__num { color: #D4F542; }
.cp-flow__step.is-hot .cp-flow__note { color: rgba(255,255,255,0.9); }
.cp-flow__span {
  margin-top: 14px; display: flex; align-items: center; gap: 10px;
  font: 500 14px/1.4 var(--ff-sans); color: rgba(255,255,255,0.86);
}
.cp-flow__span i { color: #D4F542; font-size: 18px; }

/* ─── Why now ─── */
.cp-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border-2); }
.cp-why__item { padding: 28px 24px 8px 0; display: flex; flex-direction: column; gap: 10px; }
.cp-why__item + .cp-why__item { padding-left: 24px; border-left: 1px solid var(--border-1); }
.cp-why__num { font-family: var(--ff-display); font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: var(--grove-8); }
.cp-why__item h3 { font: var(--t-h4); margin: 0; color: var(--grove-9); }
.cp-why__item p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg-3); }
.cp-src { font: 500 11px/1.4 var(--ff-mono); letter-spacing: 0.04em; color: var(--fg-4); text-decoration: underline; text-decoration-color: var(--border-2); text-underline-offset: 3px; }
.cp-src:hover { color: var(--grove-7); text-decoration-color: currentColor; }

/* ─── Closing CTA ─── */
.cp-close { padding: 96px 28px 112px; text-align: center; }
.cp-close__inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cp-close__title { font-family: var(--ff-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.02em; color: var(--grove-9); margin: 0; }
.cp-close p { margin: 0; color: var(--fg-3); }
.cp-fine { font: 400 13px/1.5 var(--ff-sans); color: var(--fg-4); max-width: 620px; }

/* ─── Scroll reveal ─── */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 900ms cubic-bezier(.16,1,.3,1), transform 900ms cubic-bezier(.16,1,.3,1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(16px); transition: opacity 700ms cubic-bezier(.16,1,.3,1), transform 700ms cubic-bezier(.16,1,.3,1); }
.js [data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
.js [data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
.js [data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
.js [data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
.js [data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; }
.js [data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; }
@media (prefers-reduced-motion: reduce) {
  .cp-hero > .cp-hero__inner > * { animation: none; }
  .js [data-reveal], .js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

@media (max-width: 1020px) {
  .cp-features, .cp-features--3 { grid-template-columns: 1fr 1fr; }
  .cp-flow { grid-template-columns: repeat(3, 1fr); }
  .cp-flow__step::after { display: none; }
  .cp-why { grid-template-columns: 1fr 1fr; }
  .cp-why__item:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .cp-hero { padding: 56px 20px 28px; }
  .cp-stage { padding: 12px 12px 64px; }
  .cp-window__body { padding: 14px; }
  .cp-window__meta { display: none; }
  .cp-section { padding: 64px 20px; }
  .cp-features, .cp-features--3 { grid-template-columns: 1fr; }
  .cp-flow { grid-template-columns: 1fr 1fr; }
  .cp-why { grid-template-columns: 1fr; }
  .cp-why__item, .cp-why__item + .cp-why__item { padding-left: 0; border-left: 0; }
  .cp-close { padding: 64px 20px 80px; }
  .cp-ctas { flex-direction: column; width: 100%; }
  .cp-ctas .g-btn { justify-content: center; }
}
