/* /membership, the enrollment desk (server/lib/membershipPage.ts). Loaded
   after marketing.css and paper.css; reuses the homepage rate sheet and adds
   the checkout steps, the "what's included" column, and the FAQ. */

.enroll-rates { border-top: 0; padding-top: 48px; }
.enroll-rates .rate-intro h1 { margin: 0; font-size: clamp(38px, 4.6vw, 62px); letter-spacing: -0.025em; }
.enroll-rates .rate-intro h1 em { color: #a3472d; }
.rate-row .enroll-panel-title { margin: 8px 0 16px; font-size: 30px; line-height: 1.15; letter-spacing: -0.8px; }

/* Left: what's included, on cream. */
.enroll-included { justify-content: space-between; }
.enroll-included .enroll-panel-title { max-width: 360px; }
.enroll-included .membership-benefits li::before { color: #a3472d; font-weight: 700; }
.enroll-promises { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px dashed #c9bda6; }
.enroll-promises li { margin: 8px 0; font-size: 15px; color: var(--muted); }
.enroll-promises strong { color: var(--ink); }

/* Right: the dark enrollment panel and its checkout. */
.enroll-panel .billing-toggle { margin-bottom: 18px; }
.enroll-panel .membership-prices .rate-detail { min-height: 0; }
.enroll-checkout { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.enroll-checkout > p { margin: 0; }
.enroll-checkout .text-link { color: #f5d833; }
.enroll-panel .checkout-start { font-size: 16px; padding-inline: 26px; }
.checkout-summary { color: #f6f1e5; font-weight: 600; }
.checkout-message:empty { display: none; }
.checkout-message.err { color: #ffab9b; }
.checkout-message.ok { color: #c6ec9f; }

.checkout-auth { align-self: stretch; max-width: 540px; padding: 18px; border: 1px dashed #73796b; border-radius: 4px; background: rgb(255 250 240 / 4%); }
.checkout-step label { display: block; margin-bottom: 10px; color: #f6f1e5; font-weight: 700; overflow-wrap: anywhere; }
.checkout-row { display: flex; gap: 10px; }
.checkout-row input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #fffaf0;
  border-radius: 3px;
  background: #fffaf0;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.checkout-row input:focus-visible { outline: 3px solid #f5d833; outline-offset: 2px; }
#auth-code { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 20px; letter-spacing: 6px; }
.checkout-row .button { flex: none; }
.checkout-hint { margin: 10px 0 0; font-size: 13px; color: #c7c9bc; }
.checkout-hint a, .checkout-link { color: #f5d833; }
.checkout-link { padding: 0; border: 0; background: none; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.button:disabled { opacity: .6; cursor: default; transform: none; }

/* Questions, as a short list you can open. */
.enroll-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; padding-block: 70px 90px; }
.enroll-faq-head .eyebrow { color: #a3472d; }
.enroll-faq-head h2 { margin-top: 8px; }
.enroll-faq-head p:last-child { color: var(--muted); }
.enroll-faq-head a { text-decoration: underline; text-underline-offset: 4px; }
.enroll-faq-list details { border-top: 1px solid var(--line); }
.enroll-faq-list details:last-child { border-bottom: 1px solid var(--line); }
.enroll-faq-list summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 18px; font-weight: 700; cursor: pointer; list-style: none; }
.enroll-faq-list summary::-webkit-details-marker { display: none; }
.enroll-faq-list summary::after { content: "+"; font-size: 22px; line-height: 1; color: #a3472d; }
.enroll-faq-list details[open] summary::after { content: "–"; }
.enroll-faq-list details p { margin: 0 0 20px; color: var(--muted); max-width: 620px; }
.enroll-faq-list details a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 850px) {
  .enroll-faq { grid-template-columns: 1fr; gap: 12px; padding-block: 45px 60px; }
}
@media (max-width: 700px) {
  .enroll-rates { padding-top: 28px; }
  /* On a phone, enrolling comes first. */
  .enroll-panel { order: -1; }
  .rate-row.enroll-panel + .rate-row { border-top: 1px dashed #c9bda6; }
  .enroll-panel .checkout-start { align-self: stretch; }
}
@media (max-width: 480px) {
  .checkout-row { flex-direction: column; }
}

/* /welcome, after checkout (server/lib/welcomePage.ts). */
.welcome { padding-block: 48px 80px; }
.welcome .rate-intro h1 { margin: 0; font-size: clamp(36px, 4.4vw, 58px); letter-spacing: -0.025em; }
.welcome .rate-intro h1 em { color: #a3472d; }
.welcome-steps { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border: 1px solid #b9b3a3; background: #fffaf0; box-shadow: 8px 9px 0 #ded7c6; }
.welcome-step { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px; }
.welcome-step + .welcome-step { border-left: 1px dashed #c9bda6; }
.welcome-step h2 { margin: 0; font-size: 28px; }
.welcome-step p { margin: 0; color: var(--muted); }
.welcome-step .eyebrow { color: #a3472d; }
.welcome-step-first { background: var(--ink); color: #f6f1e5; }
.welcome-step-first h2 { color: #f6f1e5; }
.welcome-step-first p { color: #c7c9bc; }
.welcome-step-first .eyebrow { color: #f5d833; }
.welcome-step .button, .welcome-step .text-link { margin-top: auto; }
.welcome-app { display: flex; align-items: center; gap: 14px; }
.welcome-qr { border: 1px solid var(--line); border-radius: 4px; }
.welcome-qr-note { font-size: 14px; }
.welcome-stores { display: flex; gap: 10px; }
.welcome-stores .button { min-height: 40px; padding: 8px 14px; }
.welcome-help { margin-top: 28px; color: var(--muted); }
.welcome-help a { text-decoration: underline; text-underline-offset: 3px; }
@media (hover: none) and (pointer: coarse) { .welcome-app { display: none; } }
@media (max-width: 850px) {
  .welcome-steps { grid-template-columns: 1fr; box-shadow: 4px 5px 0 #ded7c6; }
  .welcome-step + .welcome-step { border-left: 0; border-top: 1px dashed #c9bda6; }
}
.welcome-step-first .button { color: var(--ink); }
.welcome-stores .button { color: var(--ink); background: #fffaf0; }

/* The daycare scene, between the rate sheet and the questions. */
.enroll-scene { padding-block: 30px 10px; }
.enroll-scene-head { text-align: center; }
.enroll-scene-head .eyebrow { color: #a3472d; }
.enroll-scene-head h2 { margin: 10px auto 0; font-size: clamp(32px, 4vw, 52px); }
.enroll-scene-head h2 em { color: #a3472d; }
.enroll-scene .dc-box { margin-top: 34px; }
.enroll-scene-cta { display: flex; justify-content: center; margin-top: 26px; }
.enroll-scene-cta .button { font-size: 16px; padding-inline: 26px; }
#enroll { scroll-margin-top: 24px; }
.welcome-scene { padding-bottom: 60px; border-top: 1px dashed #c9bda6; }
/* /welcome?room=film: name the Room, then it opens (1 Oct 2026). */
.welcome-room { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 4px; }
.welcome-room label { color: #c7c9bc; font-size: 15px; line-height: 1.5; }
.welcome-room textarea { width: 100%; min-height: 96px; padding: 12px 14px; border: 1px solid #4a5046; border-radius: 6px; background: #1b1f1a; color: #f6f1e5; font: 16px/1.5 var(--sans); resize: vertical; }
.welcome-room textarea::placeholder { color: #7f8478; }
.welcome-room textarea:focus { outline: 2px solid #f5d833; outline-offset: 2px; border-color: transparent; }
.welcome-room .button { align-self: flex-start; margin-top: 4px; cursor: pointer; }
.welcome-room .button:disabled { opacity: 0.7; cursor: progress; }
.welcome-room-note { font-size: 13px; }
.welcome-step-first .welcome-room-note.is-error { color: #ffb4a3; }
