/* =============================================
   SHOPLABS INDUSTRY INDEX — /industry/ hub page
   Reuses design tokens from /css/hw-styles.css
   (loaded before this file). Card grid follows
   the blog index idiom; card motifs are static
   CSS poses of the industry hero animations.
   ============================================= */

/* ── Hero ── */
.ix-hero {
  background: var(--surface);
}

.ix-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 64px) 32px clamp(44px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ix-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(75, 42, 99, 0.06);
  border: 1px solid rgba(75, 42, 99, 0.15);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.ix-eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 2.5px;
  background: var(--accent);
  animation: ix-live-pulse 2.4s ease-in-out infinite;
}

@keyframes ix-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155, 207, 106, 0.45); }
  50%      { box-shadow: 0 0 0 4px rgba(155, 207, 106, 0); }
}

.ix-title {
  margin: 0 auto 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  max-width: 22ch;
}

.ix-title-accent {
  font-style: normal;
  color: var(--primary);
}

.ix-sub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(26, 26, 26, 0.6);
  max-width: 56ch;
  margin: 0 auto;
}

/* ── Grid section — same surface as the hero, no seam ── */
.ix-grid-section {
  background: var(--surface);
  padding: clamp(36px, 4.5vw, 56px) 0 clamp(64px, 8vw, 104px);
}

.ix-grid-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ── Live industry card ── */
.ix-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(75, 42, 99, 0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.06),
    0 12px 40px rgba(75, 42, 99, 0.08);
  text-decoration: none;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ix-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 20px 56px rgba(75, 42, 99, 0.14);
  text-decoration: none;
}

.ix-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Motif panel — a quiet stage for the static CSS scene */
.ix-card-visual {
  position: relative;
  height: 196px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg, #fbf8fd 0%, #f6f2fa 100%);
  border-bottom: 1px solid rgba(75, 42, 99, 0.07);
  overflow: hidden;
  pointer-events: none;
}

.ix-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: ix-live-pulse 2s ease-in-out infinite;
}

.ix-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 22px;
  flex: 1;
}

.ix-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--charcoal);
}

.ix-card-desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(26, 26, 26, 0.6);
}

.ix-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
}

.ix-card-cta .arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ix-card:hover .ix-card-cta .arrow {
  transform: translate(2px, -2px);
}

/* =============================================
   MOTIFS — static poses of the page animations
   ============================================= */

/* ── H&W: agent answers a sensitive question ── */
.ix-motif-hw {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 262px;
  max-width: 100%;
}

.ix-hw-cb {
  align-self: flex-end;
  max-width: 210px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(75, 42, 99, 0.11);
  border-radius: 14px 14px 4px 14px;
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  color: var(--charcoal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ix-hw-ac {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  max-width: 226px;
}

.ix-hw-atag {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(75, 42, 99, 0.45);
  margin-bottom: 4px;
  padding-left: 2px;
}

.ix-hw-ab {
  background: rgba(75, 42, 99, 0.09);
  border: 1px solid rgba(75, 42, 99, 0.12);
  border-radius: 14px 14px 14px 4px;
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.45;
  color: var(--charcoal);
}

.ix-gpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 11px 4px 5px;
  margin-top: 8px;
  border-radius: 9999px;
  background: rgba(155, 207, 106, 0.18);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  color: #3a7018;
}

.ix-gpill-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #9bcf6a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── CE: brand knowledge nodes feeding the agent ── */
.ix-motif-ce {
  position: relative;
  width: 252px;
  max-width: 100%;
  height: 158px;
}

.ix-ce-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ix-ce-path {
  fill: none;
  stroke: rgba(75, 42, 99, 0.25);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3 5;
}

.ix-ce-node {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ix-ce-n1 { top: 8px; }
.ix-ce-n2 { top: 61px; }
.ix-ce-n3 { top: 114px; }

.ix-ce-nicon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--white);
  border: 1.5px solid rgba(75, 42, 99, 0.11);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ix-ce-nlabel {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.55);
  white-space: nowrap;
}

.ix-ce-hub {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(75, 42, 99, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(75, 42, 99, 0.11);
}

.ix-ce-hub-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ix-ce-hub-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Subscriptions: renewal calendar updated by voice ── */
.ix-motif-subs {
  width: 218px;
  max-width: 100%;
}

.ix-cal-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(75, 42, 99, 0.14);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ix-cal-hdr {
  background: rgba(75, 42, 99, 0.05);
  border-bottom: 1px solid rgba(75, 42, 99, 0.09);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.ix-cal-body { padding: 9px 11px 11px; }

.ix-cal-month {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  color: rgba(26, 26, 26, 0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.ix-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.ix-ch {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  text-align: center;
  padding: 1px 0 5px;
  color: rgba(26, 26, 26, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ix-ch-hl {
  color: var(--primary);
  font-weight: 700;
}

.ix-cd {
  height: 13px;
  border-radius: 3px;
  background: rgba(26, 26, 26, 0.07);
}

.ix-cd-past { background: rgba(75, 42, 99, 0.12); }
.ix-cd-next { background: var(--primary); }
.ix-cd-future { background: rgba(75, 42, 99, 0.22); }

.ix-motif-subs .ix-gpill { margin-top: 9px; }

/* ── Carousel dots (mobile only — hidden on desktop) ── */
.ix-dots {
  display: none;
}

/* ── Responsive: single 960px breakpoint (site rule) ── */
@media (max-width: 960px) {
  .ix-hero-inner { padding: 40px 24px 44px; }
  .ix-grid-inner { padding: 0; }

  /* Cards become a horizontal snap carousel; next card peeks in */
  .ix-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    padding: 8px 24px 28px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ix-grid::-webkit-scrollbar { display: none; }

  .ix-card {
    flex: 0 0 84%;
    max-width: 360px;
    scroll-snap-align: center;
  }

  .ix-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
  }

  .ix-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(75, 42, 99, 0.18);
    cursor: pointer;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .ix-dot.is-active {
    background: var(--primary);
    transform: scale(1.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ix-card { transition: none; }
  .ix-card-cta .arrow { transition: none; }
  .ix-eyebrow-dot,
  .ix-live-dot { animation: none; }
  .ix-dot { transition: none; }
}
