/*
  Destination: C:\Lensari\Lensari\claude-hq\drafts\gallery-site-v1\products\parts-curator\styles.css
  Purpose: page CSS for the Parts Curator product page (upsell skeleton, constitution s4).
           Linked AFTER shared/tokens.css + shared/site.css; tokens only, no raw hex.
  Status: local draft build; nothing deploys.
*/

/* ------------------------------------------------ section rhythm */

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0 0; }

.section-lede {
  max-width: var(--measure);
  color: var(--ls-label);
  margin-bottom: 2.2rem;
}

/* ------------------------------------------------ hero */

.hero { padding-top: clamp(2.6rem, 6vw, 4.6rem); }

.crumb {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

.crumb a { color: var(--ls-brand); transition: color 0.25s var(--ease-soft); }
.crumb a:hover { color: var(--ls-accent); }
.crumb-sep { color: var(--ls-label); margin: 0 0.45rem; }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.03em;
}

.hero-promise {
  max-width: 34ch;
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 56ch;
  margin-top: 1.1rem;
  color: var(--ls-label);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.fact-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.55rem;
  margin: 1.7rem 0 0;
  padding: 0;
}

.fact-strip li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ls-label);
  border: 1px solid var(--ls-line);
  border-radius: 999px;
  padding: 0.34rem 0.8rem;
}

.fact-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--ls-brand);
  transform: rotate(45deg);
}

.hero-stage { margin-top: clamp(1.6rem, 4vw, 2.8rem); }

.trace-hero { margin-bottom: -2px; }

/* ------------------------------------------------ framed shots (gallery treatment) */

.shot-frame {
  margin: 0;
  position: relative;
}

.shot-frame img {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--ls-accent) 22%, var(--ls-line));
  border-radius: 10px;
  box-shadow:
    0 30px 70px -28px var(--ls-shot-shadow),
    0 0 0 1px var(--ls-glow),
    0 0 44px -6px var(--ls-glow);
  background: var(--ls-surface-raise);
}

.shot-caption {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--ls-label);
  text-align: center;
  text-wrap: pretty;
}

/* gallery plate number: every framed capture is numbered like an exhibit */
.fig-no {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ls-accent-dim);
  margin-right: 0.65rem;
}

/* ------------------------------------------------ value props */

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2x2: no orphaned fourth card */
  gap: 1.1rem;
  margin-top: 2.2rem;
}

@media (max-width: 680px) {
  .value-grid { grid-template-columns: 1fr; }
}

.value-card {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--ls-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ls-surface) 26%, var(--ls-base));
  transition: border-color 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-out);
}

.value-card:hover {
  border-color: color-mix(in srgb, var(--ls-accent) 40%, var(--ls-line));
  box-shadow: 0 10px 34px -16px var(--ls-glow), 0 0 0 1px var(--ls-glow);
}

.value-index {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ls-accent-dim);
}

.value-card h3 {
  font-size: 1.02rem;
  margin-top: 0.7rem;
}

.value-card p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ls-label);
}

/* ------------------------------------------------ proof: before / after */

.proof-shot { max-width: 980px; margin: 0 auto; }

.proof-tag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%); /* straddles the frame's top border clear of the capture's own titlebar */
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ls-text);
  background: var(--ls-base);
  border: 1px solid var(--ls-line);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
}

.proof-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.proof-tag-before .proof-dot { background: var(--ls-danger); }
.proof-tag-after .proof-dot { background: var(--ls-success); }
.proof-tag-before { border-color: color-mix(in srgb, var(--ls-danger) 35%, var(--ls-line)); }
.proof-tag-after { border-color: color-mix(in srgb, var(--ls-success) 35%, var(--ls-line)); }

/* small screens: the capture's own titlebar is tiny; keep the tag fully above the
   frame instead of straddling it */
@media (max-width: 680px) {
  .proof-shot { display: flex; flex-direction: column; align-items: center; }
  .proof-shot img { order: 2; }
  .proof-shot .shot-caption { order: 3; }
  .proof-tag {
    position: static;
    order: 1;
    transform: none;
    margin-bottom: 0.8rem;
  }
}

.proof-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  margin: 0.6rem auto;
}

.trace-proof {
  position: absolute;
  inset: 0;
  width: 60px;
  height: 96px;
  margin: 0 auto;
}

.proof-link-chip {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ls-accent);
  background: var(--ls-base);
  border: 1px solid color-mix(in srgb, var(--ls-accent) 40%, var(--ls-line));
  border-radius: 999px;
  padding: 0.38rem 1rem;
  box-shadow: 0 0 22px -4px var(--ls-glow);
}

/* ------------------------------------------------ proof: mechanism */

.mechanism {
  display: grid;
  grid-template-columns: minmax(17rem, 30rem) 1fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2.2rem, 4vw, 3rem);
  border-top: 1px solid var(--ls-line);
}

.mechanism-copy h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }

.mechanism-copy p {
  margin-top: 1rem;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--ls-label);
}

.rule-code {
  font-family: var(--font-display);
  font-size: 0.86em;
  color: var(--ls-accent);
  background: color-mix(in srgb, var(--ls-surface) 45%, var(--ls-base));
  border: 1px solid var(--ls-line);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  white-space: nowrap;
}

.mechanism-copy p.facet-label {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ls-label);
  margin-top: 1.6rem;
}

.facet-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.7rem 0 0;
  padding: 0;
}

.facet-strip li {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ls-accent-dim);
  border: 1px solid var(--ls-line);
  border-radius: 4px;
  padding: 0.26rem 0.6rem;
  background: color-mix(in srgb, var(--ls-surface) 30%, var(--ls-base));
}

@media (max-width: 880px) {
  .mechanism { grid-template-columns: 1fr; }
  .rule-code { white-space: normal; }
}

/* ------------------------------------------------ how it works */

.steps {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.3rem;
  padding: 1.5rem 0 1.7rem;
}

/* the spine: a quiet vertical rail linking the step nodes (one motif block) */
.step::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--ls-accent) 26%, var(--ls-line));
}

.step:first-child::before { top: 1.5rem; }
.step:last-child::before { bottom: auto; height: 1.5rem; }

.step-num {
  position: relative;
  z-index: 1;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ls-accent);
  background: color-mix(in srgb, var(--ls-surface) 32%, var(--ls-base));
  border: 1px solid color-mix(in srgb, var(--ls-accent) 30%, var(--ls-line));
  border-radius: 8px;
}

.step-body { max-width: var(--measure); }

.step-body h3 { font-size: 1.08rem; padding-top: 0.55rem; }

.step-body p {
  margin-top: 0.55rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ls-label);
}

/* ------------------------------------------------ privacy */

.privacy-panel {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 1.5rem;
  padding: clamp(1.8rem, 4vw, 2.8rem);
  border: 1px solid color-mix(in srgb, var(--ls-brand) 38%, var(--ls-line));
  border-radius: 12px;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--ls-brand) 9%, transparent),
      transparent 55%),
    color-mix(in srgb, var(--ls-surface) 22%, var(--ls-base));
}

.privacy-glyph {
  width: 3.4rem;
  height: 3.4rem;
  padding: 0.75rem;
  color: var(--ls-brand);
  border: 1px solid color-mix(in srgb, var(--ls-brand) 40%, var(--ls-line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--ls-surface) 35%, var(--ls-base));
}

.privacy-copy .section-title { font-size: clamp(1.3rem, 2.8vw, 1.8rem); }

.privacy-copy p {
  max-width: var(--measure);
  margin-top: 0.9rem;
  color: var(--ls-label);
}

@media (max-width: 620px) {
  .privacy-panel { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ closing CTA */

.section-cta { padding-bottom: 0; }

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-lede { margin-bottom: 0; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.1rem;
}

.cta-note {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  color: var(--ls-label);
}

/* ------------------------------------------------ scroll reveals (product pages only,
   custom easing, applied only when page.js confirms motion is allowed) */

html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

html.js-reveal .value-grid [data-reveal]:nth-child(2),
html.js-reveal .steps [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
html.js-reveal .value-grid [data-reveal]:nth-child(3),
html.js-reveal .steps [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
html.js-reveal .value-grid [data-reveal]:nth-child(4),
html.js-reveal .steps [data-reveal]:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html.js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
