/* =============================================================================
   Home sections: Shift / Platforms / Proof in Action
   Source: aisearchlab-theme/assets/home.css + page-home.php <style> (2026-07-31 FTP)
   Variables remapped to new theme tokens (--paper/--ink/--wrap/…) with fallbacks.
   No prefers-color-scheme / dark-mode destructive overrides.
   ============================================================================= */

/* ── Shared section label ── */
.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Container / wrap alias for these home blocks ── */
.shift-section .container,
.home-platforms-section .container,
.proof-section .container,
.shift-section .wrap,
.home-platforms-section .wrap,
.proof-section .wrap {
  width: 100%;
  max-width: var(--content-default, 1080px);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =============================================================================
   THE SHIFT — Immersive video / two-column section
   ============================================================================= */

.shift-section {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.shift-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.022) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.shift-content {
  padding-block: var(--space-section);
}

.shift-video-block {
  margin-top: clamp(40px, 5vw, 64px);
  width: 100%;
}

.shift-video-inner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.shift-video-inner video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-md);
}

.shift-video-feather {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--paper) 0%, transparent 12%, transparent 88%, var(--paper) 100%),
    linear-gradient(to right,  var(--paper) 0%, transparent 10%, transparent 90%, var(--paper) 100%);
  border-radius: var(--radius-md);
}

.shift-label {
  margin-bottom: var(--space-8, 2rem);
}

.shift-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}

.shift-left {
  position: sticky;
  top: clamp(80px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 64px);
}

.shift-left h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  color: var(--ink);
  margin: 0;
}

.shift-right {
  display: flex;
  flex-direction: column;
}

.shift-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-5, 1.25rem);
}

.shift-body p {
  font-size: var(--text-md);
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.shift-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-4, 1rem);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: var(--space-2, 0.5rem);
}

.shift-stat {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4, 1rem);
  align-items: baseline;
}

.shift-stat-num {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

.shift-stat-label {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.55;
  font-style: italic;
}

.shift-cta-line {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--ink) !important;
  letter-spacing: -0.01em;
  padding-top: var(--space-6, 1.5rem);
  border-top: 1px solid var(--line);
}

.shift-media-block {
  width: 100%;
}

.shift-img-block {
  width: 100%;
  position: relative;
}

.shift-media-inner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.shift-media-inner video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shift-img-inner {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: none;
}

.shift-img-inner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.shift-media-feather {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius-md);
  background:
    linear-gradient(to bottom, var(--paper) 0%, transparent 10%, transparent 90%, var(--paper) 100%),
    linear-gradient(to right,  var(--paper) 0%, transparent 8%,  transparent 92%, var(--paper) 100%);
}

@media (max-width: 900px) {
  .shift-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8, 2rem);
  }

  .shift-left {
    position: static;
  }

  .shift-left h2 {
    font-size: clamp(24px, 6vw, 32px);
  }
}

/* =============================================================================
   HOME — PLATFORMS BAR SECTION
   ============================================================================= */

.home-platforms-section {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-plat-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.home-plat-headline-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.home-plat-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  margin-top: 0.75rem;
  max-width: 640px;
}

.home-plat-cta-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: color var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
}

.home-plat-cta-link:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.home-plat-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

@media (max-width: 1100px) {
  .home-plat-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 700px) {
  .home-plat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 420px) {
  .home-plat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-plat-item {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(0.75rem, 1.5vw, 1.25rem);
  text-decoration: none;
  transition: background-color var(--transition);
  text-align: center;
}

.home-plat-item:hover {
  background: var(--paper-2);
}

.home-plat-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.home-plat-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-plat-name {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.2;
}

.home-plat-pct {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.home-plat-item--more {
  background: var(--paper-2);
  cursor: pointer;
}

.home-plat-item--more:hover {
  background: var(--color-surface-2);
}

.home-plat-more-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.home-plat-more-num {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.home-plat-more-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.home-plat-more-link {
  font-size: 0.65rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.home-plat-footer p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}

.home-plat-footer p strong {
  color: var(--ink);
  font-weight: 500;
}

@media (max-width: 700px) {
  .home-plat-headline-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .home-plat-cta-link {
    font-size: 0.75rem;
  }
}

/* =============================================================================
   PROOF IN ACTION — from page-home.php inline <style>
   ============================================================================= */

.proof-section {
  padding: var(--space-section) 0;
  background: var(--paper);
  position: relative;
}

.proof-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px;
}

.proof-header .section-label {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.proof-header h2 {
  font-size: var(--text-2xl);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  line-height: var(--leading-snug);
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
}

.proof-header h2 em {
  font-style: normal;
  color: var(--ink-soft);
}

.proof-sub {
  font-size: var(--text-md);
  color: var(--muted);
  line-height: 1.65;
  font-family: var(--font-body);
  max-width: 520px;
  margin: 0 auto;
}

.proof-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 36px auto 52px;
  max-width: 680px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-2);
  overflow: hidden;
}

.proof-stat-item {
  flex: 1;
  padding: 18px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.proof-stat-item:last-child {
  border-right: none;
}

.proof-stat-num {
  display: block;
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  line-height: 1;
  font-family: var(--font-display);
}

.proof-stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--faint);
  margin-top: 5px;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.proof-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.proof-card:hover {
  border-color: var(--ink-soft);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.proof-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  position: relative;
}

.proof-card-img-wrap::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 12px;
  width: 36px;
  height: 6px;
  background:
    radial-gradient(circle 3px at 3px 3px, #ff5f57 0%, #ff5f57 100%) 0 0,
    radial-gradient(circle 3px at 3px 3px, #febc2e 0%, #febc2e 100%) 13px 0,
    radial-gradient(circle 3px at 3px 3px, #28c840 0%, #28c840 100%) 26px 0;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px, 6px 6px;
  z-index: 2;
}

.proof-card-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: #ececec;
  border-bottom: 1px solid var(--line);
  z-index: 1;
}

.proof-card-img {
  width: 100%;
  height: calc(100% - 22px);
  object-fit: cover;
  object-position: top left;
  display: block;
  margin-top: 22px;
  transition: transform var(--transition-slow);
}

.proof-card:hover .proof-card-img {
  transform: scale(1.025);
}

.proof-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.proof-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--faint);
  font-family: var(--font-body);
}

.proof-card-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #bbb;
  flex-shrink: 0;
}

.proof-card-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: var(--tracking-tight);
  line-height: 1.35;
  font-family: var(--font-display);
}

.proof-card-desc {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.6;
  font-family: var(--font-body);
  margin-top: 1px;
}

.proof-tech-bar {
  margin-top: 44px;
  padding: 22px 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.proof-tech-label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--faint);
  font-family: var(--font-body);
  white-space: nowrap;
  flex-shrink: 0;
}

.proof-tech-divider {
  width: 1px;
  height: 20px;
  background: #ddd;
  flex-shrink: 0;
}

.proof-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.proof-tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--ink-soft);
  font-family: var(--font-body);
  white-space: nowrap;
}

.proof-tech-pill svg {
  width: 11px;
  height: 11px;
  stroke: var(--faint);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-section {
    padding: clamp(4rem, 8vw, 5.5rem) 0;
  }

  .proof-stats-bar {
    flex-direction: column;
  }

  .proof-stat-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

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

  .proof-tech-bar {
    flex-direction: column;
    gap: 12px;
  }
}
