/* Welcome / log in / create account — one screen.
   intro → mark (tile pops) → word (letters arrive, logo centres) → ready (logo rises, video blurs, sheet comes up) */

.screen--hello { background: #07070A; }
.screen--hello .screen-body { overflow: hidden; background: #07070A; }
.screen--hello .screen-inner { max-width: none; padding: 0; min-height: 100%; display: block; }

.hl { position: fixed; inset: 0; overflow: hidden; color: #FFFFFF; background: #07070A; -webkit-user-select: none; user-select: none; }

/* ---------- Video (or the stills that stand in for it) ---------- */
.hl__media { position: absolute; inset: 0; overflow: hidden; }
.hl__video, .hl__stills, .hl__stills img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hl__video, .hl__stills { opacity: 0; transform: scale(1.02); transition: opacity 1.2s ease, filter 1.1s ease, transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.hl[data-phase="mark"] .hl__video, .hl[data-phase="word"] .hl__video, .hl[data-phase="ready"] .hl__video { opacity: .9; }
.hl:not(.has-video)[data-phase="mark"] .hl__stills, .hl:not(.has-video)[data-phase="word"] .hl__stills, .hl:not(.has-video)[data-phase="ready"] .hl__stills { opacity: .9; }
.hl.has-video .hl__stills { display: none; }
.hl[data-phase="ready"] .hl__video, .hl[data-phase="ready"] .hl__stills { filter: blur(18px) saturate(1.15); transform: scale(1.12); }
.hl__stills img { opacity: 0; animation: hl-still 22.5s linear infinite; animation-delay: calc(var(--i) * 4.5s - 1.5s); }
@keyframes hl-still {
  0% { opacity: 0; transform: scale(1.02); }
  6% { opacity: 1; }
  20% { opacity: 1; }
  27% { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(1.14); }
}
.hl__shade { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 40%, rgba(7, 7, 10, .25), rgba(7, 7, 10, .75)); transition: background .9s ease; }
.hl[data-phase="ready"] .hl__shade { background: linear-gradient(180deg, rgba(7, 7, 10, .55) 0%, rgba(7, 7, 10, .35) 40%, rgba(7, 7, 10, .7) 100%); }

/* ---------- Logo: the tile, then the word ---------- */
.hl__brand { position: absolute; z-index: 2; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; gap: 14px;
  transform: translate(-50%, -50%); transition: top .8s cubic-bezier(.16, 1, .3, 1), left .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); }
.hl__logo { width: min(66vw, 300px); transition: width .8s cubic-bezier(.16, 1, .3, 1); }
.hl__svg { display: block; width: 100%; height: auto; overflow: visible; color: #FFFFFF;
  transform: translateX(33.5%); transition: transform .9s cubic-bezier(.65, 0, .2, 1); }
.hl__svg .brand-tile, .hl__svg .brand-mark { transform-box: fill-box; transform-origin: center; }
.hl__svg .brand-tile { opacity: 0; transform: scale(.4) rotate(-12deg); transition: opacity .35s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.hl__svg .brand-mark { opacity: 0; transform: scale(.6); transition: opacity .3s ease .18s, transform .6s cubic-bezier(.34, 1.56, .64, 1) .18s; }
.hl__svg g > path { opacity: 0; transform: translateY(320px); transition: opacity .45s ease, transform .6s cubic-bezier(.16, 1, .3, 1); }
/* the letters sit in the file as o r r o t — reversed, so t arrives first */
.hl__svg g > path:nth-child(5) { transition-delay: .18s; }
.hl__svg g > path:nth-child(4) { transition-delay: .26s; }
.hl__svg g > path:nth-child(3) { transition-delay: .34s; }
.hl__svg g > path:nth-child(2) { transition-delay: .42s; }
.hl__svg g > path:nth-child(1) { transition-delay: .50s; }
.hl:not([data-phase="intro"]) .hl__svg .brand-tile, .hl:not([data-phase="intro"]) .hl__svg .brand-mark { opacity: 1; transform: none; }
.hl[data-phase="word"] .hl__svg, .hl[data-phase="ready"] .hl__svg { transform: none; }
.hl[data-phase="word"] .hl__svg g > path, .hl[data-phase="ready"] .hl__svg g > path { opacity: 1; transform: none; }
.hl__tag { margin: 0; font-size: 15px; letter-spacing: .01em; color: rgba(255, 255, 255, .78); opacity: 0; transform: translateY(6px); transition: opacity .6s ease .35s, transform .6s ease .35s; }
.hl[data-phase="ready"] .hl__tag { opacity: 1; transform: none; }
.hl__logo-text { font-size: 64px; font-weight: 900; }

/* Phone: the logo rises into the space above the sheet */
.hl[data-phase="ready"] .hl__brand { top: calc(env(safe-area-inset-top, 0px) + max(48px, 9vh)); transform: translate(-50%, 0); }
.hl[data-phase="ready"] .hl__logo { width: min(44vw, 188px); }

/* ---------- Sheet ---------- */
.hl__sheet { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column;
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - 178px); padding: 8px 0 0; border-radius: 28px 28px 0 0;
  background: var(--color-surface); color: var(--color-ink); box-shadow: 0 -12px 48px rgba(0, 0, 0, .35);
  transform: translateY(105%); transition: transform .8s cubic-bezier(.16, 1, .3, 1), max-height .4s ease; -webkit-user-select: text; user-select: text; }
.hl[data-phase="ready"] .hl__sheet { transform: none; }
.hl__grip { flex: none; width: 36px; height: 4px; margin: 0 auto 4px; border-radius: 2px; background: var(--color-line-strong); }
.hl__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px calc(22px + env(safe-area-inset-bottom, 0px)); }
.hl__body.is-out-l { opacity: 0; transform: translateX(-14px); transition: opacity .14s ease, transform .14s ease; }
.hl__body.is-out-r { opacity: 0; transform: translateX(14px); transition: opacity .14s ease, transform .14s ease; }
.hl__body.is-in-r { animation: hl-in-r .32s cubic-bezier(.16, 1, .3, 1); }
.hl__body.is-in-l { animation: hl-in-l .32s cubic-bezier(.16, 1, .3, 1); }
@keyframes hl-in-r { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes hl-in-l { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }

.hl__top { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; min-height: 40px; margin: 0 -8px 2px; }
.hl__back { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--color-ink); }
.hl__back svg { width: 22px; height: 22px; }
.hl__progress { display: flex; gap: 6px; justify-self: center; width: min(160px, 100%); }
.hl__progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--color-field); transition: background-color .3s ease; }
.hl__progress i.is-on { background: var(--color-ink); }

.hl__title { margin: 4px 0 0; font-size: 26px; line-height: 32px; font-weight: 800; letter-spacing: -.015em; outline: none; }
.hl__lead { margin: 6px 0 20px; font-size: 15px; line-height: 21px; color: var(--color-ink-muted); }

.hl-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; padding: 0 18px; border-radius: 14px;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--color-ink); background: var(--color-field); transition: transform .1s ease, background-color .15s ease, opacity .15s ease; -webkit-tap-highlight-color: transparent; }
.hl-btn:active { transform: scale(.985); }
.hl-btn svg { flex: none; width: 20px; height: 20px; }
.hl-btn--apple { background: var(--color-ink); color: var(--color-surface); }
.hl-btn--line { background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line-strong); }
.hl-btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.hl-btn--ghost { background: none; color: var(--color-ink-2); font-weight: 600; margin-top: 6px; }
.hl__social { display: flex; flex-direction: column; gap: 10px; }
.hl__or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: 13px; color: var(--color-ink-muted); }
.hl__or::before, .hl__or::after { content: ''; flex: 1; border-top: var(--hairline) solid var(--color-line-strong); }

.hl__form { display: flex; flex-direction: column; gap: 14px; }
.hl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hl-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hl-field__label { font-size: 13px; font-weight: 700; color: var(--color-ink-muted); }
.hl-field__input { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--color-field); color: var(--color-ink);
  font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; transition: box-shadow .15s ease, background-color .15s ease; }
select.hl-field__input { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
input[type="date"].hl-field__input { display: flex; align-items: center; min-height: 52px; }
.hl-field__input::placeholder { color: var(--color-ink-muted); }
.hl-field__input:focus { outline: none; background-color: var(--color-surface); box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.hl-field__input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--color-danger); }
.hl__err { margin: -4px 2px 0; font-size: 14px; font-weight: 700; color: var(--color-danger); }
.hl__err[hidden] { display: none; }
.hl__for { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--color-field); font-size: 14px; }
.hl__for span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-ink-2); }
.hl__for button { flex: none; font-weight: 700; color: var(--color-accent-text); }

.hl__device { margin-top: 22px; }
.hl__deviceLabel { font-size: 13px; font-weight: 700; color: var(--color-ink-muted); }
.hl__accounts { display: flex; gap: 14px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.hl-acc { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 60px; color: var(--color-ink-2); }
.hl-acc .avatar { position: relative; width: 52px; height: 52px; font-size: 16px; box-shadow: 0 0 0 var(--hairline) var(--color-line); }
.hl-acc small { max-width: 60px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl__legal { margin: 20px 0 0; font-size: 12px; line-height: 17px; text-align: center; color: var(--color-ink-muted); }

/* Listen or play */
.hl__roles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hl-role { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 168px; padding: 16px; border-radius: 18px; text-align: left; color: var(--color-ink);
  background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line-strong); transition: box-shadow .15s ease, background-color .15s ease, transform .1s ease; }
.hl-role:active { transform: scale(.98); }
.hl-role__ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%; background: var(--color-field); }
.hl-role__ic svg { width: 22px; height: 22px; }
.hl-role__tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hl-role b { font-size: 18px; line-height: 22px; }
.hl-role small { font-size: 13px; line-height: 18px; color: var(--color-ink-muted); }
.hl-role.is-on { box-shadow: inset 0 0 0 2px var(--color-ink); background: var(--color-hover); }
.hl-role.is-on .hl-role__ic { background: var(--color-ink); color: var(--color-surface); }
.hl-link { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 14px 4px; border-top: var(--hairline) solid var(--color-line); text-align: left; color: var(--color-ink-2); font-size: 15px; }
.hl-link span { flex: 1; }
.hl-link svg { width: 20px; height: 20px; flex: none; }
.hl-link svg:last-child { width: 16px; height: 16px; color: var(--color-ink-muted); }

.hl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hl-switch { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 0 4px; border-top: var(--hairline) solid var(--color-line); cursor: pointer; }
.hl-switch > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hl-switch b { font-size: 15px; }
.hl-switch small { font-size: 13px; line-height: 18px; color: var(--color-ink-muted); }

.hl__done { display: flex; flex-direction: column; align-items: flex-start; }
.hl__doneIc { display: grid; place-items: center; width: 52px; height: 52px; margin: 2px 0 10px; border-radius: 50%; background: var(--color-success, #1F9D55); color: #FFFFFF;
  animation: hl-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
.hl__doneIc svg { width: 24px; height: 24px; }
@keyframes hl-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Tablet: the sheet becomes a floating card ---------- */
@media (min-width: 640px) {
  .hl__sheet { left: 50%; right: auto; bottom: 24px; width: 440px; margin-left: -220px; border-radius: 28px; max-height: calc(100dvh - 220px); }
  .hl__grip { display: none; }
  .hl__body { padding: 16px 32px 28px; }
  .hl[data-phase="ready"] .hl__logo { width: 220px; }
}
/* ---------- Desktop: logo and line on the left, card on the right ---------- */
@media (min-width: 1024px) and (min-height: 600px) {
  .hl[data-phase="ready"] .hl__brand { left: 30%; top: 50%; transform: translate(-50%, -50%); align-items: flex-start; }
  .hl[data-phase="ready"] .hl__logo { width: min(26vw, 380px); }
  .hl__tag { font-size: 22px; color: rgba(255, 255, 255, .85); }
  .hl__sheet { left: auto; right: max(48px, 9vw); top: 50%; bottom: auto; margin: 0; width: 440px; max-height: calc(100dvh - 64px); transform: translate(0, calc(-50% + 40px)); opacity: 0;
    transition: transform .8s cubic-bezier(.16, 1, .3, 1), opacity .5s ease; }
  .hl[data-phase="ready"] .hl__sheet { transform: translate(0, -50%); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hl *, .hl__sheet { transition-duration: .01s !important; animation-duration: .01s !important; }
  .hl__stills img { animation: none; opacity: 0; }
  .hl__stills img:first-child { opacity: 1; }
}

.hl__social + .hl__device { margin-top: 24px; }
@media (max-width: 639px) {
  .hl-acc .avatar { width: 46px; height: 46px; }
  .hl__title { font-size: 24px; line-height: 30px; }
}

/* ================= Figma splash: red film, white tile → white "torro®", sheet rises ================= */
.hl { background: #2A0605; }
.hl__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: hl-drift 18s ease-in-out infinite alternate; transition: filter 1.1s ease, transform 1.4s cubic-bezier(.16, 1, .3, 1); }
@keyframes hl-drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-2%); } }
/* every moving picture is graded to the same red as the Figma frame */
.hl__video, .hl__stills { filter: grayscale(1) contrast(1.15) brightness(1.05); }
.hl[data-phase="mark"] .hl__video, .hl[data-phase="word"] .hl__video, .hl[data-phase="ready"] .hl__video { opacity: .75; }
.hl.has-video .hl__stills, .hl__stills { display: none; }
.hl__tint { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #E2231C; mix-blend-mode: multiply; opacity: .92; }
.hl__shade { z-index: 1; background: radial-gradient(120% 80% at 50% 45%, rgba(40, 4, 3, 0), rgba(40, 4, 3, .45)) !important; }
.hl[data-phase="ready"] .hl__shade { background: linear-gradient(180deg, rgba(40, 4, 3, .1) 0%, rgba(40, 4, 3, .25) 45%, rgba(40, 4, 3, .55) 100%) !important; }
.hl[data-phase="ready"] .hl__poster, .hl[data-phase="ready"] .hl__video { filter: grayscale(1) contrast(1.15) brightness(1.05) blur(14px); }
.hl[data-phase="ready"] .hl__poster { filter: blur(14px); }

.hl__brand { z-index: 2; display: grid; place-items: center; gap: 12px; }
.hl__tile, .hl__word { grid-area: 1 / 1; }
.hl__tile { width: 150px; opacity: 0; transform: scale(.55); transition: opacity .35s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1); filter: drop-shadow(0 18px 40px rgba(60, 0, 0, .35)); }
.hl__tileSvg, .hl__wordSvg { display: block; width: 100%; height: auto; }
.hl__word { width: min(57vw, 214px); opacity: 0; transition: width .8s cubic-bezier(.16, 1, .3, 1), opacity .3s ease; }
.hl__wordSvg path { opacity: 0; transform: translateY(160px); transition: opacity .4s ease, transform .55s cubic-bezier(.16, 1, .3, 1); }
.hl__wordSvg text { opacity: 0; transition: opacity .4s ease .5s; }
.hl__wordSvg path:nth-child(6) { transform: none; transition: opacity .4s ease .5s; } /* ® only fades in, after the letters */
.hl__wordSvg path:nth-child(5) { transition-delay: .05s; }
.hl__wordSvg path:nth-child(4) { transition-delay: .12s; }
.hl__wordSvg path:nth-child(3) { transition-delay: .19s; }
.hl__wordSvg path:nth-child(2) { transition-delay: .26s; }
.hl__wordSvg path:nth-child(1) { transition-delay: .33s; }
.hl[data-phase="mark"] .hl__tile { opacity: 1; transform: none; }
.hl[data-phase="word"] .hl__tile, .hl[data-phase="ready"] .hl__tile { opacity: 0; transform: scale(.7); transition: opacity .3s ease, transform .4s ease; }
.hl[data-phase="word"] .hl__word, .hl[data-phase="ready"] .hl__word { opacity: 1; }
.hl[data-phase="word"] .hl__wordSvg path, .hl[data-phase="ready"] .hl__wordSvg path,
.hl[data-phase="word"] .hl__wordSvg text, .hl[data-phase="ready"] .hl__wordSvg text { opacity: 1; transform: none; }
.hl__tag { grid-area: 2 / 1; }
.hl[data-phase="ready"] .hl__word { width: 132px; }
.hl[data-phase="ready"] .hl__brand { top: calc(env(safe-area-inset-top, 0px) + max(40px, 8vh)); }
.hl__ver { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 40px); margin: 0; text-align: center; font-size: 11px; letter-spacing: .02em; color: rgba(255, 255, 255, .55); transition: opacity .4s ease; }
.hl[data-phase="ready"] .hl__ver { opacity: 0; }
.hl__sheet { z-index: 3; }

/* ---------- Figma login sheet ---------- */
.hl__title--sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hl-field__label { font-size: 14px; font-weight: 400; color: var(--color-ink-muted); }
.hl-field__input { height: 48px; border-radius: 10px; font-size: 15px; }
.hl-pw { position: relative; display: block; }
.hl-pw .hl-field__input { padding-right: 48px; }
.hl-pw__eye { position: absolute; top: 0; right: 0; width: 48px; height: 48px; display: grid; place-items: center; color: var(--color-ink-muted); }
.hl-pw__eye svg { width: 20px; height: 20px; }
.hl-forgot { align-self: flex-end; margin: -4px 0 0; padding: 4px 0; font-size: 14px; color: var(--color-ink); background: none; }
.hl-btn--primary { height: 48px; border-radius: 10px; }
.hl-btn--primary[data-off] { background: var(--color-field); color: var(--color-ink-muted); }
.hl__orUse { margin: 22px 0 14px; text-align: center; font-size: 13px; color: var(--color-ink-muted); }
.hl__orUse--top { margin-top: 4px; }
.hl-sso { display: flex; justify-content: center; gap: 14px; }
/* white tiles, the brands in their own colours — large enough to read as the real buttons */
.hl-sso__b { flex: 1; display: grid; place-items: center; max-width: 180px; height: 56px; border-radius: 14px; background: #FFFFFF; color: #000000;
  box-shadow: inset 0 0 0 1px var(--color-line-strong), 0 1px 2px rgba(0, 0, 0, .04); transition: transform .1s ease, box-shadow .15s ease; }
.hl-sso__b svg { width: 28px; height: 28px; }
.hl-sso__b--a svg { width: 30px; height: 30px; margin-top: -2px; }
.hl-sso__b:active { transform: scale(.94); }
.hl__signup { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 26px; }
.hl__signup small { font-size: 13px; color: var(--color-ink-muted); }
.hl__signup button { font-size: 17px; font-weight: 500; color: var(--color-ink); background: none; padding: 2px 8px; }
.hl__err button { font: inherit; font-weight: 800; color: var(--color-accent-text); text-decoration: underline; background: none; padding: 0; }
.hl__demo { margin-top: 18px; text-align: center; }
.hl__demo summary { list-style: none; cursor: pointer; font-size: 12px; color: var(--color-ink-muted); }
.hl__demo summary::-webkit-details-marker { display: none; }
.hl__demo .hl__accounts { justify-content: center; }
.hl .hl__or { margin: 18px 0 6px; }
@media (min-width: 1024px) and (min-height: 600px) {
  .hl[data-phase="ready"] .hl__word { width: min(24vw, 340px); }
  .hl[data-phase="ready"] .hl__brand { top: 50%; }
}
@media (hover: hover) and (pointer: fine) { .hl-sso__b:hover { box-shadow: inset 0 0 0 1px var(--color-line-strong), 0 6px 18px rgba(0, 0, 0, .10); } .hl-forgot:hover, .hl__signup button:hover { text-decoration: underline; } }

/* The login film is already graded red in the source: no extra tint, no grayscale — just the blur once the sheet is up */
.hl__tint { display: none; }
.hl__video, .hl[data-phase="mark"] .hl__video, .hl[data-phase="word"] .hl__video { filter: none; }
.hl[data-phase="mark"] .hl__video, .hl[data-phase="word"] .hl__video, .hl[data-phase="ready"] .hl__video { opacity: 1; }
.hl[data-phase="ready"] .hl__video { filter: blur(14px); }

/* ---------- Resting logo: the full lockup (tile + word), crisp, no transforms inside the SVG ---------- */
.hl__lock { grid-area: 1 / 1; width: 168px; opacity: 0; transition: opacity .5s ease .1s; }
.hl__lockSvg { display: block; width: 100%; height: auto; shape-rendering: geometricPrecision; }
.hl[data-phase="ready"] .hl__word { opacity: 0; transition: opacity .3s ease; }
.hl[data-phase="ready"] .hl__lock { opacity: 1; }
.hl__tag { letter-spacing: .02em; }
/* Dark falls in from the right, so the card sits on a quiet ground and the logo keeps the light */
.hl[data-phase="ready"] .hl__shade { background:
  linear-gradient(270deg, rgba(10, 4, 4, .82) 0%, rgba(10, 4, 4, .55) 40%, rgba(10, 4, 4, .18) 75%, rgba(10, 4, 4, 0) 100%),
  linear-gradient(180deg, rgba(10, 4, 4, .1) 0%, rgba(10, 4, 4, .45) 100%) !important; }
@media (min-width: 1024px) and (min-height: 600px) {
  .hl[data-phase="ready"] .hl__brand { justify-items: start; gap: 22px; }
  .hl__lock { width: min(30vw, 440px); }
  .hl__tag { font-size: 24px; padding-left: .2em; }
}
.hl[data-phase="ready"] .hl__tile { position: absolute; visibility: hidden; }

/* Logo swap: word out, then the lockup pops in at centre (tile first feel), then everything rises */
.hl__lock { width: min(62vw, 250px); transform: scale(.92); transition: opacity .35s ease, transform .5s cubic-bezier(.34, 1.4, .64, 1), width .8s cubic-bezier(.16, 1, .3, 1); }
.hl[data-lock] .hl__word, .hl[data-phase="ready"] .hl__word { opacity: 0; transition: opacity .18s ease; }
.hl[data-lock] .hl__lock, .hl[data-phase="ready"] .hl__lock { opacity: 1; transform: none; transition-delay: .16s, .16s, 0s; }
.hl[data-phase="ready"] .hl__lock { width: 168px; transition-delay: 0s; }
@media (min-width: 1024px) and (min-height: 600px) {
  .hl__lock { width: min(34vw, 460px); }
  .hl[data-phase="ready"] .hl__lock { width: min(30vw, 440px); }
}
@media (min-width: 1024px) and (min-height: 600px) {
  .hl[data-phase="ready"] .hl__shade { background:
    linear-gradient(270deg, rgba(8, 3, 3, .95) 0%, rgba(8, 3, 3, .82) 35%, rgba(8, 3, 3, .5) 65%, rgba(8, 3, 3, .3) 100%),
    linear-gradient(180deg, rgba(8, 3, 3, .15) 0%, rgba(8, 3, 3, .5) 100%) !important; }
}
/* Sequence: symbol → word → full logo → (moves) → slogan → login */
.hl[data-phase="ready"] .hl__tag { transition-delay: .55s; }
@media (min-width: 1024px) and (min-height: 600px) {
  .hl[data-phase="ready"] .hl__tag { transition-delay: .75s; }
  .hl[data-phase="ready"] .hl__sheet { transition-delay: 1.1s; }
  .hl__shade { transition: background 1.2s ease .3s; }
}

/* ---------- Account care ---------- */
.hl-rule { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--color-ink-muted); transition: color .15s ease; }
.hl-rule svg { width: 14px; height: 14px; opacity: .35; transition: opacity .15s ease; }
.hl-rule.is-ok { color: var(--color-positive, #1F7A3E); }
.hl-rule.is-ok svg { opacity: 1; }
.hl__errNote { display: block; margin-top: 6px; font-weight: 400; font-size: 12px; line-height: 17px; color: var(--color-ink-muted); }
.hl__warn { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--color-field); font-size: 13px; line-height: 18px; color: var(--color-ink); }
.hl__warn svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--color-danger); }
:root[data-theme="dark"] .hl-rule.is-ok { color: #6FD39A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hl-rule.is-ok { color: #6FD39A; } }

/* ---------- No passwords: the code, consent, accounts on this device, your @name ---------- */
.hl-inline { display: inline; padding: 0; border: 0; background: none; color: var(--color-ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.hl-demo { display: flex; align-items: center; gap: 10px; margin: -6px 0 16px; padding: 10px 10px 10px 12px; border-radius: 12px; background: var(--color-field); }
.hl-demo > svg { flex: none; width: 18px; height: 18px; color: var(--color-ink-2); }
.hl-demo > span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hl-demo small { font-size: 12px; line-height: 16px; color: var(--color-ink-muted); }
.hl-demo b { font-size: 17px; line-height: 22px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.hl-demo button { flex: none; height: 32px; padding: 0 12px; border-radius: 99px; background: var(--color-surface); box-shadow: inset 0 0 0 1px var(--color-line-strong); color: var(--color-ink); font: inherit; font-size: 13px; font-weight: 700; }
.hl-code { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.hl-code__in { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; opacity: .01; -webkit-user-select: text; user-select: text; }
.hl-code__box { display: grid; place-items: center; height: 56px; border-radius: 12px; background: var(--color-field); color: var(--color-ink); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; transition: box-shadow .15s ease, background-color .15s ease; }
.hl-code__box.is-cur { background: var(--color-surface); box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.hl-code:has([aria-invalid="true"]) .hl-code__box { box-shadow: inset 0 0 0 1.5px var(--color-danger); }
@media (max-width: 360px) { .hl-code { gap: 6px; } .hl-code__box { height: 50px; font-size: 21px; } }
.hl-resend { align-self: center; margin-top: -4px; padding: 6px 10px; border: 0; background: none; color: var(--color-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.hl-resend:disabled { color: var(--color-ink-muted); font-weight: 400; cursor: default; }
.hl-check { position: relative; display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 19px; color: var(--color-ink-2); cursor: pointer; }
.hl-check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.hl-check__box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--color-line-strong); color: transparent; transition: background-color .15s ease; }
.hl-check__box svg { width: 13px; height: 13px; }
.hl-check input:checked + .hl-check__box { background: var(--color-ink); color: var(--color-surface); box-shadow: none; }
.hl-check input:focus-visible + .hl-check__box { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.hl__form .hl__legal { margin: -6px 0 0; text-align: left; }
.hl-hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 17px; color: var(--color-ink-muted); }
.hl-hint svg { flex: none; width: 14px; height: 14px; }
.hl-handle { display: flex; flex-direction: column; gap: 2px; align-self: stretch; margin: 10px 0 6px; padding: 12px 14px; border-radius: 14px; background: var(--color-field); }
.hl-handle span, .hl-handle small { font-size: 12.5px; line-height: 17px; color: var(--color-ink-muted); }
.hl-handle b { font-size: 18px; line-height: 24px; font-weight: 800; overflow-wrap: anywhere; }
.hl__device { text-align: center; }
.hl__device .hl__accounts { justify-content: center; padding-top: 6px; }
.hl-acc { position: relative; }
.hl-acc__go { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 60px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.hl-acc__x { position: absolute; top: -5px; right: -1px; display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--color-surface); box-shadow: 0 0 0 1px var(--color-line-strong); color: var(--color-ink-2); cursor: pointer; }
.hl-acc__x svg { width: 11px; height: 11px; }
@media (hover: hover) and (pointer: fine) { .hl-acc__x { opacity: 0; transition: opacity .15s ease; } .hl-acc:hover .hl-acc__x, .hl-acc__x:focus-visible { opacity: 1; } }

/* ---------- Phones: signing up is a full page — content at the top, the next step always at the bottom (setup-assistant rhythm) ---------- */
@media (max-width: 639px) {
  .hl__sheet[data-mode="create"] { height: 100dvh; max-height: 100dvh; padding-top: env(safe-area-inset-top, 0px); border-radius: 0; box-shadow: none;
    transition: transform .8s cubic-bezier(.16, 1, .3, 1), max-height .45s cubic-bezier(.16, 1, .3, 1), border-radius .3s ease; }
  .hl__sheet[data-mode="create"] .hl__grip { display: none; }
  .hl__sheet[data-mode="create"] .hl__body { display: flex; flex-direction: column; padding: 6px 24px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .hl__sheet[data-mode="create"] .hl__top { margin-bottom: 18px; }
  .hl__sheet[data-mode="create"] .hl__title { font-size: 30px; line-height: 36px; letter-spacing: -.02em; text-wrap: balance; }
  .hl__sheet[data-mode="create"] .hl__lead { margin: 8px 0 28px; font-size: 16px; line-height: 23px; text-wrap: pretty; }
  .hl__sheet[data-mode="create"] .hl__form { flex: 1; gap: 14px; }
  /* the primary button (and what belongs under it) sinks to the bottom of the page */
  .hl__sheet[data-mode="create"] .hl-btn--primary[type="submit"] { position: sticky; z-index: 2; bottom: 0; margin-top: auto; }
  .hl__sheet[data-mode="create"] .hl-btn--primary { height: 52px; border-radius: 14px; font-size: 17px; }
  .hl__sheet[data-mode="create"] .hl__form .hl__legal { margin: -2px 0 0; text-align: center; }
  .hl__sheet[data-mode="create"] .hl-check { justify-content: center; }
  /* social first, then a quiet divider, then email — one column, same widths */
  .hl__sheet[data-mode="create"] .hl-sso { gap: 14px; }
  .hl__sheet[data-mode="create"] .hl-sso__b { max-width: none; }
  .hl__sheet[data-mode="create"] .hl__or { margin: 22px 0 18px; }
  /* who you are: one column of equal rows instead of two cards and a footnote */
  .hl__sheet[data-mode="create"] .hl__roles { grid-template-columns: 1fr; gap: 12px; }
  .hl__sheet[data-mode="create"] .hl-role { flex-direction: row; align-items: center; gap: 16px; min-height: 0; padding: 16px 18px; }
  .hl__sheet[data-mode="create"] .hl-role__ic { margin: 0; width: 48px; height: 48px; }
  .hl__sheet[data-mode="create"] .hl-role > b, .hl__sheet[data-mode="create"] .hl-role > small { display: block; }
  .hl__sheet[data-mode="create"] .hl-role__tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; }
  .hl__sheet[data-mode="create"] .hl-link { margin-top: 12px; padding: 16px 18px; border-top: 0; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--color-line-strong); }
  .hl__sheet[data-mode="create"] .hl-link svg:first-child { width: 22px; height: 22px; }
  .hl__sheet[data-mode="create"] .hl-link.is-on { box-shadow: inset 0 0 0 2px var(--color-ink); background: var(--color-hover); }
}
@media (max-width: 639px) and (max-height: 700px) {
  .hl__sheet[data-mode="create"] .hl__title { font-size: 24px; line-height: 30px; }
  .hl__sheet[data-mode="create"] .hl__lead { margin: 4px 0 16px; font-size: 14px; line-height: 19px; }
  .hl__sheet[data-mode="create"] .hl__top { margin-bottom: 8px; }
}

/* ---------- Sign-in: the logo sits in the middle of whatever the sheet leaves free (measured; --hl-free = the sheet's top edge) ---------- */
@media (max-width: 1023px), (max-height: 599px) {
  .hl[data-phase="ready"] .hl__brand { top: calc(var(--hl-free, 42dvh) / 2); transform: translate(-50%, -50%); gap: 14px; }
}
/* 22 Oct: genres at sign-up (genres.js picker) */
.hl__sub { margin: 26px 0 0; font-size: 18px; line-height: 24px; font-weight: 800; }
.hl__lead--sm { margin: 4px 0 6px; font-size: 14px; line-height: 19px; }
.hl__form .gn { margin-bottom: 8px; }

/* 23 Oct: "Follow at least 3" (Spotify's "choose 3 or more") — round photos, a check when followed, the button counts down */
.hl-fl__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 10px; padding: 2px 0 8px; }
.hl-fl__p { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 0; border: 0; background: none; color: var(--color-ink); font: inherit; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hl-fl__av { position: relative; display: grid; place-items: center; width: 100%; max-width: 96px; aspect-ratio: 1; margin-bottom: 6px; border-radius: 50%; background: var(--color-field); font-size: 22px; font-weight: 800; color: var(--color-ink-2); transition: transform .18s ease, box-shadow .18s ease; }
.hl-fl__av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hl-fl__ok { position: absolute; right: 2px; bottom: 2px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 0 0 3px var(--color-surface); opacity: 0; transform: scale(.6); transition: opacity .18s ease, transform .18s ease; }
.hl-fl__ok svg { width: 13px; height: 13px; }
.hl-fl__p.is-on .hl-fl__av { box-shadow: 0 0 0 2.5px var(--color-surface), 0 0 0 4.5px var(--color-accent), 0 0 18px 2px color-mix(in srgb, var(--color-accent) 35%, transparent); }
.hl-fl__p.is-on .hl-fl__ok { opacity: 1; transform: none; }
.hl-fl__p:active .hl-fl__av { transform: scale(.95); }
.hl-fl__p:focus-visible { outline: none; }
.hl-fl__p:focus-visible .hl-fl__av { box-shadow: 0 0 0 2px var(--color-surface), 0 0 0 4px var(--color-ink); }
.hl-fl__p b { width: 100%; font-size: 14px; line-height: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.hl-fl__p small { width: 100%; font-size: 12px; line-height: 16px; color: var(--color-ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-fl .hl-btn--primary[type="submit"] { position: sticky; z-index: 2; bottom: 0; box-shadow: 0 32px 0 32px var(--color-surface), 0 -14px 18px 4px var(--color-surface); }
