/* ================= customer journey, v10: story tabs over one stage =================
   four tabs across the top, each with a thin bar that fills while its stage
   plays (like stories); below, the stage: copy left, the customer's phone
   right. Compact enough to sit in one screen. */
.jt-sec { padding-top: 80px; padding-bottom: 70px; }
.jt { position: relative; padding: 14px 14px 0; border-radius: 30px; background: linear-gradient(180deg, #f6f4fb 0%, #f1eef8 100%); box-shadow: inset 0 0 0 1px rgba(16, 16, 17, 0.04); overflow: hidden; }
.jt__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.jt__tab { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 14px 16px 14px; border: 0; border-radius: 18px; background: transparent; font-family: inherit; text-align: left; cursor: pointer; transition: background 0.35s ease, box-shadow 0.35s ease; }
.jt__tab:hover { background: rgba(255, 255, 255, 0.55); }
.jt__tab.is-on { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -22px rgba(60, 30, 140, 0.45); }
.jt__tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.jt__seg { display: block; width: 100%; height: 3px; margin-bottom: 10px; border-radius: 3px; background: rgba(16, 16, 17, 0.1); overflow: hidden; }
.jt__seg i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #a585ff, #7d40ff); transform: scaleX(var(--sp, 0)); transform-origin: left; }
.jt__tab.is-past .jt__seg i { --sp: 1; background: rgba(16, 16, 17, 0.28); }
.jt__tab b { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-2); white-space: nowrap; }
.jt__tab b span { font-family: var(--display); font-size: 12px; font-weight: 700; color: var(--ink-3); }
.jt__tab.is-on b { color: var(--ink); }
.jt__tab.is-on b span { color: var(--brand); }
.jt__tab em { font-style: normal; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.jt__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 330px); align-items: center; gap: clamp(28px, 4vw, 64px); padding: clamp(28px, 3.4vw, 44px) clamp(22px, 3.6vw, 52px) 0; }
.jt__copy { display: grid; align-self: center; padding-bottom: 36px; }
.jt__txt { grid-area: 1 / 1; align-self: center; visibility: hidden; opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.55s var(--ease), visibility 0s linear 0.4s; }
.jt__txt.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity 0.4s ease 0.08s, transform 0.55s var(--ease) 0.08s; }
.jt__when { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.jt__when span { padding: 3px 8px; border-radius: 8px; background: #efe9ff; letter-spacing: 0.02em; font-family: var(--display); }
.jt__txt h3 { margin-top: 16px; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.06; font-weight: 700; letter-spacing: -0.04em; }
.jt__lead { margin-top: 14px; max-width: 32ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }
.jt__p { margin-top: 10px; max-width: 46ch; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.jt__note { display: inline-flex; margin-top: 16px; padding: 5px 11px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #e3d8ff; color: #5b2fd6; font-size: 12.5px; font-weight: 600; }

/* the phone stands on the panel's floor, cut by its bottom edge */
.jt__dev { display: flex; justify-content: center; align-self: end; }
.jt__phone { width: min(270px, 100%); height: 410px; border-radius: 38px 38px 0 0; padding: 8px 8px 0; box-shadow: 0 30px 60px -30px rgba(40, 20, 100, 0.5); }
.jt__phone .pq__bar { border-radius: 30px 30px 0 0; }
.jt__screens { display: grid; height: calc(100% - 26px); overflow: hidden; background: #fff; }
.jt__scr { grid-area: 1 / 1; height: 100%; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.5s var(--ease); }
.jt__scr.is-on { opacity: 1; transform: none; }
.jt__phone .pq__scr { font-size: 12px; padding: 10px 13px 0; }

@media (max-width: 900px) {
  .jt__tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .jt__tab { padding: 10px 8px; }
  .jt__tab em { display: none; }
  .jt__tab b { font-size: 13px; }
  .jt__stage { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 22px 12px 0; }
  .jt__copy { padding-bottom: 0; }
}
@media (max-width: 600px) {
  .jt-sec { padding-top: 52px; padding-bottom: 44px; }
  .jt { border-radius: 24px; padding: 8px 8px 0; }
  .jt__tab b { flex-direction: column; align-items: flex-start; gap: 2px; font-size: 12px; white-space: normal; line-height: 1.2; }
  .jt__phone { height: 380px; }
}
@media (prefers-reduced-motion: reduce) { .jt__txt, .jt__scr { transition: none; } }
/* stage: copy and phone sit together in the middle, no dead band between them */
.jt__stage { grid-template-columns: minmax(0, 560px) minmax(0, 300px); justify-content: center; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 900px) { .jt__stage { grid-template-columns: minmax(0, 1fr); justify-content: stretch; } }

/* ================= customer journey, v12: a proper two-part stage =================
   left: the stage copy on the same line as the tabs, with prev/next at its
   foot; right: a tinted stage that takes each page's colour, a dot grid and a
   soft glow, with the phone standing on its floor */
.jt { padding: 12px; border-radius: 32px; background: #f4f3f8; box-shadow: inset 0 0 0 1px rgba(16, 16, 17, 0.05); }
.jt__tabs { gap: 6px; }
.jt__tab { padding: 14px 18px 16px; }
.jt__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); justify-content: stretch; align-items: stretch; gap: 12px; margin-top: 12px; padding: 0; }
.jt__left { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 3.4vw, 48px) clamp(22px, 3vw, 40px) clamp(22px, 2.6vw, 32px); border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(16, 16, 17, 0.05); }
.jt__copy { padding-bottom: 0; align-self: stretch; }
.jt__txt { align-self: start; }
.jt__txt h3 { margin-top: 18px; font-size: clamp(30px, 3vw, 44px); }
.jt__nav { display: flex; align-items: center; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.jt__arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--ink); cursor: pointer; transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease); }
.jt__arrow svg { width: 18px; height: 18px; }
.jt__arrow:hover { background: #e9e8ef; }
.jt__arrow--next { background: #101011; color: #fff; }
.jt__arrow--next:hover { background: #2b2b2c; }
.jt__arrow:active { transform: scale(0.94); }
.jt__arrow:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.jt__next { margin-left: 8px; font-size: 14px; color: var(--ink-3); } .jt__next b { font-weight: 600; color: var(--ink); }

.jt__dev { position: relative; align-self: stretch; align-items: flex-end; min-height: 500px; padding-top: 44px; border-radius: 24px; overflow: hidden; background-color: #dfe8ff; transition: background-color 0.6s ease; }
.jt__dev::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(16, 16, 17, 0.09) 1px, transparent 1.2px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); pointer-events: none; }
.jt__dev::after { content: ""; position: absolute; left: 50%; top: 52%; width: 440px; height: 440px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)); pointer-events: none; }
.jt[data-stage="1"] .jt__dev { background-color: #ffeccb; }
.jt[data-stage="2"] .jt__dev { background-color: #d9f3e3; }
.jt[data-stage="3"] .jt__dev { background-color: #e3d9ff; }
.jt__phone { position: relative; z-index: 1; width: min(290px, 78%); height: 456px; box-shadow: 0 40px 70px -36px rgba(30, 20, 80, 0.55); }
.jt__phone .pq__scr { font-size: 12.5px; padding: 12px 14px 0; }

@media (max-width: 900px) {
  .jt__stage { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .jt__left { gap: 20px; }
  .jt__dev { min-height: 0; padding-top: 30px; }
  .jt__phone { height: 400px; width: min(270px, 80%); }
}
@media (max-width: 600px) {
  .jt { padding: 8px; border-radius: 26px; }
  .jt__left { padding: 24px 20px 20px; border-radius: 20px; }
  .jt__dev { border-radius: 20px; }
  .jt__next { font-size: 13px; }
}
.jt-sec { padding-bottom: 42px; }
@media (max-width: 600px) { .jt-sec { padding-bottom: 36px; } }

/* ---------- tabs over the stage cards ---------- */
.jt__cards { display: grid; margin-top: 12px; }
.jt .mc__card { position: relative; top: auto; grid-area: 1 / 1; height: 540px; min-height: 0; visibility: hidden; opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease, transform 0.6s var(--ease), visibility 0s linear 0.45s; box-shadow: none; }
.jt .mc__card.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity 0.45s ease, transform 0.6s var(--ease); }
.jt .mc__card--flip .mc__text { order: 0; }
@media (max-width: 900px) {
  .jt .mc__card { height: auto; }
  .jt .mc__card:not(.is-on) { display: none; }
}

/* ---------- stage art, after the makro cards: a full photographic ground,
   four blurred UI cards drifting at the corners, the crisp cards layered in
   front and rising in when their stage opens ---------- */
.jt .mc__card, .jt .mc__card--t1, .jt .mc__card--t2, .jt .mc__card--t3 {
  background:
    radial-gradient(55% 45% at 12% 100%, rgba(52, 64, 92, 0.95), rgba(52, 64, 92, 0) 72%),
    radial-gradient(50% 42% at 62% 104%, rgba(214, 176, 150, 0.95), rgba(214, 176, 150, 0) 72%),
    radial-gradient(48% 48% at 100% 78%, rgba(120, 92, 168, 0.85), rgba(120, 92, 168, 0) 70%),
    radial-gradient(60% 50% at 50% 0%, rgba(232, 228, 242, 0.95), rgba(232, 228, 242, 0) 70%),
    linear-gradient(180deg, #d7d4e3 0%, #c4bcd8 38%, #ab9cc0 66%, #8c7a96 100%);
}
.jt .mc__ghost { display: none; }
.jt .mc__art { overflow: hidden; }
.mg { position: absolute; z-index: 0; width: 190px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.5); filter: blur(4px); opacity: 0.75; pointer-events: none; font-size: 12px; }
.mg b { display: block; font-size: 14px; font-weight: 500; color: rgba(36, 36, 38, 0.75); }
.mg em { display: block; margin-top: 2px; font-style: normal; color: rgba(36, 36, 38, 0.5); }
.mg p { margin-top: 18px; font-family: var(--display); font-size: 26px; letter-spacing: -0.04em; color: rgba(36, 36, 38, 0.55); }
.mg--1 { left: -30px; top: 6%; transform: rotate(-9deg); }
.mg--2 { right: -24px; top: 4%; transform: rotate(8deg); filter: blur(6px); }
.mg--3 { left: 8%; bottom: -34px; transform: rotate(6deg); filter: blur(5px); }
.mg--4 { right: 4%; bottom: -46px; transform: rotate(-12deg); filter: blur(7px); opacity: 0.6; }
@media (prefers-reduced-motion: no-preference) {
  .jt .mc__card.is-on .mg { animation: mg-drift 9s ease-in-out infinite alternate; }
  .jt .mc__card.is-on .mg--2 { animation-duration: 11s; animation-delay: -3s; }
  .jt .mc__card.is-on .mg--3 { animation-duration: 10s; animation-delay: -6s; }
  .jt .mc__card.is-on .mg--4 { animation-duration: 12s; animation-delay: -2s; }
  @keyframes mg-drift { to { translate: 14px -12px; } }
  /* crisp cards rise in each time their stage opens */
  .jt .mc__card .mc__ui { opacity: 0; translate: 0 46px; transition: opacity 0.5s ease, translate 0.8s var(--ease); }
  .jt .mc__card.is-on .mc__ui { opacity: 1; translate: 0 0; transition-delay: 0.12s; }
  .jt .mc__card.is-on .mc__ui--sub, .jt .mc__card.is-on .mc__ui--back { transition-delay: 0s; }
  .jt .mc__card.is-on .mc__ui--chip, .jt .mc__card.is-on .mc__ui--front { transition-delay: 0.28s; }
}
/* the second crisp card: smaller, behind and up-left of the main one */
.mc__ui--sub { left: 7%; top: 12%; width: min(230px, 46%); padding: 16px 18px; background: #f6f6f8; z-index: 0; }
.mc__ui--sub .mc__h b { font-size: 14.5px; } .mc__ui--sub .mc__h em { font-size: 12.5px; }
.mc__bar--solid { display: block; height: 6px; margin-top: 14px; border-radius: 6px; background: #e6e3ee; overflow: hidden; } .mc__bar--solid i { display: block; width: var(--w); height: 100%; background: var(--brand); }
.jt .mc__ui--main { left: auto; right: 9%; top: auto; bottom: 9%; transform: none; width: min(340px, 72%); z-index: 1; }
.jt .mc__ui--offer { right: 30%; bottom: 7%; width: min(280px, 58%); }
.jt .mc__ui--chip { top: 10%; right: 7%; }
/* check line at the foot of the copy */
.mc__check { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 24px; font-size: 15px; color: rgba(36, 36, 38, 0.75); }
.mc__check i { display: grid; place-items: center; flex: none; width: 22px; height: 22px; color: #68686f; } .mc__check svg { width: 20px; height: 20px; stroke-width: 1.6; }
.jt .mc__note { margin-top: 14px; padding-top: 0; }
.jt .mc__text { display: flex; flex-direction: column; }
@media (max-width: 900px) {
  .jt .mc__ui--main { right: 6%; bottom: 7%; width: 80%; }
  .mc__ui--sub { left: 5%; top: 6%; width: 52%; }
  .mg { width: 150px; } .mg p { font-size: 20px; }
}
/* the blurred cards are clipped by the whole rounded card, not by the art box,
   so they run under the edges instead of stopping on a hard line */
.jt .mc__card { overflow: hidden; }
.jt .mc__art { overflow: visible; position: relative; z-index: 0; }
.jt .mc__text { position: relative; z-index: 2; }
.jt .mg--1 { left: -70px; } .jt .mg--2 { right: -60px; } .jt .mg--3 { bottom: -60px; } .jt .mg--4 { right: -30px; bottom: -70px; }

/* the longer Oct 2026 copy: the checkout card (copy + Plus note + check line) needs ~545px of panel at
   the widest padding, so all four stage cards grow together and keep their bottom breathing room */
@media (min-width: 901px) { .jt .mc__card { height: 576px; } }
