/* ============================================
   Churn Solution — Zapier integration
   Page styles, on top of style.css
   ============================================ */
/* ============================================
   SESSION DATA
   ============================================ */
:is(#root, #root-end) .data-section {
  background: var(--ink-50);
}
:is(#root, #root-end) .data {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
:is(#root, #root-end) .data-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
:is(#root, #root-end) .data-copy p {
  font-size: 16.5px;
  color: var(--ink-600);
  text-wrap: pretty;
}
:is(#root, #root-end) .data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  font-size: 15.5px;
}
:is(#root, #root-end) .data-table th,
:is(#root, #root-end) .data-table td {
  padding: 17px 24px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--ink-200);
  background: var(--paper);
}
:is(#root, #root-end) .data-table tr:last-child > * {
  border-bottom: 0;
}
:is(#root, #root-end) .data-table thead th {
  background: var(--violet-800);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
:is(#root, #root-end) .data-table tbody th {
  width: 40%;
  font-weight: 600;
  color: var(--violet-800);
}
:is(#root, #root-end) .data-table td {
  color: var(--ink-600);
}

/* Frame, shared by every mockup */
:is(#root, #root-end) .mock-frame {
  /* The theme has no green; only the "Session found" pill uses these. */
  --mock-ok-bg: #ddf5e3;
  --mock-ok-fg: #1b6b35;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  background: var(--ink-100);
  color: var(--violet-800);
  font-size: 13px;
  line-height: 1.4;
}
:is(#root, #root-end) .mock-frame.is-center {
  display: flex;
  justify-content: center;
}
:is(#root, #root-end) .mock-card {
  border: 1px solid var(--ink-200);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--sh-sm);
}
:is(#root, #root-end) .mock-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

/* Text and controls */
:is(#root, #root-end) .mock-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
:is(#root, #root-end) .mock-strong {
  font-size: 13px;
  font-weight: 700;
}
:is(#root, #root-end) .mock-small {
  font-size: 12px;
  color: var(--ink-600);
}
:is(#root, #root-end) .mock-tiny {
  font-size: 11px;
  color: var(--ink-600);
}
:is(#root, #root-end) .mock-btn {
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
:is(#root, #root-end) .mock-btn.is-gold {
  background: var(--gold-400);
  color: var(--paper);
}
:is(#root, #root-end) .mock-btn.is-outline {
  color: var(--gold-400);
  border-color: var(--gold-400);
  background: var(--paper);
}
:is(#root, #root-end) .mock-app-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink-200);
  border-radius: 7px;
  background: var(--ink-50);
}
:is(#root, #root-end) .mock-app-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
}

/* Automation hub: the trigger in the middle, six apps around it. The rows
   are three columns with gaps a third of a column wide, so the card centres
   sit at the HUB_COLUMNS the dashed lines are drawn to. */
:is(#root, #root-end) .mock-hub {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
:is(#root, #root-end) .mock-hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
:is(#root, #root-end) .mock-hub-lines line {
  stroke: var(--ink-300);
  stroke-width: 2;
  stroke-dasharray: 5 5;
}
:is(#root, #root-end) .mock-hub-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 9.09%;
}
:is(#root, #root-end) .mock-hub-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  box-shadow: var(--sh-md);
}
:is(#root, #root-end) .mock-hub-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
:is(#root, #root-end) .mock-hub-card .mock-app-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
:is(#root, #root-end) .mock-hub-card-text {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-600);
}
:is(#root, #root-end) .mock-hub-trigger {
  position: relative;
  align-self: center;
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--grad-b) 0%, var(--grad-c) 100%);
  box-shadow: var(--sh-lg);
  color: var(--paper);
  text-align: center;
}
:is(#root, #root-end) .mock-hub-trigger-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
}
:is(#root, #root-end) .mock-hub-trigger-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}
:is(#root, #root-end) .mock-hub-trigger-sub {
  font-size: 11px;
  color: var(--violet-200);
}

/* Step 1: Connect to Zapier card */
:is(#root, #root-end) .mock-connect {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 34px 28px 26px;
  text-align: center;
  box-shadow: var(--sh-md);
}
:is(#root, #root-end) .mock-connect-logo {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid var(--ink-200);
  border-radius: 12px;
}
:is(#root, #root-end) .mock-connect-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
:is(#root, #root-end) .mock-connect .mock-title {
  margin-top: 8px;
  font-size: 16px;
}
:is(#root, #root-end) .mock-connect-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-400);
}
:is(#root, #root-end) .mock-connect .mock-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
}

/* Step 2: trigger event picker */
:is(#root, #root-end) .mock-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  color: var(--ink-600);
}
:is(#root, #root-end) .mock-search svg {
  flex-shrink: 0;
  color: var(--ink-400);
}
:is(#root, #root-end) .mock-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border: 2px solid var(--violet-800);
  border-radius: 8px;
  background: var(--ink-100);
}

/* Step 3: action apps */
:is(#root, #root-end) .mock-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ink-200);
  border-radius: 8px;
}

/* Step 4: test trigger */
:is(#root, #root-end) .mock-test-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
:is(#root, #root-end) .mock-pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--mock-ok-bg);
  color: var(--mock-ok-fg);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
:is(#root, #root-end) .mock-fields {
  display: flex;
  flex-direction: column;
}
:is(#root, #root-end) .mock-field {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--ink-200);
  font-size: 12px;
}
:is(#root, #root-end) .mock-field span:first-child {
  color: var(--ink-600);
}
:is(#root, #root-end) .mock-field span:last-child {
  min-width: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}
:is(#root, #root-end) .mock-btn-row {
  display: flex;
  gap: 10px;
}
:is(#root, #root-end) .mock-btn-row .mock-btn {
  flex: 1 1 0;
}

@media (max-width: 600px) {
  :is(#root, #root-end) .mock-frame {
    padding: 14px;
  }
  :is(#root, #root-end) .mock-panel {
    padding: 14px;
  }
  /* The hub keeps its shape; cards drop their descriptions and stack the
     logo over the name. */
  :is(#root, #root-end) .mock-hub {
    gap: 40px;
  }
  :is(#root, #root-end) .mock-hub-row {
    column-gap: 6%;
  }
  :is(#root, #root-end) .mock-hub-card {
    padding: 10px 6px;
  }
  :is(#root, #root-end) .mock-hub-card-head {
    flex-direction: column;
    gap: 6px;
    font-size: 11px;
    text-align: center;
  }
  :is(#root, #root-end) .mock-hub-card-text {
    display: none;
  }
  :is(#root, #root-end) .mock-hub-trigger {
    width: 72%;
    padding: 12px;
  }
  :is(#root, #root-end) .mock-hub-trigger-name {
    font-size: 13px;
  }
  :is(#root, #root-end) .mock-connect {
    padding: 26px 18px 18px;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1080px) {
  :is(#root, #root-end) .data {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  :is(#root, #root-end) .data-table th,
  :is(#root, #root-end) .data-table td {
    padding: 14px 16px;
  }
}
