/**
 * Homepage scroll story + live viewer + "Why teams switch" section.
 * v1.4.64 — ported from Jesse Mills' review package (2026-09-09).
 * The story/viewer rules are Jesse's, verbatim below the var block; only the
 * source :root vars were re-scoped here and mapped onto the brand tokens so
 * Customizer recoloring carries through. Story markup lives in page content
 * (one wp:html per language inside the hero); JS in assets/js/home-story.js.
 */

.story, .live {
	--ink: #151518;
	--body: #4a4f5a;
	--muted: #7a8090;
	--purple: var(--cc-color-brand-primary);
	--purple-deep: #4A1A6B;
	--blue: var(--cc-color-action);
	--cta: var(--cc-color-action);
	--green: #15a34a;
	--red: #e0342c;
	--sticky-top: 88px;
	--display: var(--cc-font-body, 'DM Sans'), ui-sans-serif, system-ui, sans-serif;
	--ui: var(--cc-font-body, 'DM Sans'), ui-sans-serif, system-ui, sans-serif;
	--hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
}

.cc-story-mount { display: block; margin-top: 24px; }

/* hero */
.story a{text-decoration:none}
.story .btn-primary{background:var(--cta);color:#fff;font:600 16px/1 var(--ui);padding:13px 26px;border-radius:10px;text-decoration:none}
.story .btn-primary:hover{background:var(--cc-color-action-deep);color:#fff}

/* story */
.story *{box-sizing:border-box}
.story{font:15px/1.5 var(--ui);color:var(--ink);display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:48px;max-width:1120px;margin:44px auto 0;text-align:left;align-items:start}
.beats{display:flex;flex-direction:column}
.beat{min-height:70vh;display:flex;flex-direction:column;justify-content:center;opacity:.32;transition:opacity .3s}
.beat.on{opacity:1}
.beat h3{font:800 clamp(28px,2.8vw,40px)/1.04 var(--display);letter-spacing:-.025em;margin:0 0 12px;color:#1b1b22;text-wrap:balance}
.beat h3 .hl{font-style:normal;color:#552978}
.beat p{font-size:18px;color:#3d414c;margin:0;max-width:34ch}
.beat p+p{margin-top:10px}
.beat .btn-primary{display:inline-block;align-self:flex-start;margin-top:22px;font-size:17px;padding:16px 30px}
.beat .quiet{color:#7a8090;font-size:16px}
.stage-wrap{position:sticky;top:var(--sticky-top)}
.stage{background:#fff;border:1px solid #dfe2ea;border-radius:14px;box-shadow:0 24px 60px rgba(30,30,70,.12);position:relative;overflow:hidden}
.scene{display:block;width:100%;height:auto;background:linear-gradient(#f6f7fa,#eef0f5)}

.stage .l{opacity:0;transition:opacity .55s ease}
.stage .drop{transform:translateY(-14px);transition:opacity .5s ease,transform .5s cubic-bezier(.2,.9,.3,1.15)}
.stage[data-state="1"] .l-slide,
.stage[data-state="2"] .l-slide{opacity:1}
.stage[data-state="2"] .l-chat,
.stage[data-state="2"] .l-email{opacity:1;transform:none}
.stage[data-state="2"] .l-email{transition-delay:.25s}
.stage[data-state="2"] .l-slide{opacity:.55}
.stage[data-state="3"] .l-model,
.stage[data-state="3"] .l-vtag,
.stage[data-state="3"] .l-hint{opacity:1}
.stage[data-state="3"] .l-pin{opacity:1;transform:none;transition-delay:.35s}
.stage[data-state="3"] .l-thread{opacity:1;transition-delay:.6s}

/* review artifacts, drawn inside the stage */
.art{font-family:var(--ui);background:#fff;border:1px solid #d9dce4;border-radius:8px;box-shadow:0 14px 34px rgba(30,30,60,.14);font-size:12.5px;color:#3d414c;overflow:hidden}
.slide-title{background:#f3f4f7;border-bottom:1px solid #e3e5ec;padding:8px 12px;font-weight:600;color:#2b2d36;font-size:13px}
.slide-body{display:grid;grid-template-columns:1.3fr 1fr;gap:10px;padding:12px}
.hand{font:600 17px var(--hand);fill:var(--red)}
.slide-notes{margin:0;padding:0 0 0 14px;line-height:1.5}
.slide-foot{text-align:right;color:#a0a5b2;font-size:11px;padding:0 12px 8px}
.art.chat{padding:10px 12px}
.chat-ch{font-weight:600;color:#2b2d36;margin-bottom:8px;font-size:12.5px}
.msg{display:flex;gap:8px;margin-bottom:8px}
.msg .av{width:22px;height:22px;font-size:11px;flex:none}
.msg b{font-weight:600;color:#2b2d36}
.msg time{color:#a0a5b2;font-size:11px;margin-left:6px}
.msg p{margin:2px 0 0}
.art.email{padding:12px 14px}
.email-head{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #eceef3;padding-bottom:8px;margin-bottom:8px;font-size:12px;color:#7a8090}
.email-head b{color:#2b2d36;font-weight:600}
.email p{margin:0 0 8px}
.email-att{display:inline-block;background:#f3f4f7;border:1px solid #e3e5ec;border-radius:6px;padding:3px 8px;font-size:11.5px;color:#4b5060}
.av{width:26px;height:26px;border-radius:50%;display:inline-grid;place-items:center;color:#fff;font-weight:700;font-size:12px}

/* thread card */
.thread{font-family:var(--ui);background:#fff;border:1px solid #e3e5ec;border-radius:12px;padding:10px 12px;box-shadow:0 10px 24px rgba(30,30,70,.10);font-size:12.5px;line-height:1.35;color:#1b1b22}
.thread .who{display:flex;align-items:center;gap:8px;margin-bottom:5px}
.thread .who .av{width:22px;height:22px;font-size:11px}
.thread .who b{font-weight:600}
.thread .who span.role{color:#7a8090;font-size:11.5px}
.thread p{margin:0}
.thread .reply{margin-top:9px;padding-top:9px;border-top:1px solid #eef0f4}
.thread .res{display:inline-flex;align-items:center;gap:5px;margin-top:7px;font-size:11px;font-weight:600;color:#137a39;background:#e7f7ec;padding:3px 8px;border-radius:999px}
.thread .res::before{content:"";width:6px;height:6px;border-radius:50%;background:#15a34a}
.lead{stroke:#7b3fe4;stroke-opacity:.55;stroke-width:1.5}
.lead-dot{fill:#7b3fe4}

@media (max-width:960px){
    .story{grid-template-columns:1fr;gap:20px}
  .stage-wrap{order:-1;position:sticky;top:var(--sticky-top);z-index:2}
  .beat{min-height:48vh}
}
/* phone stage: HTML layers so type stays legible at phone widths */
.stage-m{display:none;background:linear-gradient(#f6f7fa,#eef0f5)}
.stage-m::before{content:"";display:block;padding-top:100%}
.m-layer{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;transition:opacity .55s ease}
.stage-m[data-state="1"] .m-slide,.stage-m[data-state="2"] .m-slide{opacity:1}
.stage-m[data-state="2"] .m-slide{opacity:.5}
.m-chat,.m-email{transition:opacity .5s ease,transform .5s cubic-bezier(.2,.9,.3,1.15)}
.m-chat{top:14%;right:22%;bottom:auto;left:5%;transform:rotate(-1.5deg) translateY(-12px)}
.m-email{top:auto;right:4%;bottom:4%;left:16%;transform:rotate(1.5deg) translateY(-12px);transition-delay:.25s}
.stage-m[data-state="2"] .m-chat{opacity:1;transform:rotate(-1.5deg)}
.stage-m[data-state="2"] .m-email{opacity:1;transform:rotate(1.5deg)}
.stage-m[data-state="3"] .m-model{opacity:1}
.m-card{position:absolute;left:4%;right:4%;top:5%;background:#fff;border:1px solid #d9dce4;border-radius:6px;box-shadow:0 14px 34px rgba(30,30,60,.14);overflow:hidden;transform:rotate(-1deg)}
.m-title{background:#f3f4f7;border-bottom:1px solid #e3e5ec;padding:8px 10px;font:600 12px/1.2 var(--ui);color:#2b2d36}
.m-shot{margin:10px 10px 6px;border:1px solid #cfd3dc;background:#f6f7f9}
.m-win{display:flex;align-items:center;gap:5px;height:18px;padding:0 7px;background:#e6e8ee;font:10px var(--ui);color:#6b7080}
.m-win i{width:6px;height:6px;border-radius:50%;background:#c9ccd6}
.m-win span{flex:1;text-align:center}
.m-img{position:relative}
.m-img img{display:block;width:100%;height:auto}
.m-img svg{position:absolute;top:0;left:0;width:100%;height:100%}
.m-foot{display:flex;justify-content:space-between;padding:0 10px 8px;font:10px var(--ui);color:#a0a5b2}
.m-jig{position:absolute;left:4%;bottom:0;width:92%;height:auto}
.m-vtag{position:absolute;left:4%;top:4%;display:block}
.m-vtag img{display:block;height:16px;width:auto}
.m-pin{position:absolute;left:58.3%;top:48%;width:26px;height:26px;margin:-13px 0 0 -13px;border-radius:50%;background:#7b3fe4;border:3px solid #fff;box-shadow:0 0 0 8px rgba(123,63,228,.14);color:#fff;font:700 12px/20px var(--ui);text-align:center;opacity:0;transform:translateY(-10px);transition:opacity .5s ease .35s,transform .5s cubic-bezier(.2,.9,.3,1.15) .35s}
.stage-m[data-state="3"] .m-pin{opacity:1;transform:none}
.m-thread{position:absolute;left:5%;right:5%;top:12%;opacity:0;transition:opacity .55s ease .6s}
.stage-m[data-state="3"] .m-thread{opacity:1}
.m-hint{position:absolute;white-space:nowrap;left:3.5%;bottom:3.5%;background:rgba(255,255,255,.9);border:1px solid #e3e5ec;border-radius:999px;padding:5px 10px;font:11px var(--ui);color:#5c6170}
@media (max-width:700px){
  .stage-d{display:none}
  .stage-m{display:block}
  .beat{min-height:60vh}
  .beat h3{font-size:26px}
  .beat p{font-size:16px}
}

/* live model (beat 3): the team's anchored-callout viewer, mounted over the stage */
.live{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:14px;overflow:hidden;opacity:0;pointer-events:none;transition:opacity .6s ease;background:radial-gradient(ellipse 70% 60% at 50% 55%,#fff 0%,#f3f5f8 70%);box-shadow:inset 0 0 0 1px #dfe2ea}
.live.on{opacity:1;pointer-events:auto}
.live-canvas,.live-overlay{position:absolute;top:0;left:0;width:100%;height:100%}
.live-overlay{pointer-events:none}
.live-canvas canvas{display:block;width:100%;height:100%}
#cc3d-leaders{position:absolute;top:0;left:0;width:100%;height:100%;overflow:visible}
.story.live-ready .stage-d .l-model,.story.live-ready .stage-d .l-pin,.story.live-ready .stage-d .l-thread,
.story.live-ready .stage-d .l-vtag,.story.live-ready .stage-d .l-hint,
.story.live-ready .stage-m .m-model{opacity:0!important}
.live .leader{fill:none;stroke-width:3;stroke-linecap:round;stroke-dasharray:8 7;transition:opacity .35s}
.live .pin{stroke:#fff;stroke-width:2.5;transition:opacity .35s}
.live .pin-halo{fill:none;stroke-width:2;opacity:.35;transition:opacity .35s}
.live .callout{position:absolute;left:0;top:0;width:0;height:0;will-change:transform;transition:opacity .35s}
/* max-width:none (v1.4.71): the sitewide img{max-width:100%} resolved against
 * the callout's 0x0 positioned anchor box, so the ringed avatar photos
 * rendered 0-wide — invisible since the original port (Dan caught it). */
.live .callout img{position:absolute;display:block;width:var(--w);max-width:none;height:auto;user-select:none;-webkit-user-drag:none;filter:drop-shadow(0 6px 14px rgba(29,39,51,.14)) drop-shadow(0 0 10px var(--glow))}
.live .behind{opacity:.38}
/* compact card: small type, clamped to three lines; the expanded view shows the full note */
.live .note{position:absolute;width:var(--note-w);background:#fff;border-radius:10px;padding:7px 9px 8px;border-left:3px solid var(--accent);box-shadow:0 10px 26px rgba(29,39,51,.13),0 1px 3px rgba(29,39,51,.08);font:11px/1.3 var(--ui);color:#1d2733;text-align:left}
.live .note::before{content:"";position:absolute;left:50%;top:-6px;width:12px;height:12px;background:#fff;transform:translateX(-50%) rotate(45deg);border-radius:2px}
.live .note-head{display:flex;align-items:baseline;gap:5px;margin-bottom:3px}
.live .note-head b{font-weight:650;white-space:nowrap}
.live .note-head span{color:#6b7684;font-size:10px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live .note-head time{display:none;margin-left:auto;color:#6b7684;font-size:10.5px;white-space:nowrap}
/* font-size/line-height restated: the .note font shorthand only reaches the
 * paragraph by inheritance, which loses to the site's global `p` rules — the
 * comments rendered ~1.5x too big, truncating mid-sentence (v1.4.65). */
.live .note p{margin:0 0 5px;font-size:11px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.live .note-foot{display:flex;align-items:center;gap:6px;font-size:10px}
.live .status{display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;font-weight:600;white-space:nowrap}
.live .status.open{background:color-mix(in srgb,var(--accent) 14%,#fff);color:var(--accent)}
.live .status.resolved{background:#e4f5ea;color:#1f7a45}
.live .status.resolved::before{content:"\2713";font-size:10px}
.live .meta{color:#6b7684;white-space:nowrap}
.live .hide{opacity:0!important}
/* controls */
.live-vtag,.live-hint,.live-tap,.live-actions button,.live-close{white-space:nowrap;font:600 11px var(--ui);color:#2b2d36;background:rgba(255,255,255,.92);border:1px solid #e3e5ec;border-radius:999px;padding:5px 10px;z-index:2}
.live-vtag,.live-hint,.live-tap,.live-actions,.live-close{position:absolute}
.live-vtag{left:14px;top:14px;display:block;padding:0;background:none;border:0;border-radius:0}
.live-logo{display:block;height:18px;width:auto}
.live-hint{left:12px;bottom:12px;font-weight:500;color:#5c6170}
.live-tap{left:50%;bottom:12px;transform:translateX(-50%);background:var(--cta);color:#fff;border-color:var(--cta);padding:8px 16px;font-size:13px;cursor:pointer}
.live-actions{right:12px;bottom:12px;display:flex;gap:8px;z-index:2}
.live-actions button{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#5c6170;font-weight:500}
.live-actions button svg{width:12px;height:12px}
.live-expand{color:#2b2d36!important;font-weight:600!important}
.live-actions button:hover,.live-tap:hover,.live-close:hover{border-color:#b8c2ce}
.live-close{display:none;right:16px;top:14px;align-items:center;gap:6px;cursor:pointer;padding:8px 14px;font-size:13px}
.live-close svg{width:12px;height:12px}
/* expanded: the viewer takes the window */
.live-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;z-index:1000;background:rgba(21,21,24,.52);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);touch-action:none;animation:cc-fade .25s ease}
.live.expanded{position:fixed;top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:min(1120px,92vw);height:min(720px,84vh);border-radius:18px;z-index:1001;box-shadow:0 40px 120px rgba(20,20,50,.38),0 0 0 1px rgba(255,255,255,.6);opacity:1;pointer-events:auto;touch-action:none;transition:none;animation:cc-pop .28s cubic-bezier(.2,.9,.3,1.1)}
@keyframes cc-fade{from{opacity:0}to{opacity:1}}
@keyframes cc-pop{from{opacity:0;transform:translate(-50%,-50%) scale(.96)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@media (max-width:700px){.live.expanded{width:96vw;height:88vh;border-radius:14px}}
.live.expanded .note{font-size:12.5px;line-height:1.38;padding:9px 12px 10px;border-radius:12px}
.live.expanded .note-head{gap:6px;margin-bottom:4px}
.live.expanded .note-head span{font-size:11.5px}
.live.expanded .note-head time{display:block}
.live.expanded .note p{display:block;overflow:visible;margin:0 0 7px;font-size:12.5px;line-height:1.38}
.live.expanded .note-foot{font-size:11px;gap:8px}
.live.expanded .live-vtag{left:20px;top:20px}
.live.expanded .live-logo{height:26px}
.live.expanded .live-hint{left:16px;bottom:16px;font-size:12px;padding:7px 12px}
.live.expanded .live-actions{right:16px;bottom:16px}
.live.expanded .live-expand,.live.expanded .live-tap{display:none}
.live.expanded .live-close{display:inline-flex}
.live.expanded .live-reset{display:inline-flex!important}
html.cc-lock,html.cc-lock body{overflow:hidden}
@media (max-width:700px){
  .live-reset{display:none}
  .live-actions{display:none}
}
@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}


/* ============================================================
 * "Why teams switch" section (Jesse's Proof section, classes for content)
 * ============================================================ */
.cc-why-switch {
	padding: clamp(56px, 9vw, 96px) 0;
	background: #FFFFFF;
	border-top: 1px solid var(--cc-color-border-subtle, #E4E4E7);
	border-bottom: 1px solid var(--cc-color-border-subtle, #E4E4E7);
	text-align: left;
}
.cc-why-switch__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
	gap: 64px;
	align-items: center;
}
/* max-width:none releases WP's constrained-layout clip (contentSize 820px) on
 * the container's direct children so the grid goes 2-col and the works-with
 * row keeps all six logos on one line, like Jesse's proof section — same
 * pattern as .cc-privacy__inner (v1.4.65). */
.cc-why-switch .cc-container > .cc-why-switch__grid,
.cc-why-switch .cc-container > .cc-why-switch__tools {
	max-width: none;
}
.cc-section .cc-why-switch__eyebrow {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--cc-color-brand-primary);
}
.cc-section .cc-why-switch__h {
	color: #111114;
	margin: 14px 0 0;
	font-size: clamp(2rem, 3.4vw, 2.9rem);
	font-weight: var(--cc-fw-bold);
	letter-spacing: -0.02em;
	line-height: 1.08;
}
.cc-section .cc-why-switch__lead {
	margin: 18px 0 0;
	color: #52525B;
	font-size: 18px;
	max-width: 560px;
}
.cc-why-switch__points { display: grid; gap: 22px; margin-top: 36px; }
.cc-why-switch__point { display: flex; gap: 16px; align-items: flex-start; }
.cc-why-switch__point-icon {
	width: 40px; height: 40px; border-radius: 10px; flex: none;
	display: flex; align-items: center; justify-content: center;
	background: rgb(from var(--cc-color-brand-primary) r g b / 0.13);
	color: var(--cc-color-brand-primary-deep);
}
.cc-section .cc-why-switch__point-title {
	display: block; margin: 0; color: #1A1A2E; font-size: 18px; font-weight: var(--cc-fw-semibold);
}
.cc-section .cc-why-switch__point-text {
	display: block; margin: 4px 0 0; color: #52525B; font-size: 16px;
}
.cc-why-switch__quote-card {
	margin: 0; position: relative; overflow: hidden;
	background: linear-gradient(145deg, #4A1A6B 0%, var(--cc-color-brand-primary-deep) 55%, #6B2FA0 100%);
	border-radius: 24px;
	padding: clamp(28px, 5vw, 48px) clamp(22px, 4.5vw, 44px);
	color: #FFFFFF;
	box-shadow: 0 32px 64px -32px rgba(74, 26, 107, 0.45);
}
.cc-why-switch__quote-orb {
	position: absolute; top: -40px; right: -30px; width: 220px; height: 220px; border-radius: 50%;
	background: radial-gradient(circle, rgba(212, 181, 236, 0.28) 0%, rgba(212, 181, 236, 0) 70%);
}
.cc-why-switch__quote-mark {
	display: block; font-size: 96px; line-height: 0.6; font-weight: var(--cc-fw-bold);
	color: #D4B5EC; opacity: 0.9;
}
.cc-section .cc-why-switch__quote {
	margin: 14px 0 0; font-weight: var(--cc-fw-medium);
	font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.4; color: #FFFFFF; position: relative;
	border: 0; padding: 0;
	/* upright per Jesse's design — the site's blockquote default is italic (v1.4.65) */
	font-style: normal;
}
.cc-section .cc-why-switch__quote strong { color: #D4B5EC; font-weight: var(--cc-fw-bold); }
.cc-why-switch__attrib { margin-top: 28px; display: grid; gap: 16px; justify-items: start; position: relative; }
.cc-why-switch__attrib-name { font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.cc-why-switch__attrib-name strong { display: block; color: #FFFFFF; font-weight: var(--cc-fw-semibold); font-size: 16px; }
.cc-why-switch__attrib img {
	width: 140px; max-height: 40px; object-fit: contain; object-position: left;
	filter: brightness(0) invert(1); opacity: 0.9;
}
.cc-why-switch__tools {
	display: flex; align-items: center; gap: 20px 40px;
	margin-top: clamp(48px, 7vw, 72px); padding-top: 40px;
	border-top: 1px solid var(--cc-color-border-subtle, #E4E4E7);
	flex-wrap: wrap;
}
.cc-section .cc-why-switch__tools-label {
	margin: 0; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
	color: var(--cc-color-brand-primary); white-space: nowrap; flex: none;
}
.cc-why-switch__tools-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
	gap: 24px 28px; align-items: center; flex: 1 1 640px; min-width: 0;
}
.cc-why-switch__tools-grid img { width: 100%; max-height: 36px; object-fit: contain; }
@media (max-width: 700px) {
	.cc-why-switch__grid { gap: 40px; }
	.cc-why-switch__tools { gap: 16px 24px; }
	.cc-why-switch__tools-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
 * v1.4.69 — Dan feedback 2026-09-10
 * ============================================================ */

/* More air between the hero's assurance chips and the story, and beat 1's
 * copy centered on the stage at section entry (it sat 121px below the
 * image's center before the sticky engages; measured at 1440x900).
 * Desktop only — the <=960 stacked layout (stage on top) is untouched. */
@media (min-width: 961px) {
	.cc-story-mount { margin-top: 76px; }
	.story .beat:first-child { justify-content: flex-start; padding-top: clamp(56px, 6.4vw, 92px); }
}

/* Quote/testimonial removed from the why-switch grid (Dan): with a single
 * child the auto-fit grid already spans full width; --solo lays the three
 * points in a row so the section reads full-bleed instead of half-empty. */
@media (min-width: 901px) {
	.cc-why-switch__grid--solo .cc-why-switch__points { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
}
