/* An illustrative, configurable phone flow. All routes remain readable without JavaScript. */
.integrations-grid > .integration-card.integration-callflow {
  grid-column: 1 / -1;
  display: block;
  padding: clamp(22px, 3vw, 38px);
  background: #fbfcfc;
}
.callflow-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 40px; margin-bottom: 27px; }
.callflow-heading .integration-label { margin-bottom: 17px; }
.callflow-heading h3 { margin: 0; max-width: 620px; font-size: clamp(29px, 3.2vw, 40px); font-weight: 550; line-height: 1.12; letter-spacing: -1.3px; }
.callflow-heading > p { margin: 0; max-width: 430px; font-size: 16px; line-height: 1.75; color: #536c7a; }
.callflow-controls[hidden] { display: none !important; }
.callflow-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 20px; margin: 0 0 14px; }
.callflow-controls > span { color: #426278; font-size: 14px; font-weight: 600; }
.callflow-scenarios { display: flex; flex-wrap: wrap; gap: 9px; }
.callflow-scenarios button { min-height: 44px; padding: 11px 16px; border: 1px solid #b9cdd9; border-radius: 7px; background: #fff; color: #264f67; font: 550 14px/1.4 Inter, Arial, sans-serif; cursor: pointer; }
.callflow-scenarios button:hover { background: #eaf2f7; border-color: #6f95ad; }
.callflow-scenarios button[aria-pressed="true"] { color: #fff; border-color: #245977; background: #245977; box-shadow: 0 3px 9px #1b4b6915; }
.callflow-scenarios button:focus-visible { outline: 3px solid #1e5a80; outline-offset: 3px; box-shadow: 0 0 0 2px #fff; }
.integration-callflow .callflow-summary { margin: 0 0 23px; max-width: 920px; color: #496575; font-size: 15px; line-height: 1.7; }
.callflow-stage { padding: 26px; border: 1px solid #cbdde8; border-radius: 12px; background: radial-gradient(ellipse at 90% 0%, #d8e9f3, transparent 65%), #edf4f7; }
.callflow-stage-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; margin-bottom: 25px; color: #476a80; font-size: 13px; line-height: 1.5; }
.callflow-stage-caption strong { font-weight: 650; }
.callflow-stage-caption > span { color: #587587; }
.callflow-graph { position: relative; isolation: isolate; }
.callflow-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.callflow-entry { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px; max-width: 680px; margin: 0 auto 45px; }
.callflow-node { position: relative; z-index: 1; min-width: 0; padding: 18px; border: 1px solid #bfcfd9; border-radius: 9px; background: #fff; color: #20475f; box-shadow: 0 4px 14px #234b6505; }
.callflow-node[data-active="true"] { border-color: #3e799c; box-shadow: 0 0 0 1px #3e799c, 0 5px 16px #234b650a; }
.callflow-node-header { display: flex; gap: 12px; align-items: center; }
.callflow-symbol { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid #d1e0e8; border-radius: 10px; background: #edf4f8; color: #426e89; }
.callflow-symbol svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.callflow-node[data-active="true"] .callflow-symbol { color: #fff; background: #2c6689; border-color: #2c6689; }
.callflow-node h4 { margin: 0; color: inherit; font-size: 16px; line-height: 1.4; font-weight: 650; letter-spacing: -.2px; }
.callflow-node p { margin: 9px 0 0; font-size: 14px; line-height: 1.65; color: #526b7a; }
.callflow-step { display: block; color: #688293; font-size: 12px; font-weight: 550; line-height: 1.5; margin-bottom: 2px; }
.callflow-hours::before { content: '→'; position: absolute; right: calc(100% + 10px); top: 50%; width: 26px; transform: translateY(-50%); color: #7697ac; font-size: 25px; text-align: center; }
.callflow-hours::after { content: ''; position: absolute; left: 50%; top: 100%; height: 23px; width: 1px; background: #afc5d3; }
.callflow-branches { position: relative; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.callflow-branches::before { content: ''; position: absolute; top: -23px; left: calc(33.333% - 8px); right: calc(16.667% - 4px); height: 1px; background: #afc5d3; }
.callflow-branch { position: relative; min-width: 0; }
.callflow-branch::before { content: ''; position: absolute; top: -23px; left: 50%; width: 1px; height: 23px; background: #afc5d3; }
.callflow-condition { position: relative; z-index: 1; display: table; max-width: 100%; margin: 0 auto 13px; padding: 5px 10px; border: 1px solid #c3d6e1; border-radius: 20px; color: #4e6f83; background: #e5eef4; font-size: 14px; line-height: 1.4; font-weight: 600; text-align: center; }
.callflow-branch[data-active="true"] > .callflow-condition { background: #d8e9f4; color: #214d69; border-color: #86abc3; }
.callflow-greeting { margin: 14px 0 0; padding: 11px 0 0; border-top: 1px solid #dce6ec; color: #365b72; font-size: 16px; line-height: 1.65; }
.callflow-menu::after { content: ''; position: absolute; top: 100%; left: 50%; width: 1px; height: 15px; background: #afc5d3; }
.callflow-destinations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.callflow-destination::before { content: ''; position: absolute; top: -16px; left: 50%; height: 1px; width: calc(50% + 9px); background: #afc5d3; }
.callflow-destination:last-child::before { left: auto; right: 50%; }
.callflow-destination::after { content: ''; position: absolute; top: -16px; left: 50%; width: 1px; height: 16px; background: #afc5d3; }
.callflow-key { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border: 1px solid #b8cedc; border-radius: 8px; color: #2c607f; background: #e9f2f8; font-size: 20px; line-height: 1; font-weight: 650; }
.callflow-key-label { display: block; font-size: 13px; line-height: 1.5; color: #628094; margin-bottom: 2px; }
.callflow-node[data-active="true"] .callflow-key { color: #fff; background: #2c6689; border-color: #2c6689; }
.callflow-voicemail { margin-top: 30px; }
.callflow-voicemail::before { content: '↓'; position: absolute; bottom: calc(100% + 4px); left: calc(50% - 12px); width: 24px; height: 23px; color: #7697ac; font-size: 23px; text-align: center; }
.callflow-node[data-active="true"] .callflow-step, .callflow-node[data-active="true"] .callflow-key-label { color: #345f79; }
.integration-callflow.is-enhanced .callflow-hours::before,
.integration-callflow.is-enhanced .callflow-hours::after,
.integration-callflow.is-enhanced .callflow-branches::before,
.integration-callflow.is-enhanced .callflow-branch::before,
.integration-callflow.is-enhanced .callflow-menu::after,
.integration-callflow.is-enhanced .callflow-destination::before,
.integration-callflow.is-enhanced .callflow-destination::after,
.integration-callflow.is-enhanced .callflow-voicemail::before { display: none; }
.callflow-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 22px; }
.callflow-footer p { margin: 0; max-width: 730px; color: #526b7a; font-size: 14px; line-height: 1.7; }
.callflow-footer a { flex: none; font-size: 14px; }
@media (max-width: 1100px) {
  .callflow-heading { grid-template-columns: 1fr; gap: 18px; }
  .callflow-heading > p { max-width: 720px; }
  .callflow-stage { padding: 23px; }
  .callflow-node { padding: 16px; }
  .callflow-node-header { gap: 9px; }
  .callflow-footer { flex-direction: column; align-items: flex-start; gap: 15px; }
}
@media (max-width: 850px) {
  .callflow-stage { padding: 20px; }
  .callflow-entry { grid-template-columns: minmax(0, 1fr); gap: 25px; max-width: none; margin-bottom: 30px; }
  .callflow-hours::before { content: '↓'; right: auto; left: calc(50% - 13px); top: -25px; transform: none; }
  .callflow-hours::after, .callflow-branches::before, .callflow-branch::before { display: none; }
  .callflow-branches { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .callflow-condition { margin-bottom: 13px; }
  .callflow-destinations { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .callflow-menu::after, .callflow-destination::after { display: none; }
  .callflow-destination::before, .callflow-destination:last-child::before { content: '↓'; width: 24px; height: 22px; top: -26px; left: calc(50% - 12px); right: auto; background: none; color: #7697ac; font-size: 23px; text-align: center; }
  .integration-callflow.is-enhanced[data-callflow-scenario="after-hours"] .callflow-branch--open,
  .integration-callflow.is-enhanced:not([data-callflow-scenario="after-hours"]) .callflow-branch--closed,
  .integration-callflow.is-enhanced[data-callflow-scenario="technician"] [data-callflow-node="office"],
  .integration-callflow.is-enhanced[data-callflow-scenario="office"] [data-callflow-node="technician"] { display: none; }
  .callflow-step, .callflow-key-label { font-size: 14px; }
}
@media (max-width: 600px) {
  .integrations-grid > .integration-card.integration-callflow { padding: 20px; }
  .callflow-heading { gap: 16px; margin-bottom: 23px; }
  .callflow-heading h3 { font-size: 30px; letter-spacing: -.8px; }
  .callflow-heading .integration-label { font-size: 15px; }
  .callflow-controls { display: block; }
  .callflow-controls > span { display: block; margin-bottom: 11px; }
  .callflow-scenarios { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .callflow-scenarios button { padding: 12px 14px; font-size: 15px; text-align: left; }
  .integration-callflow .callflow-summary { font-size: 15px; }
  .callflow-stage { padding: 16px; }
  .callflow-stage-caption { font-size: 14px; margin-bottom: 20px; }
  .callflow-stage-caption > span { display: none; }
  .callflow-node { padding: 15px; }
  .callflow-symbol { width: 34px; height: 34px; border-radius: 8px; }
  .callflow-symbol svg { width: 20px; height: 20px; }
  .callflow-node p { font-size: 15px; }
  .callflow-greeting { font-size: 16px; }
}
@media (max-width: 360px) {
  .integrations-grid > .integration-card.integration-callflow { padding: 17px; }
  .callflow-stage { padding: 12px; }
  .callflow-node { padding: 13px; }
  .callflow-node-header { align-items: flex-start; }
}

@media (max-width: 850px) {
  .integration-callflow:not(.is-enhanced) .callflow-destinations { border-left: 1px solid #afc5d3; margin-left: 10px; padding-left: 18px; }
  .integration-callflow:not(.is-enhanced) .callflow-destination::before,
  .integration-callflow:not(.is-enhanced) .callflow-destination:last-child::before { content: ''; top: 28px; left: -19px; right: auto; width: 18px; height: 1px; background: #afc5d3; }
}

.phone-capabilities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin: 28px 0 0; }
.phone-capability { min-width: 0; border: 1px solid #d1dfe7; border-radius: 10px; background: #fff; padding: 24px; }
.phone-capability h4 { font-size: 20px; line-height: 1.3; letter-spacing: -.4px; font-weight: 600; margin: 21px 0 9px; color: #254c64; }
.phone-capability p { font-size: 15px; line-height: 1.75; margin: 0; color: #536c7a; }
.phone-mini { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 54px; color: #3f6983; font-size: 12px; }
.phone-mini > span { border: 1px solid #c8dae6; border-radius: 7px; background: #eff5f8; padding: 10px 12px; }
.phone-mini > b { font-size: 17px; font-weight: 400; }
.phone-lines > span { border-radius: 22px; min-width: 85px; text-align: center; }
.phone-lines > span:first-child { background: #295f7e; color: #fff; border-color: #295f7e; }
.phone-activity { display: grid; gap: 5px; }
.phone-activity > span { display: flex; align-items: center; gap: 9px; padding: 6px 11px; }
.phone-activity b { font-size: 17px; font-weight: 400; }
.phone-activity i { font-style: normal; margin-left: auto; font-size: 11px; color: #4c7767; }
.phone-textback > span:last-child { background: #e7f0eb; color: #426c5a; border-color: #bfd4c8; border-radius: 9px 9px 2px 9px; }
@media (max-width: 700px) { .phone-capabilities { grid-template-columns: 1fr; gap: 16px; } .phone-capability { padding: 20px; } .phone-mini { font-size: 12px; } .phone-outbound { gap: 5px; } .phone-outbound > span { padding: 8px; } }

.callflow-heading h3 em { font-family: Georgia, serif; color: #3f6c87; font-weight: 400; }
