/* FACE CARD Casting: one centred column on an empty off-white page, one action per screen.
   Feel borrowed from the owner's reference (Instinct): off-white canvas, near-black ink,
   serif headline, grotesk body, one black pill button. Mobile first. */
:root {
  --paper: #fbfaf9; --ink: #101113; --ink-2: #5f6065; --ink-3: #9a9ba0; --line: #e6e4df; --line-2: #d7d5cf;
  --ok: #1f8a4c; --bad: #c2362b; --btn-h: 52px; --r: 12px; --col: 380px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.page { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(24px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); }
.page.top { justify-content: flex-start; padding-top: calc(40px + env(safe-area-inset-top)); }
.col { width: 100%; max-width: var(--col); }
.col.wide { max-width: 560px; }
.brand { font: 500 13px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 26px; }
h1 { font: 400 34px/1.12 var(--serif); letter-spacing: -0.01em; margin: 0 0 10px; color: var(--ink); text-wrap: balance; }
h1 em { font-style: italic; }
h2 { font: 400 22px/1.2 var(--serif); margin: 26px 0 8px; }
.help { color: var(--ink-2); font-size: 15px; line-height: 1.5; margin: 0 0 26px; }
.help b { color: var(--ink); font-weight: 500; }
form { margin: 0; }
label.field { display: block; font-size: 13px; color: var(--ink-2); margin: 0 0 6px; }
.input { display: block; width: 100%; height: var(--btn-h); padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font: 17px/1 var(--sans); color: var(--ink); outline: none; appearance: none; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(16, 17, 19, 0.06); }
.input.err { border-color: var(--bad); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: var(--btn-h); margin-top: 18px; border: 0; border-radius: var(--r); background: var(--ink); color: #fff; font: 500 16px/1 var(--sans); cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); margin-top: 10px; }
.btn.small { height: 40px; font-size: 14px; width: auto; padding: 0 14px; margin: 0; }
.link { display: block; text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; width: 100%; cursor: pointer; font-family: inherit; }
.legal { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin: 14px 0 0; }
.legal a { color: var(--ink-2); }
.error { color: var(--bad); font-size: 14px; margin: 8px 0 0; }
.steps { display: flex; gap: 6px; margin: 0 0 22px; }
.steps i { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.steps i.on { background: var(--ink); }
/* consent */
.summary { margin: 0 0 8px; padding: 0 0 0 18px; color: var(--ink); font-size: 15px; }
.summary li { margin: 0 0 8px; }
.clauses { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 4px 16px; max-height: 44dvh; overflow: auto; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.clauses h3 { font: 500 13.5px/1.3 var(--sans); color: var(--ink); margin: 14px 0 4px; }
.clauses p { margin: 0 0 10px; }
.clauses .init { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px dashed var(--line-2); border-radius: 6px; font-size: 12px; color: var(--ink-3); }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--ink); }
.sig { font: 400 26px/1 var(--serif); font-style: italic; }
/* film */
.brief { margin: 0 0 18px; padding: 0 0 0 18px; font-size: 14.5px; color: var(--ink-2); }
.brief li { margin: 0 0 6px; }
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 22px; }
.ref { position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #ddd; cursor: pointer; border: 0; padding: 0; }
.ref img, .ref video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ref .play { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); display: flex; align-items: center; justify-content: center; }
.ref .play::after { content: ""; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--ink); margin-left: 3px; }
.ref.playing .play { display: none; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; margin: 0 0 10px; }
.qr > svg { width: 200px; height: 200px; }
.qr p { margin: 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.progress { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 18px 0 8px; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.2s; }
.status { font-size: 14px; color: var(--ink-2); text-align: center; min-height: 20px; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }
/* done / profile */
.profile { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.profile .thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--line); overflow: hidden; flex: 0 0 auto; }
.profile .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile .thumb { display: flex; align-items: center; justify-content: center; }
.spin { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.profile b { display: block; font-weight: 500; }
.profile span { display: block; font-size: 14px; color: var(--ink-2); }
.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 0 22px; }
.tick svg { width: 28px; height: 28px; }
/* liaison dashboard */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 10px 10px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: #fff; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.sent { background: var(--line); } .pill.opened, .pill.profile { background: #efe9d6; color: #6d5a12; } .pill.signed { background: #e3ecf8; color: #234c86; }
.pill.filmed { background: #dff2e6; color: #1c6b3d; } .pill.approved { background: var(--ink); color: #fff; } .pill.rejected { background: #f7dcd9; color: #8d2a22; }
.thumb-sm { width: 36px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--line); display: block; }
.toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 22px; flex-wrap: wrap; }
.copybox { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; }
.copybox .input { font-size: 14px; }
video.player { width: 100%; max-height: 70dvh; border-radius: 16px; background: #000; display: block; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; margin: 18px 0; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions .btn { margin: 0; }
.btn.bad { background: var(--bad); }
.btn.ok { background: var(--ok); }
@media (max-width: 600px) { .table th:nth-child(4), .table td:nth-child(4) { display: none; } .kv { grid-template-columns: 100px 1fr; } }
@media print { .btn, .link, .brand, .steps { display: none !important; } .clauses { max-height: none; overflow: visible; border: 0; padding: 0; } body { background: #fff; } }
