/* Flatbed · the site · the pages beside the night: pricing, the legal pages, contact.
   They are static: no script, nothing moves but hovers and the FAQ's disclosure. Night tokens from site.css; no borders, fills only. */

:root { --fill: #111; --fill-2: #161616; --fill-3: #1d1d1d; --max: 1320px; }
.page { min-height: 100vh; }
.page .nav { position: absolute; }
/* on a wide screen the nav and the foot line up with the content's column, as the home page's line up with its margins */
.page .nav, .foot--page { padding-left: max(var(--m), calc((100% - var(--max)) / 2)); padding-right: max(var(--m), calc((100% - var(--max)) / 2)); }
.wrap { width: min(100%, calc(var(--max) + 2 * var(--m))); margin: 0 auto; padding: 0 var(--m); }
.page h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); }
.page .lede { color: var(--grey); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(230, 214, 180, 0.12); color: var(--bone); font-size: 0.75rem; }
.link { text-decoration: underline; text-decoration-color: rgba(237, 237, 237, 0.35); text-underline-offset: 0.2em; transition: text-decoration-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .link:hover { text-decoration-color: currentColor; } }

/* ---------- the opening picture: one still of the film, melting into the black under the words ---------- */
.intro { position: relative; display: flex; align-items: flex-end; min-height: min(64vh, 640px); padding: 140px 0 clamp(36px, 6vh, 64px); overflow: hidden; }
.intro__pic { position: absolute; inset: 0; }
.intro__pic img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 14%); opacity: 0.62; }
.intro__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 9, 9, 0.55), rgba(9, 9, 9, 0.1) 30%, rgba(9, 9, 9, 0.35) 62%, var(--well) 98%); }
.intro .wrap { position: relative; z-index: 1; width: min(100%, calc(var(--max) + 2 * var(--m))); }
.intro h1 { font-size: clamp(2.5rem, 5.6vw, 5.5rem); max-width: 11em; }
.intro .lede { margin-top: clamp(16px, 2.4vh, 24px); color: var(--ink); max-width: 30em; }

/* ---------- the billing toggle: two radios, so it works with no script; :has() shows one set of prices ---------- */
.toggle { position: relative; display: inline-flex; gap: 4px; margin: 0 0 28px; padding: 4px; border: 0; border-radius: 999px; background: var(--fill-2); }
.toggle legend { padding: 0; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.toggle label { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; color: var(--grey); font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.toggle input:checked + label { background: rgba(237, 237, 237, 0.14); color: var(--ink); }
.toggle input:focus-visible + label { outline: 2px solid var(--bone); outline-offset: 2px; }
.toggle__save { color: var(--bone); font-weight: 400; font-size: 0.8125rem; }
.per-year { display: none !important; }
.pricing:has(#bill-year:checked) .per-year { display: revert !important; }
.pricing:has(#bill-year:checked) .per-month { display: none !important; }
.pricing:has(#bill-year:checked) .btn.per-year { display: inline-flex !important; }
.pricing:has(#bill-year:checked) .plan__price .per-year { display: flex !important; }

/* ---------- the plans ---------- */
.pricing { padding-top: 8px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 28px 26px 30px; border-radius: 22px; background: var(--fill); }
.plan.is-primary { background: var(--fill-3); }
.plan__name { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; }
.plan__blurb { margin-top: 4px; color: var(--grey); font-size: 0.9375rem; min-height: 1.5em; }
.plan__price { margin-top: 26px; min-height: 4.6rem; }
.plan__price, .plan__price > span { display: flex; flex-direction: column; }
.plan__amount { font-size: clamp(2.5rem, 3.4vw, 3.25rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.plan__unit { margin-top: 8px; color: var(--grey); font-size: 0.875rem; }
.plan .btn { width: 100%; margin-top: 22px; }
.plan .btn--quiet { height: 52px; font-size: 1rem; }
.plan__credits { margin-top: 26px; color: var(--grey); font-size: 0.9375rem; }
.plan__credits b { color: var(--ink); font-weight: 600; font-size: 1.125rem; }
/* one small poster for each short film the month's credits make */
.plan__films { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 12px; }
.plan__films i { width: 6px; height: 9px; border-radius: 1.5px; background: var(--bone); opacity: 0.8; }
.plan__has { display: grid; gap: 10px; margin-top: 22px; font-size: 0.9375rem; color: #cfcfcf; }
.plan__has li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.35; }
.plan__has .ico { width: 16px; height: 16px; margin-top: 2px; color: var(--bone); stroke-width: 2; }
.plans__estimate { margin-top: 22px; max-width: 72ch; color: var(--grey); font-size: 0.9375rem; }
.plans__note { margin-top: 22px; color: var(--grey); font-size: 0.9375rem; }
.plans__estimate + .plans__note { margin-top: 8px; }
.plans__note a { color: var(--ink); }
.every { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 44px; color: var(--grey); font-size: 0.9375rem; }
.every li { display: inline-flex; align-items: center; gap: 10px; }
.every .ico { width: 20px; height: 20px; color: var(--ink); }

/* ---------- what a credit buys ---------- */
.section { padding-top: clamp(88px, 13vh, 150px); }
.section__head { max-width: 40rem; }
.section__head .lede { margin-top: 16px; }
.rates { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
/* Two rates (plans.json's sound off): two tiles across, as wide as the model film under them. */
.rates:has(> .rate:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rate { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; padding: 24px; border-radius: 18px; background: var(--fill); }
.rate .ico { width: 26px; height: 26px; color: var(--bone); }
.rate__what { font-weight: 600; line-height: 1.3; }
.rate__n { color: var(--grey); font-size: 0.875rem; }
.rate__n .mono { display: block; margin-bottom: 2px; color: var(--ink); font-size: 2rem; line-height: 1.1; letter-spacing: -0.02em; }
.film-cost { margin: 12px 0 0; padding: 28px 28px 30px; border-radius: 18px; background: var(--fill); }
.film-cost__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-weight: 600; font-size: 1.125rem; }
.film-cost__bar { width: 100%; height: 12px; margin-top: 22px; border-radius: 6px; overflow: hidden; }
.film-cost__bar rect { fill: #4a4a4a; }
.film-cost__bar .bar--time, .key--time { fill: var(--bone); background: var(--bone); }
.film-cost__bar .bar--render, .key--render { fill: #b39b62; background: #b39b62; }
.film-cost__bar .bar--music, .key--music { fill: #a8a8a8; background: #a8a8a8; }
.film-cost__bar .bar--effect, .key--effect { fill: #767676; background: #767676; }
.film-cost__bar .bar--voice, .key--voice { fill: #525252; background: #525252; }
.film-cost__total { margin-top: 18px; color: var(--grey); }
.film-cost__total b { color: var(--ink); font-weight: 600; }
.film-cost__parts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 14px; color: var(--grey); font-size: 0.9375rem; }
.film-cost__parts li { display: inline-flex; align-items: center; gap: 10px; }
.film-cost__parts .mono { color: var(--ink); }
.key { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* ---------- packs ---------- */
.packs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.pack { display: grid; gap: 6px; padding: 26px 26px 28px; border-radius: 18px; background: var(--fill); }
.pack__credits { color: var(--grey); }
.pack__credits b { color: var(--ink); font-weight: 600; font-size: 1.25rem; }
.pack__price { font-size: 2.25rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: 6px; }
.pack__per { color: var(--grey); }

/* ---------- questions: native disclosures ---------- */
.faq__list { display: grid; gap: 8px; margin-top: 40px; max-width: 52rem; }
.faq details { border-radius: 16px; background: var(--fill); transition: background-color 200ms ease; }
.faq details[open] { background: var(--fill-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px 22px 16px 24px; font-weight: 600; font-size: 1.0625rem; cursor: pointer; list-style: none; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 20px; height: 20px; color: var(--grey); transition: transform 240ms var(--ui); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: 2px; }
.faq details > div { padding: 0 24px 22px; color: #c4c4c4; max-width: 44rem; }
.faq details > div p + p { margin-top: 10px; }
.faq details a { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .faq details:not([open]):hover { background: #141414; } }

/* ---------- the close ---------- */
.cta { padding-top: clamp(110px, 16vh, 180px); padding-bottom: clamp(90px, 13vh, 140px); }
.cta h2 { font-size: clamp(2.75rem, 6.6vw, 6.5rem); }
.cta .actions { margin-top: clamp(26px, 4vh, 40px); }

/* ---------- the site's foot under a page (on the home page it sits in the close) ---------- */
.foot--page { position: static; padding-top: 40px; padding-bottom: 40px; }
.foot--page .foot__links { margin-left: 18px; }

/* ---------- the legal pages ---------- */
.doc { padding: 136px 0 40px; }
.doc .wrap { display: grid; grid-template-columns: 15rem minmax(0, 44rem); gap: 24px clamp(40px, 7vw, 120px); align-items: start; }
.doc__head { grid-column: 1 / -1; max-width: 44rem; }
.doc__head h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.doc__date { margin-top: 18px; color: var(--grey); }
.draft { display: flex; gap: 14px; margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: rgba(230, 214, 180, 0.1); color: var(--ink); font-size: 0.9375rem; }
.draft .ico { width: 22px; height: 22px; color: var(--bone); margin-top: 1px; }
.draft b { color: var(--bone); font-weight: 600; }
.doc__toc { position: sticky; top: 32px; padding-top: 6px; }
.doc__toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.doc__toc a { display: block; padding: 6px 0; color: var(--quiet); font-size: 0.875rem; line-height: 1.35; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .doc__toc a:hover { color: var(--ink); } }
.doc__body { color: #cfcfcf; font-size: 1.0625rem; line-height: 1.65; }
.doc__body section { scroll-margin-top: 32px; }
.doc__body section + section { margin-top: 44px; }
.doc__body h2 { margin: 0 0 14px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.doc__body h3 { margin: 22px 0 8px; font-size: 1.125rem; color: var(--ink); }
.doc__body p, .doc__body ul, .doc__body ol, .doc__body table { margin: 0; }
.doc__body p + p, .doc__body p + ul, .doc__body ul + p, .doc__body p + table, .doc__body table + p, .doc__body ol + p, .doc__body p + ol { margin-top: 14px; }
.doc__body ul, .doc__body ol { padding-left: 1.25em; display: grid; gap: 8px; }
.doc__body ul { list-style: disc; }
.doc__body li::marker { color: var(--quiet); }
.doc__body strong { color: var(--ink); font-weight: 600; }
.doc__body a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(237, 237, 237, 0.35); text-underline-offset: 0.2em; }
.doc__body table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 0.9375rem; line-height: 1.5; }
.doc__body th { text-align: left; color: var(--grey); font-weight: 400; font-size: 0.8125rem; padding: 0 14px 2px; }
.doc__body td { padding: 12px 14px; background: var(--fill); vertical-align: top; }
.doc__body td:first-child { border-radius: 12px 0 0 12px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.doc__body td:last-child { border-radius: 0 12px 12px 0; }
.doc__body code { font: inherit; font-size: 0.875em; color: var(--ink); }
/* set on the element, not under a class, so tools/subset-fonts.py does not take the class around it for mono */
code { font-family: "Commit Mono", "Mono Fallback", ui-monospace, monospace; }
/* what the owner fills in before launch: bone on a bone wash, so none ships unnoticed (check.mjs --launch fails on any) */
.fill { padding: 0.05em 0.35em; border-radius: 6px; background: rgba(230, 214, 180, 0.16); color: var(--bone); box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 56rem; }
.contact li { display: grid; align-content: start; gap: 6px; padding: 24px 26px; border-radius: 18px; background: var(--fill); }
.contact .ico { width: 24px; height: 24px; color: var(--bone); margin-bottom: 8px; }
.contact b { font-weight: 600; font-size: 1.0625rem; }
.contact span { color: var(--grey); font-size: 0.9375rem; }
.contact a { color: var(--ink); justify-self: start; }
.contact__note { margin-top: 24px; color: var(--grey); max-width: 40rem; }

/* ============================================================ narrower ============================================================ */
@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc .wrap { grid-template-columns: minmax(0, 1fr); }
  .doc__toc { display: none; }
}
@media (max-width: 720px) {
  .intro { min-height: 0; padding-top: 128px; }
  .intro__pic img { opacity: 0.5; }
  .plans, .packs__list, .contact { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 24px 22px 26px; }
  .plan__price { min-height: 0; }
  .toggle { display: flex; }
  .toggle label { flex: 1; justify-content: center; padding: 0 12px; }
  .rates, .rates:has(> .rate:nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rate { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: none; align-items: center; gap: 14px; padding: 16px 18px; }
  .rate__n { text-align: right; }
  .rate__n .mono { font-size: 1.375rem; }
  .film-cost { padding: 22px 20px 24px; }
  .film-cost__parts { flex-direction: column; gap: 8px; }
  .film-cost__parts li { justify-content: space-between; }
  .film-cost__parts li span:first-of-type { flex: 1; }
  .faq summary { padding: 14px 18px; font-size: 1rem; }
  .faq details > div { padding: 0 18px 20px; }
  .doc { padding-top: 112px; }
  .doc__body { font-size: 1rem; }
  .doc__body table, .doc__body tbody, .doc__body tr, .doc__body td { display: block; }
  .doc__body thead { display: none; }
  .doc__body tr { margin-top: 8px; border-radius: 12px; background: var(--fill); }
  .doc__body td { background: none; padding: 4px 16px; }
  .doc__body td:first-child { padding-top: 14px; white-space: normal; }
  .doc__body td:last-child { padding-bottom: 14px; }
  .foot--page { padding-top: 32px; }
  .foot--page .foot__links { margin-left: 0; }
}
.cta .watch .ico { fill: none; width: 18px; height: 18px; }
/* the stop sits to the right of the words, melting into the black on its left */
.intro--contact .intro__pic { left: 34%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 36%); mask-image: linear-gradient(90deg, transparent, #000 36%); }
.intro--contact .intro__pic img { opacity: 0.85; object-position: 50% 60%; }
.contact .fill { justify-self: start; color: var(--bone); font-size: 0.9375rem; }
.intro--contact + .wrap { padding-top: 8px; }
@media (max-width: 720px) {
  .packs__list .pack { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px; padding: 20px 22px; }
  .pack__price { grid-row: 1 / 3; grid-column: 2; margin: 0; font-size: 1.75rem; align-self: center; }
}
@media (max-width: 720px) {
  .intro--contact { padding-top: 66vw; }
  .intro--contact .intro__pic { left: -20%; right: -20%; bottom: 96px; -webkit-mask-image: none; mask-image: none; }
}
