/*
  Destination: C:\Lensari\Lensari\claude-hq\drafts\gallery-site-v1\products\poshmark-profit\styles.css
  Purpose: PAGE-SPECIFIC styles for the Poshmark Profit + Tax product page
           (Cameron-ratified pilot, retrofitted onto the shared foundation).
  Load order: ../../shared/tokens.css then ../../shared/site.css then this file.
  Dedupe note: tokens, reset/base, toolbar, buttons, circuit-trace base classes,
  footer, and the reduced-motion kill switch now come from shared/ (shared wins);
  this file keeps only the pilot's page sections and page-level motion hooks.
*/

/* ------------------------------------------------ circuit-trace draw-in (page motion hook) */

/* draw-in setup applied by script.js (motion-safe only) */
.trace-drawn .trace-path {
  transition: stroke-dashoffset 1.6s var(--ease-out);
}

/* ------------------------------------------------ reveal on scroll */

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------ 1. hero */

.hero {
  position: relative;
  padding: clamp(7.5rem, 16vh, 9.5rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.trace-hero {
  position: absolute;
  top: 1.6rem;
  left: 0;
  right: 0;
}

.hero-inner {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  text-align: center;
}

.hero-title {
  font-size: clamp(2.2rem, 5.6vw, 4.1rem);
  letter-spacing: -0.03em;
  margin: 0 auto 1.6rem;
}

.hero-sub {
  max-width: var(--measure);
  margin: 0 auto 2.2rem;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--ls-label);
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.hero-note {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--ls-label);
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12%;
  height: 62%;
  background: radial-gradient(46% 52% at 50% 74%, var(--ls-glow), transparent 72%);
  pointer-events: none;
}

.hero-figure {
  position: relative;
  max-width: 960px;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  perspective: 1400px;
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-figure.reveal { transform: translateY(22px) scale(0.985); }
  .js .hero-figure.reveal.is-in { transform: none; }
}

.shot-frame {
  position: relative;
  border-radius: 10px;
  border: 1px solid var(--ls-surface);
  background: var(--ls-surface-raise);
  box-shadow:
    0 0 0 1px var(--ls-glow),
    0 30px 80px -20px var(--ls-shot-shadow),
    0 0 90px -10px var(--ls-glow);
  overflow: hidden;
  transform-style: preserve-3d;
}

#hero-frame {
  transition: transform 0.35s var(--ease-soft);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--ls-line);
  background: var(--ls-surface-raise);
}

.shot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ls-line);
}

.shot-bar-label {
  margin-left: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ls-label);
}

.shot-frame img {
  width: 100%;
  aspect-ratio: 1190 / 800;
  object-fit: cover;
  object-position: left top;
}

.shot-caption {
  margin-top: 1.1rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ls-label);
}

/* ------------------------------------------------ 2. value props */

.values {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.values .section-title {
  text-align: center;
  margin-bottom: clamp(2.4rem, 5vw, 3.6rem);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

@media (max-width: 980px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-grid { grid-template-columns: 1fr; } }

.value-card {
  position: relative;
  padding: 1.7rem 1.5rem 1.8rem;
  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), transform 0.35s var(--ease-out);
}

.value-card:hover {
  border-color: color-mix(in srgb, var(--ls-accent) 45%, var(--ls-line));
  transform: translateY(-3px);
}

.value-index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ls-accent);
  margin-bottom: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.value-card h3 {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

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

/* ------------------------------------------------ 3. proof */

.proof {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.trace-proof {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.proof-head {
  max-width: 760px;
  margin: 0 auto clamp(2.4rem, 5vw, 3.4rem);
  text-align: center;
}

.proof-lede {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--ls-label);
}

.proof-demo {
  max-width: 960px;
  margin: 0 auto;
}

.recon-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2.4vw, 1.8rem);
  margin-bottom: 1.6rem;
  padding: 1rem 1.4rem;
  border: 1px solid var(--ls-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ls-surface) 22%, var(--ls-base));
  flex-wrap: wrap;
}

.recon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 7.5rem;
}

.recon-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ls-label);
}

.recon-value {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 700;
}

.recon-op {
  font-family: var(--font-display);
  color: var(--ls-label);
  font-size: 1.1rem;
  padding-top: 1rem;
}

.recon-delta { transition: color 0.3s var(--ease-soft); }
.recon-delta.is-ok { color: var(--ls-accent); }
.recon-delta.is-off { color: var(--ls-text); }

@media (max-width: 560px) {
  .recon-strip { gap: 0.6rem 1rem; padding: 0.9rem 1rem; }
  .recon-cell { min-width: 5.8rem; }
  .recon-value { font-size: 1.05rem; }
  .recon-op { display: none; }
}

.proof-controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.proof-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ls-label);
  background: transparent;
  border: 1px solid var(--ls-line);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  cursor: pointer;
  transition: color 0.25s var(--ease-soft), border-color 0.25s var(--ease-soft), background-color 0.25s var(--ease-soft);
}

.proof-tab:hover { color: var(--ls-text); border-color: var(--ls-accent); }

.proof-tab.is-active {
  color: var(--ls-text);
  border-color: var(--ls-accent);
  background: var(--ls-glow);
}

.proof-tab-state {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.proof-tab-ok { background: var(--ls-accent); }
.proof-tab-stop {
  background: transparent;
  border: 1.5px solid var(--ls-label);
  width: 7px;
  height: 7px;
}
.proof-tab.is-active .proof-tab-stop { border-color: var(--ls-text); }

.proof-stage { position: relative; }

.proof-panel[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .proof-panel.is-active { animation: panel-in 0.5s var(--ease-out); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.shot-frame-flat {
  box-shadow: 0 18px 50px -18px var(--ls-shot-shadow);
}

.shot-frame-flat img { aspect-ratio: 1160 / 800; }

.proof-verdict {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: var(--ls-label);
  text-align: center;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

.proof-verdict strong {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.proof-verdict-ok strong { color: var(--ls-accent); }
.proof-verdict-stop strong { color: var(--ls-text); }

/* ------------------------------------------------ 4. how it works */

.how {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.how .section-title {
  text-align: center;
  margin-bottom: clamp(2.6rem, 5vw, 3.8rem);
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  position: relative;
}

/* connecting spine */
.steps::before {
  content: "";
  position: absolute;
  left: 1.19rem;
  top: 1.4rem;
  bottom: 2.4rem;
  width: 1px;
  background: color-mix(in srgb, var(--ls-accent) 32%, var(--ls-line));
}

@media (prefers-reduced-motion: no-preference) {
  .js .steps::before {
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.6s var(--ease-out) 0.15s;
  }
  .js .steps:has(.step.is-in)::before { transform: scaleY(1); }
}

.step {
  position: relative;
  display: flex;
  gap: 1.6rem;
  padding: 0 0 2.4rem;
}

.step:last-child { padding-bottom: 0; }

.step-num {
  position: relative;
  z-index: 1;
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--ls-accent);
  background: var(--ls-base);
  border: 1px solid color-mix(in srgb, var(--ls-accent) 40%, var(--ls-line));
  border-radius: 8px;
}

.step-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  padding-top: 0.42rem;
}

.step-body p {
  font-size: 0.94rem;
  color: var(--ls-label);
}

/* ------------------------------------------------ 5. privacy */

.privacy {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.privacy-panel {
  border: 1px solid var(--ls-line);
  border-radius: 14px;
  background:
    radial-gradient(120% 140% at 50% -20%, var(--ls-glow), transparent 55%),
    color-mix(in srgb, var(--ls-surface) 24%, var(--ls-base));
  padding: clamp(2.4rem, 5vw, 3.8rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
}

.privacy-lede {
  max-width: 56ch;
  margin: 0 auto 2rem;
  color: var(--ls-label);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.privacy-facts {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 22rem));
  justify-content: center;
  gap: 0.9rem 2.4rem;
  text-align: left;
}

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

.privacy-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.94rem;
  font-weight: 500;
}

.fact-mark {
  flex: none;
  width: 14px;
  height: 8px;
  margin-top: 0.5em;
  border-left: 2px solid var(--ls-accent);
  border-bottom: 2px solid var(--ls-accent);
  transform: rotate(-45deg) translateY(-2px);
}

/* ------------------------------------------------ 6. tiers */

.tiers {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(4rem, 8vw, 7rem);
}

.tiers .section-title { text-align: center; }

.tiers-lede {
  text-align: center;
  color: var(--ls-label);
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 26rem));
  justify-content: center;
  gap: 1.2rem;
}

@media (max-width: 700px) {
  .tier-grid { grid-template-columns: minmax(0, 26rem); }
}

.tier-card {
  border: 1px solid var(--ls-line);
  border-radius: 12px;
  padding: 1.9rem 1.9rem 2rem;
  background: color-mix(in srgb, var(--ls-surface) 26%, var(--ls-base));
}

.tier-card-pro {
  border-color: color-mix(in srgb, var(--ls-accent) 45%, var(--ls-line));
  background:
    radial-gradient(140% 120% at 100% 0%, var(--ls-glow), transparent 60%),
    color-mix(in srgb, var(--ls-surface) 26%, var(--ls-base));
}

.tier-name {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.tier-card-pro .tier-name { color: var(--ls-accent); }

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

.tier-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--ls-text);
}

.tier-list li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.52em;
  width: 6px;
  height: 6px;
  background: var(--ls-accent);
  transform: rotate(45deg);
  opacity: 0.85;
}

/* ------------------------------------------------ 7. closing */

.closing {
  padding: clamp(4.5rem, 10vw, 8.5rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.closing-title {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  letter-spacing: -0.03em;
  margin-bottom: 2.2rem;
}

.closing-cta { margin-bottom: 1.1rem; }

.closing-note {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--ls-label);
}
