/*
 * Scribe Industry Page Styles
 *
 * Shared styles for all Scribe industry/capability pages rendered by
 * app/views/static/_scribe_page.html.erb (20+ routes).
 * Uses canonical design tokens from variables.css.
 */

/* ── Shell ── */
.sp-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 5rem 2.5rem 6rem;
}

/* ── Hero ── */
.sp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.sp-hero-copy {
  min-width: 0;
}

.sp-eyebrow {
  font-family: var(--font-stack-monospace);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.sp-shell h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.sp-tagline {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 560px;
}

.sp-hero-figure {
  margin: 0;
}

.sp-hero-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
}

.sp-hero-art {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}

.sp-hero-art.is-scrolls {
  background-image: url("/images/scribes/scribe_scrolls.png");
}

.sp-hero-art.is-writing {
  background-image: url("/images/scribes/scribe_writing_at_desk.png");
}

.sp-hero-art.is-opening-mail {
  background-image: url("/images/scribes/scribe_opening_mail.png");
}

.sp-hero-art.is-sending-mail {
  background-image: url("/images/scribes/scribe_sending_mail.png");
}

.sp-hero-art.is-export {
  background-image: url("/images/landing/scribe_export.png");
}

/* ── CTA row ── */
.sp-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0;
}

.sp-cta-row .button.is-primary {
  padding: 0.75rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 150ms ease;
  &:hover { opacity: 0.8; }
}

.sp-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 4rem;
}

.sp-proof-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--color-border);
  padding: 1rem 1.1rem;
}

.sp-proof-label {
  display: block;
  margin-bottom: 1rem;
  line-height: 1.45;
  letter-spacing: 0.16em;
}

.sp-proof-card p:last-child {
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ── Section divider ── */
.sp-section {
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
  margin-top: 1rem;
}

.sp-section-eyebrow {
  font-family: var(--font-stack-monospace);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.45em;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
}

.sp-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.sp-section-lead {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 0 3rem;
}

/* ── Task grid ── */
.sp-task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-bottom: 3rem;
}

.sp-task {
  background: #fff;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sp-task-label {
  font-family: var(--font-stack-monospace);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--color-text-muted);
}

.sp-task-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-primary);
}

.sp-task-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Lifecycle row ── */
.sp-lifecycle {
  display: flex;
  align-items: flex-start;
  gap: 0;
  border: 1px solid var(--color-border);
  max-width: 480px;
  margin-bottom: 4rem;
}

.sp-step {
  flex: 1;
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--color-border);
  &:last-child { border-right: none; }
}

.sp-step-num {
  font-family: var(--font-stack-monospace);
  font-size: 0.62rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 0.3rem;
}

.sp-step-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.sp-see-pricing {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-stack-monospace);
  &:hover { color: var(--color-primary); }
}

@media (max-width: 600px) {
  .sp-shell { padding: 3rem 1.25rem 4rem; }
  .sp-hero { grid-template-columns: 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
  .sp-proof-grid { grid-template-columns: 1fr; }
  .sp-hero-frame {
    aspect-ratio: 1 / 1;
    max-width: 200px;
    margin: 0 auto;
  }
  .sp-task-grid { grid-template-columns: 1fr; }
  .sp-lifecycle { max-width: 100%; flex-direction: column; }
  .sp-step { border-right: none; border-bottom: 1px solid var(--color-border); &:last-child { border-bottom: none; } }
}
