/* Skillia.AI — Paid-traffic landing pages
   Shared by: physical-work-skill-verification, scribe-for-physical-work, beyond-sop-software
   Depends on css/styles.css for design tokens (--color-*, --space-*, --radius-*).
   Conversion-focused: minimal nav, no exits except the CTA.
*/

/* ============================================
   HEADER
   ============================================
   These pages use the shared .header component from css/styles.css so they
   match the rest of the site. It is position:fixed at 72px tall, so the hero
   below carries the same offset the other pages use. */

/* The logo uses the shared .logo component from css/styles.css so it stays
   identical to pricing.html and the rest of the site. Nothing to restyle here. */

/* Sticky header would otherwise cover the top of any #anchor target. */
[id] { scroll-margin-top: 90px; }

/* ============================================
   HERO
   ============================================ */
.lp-hero {
  position: relative;
  padding: calc(72px + var(--space-4xl)) 0 var(--space-3xl);
  overflow: hidden;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--color-primary-glow), transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.lp-hero .container { position: relative; }

.lp-hero-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.lp-eyebrow {
  display: inline-block;
  margin-bottom: var(--space-lg);
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.lp-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  text-wrap: balance;
}

.lp-hero h1 .lp-accent { color: var(--color-primary); }

.lp-subhead {
  max-width: 680px;
  margin: 0 auto var(--space-xl);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.lp-microcopy {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ============================================
   SECTIONS
   ============================================ */
.lp-section { padding: var(--space-4xl) 0; }
.lp-section-tight { padding: var(--space-3xl) 0; }

.lp-section-alt {
  background: var(--color-bg-darker);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.lp-section-head {
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.lp-section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.lp-section-head p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.lp-narrow { max-width: 760px; margin: 0 auto; }

/* ============================================
   PROBLEM / CHECKLIST LISTS
   ============================================ */
.lp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}

.lp-list li {
  position: relative;
  padding: var(--space-md) var(--space-md) var(--space-md) 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.lp-list li::before {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 700;
}

.lp-list-neutral li::before { content: "\2013"; color: var(--color-text-muted); }
.lp-list-no li::before { content: "\00D7"; color: var(--color-error); }
.lp-list-yes li::before { content: "\2713"; color: var(--color-success); }

.lp-pullquote {
  margin: var(--space-2xl) auto 0;
  max-width: 720px;
  padding: var(--space-xl);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-bg-card);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.5;
  font-weight: 500;
  color: var(--color-text-primary);
}

/* ============================================
   HOW IT WORKS — NUMBERED STEPS
   ============================================ */
.lp-steps {
  counter-reset: lp-step;
  display: grid;
  gap: var(--space-lg);
  max-width: 820px;
  margin: 0 auto;
}

.lp-step {
  counter-increment: lp-step;
  position: relative;
  padding: var(--space-xl) var(--space-xl) var(--space-xl) 5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.lp-step:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.lp-step::before {
  content: counter(lp-step, decimal-leading-zero);
  position: absolute;
  left: var(--space-xl);
  top: var(--space-xl);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.lp-step h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-xs);
}

.lp-step p {
  margin: 0;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   TWO-COLUMN CONTRAST (Scribe page)
   ============================================ */
.lp-contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 940px;
  margin: 0 auto;
}

.lp-contrast-col {
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
}

.lp-contrast-col.is-highlight {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.lp-contrast-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lp-contrast-col.is-highlight .lp-contrast-label { color: var(--color-primary); }

.lp-contrast-col h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-lg);
}

.lp-contrast-col .lp-list li {
  background: transparent;
  border-color: var(--color-border-light);
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

/* ============================================
   SCORECARD — real assessment rendering
   ============================================ */
.lp-scorecard {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg-card);
  overflow: hidden;
}

.lp-scorecard-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-darker);
}

.lp-scorecard-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.lp-scorecard-title span {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.lp-scorecard-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}

.lp-score-panel {
  padding: var(--space-xl);
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.lp-score-ring {
  --lp-pct: 65;
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  background: conic-gradient(
    var(--color-warning) calc(var(--lp-pct) * 1%),
    var(--color-border) 0
  );
  display: grid;
  place-items: center;
}

.lp-score-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--color-bg-card);
}

.lp-score-value {
  position: relative;
  z-index: 1;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lp-score-value small {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0;
}

.lp-verdict {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 152, 0, 0.15);
  color: var(--color-warning);
}

.lp-score-meta {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
  display: grid;
  gap: var(--space-sm);
  text-align: left;
}

.lp-score-meta div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.lp-score-meta strong {
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
}

.lp-steps-panel { padding: var(--space-xl); }

.lp-steps-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.lp-steps-panel-head h4 {
  font-size: 0.95rem;
  margin: 0;
}

.lp-steps-panel-head span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.lp-step-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9rem;
}

/* Timestamp of the observed evidence in the trainee video. Deliberately
   quiet — present for credibility, never competing with the step text. */
.lp-step-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
  white-space: nowrap;
  opacity: 0.75;
}

.lp-step-row:last-child { border-bottom: 0; }

.lp-step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.lp-step-status {
  display: inline-block;
  min-width: 6.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.lp-step-status.is-pass {
  background: rgba(76, 175, 80, 0.15);
  color: var(--color-success);
}

.lp-step-status.is-partial {
  background: rgba(255, 152, 0, 0.15);
  color: var(--color-warning);
}

.lp-step-status.is-miss {
  background: rgba(244, 67, 54, 0.15);
  color: var(--color-error);
}

.lp-step-text { color: var(--color-text-secondary); line-height: 1.4; }

.lp-step-elision {
  padding: var(--space-sm) 0;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-light);
}

.lp-scorecard-findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-xl);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-darker);
}

.lp-finding h5 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
}

.lp-finding ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-sm);
}

.lp-finding li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.lp-finding li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.lp-finding-good li::before { content: "\2713"; color: var(--color-success); }
.lp-finding-gap li::before { content: "\0021"; color: var(--color-warning); }
.lp-finding-next li::before { content: "\2192"; color: var(--color-primary); }

.lp-scorecard-note {
  max-width: 980px;
  margin: var(--space-lg) auto 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: center;
}

/* ============================================
   DEMO VIDEO SLOT
   ============================================ */
.lp-video {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  overflow: hidden;
}

.lp-video video,
.lp-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

/* Placeholder shown until the 3-minute demo is dropped in. */
.lp-video-pending {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-md);
  height: 100%;
  padding: var(--space-xl);
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 40%, var(--color-primary-glow), transparent 70%),
    var(--color-bg-card);
}

.lp-video-pending svg { color: var(--color-primary); }

.lp-video-pending p {
  margin: 0;
  max-width: 34ch;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ============================================
   LEAD FORM
   ============================================ */
.lp-form-card {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-bg-card);
  box-shadow: var(--shadow-lg);
}

.lp-form-card h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
  text-align: center;
}

.lp-form-sub {
  margin-bottom: var(--space-xl);
  text-align: center;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.lp-field { margin-bottom: var(--space-lg); }

.lp-field label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.lp-field input,
.lp-field select,
.lp-field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-darker);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.lp-field input:focus,
.lp-field select:focus,
.lp-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.lp-field textarea { min-height: 90px; resize: vertical; }

.lp-form-card button[type="submit"] { width: 100%; }

.lp-form-legal {
  margin: var(--space-md) 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
  color: var(--color-text-muted);
}

.lp-form-legal a { color: var(--color-text-secondary); }

.lp-form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl) 0;
}

.lp-form-success .lp-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(76, 175, 80, 0.15);
  color: var(--color-success);
  font-size: 1.6rem;
}

.lp-form-success h3 { margin-bottom: var(--space-sm); }
.lp-form-success p { color: var(--color-text-secondary); line-height: 1.6; margin: 0; }

.lp-form-error {
  display: none;
  margin-top: var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  background: rgba(244, 67, 54, 0.08);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* ============================================
   FINAL CTA
   ============================================ */
.lp-final {
  padding: var(--space-4xl) 0;
  text-align: center;
  background: var(--color-bg-darker);
  border-top: 1px solid var(--color-border-light);
}

.lp-final h2 {
  max-width: 700px;
  margin: 0 auto var(--space-md);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: -0.02em;
}

.lp-final p {
  max-width: 620px;
  margin: 0 auto var(--space-xl);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ============================================
   FOOTER
   ============================================
   These pages use the shared .footer component from css/styles.css so they
   match the rest of the site. Only the disclaimer below is landing-specific. */

/* Competitor-comparison disclaimer (Scribe page) */
.lp-trademark-note {
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .lp-scorecard-body { grid-template-columns: 1fr; }
  .lp-score-panel {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .lp-contrast { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .lp-hero { padding: calc(72px + var(--space-3xl)) 0 var(--space-2xl); }
  .lp-section { padding: var(--space-3xl) 0; }
  .lp-cta-row { flex-direction: column; }
  .lp-cta-row .btn { width: 100%; }
  .lp-step { padding: var(--space-lg) var(--space-lg) var(--space-lg) 3.5rem; }
  .lp-step::before { left: var(--space-lg); top: var(--space-lg); }
  .lp-form-card { padding: var(--space-xl) var(--space-lg); }

  .lp-step-row {
    grid-template-columns: auto auto auto;
    justify-content: start;
    gap: var(--space-sm);
    row-gap: var(--space-xs);
  }
  .lp-step-status { justify-self: start; }
  /* Keep num + status + time on one line, description below. */
  .lp-step-text { grid-column: 1 / -1; order: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-step { transition: none; }
  .lp-step:hover { transform: none; }
}
