/* P4 Photo proof — page-level styles (capture, office gate, landing). Tokens only. */

.hidden { display: none !important; }

/* ---- Page header ---- */
.p4-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  align-items: flex-end;
  padding: 20px 0 14px;
}
.p4-head h1 { margin: 0; font-size: clamp(1.3rem, 2.5vw, 1.6rem); letter-spacing: -0.03em; }
.p4-head .ctx { margin: 4px 0 0; font-size: 14px; color: var(--pro-muted); }
.p4-meta {
  font-family: var(--pro-mono);
  font-size: 12.5px;
  color: var(--pro-muted);
  display: flex;
  gap: 6px 14px;
  flex-wrap: wrap;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

/* ---- Capture: progress head ---- */
.cap-wrap { max-width: 640px; }
.progress-card {
  background: var(--pro-surface);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-r-lg);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  box-shadow: var(--pro-shadow-sm);
}
@media (max-width: 720px) {
  .progress-card { position: sticky; top: 52px; z-index: 5; }
}
.progress-card .pc-body { flex: 1; min-width: 0; }
.progress-card .pc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.progress-card .pc-count { font-family: var(--pro-mono); font-size: 12.5px; color: var(--pro-muted); font-variant-numeric: tabular-nums; }
.progress-card .pc-title { font-weight: 600; font-size: 14.5px; letter-spacing: -0.01em; margin: 6px 0 0; }
.progress-card .pc-detail { font-size: 13px; color: var(--pro-muted); margin: 2px 0 0; }
@media (max-width: 480px) {
  .progress-card { padding: 12px; gap: 12px; }
  .progress-card .pro-ring--lg { width: 84px; height: 84px; }
  .progress-card .pro-ring--lg::before { inset: 8px; }
}

/* Job setup (collapsible) */
.job-setup {
  background: var(--pro-surface);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-r-lg);
  margin-bottom: 12px;
  overflow: hidden;
}
.job-setup summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
}
.job-setup summary::-webkit-details-marker { display: none; }
.job-setup summary > span:first-child { white-space: nowrap; }
.job-setup summary .chev { font-family: var(--pro-mono); color: var(--pro-muted); font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-setup[open] summary { border-bottom: 1px solid var(--pro-line); }
.job-setup .body { padding: 14px 16px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.job-setup .body .full { grid-column: 1 / -1; }
.job-setup .pro-input, .job-setup .pro-select { margin: 0; padding: 10px 12px; font-size: 14px; }
.job-setup .pro-label { margin-bottom: 4px; font-size: 12.5px; }
.job-setup .check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pro-ink-2); }
.job-setup .check-row input { width: 16px; height: 16px; accent-color: var(--pro-brand); }
.job-setup .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.job-setup .actions .pro-btn { padding: 10px 16px; font-size: 14px; border-radius: var(--pro-r); }
@media (max-width: 480px) { .job-setup .body { grid-template-columns: 1fr; } }

/* Thumb strip + slots */
.section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 6px; }
.section-title h2 { margin: 0; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pro-muted); font-weight: 600; }
.section-title .hint { font-size: 12.5px; color: var(--pro-muted); }
.pro-slot .pro-slot-body { min-width: 0; }
.pro-slot.is-flash { box-shadow: 0 0 0 3px var(--pro-brand-soft); border-color: var(--pro-brand); }
button.pro-thumb { font-family: inherit; color: var(--pro-muted); }
.pro-slot .pro-slot-preview .pro-icon { width: 22px; height: 22px; }
.pro-slot .note-row { display: flex; gap: 8px; margin-top: 8px; }
.pro-slot .note-row .pro-input { margin: 0; padding: 10px 12px; font-size: 14px; }
.pro-slot .note-row .pro-btn { padding: 9px 14px; font-size: 13px; border-radius: var(--pro-r); white-space: nowrap; }
.pro-slot--ok .pro-slot-title::after { content: ""; }

.status-line { font-size: 13px; color: var(--pro-muted); margin: 10px 0 0; font-family: var(--pro-mono); min-height: 1.2em; }
.status-line:empty { display: none; }

/* ---- Office gate ---- */
.gate-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.gate-stats .pro-card { padding: 14px 16px; }
.gate-stats .pro-stat strong { font-family: var(--pro-mono); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 1.5rem; }
.gate-layout { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) {
  .gate-layout { grid-template-columns: 1fr; }
  .review-panel { position: static; }
}
.gate-list { display: flex; flex-direction: column; gap: 8px; }
.gate-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.gate-list-head h2 { margin: 0; font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--pro-muted); font-weight: 600; }
.job-row {
  width: 100%;
  text-align: left;
  font: inherit;
  background: var(--pro-surface);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-r);
  padding: 12px 14px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  color: var(--pro-ink);
  transition: border-color var(--pro-t), box-shadow var(--pro-t);
}
.job-row:hover { border-color: var(--pro-line-2); box-shadow: var(--pro-shadow-sm); }
.job-row.is-selected { border-color: var(--pro-brand); box-shadow: 0 0 0 3px var(--pro-brand-soft); }
.job-row .jr-title { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.job-row .jr-sub { font-size: 12.5px; color: var(--pro-muted); grid-column: 1; }
.job-row .jr-sub .pro-mono { opacity: 0.8; }
.job-row .jr-pct {
  grid-row: 1 / span 2;
  grid-column: 2;
  text-align: right;
  font-family: var(--pro-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.job-row .jr-pct b { font-size: 15px; font-weight: 500; }
.job-row .bar { width: 72px; height: 6px; border-radius: 999px; background: var(--pro-line); overflow: hidden; }
.job-row .bar i { display: block; height: 100%; background: var(--pro-warn); border-radius: 999px; }
.job-row.is-ready .bar i { background: var(--pro-ok); }
.job-row .jr-flag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.job-row .jr-flag--ok { background: var(--pro-ok-soft); color: var(--pro-ok); }
.job-row .jr-flag--open { background: var(--pro-warn-soft); color: var(--pro-warn); }
.job-row .jr-flag--retake { background: var(--pro-danger-soft); color: var(--pro-danger); }

.review-panel {
  background: var(--pro-surface);
  border: 1px solid var(--pro-line);
  border-radius: var(--pro-r-lg);
  padding: 18px;
  position: sticky;
  top: 76px;
}
.review-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.review-head h2 { margin: 0; font-size: 1.1rem; letter-spacing: -0.02em; }
.review-head .sub { font-size: 13px; color: var(--pro-muted); margin: 2px 0 0; }
.review-head .sub .pro-mono { opacity: 0.8; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rv-slot { border: 1px solid var(--pro-line); border-radius: var(--pro-r); overflow: hidden; background: var(--pro-surface-2); display: flex; flex-direction: column; }
.rv-slot--ok { border-color: var(--pro-ok); }
.rv-slot--need { border-color: var(--pro-warn); border-style: dashed; }
.rv-slot--retake { border-color: var(--pro-danger); }
.rv-slot--waived { border-color: var(--pro-line-2); }
.rv-slot .rv-img { aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--pro-muted); position: relative; background: var(--pro-surface-2); }
.rv-slot .rv-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv-slot .rv-img .pro-icon { width: 22px; height: 22px; }
.rv-slot .rv-body { padding: 8px 10px 10px; background: var(--pro-surface); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rv-slot .rv-title { font-weight: 600; font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rv-slot .rv-state { font-size: 11.5px; font-weight: 600; }
.rv-slot--ok .rv-state { color: var(--pro-ok); }
.rv-slot--need .rv-state { color: var(--pro-warn); }
.rv-slot--retake .rv-state { color: var(--pro-danger); }
.rv-slot--waived .rv-state { color: var(--pro-muted); }
.rv-slot .rv-actions { display: flex; gap: 6px; margin-top: auto; }
.rv-slot .rv-actions .pro-btn { padding: 6px 10px; font-size: 12px; border-radius: var(--pro-r-sm); flex: 1; }
.review-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pro-line); }
.review-foot .why { font-size: 13px; color: var(--pro-muted); margin: 0; }
.review-foot .why b { color: var(--pro-ink); font-weight: 600; }
.review-foot .pro-btn { padding: 10px 16px; font-size: 14px; border-radius: var(--pro-r); }
.review-foot .pro-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.gate-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.gate-tools .pro-btn { padding: 9px 14px; font-size: 13.5px; border-radius: var(--pro-r); }

/* ---- Landing ---- */
.p4-land section { padding: 40px 0; border-bottom: 1px solid var(--pro-line); }
.p4-land section:last-of-type { border-bottom: 0; }
.p4-land h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin: 0 0 8px; letter-spacing: -0.02em; }
.p4-land .sub { color: var(--pro-muted); margin: 0 0 20px; max-width: 60ch; font-size: 15px; }
.p4-land .eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pro-brand-dark); margin: 0 0 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }
.pack-sample { background: var(--pro-surface); border: 1px solid var(--pro-line); border-radius: var(--pro-r-lg); padding: 16px; max-width: 420px; }
.pack-sample .ps-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.pack-sample .ps-head b { font-weight: 600; }
.pack-sample .ps-head .pro-mono { color: var(--pro-muted); }
.pack-sample ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pack-sample li { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--pro-line); border-radius: var(--pro-r-sm); background: var(--pro-surface-2); }
.pack-sample li.ok { border-color: color-mix(in srgb, var(--pro-ok) 40%, var(--pro-line)); }
.pack-sample li.miss { border-color: var(--pro-warn); border-style: dashed; }
.pack-sample li .s { font-size: 11.5px; font-weight: 600; }
.pack-sample li.ok .s { color: var(--pro-ok); }
.pack-sample li.miss .s { color: var(--pro-warn); }
.pack-sample .ps-foot { margin-top: 10px; font-size: 12.5px; color: var(--pro-warn); font-weight: 600; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: s; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.steps .pro-card { padding: 18px; }
.steps .pro-card::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--pro-mono); font-size: 12px; color: var(--pro-brand-dark); display: block; margin-bottom: 8px; }
.steps h3 { font-size: 1rem; margin: 0 0 4px; }
.steps p { font-size: 14px; }
.demo-cards .pro-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.demo-cards .pro-card ul, .demo-cards .pro-card h3 { align-self: stretch; }
.demo-cards .pro-card .pro-btn { margin-top: 8px; }
.demo-cards ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--pro-muted); }
