/* Logo cutout-parallax opening, workspace callouts and pre-dial graphic (effects-lab copy only).
   Built on the site's own tokens. */

/* ---------- Opening: the Monarch logo flies apart and the desk scene takes over ---------- */
/* Without the script (or with reduced motion) this is a plain, fully usable hero. html.plx-on turns on the scene. */
.plx { position: relative; background: var(--ink); }
.plx-stage { position: relative; min-height: calc(100vh - var(--hdr, 5rem)); min-height: calc(100svh - var(--hdr, 5rem)); overflow: hidden; }
.plx-on .plx { height: 245vh; }
.plx-on .plx-stage { position: sticky; top: var(--hdr, 5rem); height: calc(100vh - var(--hdr, 5rem)); height: calc(100svh - var(--hdr, 5rem)); }
.plx-photo {
  position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none;
  object-fit: cover; object-position: 60% 50%;
}
.plx-on .plx-photo { transform: scale(1.22); }
.plx.is-live .plx-photo, .plx.is-live .plx-piece, .plx.is-live .plx-copy { will-change: transform, opacity; }
.plx-veil {
  position: absolute; inset: 0; pointer-events: none; display: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 48%, rgba(247, 248, 244, .97) 0%, rgba(247, 248, 244, .9) 45%, rgba(247, 248, 244, .62) 100%);
}
.plx-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 12, 22, .92) 0%, rgba(8, 12, 22, .72) 36%, rgba(8, 12, 22, .05) 66%);
}
.plx-copy { position: relative; z-index: 2; min-height: inherit; height: 100%; display: flex; align-items: center; }
html:not(.plx-on) .plx-copy { padding-block: 3rem; }
.plx-on .plx-copy { opacity: 0; }
.plx-on .plx-scrim { opacity: 0; }
.plx-on .plx-veil { display: block; }
.plx-logo, .plx-hint { display: none; }
.plx-on .plx-logo { display: block; }
.plx-on .plx-hint { display: grid; }
.plx-copy .hero-copy { max-width: 36rem; color: var(--white); }
.plx-copy h1 { color: var(--white); }
.plx-copy .eyebrow { color: var(--accent); }
.plx-copy .lede { color: #d5dae6; }
.plx-copy .hero-note { color: #aeb6c8; }
.plx-copy .button--secondary { color: var(--white); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .45); }

.plx-logo {
  position: absolute; z-index: 3; left: 50%; top: 47%; width: min(78vw, 1100px); aspect-ratio: 2172 / 724;
  transform: translate(-50%, -50%); pointer-events: none;
  animation: plx-float 6s ease-in-out infinite;
}
.plx-piece {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
}
/* One cut-out image, sliced three ways so each slice can travel on its own depth. */
.plx-mon { clip-path: polygon(0 0, 55.06% 0, 44.38% 82.9%, 35% 82.9%, 35% 100%, 0 100%); transform-origin: 22% 50%; }
.plx-arch { clip-path: polygon(55.06% 0, 100% 0, 100% 82.9%, 44.38% 82.9%); transform-origin: 74% 42%; }
.plx-tag { clip-path: polygon(35% 82.9%, 100% 82.9%, 100% 100%, 35% 100%); transform-origin: 66% 92%; }
.plx-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 1.6rem; transform: translateX(-50%); margin: 0;
  justify-items: center; gap: .55rem;
  color: rgba(11, 18, 32, .62); font-size: .68rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase;
  pointer-events: none; transition: opacity .35s;
}
.plx-hint::after {
  width: 2px; height: 2.4rem; content: ''; border-radius: 2px;
  background: linear-gradient(var(--accent), rgba(255, 90, 61, 0));
  animation: plx-drip 1.8s ease-in-out infinite; transform-origin: top;
}
@keyframes plx-float { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }
@keyframes plx-drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Workspace: the live card with its four points around it ---------- */
.ws {
  position: relative; overflow: hidden; color: var(--white);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  background:
    radial-gradient(40rem 26rem at 18% 12%, rgba(255, 90, 61, .16), transparent 70%),
    radial-gradient(44rem 30rem at 85% 88%, rgba(189, 244, 91, .12), transparent 70%),
    var(--ink);
}
.ws::before {
  position: absolute; inset: 0; content: ''; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000, transparent);
}
.ws-head { position: relative; display: grid; justify-items: center; gap: 1rem; max-width: 46rem; margin: 0 auto clamp(2.75rem, 5vw, 4.25rem); text-align: center; }
.ws-head .eyebrow { color: var(--signal); }
.ws-head h2 { color: var(--white); }
.ws-grid {
  --gap: clamp(2rem, 4vw, 3.75rem);
  position: relative; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 37rem) minmax(0, 1fr);
  grid-template-areas: "a card c" "b card d";
  column-gap: var(--gap); row-gap: 2.25rem;
}
.ws-card { grid-area: card; perspective: 1400px; }
.ws-card .product-card {
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
  border-color: rgba(189, 244, 91, .28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 40px 100px rgba(0, 0, 0, .55), 0 0 80px rgba(189, 244, 91, .1);
  background: linear-gradient(160deg, #15203a 0%, #0b1220 60%);
}
.ws-note { position: relative; }
.ws-note--a { grid-area: a; } .ws-note--b { grid-area: b; } .ws-note--c { grid-area: c; } .ws-note--d { grid-area: d; }
.ws-note-inner {
  position: relative; display: grid; gap: .7rem; padding: 1.35rem 1.4rem 1.45rem;
  border: 1px solid rgba(189, 244, 91, .3); border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 1px rgba(189, 244, 91, .08), 0 0 36px rgba(189, 244, 91, .2), 0 24px 60px rgba(0, 0, 0, .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ws-note-top { display: flex; align-items: center; justify-content: space-between; }
.ws-icon {
  width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: .8rem;
  color: var(--ink); background: var(--signal); box-shadow: 0 0 0 .4rem rgba(189, 244, 91, .12), 0 10px 24px rgba(189, 244, 91, .25);
}
.ws-icon svg { width: 1.25rem; height: 1.25rem; }
.ws-num {
  font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
}
.ws-note strong { font-size: 1.08rem; letter-spacing: -.02em; }
.ws-note p { color: #aab6c8; font-size: .86rem; line-height: 1.55; }
/* Connector from each note to the card, ending in a lit dot. */
.ws-note::after {
  position: absolute; top: 50%; width: var(--gap); height: 2px; content: '';
  background: linear-gradient(90deg, rgba(189, 244, 91, .05), rgba(189, 244, 91, .85));
  transform: scaleX(0); transition: transform 1.1s .9s cubic-bezier(.2, .7, .2, 1);
}
.ws-note::before {
  position: absolute; z-index: 1; top: 50%; width: .7rem; height: .7rem; margin-top: -.3rem; content: ''; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 .3rem rgba(189, 244, 91, .18), 0 0 18px rgba(189, 244, 91, .8);
  opacity: 0; transition: opacity .5s 1.9s;
}
.ws-note--a::after, .ws-note--b::after { left: 100%; transform-origin: left; }
.ws-note--c::after, .ws-note--d::after { right: 100%; transform-origin: right; background: linear-gradient(270deg, rgba(189, 244, 91, .05), rgba(189, 244, 91, .85)); }
.ws-note--a::before, .ws-note--b::before { left: calc(100% + var(--gap) - .35rem); }
.ws-note--c::before, .ws-note--d::before { right: calc(100% + var(--gap) - .35rem); }
/* Reveal: notes glide in from their side, then the connector draws to the card. */
.ws-note-inner { transition: opacity 1.2s, transform 1.4s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
.fx-on .ws:not(.is-in) .ws-note-inner { opacity: 0; }
.fx-on .ws:not(.is-in) .ws-note--a .ws-note-inner, .fx-on .ws:not(.is-in) .ws-note--b .ws-note-inner { transform: translateX(-2.5rem); }
.fx-on .ws:not(.is-in) .ws-note--c .ws-note-inner, .fx-on .ws:not(.is-in) .ws-note--d .ws-note-inner { transform: translateX(2.5rem); }
.ws-note--c .ws-note-inner { transition-delay: .2s, .2s, 0s, 0s; }
.ws-note--b .ws-note-inner { transition-delay: .4s, .4s, 0s, 0s; }
.ws-note--d .ws-note-inner { transition-delay: .6s, .6s, 0s, 0s; }
.ws-note--b::after, .ws-note--d::after { transition-delay: 1.3s; }
.ws-note--b::before, .ws-note--d::before { transition-delay: 2.3s; }
.ws.is-in .ws-note-inner { opacity: 1; transform: none; }
.ws.is-in .ws-note::after { transform: scaleX(1); }
.ws.is-in .ws-note::before { opacity: 1; }
/* The sample card breathes a little. */
.ws .wave i { animation: ws-wave 1.1s ease-in-out infinite; transform-origin: center; }
.ws .wave i:nth-child(2) { animation-delay: .15s; } .ws .wave i:nth-child(3) { animation-delay: .3s; }
.ws .wave i:nth-child(4) { animation-delay: .45s; } .ws .wave i:nth-child(5) { animation-delay: .6s; }
.ws .queue-state--amber { animation: ws-ring 1.2s ease-in-out infinite; }
@keyframes ws-wave { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes ws-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 200, 87, .6); } 60% { box-shadow: 0 0 0 .45rem rgba(255, 200, 87, 0); } }

/* ---------- Responsible use: the pre-dial check ---------- */
.compliance-card { position: relative; overflow: hidden; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.compliance-card::before {
  position: absolute; width: 34rem; height: 34rem; right: -10rem; top: -12rem; content: ''; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(189, 244, 91, .14), transparent 68%);
}
.compliance-card > * { position: relative; }
.consent-visual { position: relative; display: grid; place-items: center; min-height: 33rem; }
.consent-seal { position: absolute; width: min(33rem, 112%); aspect-ratio: 1; animation: seal-spin 40s linear infinite; }
.consent-seal text { fill: rgba(189, 244, 91, .85); font: 800 11px var(--font); letter-spacing: .3em; text-transform: uppercase; }
.consent-seal .seal-ring { fill: none; stroke: rgba(255, 255, 255, .12); }
.consent-seal .seal-dash { fill: none; stroke: rgba(189, 244, 91, .35); stroke-dasharray: 2 7; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
.preflight {
  position: relative; width: min(20rem, 100%); padding: 1.15rem; border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, .14);
  background: linear-gradient(160deg, rgba(23, 35, 58, .96), rgba(11, 18, 32, .96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.preflight-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.preflight-head span:first-child { display: flex; align-items: center; gap: .55rem; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.preflight-head svg { width: 1.1rem; height: 1.1rem; color: var(--signal); }
.preflight-head small { color: #8997ab; font-size: .66rem; }
.preflight-list { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.preflight-row {
  display: grid; grid-template-columns: 1.55rem 1fr auto; align-items: center; gap: .65rem;
  padding: .62rem .7rem; border-radius: .65rem; background: rgba(255, 255, 255, .05); font-size: .8rem; font-weight: 700;
}
.preflight-row small { color: #8997ab; font-size: .68rem; font-weight: 700; }
.pf-mark { position: relative; width: 1.55rem; height: 1.55rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .18); }
.pf-mark::after {
  position: absolute; left: .42rem; top: .2rem; width: .38rem; height: .7rem; content: '';
  border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.preflight-row.is-done .pf-mark { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 14px rgba(189, 244, 91, .55); transition: background .25s, box-shadow .25s; }
.preflight-row.is-done .pf-mark::after { transform: rotate(45deg) scale(1); }
.preflight-row.is-checking .pf-mark { border-color: rgba(189, 244, 91, .9); border-right-color: transparent; animation: pf-spin .6s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.preflight-go {
  display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: .9rem; padding: .85rem;
  border-radius: .75rem; color: #8997ab; background: rgba(255, 255, 255, .06); font-size: .84rem; font-weight: 800;
  transition: color .35s, background .35s, box-shadow .35s;
}
.preflight-go i { width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.preflight.is-cleared .preflight-go { color: var(--ink); background: var(--signal); box-shadow: 0 12px 34px rgba(189, 244, 91, .3); }
.preflight-note { margin-top: .75rem !important; color: #8997ab !important; font-size: .7rem; line-height: 1.45; text-align: center; }

@media (max-width: 980px) {
  .ws-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "card card" "a c" "b d"; row-gap: 1.25rem; column-gap: 1.25rem; }
  .ws-card { margin-bottom: 1rem; }
  .ws-note::after, .ws-note::before { display: none; }
  .compliance-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .plx-photo { object-position: 72% 50%; }
  .plx-logo { width: 92vw; top: 42%; }
  .plx-scrim { background: linear-gradient(180deg, rgba(8, 12, 22, .2) 0%, rgba(8, 12, 22, .85) 55%, rgba(8, 12, 22, .95) 100%); }
  .plx-copy { align-items: flex-end; padding-bottom: 4.5rem; }
}
@media (max-width: 560px) {
  .ws-grid { grid-template-columns: 1fr; grid-template-areas: "card" "a" "b" "c" "d"; }
  .consent-visual { min-height: 27rem; }
}
.ws-note:hover .ws-note-inner {
  border-color: rgba(189, 244, 91, .65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(189, 244, 91, .25), 0 0 54px rgba(189, 244, 91, .38), 0 24px 60px rgba(0, 0, 0, .3);
}

/* ---------- Product capabilities: cards light up on hover ---------- */
.feature-card { transition: transform .25s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease; }
.feature-card:hover {
  transform: translateY(-6px); border-color: var(--signal);
  background: linear-gradient(160deg, #fbfff3, #f1fcdc);
  box-shadow: 0 0 0 1px var(--signal), 0 0 42px rgba(189, 244, 91, .7), 0 18px 40px rgba(11, 18, 32, .1);
}
.feature-card:hover .feature-icon { box-shadow: 0 0 22px rgba(189, 244, 91, .95); }
.feature-card--soon:hover {
  border-color: #ffc857; background: linear-gradient(160deg, #fffdf6, #fff1cc);
  box-shadow: 0 0 0 1px #ffc857, 0 0 42px rgba(255, 200, 87, .65), 0 18px 40px rgba(11, 18, 32, .1);
}
.feature-card--soon:hover .feature-icon { box-shadow: 0 0 22px rgba(255, 200, 87, .95); }
.feature-grid--soon, .feature-grid--live { grid-template-columns: repeat(4, 1fr); }
.feature-grid--live .feature-card, .feature-grid--soon .feature-card { padding: 1.35rem; }

/* ---------- How it works: the path draws itself 01 -> 02 -> 03 ---------- */
.steps { position: relative; padding-top: 2.6rem; }
.fx-on .steps:not(.is-in) .step { opacity: .2; transform: translateY(16px); }
.steps .step { position: relative; padding: 1.25rem 0 0; border-top: 0; transition: opacity .4s, transform .4s cubic-bezier(.2, .7, .2, 1); }
.steps-track { position: absolute; top: 1.05rem; left: .75rem; right: calc((100% - 2.5rem) / 3 - .75rem); height: 3px; border-radius: 3px; background: var(--line); }
.steps-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #4fb3ea, var(--accent) 50%, var(--signal)); transform: scaleX(0); transform-origin: left; transition: transform 1.3s cubic-bezier(.55, .05, .35, 1); }
.steps-comet { position: absolute; top: 50%; left: 0; width: 5rem; height: 7px; margin-top: -3.5px; border-radius: 7px; opacity: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); box-shadow: 0 0 14px rgba(255, 255, 255, .9); }
.step-node {
  position: absolute; left: 0; top: calc(-2.3rem + 1.5px); width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 3px solid var(--line); background: var(--white); transition: border-color .2s, background .2s, box-shadow .2s, transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.steps.is-in .steps-fill { transform: scaleX(1); }
.steps.is-in .steps-comet { animation: steps-comet 1.7s linear 1.5s infinite; }
.steps.is-in .step { opacity: 1; transform: none; }
.steps.is-in .step-node { border-color: var(--accent); background: var(--accent); transform: scale(1.15); box-shadow: 0 0 0 .4rem rgba(255, 90, 61, .14), 0 0 20px rgba(255, 90, 61, .55); }
.steps.is-in .step:nth-of-type(2), .steps.is-in .step:nth-of-type(2) .step-node { transition-delay: .65s; }
.steps.is-in .step:nth-of-type(3), .steps.is-in .step:nth-of-type(3) .step-node { transition-delay: 1.3s; }
.steps.is-in .step:nth-of-type(1) .step-node { border-color: #4fb3ea; background: #4fb3ea; box-shadow: 0 0 0 .4rem rgba(79, 179, 234, .18), 0 0 22px rgba(79, 179, 234, .75); }
.steps .step:nth-of-type(1) .step-number { color: #17699b; }
.steps .step:nth-of-type(3) .step-number { color: #3d6b0d; }
.steps.is-in .step:nth-of-type(3) .step-node { border-color: var(--signal); background: var(--signal); box-shadow: 0 0 0 .4rem rgba(189, 244, 91, .2), 0 0 24px rgba(189, 244, 91, .8); }
@keyframes steps-comet { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 5rem); opacity: 0; } }

/* Without the script, show the drawn lines and lit dots as they end up. */
html:not(.fx-on) .ws-note::after, html:not(.fx-on) .steps-fill { transform: none; }
html:not(.fx-on) .ws-note::before { opacity: 1; }

/* ---------- Pricing: price slides on toggle, yearly savings chip, button shine ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; }
.price [data-plan-price] { display: inline-block; background: linear-gradient(120deg, var(--ink) 30%, #3a4a6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price.is-swapping [data-plan-price] { animation: price-in .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes price-in { from { opacity: 0; transform: translateY(.45em); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.save-chip {
  justify-self: start; display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border-radius: 999px;
  color: var(--ink); background: var(--signal); font-size: .74rem; font-weight: 800; box-shadow: 0 8px 22px rgba(189, 244, 91, .45);
  opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.6, .5, 1);
}
.pricing-shell.is-yearly .save-chip { opacity: 1; transform: none; }
.plan-action .button--primary { position: relative; overflow: hidden; }
.plan-action .button--primary::after {
  position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; content: '';
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg);
  animation: btn-shine 3.6s ease-in-out 1s infinite;
}
@keyframes btn-shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

@media (max-width: 1100px) {
  .feature-grid--live { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .feature-grid--soon { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .steps { padding: 0 0 0 2.75rem; }
  .steps-track { top: .9rem; bottom: 2.5rem; left: .7rem; right: auto; width: 3px; height: auto; }
  .steps-fill { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, #4fb3ea, var(--accent) 50%, var(--signal)); }
  .steps.is-in .steps-fill { transform: scaleY(1); }
  .steps-comet { display: none; }
  .steps .step { padding-top: 0; }
  .step-node { left: -2.75rem; top: .15rem; }
}
@media (max-width: 560px) {
  .feature-grid--soon, .feature-grid--live { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-note-inner { opacity: 1; transform: none; }
}
