/* ==========================================================================
   Wiztra Chat — Features page
   Converted from src/pages/features/page.tsx,
   src/pages/home/components/HowItWorksSection.tsx (dark variant),
   src/pages/home/components/IntegrationsSection.tsx.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared containers
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   1. Hero
   -------------------------------------------------------------------------- */

.feat-hero {
  position: relative;
  overflow: hidden;
  padding-block: 128px 64px;
  background: linear-gradient(180deg, oklch(0.98 0.005 290) 0%, oklch(0.99 0.003 290) 50%, oklch(0.97 0.005 290) 100%);
}
@media (min-width: 1024px) { .feat-hero { padding-block: 160px 80px; } }

.feat-hero-inner {
  position: relative;
  z-index: 10;
  text-align: center;
}

.feat-hero-eyebrow { margin-bottom: 20px; }

.feat-hero-title {
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 20px;
  color: var(--foreground-950);
}
@media (min-width: 768px)  { .feat-hero-title { font-size: 48px; } }
@media (min-width: 1024px) { .feat-hero-title { font-size: 56px; } }

.feat-hero-sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--foreground-600);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .feat-hero-sub { font-size: 18px; } }

/* --------------------------------------------------------------------------
   2. How It Works (dark)
   -------------------------------------------------------------------------- */

.hiw {
  position: relative;
  overflow: hidden;
  padding-block: 80px;
  background: linear-gradient(160deg, #1A2332 0%, #0F1729 50%, #1A2332 100%);
}
@media (min-width: 1024px) { .hiw { padding-block: 112px; } }

.hiw-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgb(255 255 255 / 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgb(255 255 255 / 0.03) 0%, transparent 40%);
}

.hiw-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}
@media (min-width: 1024px) { .hiw-shell { flex-direction: row; gap: 64px; } }

.hiw-left {
  width: 100%;
  flex-shrink: 0;
}
@media (min-width: 1024px) {
  .hiw-left { width: 500px; position: sticky; top: 96px; }
}
@media (min-width: 1280px) { .hiw-left { width: 540px; } }

.hiw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
}
.hiw-badge i { font-size: 12px; color: var(--primary-400); }
.hiw-badge span {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-400);
}

.hiw-title {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 32px;
}
@media (min-width: 1280px) { .hiw-title { font-size: 32px; } }

.hiw-steps { display: flex; flex-direction: column; }

.hiw-step {
  display: flex;
  gap: 12px;
  width: 100%;
  padding-block: 16px;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.hiw-step:last-child { border-bottom: none; }

.hiw-step-bar {
  flex-shrink: 0;
  width: 3px;
  min-height: 44px;
  border-radius: 999px;
  background: oklch(0.25 0.01 260);
  transition: background-color .5s ease;
}
.hiw-step.is-active .hiw-step-bar { background: var(--primary-500); }

.hiw-step-body { flex: 1; min-width: 0; }

.hiw-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.hiw-step-num {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: oklch(0.50 0.01 260);
  transition: color .3s ease;
}
.hiw-step.is-active .hiw-step-num { color: var(--primary-400); }

.hiw-step-toggle-plus,
.hiw-step-toggle-minus {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  font-size: 12px;
  color: rgb(255 255 255 / 0.4);
}
.hiw-step-toggle-plus { display: inline-flex; opacity: .5; }
.hiw-step:hover .hiw-step-toggle-plus { opacity: .7; }
.hiw-step.is-active .hiw-step-toggle-plus { display: none; }
.hiw-step.is-active .hiw-step-toggle-minus { display: inline-flex; opacity: .7; }

.hiw-step-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: oklch(0.60 0.01 260);
  transition: color .3s ease, font-size .3s ease;
}
.hiw-step.is-active .hiw-step-title { color: #fff; font-size: 15px; }

.hiw-step-desc {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 12px;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.5);
  padding-right: 8px;
  transition: max-height .5s ease, opacity .5s ease, margin-top .5s ease;
}
.hiw-step.is-active .hiw-step-desc {
  max-height: 100px;
  opacity: 1;
  margin-top: 6px;
}

.hiw-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-700));
  transition: opacity .2s ease, transform .1s ease;
}
.hiw-cta-btn:hover { opacity: .9; }
.hiw-cta-btn:active { transform: scale(0.97); }

.hiw-right { flex: 1; min-width: 0; width: 100%; }

.hiw-viz-stage { position: relative; height: 360px; }
@media (min-width: 640px)  { .hiw-viz-stage { height: 420px; } }
@media (min-width: 1024px) { .hiw-viz-stage { height: 480px; } }

.hiw-viz-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity .4s ease-out, transform .4s ease-out;
}
.hiw-viz-panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   3. Viz cards (shared by the 4 How-It-Works panels)
   -------------------------------------------------------------------------- */

.viz-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--background-200);
  border-radius: 16px;
  overflow: hidden;
}

.viz-card-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--background-100);
}
.viz-card-head-title { font-size: 12px; font-weight: 700; color: var(--foreground-700); }

.viz-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid transparent;
}
.viz-badge i { font-size: 8px; }
.viz-badge-gold   { background: var(--primary-50);   color: var(--primary-700);  border-color: var(--primary-200); }
.viz-badge-green  { background: var(--emerald-50);    color: var(--emerald-600);  border-color: rgb(16 185 129 / 0.2); }
.viz-badge-muted  { background: var(--background-100);color: var(--foreground-500); border-color: var(--background-200); }

.viz-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-50);
  border: 1px solid rgb(16 185 129 / 0.2);
}
.viz-badge-live-dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--emerald-500);
  animation: pulseGlow 2s ease-in-out infinite;
}
.viz-badge-live span { font-size: 10px; font-weight: 700; color: var(--emerald-600); }

.viz-theme-primary   { background: var(--primary-50);   color: var(--primary-500); }
.viz-theme-accent    { background: var(--accent-50);    color: var(--accent-500); }
.viz-theme-secondary { background: var(--secondary-50); color: var(--secondary-500); }

/* ---- Viz 1: Connect ---- */

.viz-connect-body {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.viz-connect-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 155px;
  flex-shrink: 0;
}

.viz-integ-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--background-50);
  border: 1px solid var(--background-200);
  box-shadow: var(--shadow-sm);
}
.viz-integ-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.viz-integ-icon i { font-size: 10px; }
.viz-integ-name { flex: 1; font-size: 11px; font-weight: 600; color: var(--foreground-700); white-space: nowrap; }
.viz-integ-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 999px; background: var(--emerald-400); }

.brand-shopify    { background: #EEF6EA; } .brand-shopify i    { color: #5A8A3C; }
.brand-hubspot    { background: #FFF0EB; } .brand-hubspot i    { color: #FF7A59; }
.brand-notion     { background: #F0F0F0; } .brand-notion i     { color: #191919; }
.brand-salesforce { background: #E8F4FC; } .brand-salesforce i { color: #0176D3; }
.brand-zendesk    { background: #E6EDED; } .brand-zendesk i    { color: #03363D; }
.brand-gdrive     { background: #EAF1FE; } .brand-gdrive i     { color: #4285F4; }
.brand-slack      { background: #F5EAF6; } .brand-slack i      { color: #4A154B; }

.viz-connect-center { flex: 1; position: relative; height: 100%; }

.viz-connect-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.viz-connect-svg line { stroke: var(--primary-400); stroke-width: 1.2; stroke-dasharray: 5 4; opacity: 0.55; }

.viz-connect-orb {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.viz-connect-orb-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--primary-500);
  opacity: 0.25;
  transform: scale(1.4);
  animation: pulseGlow 2.4s ease-in-out infinite;
}
.viz-connect-orb-icon {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--primary-400), var(--primary-700));
  box-shadow: var(--shadow-lg);
}
.viz-connect-orb-icon i { color: #fff; font-size: 20px; }
.viz-connect-orb-label {
  margin-top: 2px;
  font-family: var(--font-heading);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: rgb(255 255 255 / 0.9);
}

/* ---- Viz 2: Knowledge ---- */

.viz-kb-progress-wrap { flex-shrink: 0; padding: 16px 20px 12px; }
.viz-kb-progress-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.viz-kb-progress-label { font-size: 11px; color: var(--foreground-500); }
.viz-kb-progress-value { font-size: 11px; font-weight: 700; color: var(--primary-600); }
.viz-kb-progress-track { height: 8px; border-radius: 999px; background: var(--background-200); overflow: hidden; }
.viz-kb-progress-bar { height: 100%; width: 94%; border-radius: 999px; background: linear-gradient(90deg, var(--primary-500), var(--primary-400)); }

.viz-kb-list { flex: 1; min-height: 0; overflow: auto; padding: 0 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.viz-kb-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--background-50); border: 1px solid var(--background-100); }
.viz-kb-icon { flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px; background: var(--primary-50); display: flex; align-items: center; justify-content: center; }
.viz-kb-icon i { color: var(--primary-500); font-size: 13px; }
.viz-kb-copy { flex: 1; min-width: 0; }
.viz-kb-name { font-size: 12px; font-weight: 600; color: var(--foreground-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-kb-size { font-size: 10px; color: var(--foreground-400); }
.viz-kb-status { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.viz-kb-status-done    { background: var(--emerald-50); border: 1px solid rgb(16 185 129 / 0.2); color: var(--emerald-600); }
.viz-kb-status-pending { background: var(--primary-50); border: 1px solid var(--primary-200); color: var(--primary-600); }

/* ---- Viz 3: Agents ---- */

.viz-agents-body { flex: 1; min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.viz-agents-grid { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.viz-agent-card { display: flex; flex-direction: column; padding: 16px; border-radius: 12px; background: var(--background-50); border: 1px solid var(--background-200); }
.viz-agent-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.viz-agent-icon { width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.viz-agent-icon i { font-size: 16px; }
.viz-agent-switch { width: 36px; height: 20px; border-radius: 999px; background: var(--primary-500); display: flex; align-items: center; padding-inline: 2px; }
.viz-agent-switch-knob { width: 16px; height: 16px; border-radius: 999px; background: #fff; margin-left: auto; box-shadow: var(--shadow-sm); }
.viz-agent-name { font-size: 12px; font-weight: 700; color: var(--foreground-800); line-height: 1.2; margin-bottom: 2px; }
.viz-agent-desc { flex: 1; font-size: 10px; color: var(--foreground-500); margin-bottom: 8px; }
.viz-agent-stat { font-size: 10px; font-weight: 600; color: var(--primary-600); }
.viz-agents-note {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
}
.viz-agents-note i { color: var(--primary-400); font-size: 12px; }
.viz-agents-note span { font-size: 11px; font-weight: 500; color: var(--primary-700); }

/* ---- Viz 4: Results ---- */

.viz-results-body { flex: 1; min-height: 0; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.viz-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.viz-kpi-row-bottom { flex: 1; }
.viz-kpi-card { padding: 12px; border-radius: 12px; background: var(--background-50); border: 1px solid var(--background-200); }
.viz-kpi-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.viz-kpi-icon i { font-size: 12px; }
.viz-kpi-value { font-family: var(--font-heading); font-size: 17px; font-weight: 700; line-height: 1; color: var(--foreground-950); margin-bottom: 2px; }
.viz-kpi-label { font-size: 9px; line-height: 1.2; color: var(--foreground-500); margin-bottom: 4px; }
.viz-kpi-change { display: flex; align-items: center; gap: 2px; }
.viz-kpi-change i { font-size: 9px; color: var(--emerald-500); }
.viz-kpi-change span { font-size: 9px; font-weight: 700; color: var(--emerald-600); }

.viz-kpi-growth {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--primary-200);
  background: var(--primary-50);
}
.viz-kpi-growth-label { font-size: 9px; font-weight: 700; color: var(--primary-700); margin-bottom: 2px; }
.viz-kpi-growth-value { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--primary-700); }
.viz-kpi-chart { display: flex; align-items: flex-end; gap: 2px; height: 36px; margin-top: 8px; }
.viz-kpi-bar { flex: 1; border-radius: 2px 2px 0 0; background: var(--primary-300); }
.viz-kpi-bar-hi { background: var(--primary-500); }

.bar-h-25 { height: 25%; }
.bar-h-33 { height: 33%; }
.bar-h-42 { height: 42%; }
.bar-h-50 { height: 50%; }
.bar-h-58 { height: 58%; }
.bar-h-67 { height: 67%; }
.bar-h-75 { height: 75%; }
.bar-h-83 { height: 83%; }
.bar-h-100 { height: 100%; }

/* --------------------------------------------------------------------------
   4. Feature pills (sticky sub-nav)
   -------------------------------------------------------------------------- */

.feat-pills {
  position: sticky;
  top: var(--nav-height);
  z-index: 30;
  padding-block: 16px;
  background: oklch(var(--background-50c) / 0.95);
  backdrop-filter: blur(8px);
  border-block: 1px solid oklch(var(--background-200c) / 0.5);
}
.feat-pills[hidden] { display: none; }

.feat-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.feat-pill {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--foreground-600);
  background: var(--background-100);
  transition: background-color .2s ease, color .2s ease;
}
.feat-pill:hover { background: var(--background-200); color: var(--foreground-800); }
.feat-pill.is-active { background: var(--primary-500); color: #fff; }

/* --------------------------------------------------------------------------
   5. Feature section blocks
   -------------------------------------------------------------------------- */

.feat-block { padding-block: 64px; }
@media (min-width: 1024px) { .feat-block { padding-block: 96px; } }
.feat-block-even { background: var(--background-50); }
.feat-block-odd  { background: oklch(var(--background-100c) / 0.6); }

.feat-block-tag { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.feat-block-number {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-500);
  background: var(--primary-50);
  padding: 4px 12px;
  border-radius: 8px;
}
.feat-block-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground-500);
}

.feat-block-headline {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-bottom: 16px;
  color: var(--foreground-950);
}
@media (min-width: 768px) { .feat-block-headline { font-size: 44px; } }

.feat-block-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--foreground-600);
  max-width: 640px;
  margin-bottom: 48px;
}

.feat-sub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px)  { .feat-sub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feat-sub-grid { grid-template-columns: repeat(3, 1fr); } }

.feat-sub-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--background-50);
  border: 1px solid oklch(var(--background-200c) / 0.5);
  transition: border-color .2s ease, background-color .2s ease;
}
.feat-sub-item:hover { border-color: var(--primary-200); background: oklch(var(--primary-50c) / 0.3); }
.feat-sub-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-50);
  transition: background-color .2s ease;
}
.feat-sub-item:hover .feat-sub-icon { background: var(--primary-100); }
.feat-sub-icon i { color: var(--primary-500); font-size: 14px; }
.feat-sub-name { font-size: 14px; font-weight: 500; color: var(--foreground-800); }

/* --------------------------------------------------------------------------
   6. Integrations
   -------------------------------------------------------------------------- */

.integ {
  position: relative;
  overflow: hidden;
  padding-block: 80px;
  background: linear-gradient(160deg, oklch(var(--primary-100c)) 0%, oklch(0.94 0.07 82) 50%, oklch(var(--primary-100c)) 100%);
  border-block: 1px solid oklch(var(--primary-300c));
}
@media (min-width: 1024px) { .integ { padding-block: 112px; } }

.integ-grid-texture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(oklch(var(--primary-600c) / 0.5) 1px, transparent 1px),
    linear-gradient(90deg, oklch(var(--primary-600c) / 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
}

.integ-inner { position: relative; z-index: 1; }

.integ-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 56px;
}
@media (min-width: 1024px) { .integ-head { margin-bottom: 64px; } }

.integ-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
  background: rgb(255 255 255 / 0.7);
  border: 1px solid oklch(var(--primary-400c));
}
.integ-badge i { font-size: 12px; color: oklch(var(--primary-700c)); }
.integ-badge span {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: oklch(var(--primary-800c));
}

.integ-title {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 620px;
  margin-bottom: 16px;
  color: var(--foreground-950);
}
@media (min-width: 768px)  { .integ-title { font-size: 32px; } }
@media (min-width: 1024px) { .integ-title { font-size: 38px; } }

.integ-sub { font-size: 15px; line-height: 1.65; color: var(--foreground-600); max-width: 560px; }

.integ-divider { height: 1px; margin-bottom: 56px; background: oklch(var(--primary-300c) / 0.6); }
@media (min-width: 1024px) { .integ-divider { margin-bottom: 64px; } }

.integ-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .integ-columns { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.integ-columns > :nth-child(1) { transition-delay: 0ms; }
.integ-columns > :nth-child(2) { transition-delay: 120ms; }
.integ-columns > :nth-child(3) { transition-delay: 240ms; }

.integ-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid oklch(var(--primary-300c));
  box-shadow: 0 2px 12px oklch(var(--primary-500c) / 0.06);
}

.integ-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.integ-card-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(var(--primary-100c));
}
.integ-card-icon i { font-size: 16px; color: var(--primary-500); }
.integ-card-title { font-size: 17px; line-height: 1.3; color: var(--foreground-900); }

.integ-card-body { font-size: 14px; line-height: 1.65; color: var(--foreground-500); margin-bottom: 24px; }

.integ-tags { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.integ-tag {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--foreground-700);
  background: oklch(var(--primary-50c));
  border: 1px solid oklch(var(--primary-300c));
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.integ-tag:hover { background: oklch(var(--primary-200c)); border-color: oklch(var(--primary-400c)); color: oklch(var(--primary-900c)); }

.integ-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid oklch(var(--primary-300c) / 0.5);
}
@media (min-width: 640px) { .integ-foot { flex-direction: row; justify-content: space-between; } }
.integ-foot-note { font-size: 13px; text-align: center; color: var(--foreground-500); }
@media (min-width: 640px) { .integ-foot-note { text-align: left; } }
.integ-foot-count { display: flex; align-items: center; gap: 8px; }
.integ-foot-count i { font-size: 14px; color: oklch(var(--primary-600c)); }
.integ-foot-count span { font-size: 12px; font-weight: 600; color: var(--foreground-600); }
