/* Refractl refinements — hero alignment, before/after problem cards, B2B journey */

/* ---------- Hero ---------- */
.hero-bottom{align-items:start}
.hero-copy{padding-top:6px}
.signal-canvas .signal-tool{top:calc(var(--i) * (100% - 30px) / 6)}
.signal-tool img[alt="Gong"]{background:#8039df;border-color:#7131cc}
.signal-tool img[alt="Apollo"]{background:#18201f;border-color:#18201f;padding:6px}
.wire-pulses{stroke-dasharray:4 200}
.wire-pulses path{animation-name:signal-run}
@keyframes signal-run{from{stroke-dashoffset:4}to{stroke-dashoffset:-100}}

/* ---------- 02 / Where is your GTM stuck ---------- */
.heading-hint{display:block;margin-top:8px;font-size:13px;color:#8b937f}
.heading-hint b{font-weight:600;color:#5c6552}
.stuck-card .card-top{padding-bottom:14px}
.state-toggle{display:inline-flex;gap:2px;background:#2b3028;border:1px solid #5d6452;border-radius:999px;padding:3px}
.state-toggle i{display:none}
.state-toggle button{all:unset;cursor:pointer;font-size:10px;letter-spacing:.3px;padding:5px 10px;border-radius:999px;color:#9ea693;transition:background .3s,color .3s}
.state-toggle button:focus-visible{outline:2px solid var(--lime);outline-offset:2px}
.stuck-card[data-state=before] .state-toggle [data-state=before]{background:#553f33;color:#f3cdb0}
.stuck-card[data-state=after] .state-toggle [data-state=after]{background:var(--lime);color:#18201f}
.stuck-card .problem-art{isolation:isolate}
.art-state{position:absolute;inset:0;padding:inherit;transition:opacity .45s ease,transform .45s ease}
.stuck-card[data-state=before] .art-after{opacity:0;transform:translateY(12px);pointer-events:none}
.stuck-card[data-state=after] .art-before{opacity:0;transform:translateY(-12px);pointer-events:none}
.stuck-card[data-state=before] .art-after *{animation:none!important}
.stuck-card .problem-art:after{transition:background .45s}
.stuck-card[data-state=before] .problem-art:after{background:radial-gradient(ellipse at 50% 100%,#c9805a14,transparent 70%)}

/* before: reporting */
.art-before .report-question{margin-bottom:12px}
.conflict-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.conflict-tile{border:1px solid #5d6452;border-radius:6px;padding:8px 10px;background:#2a2f27}
.conflict-tile small{display:block;font-size:9px;color:#9aa58c;letter-spacing:.3px}
.conflict-tile strong{display:block;font-size:18px;font-weight:500;color:#f0e6cf;margin:2px 0 0;letter-spacing:-.3px}
.conflict-tile em{font-style:normal;font-size:9.5px;color:#aeb6a0}
.conflict-tile.is-q{border-style:dashed;border-color:#c98b6a88;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center}
.conflict-tile.is-q strong{color:#e59a73;font-size:20px}
.decision-slip.is-warn{border-color:#c98b6a70;background:#43332b;margin-top:14px}
.decision-slip.is-warn>span{color:#e59a73;font-weight:600;width:20px;text-align:center}
/* before: AI */
.ai-sprawl{display:flex;flex-wrap:wrap;gap:9px 7px;margin:20px 0 18px}
.ai-sprawl span{font-size:10.5px;color:#c9cfbd;border:1px solid #6d765f;border-radius:14px;padding:4px 9px;background:#2d3329;transform:rotate(var(--r))}
.sprawl-stats{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid #4a5242;padding:11px 0}
.sprawl-stats small{display:block;font-size:9px;color:#96a187}
.sprawl-stats strong{font-size:18px;font-weight:500;color:#f0e6cf}
.sprawl-stats div:last-child strong{color:#e59a73}
/* before: context */
.fragments{display:flex;flex-direction:column;gap:7px;margin:16px 0 4px}
.frag{align-self:flex-start;max-width:92%;font-size:10.5px;line-height:1.4;color:#c9cfbd;background:#2d3329;border:1px dashed #6d765f;border-radius:6px;padding:6px 9px;transform:rotate(var(--r))}
.frag:nth-child(even){align-self:flex-end}
.frag b{font-weight:500;font-size:8.5px;letter-spacing:.8px;text-transform:uppercase;color:#97a487;margin-right:7px}

/* copy */
.copy-kicker{display:block;margin-top:22px;font-size:9.5px;letter-spacing:1.3px;color:#d8b66b}
.stuck-card .card-copy h3{font-size:21px;line-height:1.32;margin:9px 0 14px;letter-spacing:-.4px;min-height:calc(3 * 1.32em)}
.stuck-card .card-copy p{font-size:14px}
.unstuck-list{list-style:none;padding:14px 0 0;margin:16px 0 0;border-top:1px solid #5a604f;display:grid;gap:8px}
.unstuck-list li{font-size:13.5px;line-height:1.45;color:#e4e7da;display:flex;gap:9px;transition:opacity .4s,color .4s}
.unstuck-list li:before{content:'✓';color:var(--lime);font-size:12px;line-height:1.6}
.stuck-card[data-state=before] .unstuck-list li{opacity:.55}
@media(max-width:1100px){.stuck-card .card-copy h3{min-height:0}}
@media(max-width:800px) and (min-width:601px){.stuck-card .copy-kicker{margin-top:0}}

/* ---------- 03 / How we think ---------- */
.funnel-caption{display:flex;justify-content:space-between;align-items:center}
.committee-key{display:inline-flex;align-items:center;gap:6px;font-size:10px}
.committee-key b,.committee b{display:block;width:6px;height:6px;border-radius:50%;background:currentColor}
.committee-key b{background:#7b9158}
.journey-stage{grid-template-columns:22px 1fr auto;column-gap:4px}
.journey-stage .committee{grid-column:3;grid-row:1/3;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:3px;max-width:58px;opacity:.7}
.journey-stage.active .committee{opacity:1;color:var(--lime)}
.loopback-note{display:flex;gap:10px;margin-top:20px;max-width:430px}
.loopback-note>span{color:#7b9158;font-size:16px;line-height:1.3}
.loopback-note p{margin:0;font-size:11.5px;line-height:1.55;color:#6b785d}
.loopback-note strong{color:#3e4a33;font-weight:600}
.detail-label{display:block;font-size:9px;letter-spacing:1px;color:#818e70}
.detail-label em{font-style:normal;color:#a3ad95;margin-left:6px;letter-spacing:.3px}
.journey-detail .stage-counter{display:block;margin-bottom:16px}
.journey-detail h3{font-size:25px;margin:8px 0 18px}
#stage-people{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
#stage-people span{font-size:11px;padding:4px 8px;border-radius:4px;border:1px solid #dfe4d6;color:#6b7560;background:#f5f6f0}
#stage-people span.is-new{background:#eef7cf;border-color:#a9c04f;color:#2f3b1f}
#stage-people i{font-style:normal;font-size:8.5px;letter-spacing:.6px;text-transform:uppercase;color:#6f8b22;margin-left:3px}
.contrast-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0 4px}
.contrast-row>div{border-radius:6px;padding:11px 12px}
.contrast-row>div:first-child{background:#f3f3ee;border:1px solid #e3e5dc}
.contrast-row>div:first-child p{color:#8a9180}
.contrast-row>div:last-child{background:#f1f7dc;border:1px solid #d6e3a8}
.contrast-row>div:last-child p{color:#34401f}
.contrast-row p{font-size:12.5px;line-height:1.5;margin:6px 0 0}
.journey-detail.swap>*{animation:loopSwap .4s ease}
.principles{display:grid;grid-template-columns:1fr 3fr;gap:30px;padding:24px 0;border-top:1px solid #d8dfcc}
.principles>div strong{font-size:14px;font-weight:550}
.principles>div p{font-size:11px;color:#7c886d;margin:4px 0 0}
.principles ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;counter-reset:p}
.principles li{counter-increment:p;border-left:1px solid #d3dbc6;padding-left:14px}
.principles li span{display:block;font-size:13.5px;color:#3e5030;font-weight:550}
.principles li span:before{content:counter(p,decimal-leading-zero);color:#9aab7e;font-size:10px;margin-right:7px}
.principles small{display:block;font-size:11px;color:#7c886d;line-height:1.5;margin-top:4px}
@keyframes loopSwap{from{opacity:0;transform:translateY(6px)}}
@media(max-width:1000px){.principles{grid-template-columns:1fr;gap:16px}.principles ol{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.contrast-row{grid-template-columns:1fr}.principles ol{grid-template-columns:1fr}.journey-stage .committee{max-width:44px}}
@media(prefers-reduced-motion:reduce){.art-state,.unstuck-list li{transition:none}.journey-detail.swap>*{animation:none}}
.funnel-area{align-self:start}
.funnel-area .return-line{bottom:80px}
.funnel-area .return-label{top:40%}
.journey-stage .committee{max-width:72px}
.stuck-card .card-copy h3{min-height:calc(2 * 1.32em)}

/* ---------- One consistent off-white page background ---------- */
.problem-section{background:var(--paper);border-block:1px solid var(--line)}
.delivery-section{background:var(--paper);color:var(--ink);border-top:1px solid var(--line)}
.delivery-heading .eyebrow{color:var(--ink)}
.delivery-heading>p:last-child{color:#69705f}
.delivery-grid article{border-top-color:#cfd6c6}
.delivery-grid article>span{color:#6a735f}
.delivery-grid p{color:#59615c}
.delivery-output{color:#3e4a33;border-top-color:var(--line)}

/* ---------- Page background: faint grid, drifting glow and light streaks (after wardn.space), on the same off-white ---------- */
.problem-section,.delivery-section{background:transparent}
.page-bg{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.page-bg>*{position:absolute;inset:0}
.page-bg-grid{background-image:linear-gradient(to right,rgba(24,32,31,.035) 1px,transparent 1px),linear-gradient(rgba(24,32,31,.035) 1px,transparent 1px);background-size:48px 48px}
.page-bg-glow{background-image:linear-gradient(180deg,rgba(213,250,88,.05) 0%,transparent 30%,rgba(111,139,34,.03) 45%,transparent 55%,rgba(180,222,120,.04) 65%,transparent 80%,rgba(213,250,88,.03) 90%,transparent 100%);background-size:100% 200%;animation:pageGlow 24s ease-in-out infinite alternate}
.page-bg canvas{width:100%;height:100%}
.page-bg-fade{background:linear-gradient(to top,rgba(250,251,247,.35),transparent 50%,rgba(250,251,247,.15))}
@keyframes pageGlow{from{background-position:0 0}to{background-position:0 100%}}
@media(prefers-reduced-motion:reduce){.page-bg-glow{animation:none}}

/* ---------- Hero: headline 10% smaller, "Your GTM, connected" box level with the headline ---------- */
.hero h1{font-size:clamp(40.5px,5.67vw,79.2px);letter-spacing:-4.2px;margin:0 0 38px;white-space:nowrap}
/* a smaller card gives the headline room to sit on two lines */
.hero .hero-bottom{margin-top:34px;align-items:stretch;grid-template-columns:minmax(0,1fr) min(32vw,480px);gap:min(3vw,48px)}
.hero .hero-copy{padding-top:0}
.hero .signal-map{display:flex;flex-direction:column}
.hero .hero-bottom>.signal-map{margin-top:12px}
@media(max-width:1000px){.hero .hero-bottom>.signal-map{margin-top:0}}
.hero .signal-canvas{flex:1;min-height:300px}
@media(min-width:1500px){.hero h1{font-size:82.8px}}
@media(max-width:1000px){.hero h1{letter-spacing:-2.7px;white-space:normal}.hero .hero-bottom{grid-template-columns:1fr;gap:36px}}
@media(max-width:700px){.hero h1{font-size:clamp(32.4px,7.02vw,49.5px);letter-spacing:-1.8px;margin-bottom:26px}}

/* "HubSpot" in HubSpot's brand oranges */
.hero h1 .hs-word{font-style:normal;background:linear-gradient(100deg,#ff5c35 0%,#ff7a59 55%,#ff9a6e 100%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;padding-right:.04em}

/* the revenue loop sits on its own tint so it separates from the hero */
.loop-section{background:linear-gradient(180deg,#eef1e6 0%,#f1f3eb 100%);border-bottom:1px solid var(--line)}
/* on mid-size screens the narrower card keeps just the logos so the wiring has room */
@media(max-width:1250px) and (min-width:1001px){.hero .signal-tool span{display:none}.hero .insight-node>span:last-child{font-size:9px}}
