/* The pages after the album: sign-up and payment, the making of the film, and the film itself.
   Same materials as the homepage (styles.css): green album cloth, white print paper, film yellow, tape. */

/* ---------- header: where you are on the way to the film ---------- */
.flowbar { gap: 20px; }
.flowbar .brand { min-height: 44px; }
.flow-steps { list-style: none; margin: 0; margin-inline-start: auto; padding: 0; display: flex; align-items: center; counter-reset: st; }
.flow-steps li { counter-increment: st; display: flex; align-items: center; gap: 8px; color: var(--on-cloth-soft); font-size: var(--step--1); font-weight: 500; white-space: nowrap; }
.flow-steps li::before {
  content: counter(st); flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor; font: 600 .85rem/1 var(--font-body);
}
.flow-steps li:not(:last-child)::after { content: ""; width: clamp(14px, 2.4vw, 34px); margin-inline: 10px 2px; border-top: 2px dotted var(--cloth-line); }
.flow-steps li.done::before { content: "✓"; background: var(--film); color: var(--ink); box-shadow: none; }
.flow-steps li[aria-current="step"] { color: var(--on-cloth); font-weight: 600; }
.flow-steps li[aria-current="step"]::before { background: var(--tomato); color: #fff; box-shadow: none; }
.flow-steps a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; }
.flow-steps li.done:has(> a)::before { display: none; }
.flow-steps li.done > a::before { content: "✓"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--film); color: var(--ink); font: 600 .85rem/1 var(--font-body); }
.flow-steps a:hover { color: var(--on-cloth); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) {
  /* on a phone only the current step keeps its name; the others are numbered dots */
  .flow-steps li:not([aria-current="step"]) .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .flow-steps li:not(:last-child)::after { width: 12px; margin-inline: 6px 0; }
  .flow-steps li { gap: 6px; }
  .flowbar .brand { font-size: 2rem; }
}
@media (max-width: 480px) {
  .flowbar { gap: 10px; padding-inline: 16px; }
  .flowbar .brand { font-size: 1.8rem; }
  .flow-steps li { font-size: .85rem; gap: 5px; }
  .flow-steps li::before, .flow-steps li.done > a::before { width: 24px; height: 24px; font-size: .75rem; }
  .flow-steps li:not(:last-child)::after { width: 6px; margin-inline: 4px 0; }
}

/* ---------- shared page frame ---------- */
.flow-main { max-width: 1180px; margin: 0 auto; padding: clamp(26px, 4vw, 52px) var(--gutter) clamp(44px, 6vw, 80px); }
.flow-head { display: grid; gap: 10px; margin-bottom: clamp(20px, 3vw, 32px); max-width: 62ch; }
.flow-head h1 { font-size: var(--step-3); }
.flow-head p:not(.kicker) { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; text-wrap: pretty; }
.flow-foot { padding-bottom: 28px; }
.input {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #aab6ae; background: #fff;
  font: 500 var(--step-0)/1.2 var(--font-body); color: var(--ink);
}
.input::placeholder { color: #6f7c75; }
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: #a1260f; }
.input[readonly] { background: #f3f1ea; color: var(--ink-soft); }
.field small { font-weight: 400; color: var(--ink-soft); }
.nobr { white-space: nowrap; }
.price { font-family: var(--font-body); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- checkout: the album spread again, the form on the right page and the order on the left ---------- */
.checkout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pay-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-content: start; }
.pay-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.pay-block + .pay-block { margin-top: 28px; padding-top: 26px; border-top: 1.5px dashed rgba(23, 32, 28, .22); }
.pay-block h2 { font: 700 2.4rem/1 var(--font-display); display: flex; align-items: center; gap: 12px; }
.pay-no { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; background: var(--tomato); color: #fff; font: 600 1.15rem/1 var(--font-body); transform: rotate(-4deg); box-shadow: var(--shadow-print); }
.pay-block:nth-of-type(2) .pay-no { background: var(--film); color: var(--ink); transform: rotate(3deg); }
.pay-lead { color: var(--ink-soft); font-size: var(--step--1); margin-top: -4px; }
.sso, .express { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 16px;
  border: 0; border-radius: 999px; background: #fff; color: var(--ink); cursor: pointer;
  font: 600 var(--step-0)/1 var(--font-body); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color .2s ease;
}
.btn-line:hover { background: color-mix(in srgb, var(--film) 22%, #fff); }
.btn-line svg { flex: none; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: none; }
.btn-dark:hover { background: #2c3933; }
.btn-line[disabled] { opacity: .55; cursor: progress; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: var(--step--1); }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid rgba(23, 32, 28, .18); }
.contact-fields { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; }
.signed { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--sky) 26%, #fff); font-weight: 500; }
.signed-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cloth); color: #fff; font-size: .85rem; }
.signed .link { margin-inline-start: auto; }
.card-demo { position: relative; display: grid; gap: 12px; padding: 18px 16px 16px; border-radius: 12px; background: #fffdf7 var(--grain); box-shadow: 0 1px 0 rgba(23, 32, 28, .08), 0 8px 16px -10px rgba(23, 32, 28, .35); }
.card-demo::before { content: ""; position: absolute; top: -8px; inset-inline-start: 22px; width: 52px; height: 16px; background: color-mix(in srgb, var(--sky) 55%, transparent); transform: rotate(-4deg); }
.card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-tag { justify-self: start; font: 500 .9rem/1.3 var(--font-hand); color: var(--tomato-deep); }
.pay-go { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 26px; }
.pay-go .btn { min-height: 58px; font-size: var(--step-1); }
/* a narrow phone: the pay button's price fits on the line */
@media (max-width: 380px) { .pay-go .btn, .dock .btn { font-size: 1rem; padding-inline: 16px; } }
.secure { display: flex; align-items: flex-start; gap: 8px; font-size: var(--step--1); color: var(--ink-soft); }
.secure svg { flex: none; margin-top: 3px; }
.pay-go .secure, .pay-go .guarantee { line-height: 1.5; font-size: var(--step--1); }
/* how Stripe's page takes the money, right under the button that opens it; cards, Apple Pay and Link are on */
.pay-marks { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: -2px 0 0; }
.pm { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 9px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px rgba(23, 32, 28, .18); font: 600 .8rem/1 var(--font-body); color: var(--ink); }
/* the brands' own marks (Apple Pay's is the whole black card) */
.pm-apple { padding: 0; background: none; box-shadow: none; }
.pm-gpay { font: 600 .9rem/1 var(--font-body); color: #3c4043; direction: ltr; gap: 2px; }
.pm-gpay[hidden] { display: none; }
.pm-gpay .g { font-weight: 700; background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pm-mc { padding: 0 6px; }
.pay-go .code-open { justify-self: center; color: var(--ink-soft); font-size: var(--step--1); }
.pay-go .invite-box { margin-top: -8px; justify-items: center; }
.pay-go .invite-box .field { justify-self: stretch; }
.pay-go .invite-box .use-code { color: var(--ink-soft); font-size: var(--step--1); text-align: center; }
.demo-note { font-size: var(--step--1); color: var(--ink-soft); background: color-mix(in srgb, var(--film) 20%, #fff); padding: 8px 12px; border-radius: 8px; }

/* the order: prints of the album, then a receipt */
.summary .sum-sticky { display: grid; gap: 18px; align-content: start; }
@media (min-width: 901px) { .summary .sum-sticky { position: sticky; top: 96px; } } /* the order stays beside the form */
.summary .page-head { margin-bottom: 0; }
.sum-toggle { display: none; justify-self: start; }
.pay-mark { gap: 5px; }
.pay-mark span { font: 600 1.15rem/1 var(--font-body); }
.pay-bit span { font: 700 1.4rem/1 var(--font-body); letter-spacing: -.03em; }
.sum-occ { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--ink-soft); font-size: var(--step--1); }
.sum-title { font: 500 1.45rem/1.35 var(--font-hand); color: var(--ink); }
.sum-prints { list-style: none; margin: 0; padding: 12px 0 4px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 12px; }
.sum-prints li { position: relative; background: var(--print) var(--grain); padding: 4px 4px 12px; box-shadow: var(--shadow-print); transform: rotate(var(--r, 0deg)); }
.sum-prints li::before { content: ""; position: absolute; top: -6px; left: 50%; width: 46%; height: 11px; background: var(--tape); transform: translateX(-50%) rotate(var(--tr, -3deg)); }
.sum-prints img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sum-prints .more { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--film); font: 600 1.2rem/1 var(--font-body); color: var(--ink); }
.receipt { margin: 0; display: grid; gap: 10px; padding: 16px 0 0; border-top: 1.5px dashed rgba(23, 32, 28, .25); }
.receipt div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.receipt dt { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.45; }
.receipt dd { margin: 0; font: 600 var(--step-0)/1 var(--font-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt .total { padding-top: 12px; border-top: 1px solid rgba(23, 32, 28, .18); }
.receipt .total dt { color: var(--ink); font-weight: 600; font-size: var(--step-0); }
.receipt .total dd { font-size: 2rem; color: var(--tomato-deep); }
.receipt .total .was { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }
.sum-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--step--1); color: var(--ink-soft); }
.sum-facts strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; }
  .checkout .summary { order: -1; margin: 0 0 10px; }
  /* before sign-in the phone opens on the email field; the order follows it */
  .signed-out .checkout .summary, .email-first .checkout .summary { order: 1; margin: 18px 0 0; }
  .summary .sum-sticky { gap: 12px; }
  .summary:not(.open) .sum-detail, .summary:not(.open) .receipt div:not(.total) { display: none; }
  .summary:not(.open) .receipt { padding-top: 4px; }
  .summary:not(.open) .receipt .total { padding-top: 0; border-top: 0; }
  .sum-toggle { display: inline-flex; margin-top: -8px; }
  .flow-page:has(#payDock) .flow-foot { padding-bottom: calc(28px + 76px); }
  .flow-page.signed-out:has(#payDock) .flow-foot { padding-bottom: 28px; }
  .sum-prints { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 8px; }
  .contact-fields { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .sum-prints { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pay-block h2 { font-size: 2.1rem; } }

/* ---------- making: a darkroom where the prints develop one by one ---------- */
.darkroom { background: radial-gradient(90% 70% at 50% 30%, rgba(201, 58, 31, .16), transparent 70%), var(--weave), var(--cloth); color: var(--on-cloth); }
.wake { max-width: 1120px; margin: 0 auto; padding: clamp(28px, 4vw, 52px) var(--gutter) clamp(40px, 5vw, 64px); display: grid; gap: clamp(18px, 2.4vw, 28px); }
.wake-head { display: grid; gap: 10px; justify-items: center; text-align: center; }
.wake-head .kicker { color: var(--film); }
.wake-head h1 { font-size: var(--step-3); color: var(--on-cloth); }
.wake-sub { color: var(--on-cloth-soft); font-size: var(--step-1); line-height: 1.45; }
.wake-sub .sep { opacity: .55; margin-inline: 2px; }
@media (max-width: 600px) { .wake-sub .t { display: block; } .wake-sub .t + .sep { display: none; } }
.wake-prints { list-style: none; margin: 0 auto; padding: 14px 0 6px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap, 22px 16px); max-width: 1000px; }
.wake-prints li { width: var(--w, 132px); position: relative; background: var(--print); padding: 5px 5px 20px; box-shadow: 0 2px 2px rgba(0, 0, 0, .2), 0 16px 24px -14px rgba(0, 0, 0, .75); transform: rotate(var(--r, 0deg)); transition: transform .5s ease; }
.wake-prints li::before { content: ""; position: absolute; z-index: 2; top: -7px; left: 50%; width: 44%; height: 12px; background: var(--tape); transform: translateX(-50%) rotate(var(--tr, -3deg)); }
.wake-prints figure { margin: 0; }
.wake-prints .ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #2a2622; }
.wake-prints img, .wake-prints video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wake-prints img { filter: grayscale(1) sepia(.35) contrast(.75) brightness(.55); transition: filter 1.4s ease; }
.wake-prints video { opacity: 0; transition: opacity .6s ease; }
.wake-prints li.awake img { filter: none; }
/* a clip fades in once it is really moving, so a photo coming alive reads as a moment rather than a swap; the print
   lifts a little off the table as it wakes */
.wake-prints li.awake video.on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .wake-prints li:has(video.on):not(.now) { transform: rotate(var(--r, 0deg)) translateY(-6px) scale(1.03);
    box-shadow: 0 3px 3px rgba(0, 0, 0, .22), 0 24px 30px -14px rgba(0, 0, 0, .85); }
  .wake-prints li { transition: transform .6s ease, box-shadow .6s ease; }
}
.wake-prints li.awake:not(.has-clip) img { animation: breathe 3.2s ease-in-out infinite alternate; }
.wake-prints li.now { transform: rotate(var(--r, 0deg)) translateY(-6px) scale(1.06); }
.wake-prints li.now::after { content: ""; position: absolute; inset: -4px; border-radius: 2px; box-shadow: 0 0 0 3px var(--film); pointer-events: none; }
.wake-prints li:has(figcaption) { padding-bottom: 5px; }
.wake-prints figcaption { padding: 3px 0 0; text-align: center; font: 500 .74rem/1.15 var(--font-hand); color: var(--ink); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: calc(2.3em + 3px); overflow-wrap: anywhere; }
.wake-bar { width: min(560px, 100%); margin: 0 auto; }
.wake-bar .bar span { transition: width .5s ease; }
.wake-bar p { margin-top: 10px; text-align: center; color: var(--on-cloth-soft); font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.ready { display: grid; justify-items: center; gap: 14px; text-align: center; }
.ready .btn { min-height: 58px; font-size: var(--step-1); padding-inline: 2em; }
.ready p { color: var(--on-cloth-soft); }
.wake-notes { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(18px, 3vw, 34px); align-items: start; margin-top: 8px; }
.note-card { position: relative; background: #fbf8f0 var(--paper); color: var(--ink); padding: 22px clamp(18px, 2.4vw, 28px) 20px; border-radius: 3px; box-shadow: 0 2px 2px rgba(0, 0, 0, .2), 0 24px 34px -20px rgba(0, 0, 0, .8); }
.note-card::before { content: ""; position: absolute; top: -10px; left: 50%; width: 90px; height: 20px; background: var(--tape); transform: translateX(-50%) rotate(-2deg); }
.note-card:nth-child(2) { transform: rotate(.8deg); }
.note-card h2 { font: 700 2.1rem/1 var(--font-display); margin-bottom: 14px; }
.wake-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wake-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 12px; align-items: start; padding: 8px 0; color: var(--ink-soft); }
.wake-steps li::before { content: ""; grid-row: span 2; width: 26px; height: 26px; margin-top: 1px; border-radius: 4px; border: 1.5px dashed #7d8a83; }
.wake-steps li strong { font-weight: 600; }
.wake-steps li small { grid-column: 2; font-size: .9rem; overflow-wrap: anywhere; }
.wake-steps li.done { color: var(--ink); }
.wake-steps li.done::before { border: 0; background: no-repeat center / 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M4 14c3 2 5 5 6 8 3-8 7-14 13-19' fill='none' stroke='%23b8331b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.wake-steps li.now { color: var(--ink); }
.wake-steps li.now::before { border: 0; background: var(--film); animation: pulse 1.2s ease-in-out infinite alternate; }
/* the film stopped: the step it stopped at is crossed out in red and the bar goes grey */
.wake-steps li.stopped { color: var(--ink); }
.wake-steps li.stopped::before { border: 0; background: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M4 4l14 14M18 4L4 18' fill='none' stroke='%23b8331b' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }
.bar.stopped span { background: #8c948f; }
.wake-net { margin-top: 6px; text-align: center; color: var(--on-cloth); font-size: var(--step--1); }
.sign-here { display: grid; gap: 10px; margin-top: 14px; }
.sign-here .row { display: flex; gap: 8px; flex-wrap: wrap; }
.sign-here .input { flex: 1 1 200px; }
.sign-here .err { color: var(--tomato-deep); font-size: .92rem; }
@keyframes pulse { from { transform: scale(.82) rotate(-6deg); } to { transform: scale(1) rotate(4deg); } }
.leave p { color: var(--ink-soft); }
.leave p + p { margin-top: 10px; }
.leave strong { color: var(--ink); font-weight: 600; }
.leave a { white-space: nowrap; }
.leave bdi { font-weight: 600; color: var(--ink); white-space: nowrap; }
.wake-notes.single { grid-template-columns: minmax(0, 620px); justify-content: center; }
@media (max-width: 860px) { .wake-notes { grid-template-columns: 1fr; } .note-card:nth-child(2) { transform: none; } }

/* ---------- the film ---------- */
.film-wrap::after { display: block; }
.film-hero { max-width: 1060px; margin: 0 auto; padding: clamp(24px, 3.4vw, 46px) var(--gutter) clamp(44px, 5vw, 64px); display: grid; gap: clamp(16px, 2vw, 22px); }
.film-hero > * { min-width: 0; } /* a long line wraps instead of widening the column */
.film-head { display: grid; gap: 8px; }
.film-head h1 { font-size: var(--step-3); color: var(--on-cloth); }
.film-meta { color: var(--on-cloth-soft); font-size: var(--step-0); }
.film-meta .sep { opacity: .5; margin-inline: 2px; }
@media (max-width: 600px) { .film-meta .music { display: block; } .film-meta .before-music { display: none; } }
.film-screen { border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.screen-play {
  position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px; border: 0; cursor: pointer;
  background: radial-gradient(60% 55% at 50% 42%, rgba(8, 20, 15, .3), transparent 75%); color: #fff; font: 600 var(--step-1)/1 var(--font-body); padding-bottom: 12%;
}
.screen-play .disc { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--film); color: var(--ink); font-size: 1.7rem; padding-inline-start: 6px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .7); transition: transform .2s ease; }
.screen-play:hover .disc { transform: scale(1.06); }
.play-label { text-shadow: 0 2px 10px rgba(0, 0, 0, .7); }
@media (max-width: 600px) { .play-label { display: none; } .screen-play { padding-bottom: 22%; } } /* the film's title sits under the button */
.film-screen .slide.poster-slide { opacity: 1; }
.film-screen .slide.on .whole, .film-screen .slide.on .fill { animation-duration: 5.2s; } /* 5 s per photo, as in the real film */
/* before play the film's title reads white over the poster, above the play button's shade */
.film-screen:has(#playBtn:not([hidden])) .screen-title { z-index: 6; pointer-events: none; }
.film-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.film-actions .btn-ghost { color: var(--on-cloth); }
.film-note { color: var(--on-cloth-soft); font-size: var(--step--1); }
/* the discount after the free first film: a price sticker taped beside the film */
.offer-card { position: relative; display: grid; gap: 10px; justify-items: start; margin-top: 8px; padding: 18px 20px; border-radius: 4px;
  background: var(--film) var(--grain); color: var(--ink); box-shadow: var(--shadow-print); transform: rotate(-.5deg); }
.offer-card::before { content: ""; position: absolute; top: -9px; inset-inline-start: 18%; width: 64px; height: 18px; background: var(--tape); transform: rotate(-4deg); }
.offer-card[hidden] { display: none; }
.offer-card h2 { font-size: var(--step-2); color: var(--ink); }
.offer-card p { margin: 0; max-width: 52ch; line-height: 1.5; }
.offer-card .btn { background: var(--cloth); color: var(--on-cloth); box-shadow: 0 3px 0 var(--cloth-deep), 0 14px 24px -14px rgba(0, 0, 0, .55); }
.guest .offer-card { display: none; }
.gift-compose .gift-copy { gap: 18px; }
.gift-compose .field-label { color: var(--ink); }
.gift-compose .input { border-color: rgba(23, 32, 28, .45); }
.gift-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gift-compose .envelope { margin-top: 130px; }
.gift-compose .env-address { max-width: 60%; overflow-wrap: anywhere; }
.guest .flow-steps { display: none; }
.guest:not(.guest-gift) .band-film:has(.gift-compose) { display: none; }
.guest-actions { display: none; }
.guest-gift .guest-actions { display: flex; }
.guest-gift .gift-compose .field, .guest-gift .gift-actions { display: none; }
.next { display: grid; gap: 14px; justify-items: start; }
.next h2 { font-size: var(--step-3); }
.next p { color: var(--ink-soft); max-width: 56ch; }
@media (max-width: 760px) {
  .film-actions .btn { flex: 1 1 100%; }
  .screen-play .disc { width: 66px; height: 66px; font-size: 1.35rem; }
  .gift-compose { padding-bottom: clamp(44px, 5vw, 72px); }
  .gift-compose .envelope { margin-top: 140px; }
}

/* the real site: a sign-in code by email, and the beta's invite code */
.send-code { justify-self: start; }
.code-step { display: grid; gap: 10px; }
.code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.code-row .btn { min-height: 52px; }
#code, #invite { font: 600 1.25rem/1 var(--font-body); letter-spacing: .12em; }
.code-step .link { justify-self: start; }
.receipt .beta dd { color: var(--cloth); }
.pay-block > .link { justify-self: start; }
.invite-box { display: grid; gap: 10px; }
.pay-note { color: var(--ink-soft); font-size: var(--step--1); }
.signed-out #payDock { display: none; }   /* before sign-in the next step is the code, not the film */
.film-screen.tall { aspect-ratio: 9 / 16; width: min(100%, calc((100svh - 300px) * 9 / 16)); min-width: 220px; margin-inline: auto; }
.film-screen .real-film { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* the maker asks for one photo again: a note card taped under the film, with the film's photos as small prints */
.redo { position: relative; display: grid; gap: 14px; justify-items: start; margin-top: 8px; padding: 24px clamp(18px, 2.6vw, 30px) 22px;
  background: #fbf8f0 var(--paper); color: var(--ink); border-radius: 3px; box-shadow: 0 2px 2px rgba(0, 0, 0, .2), 0 24px 34px -20px rgba(0, 0, 0, .8);
  --focus: #1a5d8a; } /* the paper's focus ring, not the cloth's pale blue */
.redo::before { content: ""; position: absolute; top: -11px; inset-inline-start: 34px; width: 92px; height: 22px; background: var(--tape); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.redo[hidden] { display: none; }
.redo-head { display: grid; gap: 6px; }
.redo h2 { font: 700 2.3rem/1 var(--font-display); color: var(--ink); }
.redo h2:focus { outline: none; }
.redo-lead { color: var(--ink-soft); max-width: 64ch; text-wrap: pretty; }
.redo-lead span { color: var(--ink); font-weight: 600; }
.redo-body { display: grid; gap: 18px; width: 100%; }
.redo-body[hidden] { display: none; }
.redo-sign { display: grid; gap: 10px; max-width: 540px; }
.redo-sign[hidden], .redo-choice[hidden], .redo-grid[hidden], .redo .code-row[hidden], .redo .btn[hidden] { display: none; }
.redo-sign-lead { color: var(--ink-soft); }
.redo-sign-lead bdi { color: var(--ink); font-weight: 600; }
.redo .btn-ghost { color: var(--ink); }
.redo .btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.redo-grid { margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px 14px; width: 100%; }
.redo-photo { position: relative; display: block; width: 100%; padding: 6px 6px 24px; border: 0; border-radius: 1px; background: var(--print); color: var(--ink);
  box-shadow: var(--shadow-print); cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.redo-grid .redo-photo:nth-child(3n+1) { transform: rotate(-1.2deg); }
.redo-grid .redo-photo:nth-child(3n+2) { transform: rotate(.8deg); }
.redo-grid .redo-photo:hover { transform: translateY(-3px) rotate(0); }
.redo-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #ece6d6; }
.redo-no { position: absolute; inset: auto 0 4px; text-align: center; font: 600 .95rem/1 var(--font-hand); }
.redo-tag { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 7px; border-radius: 3px; background: var(--ink); color: #fff; font: 600 .74rem/1 var(--font-body); }
/* the picked print: a red ring and a tick, the way a photo is marked in an album */
.redo-grid .redo-photo[aria-checked="true"] { transform: translateY(-4px) rotate(0); box-shadow: 0 0 0 3px var(--tomato-deep), var(--shadow-print); }
.redo-photo[aria-checked="true"]::after { content: "✓"; position: absolute; top: -10px; inset-inline-end: -10px; width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 50%; background: var(--tomato-deep); color: #fff; font: 700 .95rem/1 var(--font-body); }
.redo-photo:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.redo-change { position: absolute; top: 12px; inset-inline-end: 12px; padding: 4px 7px; border-radius: 3px; background: var(--tomato-deep); color: #fff;
  font: 600 .74rem/1.1 var(--font-body); text-align: center; }
.redo-grid .redo-photo.planned:not([aria-checked="true"]) { box-shadow: 0 0 0 2px var(--tomato-deep), var(--shadow-print); }
.redo-plan { display: grid; gap: 12px; width: 100%; padding: 16px; border-radius: 4px; background: rgba(23, 32, 28, .05); }
.redo-plan[hidden] { display: none; }
.redo-plan-title { font: 600 var(--step-1)/1.2 var(--font-hand); color: var(--ink); }
.redo-plan-list { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 4px; color: var(--ink); }
.redo-plan .redo-btns { align-items: center; }
.redo-blocked { font-weight: 500; color: var(--tomato-deep); max-width: 64ch; }
.redo-blocked[hidden] { display: none; }
.redo-choice { display: grid; gap: 12px; width: 100%; padding-top: 16px; border-top: 1.5px dashed rgba(23, 32, 28, .22); }
.redo-picked { font: 600 var(--step-1)/1.2 var(--font-hand); }
.redo-btns { display: flex; flex-wrap: wrap; gap: 10px 12px; }
/* each choice has a small "?" beside it that says what it does (Guy, 2026-10-30) */
.redo-act { position: relative; display: inline-flex; }
.redo-act[hidden] { display: none; }
/* the "?" sits inside its button's pill, at its far end; a 44 px target around a small drawn circle */
.redo-act > .btn { padding-inline-end: 52px; }
.redo-q { position: absolute; top: 50%; inset-inline-end: 4px; transform: translateY(-50%); isolation: isolate; width: 44px; height: 44px;
  display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); font: 700 .9rem/1 var(--font-body); cursor: pointer; }
.redo-q::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(23, 32, 28, .4); border-radius: 50%; z-index: -1; }
.redo-q[aria-expanded="true"] { color: #fff; }
.redo-q[aria-expanded="true"]::before { background: var(--ink); border-color: var(--ink); }
@media (hover: hover) {
  .redo-q:hover { color: #fff; }
  .redo-q:hover::before { background: var(--ink); border-color: var(--ink); }
}
.redo-q:focus-visible { outline: 3px solid var(--focus); outline-offset: -2px; border-radius: 50%; }
.redo-help { max-width: 64ch; padding: 10px 14px; border-inline-start: 3px solid var(--tomato-deep); background: rgba(23, 32, 28, .05); color: var(--ink); line-height: 1.55; }
.redo-help[hidden], .redo-fine[hidden] { display: none; }
.redo-fine { font-size: var(--step--1); color: var(--ink-soft); max-width: 64ch; line-height: 1.55; }
.redo-status { font-weight: 500; color: var(--cloth); max-width: 64ch; }
.redo-status a { color: var(--tomato-deep); text-underline-offset: 3px; }
.redo-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } /* still read out when it fills */
/* while a photo is made again: a slow pulse, like the making page's prints */
.redo.busy .redo-status { display: flex; gap: 10px; align-items: baseline; }
.redo.busy .redo-status::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--tomato-deep); animation: redo-pulse 1.6s ease-in-out infinite; }
@keyframes redo-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .redo.busy .redo-status::before { animation: none; } .redo-photo { transition: none; } }
@media (max-width: 760px) {
  .redo-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 14px 12px; }
  .redo-btns .btn { flex: 1 1 100%; }
  .redo-act { flex: 1 1 100%; }
  .redo .code-row { grid-template-columns: 1fr; }
}

/* a link that opens no film: an empty print taped into the album, and the page still fills the screen */
.no-film #main { min-height: calc(100svh - 230px); }
.lost-print { position: relative; width: min(300px, 70vw); aspect-ratio: 4 / 5; margin: 26px auto 10px; padding: 10px 10px 46px;
  background: var(--print); box-shadow: 0 2px 2px rgba(0, 0, 0, .18), 0 18px 28px -16px rgba(0, 0, 0, .55); transform: rotate(-2deg); }
.lost-print::before { content: ""; position: absolute; top: -9px; left: 50%; width: 42%; height: 16px; background: var(--tape); transform: translateX(-50%) rotate(3deg); }
.lost-print::after { content: ""; display: block; height: 100%; background: repeating-linear-gradient(135deg, #ece6d6 0 10px, #e4ddca 10px 20px); }
.lost-print span { position: absolute; inset: auto 0 10px; text-align: center; font: 600 1.35rem/1.1 var(--font-hand); color: var(--ink); }

/* ---------- information pages: contact, terms, privacy, accessibility ---------- */
.doc { background: var(--page) var(--paper); }
.doc-body { max-width: 1260px; } /* the text lines up with the brand at the top; lines stay short on their own */
.doc-body h2 { font: 700 var(--step-2)/1.1 var(--font-display); margin: 34px 0 10px; color: var(--ink); }
.doc-body p, .doc-body li { font-size: var(--step-0); line-height: 1.7; color: var(--ink); max-width: 68ch; }
.doc-body p { margin: 0 0 12px; }
.doc-body ul { margin: 0 0 12px; padding-inline-start: 22px; display: grid; gap: 8px; }
.doc-body strong { font-weight: 600; }
.doc-card { position: relative; background: var(--print); box-shadow: var(--shadow-print); border-radius: 4px; padding: 22px 22px 8px; margin: 20px 0 18px; max-width: 560px; transform: rotate(-.4deg); }
.doc-card::before { /* taped into the album, like the occasion prints */ content: ""; position: absolute; top: -11px; inset-inline-start: 50%; width: 92px; height: 22px; background: var(--tape); transform: translateX(50%) rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.doc-card h2 { margin-top: 0; }
.doc-mail { display: inline-block; padding-block: 10px; font: 600 var(--step-1)/1.3 var(--font-body); }
.foot-links a[aria-current="page"] { text-decoration-color: var(--film); }

/* ---------- my films: every film a signed-in visitor ordered, as prints with their notes ---------- */
.mine { max-width: 960px; }
.mine-sign { max-width: 560px; display: grid; gap: 14px; border-radius: 4px; box-shadow: var(--shadow-print); }
.mine-sign h2 { font: 700 2.4rem/1 var(--font-display); }
.mine-list { display: grid; gap: 18px; }
.mine-list .signed { justify-self: start; }
.mine-status:empty { display: none; }
.mine-status { color: var(--ink-soft); }
.films { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.film-card {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: start;
  padding: 20px 22px; border-radius: 4px; background: #fbf8f0 var(--paper); box-shadow: var(--shadow-print);
  border-inline-start: 6px solid var(--occ, var(--film));
}
.film-print { position: relative; aspect-ratio: 4 / 5; padding: 6px 6px 18px; background: var(--print) var(--grain); box-shadow: var(--shadow-print); transform: rotate(-2deg); }
.film-card:nth-child(even) .film-print { transform: rotate(1.6deg); }
.film-print::before { content: ""; position: absolute; top: -8px; left: 50%; width: 50%; height: 15px; background: var(--tape); transform: translateX(-50%) rotate(-3deg); }
.film-print img { width: 100%; height: 100%; object-fit: cover; display: block; background: #e7e3d8; }
.film-info { display: grid; gap: 8px; justify-items: start; min-width: 0; }
.film-state { padding: 4px 12px; border-radius: 999px; font-size: var(--step--1); font-weight: 600; background: var(--film); color: var(--ink); }
.is-making .film-state, .is-remaking .film-state { background: color-mix(in srgb, var(--sky) 45%, #fff); }
.is-failed .film-state { background: #a1260f; color: #fff; }
.is-refunded .film-state { background: #e1e3dd; color: var(--ink-soft); }
.film-name { font: 700 2.2rem/1.05 var(--font-display); overflow-wrap: anywhere; }
.film-facts { display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--ink-soft); font-size: var(--step--1); font-variant-numeric: tabular-nums; }   /* spaced, not dotted: no separator left hanging or read aloud */
.film-card-note { font-size: var(--step--1); line-height: 1.5; max-width: 52ch; color: var(--ink); }
.film-card-note a { color: var(--tomato-deep); }
.film-info .btn { margin-top: 6px; }
.mine-empty { display: grid; gap: 14px; justify-items: start; padding: 22px; border-radius: 4px; background: #fbf8f0 var(--paper); box-shadow: var(--shadow-print); }
.mine-preview { max-width: 62ch; color: var(--ink-soft); }
@media (max-width: 560px) {
  .film-card { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .film-print { padding: 4px 4px 12px; }
  .film-name { font-size: 1.85rem; }
  .film-info .btn { justify-self: stretch; }
}
.guest #mineLink { display: none; }   /* someone else's film: they have no films here */

/* the immediate offer on a free film's page (Guy, 2026-11-02) */
.offer-card .offer-later { color: var(--ink); }
.offer-card .offer-later[hidden] { display: none; }
/* a paid film waiting for its photos, on the making page (Guy, 2026-11-02) */
.waiting { display: grid; gap: 14px; max-width: 760px; margin: 0 auto 28px; }
.waiting[hidden] { display: none; }
.waiting p { margin: 0; line-height: 1.55; }
.wait-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.wait-photos li { aspect-ratio: 1; border-radius: 4px; overflow: hidden; background: rgba(23, 32, 28, .08); }
.wait-photos li.new { outline: 2px solid var(--film, #f5b31c); }
.wait-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wait-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.waiting .btn-ghost { color: var(--ink); }
.wait-note { color: var(--tomato-deep, #b0361c); font-size: .92rem; }
.wait-note:empty { display: none; }
