/* =============================================================
   integrations.css — page-specific styles for /integrations
   ============================================================= */

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #122840;
  --orange:     #e07b1a;
  --white:      #ffffff;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 16px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --transition: 0.18s ease;
  --grid-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='g' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Crect width='80' height='80' fill='none'/%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M 20 0 L 20 80 M 40 0 L 40 80 M 60 0 L 60 80 M 0 20 L 80 20 M 0 40 L 80 40 M 0 60 L 80 60' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='0' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='80' height='80' fill='url(%23g)'/%3E%3C/svg%3E");
}

/* ── Shared helpers ── */
.btn-ghost-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.30);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  padding: 10px 22px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost-light:hover { border-color: rgba(255,255,255,0.60); color: white; }
.btn-lg { padding: 13px 28px !important; font-size: 16px !important; }
.page-label {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.10);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}

/* ── Hero ── */
.int-hero {
  position: relative;
  background: var(--navy-dark);
  padding: 80px 0 72px;
  text-align: center;
  overflow: hidden;
}
.int-hero-bg { position: absolute; inset: 0; background-image: var(--grid-svg); pointer-events: none; }
.int-hero-inner { position: relative; z-index: 1; }
.int-hero-heading {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.int-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.68);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 32px;
}
.int-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Integration overview cards ── */
.int-overview {
  background: var(--white);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--gray-200);
}
.int-overview-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 48px;
}
.int-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.int-section-heading {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.int-section-sub { font-size: 16px; color: var(--gray-500); line-height: 1.65; }

.int-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.int-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.int-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: rgba(26,58,92,0.18); }

/* Logo container — white bg, subtle border, fixed square */
.int-card-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.int-card-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.int-card-name { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.int-card-blurb { font-size: 12.5px; color: var(--gray-500); line-height: 1.5; }
.int-card-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #3a7d44;
  background: #e8f5e9;
  padding: 3px 9px;
  border-radius: 20px;
}

/* ── Deep-dive sections ── */
.int-section {
  padding: 72px 0;
}
.int-section--white { background: var(--white); }
.int-section--gray  { background: #edf1f7; border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); }

.int-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.int-row--flip .int-copy { order: 2; }
.int-row--flip .int-mock { order: 1; }

.int-copy-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.int-copy-logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.int-copy-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--orange);
  display: inline-block; margin-bottom: 10px;
}
.int-copy-heading {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.int-copy-body {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 22px;
}
.int-bullets { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 9px; }
.int-bullets li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 14px; color: var(--gray-700); line-height: 1.5;
}
.int-check { width: 17px; height: 17px; flex-shrink: 0; color: #4a7fa5; margin-top: 1px; }
.int-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(26,58,92,0.2);
  padding-bottom: 1px;
  transition: border-color var(--transition), color var(--transition);
}
.int-copy-link:hover { border-color: var(--navy); color: var(--navy); }

/* ── Mock panels ── */
.int-mock {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.int-section--gray .int-mock { border-color: #d0dae6; }

.mock-bar {
  background: var(--navy);
  height: 32px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.mock-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.22); flex-shrink: 0; }
.mock-title { font-size: 11.5px; color: rgba(255,255,255,0.55); margin-left: 5px; font-weight: 500; }
.mock-body { padding: 16px 18px 20px; }

/* Stripe mock */
.stripe-mock-header {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 14px;
}
.stripe-mock-amount { font-size: 28px; font-weight: 800; color: var(--navy); }
.stripe-mock-desc { font-size: 12.5px; color: var(--gray-400); margin-top: 3px; }
.stripe-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #635bff;
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: default;
}
.stripe-pay-btn img { width: 16px; height: 16px; object-fit: contain; filter: brightness(0) invert(1); }
.stripe-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12.5px;
  color: var(--gray-600);
}
.stripe-card-row:last-child { border-bottom: none; }
.stripe-card-label { color: var(--gray-400); font-size: 11.5px; }
.stripe-card-value { font-weight: 600; color: var(--navy); }
.stripe-badge {
  display: inline-block;
  background: #e8f5e9;
  color: #3a7d44;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.stripe-card-icons { display: flex; gap: 4px; align-items: center; }
.stripe-card-chip {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-500);
  padding: 2px 6px;
}
.stripe-wordmark { font-size: 14px; font-weight: 800; color: #635bff; letter-spacing: -0.3px; }

/* QuickBooks / Xero sync mock */
.sync-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 12px;
}
.sync-logo-badge {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.sync-logo-badge img { width: 22px; height: 22px; object-fit: contain; }
.sync-header-info { flex: 1; }
.sync-header-name { font-size: 13px; font-weight: 700; color: var(--navy); }
.sync-header-status { font-size: 11.5px; color: #3a7d44; }
.sync-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12.5px;
  color: var(--gray-700);
}
.sync-row:last-child { border-bottom: none; }
.sync-row-icon {
  width: 26px; height: 26px; border-radius: 6px; background: #edf1f7;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 12px; flex-shrink: 0;
}
.sync-row-info { flex: 1; min-width: 0; }
.sync-row-name { font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sync-row-meta { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.sync-tick {
  width: 20px; height: 20px; border-radius: 50%; background: #e8f5e9;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sync-tick svg { width: 11px; height: 11px; stroke: #3a7d44; stroke-width: 2.5; }
.sync-pending {
  font-size: 11px; font-weight: 600; color: #9a5700; background: #fff3e0;
  padding: 2px 8px; border-radius: 20px; flex-shrink: 0;
}

/* Google Sheets mock */
.sheets-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 10px;
}
.sheets-title { font-size: 12.5px; font-weight: 700; color: var(--navy); flex: 1; }
.sheets-updated { font-size: 11px; color: var(--gray-400); }
.sheets-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.sheets-table th {
  background: #f8f9fa;
  color: var(--gray-500);
  font-weight: 700;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 8px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}
.sheets-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--gray-700);
}
.sheets-table tr:last-child td { border-bottom: none; }
.sheets-status {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}
.sheets-status--accepted { background: #e8f5e9; color: #3a7d44; }
.sheets-status--sent     { background: #e3f2fd; color: #1565c0; }
.sheets-status--draft    { background: #f3f4f6; color: #6b7280; }

/* Zapier mock */
.zapier-trigger {
  background: #fff8f6;
  border: 1px solid #ffd5c5;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.zapier-action {
  background: #f0f7ff;
  border: 1px solid #c5daf8;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.zapier-step-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: white;
  border: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  overflow: hidden;
}
.zapier-step-logo img { width: 20px; height: 20px; object-fit: contain; }
.zapier-step-icon-plain {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  font-size: 13px; font-weight: 800; color: white;
}
.zapier-step-info { flex: 1; }
.zapier-step-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); }
.zapier-step-name { font-size: 12.5px; font-weight: 600; color: var(--navy); margin-top: 1px; }
.zapier-connector {
  width: 2px; height: 10px; background: var(--gray-200);
  margin: 0 auto 8px; border-radius: 1px;
}
.zapier-live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #e8f5e9; color: #3a7d44;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  margin-top: 6px;
}
.zapier-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #3a7d44; }

/* ── Coming Soon section ── */
.int-coming-soon {
  background: #f8fafc;
  padding: 64px 0 72px;
  border-top: 1px solid var(--gray-200);
}
.cs-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.cs-section-label span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  white-space: nowrap;
}
.cs-divider { flex: 1; height: 1px; background: var(--gray-200); }
.cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.cs-card {
  background: rgba(255,255,255,0.7);
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cs-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  opacity: 0.75;
}
.cs-logo img { width: 26px; height: 26px; object-fit: contain; }
.cs-letter {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.cs-info { flex: 1; min-width: 0; }
.cs-name-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cs-name { font-size: 13.5px; font-weight: 700; color: var(--navy); }
.cs-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9a5700;
  background: rgba(245,158,11,0.12);
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.cs-category { font-size: 11.5px; color: var(--gray-400); margin-top: 2px; }
.cs-desc { font-size: 12px; color: var(--gray-500); margin-top: 4px; line-height: 1.5; display: none; }

.int-coming-soon-note {
  margin-top: 28px;
  text-align: center;
  font-size: 13.5px;
  color: var(--gray-500);
}
.int-coming-soon-note a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* ── CTA ── */
.int-cta-section {
  position: relative;
  background: var(--navy-dark);
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}
.int-cta-bg { position: absolute; inset: 0; background-image: var(--grid-svg); pointer-events: none; }
.int-cta-inner { position: relative; z-index: 1; }
.int-cta-heading { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: white; letter-spacing: -0.3px; margin-bottom: 12px; }
.int-cta-sub { font-size: 16px; color: rgba(255,255,255,0.65); margin-bottom: 32px; line-height: 1.6; }
.int-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .int-cards-grid { grid-template-columns: repeat(3, 1fr); }
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .int-row { grid-template-columns: 1fr; gap: 36px; }
  .int-row--flip .int-copy { order: 1; }
  .int-row--flip .int-mock { order: 2; }
}
@media (max-width: 640px) {
  .int-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-grid { grid-template-columns: 1fr; }
}
