/* ============================================
   Integration Page Template
   Purpose: Technical compatibility + retail
   competence. Compact, documentation-like.
   ============================================ */

/* Hero — navy with Shopify sketch */
.integ-hero {
  padding: 20px 0 72px;
  background: var(--f3-navy);
  color: var(--f3-ink);
}

.integ-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.integ-hero-grid > :first-child {
  position: relative;
  z-index: 2;
}

.integ-hero-title {
  margin: 0 0 0.6rem;
  font-family: "Canela", Georgia, serif;
  font-size: clamp(2.25rem, 3vw, 2.75rem);
  line-height: 1.04;
  color: var(--f3-ink);
}

.integ-hero-sub {
  margin: 0 0 1.75rem;
  max-width: 48ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--f3-ink-soft);
}

.integ-hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.integ-hero-visual img {
  width: 130%;
  max-width: none;
  height: auto;
}

/* Sections */
.integ-section {
  padding: 80px 0;
}

/* Patent-drawing SVG separators */
.integ-separator {
  display: block;
  width: 100%;
  max-width: 1120px;
  height: auto;
  margin: 0 auto;
  padding: 0 1.5rem;
  opacity: 0.25;
  pointer-events: none;
}

/* Data flow diagram */
.integ-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 2.5rem;
  overflow-x: auto;
}

.integ-flow-node {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--f3-rule);
  text-align: center;
  min-width: 140px;
}

.integ-flow-node-label {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--f3-text-soft);
  margin-bottom: 0.25rem;
}

.integ-flow-node-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--f3-text);
}

.integ-flow-arrow {
  flex-shrink: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--f3-text-soft);
  opacity: 0.35;
}

.integ-flow-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* What we handle — definition list */
.integ-handles {
  margin-top: 2rem;
}

.integ-handle {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--f3-rule);
  align-items: baseline;
}

.integ-handle:first-child {
  border-top: none;
}

.integ-handle-term {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--f3-text);
}

.integ-handle-icon {
  width: 18px;
  height: 18px;
  stroke: var(--f3-text);
  fill: none;
  stroke-width: 1;
  opacity: 0.45;
  flex-shrink: 0;
}

.integ-handle-def {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--f3-text-soft);
}

/* Failures we prevent */
.integ-failures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.integ-failure {
  padding-top: 1rem;
  border-top: 1px solid var(--f3-rule);
}

.integ-failure-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--f3-text);
}

.integ-failure-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--f3-text-soft);
}

/* Technical specs — rows */
.integ-specs {
  margin-top: 2rem;
  border: 1px solid var(--f3-rule);
}

.integ-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--f3-rule);
}

.integ-spec-row:first-child {
  border-top: none;
}

.integ-spec-label {
  font-size: 0.88rem;
  color: var(--f3-text-soft);
}

.integ-spec-value {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--f3-text);
}

/* Responsive */
@media (max-width: 1024px) {
  .integ-hero { padding: 16px 0 48px; }
  .integ-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .integ-hero-visual { justify-content: center; order: -1; }
  .integ-hero-visual img { width: 100%; max-width: none; }
  .integ-section { padding: 60px 0; }
  .integ-failures { grid-template-columns: 1fr 1fr; }
  .integ-handle { grid-template-columns: 140px 1fr; }
}

@media (max-width: 720px) {
  .integ-hero { padding: 12px 0 40px; }
  .integ-section { padding: 48px 0; }
  .integ-flow { flex-direction: column; }
  .integ-flow-arrow { transform: rotate(90deg); width: auto; height: 30px; }
  .integ-flow-node { min-width: 0; width: 100%; }
  .integ-failures { grid-template-columns: 1fr; }
  .integ-handle { grid-template-columns: 1fr; gap: 0.25rem; }
  .integ-spec-row { flex-direction: column; gap: 0.15rem; }
}
