/* /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; }
/* The heading on the left, the daycare as the page's picture on the right
   (17 Oct 2026; it used to be a second section between the price and the
   questions, a second hero after the decision). Phones: after the checkout. */
.enroll-rates { display: grid; grid-template-columns: 1.05fr 1fr; column-gap: 56px; align-items: center; }
.enroll-rates .rate-intro { display: block; grid-column: 1; grid-row: 1; margin: 0 0 40px; }
.enroll-rates .rate-intro > .eyebrow { margin-bottom: 14px; }
.enroll-rates .rate-intro > p:last-child { max-width: 520px; margin-top: 18px; }
.enroll-picture { grid-column: 2; grid-row: 1; margin: 0 0 40px; }
.enroll-picture .dc-box { width: 100%; margin: 0; }
.enroll-picture .dc-scene { border-radius: 16px; }
.enroll-picture .dc-scene::after { border-width: 12px; }
.enroll-picture .dc-caption { margin-top: 10px; font-size: 14px; }
.enroll-rates .rate-sheet { grid-column: 1 / -1; grid-row: 2; }
.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, the full height. Right: the dark panel,
   then the promises under it, so the panel is only as tall as its checkout. */
.enroll-rates .rate-sheet { grid-template-rows: auto 1fr; }
.enroll-included { grid-column: 1; grid-row: 1 / span 2; }
.enroll-panel { grid-column: 2; grid-row: 1; }
.enroll-rates .enroll-promises { grid-column: 2; grid-row: 2; padding: 26px 36px 30px; border-top: 0; border-left: 1px dashed #c9bda6; background: #fffaf0 var(--grain); }
.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; }
.enroll-promises li { margin: 8px 0; font-size: 15px; color: var(--muted); }
.enroll-promises strong { color: var(--ink); }

/* One membership, your whole crew: the honest anchor (16 Oct 2026). */
.enroll-crew { margin: 0 0 24px; padding: 16px 18px 14px; border: 1px solid #c9bda6; background: #fffaf0; }
.enroll-crew .eyebrow { color: #a3472d; margin-bottom: 8px; }
.crew-compare { width: 100%; border-collapse: collapse; }
.crew-compare th, .crew-compare td { padding: 8px 0; text-align: left; font-size: 15px; vertical-align: top; }
.crew-compare th { font-weight: 400; color: var(--muted); padding-right: 12px; }
.crew-compare td { white-space: nowrap; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.crew-compare tr + tr th, .crew-compare tr + tr td { border-top: 1px dashed #c9bda6; }
.crew-compare-us th { color: var(--ink); font-weight: 700; }
.crew-compare-us td { color: var(--ink); font-size: 18px; }

/* Beta price: a pill beside "locked in", under the price; the rise is fine print. */
.founding-pill { display: inline-block; padding: 4px 10px; border: 1px solid rgb(245 216 51 / 55%); border-radius: 999px; background: rgb(245 216 51 / 12%); color: #f5d833; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.enroll-beta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 18px 0 0; color: #f6f1e5; font-size: 16px; }

/* 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 .membership-prices .rate-price { margin-bottom: 0; }
#membership-billing { margin: 4px 0 0; }
#membership-billing:empty { display: none; }
/* One big button, the line that says what it does, then small print. */
.enroll-panel .checkout-start { align-self: stretch; min-height: 58px; font-size: 17px; padding-inline: 26px; }
.checkout-summary { color: #f6f1e5; font-weight: 600; }
.enroll-checkout > .enroll-fine { margin-top: 6px; font-size: 13px; line-height: 1.55; }
.enroll-panel .enroll-fine { color: #9a9d90; }
/* Room to breathe (17 Oct 2026): more padding, more air between the steps. */
.enroll-rates .enroll-panel { gap: 40px; padding: 56px 56px 60px; }
.enroll-panel .enroll-panel-title { margin: 0 0 28px; }
.enroll-panel .billing-toggle { margin-bottom: 32px; }
.enroll-checkout { gap: 18px; }
.enroll-rates .enroll-included { padding: 56px 48px 60px; }
.enroll-rates .enroll-promises { padding: 36px 56px 40px; }
@media (max-width: 1100px) {
  .enroll-rates .enroll-panel { padding: 44px 40px 48px; }
  .enroll-rates .enroll-included { padding: 44px 36px 48px; }
  .enroll-rates .enroll-promises { padding: 30px 40px 36px; }
}
@media (max-width: 700px) { .enroll-rates .enroll-panel { gap: 30px; padding: 36px 22px 40px; } }
.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; }
/* Continue with Google or Apple above the email step (server/lib/authProviders.ts). */
.checkout-auth .auth-providers { display: grid; gap: 10px; }
.checkout-auth .auth-provider { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; border-radius: 3px; background: #fffaf0; color: #1f1f1f; font-weight: 700; text-decoration: none; }
.checkout-auth .auth-provider:hover { background: #ece6d8; }
.checkout-auth .auth-provider:focus-visible { outline: 3px solid #f5d833; outline-offset: 2px; }
.checkout-auth .auth-google svg { width: 18px; height: 18px; }
.checkout-auth .auth-apple svg { width: 16px; height: 19px; fill: currentColor; }
.checkout-auth .auth-consent { margin: 10px 0 0; font-size: 13px; color: #c7c9bc; text-align: center; }
.checkout-auth .auth-consent a { color: #f5d833; }
/* Continue with email: the third door, the same size as the other two; its
   steps open in place (server/lib/authProviders.ts). */
.checkout-auth .auth-mail-door { margin-top: 10px; }
.checkout-auth .auth-mail { cursor: pointer; list-style: none; }
.checkout-auth .auth-mail::-webkit-details-marker { display: none; }
.checkout-auth .auth-mail svg { width: 18px; height: 18px; }
.checkout-auth .auth-mail-door[open] .auth-mail { background: #ece6d8; }
.checkout-auth .auth-mail-body { margin-top: 14px; }
.checkout-auth [hidden] { display: none; }
.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: 900px) {
  .enroll-rates { grid-template-columns: 1fr; }
  .enroll-rates .rate-intro { margin-bottom: 28px; }
  .enroll-picture { grid-column: 1; grid-row: 3; margin: 44px 0 0; }
}
@media (max-width: 850px) {
  /* One column: enrolling first, then what's included, then the promises. */
  .enroll-rates .rate-sheet { grid-template-columns: 1fr; }
  .enroll-included, .enroll-panel, .enroll-rates .enroll-promises { grid-column: 1; grid-row: auto; }
  .enroll-panel { order: -1; border: 0; }
  .enroll-rates .enroll-promises { padding: 22px 26px 26px; border-left: 0; border-top: 1px dashed #c9bda6; }
  .enroll-rates .enroll-included { padding: 36px 26px 32px; }
  .enroll-faq { grid-template-columns: 1fr; gap: 12px; padding-block: 45px 60px; }
}
@media (max-width: 700px) {
  .enroll-rates { padding-top: 28px; }
  .enroll-rates .enroll-promises { padding: 20px 16px 24px; }
  .enroll-rates .enroll-included { padding: 32px 16px 28px; }
}
@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; }

#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; }
