/* Integrations page — only rules specific to integrations.html */

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- Hero ---------- */
.int-hero{ padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(24px, 4vw, 40px); }
.int-hero-inner{ max-width: 760px; }

/* ---------- CSV import panel shell ---------- */
.csv-panel{ padding: 36px; }
@media (max-width: 600px){ .csv-panel{ padding: 24px 20px; } }

.csv-state{ animation: csvFade .4s var(--ease); }
@keyframes csvFade{ from{ opacity:0; transform: translateY(8px); } to{ opacity:1; transform:none; } }

/* ---------- Step 1: dropzone ---------- */
.csv-dropzone{
  text-align:center; padding: clamp(40px, 6vw, 64px) 24px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.csv-dropzone.is-dragover{
  border-color: var(--green-600); background: var(--green-050);
  border-style: solid;
}
.csv-dropzone-actions{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-top:24px; }
.csv-hint{ margin-top:20px; font-size:13px; }
.csv-hint code{ font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; background: var(--bg-alt); padding: 2px 6px; border-radius: 5px; font-size: 12.5px; }

/* ---------- Step 2: preview ---------- */
.csv-summary-bar{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }

.csv-table-wrap{
  margin-top:22px; border:1px solid var(--line); border-radius: var(--radius-md);
  overflow:hidden; overflow-x:auto;
}
.csv-table-wrap .table-compare{ min-width: 520px; }
.csv-table-wrap .table-compare thead th{ font-size:14px; background: var(--bg-alt); }

.csv-row-invalid td{ color: var(--ink-faint); }
.csv-row-invalid .csv-cell-name,
.csv-row-invalid .csv-cell-phone{ text-decoration: line-through; text-decoration-color: var(--red-600); text-decoration-thickness: 1.5px; }

.csv-status-pill{
  display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border-radius: var(--radius-pill);
  font-size:12px; font-weight:700; background: var(--green-100); color: var(--green-700);
}
.csv-status-pill.is-invalid{ background: var(--red-100); color: var(--red-600); }
.csv-status-dot{ width:6px; height:6px; border-radius:50%; background: currentColor; flex-shrink:0; }

.csv-actions{ display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; }

/* ---------- Step 3: success ---------- */
.csv-success{ text-align:center; padding: 24px 4px 8px; }
.csv-success-icon{
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--green-100); color: var(--green-700);
  display:flex; align-items:center; justify-content:center;
}
.csv-success-icon svg{ width: 28px; height: 28px; }

/* ---------- Calendar sync ---------- */
.cal-grid{ align-items:center; gap:56px; }

.cal-badges{ display:flex; flex-direction:column; gap:12px; }
.cal-badge{
  justify-content:flex-start; width:100%; padding:12px 16px; font-size:14.5px; gap:12px;
  background: var(--surface); border:1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--ink); font-weight:600;
}
.cal-badge::before{ content:none; }
.cal-badge svg{ width:18px; height:18px; color: var(--green-600); flex-shrink:0; }

.cal-visual{ padding: 32px; display:flex; flex-direction:column; align-items:center; gap:18px; }
.cal-visual .chat-bubble{ width:100%; }
.cal-arrow{ color: var(--ink-faint); }
.cal-arrow svg{ width:22px; height:22px; }

.cal-event-card{
  width:100%; background: var(--green-050); border:1px solid var(--line);
  border-radius: var(--radius-lg); padding:20px;
}
.cal-event-top{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.cal-event-check{
  width:26px; height:26px; border-radius:50%; background: var(--green-600); color: var(--surface);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.cal-event-check svg{ width:14px; height:14px; }
.cal-event-time{ font-family: var(--font-display); font-size:22px; font-weight:500; margin-top:16px; color: var(--ink); }
.cal-event-detail{ margin-top:2px; font-size:14.5px; }

/* ---------- Works alongside ---------- */
.int-compat{ background: var(--surface-2); border-block: 1px solid var(--line); }
.compat-badges{ display:flex; flex-wrap:wrap; gap:14px; }
.compat-badge{
  padding:13px 18px; font-size:14.5px; gap:10px; font-weight:600;
  background: var(--surface); border:1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--ink);
}
.compat-badge::before{ content:none; }
.compat-badge svg{ width:18px; height:18px; color: var(--amber-700); flex-shrink:0; }

/* ---------- Final CTA (page has no shared rule for this) ---------- */
.final-cta{ text-align:center; max-width:560px; margin-inline:auto; padding: 56px 20px; }
.final-cta-actions{ display:flex; justify-content:center; }
.final-cta-secondary{
  display:inline-block; margin-top:18px; font-weight:600; font-size:14.5px; color: var(--ink-soft);
  transition: color .2s var(--ease);
}
.final-cta-secondary:hover{ color: var(--ink); }

@media (min-width: 640px){
  .cal-badges{ flex-direction:row; flex-wrap:wrap; }
  .cal-badge{ width:auto; }
}
