/*
  Destination: C:\Lensari\Lensari\claude-hq\drafts\gallery-site-v1\products\dark-pattern-scanner\styles.css
  Purpose: page CSS for the Dark Pattern Scanner upsell page (links after
           shared/tokens.css + shared/site.css). Local draft build.
  Rules: var(--ls-*) tokens only, no raw hex; v1 static discipline (lit states,
         no motion placeholders); scroll reveals are motion-gated in page.js + below.
*/

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

.props, .detects, .how, .privacy, .pricing, .closing {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0 0;
}

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

.hero { position: relative; }

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

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(4rem, 9vw, 6.5rem);
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  margin-bottom: 1.2rem;
}

.hero-promise {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.6;
  color: var(--ls-text);
  margin-bottom: 0.9rem;
}

.hero-support {
  font-size: 0.95rem;
  color: var(--ls-label);
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

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

/* the gallery-framed real artifact */
.hero-shot { margin: 0; }

.hero-shot img,
.how-shot img {
  border: 1px solid color-mix(in srgb, var(--ls-accent) 24%, var(--ls-line));
  border-radius: 10px;
  background: var(--ls-surface-raise);
  box-shadow:
    0 24px 60px -18px var(--ls-shot-shadow),
    0 0 0 1px var(--ls-glow),
    0 0 44px -6px var(--ls-glow);
}

.hero-shot figcaption,
.how-shot figcaption {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ls-label);
  text-align: right;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-shot figcaption { text-align: left; }
}

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

.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}

.prop {
  border: 1px solid var(--ls-line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--ls-surface) 26%, var(--ls-base));
  padding: 1.5rem 1.4rem 1.6rem;
}

.prop h3 {
  font-size: 0.98rem;
  margin-bottom: 0.6rem;
}

.prop h3::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  margin-bottom: 0.9rem;
  background: var(--ls-accent);
  transform: rotate(45deg);
}

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

/* ------------------------------------------------ proof: the 13 patterns */

.detects { scroll-margin-top: 5.5rem; }

.detects-lead {
  max-width: var(--measure);
  color: var(--ls-label);
  margin-bottom: 2.4rem;
}

.detect-group + .detect-group { margin-top: 2.6rem; }

.detect-subhead {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--ls-line);
}

.detect-count {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ls-brand);
  font-variant-numeric: tabular-nums;
}

.detect-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
}

/* the 5-pattern structural group breaks 3+2 instead of 4+1 (no orphan row) */
.detect-group:last-of-type .detect-grid {
  grid-template-columns: repeat(auto-fill, minmax(18.5rem, 1fr));
}

.detect-item {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border: 1px solid var(--ls-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--ls-surface) 20%, var(--ls-base));
  padding: 1.05rem 1.1rem 1.15rem;
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-out);
}

/* lit-trace register on hover (6.1: brighten, never move) */
.detect-item:hover {
  border-color: color-mix(in srgb, var(--ls-accent) 40%, var(--ls-line));
  box-shadow: 0 0 0 1px var(--ls-glow), 0 8px 26px -14px var(--ls-glow);
}

.sev {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ls-label);
}

.sev::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.sev-warning::before { background: var(--ls-danger); }
.sev-caution::before { background: var(--ls-accent); }
.sev-info::before { background: var(--ls-label); }

.detect-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.detect-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ls-label);
}

.detects-honesty {
  margin-top: 2.2rem;
  max-width: var(--measure);
  font-size: 0.9rem;
  color: var(--ls-label);
  border-left: 2px solid var(--ls-brand);
  padding-left: 1rem;
}

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

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.steps {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 52ch;
  position: relative;
}

/* vertical circuit rail linking the step chips (static, 6.1) */
.steps::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 1px;
  background: color-mix(in srgb, var(--ls-accent) 28%, transparent);
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ls-label);
}

.steps li strong { color: var(--ls-text); font-weight: 600; }

.steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ls-accent);
  background: var(--ls-base);
  border: 1px solid color-mix(in srgb, var(--ls-accent) 35%, var(--ls-line));
  border-radius: 6px;
  padding: 0.22rem 0.42rem;
  line-height: 1;
}

.how-shot {
  margin: 0;
  max-width: 24rem;
  justify-self: center;
}

@media (max-width: 880px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-shot { justify-self: start; }
}

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

.privacy-panel {
  border: 1px solid color-mix(in srgb, var(--ls-success) 30%, var(--ls-line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--ls-surface) 22%, var(--ls-base));
  padding: clamp(1.8rem, 4vw, 2.8rem);
}

.privacy-panel .section-title { font-size: clamp(1.35rem, 2.8vw, 1.9rem); }

.privacy-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 2rem;
}

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

.privacy-list li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.93rem;
  color: var(--ls-label);
}

.privacy-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 7px;
  height: 7px;
  background: var(--ls-success);
  transform: rotate(45deg);
}

/* ------------------------------------------------ pricing (free, factual) */

.pricing .section-title { color: var(--ls-text); }

.pricing-note {
  max-width: var(--measure);
  color: var(--ls-label);
}

.pricing-chips {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

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

.closing-inner {
  text-align: center;
  border-top: 1px solid var(--ls-line);
  padding-top: clamp(2.6rem, 6vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.closing .cta-note { margin-top: 0; }

/* ------------------------------------------------ scroll reveals (product pages
   only, motion-gated; content is fully visible without JS) */

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