/* Session sign-up page (session.html) and the private list (signups.html).
   Builds on style.css: same glass, type, buttons and light/dark switch. */

.session { padding-top: clamp(7rem, 14vw, 10rem); }
.session-hero { max-width: 54rem; }
.session-hero h1 { font-size: clamp(3.2rem, 9vw, 7rem); }
.session-hero .lede { max-width: 34rem; }
.session-meta { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 1.3rem 0 1.6rem; }
.session-meta li,
.lvl {
  padding: .45rem .72rem; border-radius: 999px;
  font: 600 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  background: rgb(255 255 255 / .5); border: 1px solid var(--glass-edge);
}

.session-grid {
  display: grid; grid-template-columns: .82fr 1.18fr; align-items: start;
  gap: clamp(1rem, 3vw, 2rem); margin-top: clamp(2.5rem, 6vw, 4.5rem);
}
.session-cover, .session-form { padding: clamp(1.3rem, 3.5vw, 2.4rem); }
#join { scroll-margin-top: 6.5rem; }
.session-cover { position: sticky; top: 6.5rem; }

.cover-list { list-style: none; padding: 0; display: grid; gap: 1.3rem; margin-top: 1.2rem; }
.cover-list li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .2rem .6rem; }
.cover-list b { grid-row: span 2; font: 600 .8rem/1.9 var(--mono); color: var(--accent); }
.cover-list strong { font: 760 clamp(1.35rem, 2.2vw, 1.7rem)/1.05 var(--display); letter-spacing: -.045em; }
.cover-list span { color: var(--muted); }

/* ---------- the form ---------- */
.signup-form { display: grid; gap: .35rem; }
.signup-form h2, .done h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.form-note { color: var(--muted); margin: .6rem 0 .6rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }
.pair > div { display: grid; gap: .35rem; align-content: start; }
.signup-form label, .levels legend { font-weight: 700; font-size: .97rem; margin-top: .75rem; }
.q-num {
  display: inline-grid; place-items: center; width: 1.45rem; height: 1.45rem; margin-right: .5rem;
  border-radius: 50%; background: var(--blue); color: #fff; font: 700 .74rem/1 var(--mono); vertical-align: .08em;
}
.signup-form input, .signup-form textarea {
  width: 100%; padding: .8rem .95rem; border-radius: 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: rgb(255 255 255 / .6); border: 1px solid rgb(255 255 255 / .9);
  box-shadow: inset 0 1px 3px rgb(23 27 50 / .08);
  transition: background .25s, box-shadow .25s;
}
.signup-form input::placeholder, .signup-form textarea::placeholder { color: var(--muted); opacity: .75; }
.signup-form input:focus, .signup-form textarea:focus { outline: none; background: rgb(255 255 255 / .9); box-shadow: 0 0 0 3px rgb(30 50 200 / .25); }
.signup-form textarea { resize: vertical; min-height: 5.2rem; }
.signup-form [aria-invalid="true"] { box-shadow: 0 0 0 2px #d93025; }

.levels { border: 0; padding: 0; margin: 0; min-width: 0; }
.levels legend { padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .55rem; }
.levels .chip { position: relative; margin: 0; font-weight: 600; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.05rem; border-radius: 999px;
  background: rgb(255 255 255 / .55); border: 1px solid rgb(255 255 255 / .9);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgb(23 27 50 / .35);
  transition: background .25s, color .25s, transform .35s var(--spring);
}
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 10px 24px -10px rgb(30 50 200 / .8); }
.chip input:active + span { transform: scale(.96); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.levels[aria-invalid="true"] .chip span { border-color: #d93025; }

.signup-form .button[type="submit"] { justify-self: start; min-width: 13rem; margin-top: 1.2rem; }
.button[disabled] { opacity: .65; cursor: progress; }
.form-status { min-height: 1.4em; margin-top: .3rem; font-size: .93rem; font-weight: 600; color: #b3261e; }
.form-status.ok { color: var(--accent); }
.form-status:empty { display: none; }
.privacy { font-size: .84rem; color: var(--muted); margin-top: .4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.done { display: grid; gap: .8rem; justify-items: start; outline: none; }
.done h2 { margin-top: .2rem; }
.done p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.done b { display: block; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- private list (signups.html) ---------- */
.list-title { font-size: clamp(2.8rem, 7vw, 5rem); }
.gate { max-width: 26rem; padding: clamp(1.2rem, 3vw, 1.8rem); margin-top: 1.5rem; }
.gate .button { justify-self: start; margin-top: .9rem; }
.summary {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem clamp(1.5rem, 5vw, 3.5rem); align-items: center;
  padding: clamp(1.2rem, 3vw, 2rem); margin-top: 1.5rem;
}
.total { font: 760 clamp(3.4rem, 9vw, 5.5rem)/.9 var(--display); letter-spacing: -.06em; color: var(--accent); }
.total-label { color: var(--muted); font-weight: 600; }
.level-bars { display: grid; gap: .55rem; }
.level-bar { display: grid; grid-template-columns: 8rem 1fr 1.8rem; align-items: center; gap: .7rem; font-size: .92rem; font-weight: 600; }
.level-bar i { height: .6rem; border-radius: 999px; background: rgb(23 27 50 / .08); overflow: hidden; }
.level-bar i b { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--blue); transition: width .8s var(--ease); }
.level-bar span:last-child { text-align: right; font-family: var(--mono); }
.board-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: .8rem; margin-top: 1.2rem; }
.person { padding: 1.15rem 1.3rem 1.25rem; }
.person-top { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; }
.person h3 { font-size: 1.45rem; letter-spacing: -.035em; line-height: 1.05; }
.person time { margin-left: auto; font: 600 .72rem/1 var(--mono); color: var(--muted); }
.person dl { display: grid; grid-template-columns: 5.2rem 1fr; gap: .45rem .8rem; margin-top: .85rem; font-size: .97rem; }
.person dt { font: 600 .68rem/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.person dd { overflow-wrap: anywhere; }
.person dd a { color: var(--accent); }
.empty { padding: 1.4rem; color: var(--muted); }

/* ---------- dark ---------- */
[data-theme="dark"] .session-meta li, [data-theme="dark"] .lvl { background: rgb(255 255 255 / .07); }
[data-theme="dark"] .signup-form input, [data-theme="dark"] .signup-form textarea { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); box-shadow: none; }
[data-theme="dark"] .signup-form input:focus, [data-theme="dark"] .signup-form textarea:focus { background: rgb(255 255 255 / .1); box-shadow: 0 0 0 3px rgb(154 166 255 / .35); }
[data-theme="dark"] .chip span { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .16); box-shadow: none; }
[data-theme="dark"] .chip input:checked + span { background: var(--blue); border-color: #6f7dff; }
[data-theme="dark"] .form-status { color: #ff8a80; }
[data-theme="dark"] .form-status.ok { color: var(--accent); }
[data-theme="dark"] .level-bar i { background: rgb(255 255 255 / .1); }
[data-theme="dark"] .level-bar i b { background: #7d8bff; }

/* ---------- smaller screens ---------- */
@media (max-width: 860px) {
  .session-grid { grid-template-columns: 1fr; }
  .session-cover { position: static; }
}
@media (max-width: 560px) {
  .pair { grid-template-columns: 1fr; }
  .signup-form .button[type="submit"] { width: 100%; justify-self: stretch; }
  .summary { grid-template-columns: 1fr; }
  .level-bar { grid-template-columns: 7rem 1fr 1.6rem; }
}

/* ---------- the scale story beside the title (4 Dec 2026) ----------
   Blue glass box like the home hero; the chart plays once like a short trailer (session.js adds .armed/.play). */
@media (min-width: 961px) {
  .session-hero { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 29rem); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
}
@media (max-width: 960px) { .session-visual { margin-top: 2.4rem; max-width: 34rem; } }
.session-visual { container: sv / inline-size; }

.sv {
  --lime: #e8efa9; --coral: #ff9d8c;
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  display: grid; gap: clamp(.8rem, 3.2cqi, 1.05rem); padding: clamp(.95rem, 4.2cqi, 1.35rem); border-radius: 32px;
  background:
    radial-gradient(55% 40% at 90% 0%, rgb(125 139 255 / .7), transparent 70%),
    radial-gradient(60% 40% at 70% 45%, rgb(232 239 169 / .16), transparent 70%),
    radial-gradient(circle, rgb(255 255 255 / .13) 1px, transparent 1.5px) 0 0 / 16px 16px,
    linear-gradient(160deg, #2c41e8, #1e32c8 45%, #111a8c);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 40px 80px -40px rgb(30 50 200 / .75);
}

/* top row: live label + the host */
.sv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.sv-label { display: flex; align-items: center; gap: .5rem; margin: 0; font: 600 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .75); }
.sv-label i, .part .m i { flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: #ff4b3e; animation: breathe 2.6s ease-in-out infinite; }
.sv-host.glass-on-blue { display: flex; align-items: center; gap: .55rem; padding: 4px .85rem 4px 4px; border-radius: 999px; }
.sv-host img { flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1.5px solid rgb(255 255 255 / .85); box-shadow: 0 0 14px rgb(232 239 169 / .45); }
.sv-host p { display: grid; gap: .15rem; margin: 0; font-size: .78rem; font-weight: 650; line-height: 1.15; }
.sv-host .who { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; font-size: .86rem; font-weight: 760; }
.sv-host .who a { font: 600 .66rem/1 var(--mono); color: var(--lime); text-decoration: none; }
.sv-host .who a:hover { text-decoration: underline; text-underline-offset: .2em; }

/* the story: big captions over a chart */
.sv-story { position: relative; margin: 0; }
.caps { display: grid; }
.cap { grid-area: 1 / 1; margin: 0; align-self: end; min-height: 2em;
  font: 760 clamp(1.45rem, 6.3cqi, 2.05rem)/1 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.cap em { font-style: normal; color: var(--lime); text-shadow: 0 0 18px rgb(232 239 169 / .45); }
.c1, .c2, .c3 { opacity: 0; }
.chart { display: block; width: 100%; height: auto; margin-top: .35rem; overflow: visible; }
.axis { fill: none; stroke: rgb(255 255 255 / .3); stroke-width: 1.2; }
.ax { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; fill: rgb(255 255 255 / .55); }
.ceiling line { stroke: var(--coral); stroke-width: 1.4; stroke-dasharray: 5 5; }
.ceiling text { font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; fill: var(--coral); }
.line-time, .line-agent { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.line-time { stroke: rgb(255 255 255 / .75); stroke-width: 3; }
.line-agent { stroke: var(--lime); stroke-width: 3.6; }
.lbl-time, .lbl-agent { font: 700 12.5px "Helvetica Neue", Helvetica, Arial, sans-serif; }
.lbl-time { fill: rgb(255 255 255 / .8); }
.lbl-agent { fill: var(--lime); }
.burst { fill: var(--lime); transform-box: fill-box; transform-origin: center; }
.ring { fill: none; stroke: var(--lime); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.replay { display: none; position: absolute; right: 0; bottom: 1.7rem; padding: .38rem .7rem; border-radius: 999px; cursor: pointer;
  font: 600 .6rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #fff;
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.replay:hover { background: rgb(255 255 255 / .24); }

/* the trailer: JS adds .armed, then .play when the box comes into view (and on Replay) */
.armed .replay { display: inline-flex; }
.armed:not(.play) :is(.c4, .lbl-time, .lbl-agent, .burst, .replay) { opacity: 0; }
.armed:not(.play) :is(.line-time, .line-agent) { stroke-dashoffset: 1; opacity: 0; }
.armed:not(.play) .ceiling { opacity: .3; }
.play .c1 { animation: cap 2.7s var(--ease) .15s both; }
.play .c2 { animation: cap 2.1s var(--ease) 2.95s both; }
.play .c3 { animation: cap 2.6s var(--ease) 5.1s both; }
.play .c4 { animation: capin .7s var(--ease) 7.75s both; }
.play .line-time { animation: draw 2.7s cubic-bezier(.3, .6, .3, 1) .3s both; }
.play .lbl-time { animation: fade .5s ease 2.6s both; }
.play .ceiling { animation: limit 1.4s ease 2.85s both; }
.play .line-agent { animation: draw 2.5s cubic-bezier(.55, .1, .4, 1) 5.15s both; }
.play .burst { animation: burst 1s var(--spring) 6.45s both; }
.play .ring { animation: ring 1.3s ease-out 6.45s both; }
.play .lbl-agent { animation: fade .5s ease 7.3s both; }
.play .replay { animation: fade .5s ease 8.4s both; }
@keyframes cap { 0% { opacity: 0; translate: 0 .35em; } 14%, 84% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 -.25em; } }
@keyframes capin { from { opacity: 0; translate: 0 .35em; } }
@keyframes draw { from { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } }  /* opacity hides the round cap dot before the line starts */
@keyframes fade { from { opacity: 0; } }
@keyframes limit { 0% { opacity: .3; } 25% { opacity: 1; stroke-width: 2.6; } 50% { opacity: .55; } 75%, 100% { opacity: 1; } }
@keyframes burst { from { opacity: 0; scale: .2; } 45% { opacity: 1; scale: 2.4; } }
@keyframes ring { 0% { opacity: 0; scale: .6; } 10% { opacity: .9; } 100% { opacity: 0; scale: 4.5; } }

/* the hour, on glass */
.sv-parts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@container sv (max-width: 330px) { .part .lw { display: none; } }  /* narrowest phones: the red dot alone says live */
.part.glass-on-blue { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem .5rem; padding: .6rem .7rem .7rem; border-radius: 18px; }
.part b { font: 1.05rem/1 "Bitcount", var(--mono); color: rgb(255 255 255 / .75); }
.part.live b { color: var(--lime); text-shadow: 0 0 10px rgb(232 239 169 / .7); }
.part .m { justify-self: end; display: inline-flex; align-items: center; gap: .35rem; font: 600 .6rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .75); white-space: nowrap; }
.part .t { grid-column: 1 / -1; font-size: .92rem; font-weight: 700; line-height: 1.15; }

.sv-take.glass { display: flex; gap: .55rem; margin-top: .7rem; padding: .7rem .9rem; border-radius: 18px; font-size: .9rem; font-weight: 600; }
.sv-take span { color: var(--accent); font-weight: 800; }

[data-theme="dark"] .sv { box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 40px 90px -40px rgb(60 80 255 / .55); }
[data-theme="dark"] .sv-take span { color: #9aa6ff; }
@media (prefers-reduced-motion: reduce) { .sv-label i, .part .m i { animation: none; } }
