/* fx3: per-event hero concepts + extra bento graphics + the partner past-run section. Loaded only on pages that use them,
   so the Uber page never changes. Every loop pauses under prefers-reduced-motion and lands on its finished state. */

/* ---------- placement: the art sits to the right of the brand-first hero on desktop, under the copy on phones ---------- */
.top .wrap { position: relative; z-index: 2; }
.top .hero-art { position: absolute; z-index: 1; right: max(var(--gutter), calc((100% - var(--max)) / 2)); top: 50%; width: min(440px, 34vw); transform: translateY(-44%); pointer-events: none; }
.top:has(.hero-art) h1.h-xl { max-width: 12ch; font-size: clamp(40px, 5.6vw, 80px); }
.top:has(.hero-art) .wrap > :is(.tagline, .meta) { max-width: min(620px, 56%); }
.top .lock .ub.pt { font: 700 clamp(17px, 1.9vw, 24px)/1 var(--sans); letter-spacing: -.015em; color: var(--t1); }
@media (max-width: 1080px) {
  .top .hero-art { position: relative; right: auto; top: auto; transform: none; width: min(440px, 100% - 2 * var(--gutter)); margin: 34px auto 0; order: 2; }
  .top:has(.hero-art) .wrap > :is(.tagline, .meta) { max-width: none; }
  .top:has(.hero-art) h1.h-xl { max-width: 16ch; }
}
.hero-art { --card: rgba(26, 23, 30, .82); --edge: rgba(255, 255, 255, .1); font-family: var(--sans); }
.hero-art :is(p, ol) { margin: 0; }

/* shared card skin: a raised surface on the stage, hairline edge, one soft plum light from above */
.fc-card, .ib-card, .rk-card { position: relative; border-radius: 18px; background: var(--card); border: 1px solid var(--edge); padding: 22px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- FreshBooks: numbers resolve into a forecast ---------- */
.fc-h { font: 700 15px/1 var(--sans); color: var(--t2); margin-bottom: 16px !important; }
.fc-rows { display: grid; gap: 10px; }
.fc-rows p { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 12px; font-size: 14px; color: var(--t2); }
.fc-rows .bar { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #7d1f6f, #c68ac4); transform-origin: left; transform: scaleX(0); animation: grow 1.6s cubic-bezier(.16, 1, .3, 1) forwards, breathe 4s ease-in-out 2s infinite; }
.fc-rows .b1 { width: 92%; animation-delay: .3s, 2.3s; } .fc-rows .b2 { width: 54%; animation-delay: .5s, 2.5s; } .fc-rows .b3 { width: 76%; animation-delay: .7s, 2.7s; } .fc-rows .b4 { width: 66%; animation-delay: .9s, 2.9s; }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes breathe { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
.fc-chart { width: 100%; height: 120px; margin-top: 18px; display: block; overflow: visible; }
.fc-chart .grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; fill: none; }
.fc-chart .line { fill: none; stroke: #f3eff4; stroke-width: 2.6; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2.4s cubic-bezier(.65, 0, .35, 1) 1s forwards; }
.fc-chart .area { fill: rgba(176, 99, 174, .18); opacity: 0; animation: fadein 1s ease 2.6s forwards; }
.fc-chart .dot { fill: #c68ac4; opacity: 0; animation: fadein .4s ease 3.2s forwards, pulse 2s ease-in-out 3.6s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fadein { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.6); } }
.fc-foot { display: flex; gap: 8px; align-items: baseline; margin-top: 12px !important; font-size: 14px; color: var(--t2); }
.fc-foot b { color: var(--t1); }

/* ---------- Campaigner: an inbox that fills ---------- */
.ib-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px !important; font-size: 14px; color: var(--t3); }
.ib-h b { color: var(--t1); font-size: 15px; }
.ib-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--edge);
  opacity: 0; transform: translateY(-14px); animation: drop .6s cubic-bezier(.2, .9, .3, 1.2) forwards; animation-delay: calc(.4s + var(--k) * .55s); }
.ib-row .dot { grid-row: span 2; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 0 4px rgba(176, 99, 174, .18); }
.ib-row b { font-size: 14px; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-row span { grid-column: 2; font-size: 13px; color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-row .open { grid-row: 1 / span 2; grid-column: 3; align-self: center; font: 500 11px/1 var(--sans); font-style: normal; color: #f3eff4; background: rgba(176, 99, 174, .3); border-radius: 6px; padding: 5px 7px;
  opacity: 0; animation: fadein .4s ease forwards; animation-delay: calc(1.6s + var(--k) * .55s); }
@keyframes drop { to { opacity: 1; transform: none; } }

/* ---------- Zoom: an AI workflow graph ---------- */
.art-flow { position: relative; aspect-ratio: 420 / 300; }
.fl-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fl-svg .rail { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
.fl-svg .pulse { fill: none; stroke: url(#flg); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 50 400; stroke-dashoffset: 50; animation: run2 2.6s cubic-bezier(.5, 0, .3, 1) infinite; }
.fl-svg .q2 { animation-delay: .4s; } .fl-svg .q3 { animation-delay: 1.3s; } .fl-svg .q4 { animation-delay: 1.7s; }
@keyframes run2 { to { stroke-dashoffset: -230; } }
.fl-n { position: absolute; transform: translate(-50%, -50%); padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--edge); font-size: 13px; white-space: nowrap; color: var(--t1);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); animation: nodepop .6s cubic-bezier(.2, .9, .3, 1.3) both; }
.fl-n.n1 { left: 16.7%; top: 20%; animation-delay: .3s; } .fl-n.n2 { left: 16.7%; top: 80%; animation-delay: .45s; }
.fl-n.n3 { left: 83.3%; top: 20%; animation-delay: .9s; } .fl-n.n4 { left: 83.3%; top: 80%; animation-delay: 1.05s; }
.fl-n.hub { left: 50%; top: 50%; padding: 18px 22px; font-size: 18px; background: linear-gradient(135deg, #4a1140, #7d1f6f); border-color: rgba(198, 138, 196, .5); animation: nodepop .6s cubic-bezier(.2, .9, .3, 1.3) .6s both, hubglow 2.6s ease-in-out 1.4s infinite; }
@keyframes nodepop { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes hubglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 138, 196, .0); } 50% { box-shadow: 0 0 0 10px rgba(198, 138, 196, .14); } }

/* ---------- Semrush: a search result climbs into the answer ---------- */
.rk-q { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--edge); font-size: 14px; color: var(--t1); }
.rk-q i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--t2); position: relative; flex: none; }
.rk-q i::after { content: ''; position: absolute; width: 6px; height: 2px; background: var(--t2); right: -5px; bottom: -3px; transform: rotate(45deg); }
.rk-q .typed { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--orchid-hi); max-width: 0; animation: type 1.6s steps(28, end) .4s forwards, caret .8s step-end 2s 4; }
@keyframes type { to { max-width: 100%; } }
@keyframes caret { 50% { border-color: transparent; } }
.rk-ai { margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(74, 17, 64, .7), rgba(26, 23, 30, .7)); border: 1px solid rgba(198, 138, 196, .35); font-size: 13.5px; color: var(--t2); display: grid; gap: 4px;
  opacity: 0; transform: translateY(8px); animation: drop .6s ease 4.2s forwards; }
.rk-ai b { color: var(--t1); font-size: 13px; }
.rk-ai mark { background: none; color: #fff; font-weight: 700; border-bottom: 2px solid var(--orchid); }
.rk-list { list-style: none; padding: 0; position: relative; height: 208px; }
.rk { position: absolute; left: 0; right: 0; height: 46px; display: grid; align-content: center; padding: 0 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--edge); transition: none; }
.rk b { font-size: 13.5px; color: var(--t1); } .rk span { font-size: 12px; color: var(--t3); }
.rk.o1 { top: 0; animation: down1 1s cubic-bezier(.65, 0, .35, 1) 2.4s forwards; } .rk.o2 { top: 52px; animation: down1 1s cubic-bezier(.65, 0, .35, 1) 2.4s forwards; } .rk.o3 { top: 104px; animation: down1 1s cubic-bezier(.65, 0, .35, 1) 2.4s forwards; }
.rk.you { top: 156px; background: rgba(176, 99, 174, .22); border-color: rgba(198, 138, 196, .55); animation: climb 1s cubic-bezier(.65, 0, .35, 1) 2.4s forwards; }
@keyframes down1 { to { transform: translateY(52px); } }
@keyframes climb { to { transform: translateY(-156px); } }

/* ---------- extra bento graphics ---------- */
.gfx-chart .ax { fill: none; stroke: var(--s3); stroke-width: 2; }
.gfx-chart .b { fill: #4a1140; transform-box: fill-box; transform-origin: bottom; animation: rise 3.4s cubic-bezier(.16, 1, .3, 1) infinite; }
.gfx-chart .b:nth-of-type(2) { animation-delay: .12s; } .gfx-chart .b:nth-of-type(3) { animation-delay: .24s; } .gfx-chart .b:nth-of-type(4) { animation-delay: .36s; fill: var(--orchid); }
@keyframes rise { 0% { transform: scaleY(.1); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.1); } }
.gfx-chart .ln { fill: none; stroke: var(--t1); stroke-width: 2.5; stroke-dasharray: 140; stroke-dashoffset: 140; animation: drawloop 3.4s ease-in-out infinite .4s; }
@keyframes drawloop { 0% { stroke-dashoffset: 140; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -140; } }
.gfx-deck .pg { fill: var(--s2); stroke: var(--line2); } .gfx-deck .p1 { fill: var(--s3); animation: shuffle 4s ease-in-out infinite; } .gfx-deck .l { fill: rgba(243, 239, 244, .5); animation: shuffle 4s ease-in-out infinite; }
@keyframes shuffle { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(6px, -6px); } }
.gfx-deck .tick { fill: none; stroke: #c68ac4; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawloop 4s ease-in-out infinite 1s; }
.gfx-mail .env rect { fill: var(--s2); stroke: var(--t2); stroke-width: 2; } .gfx-mail .env path { fill: none; stroke: var(--t2); stroke-width: 2; }
.gfx-mail .env { animation: lift 3s ease-in-out infinite; }
.gfx-mail .fly circle { fill: #c68ac4; transform-box: fill-box; animation: flyout 3s ease-out infinite; opacity: 0; }
.gfx-mail .fly circle:nth-child(2) { animation-delay: .5s; } .gfx-mail .fly circle:nth-child(3) { animation-delay: 1s; } .gfx-mail .fly circle:nth-child(4) { animation-delay: 1.5s; }
@keyframes flyout { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.8); } }
.gfx-search .box { fill: var(--s2); stroke: var(--line2); } .gfx-search .mg { fill: none; stroke: var(--t2); stroke-width: 2.4; } .gfx-search .q { fill: rgba(243, 239, 244, .4); }
.gfx-search .r { fill: var(--s3); } .gfx-search .r.you { fill: var(--orchid); animation: up3 3.6s cubic-bezier(.65, 0, .35, 1) infinite; }
.gfx-search .r1, .gfx-search .r2 { animation: dn3 3.6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes up3 { 0%, 25% { transform: translateY(0); } 55%, 90% { transform: translateY(-52px); } 100% { transform: translateY(0); } }
@keyframes dn3 { 0%, 25% { transform: translateY(0); } 55%, 90% { transform: translateY(26px); } 100% { transform: translateY(0); } }
.gfx-flow .rail { stroke: var(--s3); stroke-width: 3; fill: none; } .gfx-flow .pulse { fill: none; stroke: #f3eff4; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 30 300; animation: run3 2.2s ease-in-out infinite; }
@keyframes run3 { from { stroke-dashoffset: 30; } to { stroke-dashoffset: -150; } }
.gfx-flow .nd { fill: var(--s2); stroke: var(--t2); stroke-width: 2.5; } .gfx-flow .nd.b { fill: #4a1140; stroke: #c68ac4; animation: hubbeat 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes hubbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ---------- the partner's own past run with LvlUp ---------- */
.past { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.past figure { margin: 0; display: grid; gap: 10px; }
.past img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.past figcaption { color: var(--t3); font-size: var(--f-xs); }
.past figure:first-child { grid-column: span 2; grid-row: span 2; } .past figure:first-child img { aspect-ratio: auto; height: 100%; max-height: 520px; }
@media (max-width: 760px) { .past { grid-template-columns: 1fr; } .past figure:first-child { grid-column: auto; grid-row: auto; } }

@media (prefers-reduced-motion: reduce) {
  .hero-art *, .hero-art .fc-card, .hero-art .ib-card, .hero-art .rk-card, .gfx-chart *, .gfx-deck *, .gfx-mail *, .gfx-search *, .gfx-flow * { animation: none !important; }
  .fc-rows .bar { transform: none; } .fc-chart .line { stroke-dashoffset: 0; } .fc-chart .area, .fc-chart .dot, .ib-row, .ib-row .open, .rk-ai, .fl-n { opacity: 1; transform: none; }
  .fl-n { transform: translate(-50%, -50%); } .rk-q .typed { max-width: 100%; } .rk.you { transform: translateY(-156px); } .rk.o1, .rk.o2, .rk.o3 { transform: translateY(52px); }
}

/* register steps: as many columns as steps (the Uber page keeps its own four) */
@media (min-width: 961px) { .steps[style*='--n'] { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); max-width: calc(var(--n) * 290px); } }

/* review 10/1: the phone dock never covers the footer links; no sheen band on the register buttons (read as a glitch) */
@media (max-width: 760px) { .top ~ * .foot, .foot { padding-bottom: calc(120px + env(safe-area-inset-bottom)); } }
.cta::after { display: none; }

/* Semrush step 1: 'Sign up now' drops down two plans, each with its own button (Aaron 10/1 1:51, pattern from the approved stage 1 card) */
.steps .buy { margin-top: 10px; }
.steps .buy summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #000; color: #fff; font: 700 var(--f-s)/1 var(--sans); width: max-content; transition: background .2s var(--ease); }
.steps .buy summary::-webkit-details-marker { display: none; }
.steps .buy summary:hover { background: #2a2a2a; }
.steps .buy summary i { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.steps .buy[open] summary i { transform: rotate(-135deg) translate(-1px, -1px); }
.steps .buy-opts { display: grid; gap: 10px; margin-top: 12px; }
.steps .buy .opt { border: 1px solid var(--paper-line); border-radius: 12px; padding: 14px; display: grid; gap: 4px; justify-items: start; background: var(--paper); }
.steps .buy .opt b { font-size: var(--f-s); } .steps .buy .opt span { font-size: 14px; color: var(--paper-t2); }
.steps .buy .opt .ubtn { margin-top: 8px; }
.steps .note { display: block; margin-top: 12px; font: 700 var(--f-s)/1.4 var(--sans); color: var(--paper-t1); }
