/* Scrollbars: soft lavender rail, brand-violet thumb, readable on the dark hero and the white sections. */
::-webkit-scrollbar{width:12px;height:12px}
::-webkit-scrollbar-track{background:#f3effc}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#9b7cff,#6c47ec);border:3px solid #f3effc;border-radius:999px;min-height:48px}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#8a66ff,#5a34dc)}
::-webkit-scrollbar-thumb:active{background:#4f2bc9}
::-webkit-scrollbar-corner{background:#f3effc}
/* Inner panels (studio lists, scores, dialogs): thinner, rail blends into the panel. */
* ::-webkit-scrollbar{width:8px;height:8px}
* ::-webkit-scrollbar-track{background:transparent}
* ::-webkit-scrollbar-thumb{background:#cbbdf6;border:2px solid transparent;background-clip:padding-box}
* ::-webkit-scrollbar-thumb:hover{background:#9b7cff;background-clip:padding-box}
/* Firefox has no pseudo-elements: colours only (Chrome would ignore the rules above if it saw these). */
@supports (-moz-appearance:none){
  html{scrollbar-color:#7c5cf0 #f3effc}
  *{scrollbar-width:thin;scrollbar-color:#cbbdf6 transparent}
}

/* "Commencer" from anywhere: the landing generator, in a dialog. */
.start-dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid rgba(171,145,255,.28);border-radius:26px;
  background:var(--public-hero-background);color:#fff;box-shadow:0 40px 120px rgba(10,4,30,.55);overflow:visible}
.start-dialog::backdrop{background:rgba(12,6,28,.62);backdrop-filter:blur(6px)}
.start-dialog[open]{animation:start-in .22s cubic-bezier(.2,.8,.2,1)}
@keyframes start-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.start-dialog-inner{position:relative;padding:34px 34px 26px}
.start-dialog-close{position:absolute;top:14px;right:14px;width:38px;height:38px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:20px;cursor:pointer}
.start-dialog-close:hover{background:rgba(255,255,255,.16)}
.start-dialog-close:focus-visible{outline:3px solid #ae8af6;outline-offset:2px}
.start-dialog-kicker{display:inline-flex;gap:8px;align-items:center;margin:0 0 12px;padding:6px 12px;border-radius:999px;background:rgba(124,92,240,.22);color:#d9cdff;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.start-dialog h2{margin:0 0 8px;font-size:clamp(26px,4vw,34px);line-height:1.08;letter-spacing:-.03em}
.start-dialog-lead{margin:0 0 22px;color:#c9c0dd;font-size:15px;line-height:1.5}
.start-dialog .hero-action-panel{max-width:none;margin:0}
.start-dialog-steps{display:flex;flex-wrap:wrap;gap:8px 18px;margin:20px 0 0;padding:0;list-style:none;color:#b7acd0;font-size:13px}
.start-dialog-steps li::before{content:"✓";margin-right:6px;color:#8ff0c4;font-weight:800}
.start-dialog-foot{margin:18px 0 0;padding-top:16px;border-top:1px solid rgba(255,255,255,.1);color:#a99fc2;font-size:13px}
.start-dialog-foot a{color:#d9cdff;font-weight:700}
@media (max-width:560px){.start-dialog-inner{padding:28px 20px 20px}}

/* Generator already on screen: point at it instead of covering it. */
.hero-action-panel.is-pulsing{animation:hero-pulse 1.1s ease-out 1}
@keyframes hero-pulse{0%{box-shadow:0 0 0 0 rgba(155,124,255,.75)}100%{box-shadow:0 0 0 22px rgba(155,124,255,0)}}
@media (prefers-reduced-motion:reduce){.start-dialog[open],.hero-action-panel.is-pulsing{animation:none}}

/* Free preview: time left, a quiet pill under the stage title. */
.track-progress-title{display:grid;justify-items:center;gap:7px;min-width:0}
.track-progress-title h2{margin:0}
.track-eta{display:inline-flex;align-items:center;gap:7px;margin:0;padding:4px 11px 4px 9px;border-radius:999px;background:#f3effd;color:#5a36c4;
  font-size:12.5px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;letter-spacing:.005em}
.track-eta[hidden]{display:none}
.track-eta b{font-weight:800;color:#3f20a8}
.track-eta-dot{width:6px;height:6px;border-radius:50%;background:#7549eb;box-shadow:0 0 0 0 rgba(117,73,235,.45);animation:eta-pulse 1.6s ease-out infinite}
.track-eta.is-almost{background:#e7f8f0;color:#137a4b}
.track-eta.is-almost .track-eta-dot{background:#1fa368;box-shadow:0 0 0 0 rgba(31,163,104,.45)}
@keyframes eta-pulse{0%{box-shadow:0 0 0 0 rgba(117,73,235,.45)}80%,100%{box-shadow:0 0 0 7px rgba(117,73,235,0)}}
@media (prefers-reduced-motion:reduce){.track-eta-dot{animation:none}}

/* Visitor's preview is ready: real opening bars, the rest behind the sign-up card.
   Goal: the sign-up button is visible without scrolling, on desktop and on phones. */
.result-hero.guest-ready-hero{padding:18px 24px 16px;margin-bottom:12px}
.guest-ready-badge{display:inline-flex;align-items:center;gap:7px;margin-bottom:10px;padding:5px 12px 5px 6px;border-radius:999px;background:#e5f8ef;color:#137a4b;font-size:12.5px;font-weight:800;letter-spacing:.02em}
.guest-ready-badge span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#1fa368;color:#fff;font-size:11px}
.guest-ready-hero .guest-ready-title{margin:0;font-size:clamp(20px,2.3vw,26px);line-height:1.2;letter-spacing:-.02em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.guest-ready-hero .result-meta{margin-top:6px}
.guest-teaser{position:relative;display:grid;grid-template-columns:minmax(0,1fr);overflow:hidden;border:1px solid #e8e0f9;border-radius:22px;background:#fff;box-shadow:0 18px 50px rgba(64,37,140,.08)}
/* The score sits behind: the card alone sets the height, so no empty space under it. */
.guest-teaser-sheet{position:absolute;inset:0;min-width:0;overflow:hidden;padding:18px clamp(12px,3vw,34px) 0;pointer-events:none;user-select:none}
.guest-teaser-score{position:relative;min-height:240px}
.guest-teaser-fallback{display:grid;place-items:center;min-height:240px;opacity:.5}
.guest-teaser-fallback svg{width:100%;max-height:240px}
.guest-teaser-score.is-rendered .guest-teaser-fallback{display:none}
.guest-teaser-engraving svg{max-width:100%;height:auto}
/* First system stays sharp; a strip of blurred bars (the part still to unlock) leads into the card. */
.guest-teaser-veil{grid-area:1/1;position:relative;margin-top:140px;display:grid;grid-template-columns:minmax(0,1fr);align-content:start;justify-items:center;padding:54px 16px 22px;
  -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,.25) 40px,rgba(255,255,255,.92) 120px,#fff 100%);
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 18px);mask-image:linear-gradient(180deg,transparent 0,#000 18px)}
.guest-teaser-card{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;gap:10px;width:min(470px,100%);padding:18px 24px 18px;border:1px solid #e3d9fb;border-radius:20px;background:#fff;
  box-shadow:0 22px 60px rgba(64,37,140,.16);text-align:center}
/* Endowed progress: two steps already done, one left. */
.guest-teaser-steps{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:0 0 2px;padding:0;list-style:none}
.guest-teaser-steps li{display:inline-flex;align-items:center;gap:6px;padding:4px 10px 4px 4px;border-radius:999px;font-size:12px;font-weight:750;color:#137a4b;background:#eefaf4}
.guest-teaser-steps li span{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#1fa368;color:#fff;font-size:10.5px;font-weight:800}
.guest-teaser-steps li.is-current{color:#4a24b8;background:#f1ebff;box-shadow:inset 0 0 0 1.5px #7549eb}
.guest-teaser-steps li.is-current span{background:#7549eb}
.guest-teaser-card h2{margin:2px 0 0;color:#1e1533;font-size:clamp(20px,2.3vw,23px);line-height:1.15;letter-spacing:-.02em}
.guest-teaser-card p{margin:0;color:#5f557a;font-size:14.5px;line-height:1.45}
.guest-teaser-cta{margin-top:4px;width:100%;min-height:52px;justify-content:center;font-size:16px;padding-block:14px;white-space:normal;box-shadow:0 10px 26px rgba(117,73,235,.32)}
.guest-teaser-google{width:100%;box-sizing:border-box;min-height:48px}
.guest-teaser-login{color:#5a36c4;font-size:13.5px;font-weight:700}
.guest-teaser-trust{display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;margin:2px 0 0;padding:0;list-style:none;color:#7a6f92;font-size:12.5px}
.guest-teaser-trust li::before{content:"✓";margin-right:5px;color:#1fa368;font-weight:800}
/* Sticky reminder: only when the card's button is off screen. */
.guest-sticky-cta{position:fixed;left:50%;bottom:max(12px,env(safe-area-inset-bottom));z-index:60;display:flex;align-items:center;gap:14px;width:min(560px,calc(100% - 24px));box-sizing:border-box;padding:10px 10px 10px 18px;border:1px solid #e3d9fb;border-radius:18px;background:rgba(255,255,255,.96);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 16px 44px rgba(40,22,96,.22);transform:translate(-50%,140%);opacity:0;visibility:hidden;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s,visibility 0s .28s}
.guest-sticky-cta.is-visible{transform:translate(-50%,0);opacity:1;visibility:visible;transition:transform .28s cubic-bezier(.2,.8,.2,1),opacity .2s}
.guest-sticky-text{display:grid;gap:1px;min-width:0;flex:1;text-align:left}
.guest-sticky-text b{color:#1e1533;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.guest-sticky-text small{color:#7a6f92;font-size:12px}
.guest-sticky-cta .btn{flex:none;min-height:46px;padding-inline:18px;font-size:14.5px;white-space:nowrap}
@media (prefers-reduced-motion:reduce){.guest-sticky-cta,.guest-sticky-cta.is-visible{transition:none}}
@media (max-width:640px){
  .result-hero.guest-ready-hero{padding:14px 16px 13px;margin-bottom:10px;border-radius:16px}
  .guest-ready-badge{margin-bottom:8px;font-size:12px}
  .guest-ready-hero .guest-ready-title{font-size:19px}
  .guest-ready-hero .result-meta{margin-top:4px}
  .guest-teaser{border-radius:18px}
  .guest-teaser-sheet{padding:14px 10px 0}
  .guest-teaser-veil{margin-top:110px;padding:58px 10px 14px;background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgba(255,255,255,.15) 40px,rgba(255,255,255,.92) 150px,#fff 100%)}
  .guest-teaser-card{padding:16px 14px 14px;gap:9px;border-radius:18px}
  .guest-teaser-steps li{font-size:11px;padding-right:8px}
  .guest-teaser-card h2{font-size:19px}
  .guest-teaser-card p{font-size:13.5px}
}
@media (max-width:640px) and (max-height:700px){.guest-teaser-card p{display:none}}

/* Sign-up phone field: lays out like the other fields of the form. */
.auth-phone-row{display:contents}
.auth-phone-row.hidden{display:none!important}
.auth-error a{color:inherit;font-weight:800;text-decoration:underline}
