/* wumc.app/compte/: the WUMC Pro checkout (the offer on the left, the three steps on the right:
   sign in, pick the team, pay on Stripe) and the account (each team's plan, managing it).
   On top of styles.css and pro.css. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ck { width: min(1160px, 100%); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 20px; }
.ck-head { text-align: center; max-width: 760px; margin: 0 auto; padding: clamp(0.6rem, 3vw, 2rem) 0 0; animation: night-in 0.8s var(--ease) both; }
.ck-head .lead { max-width: 600px; margin: 0 auto; }
.ck-head .billing-toggle { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ck-head .billing-toggle button { color: rgba(255, 255, 255, 0.82); }
.ck-head .billing-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.ck-head .billing-toggle button em { background: rgba(255, 106, 26, 0.22); color: #ffb488; }
.ck-head .billing-toggle button[aria-pressed="true"] em { color: var(--orange-d); background: rgba(255, 106, 26, 0.14); }

.ck-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; margin-top: clamp(3rem, 6vw, 4rem); }
.ck-offer { position: sticky; top: 24px; animation: night-in 0.8s var(--ease) 0.1s both; }
.ck-offer .price-card { gap: 1rem; }
.ck-offer .price em { transition: opacity 0.2s; }
.ck-offer .price em.swap { opacity: 0; }
.ck-safe { display: flex; align-items: center; gap: 8px; margin: 0.4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.ck-safe svg { flex: none; width: 18px; height: 18px; color: var(--orange-d); }

/* The panel: white, with the three steps on top. */
.ck-panel { position: relative; padding: clamp(1.4rem, 3vw, 2rem); border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); animation: night-in 0.8s var(--ease) 0.2s both; }
.ck-steps { display: flex; gap: 8px; list-style: none; margin: 0 0 1.6rem; padding: 0; counter-reset: none; }
.ck-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 14px; background: var(--cream); color: var(--muted); font: 600 13px/1.2 var(--body); transition: background 0.35s var(--ease), color 0.35s var(--ease); }
.ck-steps li i { position: relative; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: 700 12px/1 var(--display); font-style: normal; background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); transition: background 0.35s, color 0.35s, box-shadow 0.35s; }
.ck-steps li.on { background: var(--blush); color: var(--orange-d); }
.ck-steps li.on i { background: var(--orange); color: #fff; box-shadow: 0 6px 14px -6px rgba(232, 85, 10, 0.9); }
.ck-steps li.done { color: var(--ink-2); }
.ck-steps li.done i { background: #1f9d55; color: transparent; box-shadow: none; }
/* The check is pinned to the exact centre of the circle, outside the flow: the hidden number of
   the step can never push it up, whatever the browser. */
.ck-steps li.done i::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4l2.9 2.8 6.1-6.4' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

.ck-panel h2 { margin: 0 0 0.4rem; font: 600 1.6rem/1.2 var(--display); letter-spacing: -0.02em; }
.ck-panel h3 { margin: 0 0 0.3rem; font: 600 1.15rem/1.3 var(--display); }
.ck-panel .lead { margin: 0 0 0.4rem; color: var(--muted); font-size: 15px; }
.oauth { display: grid; gap: 10px; margin: 1.3rem 0 0.4rem; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border-radius: 99px; border: 0; background: #fff; color: var(--ink); font: 600 15px/1 var(--body); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow 0.25s, transform 0.35s var(--spring); }
.oauth-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-1px); }
.oauth-btn svg { width: 18px; height: 18px; }
.sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 1rem 0 0.4rem; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
form { display: grid; gap: 6px; }
label { font: 600 13px/1.3 var(--body); margin-top: 6px; }
input { font: 400 16px/1.3 var(--body); padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); width: 100%; transition: border-color 0.2s, background 0.2s; }
input:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.14); }
form .btn { margin-top: 12px; width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.linkish { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.status { font-size: 14px; font-weight: 600; min-height: 1em; margin: 10px 0 0; }
.status:empty { display: none; }
.status.ok, .notice.ok { color: #1f9d55; }
.status.err, .notice.err { color: #c0392b; }
.muted { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.muted a { color: var(--orange-d); }
.hidden { display: none !important; }
.notice { max-width: 760px; margin: 0 auto 1rem; padding: 12px 18px; border-radius: 16px; background: #fff; color: var(--ink); font-weight: 600; text-align: center; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.6); }

/* Signed in: who, then the teams to pick from. */
.who { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 1.4rem; border-radius: 18px; background: var(--cream); }
.who canvas { width: 44px; height: 34px; image-rendering: pixelated; }
.who-id { flex: 1 1 160px; min-width: 0; display: grid; }
.who-id b { font: 600 1rem/1.3 var(--display); overflow-wrap: anywhere; }
.who-id span { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.who-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 99px; border: 0; background: #fff; color: var(--ink); font: 600 13px/1 var(--body); text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 0.25s; }
.chip-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.team { position: relative; margin-top: 12px; padding: 1.2rem 1.2rem 1.1rem; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow 0.3s, transform 0.35s var(--spring); }
.team.can-buy { box-shadow: inset 0 0 0 2px var(--orange), 0 24px 44px -30px rgba(232, 85, 10, 0.6); }
.team.picked { animation: team-pick 1.6s var(--ease) 0.3s 2; }
@keyframes team-pick { 50% { transform: translateY(-3px); box-shadow: inset 0 0 0 2px var(--orange), 0 0 0 8px rgba(255, 106, 26, 0.16); } }
.team.is-pro { background: linear-gradient(160deg, #fff4ec 0%, #fff 55%); }
.team-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.team-head h2 { margin: 0; font: 600 1.25rem/1.25 var(--display); overflow-wrap: anywhere; }
.tier { font: 700 12px/1 var(--body); border-radius: 99px; padding: 6px 10px; background: var(--cream); color: var(--muted); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--line); }
.tier.pro { background: var(--orange); color: #fff; box-shadow: 0 8px 16px -8px rgba(232, 85, 10, 0.8); }
.team .lead { margin: 2px 0 0; font-size: 13.5px; }
.team-state { margin: 10px 0 0; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.perks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; font-size: 13.5px; }
.perks li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.perks li span:last-child { font-weight: 700; color: var(--orange-d); text-align: right; white-space: nowrap; }
.perks li.off span:last-child { color: var(--muted); font-weight: 500; }
.team .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.team .actions .btn { height: 50px; }
.team .actions .pay { flex: 1 1 100%; height: auto; min-height: 58px; padding: 0.7rem 1.4rem; flex-wrap: wrap; column-gap: 0.6rem; row-gap: 2px; }
.pay-main { font: 700 16px/1.2 var(--body); }
.pay-terms { flex-basis: 100%; text-align: center; font: 500 12.5px/1.2 var(--body); opacity: 0.9; }
.no-team-alt { margin: 12px 0 !important; }
#no-team p + p { margin-top: 10px; }
.team .actions .btn svg { width: 18px; height: 18px; }
.team .muted { margin-top: 10px; font-size: 13px; }
#no-team { margin-top: 12px; padding: 1.2rem; border-radius: 22px; background: var(--cream); }
#no-team p { margin: 0; color: var(--muted); }
#no-team .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.ck-fine { margin: 1.2rem 0 0; color: var(--muted); font-size: 13px; }
.ck-note { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 2.4rem 0 0; color: rgba(255, 255, 255, 0.55); font-size: 13.5px; }
.ck-note i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.ck-note a { color: rgba(255, 255, 255, 0.75); }

@media (max-width: 900px) {
  .ck-grid { grid-template-columns: 1fr; margin-top: 3.4rem; }
  .ck-offer { position: static; }
  /* On a phone the steps come first: the offer follows. */
  .ck-panel { order: -1; }
}
@media (max-width: 520px) {
  .ck-steps li { flex-direction: column; text-align: center; gap: 4px; font-size: 11.5px; padding: 8px 4px; }
  .perks { grid-template-columns: 1fr; }
  .night-top nav a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-head, .ck-offer, .ck-panel, .team.picked { animation: none; }
}
