/* ==========================================================================
   Venderflow /phone-system/ page
   Scoped under .ps-page so the shared Webflow stylesheet (global h1/h2/p/ul
   rules) cannot leak in and these rules cannot leak out into the site shell.
   ========================================================================== */

.ps-page {
  --ps-green: #079f4b;
  --ps-green-deep: #05753a;
  --ps-mint: #f2faf6;
  --ps-mint-2: #dff2e7;
  --ps-ink: #0f172a;
  --ps-ink-2: #334155;
  --ps-ink-3: #64748b;
  --ps-white: #ffffff;
  --ps-line: #e5e7eb;
  --ps-radius-lg: 20px;
  --ps-radius: 12px;
  --ps-radius-sm: 8px;
  --ps-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px -12px rgba(15, 23, 42, 0.18);

  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ps-ink-2);
  background: var(--ps-white);
  display: block;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.ps-page *,
.ps-page *::before,
.ps-page *::after { box-sizing: border-box; }

/* Reset at class-level specificity (0,1,0): beats Webflow's element rules,
   loses to every later component class rule below. */
.ps-page :where(h1, h2, h3, p, ul, ol, li, figure) { margin: 0; padding: 0; }
.ps-page :where(ul, ol) { list-style: none; color: inherit; text-align: left; }
.ps-page a { color: var(--ps-green-deep); text-decoration: underline; text-underline-offset: 2px; }
.ps-page a:hover { color: var(--ps-green); }
.ps-page button { font: inherit; color: inherit; cursor: pointer; }
.ps-page kbd { font-family: inherit; }

.ps-page :focus-visible {
  outline: 3px solid var(--ps-green);
  outline-offset: 2px;
  border-radius: 6px;
}

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

.ps-wrap {
  width: 100%;
  max-width: 1331px; /* matches the site header container (1283px + gutters) */
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type scale (1.25 ratio from 17px) ---------- */
.ps-page .ps-eyebrow {
  color: var(--ps-green-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.ps-page .ps-h1 {
  color: var(--ps-ink);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  text-wrap: balance;
}
.ps-page .ps-h2 {
  color: var(--ps-ink);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ps-page .ps-h2--light { color: var(--ps-white); }
.ps-page .ps-h3 {
  color: var(--ps-ink);
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.ps-page .ps-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ps-ink-2);
  max-width: 34em;
}
.ps-page .ps-sub {
  font-size: 18px;
  color: var(--ps-ink-3);
  max-width: 40em;
  margin-top: 14px;
}
.ps-page .ps-sub--light { color: #cbd5e1; }
.ps-page .ps-sub--light a { color: var(--ps-white); }

/* ---------- Buttons ---------- */
.ps-page .ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ps-page .ps-btn--primary { background: var(--ps-green); color: var(--ps-white); }
.ps-page .ps-btn--primary:hover { background: var(--ps-green-deep); color: var(--ps-white); }
.ps-page .ps-btn--ghost { background: var(--ps-white); color: var(--ps-ink); border-color: var(--ps-line); }
.ps-page .ps-btn--ghost:hover { border-color: var(--ps-green); color: var(--ps-green-deep); }
.ps-page .ps-btn--light { background: var(--ps-white); color: var(--ps-ink); }
.ps-page .ps-btn--light:hover { background: var(--ps-mint); color: var(--ps-ink); }
.ps-page .ps-btn--outline-light { background: transparent; color: var(--ps-white); border-color: rgba(255, 255, 255, 0.55); }
.ps-page .ps-btn--outline-light:hover { border-color: var(--ps-white); color: var(--ps-white); }
.ps-page .ps-btn--small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: 8px;
  background: var(--ps-green);
  color: var(--ps-white);
  border: 0;
  white-space: nowrap;
}
.ps-page .ps-btn--small:hover { background: var(--ps-green-deep); }
.ps-page .ps-btn--soft { background: var(--ps-mint); color: var(--ps-green-deep); }
.ps-page .ps-btn--soft:hover { background: var(--ps-mint-2); }

.ps-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ps-actions--center { justify-content: center; }

/* ==========================================================================
   HERO
   ========================================================================== */
.ps-hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--ps-mint) 0%, rgba(242, 250, 246, 0) 70%),
    var(--ps-white);
  padding: 72px 0 88px;
  border-bottom: 1px solid var(--ps-line);
}
.ps-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.ps-page .ps-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--ps-ink-2);
}
.ps-hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.ps-hero__facts li::before {
  content: "";
  width: 16px; height: 16px; flex: none;
  border-radius: 50%;
  background: var(--ps-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Console (the one bold element) ---------- */
.ps-console {
  background: var(--ps-white);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 40px 80px -32px rgba(7, 159, 75, 0.35), 0 24px 48px -24px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  font-size: 15px;
  color: var(--ps-ink);
}
.ps-console__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--ps-ink);
  color: var(--ps-white);
}
.ps-console__dots { display: inline-flex; gap: 6px; }
.ps-console__dots i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.ps-console__title { font-weight: 700; font-size: 14px; flex: 1; }
.ps-console__live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #94a3b8; }
.ps-pulse { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: ps-pulse 2s infinite; }
@keyframes ps-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.ps-console__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ps-line);
  background: #fbfdfc;
}
.ps-page .ps-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 13px 6px 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ps-ink-3);
}
.ps-page .ps-tab:hover { color: var(--ps-ink); }
.ps-page .ps-tab[aria-selected="true"] { color: var(--ps-green-deep); border-bottom-color: var(--ps-green); background: var(--ps-white); }

.ps-console__body { padding: 18px; min-height: 290px; }
.ps-panel[hidden] { display: none !important; }
.ps-panel:focus-visible { outline-offset: 4px; }
.ps-page .ps-panel__hint { font-size: 13px; font-weight: 600; color: var(--ps-ink-3); margin-bottom: 12px; display: flex; justify-content: space-between; }
.ps-page .ps-panel__foot { font-size: 13px; color: var(--ps-ink-3); margin-top: 12px; }

/* Numbers panel */
.ps-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.ps-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: #f1f5f9; }
.ps-page .ps-seg__opt { border: 0; background: transparent; padding: 7px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ps-ink-3); }
.ps-page .ps-seg__opt[aria-checked="true"] { background: var(--ps-white); color: var(--ps-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12); }
.ps-page .ps-buy__field { margin: 0; font-weight: 400; display: block; }
.ps-page .ps-buy__field input {
  width: 74px;
  height: 38px;
  border: 1px solid var(--ps-line);
  border-radius: 8px;
  padding: 0 10px;
  font: inherit;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ps-ink);
  background: var(--ps-white);
}
.ps-page .ps-buy__field input:disabled { background: #f1f5f9; color: var(--ps-ink-3); }
.ps-buy .ps-btn--small { margin-left: auto; }

.ps-numlist { display: grid; gap: 8px; }
.ps-num {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--ps-line);
  border-radius: 10px;
}
.ps-num__digits { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 16px; letter-spacing: 0.01em; }
.ps-num__tag { font-size: 12px; color: var(--ps-ink-3); white-space: nowrap; }
.ps-num.is-new { border-color: var(--ps-green); background: var(--ps-mint); }
.ps-num.is-new .ps-num__tag { color: var(--ps-green-deep); font-weight: 700; }

/* Agents panel */
.ps-agents { display: grid; gap: 8px; }
.ps-agent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--ps-line);
  border-radius: 10px;
  transition: background-color 0.2s ease;
}
.ps-agent[data-assigned="false"] { background: #f8fafc; }
.ps-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--ps-mint-2); color: var(--ps-green-deep);
  font-size: 12px; font-weight: 800;
}
.ps-agent__who { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ps-agent__who strong { font-size: 14px; color: var(--ps-ink); }
.ps-agent__who small { font-size: 12px; color: var(--ps-ink-3); }
.ps-agent__num { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.ps-agent[data-assigned="false"] .ps-agent__num { color: var(--ps-ink-3); font-weight: 500; }

/* Switch */
.ps-page .ps-switch {
  position: relative;
  width: 44px; height: 26px; flex: none;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  transition: background-color 0.2s ease;
}
.ps-page .ps-switch span {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ps-white);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);
  transition: transform 0.2s ease;
}
.ps-page .ps-switch[aria-checked="true"] { background: var(--ps-green); }
.ps-page .ps-switch[aria-checked="true"] span { transform: translateX(18px); }
.ps-page .ps-switch--lg { width: 52px; height: 30px; }
.ps-page .ps-switch--lg span { width: 24px; height: 24px; }
.ps-page .ps-switch--lg[aria-checked="true"] span { transform: translateX(22px); }

/* IVR panel */
.ps-tree { display: grid; gap: 8px; position: relative; }
.ps-tree li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  padding: 10px 12px;
  border: 1px solid var(--ps-line);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}
.ps-tree li:not(.ps-tree__root) { margin-left: 22px; position: relative; }
.ps-tree li:not(.ps-tree__root)::before {
  content: ""; position: absolute; left: -15px; top: -9px; bottom: 50%;
  width: 12px; border-left: 1.5px solid #cbd5e1; border-bottom: 1.5px solid #cbd5e1; border-bottom-left-radius: 6px;
}
.ps-page .ps-tree__root { background: var(--ps-ink); color: var(--ps-white); font-weight: 500; font-size: 13px; line-height: 1.45; border-color: var(--ps-ink); }
.ps-page .ps-tree kbd, .ps-page .ps-ivr kbd {
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--ps-mint); color: var(--ps-green-deep);
  border: 1px solid var(--ps-mint-2);
  font-size: 13px; font-weight: 800;
}
.ps-tree__dest { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ps-ink-3); }
.ps-tree__dest--ai { color: var(--ps-green-deep); font-weight: 700; }
.ps-tree__overflow { border-style: dashed !important; border-color: var(--ps-green) !important; background: var(--ps-mint); }
.ps-tree__overflow.is-off { border-color: #cbd5e1 !important; background: #f8fafc; }
.ps-tree__overflow.is-off .ps-tree__dest--ai { color: var(--ps-ink-3); }

/* Dialer panel */
.ps-queue { display: grid; gap: 6px; }
.ps-queue li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto;
  column-gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--ps-line);
}
.ps-queue li span { font-weight: 700; font-size: 14px; }
.ps-queue li small { grid-row: 2; font-size: 12px; color: var(--ps-ink-3); }
.ps-queue li em { grid-row: 1 / 3; grid-column: 2; align-self: center; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ps-ink-3); }
.ps-queue li.is-active { border-color: var(--ps-green); background: var(--ps-mint); }
.ps-queue li.is-active em { color: var(--ps-green-deep); }
.ps-queue li.is-done { opacity: 0.6; }
.ps-dial-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

.ps-console__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px;
  border-top: 1px solid var(--ps-line);
  background: var(--ps-mint);
}
.ps-overflow__label { display: flex; flex-direction: column; line-height: 1.3; }
.ps-overflow__label strong { font-size: 14px; color: var(--ps-ink); }
.ps-overflow__label small { font-size: 12.5px; color: var(--ps-green-deep); }
.ps-console.is-overflow-off .ps-console__foot { background: #f8fafc; }
.ps-console.is-overflow-off .ps-overflow__label small { color: var(--ps-ink-3); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.ps-section { padding: 96px 0; }
.ps-section--mint { background: var(--ps-mint); }
.ps-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.ps-head .ps-sub { margin-left: auto; margin-right: auto; }
.ps-head--left { text-align: left; margin: 0; }

/* ---------- Capabilities (uneven 12-col grid) ---------- */
.ps-caps {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
.ps-cap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 30px;
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg);
  background: var(--ps-white);
  scroll-margin-top: 140px;
}
.ps-cap--7 { grid-column: span 7; }
.ps-cap--5 { grid-column: span 5; }
.ps-cap--12 { grid-column: span 12; }
.ps-cap__text p { color: var(--ps-ink-2); font-size: 16.5px; max-width: 36em; }
.ps-cap--7 { flex-direction: row; align-items: center; }
.ps-cap--7 .ps-cap__text { flex: 1 1 52%; }
.ps-cap--7 .ps-ui { flex: 1 1 48%; }
.ps-cap--5 .ps-ui { margin-top: auto; }

/* Mini UI visuals */
.ps-ui {
  background: var(--ps-mint);
  border-radius: var(--ps-radius);
  padding: 16px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--ps-ink);
}
.ps-ui__field {
  background: var(--ps-white); border: 1px solid var(--ps-line); border-radius: 8px;
  padding: 9px 12px; color: var(--ps-ink-3);
}
.ps-ui__field b { color: var(--ps-ink); margin-left: 6px; font-variant-numeric: tabular-nums; }
.ps-ui__row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ps-white); border-radius: 8px; padding: 9px 12px;
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.ps-ui__row small { display: block; font-weight: 500; font-size: 12px; color: var(--ps-ink-3); }
.ps-ui__chip {
  flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: var(--ps-green); color: var(--ps-white);
}
.ps-ui__chip--done { background: var(--ps-mint-2); color: var(--ps-green-deep); }
.ps-ui__chip--out { background: var(--ps-white); color: #b42318; border: 1px solid #fecdca; }
.ps-ui__chip--muted { background: #eef2f6; color: var(--ps-ink-2); }
.ps-ui__agent {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  background: var(--ps-white); border-radius: 8px; padding: 8px 12px;
}
.ps-ui__agent span:nth-child(2) { font-weight: 700; display: flex; flex-direction: column; line-height: 1.25; }
.ps-ui__agent small { font-weight: 500; font-size: 12px; color: var(--ps-ink-3); }
.ps-ui__agent b { font-variant-numeric: tabular-nums; font-size: 13.5px; }
.ps-ui__progress { height: 6px; border-radius: 999px; background: var(--ps-white); overflow: hidden; margin-bottom: 4px; }
.ps-ui__progress span { display: block; height: 100%; background: var(--ps-green); border-radius: inherit; }

/* Texting thread */
.ps-ui--thread { gap: 6px; }
.ps-page .ps-bubble {
  max-width: 82%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}
.ps-page .ps-bubble--in { background: var(--ps-white); border-bottom-left-radius: 4px; justify-self: start; }
.ps-page .ps-bubble--out { background: var(--ps-green); color: var(--ps-white); border-bottom-right-radius: 4px; justify-self: end; }
.ps-bubble--mms { padding: 5px; }
.ps-mms {
  display: block; width: 132px; height: 84px; border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0) 55%, rgba(15, 23, 42, 0.18)),
    linear-gradient(135deg, #cfe9da 0%, #9ccfb3 45%, #6fae8d 100%);
  position: relative;
}
.ps-mms::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 46px; transform: translate(-50%, -50%);
  border-radius: 8px 8px 6px 6px; background: rgba(255, 255, 255, 0.85);
}

/* Voicemail drop */
.ps-vm {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  background: var(--ps-white); border-radius: 10px; padding: 10px 12px;
}
.ps-wave { display: inline-flex; align-items: center; gap: 2px; height: 28px; }
.ps-wave i { display: block; width: 3px; border-radius: 2px; background: var(--ps-green); }
.ps-wave i:nth-child(1) { height: 30%; } .ps-wave i:nth-child(2) { height: 60%; } .ps-wave i:nth-child(3) { height: 90%; }
.ps-wave i:nth-child(4) { height: 45%; } .ps-wave i:nth-child(5) { height: 75%; } .ps-wave i:nth-child(6) { height: 35%; }
.ps-wave i:nth-child(7) { height: 100%; } .ps-wave i:nth-child(8) { height: 55%; } .ps-wave i:nth-child(9) { height: 80%; }
.ps-wave i:nth-child(10) { height: 40%; } .ps-wave i:nth-child(11) { height: 65%; } .ps-wave i:nth-child(12) { height: 30%; }
.ps-wave i:nth-child(13) { height: 50%; } .ps-wave i:nth-child(14) { height: 25%; }
.ps-vm__name { font-weight: 700; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ps-vm__name small { font-weight: 500; font-size: 12px; color: var(--ps-ink-3); font-variant-numeric: tabular-nums; }
.ps-page .ps-vm__status { font-size: 13px; color: var(--ps-green-deep); font-weight: 600; min-height: 1.4em; }
.ps-vm.is-dropping .ps-wave i { animation: ps-wave 0.9s ease-in-out infinite alternate; }
.ps-vm.is-dropping .ps-wave i:nth-child(odd) { animation-delay: -0.45s; }
@keyframes ps-wave { from { transform: scaleY(0.4); } to { transform: scaleY(1); } }

/* IVR full-width diagram */
.ps-cap--ivr { flex-direction: row; align-items: center; gap: 40px; background: var(--ps-mint); border-color: var(--ps-mint-2); }
.ps-cap--ivr .ps-cap__text { flex: 0 0 30%; }
.ps-ivr {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0 26px;
  position: relative;
  font-size: 14px;
  color: var(--ps-ink);
}
.ps-ivr > * { position: relative; }
.ps-ivr__start, .ps-ivr__node, .ps-ivr__ai, .ps-ivr__hours span {
  background: var(--ps-white);
  border: 1px solid var(--ps-line);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  display: flex; flex-direction: column; line-height: 1.3;
}
.ps-ivr small { font-weight: 500; font-size: 12px; color: var(--ps-ink-3); font-variant-numeric: tabular-nums; }
.ps-ivr__start { background: var(--ps-ink); color: var(--ps-white); border-color: var(--ps-ink); }
.ps-ivr__start small { color: #94a3b8; }
.ps-ivr__hours span { border-radius: 999px; padding: 8px 14px; font-size: 13px; }
.ps-ivr__branches { display: grid; gap: 8px; }
.ps-ivr__node { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; }
.ps-ivr__node kbd { grid-row: 1 / 3; }
.ps-ivr__node small { grid-column: 2; }
.ps-ivr__ai { background: var(--ps-green); color: var(--ps-white); border-color: var(--ps-green); font-size: 12px; font-weight: 500; max-width: 190px; }
.ps-ivr__ai strong { font-size: 14px; font-weight: 700; }
/* connectors */
.ps-ivr__start::after, .ps-ivr__hours::after, .ps-ivr__branches::after {
  content: ""; position: absolute; top: 50%; right: -26px; width: 26px; height: 0; border-top: 1.5px solid #9ccfb3;
}

/* ---------- Better together (ink band) ---------- */
.ps-together { background: var(--ps-ink); color: #cbd5e1; padding: 96px 0; }
.ps-together__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.ps-page .ps-steps { counter-reset: ps-step; display: grid; gap: 18px; margin: 34px 0 34px; }
.ps-page .ps-steps li { counter-increment: ps-step; position: relative; padding-left: 52px; font-size: 16.5px; color: #cbd5e1; }
.ps-page .ps-steps li strong { color: var(--ps-white); display: block; font-size: 17px; }
.ps-page .ps-steps li::before {
  content: counter(ps-step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--ps-green); color: #6ee7a8;
  font-weight: 800; font-size: 15px;
}
.ps-sms {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 28px;
  padding: 22px;
  max-width: 400px;
  justify-self: end;
  width: 100%;
}
.ps-sms__head { display: flex; justify-content: space-between; align-items: baseline; color: var(--ps-white); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.ps-sms__head small { color: #94a3b8; font-weight: 500; font-size: 12px; }
.ps-page .ps-sms__msg {
  background: var(--ps-green);
  color: var(--ps-white);
  border-radius: 18px 18px 18px 6px;
  padding: 14px 16px;
  display: grid; gap: 8px;
  font-size: 14.5px; line-height: 1.45;
}
.ps-sms figcaption { margin-top: 12px; font-size: 12.5px; color: #94a3b8; }

/* ---------- Comparison ---------- */
.ps-compare {
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}
.ps-compare__row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  border-top: 1px solid var(--ps-line);
}
.ps-compare__row:first-child { border-top: 0; }
.ps-compare__row > span { padding: 16px 20px; font-size: 15.5px; }
.ps-compare__row > span:first-child { font-weight: 700; color: var(--ps-ink); }
.ps-compare__row > span:nth-child(2) { color: var(--ps-ink-3); }
.ps-compare__row > span:nth-child(3) { background: var(--ps-mint); color: var(--ps-ink); font-weight: 600; }
.ps-compare__row--head > span { font-size: 13px; font-weight: 700; color: var(--ps-ink-3) !important; background: #f8fafc; padding-top: 14px; padding-bottom: 14px; }
.ps-compare__row--head > span:nth-child(3) { background: var(--ps-green) !important; color: var(--ps-white) !important; }

/* ---------- FAQ ---------- */
.ps-faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.ps-faq { display: grid; gap: 10px; }
.ps-faq__item { background: var(--ps-white); border: 1px solid var(--ps-line); border-radius: var(--ps-radius); }
.ps-page .ps-faq h3 { margin: 0; font-size: inherit; line-height: inherit; font-weight: inherit; }
.ps-page .ps-faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-align: left;
  background: transparent; border: 0;
  padding: 18px 20px;
  font-size: 17px; font-weight: 700; color: var(--ps-ink); line-height: 1.35;
}
.ps-page .ps-faq__q::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ps-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 9.5l4 4 4-4' fill='none' stroke='%2305753a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
  transition: transform 0.2s ease;
}
.ps-page .ps-faq__q[aria-expanded="true"]::after { transform: rotate(180deg); }
.ps-faq__a { padding: 0 20px 20px; }
.ps-faq__a p { font-size: 16px; color: var(--ps-ink-2); max-width: 46em; }

/* ---------- Bottom CTA ---------- */
.ps-cta { background: var(--ps-green); padding: 88px 0; text-align: center; }
.ps-cta__inner { max-width: 820px; }
.ps-cta .ps-sub--light { color: #e6f6ed; margin-left: auto; margin-right: auto; }
.ps-cta .ps-btn--light { color: var(--ps-green-deep); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .ps-cap--ivr { flex-direction: column; align-items: stretch; }
  .ps-cap--ivr .ps-cap__text { flex: none; }
}
@media (max-width: 991px) {
  .ps-hero { padding: 48px 0 64px; }
  .ps-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ps-console { max-width: 620px; width: 100%; }
  .ps-cap--7, .ps-cap--5 { grid-column: span 12; }
  .ps-cap--7 { flex-direction: column; align-items: stretch; }
  .ps-cap--7 .ps-cap__text, .ps-cap--7 .ps-ui { flex: none; }
  .ps-together__grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ps-sms { justify-self: start; }
  .ps-faq__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ps-section, .ps-together { padding: 72px 0; }
}
@media (max-width: 760px) {
  .ps-ivr { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ps-ivr__start::after, .ps-ivr__hours::after, .ps-ivr__branches::after {
    top: auto; bottom: -22px; right: auto; left: 24px; width: 0; height: 22px; border-top: 0; border-left: 1.5px solid #9ccfb3;
  }
  .ps-ivr__hours span { display: inline-flex; }
  .ps-ivr__ai { max-width: none; }
  .ps-compare__row--head { display: none; }
  .ps-compare__row { grid-template-columns: minmax(0, 1fr); }
  .ps-compare__row > span { padding: 4px 18px; }
  .ps-compare__row > span:first-child { padding-top: 16px; }
  .ps-compare__row > span:nth-child(2)::before { content: "Before: "; font-weight: 700; }
  .ps-compare__row > span:nth-child(3) { margin: 8px 12px 14px; border-radius: 10px; padding: 10px 12px; }
  .ps-compare__row > span:nth-child(3)::before { content: "Venderflow: "; font-weight: 800; color: var(--ps-green-deep); }
}
@media (max-width: 520px) {
  .ps-page { font-size: 16px; }
  .ps-wrap { padding: 0 18px; }
  .ps-page .ps-lede { font-size: 17.5px; }
  .ps-actions { flex-direction: column; }
  .ps-actions .ps-btn { width: 100%; }
  .ps-console__body { padding: 14px; min-height: 0; }
  .ps-buy .ps-btn--small { margin-left: 0; flex: 1 1 100%; }
  .ps-agent { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ps-agent__num { grid-column: 2; grid-row: 2; font-size: 13px; }
  .ps-agent .ps-switch { grid-column: 3; grid-row: 1 / 3; }
  .ps-agent .ps-avatar { grid-row: 1 / 3; }
  .ps-tree li:not(.ps-tree__root) { margin-left: 16px; }
  .ps-tree__dest { margin-left: 34px; flex-basis: 100%; }
  .ps-tree__overflow .ps-tree__dest { margin-left: 0; }
  .ps-cap { padding: 22px; }
  .ps-ui__agent { grid-template-columns: auto minmax(0, 1fr); }
  .ps-ui__agent b { grid-column: 2; }
  .ps-console__foot { padding: 12px 14px; }
  .ps-section, .ps-together, .ps-cta { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ps-page *, .ps-page *::before, .ps-page *::after {
    animation: none !important;
    transition: none !important;
  }
}
