/* Guided example embedded in the homepage hero. */
.cg-tour {
  --tour-blue: #244fc8;
  --tour-ink: #192641;
  --tour-muted: #586780;
  --tour-rule: #dce2ec;
  width: 100%;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  color: var(--tour-ink);
  border: 1px solid #cdd5e3;
  border-radius: 13px;
  box-shadow: 0 17px 38px -20px rgb(27 45 85 / .24), 0 2px 6px rgb(27 45 85 / .045);
  font-family: var(--cg-face, 'DM Sans', sans-serif);
  scroll-margin-top: 12px;
}
.cg-tour [hidden] {display: none !important}
.cg-tour svg {display: block; flex: none; width: 16px; height: 16px}
.tour-head, .tour-tabs, .tour-controls {display: flex; align-items: center}
.tour-head {
  justify-content: space-between;
  gap: 8px;
  padding: 14px clamp(15px, 2vw, 24px);
  border-bottom: 1px solid var(--tour-rule);
}
.tour-brand {display: flex; align-items: center; gap: 7px; font-size: 16px; line-height: 1; font-weight: 700; letter-spacing: -.055em}
.tour-brand img {width: 25px; height: auto; display: block}
.tour-head-label {font-size: 11px; font-weight: 530; color: var(--tour-muted)}
.tour-tabs {padding: 0 clamp(14px, 1.7vw, 21px); border-bottom: 1px solid #e7eaf2; background: #fbfcff}
.tour-tab {
  position: relative;
  flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px;
  padding: 12px 3px 11px;
  color: #62718b;
  font-weight: 550; font-size: 12px; text-decoration: none;
  line-height: 1.3;
}
.tour-tab[aria-selected="true"] {color: var(--tour-blue)}
.tour-tab[aria-selected="true"]::after {content: ''; position: absolute; bottom: -1px; left: 7%; right: 7%; height: 2px; background: var(--tour-blue)}
.tour-tab:hover {color: var(--tour-blue)}
.tour-tab-num {
  display: grid; place-items: center;
  width: 18px; height: 18px; border: 1px solid #c6d0e0; border-radius: 50%;
  color: #64718a; font-size: 10px; font-weight: 650;
}
.tour-tab[aria-selected="true"] .tour-tab-num {background: var(--tour-blue); border-color: var(--tour-blue); color: #fff}
.tour-panel {padding: 22px clamp(16px, 2vw, 26px); scroll-margin-top: 95px}
.tour-stage-title {margin: 0 0 15px; color: var(--tour-muted); font-size: 14px; font-weight: 550}
.cg-tour[data-ready] .tour-stage-title, .tour-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.cg-tour:not([data-ready]) .tour-panel + .tour-panel {border-top: 1px solid var(--tour-rule)}
.cg-tour[data-ready] .tour-panel {min-height: 214px}
.tour-speaker, .tour-person, .tour-assistant {display: flex; align-items: center}
.tour-speaker {justify-content: space-between; gap: 7px}
.tour-person {gap: 7px; line-height: 1.3; font-size: 12px}
.tour-person strong {font-weight: 650}
.tour-avatar {width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; font-size: 11px; line-height: 1; font-weight: 650; color: #6b4c35; background: #f2e5d7}
#tour-step-2 .tour-avatar {color: #434f8b; background: #e5e8fa}
#tour-step-3 .tour-avatar {color: #326653; background: #dceddf}
.tour-role {color: var(--tour-muted)}
.tour-role::before {content: '·'; margin-right: 6px}
.tour-chat-label {font-size: 11px; color: #526781}
.cg-tour .tour-question > p {margin: 8px 0 0; color: var(--tour-ink); font-size: clamp(16px, 1.47vw, 20px); font-weight: 550; line-height: 1.35; letter-spacing: -.032em}
.tour-answer {margin-top: 16px; border: 1px solid #dce5f6; border-radius: 8px; padding: 12px 14px 13px; background: #f5f8ff}
.tour-assistant {gap: 6px; color: #37529a; font-size: 12px; line-height: 1.3; font-weight: 620}
.tour-assistant svg {width: 16px; height: 16px}
.cg-tour .tour-answer p {margin: 7px 0 10px; color: #233450; font-size: clamp(15px, 1.23vw, 18px); line-height: 1.45; letter-spacing: -.025em}
.tour-answer p strong {font-weight: 650}
.tour-controls {justify-content: space-between; gap: 10px; padding: 12px clamp(16px, 2vw, 26px); border-top: 1px solid var(--tour-rule)}
.tour-back, .tour-next {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; border: 0; font: 600 12px/1.2 var(--cg-face, 'DM Sans', sans-serif);
  border-radius: 5px; min-height: 37px;
}
.tour-back {color: #56657b; background: transparent; padding: 5px 8px 5px 0}
.tour-back:hover {color: var(--tour-blue)}
.tour-back:disabled {visibility: hidden}
.tour-next {background: var(--tour-blue); color: #fff; padding: 9px 13px; margin-left: auto}
.tour-next:hover {background: #173da9}
.tour-next i {display: inline-flex}
.cg-tour :is(a,button):focus-visible {outline: 2px solid #3c63c9; outline-offset: 2px}
@media(max-width: 500px) {
  .tour-panel {padding-block: 17px}
  .cg-tour[data-ready] .tour-panel {min-height: 201px}
  .tour-controls {padding-block: 10px}
  .tour-answer {padding: 11px}
}

@media (max-width: 620px) {
  .tour-tab, .tour-next, .tour-back {min-height:44px}
}

.tour-scenario {
  display:flex; align-items:center; gap:9px; padding:14px clamp(16px,2vw,26px) 12px;
  font-size:17px; line-height:1.2; font-weight:650; letter-spacing:-.035em;
}
.tour-scenario > span {
  color:#50637d; font:600 10px/1.4 var(--cg-mono); letter-spacing:.04em;
  padding:3px 6px; border:1px solid #dce1e9; border-radius:4px; white-space:nowrap;
}
.tour-tabs {background:#fff}
.tour-head {padding-block:11px}
.tour-tab {padding-block:9px}
.tour-question .tour-speaker {flex-wrap:wrap}
.tour-chat-label {font-size:10px}
.tour-answer .tour-clause {border:0; margin:0; padding:0; background:transparent}
.tour-clause > summary {
  display:flex; align-items:center; gap:5px; width:fit-content; max-width:100%; min-height:23px;
  position:relative; list-style:none; cursor:pointer; margin:0; padding:0;
  font-size:11px; line-height:1.4; font-weight:550; color:#395985;
}
.tour-clause summary svg {width:14px; height:14px}
.tour-clause summary span {text-decoration:underline; text-underline-offset:3px}
.tour-clause > summary::-webkit-details-marker {display:none}
.tour-clause > summary::after, .tour-clause[open] > summary::after {
  content:""; position:static; display:block; flex:none; width:5px; height:5px;
  border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg);
}
.tour-clause[open] > summary::after {transform:rotate(225deg)}
.tour-clause blockquote {margin:5px 0 0; border-left:2px solid #b8c8e4; padding:2px 0 2px 10px; font-size:12px; line-height:1.5; color:#41516d}
.cg-tour summary:focus-visible {outline:2px solid #3c63c9; outline-offset:2px}
.tour-context {margin-top:16px; border:1px solid #bdcced; border-radius:8px; overflow:hidden}
.tour-context-head, .tour-saved {
  background:#1b3154; color:white;
}
.tour-context-head {display:flex; align-items:center; justify-content:space-between; gap:6px; padding:9px 13px}
.tour-context-head > span {display:flex; align-items:center; gap:7px; font-size:13px; font-weight:600}
.tour-context-head svg, .tour-saved-icon svg {color:#bbd3ff; width:18px; height:18px}
.tour-context-head small {font-size:10px; font-weight:500; color:#d7e2f4}
.tour-context-body {padding:12px 14px; background:#f7f9fd}
.tour-change-source {display:flex; align-items:center; flex-wrap:wrap; gap:5px; color:#3a506e; font-size:11px; line-height:1.4; font-weight:600}
.tour-change-source svg {width:14px; height:14px}
.tour-change-source .tour-source-name {padding-left:7px; margin-left:2px; border-left:1px solid #bfcbde; font-weight:500}
.tour-diff {position:relative; display:grid; grid-template-columns:minmax(0,.85fr) 22px minmax(0,1.15fr); align-items:center; margin:10px 0}
.tour-before,.tour-after {align-self:stretch; display:flex; flex-direction:column; justify-content:center; gap:4px; padding:9px 10px; border:1px solid #d9e0ec; border-radius:5px; background:white}
.tour-before small,.tour-after small {font-size:10px; line-height:1.2; font-weight:550}
.tour-before strong,.tour-after strong {font-size:clamp(14px,1.2vw,17px); line-height:1.25; font-weight:600; letter-spacing:-.03em}
.tour-before {color:#59677e}
.tour-before strong {text-decoration:line-through; text-decoration-thickness:1px; text-decoration-color:#8c98ac}
.tour-after {border-color:#acc7b8; background:#e9f4ed; color:#255741}
.tour-diff-arrow {display:grid; place-items:center; color:#537096}
.tour-diff-arrow svg {width:14px; height:14px}
.tour-scope {display:flex; gap:7px; color:#42566f; font-size:11px; line-height:1.4}
.tour-scope b {font-weight:580}
.tour-saved {display:flex; align-items:center; gap:10px; padding:10px 13px; border-radius:7px}
.tour-saved-icon {display:grid; flex:none; place-items:center; width:32px; height:32px; border:1px solid #60779a; border-radius:6px}
.tour-saved strong {display:flex; align-items:center; gap:6px; font-size:13px; line-height:1.4; font-weight:600}
.tour-saved strong span {border:1px solid #8497b7; border-radius:3px; padding:1px 4px; font:500 10px/1.1 var(--cg-mono); color:#e6efff}
.cg-tour .tour-saved p {color:#d8e2f1; margin:2px 0 0; font-size:11px; line-height:1.4}
.tour-saved-tick {display:grid; place-items:center; flex:none; width:20px; height:20px; margin-left:auto; border-radius:50%; background:#ceefdc; color:#23563e}
.tour-saved-tick svg {width:13px; height:13px}
.tour-role-picker,.tour-role-options {display:flex; flex-wrap:wrap; align-items:center}
.tour-role-picker {gap:4px 9px; margin:12px 0}
.tour-choose {font-size:11px; font-weight:600; color:#58667a}
.tour-role-options {gap:3px}
.tour-role-option {display:inline-flex; align-items:center; justify-content:center; min-height:32px; border:1px solid transparent; border-radius:5px; padding:4px 9px; font-size:12px; font-weight:570; color:#4d5d74; text-decoration:none}
.tour-role-option:hover {background:#f1f4f9; color:#244fc8}
.tour-role-option[aria-selected="true"] {background:#ecf2ff; color:#294f9b; border-color:#bccded}
.tour-team-panel {scroll-margin-top:80px}
.tour-role-answer {margin-top:11px}
.tour-assistant {flex-wrap:wrap}
.tour-impact {margin-top:12px; padding:11px 13px; border-left:3px solid #4f896b; border-radius:0 6px 6px 0; background:#f0f7f2}
.cg-tour .tour-impact-outcome {display:flex; align-items:baseline; flex-wrap:wrap; gap:2px 8px; color:#1c4936; margin:0}
.tour-impact-outcome strong {font-size:clamp(25px,2.15vw,32px); font-weight:650; line-height:1.1; letter-spacing:-.055em}
.tour-impact-outcome b {font-size:14px; line-height:1.35; font-weight:600; letter-spacing:-.02em}
.cg-tour .tour-impact-detail {margin:4px 0 0; font-size:12px; line-height:1.45; color:#3e594c}
.cg-tour:not([data-ready]) .tour-team-panel + .tour-team-panel {margin-top:20px; padding-top:15px; border-top:1px solid var(--tour-rule)}
@media (prefers-reduced-motion:no-preference) {
  @keyframes tour-arrive {from {opacity:.35; transform:translateY(3px)} to {opacity:1; transform:translateY(0)}}
  .cg-tour[data-ready] :is(.tour-context,.tour-saved):not([hidden]) {animation:tour-arrive .28s ease-out both}
  .cg-tour[data-ready] .tour-diff .tour-after {animation:tour-arrive .35s .1s ease-out both}
  .cg-tour[data-ready] .tour-team-panel:not([hidden]) .tour-answer {animation:tour-arrive .25s ease-out both}
  .cg-tour[data-ready] .tour-team-panel:not([hidden]) .tour-impact {animation:tour-arrive .3s .1s ease-out both}
}
@media(max-width:620px) {
  .tour-role-option,.tour-clause > summary {min-height:40px}
}
@media(max-width:390px) {
  .tour-panel {padding:14px 12px}
  .tour-context-head,.tour-context-body,.tour-saved {padding:9px 10px}
  .tour-context-head > span {font-size:12px}
  .tour-diff {grid-template-columns:minmax(0,.82fr) 16px minmax(0,1.18fr)}
  .tour-before,.tour-after {padding:7px}
  .tour-role-picker {gap:2px 4px}
  .tour-role-option {padding-inline:6px}
}
.tour-answer .tour-trace {border:0; margin:7px 0 0; padding:0; background:transparent; box-shadow:none}
.tour-trace > summary {
  position:relative; display:flex; align-items:center; flex-wrap:wrap; gap:4px; min-height:30px;
  width:fit-content; max-width:100%; margin:0; padding:0; list-style:none; cursor:pointer;
  color:#3b536f; font-size:11px; line-height:1.35; font-weight:550;
}
.tour-trace > summary::-webkit-details-marker {display:none}
.tour-trace > summary::after,.tour-trace[open] > summary::after {
  position:static; content:''; width:5px; height:5px; flex:none;
  border-right:1px solid currentColor; border-bottom:1px solid currentColor; transform:rotate(45deg);
}
.tour-trace[open] > summary::after {transform:rotate(225deg)}
.tour-trace-source {display:inline-flex; align-items:center; gap:4px}
.tour-trace-source svg {width:12px; height:12px}
.tour-trace summary > svg {width:13px; height:13px; color:#7287a3}
.tour-trace-rule {padding:2px 5px; color:#234785; background:#e1eafd; border:1px solid #c3d2ee; border-radius:4px}
.tour-trace-record {margin-top:7px; padding:5px 0 2px 11px; border-left:2px solid #b8c8e4; font-size:12px; line-height:1.45}
.tour-trace-record strong {font-size:11px; color:#3a5275}
.tour-trace-record blockquote {margin:5px 0; padding:0; border:0}
.cg-tour .tour-trace-record p {font-size:11px; color:#52637e; margin:3px 0 0; letter-spacing:normal}
@media(prefers-reduced-motion:no-preference) {
  .cg-tour[data-ready] .tour-team-panel:not([hidden]) .tour-trace-rule {animation:tour-arrive .35s .1s ease-out both}
}
@media(max-width:620px) {
  .tour-trace > summary {min-height:40px}
}

.tour-short {display:none}
.cg-tour, .tour-tabs, .tour-role-options {scroll-margin-top:85px}
@media(max-width:500px) {
  .tour-trace .tour-short {display:inline}
  .tour-trace .tour-long {display:none}
  .cg-tour, .tour-tabs, .tour-role-options {scroll-margin-top:70px}
}
