/* Landing page ("Night"): a film frame whose burned-in caption is the headline,
   and a delivery file list rising over the frame's lower edge. */
body { font-size: 1.125rem; }

/* Film frame. The caption sits at the top because the file list covers the lower third,
   as captioners do over on-screen graphics. It obeys Filmhub's rules: one line, 17 characters. */
.frame { position: relative; container-type: inline-size; height: min(64vh, 56.25vw); overflow: hidden; background: var(--night); }
.frame .scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; transform: scaleX(-1); } /* mirrored so the lit farmhouse sits left of the file list */
.safe { position: absolute; inset: 5%; border: 1px dashed rgba(255, 255, 255, 0.35); pointer-events: none; }
.safe span { position: absolute; left: 10px; top: 8px; font: 400 max(11px, 1.1cqi)/1 var(--mono); color: rgba(255, 255, 255, 0.7); }
.tc { position: absolute; right: calc(5% + 12px); top: calc(5% + 8px); font: 600 max(12px, 1.5cqi)/1 var(--mono); color: rgba(255, 255, 255, 0.85); }
.frame h1 { position: absolute; left: 0; right: 0; top: 15%; margin: 0; text-align: center; font-weight: 600; font-size: 4.6cqi; line-height: 1.25; letter-spacing: 0; white-space: nowrap; }
.frame h1 span { background: rgba(0, 0, 0, 0.82); color: #fff; padding: 0.08em 0.35em; animation: appear 0s 0.6s both; }

/* Offer and file list */
.lower { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: start; padding-top: 32px; padding-bottom: 56px; }
.lower .manifest { margin-top: calc(-32px - 26vh); }
.lower .lede { font-size: 1.3rem; margin-bottom: 26px; }
.price { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 6px; }
.price-note { color: var(--muted); margin: 0 0 22px; }
.lower .actions { margin: 0; }

.manifest { background: var(--paper); color: var(--paper-ink); border-radius: 8px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.manifest header { padding: 14px 18px; border-bottom: 1px solid var(--paper-line); }
.manifest header strong { display: block; font-family: var(--mono); font-size: 0.92rem; }
.manifest header span { font-size: 0.88rem; color: var(--paper-soft); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 11px 18px; border-bottom: 1px solid var(--paper-line); }
.file { font-family: var(--mono); font-size: 0.88rem; overflow-wrap: anywhere; }
.why { grid-column: 1 / -1; font-size: 0.92rem; color: var(--paper-soft); margin: 0; animation: appear 0s var(--t) both; }
.status { position: relative; justify-self: end; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.status b, .status i { font-style: normal; display: inline-block; padding: 1px 10px; border-radius: 999px; }
.status i { color: var(--paper-soft); animation: vanish 0s var(--t) both; }
.status b { position: absolute; right: 0; top: 0; animation: appear 0s var(--t) both; }
.issue b { background: var(--amber); color: var(--paper-ink); }
.pass b { box-shadow: inset 0 0 0 1.5px var(--paper-ink); }
.skip b { color: var(--paper-soft); box-shadow: inset 0 0 0 1.5px var(--paper-line); }
.rows li:nth-child(1) { --t: 0.9s; }
.rows li:nth-child(2) { --t: 1.3s; }
.rows li:nth-child(3) { --t: 1.7s; }
.rows li:nth-child(4) { --t: 2.1s; }
.rows li:nth-child(5) { --t: 2.5s; }
.rows li:nth-child(6) { --t: 2.9s; }
.manifest footer { padding: 12px 18px; font-size: 0.95rem; background: #f3f5f8; }
.manifest footer a { color: #1747e5; font-weight: 600; }
@keyframes appear { from { visibility: hidden; } to { visibility: visible; } }
@keyframes vanish { to { visibility: hidden; } }

/* Bands */
section.band { border-top: 1px solid var(--line); padding-top: 52px; padding-bottom: 60px; }
.band > p { max-width: 62ch; }
.intro-line { color: var(--muted); margin: -8px 0 28px; max-width: 62ch; }

.stakes { list-style: none; margin: 0; padding: 0; max-width: 46em; }
.stakes li { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.stakes li:last-child { border-bottom: 0; margin-bottom: 0; }
.stakes strong { display: block; font-size: 1.2rem; line-height: 1.3; margin-bottom: 4px; }
.stakes span { color: var(--muted); }
.sources { font-size: 0.92rem; color: var(--muted); margin: 18px 0 0; max-width: 62ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--fg); padding-top: 16px; }
.steps li::before { content: counter(s); font-weight: 800; font-size: 1.1rem; display: block; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { position: absolute; left: 0; top: 10px; font-weight: 800; }
.checklist.yes li::before { content: "✓"; color: var(--ok); }
.checklist.no li::before { content: "✕"; color: var(--error); }
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: 1rem; }

.callout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.callout h2 { margin-bottom: 8px; }
.callout p { margin: 0; color: var(--muted); max-width: 56ch; }

.checked { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.layers { list-style: none; margin: 0; padding: 0; }
.layers li { padding: 0 0 16px 18px; margin: 0 0 16px; border-left: 3px solid var(--amber); }
.layers li:last-child { margin-bottom: 0; }
.layers strong { display: block; font-size: 1.15rem; line-height: 1.3; margin-bottom: 4px; }
.layers span { color: var(--muted); }
.note { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.note blockquote { margin: 0 0 14px; }
.note blockquote p { margin: 0; font-size: 1.15rem; line-height: 1.5; }
.note blockquote p::before { content: "“"; }
.note blockquote p::after { content: "”"; }
.note figcaption { font-weight: 700; }

.platforms { width: 100%; border-collapse: collapse; max-width: 860px; }
.platforms th, .platforms td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.platforms th { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.platforms td small { display: block; color: var(--muted); font-size: 0.92rem; }
.tag { display: inline-block; font-size: 0.88rem; font-weight: 600; padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.tag.ready { background: #183a2a; color: var(--ok); }
.tag.soon { background: var(--note-bg); color: var(--note); }

/* Sign-up form */
.notify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; }
.form label, .form legend { font-weight: 600; font-size: 1rem; }
.form .control { display: flex; flex-direction: column; gap: 6px; }
.form input[type="email"], .form input[type="text"], .form select { font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--field); color: var(--fg); width: 100%; }
.form input:focus-visible, .form select:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.form .optional { font-weight: 400; color: var(--muted); }
.form .other { display: none; }
.form .control:has(option[value="other"]:checked) + .other { display: flex; }
.form .check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 400; }
.form .check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.form .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .button { justify-self: start; }
.form-note { font-size: 0.95rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--error); }
.field-error { color: var(--error); font-size: 0.95rem; font-weight: 400; }
.field-error:empty { display: none; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 1.15rem; min-height: 44px; }
.faq summary::marker { color: var(--muted); }
.faq details p { margin: 0 0 16px; color: var(--muted); max-width: 66ch; }

@media (max-width: 860px) {
  .frame { height: auto; aspect-ratio: 16 / 9; }
  .frame h1 { top: auto; bottom: 11%; }
  .lower { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 28px; }
  .lower .manifest { margin-top: 0; }
  .steps, .split, .checked, .notify { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .callout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .frame { aspect-ratio: 4 / 5; }
  .frame h1 { font-size: 5.2cqi; bottom: 9%; }
  .lower .lede { font-size: 1.2rem; }
  .rows li, .manifest header, .manifest footer { padding-left: 14px; padding-right: 14px; }
  .file { font-size: 0.8rem; }
  .callout { padding: 20px; }
  .form { padding: 18px; }
  .platforms th:nth-child(3), .platforms td:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .frame h1 span, .why, .status b { animation: none; }
  .status i { display: none; }
  .status b { position: static; }
}
.missing b { background: var(--paper-ink); color: #fff; }
