/* =========================================================
   VARIO24 — sales-guide.css
   Sales onboarding page (/sales-guide). Loads after styles.css
   and reuses its tokens, buttons, language switch, skip link
   and focus styles. Everything here is prefixed sg- or scoped
   to the .stage illustration.
========================================================= */

:root {
  --sg-paper: #F4F7FC;
  --sg-line: #DCE4F2;
  --sg-route: #C3D2EC;
  --sg-ease: cubic-bezier(.65, 0, .25, 1);
  --sg-pop: cubic-bezier(.3, 1.45, .5, 1);
}

.sg { background: #fff; }
.sg [id] { scroll-margin-top: 1.25rem; }
.sg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.sg-h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  text-wrap: balance;
}
.sg-h2--sm { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }

/* ---------- Top bar ---------- */
.sg-top { padding-block: .9rem; }
.sg-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sg-top__logo { display: inline-flex; }
.sg-top__logo img { height: 46px; width: auto; }
.sg-top__actions { display: flex; align-items: center; gap: .6rem; }
.sg-top__careers { min-height: 40px; padding: .45rem 1rem; font-size: .9rem; }
@media (max-width: 420px) {
  .sg-top__logo img { height: 36px; }
  .sg-top__actions { gap: .4rem; }
  .sg-top__careers { padding-inline: .8rem; }
  .sg-top .site-switch__opt { padding: .42rem .62rem; }
}

/* ---------- Opening ---------- */
.sg-hero { padding-top: clamp(2rem, 6vw, 5rem); }
/* Two lines as a staircase: "You sell." ends where "We prepare." ends */
.sg-hero__title {
  display: inline-grid;
  margin: 0;
  font-size: clamp(2.5rem, 10vw, 6.9rem);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .95;
}
/* German and Bulgarian lines are ~1.5× longer than "We prepare." — smaller
   so the headline keeps to about 60% of the row and leaves room for the lead */
.sg-hero__title:lang(de),
.sg-hero__title:lang(bg) { font-size: clamp(2.3rem, 6.6vw, 5.3rem); }
.sg-hero__line { display: block; }
.sg-hero__line--you { justify-self: end; padding-left: .6em; }
.sg-hero__aside { margin-top: clamp(1.4rem, 3vw, 2.2rem); }
.sg-hero__lead {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.sg-hero__lead span { display: block; }
@media (min-width: 900px) {
  /* The lead sits beside the headline, on the line of "You sell." */
  .sg-hero__grid {
    display: grid;
    grid-template-columns: auto minmax(17rem, 1fr);
    align-items: end;
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  .sg-hero__aside { margin: 0 0 .6rem; }
}
.sg-hero__planb {
  display: inline-block;
  margin-top: 1rem;
  color: var(--blue);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .25em;
}
.sg-hero__planb:hover { text-decoration-thickness: 2.5px; }

.sg-town {
  display: block;
  width: 100%;
  min-height: 96px;
  aspect-ratio: 1200 / 160;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}
.sg-town__reveal { transform-box: fill-box; transform-origin: 0 0; animation: sg-reveal 1.5s var(--sg-ease) .35s both; }
.sg-town__pin { transform-box: fill-box; transform-origin: 50% 100%; animation: sg-drop .5s var(--sg-pop) 1.7s both; }
@keyframes sg-reveal { from { transform: scaleX(0); } to { transform: none; } }
@keyframes sg-drop { from { opacity: 0; transform: translateY(-10px) scale(.6); } to { opacity: 1; transform: none; } }

/* ---------- What you get from us ---------- */
.sg-kit { padding-block: clamp(2rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem); }
.sg-kit__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 800px) {
  .sg-kit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sg-kit__art {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 1.25rem;
  padding: clamp(.6rem, 2vw, 1.1rem);
  border-radius: 22px;
  background: var(--sg-paper);
}
.sg-kit__title { margin: 0 0 .5rem; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.025em; }
.sg-kit__text { margin: 0 0 1rem; max-width: 40ch; color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.6; }
/* The way out when the file won't open */
.sg-kit__hint {
  margin: 0 0 1.1rem;
  max-width: 44ch;
  padding: .7rem .95rem;
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: #EEF4FF;
  color: var(--navy);
  font-size: .97rem;
  line-height: 1.5;
}

/* ---------- What we sell ---------- */
.sg-offer { background: var(--sg-paper); padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem); }
.sg-offer__grid { display: grid; gap: clamp(1.75rem, 4vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .sg-offer__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
.sg-offer__visual { position: relative; margin: 0; }
.sg-offer__svg { display: block; width: 100%; height: auto; }
.sg-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  padding: .3rem .75rem;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.sg-tag--end { transform: translate(-100%, -50%); }
@media (max-width: 480px) { .sg-tag { font-size: .75rem; padding: .25rem .6rem; } }

.sg-offer__main {
  margin: 1rem 0 1.5rem;
  max-width: 34ch;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.45;
  color: var(--navy);
}
.sg-offer__list { display: grid; gap: .65rem; margin: 0 0 1.4rem; }
.sg-offer__list li { position: relative; padding-left: 1.6rem; font-weight: 600; line-height: 1.5; }
/* The square "pixel" from the VARIO24 logo */
.sg-offer__list li::before {
  content: "";
  position: absolute;
  left: .1rem;
  top: .48em;
  width: .6rem;
  height: .6rem;
  border-radius: 2px;
  background: var(--blue);
}
.sg-offer__small { margin: 0 0 1.3rem; color: var(--muted); font-size: .95rem; }

/* Price card: what the business pays, and a clear "you pay nothing" */
.sg-price {
  max-width: 32rem;
  margin: 0 0 1.4rem;
  overflow: hidden;
  border: 1px solid var(--sg-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.sg-price__body { padding: 1.1rem 1.3rem 1.2rem; }
.sg-price__label { margin: 0 0 .55rem; color: var(--muted); font-size: .92rem; font-weight: 700; }
/* two rows: amount | what it covers */
.sg-price__list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: .45rem 1.1rem;
  margin: 0;
}
.sg-price__list dd { margin: 0; }
@media (max-width: 480px) {
  /* narrow phones: each note under its amount (long German words) */
  .sg-price__list { grid-template-columns: 1fr; row-gap: 0; }
  .sg-price__list dd { margin-bottom: .6rem; }
  .sg-price__list dd:last-child { margin-bottom: 0; }
}
.sg-price__amount {
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sg-price__amount small { font-size: .5em; font-weight: 700; letter-spacing: 0; color: var(--ink-soft); }
.sg-price__note { color: var(--ink-soft); font-size: .92rem; line-height: 1.4; }
.sg-price__plus { color: var(--muted); font-weight: 700; }
.sg-price__you {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .9rem 1.3rem;
  border-top: 1px solid #D6E4FF;
  background: #EEF4FF;
  color: var(--blue);
}
.sg-price__you svg { flex: none; width: 24px; height: 24px; margin-top: .1rem; }
.sg-price__you p { margin: 0; color: var(--navy); line-height: 1.5; }
.sg-price__you strong { font-size: 1.05rem; }
.sg-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .25em;
}
.sg-link svg { width: 16px; height: 16px; flex: none; }
.sg-link:hover { text-decoration-thickness: 2.5px; }

/* ---------- The visit ---------- */
.sg-process { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem); }
.sg-process:focus { outline: none; }
.sg-journey { display: grid; margin-top: clamp(1rem, 3vw, 2rem); }

/* Route nav: one dot per step, filled up to the step you are on */
.rail ol {
  --progress: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rail ol::before,
.rail ol::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
}
.rail ol::before { right: 18px; border-top: 3px dotted var(--sg-route); transform: translateY(-50%); }
.rail ol::after {
  width: calc((100% - 36px) * var(--progress));
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--blue);
  transition: width .6s var(--sg-ease);
}
.rail a {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--sg-route);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  transition: background .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.rail a:hover { border-color: var(--blue); color: var(--blue); }
.rail a.is-done { border-color: var(--blue); color: var(--blue); }
.rail a[aria-current="step"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, .16);
}
.rail a:focus-visible { outline-offset: 3px; border-radius: 50%; }
.rail__caption {
  min-height: 1.5em;
  margin: .85rem 0 0;
  text-align: center;
  font-weight: 650;
  color: var(--navy);
}

/* Steps, strung on a dotted route that ends at the note */
.sg-steps {
  --num: 2.75rem;
  --num-y: 2.25rem;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sg-steps::before {
  content: "";
  position: absolute;
  left: calc(var(--num) / 2 - 1.5px);
  top: calc(var(--num-y) + var(--num) / 2);
  bottom: 0;
  border-left: 3px dotted var(--sg-route);
}
.sg-step { position: relative; padding: var(--num-y) 0 1rem calc(var(--num) + 1.4rem); }
.sg-step:focus { outline: none; }
.sg-step__num {
  position: absolute;
  left: 0;
  top: var(--num-y);
  display: grid;
  place-items: center;
  width: var(--num);
  height: var(--num);
  border: 2px solid var(--sg-route);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: background .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.sg-step.is-active .sg-step__num {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, .14);
}
.sg-step__title {
  margin: .3rem 0 .75rem;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
  letter-spacing: -.03em;
  line-height: 1.15;
  text-wrap: balance;
}
.sg-step__body {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* End of the route: the reward card, then the note */
.sg-finish {
  --num: 2.75rem;
  --indent: calc(var(--num) + 1.4rem);
  padding-top: 2.4rem;
}
.sg-win {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 30rem;
  margin-left: var(--indent);
  padding: 1.1rem 1.5rem 1.1rem 1.1rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #1D4ED8, #3B82F6);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(37, 99, 235, .6);
}
/* the dotted route runs down from the last step to a gold finish marker */
.sg-win::before,
.sg-win::after {
  content: "";
  position: absolute;
  left: calc(var(--indent) * -1 + var(--num) / 2);
}
.sg-win::before {
  top: -2.4rem;
  height: calc(50% + 2.4rem);
  margin-left: -1.5px;
  border-left: 3px dotted var(--sg-route);
}
.sg-win::after {
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 4px;
  background: #FBBF24;
}
.sg-win__badge { position: relative; flex: none; width: 84px; height: 84px; }
.sg-win__coin {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #FBBF24;
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 5px #FDE68A, 0 8px 18px rgba(15, 23, 42, .25);
}
/* the square "pixels" from the logo, burst around the coin */
.sg-win__pixel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 2px;
  background: #fff;
  transform: translate(var(--dx), var(--dy)) rotate(var(--r));
}
.sg-win__pixel:nth-child(2) { --dx: -48px; --dy: -28px; --r: 12deg; }
.sg-win__pixel:nth-child(3) { --dx: -4px;  --dy: -45px; --r: -8deg; background: #FDE68A; width: 7px; height: 7px; }
.sg-win__pixel:nth-child(4) { --dx: 38px;  --dy: -36px; --r: 20deg; background: #BFDBFE; }
.sg-win__pixel:nth-child(5) { --dx: 50px;  --dy: 22px;  --r: -14deg; background: #FDE68A; }
.sg-win__pixel:nth-child(6) { --dx: -48px; --dy: 26px;  --r: 6deg; background: #BFDBFE; width: 7px; height: 7px; }
.sg-win__pixel:nth-child(7) { --dx: 6px;   --dy: 45px;  --r: 30deg; }
.sg-win__title { margin: 0 0 .2rem; color: #fff; font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.sg-win__text { margin: 0; color: rgba(255, 255, 255, .92); font-size: 1.05rem; }

.sg-win .sg-win__coin { animation: sg-pop .5s var(--sg-pop) .1s both; }
.sg-win .sg-win__pixel { animation: sg-burst .7s var(--sg-pop) .35s both; }
.sg-win .sg-win__pixel:nth-child(odd) { animation-delay: .45s; }
.sg-win:not([data-play]) * { animation-play-state: paused !important; }
@keyframes sg-burst { from { opacity: 0; transform: translate(0, 0) scale(.2); } }

.sg-note {
  margin: 1.1rem 0 0 var(--indent);
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: .97rem;
}

@media (min-width: 960px) {
  .sg-journey {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }
  .sg-steps { grid-column: 1; grid-row: 1; --num-y: 16vh; }
  .sg-finish { grid-column: 1; grid-row: 2; }
  .sg-journey__aside { grid-column: 2; grid-row: 1 / span 2; }
  .sg-journey__sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    height: 100svh;
  }
  .sg-journey__aside .stage,
  .rail {
    width: min(100%, calc(100vh - 170px));
    width: min(100%, calc(100svh - 170px));
    margin-inline: auto;
  }
  .rail { margin-top: 1.2rem; }
  .sg-step { min-height: 74vh; }
  .sg-step:last-child { min-height: 62vh; }
  .sg-step__visual { display: none; }
}

@media (max-width: 959.98px) {
  /* Phones: the route nav sticks to the top, the stage repeats per step */
  .sg-journey__aside {
    position: sticky;
    top: 0;
    z-index: 10;
    margin-inline: calc(var(--gutter) * -1);
    padding: .55rem var(--gutter);
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sg-line);
  }
  .sg-journey__aside .stage,
  .rail__caption { display: none; }
  .rail { max-width: 420px; margin-inline: auto; }
  .sg-steps { --num: 2.5rem; }
  .sg .sg-step { scroll-margin-top: 4.5rem; } /* clear the sticky route nav */
  .sg-step { padding-bottom: 1.5rem; padding-left: calc(var(--num) + 1rem); }
  .sg-finish { --num: 2.5rem; --indent: calc(var(--num) + 1rem); }
  .sg-win { gap: 1rem; padding: 1rem 1.1rem 1rem 1rem; }
  .sg-win__badge { width: 72px; height: 72px; }
  .sg-win__coin { font-size: 1.05rem; }
  .sg-step__visual { margin: 1.4rem 0 0 calc((var(--num) + 1rem) * -1); }
  .sg-step__visual .stage { max-width: 520px; }
}

/* ---------- If the visit doesn't work out ---------- */
.sg-fallback { background: var(--sg-paper); padding-block: clamp(3rem, 6vw, 4.5rem); }
.sg-fallback__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: start;
  gap: 1rem;
  margin-top: 1.6rem;
}
.fb {
  border: 1px solid var(--sg-line);
  border-radius: 20px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.fb:hover, .fb[open] { border-color: #C7D6F0; box-shadow: var(--shadow-sm); }
.fb summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  cursor: pointer;
  list-style: none;
}
.fb summary::-webkit-details-marker { display: none; }
.fb summary:focus-visible { outline-offset: -3px; border-radius: 20px; }
.fb__art { width: 48px; height: 48px; }
.fb__title { color: var(--navy); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.fb__toggle {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #EEF3FC;
}
.fb__toggle::before,
.fb__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--blue);
  transition: transform .3s var(--sg-ease);
}
.fb__toggle::after { transform: rotate(90deg); }
.fb[open] .fb__toggle::after { transform: rotate(0deg); }
.fb__body {
  margin: 0;
  padding: 0 1.1rem 1.2rem calc(1.1rem + 48px + 1rem);
  color: var(--ink-soft);
  line-height: 1.6;
}
@media (max-width: 480px) {
  .fb__body { padding-left: 1.1rem; }
}
/* Smooth open/close where the browser supports it */
@supports (interpolate-size: allow-keywords) {
  .fb { interpolate-size: allow-keywords; }
  .fb::details-content {
    height: 0;
    overflow: clip;
    transition: height .35s var(--sg-ease), content-visibility .35s allow-discrete;
  }
  .fb[open]::details-content { height: auto; }
}

/* ---------- Closing reminder ---------- */
.sg-closing { background: var(--navy); color: #fff; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.sg-closing__text {
  position: relative;
  margin: 0;
  max-width: 24ch;
  padding-top: 2.2rem;
  font-size: clamp(1.75rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-wrap: balance;
}
.sg-closing__text::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--blue-bright);
}

/* ---------- Join: to the careers page ---------- */
.sg-join { background: linear-gradient(135deg, #1D4ED8, #3B82F6); color: #fff; padding-block: clamp(2.5rem, 6vw, 3.75rem); }
.sg-join__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.sg-join__title { margin: 0; color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
.sg-join__note { margin: .5rem 0 0; color: rgba(255, 255, 255, .85); font-size: .97rem; }
.sg-join__note:empty { display: none; }
.sg-join__btn { background: #fff; color: var(--blue); box-shadow: 0 12px 28px -10px rgba(15, 23, 42, .45); }
.sg-join__btn:hover { transform: translateY(-2px); color: var(--blue); }
.sg-join__btn:focus-visible { outline-color: #fff; }
@media (max-width: 480px) { .sg-join__btn { width: 100%; white-space: normal; } }

/* ---------- Footer ---------- */
.sg-foot {
  padding-block: 2rem 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: var(--navy);
  color: rgba(255, 255, 255, .7);
  font-size: .92rem;
}
.sg-foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.sg-foot__logo { display: inline-flex; padding: .4rem .65rem; border-radius: 12px; background: #fff; }
.sg-foot__logo img { height: 32px; width: auto; }
.sg-foot__links { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-left: auto; }
.sg-foot__links a { color: rgba(255, 255, 255, .82); text-decoration: underline; text-underline-offset: .2em; }
.sg-foot__links a:hover { color: #fff; }
.sg-foot :focus-visible { outline-color: #93C5FD; }

/* =========================================================
   STAGE — one street, five scenes
   data-scene="1…5" moves the camera (.cam) and the people;
   .fg-N holds the close-up for scene N. Base styles are the
   finished picture of each scene; the keyframes act it out
   once the stage has data-play (set when it scrolls into
   view) and are dropped entirely for reduced motion.
========================================================= */
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 28px;
  background: #EEF3FC;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 28px 60px -26px rgba(15, 23, 42, .4);
}
.stage__svg { display: block; width: 100%; height: 100%; font-family: var(--font); }
.stage:not([data-play]) * { animation-play-state: paused !important; }

/* Camera and people */
.stage .cam,
.stage .sp,
.stage .emp,
.stage .mgr,
.stage .arm { transition: transform 1.1s var(--sg-ease); }

.stage .cam { transform: translate(-75px, 77.5px) scale(.75); }
.stage[data-scene="2"] .cam { transform: translate(-277.8px, -35.5px) scale(1.1111); }
.stage[data-scene="3"] .cam { transform: translate(-471.4px, -34.3px) scale(1.4286); }
.stage[data-scene="4"] .cam { transform: translate(-940px, -460px) scale(2); }
.stage[data-scene="5"] .cam { transform: translate(-141.8px, 207.3px) scale(.5455); }

.stage .sp { transform: translate(230px, 500px); }
.stage[data-scene="2"] .sp { transform: translate(380px, 500px); }
.stage[data-scene="3"] .sp { transform: translate(520px, 500px); }
.stage[data-scene="4"] .sp { transform: translate(565px, 500px); }
.stage[data-scene="5"] .sp { transform: translate(560px, 500px); }
.stage .emp { transform: translate(470px, 500px); }
.stage[data-scene="3"] .emp { transform: translate(420px, 500px); }
.stage[data-scene="4"] .emp { transform: translate(430px, 500px); }
.stage .mgr { transform: translate(660px, 500px); }
.stage[data-scene="4"] .mgr { transform: translate(690px, 500px); }

.stage .sp-arm-r { transform: rotate(-40deg); }
.stage[data-scene="2"] .sp-arm-r { transform: rotate(-150deg); }
.stage[data-scene="3"] .sp-arm-r { transform: rotate(-70deg); }
.stage[data-scene="4"] .sp-arm-r { transform: rotate(-80deg); }
.stage[data-scene="2"] .emp-arm-r { transform: rotate(-100deg); }
.stage[data-scene="4"] .mgr-arm-l { transform: rotate(80deg); }
.stage .sp-phone,
.stage .sp-tablet { transition: opacity .4s ease; }
.stage .sp-tablet { opacity: 0; }
.stage[data-scene="3"] .sp-tablet { opacity: 1; }
.stage[data-scene="2"] .sp-phone,
.stage[data-scene="3"] .sp-phone,
.stage[data-scene="4"] .sp-phone { opacity: 0; }

.stage .veil { opacity: 0; transition: opacity .8s ease; }
.stage[data-scene="1"] .veil { opacity: .3; }
.stage[data-scene="3"] .veil { opacity: .6; }
.stage .mgr-focus,
.stage .studio-glow { opacity: 0; transition: opacity .6s ease; }
.stage[data-scene="2"] .mgr-focus { opacity: 1; }
.stage[data-scene="5"] .studio-glow { opacity: .45; }

/* Close-ups */
.stage .fg { opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s; }
.stage[data-scene="1"] .fg-1,
.stage[data-scene="2"] .fg-2,
.stage[data-scene="3"] .fg-3,
.stage[data-scene="4"] .fg-4,
.stage[data-scene="5"] .fg-5 { opacity: 1; visibility: visible; transition: opacity .6s ease .3s, visibility 0s; }

.stage .s1-thumb,
.stage .s1-tap,
.stage .s2-ask,
.stage .s2-badge,
.stage .s3-tablet,
.stage .s3-check,
.stage .s4-b1,
.stage .s4-b2,
.stage .s4-order,
.stage .s4-stamp,
.stage .s5-tracker,
.stage .s5-sold,
.stage .s5-earn { transform-box: fill-box; transform-origin: 50% 50%; }
.stage .s2-ask { transform-origin: 0 100%; }

.stage .s1-list,
.stage .s1-tap,
.stage .s4-b1,
.stage .s4-b2 { opacity: 0; }
.stage .s2-point,
.stage .s3-ring,
.stage .s3-scribble { stroke-dasharray: 1; stroke-dashoffset: 0; }
.stage .s3-a { transform: translate(158px, 240px); }
.stage .s3-b { transform: translate(300px, 240px); }
.stage .s3-c { transform: translate(442px, 240px); }
.stage .s5-c1 { transform: translate(323px, 226px) scale(1); }
.stage .s5-c2 { transform: translate(399px, 223px) scale(1); }
.stage .s5-c3 { transform: translate(453px, 260px) scale(.9); }

/* 1 · tap the lead, the designs open */
.stage[data-scene="1"] .s1-ring { animation: sg-fade .3s ease .55s both; }
.stage[data-scene="1"] .s1-tap { animation: sg-tap .7s ease-out .8s both; }
.stage[data-scene="1"] .s1-list { animation: sg-out-left .45s var(--sg-ease) 1.15s both; }
.stage[data-scene="1"] .s1-detail { animation: sg-in-right .5s var(--sg-ease) 1.3s both; }
.stage[data-scene="1"] .s1-thumb-a { animation: sg-rise .45s var(--sg-ease) 1.6s both; }
.stage[data-scene="1"] .s1-thumb-b { animation: sg-rise .45s var(--sg-ease) 1.72s both; }
.stage[data-scene="1"] .s1-thumb-c { animation: sg-rise .45s var(--sg-ease) 1.84s both; }

/* 2 · walk in, ask, get pointed to the person in charge */
.stage[data-scene="2"] .sp-bob,
.stage[data-scene="3"] .sp-bob,
.stage[data-scene="4"] .sp-bob { animation: sg-bob .28s ease-in-out 4; }
.stage[data-scene="2"] .s2-ask { animation: sg-pop .4s var(--sg-pop) 1s both; }
.stage[data-scene="2"] .sp-wave { animation: sg-wave .3s ease-in-out 1.1s 4 alternate; }
.stage[data-scene="2"] .emp-arm-r { animation: sg-point .5s var(--sg-ease) 1.5s both; }
.stage[data-scene="2"] .s2-point { animation: sg-draw .55s ease 1.9s both; }
.stage[data-scene="2"] .s2-arrowhead { animation: sg-fade .2s ease 2.4s both; }
.stage[data-scene="2"] .mgr-focus { animation: sg-fade .5s ease 2.3s both; }
.stage[data-scene="2"] .s2-badge { animation: sg-pop .4s var(--sg-pop) 2.5s both; }

/* 3 · the tablet comes up, three designs appear, the customer picks one */
.stage[data-scene="3"] .s3-tablet { animation: sg-rise .5s var(--sg-ease) .3s both; }
.stage[data-scene="3"] .s3-a { animation: sg-card-a .5s var(--sg-ease) .7s both; }
.stage[data-scene="3"] .s3-b { animation: sg-card-b .5s var(--sg-ease) .82s both; }
.stage[data-scene="3"] .s3-c { animation: sg-card-c .5s var(--sg-ease) .94s both; }
.stage[data-scene="3"] .s3-ring { animation: sg-draw .6s ease 1.45s both; }
.stage[data-scene="3"] .s3-check { animation: sg-pop .35s var(--sg-pop) 1.95s both; }
.stage[data-scene="3"] .s3-pencil { animation: sg-fade .3s ease 2.2s both; }
.stage[data-scene="3"] .s3-scribble { animation: sg-draw .7s ease 2.35s both; }

/* 4 · the conversation turns into a confirmed order */
.stage[data-scene="4"] .s4-b1 { animation: sg-bubble-1 2s var(--sg-ease) .3s both; }
.stage[data-scene="4"] .s4-b2 { animation: sg-bubble-2 1.7s var(--sg-ease) .6s both; }
.stage[data-scene="4"] .s4-order { animation: sg-rise .5s var(--sg-ease) 2.05s both; }
.stage[data-scene="4"] .s4-stamp { animation: sg-stamp .45s var(--sg-pop) 2.5s both; }

/* 5 · mark it sold, send the details to our team */
.stage[data-scene="5"] .s5-tracker { animation: sg-rise .45s var(--sg-ease) .5s both; }
.stage[data-scene="5"] .s5-sold { animation: sg-pop .35s var(--sg-pop) 1s both; }
.stage[data-scene="5"] .s5-arc { animation: sg-fade .5s ease 1.3s both; }
.stage[data-scene="5"] .s5-c1 { animation: sg-send-1 1s var(--sg-ease) 1.45s both; }
.stage[data-scene="5"] .s5-c2 { animation: sg-send-2 1s var(--sg-ease) 1.65s both; }
.stage[data-scene="5"] .s5-c3 { animation: sg-send-3 1s var(--sg-ease) 1.85s both; }
.stage[data-scene="5"] .studio-glow { animation: sg-glow .6s ease 2.7s both; }
.stage[data-scene="5"] .s5-earn { animation: sg-pop .45s var(--sg-pop) 2.95s both; }

@keyframes sg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sg-glow { from { opacity: 0; } to { opacity: .45; } }
@keyframes sg-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes sg-rise { from { opacity: 0; transform: translateY(12px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sg-stamp { from { opacity: 0; transform: scale(1.8); } to { opacity: 1; transform: none; } }
@keyframes sg-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sg-tap {
  0% { opacity: 0; transform: scale(.3); }
  30% { opacity: .35; }
  100% { opacity: 0; transform: scale(1.6); }
}
@keyframes sg-out-left { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(-24px); } }
@keyframes sg-in-right { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes sg-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
@keyframes sg-wave { from { transform: rotate(0deg); } to { transform: rotate(16deg); } }
@keyframes sg-point { from { transform: rotate(0deg); } to { transform: rotate(-100deg); } }
@keyframes sg-card-a { from { opacity: 0; transform: translate(158px, 258px); } to { opacity: 1; transform: translate(158px, 240px); } }
@keyframes sg-card-b { from { opacity: 0; transform: translate(300px, 258px); } to { opacity: 1; transform: translate(300px, 240px); } }
@keyframes sg-card-c { from { opacity: 0; transform: translate(442px, 258px); } to { opacity: 1; transform: translate(442px, 240px); } }
@keyframes sg-bubble-1 {
  0% { opacity: 0; transform: translateY(12px) scale(.9); }
  18%, 70% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate(70px, -30px) scale(.6); }
}
@keyframes sg-bubble-2 {
  0% { opacity: 0; transform: translateY(12px) scale(.9); }
  20%, 68% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translate(-80px, -50px) scale(.6); }
}
@keyframes sg-send-1 {
  0% { opacity: 0; transform: translate(196px, 428px) scale(.4); }
  15% { opacity: 1; }
  45% { transform: translate(242px, 292px) scale(.85); }
  100% { opacity: 1; transform: translate(323px, 226px) scale(1); }
}
@keyframes sg-send-2 {
  0% { opacity: 0; transform: translate(196px, 428px) scale(.4); }
  15% { opacity: 1; }
  45% { transform: translate(242px, 292px) scale(.85); }
  100% { opacity: 1; transform: translate(399px, 223px) scale(1); }
}
@keyframes sg-send-3 {
  0% { opacity: 0; transform: translate(196px, 428px) scale(.4); }
  15% { opacity: 1; }
  45% { transform: translate(242px, 292px) scale(.85); }
  100% { opacity: 1; transform: translate(453px, 260px) scale(.9); }
}

/* ---------- Reduced motion: every scene shows its finished picture ---------- */
@media (prefers-reduced-motion: reduce) {
  .stage,
  .stage *,
  .sg-town *,
  .sg-win * { animation: none !important; transition: none !important; }
  .rail ol::after,
  .fb::details-content { transition: none !important; }
}
