/* ─── SEO PAGE LAYOUT ─── */
.seo-page {
  padding-top: var(--nav-h);
}

/* ─── BREADCRUMB ─── */
.breadcrumb-bar {
  background: var(--near-black);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  font-family: var(--font-head);
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--accent); }
.bc-sep { color: var(--muted-dim); }
.breadcrumb span:last-child { color: var(--white); }

/* ─── SEO HERO ─── */
.seo-hero {
  padding: 80px 0 80px;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.seo-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
  max-width: 780px;
}

.seo-accent { color: var(--accent); }

.seo-intro {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 48px;
}

.key-metrics {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--card-bg);
  max-width: 680px;
  overflow: hidden;
}

.metric {
  flex: 1;
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric:last-child { border-right: none; }

.metric-num {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}

.metric-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  line-height: 1.4;
}

/* ─── SECTION COMMON ─── */
.seo-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.seo-section-heading {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.seo-section-sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.65;
}

/* ─── TASKS ─── */
.tasks-section { background: var(--near-black); }

.task-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  gap: 24px;
  transition: background 0.2s;
}

.task-row:last-child { border-bottom: none; }
.task-row:hover { background: #111111; }

.task-info { flex: 1; }

.task-name {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.task-detail {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.task-hours {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  min-width: 72px;
}

.hours-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hours-label {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted-dim);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ─── STATS ─── */
.stats-section { background: var(--black); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.stat-card {
  background: var(--near-black);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-figure {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1;
}

.stat-context {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.stat-source {
  font-size: 11px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--muted-dim);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ─── PAIN POINTS ─── */
.pain-section { background: var(--near-black); }

.pain-container { max-width: 720px; }

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.pain-item:last-child { border-bottom: none; }

.pain-check {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  flex-shrink: 0;
}

/* ─── CTA SECTION ─── */
.seo-cta-section {
  padding: 80px 0;
  background: var(--black);
  border-top: 1px solid var(--border);
}

.seo-cta-container { max-width: 720px; }

.seo-cta-section h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
}

.seo-cta-section p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.seo-cta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.seo-cta-back {
  margin-bottom: 0 !important;
  font-size: 13px !important;
}

.seo-cta-back a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-head);
  transition: color 0.2s;
}

.seo-cta-back a:hover { color: var(--accent); }

/* ─── HUB ─── */
.hub-hero { padding-bottom: 64px; }

.hub-grid-section { background: var(--near-black); }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.industry-card {
  display: block;
  background: var(--near-black);
  text-decoration: none;
  transition: background 0.25s;
}

.industry-card:hover { background: #111111; }

.industry-card-inner {
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.industry-name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
}

.industry-metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ind-metric {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--font-head);
}

.ind-metric strong {
  color: var(--white);
  font-weight: 600;
}

.industry-link {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: auto;
  transition: letter-spacing 0.2s;
}

.industry-card:hover .industry-link { letter-spacing: 0.1em; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .key-metrics { flex-direction: column; max-width: 100%; }
  .metric { border-right: none; border-bottom: 1px solid var(--border); }
  .metric:last-child { border-bottom: none; }
  .stat-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .seo-hero { padding: 48px 0 56px; }
  .seo-section { padding: 56px 0; }
  .task-row { padding: 20px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .task-hours { flex-direction: row; align-items: center; gap: 8px; min-width: unset; }
  .hours-num { font-size: 22px; }
  .stat-card { padding: 28px 24px; }
  .industry-grid { grid-template-columns: 1fr; }
  .seo-cta-actions { flex-direction: column; align-items: stretch; }
  .seo-cta-actions .cta-btn { text-align: center; justify-content: center; }
}

/* ─── ANIMATIONS ─── */

/* Hero: cascade in on page load */
.seo-hero .section-label {
  animation: seoUp 0.6s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.08s;
}
.seo-hero .seo-headline {
  animation: seoUp 0.75s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.22s;
}
.seo-hero .seo-intro {
  animation: seoUp 0.75s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.42s;
}
.seo-hero .key-metrics {
  animation: seoUp 0.75s cubic-bezier(0.22,1,0.36,1) both;
  animation-delay: 0.62s;
}

@keyframes seoUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Metric counter */
.metric-num { transition: color 0.2s; }
.metric-num.counting { color: rgba(255,255,255,0.4); }

/* Scroll-triggered: hidden until JS adds .in */
.seo-section-heading {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.seo-section-heading.in { opacity: 1; transform: translateY(0); }

.seo-section-sub {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: 0.1s;
}
.seo-section-sub.in { opacity: 1; transform: translateY(0); }

.task-row {
  opacity: 0; transform: translateX(-14px);
  transition: background 0.2s, opacity 0.45s ease, transform 0.45s ease;
}
.task-row.in { opacity: 1; transform: translateX(0); }

.seo-section .stat-card {
  opacity: 0; transform: translateY(14px);
  transition: background 0.18s, opacity 0.55s ease, transform 0.55s ease;
}
.seo-section .stat-card.in { opacity: 1; transform: translateY(0); }

.pain-item {
  opacity: 0; transform: translateX(-10px);
  transition: background 0s, opacity 0.4s ease, transform 0.4s ease;
}
.pain-item.in { opacity: 1; transform: translateX(0); }

.industry-card {
  opacity: 0; transform: translateY(18px);
  transition: background 0.25s, opacity 0.55s ease, transform 0.55s ease;
}
.industry-card.in { opacity: 1; transform: translateY(0); }

.seo-cta-section h2, .seo-cta-section > div > p {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.seo-cta-section h2.in, .seo-cta-section > div > p.in { opacity: 1; transform: translateY(0); }

.seo-cta-actions {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.12s;
}
.seo-cta-actions.in { opacity: 1; transform: translateY(0); }
