:root {
  --bg: #fbf6f1;
  --card: #ffffff;
  --ink: #2c1a22;
  --muted: #7a6770;
  --line: #eadfd6;
  --accent: #a3405a;
  --accent-ink: #ffffff;
  --accent-soft: #f6e4e7;
  --ok: #3f7a55;
  --warn-bg: #fff4e0;
  --warn-ink: #7a4b00;
  --err-bg: #fde8e8;
  --err-ink: #8a1f2b;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
[hidden] { display: none !important; }

.masthead { max-width: 880px; margin: 0 auto; padding: 40px 16px 8px; text-align: center; }
.brand { display: inline-block; font: 600 36px/1.1 var(--serif); letter-spacing: .3px; color: var(--ink); text-decoration: none; }
.brand span { font-style: italic; font-weight: 500; color: var(--accent); }
.lede { color: var(--muted); max-width: 560px; margin: 10px auto 28px; }

.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 auto; max-width: 720px; counter-reset: s; }
.stepper li { flex: 1; font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); counter-increment: s; }
.stepper li::before { content: counter(s) ". "; }
.stepper li.done { border-color: #d9a7b3; color: var(--ink); }
.stepper li.current { border-color: var(--accent); color: var(--ink); font-weight: 600; }

main { max-width: 880px; margin: 0 auto; padding: 24px 16px 80px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
h2 { font: 600 32px/1.2 var(--serif); margin: 0 0 12px; }
h3 { font: 600 22px/1.2 var(--serif); margin: 28px 0 6px; }
h4 { margin: 0 0 8px; font-size: 14px; }
em { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: 14px; margin: 4px 0 14px; }
.summary { font-size: 17px; }

label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 12px; }
input:not([type=checkbox]), textarea {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: 15px/1.45 var(--sans); color: var(--ink);
  background: #fffdfb; border: 1px solid var(--line); border-radius: 10px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { resize: vertical; }

.names { display: flex; align-items: center; gap: 16px; }
.names .partner { flex: 1; }
.amp { font: italic 36px var(--serif); color: var(--accent); }
select {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: 15px/1.45 var(--sans); color: var(--ink);
  background: #fffdfb; border: 1px solid var(--line); border-radius: 10px;
}
select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.photo-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-group { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px; }
.thumb .lowres { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: var(--warn-bg); color: var(--warn-ink); font-size: 11px; font-weight: 600; }
.photo-note { font-size: 12px; color: var(--warn-ink); margin: 0 0 8px; }
.drop { display: block; text-align: center; padding: 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-weight: 600; cursor: pointer; margin: 0; }

.music { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.music .hint { margin: 0; flex: 1; }
.consent { display: flex; gap: 8px; align-items: center; margin-top: 24px; font-size: 14px; color: var(--ink); }

.moment { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; background: #fffdfb; }
.moment-head { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.moment-num { font: 600 22px var(--serif); color: var(--accent); min-width: 26px; }
.m-title { margin-top: 0 !important; font-weight: 600 !important; }
.moment-photo { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.moment-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; flex: none; }
.moment-photo .hint { margin: 6px 0 0; }
.moment-photo .btn { margin-right: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.icon-btn { flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--muted); }
.icon-btn:hover { color: var(--ink); }

.btn { display: inline-block; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 15px var(--sans); cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.actions .btn:only-child { margin-left: auto; }

.banner { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; background: var(--err-bg); color: var(--err-ink); }
.banner.info { background: var(--warn-bg); color: var(--warn-ink); }
.issues { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 12px 12px 12px 32px; }
.issues:empty { display: none; }

.q-group { margin-top: 22px; }
.q-group h3 { margin: 0 0 8px; font-size: 20px; }
.question { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; margin-bottom: 16px; }
.question p { margin: 0 0 2px; font-weight: 500; }
.question small { color: var(--muted); display: block; margin-bottom: 6px; }
.question .row { display: flex; gap: 8px; align-items: flex-start; }
.question textarea { margin-top: 0; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 13px; cursor: pointer; color: var(--muted); white-space: nowrap; }
.answered { margin-top: 26px; font-size: 14px; color: var(--muted); }
.answered summary { cursor: pointer; }

.plan-meta { display: flex; gap: 24px; flex-wrap: wrap; margin: 8px 0 18px; }
.plan-meta div { font-size: 13px; color: var(--muted); }
.plan-meta strong { display: block; font: 600 26px var(--serif); color: var(--ink); }

.cast { margin: 8px 0 12px; }
.character-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.character { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fffdfb; }
.character.approved { border-color: var(--ok); }
.character header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.character header strong { font: 600 22px var(--serif); }
.status { font-size: 12px; font-weight: 600; color: var(--warn-ink); }
.character.approved .status { color: var(--ok); }
.compare { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; align-items: start; }
.compare figure { margin: 0; }
.compare img { width: 100%; border-radius: 8px; display: block; background: var(--line); }
.compare .refs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.compare .refs img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.compare .refs img:only-child { grid-column: span 2; aspect-ratio: 3 / 4; }
.compare figcaption { font-size: 11px; color: var(--muted); margin-top: 3px; }
.likeness { font-size: 13px; margin: 10px 0; }
.likeness b { color: var(--ink); }
.character textarea { font-size: 14px; }
.character .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.render-note { font-size: 13px; color: var(--muted); align-self: center; }

.script { margin-top: 8px; }
.chapter { margin-top: 22px; padding-top: 6px; border-top: 1px solid var(--line); }
.chapter h3 { margin-top: 10px; }
.shot { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: #fffdfb; }
.shot header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.shot header strong { font: 600 18px var(--serif); }
.shot header select { width: auto; margin: 0; padding: 6px 10px; font-size: 14px; }
.shot header .icon-btn { margin-left: auto; }
.cast-picks { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.cast-picks label { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--ink); }
.talk { display: flex; gap: 8px; }
.talk select { width: auto; flex: none; }
.talk input:disabled { opacity: .5; }
.approval { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); }
.approval .status { color: var(--warn-ink); font-weight: 600; font-size: 14px; }
.approval.approved { background: #eaf4ee; }
.approval.approved .status { color: var(--ok); }

.scene-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.scene { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fffdfb; }
.scene.approved { border-color: var(--ok); }
.scene .frame { aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.scene .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene .frame video { width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; object-fit: cover; }
.scene .dl { align-self: center; margin-left: auto; font-size: 13px; color: var(--accent); }
.edit-shots { margin-top: 32px; padding-top: 8px; border-top: 1px solid var(--line); }
.edit-shots h4 { font: 600 18px var(--serif); margin: 18px 0 10px; }
.edit-shots .actions { align-items: center; }
.scene header { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 4px; }
.scene header strong { font: 600 17px var(--serif); }
.scene .status { font-size: 12px; font-weight: 600; color: var(--warn-ink); }
.scene.approved .status { color: var(--ok); }
.scene .what { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.scene textarea { font-size: 13px; }
.scene .row { display: flex; gap: 8px; margin-top: 8px; }

.bar { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 18px 0; }
#progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .6s ease; }
video { display: block; max-width: 100%; max-height: 80vh; margin: 8px auto 0; border-radius: 12px; background: #000; }

/* ---------- home ---------- */
.home { max-width: 1040px; margin: 0 auto; padding: 0 16px 64px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; padding: 56px 0 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.hero h1 { font: 600 60px/1.02 var(--serif); margin: 0 0 18px; }
.hero h1 span { font-style: italic; font-weight: 500; color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--ink); max-width: 520px; margin: 0 0 26px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.btn.big { padding: 15px 26px; font-size: 16px; }
.phone { margin: 0; justify-self: center; width: min(320px, 100%); }
.phone video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; max-height: none; margin: 0; border-radius: 28px; border: 8px solid #1f1418; background: #1f1418; box-shadow: 0 30px 60px -30px rgba(44, 26, 34, .55); }
.phone figcaption { text-align: center; font-size: 13px; color: var(--muted); margin-top: 10px; }
.home-block { margin-top: 44px; }
.home-block h2 { text-align: center; }
.how-steps { list-style: none; counter-reset: h; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-steps li { counter-increment: h; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how-steps li::before { content: counter(h); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.how-steps strong { display: block; font: 600 20px var(--serif); margin-bottom: 4px; }
.how-steps span { color: var(--muted); font-size: 14px; }
.idea-chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.idea-chips li { padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }
.idea-chips.pick { justify-content: flex-start; margin: 4px 0 14px; }
.idea-chips.pick .chip { color: var(--accent); border-color: #e7c6cf; background: #fffdfb; }
.idea-chips.pick .chip:hover { background: var(--accent-soft); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.plan-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-card h3 { margin: 0; }
.plan-card ul { padding-left: 18px; color: var(--ink); font-size: 15px; flex: 1; }
.plan-card li { margin-bottom: 6px; }
.plan-card .btn { align-self: flex-start; }
.price { font: 600 34px var(--serif); color: var(--accent); margin: 6px 0; }
.my-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.film-card { display: block; padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.film-card:hover { border-color: var(--accent); }
.film-card strong { display: block; font: 600 19px var(--serif); }
.film-card span { font-size: 13px; color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 56px; }

/* ---------- moments, filmed chapters, upgrade, checkout ---------- */
.more { margin-top: 4px; }
.more summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: 10px; }
.more summary em { font-weight: 400; }
.filmed-badge { margin: -4px 0 10px; font-size: 13px; font-weight: 600; color: var(--ok); }
.moment.filmed, .chapter.filmed { opacity: .8; }
.moment.filmed { border-color: var(--ok); }
.upsell { margin-top: 28px; padding: 22px; border-radius: var(--radius); background: var(--accent-soft); }
.upsell h3 { margin-top: 0; }
.upsell .price { font-size: 26px; }
.modal { position: fixed; inset: 0; background: rgba(44, 26, 34, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 9; }
.modal-card { background: var(--card); border-radius: var(--radius); padding: 28px; max-width: 460px; width: 100%; }
.modal-card h2 { margin-top: 0; }
.demo-note { font-size: 13px; background: var(--warn-bg); color: var(--warn-ink); padding: 8px 12px; border-radius: 8px; }

.busy { position: fixed; inset: 0; background: rgba(251, 246, 241, .9); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; text-align: center; padding: 16px; }
.busy p { font: italic 22px var(--serif); max-width: 420px; }
.spinner { width: 42px; height: 42px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .step { padding: 18px; }
  .photo-groups, .grid2, .character-cards { grid-template-columns: 1fr; }
  .scene-cards { grid-template-columns: 1fr 1fr; }
  .talk { flex-direction: column; }
  .talk select { width: 100%; }
  .names { flex-direction: column; align-items: stretch; gap: 0; }
  .amp { display: none; }
  .stepper li { font-size: 0; }
  .stepper li::before { font-size: 12px; }
  .stepper li.current { font-size: 12px; }
  .brand { font-size: 28px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .hero h1 { font-size: 42px; }
  .how-steps, .plans { grid-template-columns: 1fr; }
}

/* ---------- account and sign-in ---------- */
.account { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 16px 0 0; }
.account .hint { margin: 0; }
.email-form { display: grid; gap: 10px; margin: 16px 0 8px; }
.email-form input { width: 100%; }
.btn.google { width: 100%; margin-top: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.film-card { position: relative; }
.film-card .delete-film { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; padding: 4px 6px; }
.film-card .delete-film:hover { color: var(--accent); }
.foot a { color: inherit; }
.legal { max-width: 720px; margin: 0 auto; padding: 40px 16px 64px; line-height: 1.6; }
.legal h1 { font: 600 36px/1.15 var(--serif); }
.legal h2 { font: 600 22px var(--serif); margin-top: 32px; }

/* ---------- checking the scenes before filming ---------- */
#scene-review h3 { margin: 28px 0 12px; }
.review-cards { display: grid; gap: 16px; }
.review-scene { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.review-scene img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; background: var(--line); }
.review-body { display: flex; flex-direction: column; gap: 4px; }
.review-body strong { font: 600 19px var(--serif); margin-bottom: 6px; }
.repaint { margin-top: auto; display: grid; gap: 8px; }
.repaint textarea { width: 100%; }
.repaint .btn { justify-self: start; }
@media (max-width: 640px) {
  .review-scene { grid-template-columns: 1fr; }
  .review-scene img { max-width: 260px; margin: 0 auto; }
}
.legal-links { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.legal-links a { color: inherit; }
