@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fonts/schibsted-grotesk.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); }
:root {
  --bg: #ffffff;
  --wash: #eef4ff;
  --wash-deep: #dfe9fb;
  --ink: #0b2340;
  --body: #22364f;
  --soft: #566a82;
  --blue: #1d4ed8;
  --blue-deep: #1a3fae;
  --sun: #ffd24a;
  --ready: #12925f;
  --ready-ink: #0b7a4f;
  --ready-soft: #e7f6ef;
  --rule: #dfe7f2;
  --rule-strong: #c9d6e8;
  --amber: #8a5a00;
  --amber-soft: #fff4dc;
  --amber-line: #f1c979;
  --display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(11, 35, 64, .06);
  --shadow-card: 0 20px 40px -24px rgba(11, 35, 64, .35);
  --shadow-photo: 0 24px 48px -20px rgba(11, 35, 64, .5);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { width: 18px; height: 18px; flex: none; }
.skip-link { position: absolute; left: 12px; top: -48px; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; z-index: 9; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-header { position: relative; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: #fff; }
.brand-mark svg { width: 22px; height: 22px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-group { position: relative; }
.nav-group summary { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--soft); white-space: nowrap; cursor: pointer; list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.nav-group[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.nav-group summary:hover, .nav-group[open] summary { color: var(--ink); }
.nav-group[data-current] summary { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); }
.nav-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: grid; min-width: 250px; padding: 6px; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 18px 40px -16px rgba(11, 35, 64, .3); }
.nav-menu a { padding: 9px 12px; border-radius: 9px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-menu a:hover { background: var(--wash); }
.nav-menu a[aria-current="page"] { background: var(--wash); color: var(--blue-deep); font-weight: 700; }
.nav-direct { display: none; padding: 8px 0; color: var(--soft); text-decoration: none; white-space: nowrap; }
.nav-direct:hover { color: var(--ink); }
.nav-direct[aria-current="page"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--blue); }
@media (min-width: 981px) {
  .nav-direct { display: inline-flex; align-items: center; }
  .nav-group.is-phone { display: none; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--wash), var(--bg) 85%); }
.hero > .wrap { padding: 48px 0 36px; }
.hero h1 { max-width: 20ch; margin: 0; font: 800 clamp(38px, 6vw, 60px)/1.02 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.hero h1 mark { padding: 0 .06em; background: linear-gradient(transparent 58%, var(--sun) 58% 92%, transparent 92%); color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-intro { max-width: 680px; margin: 18px 0 0; font-size: 19px; line-height: 1.55; color: var(--body); }
.hero-cta { margin-top: 24px; }
.lede, .studio-lede { max-width: 44ch; margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: var(--soft); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 26px 0 40px; }
.tool-hero h1 { max-width: 16ch; font-size: clamp(38px, 8.5vw, 68px); line-height: 1; }
.tool-hero .hero-grid:not(.has-demo) h1 { max-width: 24ch; font-size: clamp(34px, 5vw, 54px); line-height: 1.03; }
.tool-intro { max-width: 760px; margin: 44px 0 0; font-size: 18px; line-height: 1.6; color: var(--body); }
.tool-intro + .content-layout { margin-top: 40px; }

/* Studio */
.studio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; min-width: 0; }
.studio-lede { margin: 0 0 4px; }
.studio:not([data-stage="empty"]) .studio-lede { display: none; }
.studio-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; }
.doc-pick { position: relative; display: flex; flex: 1 1 100%; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 54px; padding: 12px 16px; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-weight: 600; line-height: 1.35; cursor: pointer; }
.doc-pick:hover { border-color: var(--rule-strong); }
.doc-pick:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.doc-name { min-width: 0; }
.doc-change { display: inline-flex; flex: none; align-items: center; gap: 4px; color: var(--soft); font-weight: 400; }
.doc-change .icon { width: 16px; height: 16px; }
.doc-pick select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; font-size: 16px; cursor: pointer; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--soft); cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: #c3cfdf; transition: background-color .15s; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(11, 35, 64, .3); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--blue); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch:has(input:checked) { color: var(--ink); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--blue); outline-offset: 2px; }

.inapp { display: grid; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--amber-soft); font-size: 15px; line-height: 1.45; }
.inapp-text { margin: 0; font-weight: 700; color: var(--amber); }
.inapp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.inapp-actions .button { text-decoration: none; }
.save-image { display: block; width: min(100%, 360px); height: auto; justify-self: center; border: 1px solid var(--rule); border-radius: 8px; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.studio-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.stage { min-width: 0; }
.stage-frame { position: relative; display: grid; min-width: 0; }

.stage-empty { display: grid; gap: 14px; width: 100%; }
.studio.is-dragging .stage-empty { outline: 3px dashed var(--blue); outline-offset: 10px; border-radius: var(--radius); }
.empty-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.empty-actions .button { min-height: 56px; font-size: 18px; }
.helper-link, .drop-note { display: none; margin: -4px 0 0; font-size: 14.5px; color: var(--soft); }
.helper-link .link-button { color: var(--soft); font-weight: 500; text-decoration-color: var(--rule-strong); }
@media (pointer: coarse) { .helper-link { display: block; } }
@media (pointer: fine) { .drop-note { display: block; } }
.empty-hint { margin: -4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--soft); }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; padding: 0; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px 5px 9px; background: var(--bg); border: 1px solid var(--rule); border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--soft); }
.trust .icon { width: 14px; height: 14px; color: var(--ready); stroke-width: 2.6; }
.tips { margin: 0; font-size: 14px; line-height: 1.45; color: var(--soft); }
.notice { display: grid; gap: 10px; width: 100%; padding: 14px 16px; border-radius: var(--radius); background: var(--wash); color: var(--ink); font-size: 15px; line-height: 1.45; }
.notice:focus { outline: none; }
.notice:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.notice[data-tone="error"] { background: var(--amber-soft); color: var(--amber); }
.notice-text { display: grid; gap: 2px; margin: 0; font-weight: 600; }
.notice-text span:first-child { font-weight: 800; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-actions:empty { display: none; }
.notice-actions .button { min-height: 44px; padding: 0 16px; font-size: 15px; }
.boot-note { max-height: 0; margin: -14px 0 0; overflow: hidden; opacity: 0; font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--amber); }
.studio:not([data-ready]) .boot-note { animation: boot-note 0s 8s forwards; }
@keyframes boot-note { to { max-height: 160px; margin-top: 0; opacity: 1; } }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Demo */
.demo { display: grid; gap: 4px; width: 100%; max-width: 520px; margin: 6px auto 0; }
.demo figure { margin: 0; }
.demo-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.demo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.demo-raw img { border-radius: 16px; opacity: .92; }
.demo-out img { border-radius: 4px; outline: 8px solid #fff; box-shadow: var(--shadow-photo); }
.demo figcaption { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--soft); text-align: center; }
.demo-out figcaption { color: var(--ink); }
.demo-out figcaption .icon { width: 16px; height: 16px; color: var(--ready); stroke-width: 2.6; }
.demo-arrow { color: var(--blue); }
.demo-arrow .icon { width: 28px; height: 28px; }
.demo .demo-note { margin-top: 6px; font-size: 12px; font-weight: 400; }
.hero-grid:has(.studio:not([data-stage="empty"])) .demo { display: none; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1.5px solid var(--rule); border-radius: var(--radius); background: var(--bg); color: var(--ink); font: 700 16px/1.2 var(--sans); text-align: center; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s; }
.button:hover { border-color: var(--rule-strong); background: #f7faff; }
.button:active { transform: translateY(1px); }
.button-primary { border-color: var(--blue); background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(29, 78, 216, .85); }
.button-primary:hover { border-color: var(--blue-deep); background: var(--blue-deep); }
.button:disabled { opacity: .55; cursor: progress; }
.button-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 6px; border: 0; background: none; color: var(--soft); font: 600 15px var(--sans); cursor: pointer; }
.text-button:hover { color: var(--ink); text-decoration: underline; }
.text-button[aria-pressed="true"] { color: var(--blue-deep); }
.link-button { display: inline-block; margin: -11px 0; padding: 11px 2px; border: 0; background: none; color: var(--blue-deep); font: inherit; font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--ink); }

/* Camera */
.camera { position: relative; width: min(100%, 560px, calc((100vh - 40px) * .75)); aspect-ratio: 3 / 4; margin-inline: auto; border-radius: var(--radius); overflow: hidden; background: #0b1117; }
@supports (height: 100svh) { .camera { width: min(100%, 560px, calc((100svh - 40px) * .75)); } }
.camera video, .camera-overlay { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.camera.is-mirrored video, .camera.is-mirrored .camera-overlay { transform: scaleX(-1); }
.camera-top { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.camera-hint { max-width: 100%; margin: 0; padding: 8px 16px; border-radius: 16px; background: rgba(11, 35, 64, .86); color: #fff; font-size: 18px; font-weight: 700; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
.camera-hint[data-tone="good"] { background: rgba(13, 110, 72, .95); }
.camera-hint[data-tone="muted"] { font-size: 16px; font-weight: 600; }
.camera-tip { max-width: 100%; margin: 0; padding: 6px 14px; border-radius: 14px; background: rgba(122, 76, 0, .95); color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; text-align: center; }
.camera-say { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; }
.camera-arrow { display: grid; flex: none; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(11, 35, 64, .86); box-shadow: 0 0 0 3px #fff; color: #fff; }
.camera-arrow svg { width: 48px; height: 48px; }
.camera-arrow[data-arrow="down"] svg { transform: rotate(180deg); }
.camera-arrow[data-arrow="left"] svg { transform: rotate(-90deg); }
.camera-arrow[data-arrow="right"] svg { transform: rotate(90deg); }
.camera-arrow .arrow-in, .camera-arrow .arrow-out, .camera-arrow[data-arrow="closer"] .arrow-up, .camera-arrow[data-arrow="back"] .arrow-up { display: none; }
.camera-arrow[data-arrow="closer"] .arrow-out, .camera-arrow[data-arrow="back"] .arrow-in { display: block; }
.countdown { position: absolute; left: 50%; bottom: 108px; display: grid; place-items: center; width: 112px; height: 112px; margin: 0 0 0 -56px; border-radius: 50%; background: rgba(11, 35, 64, .66); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); color: #fff; font: 800 76px/1 var(--display); pointer-events: none; }
.camera.is-handsfree::after { content: ""; position: absolute; inset: 0; border: 8px solid #f0a020; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(11, 35, 64, .7); pointer-events: none; }
.camera.is-handsfree.is-aligned::after { border-color: #2bd192; }
.camera-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 35, 64, .6); }
.camera-side { display: flex; justify-content: center; gap: 6px; }
.round-button { display: grid; justify-items: center; gap: 4px; min-width: 58px; padding: 0; border: 0; background: none; color: #fff; font: 700 13px/1.2 var(--sans); cursor: pointer; }
.round { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(11, 35, 64, .75); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6); }
.round .icon { width: 22px; height: 22px; }
.round-button:hover .round { background: rgba(11, 35, 64, .92); }
.round-button[aria-pressed="true"] .round { background: #f0a020; color: var(--ink); box-shadow: 0 0 0 1.5px #fff; }
.shutter { width: 76px; height: 76px; padding: 0; border: 5px solid #fff; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px rgba(11, 35, 64, .8), 0 0 0 2px rgba(11, 35, 64, .5); cursor: pointer; transition: transform .1s; }
.shutter:active { transform: scale(.94); }
.voice-button .icon + .icon, .voice-button[aria-pressed="false"] .icon:first-child { display: none; }
.voice-button[aria-pressed="false"] .icon + .icon { display: block; }
html.camera-open { overflow: hidden; }
.camera.is-paused .camera-top, .camera.is-paused .shutter, .camera.is-paused [data-timer], .camera.is-paused [data-flip] { visibility: hidden; }
.camera-paused { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; background: rgba(11, 35, 64, .9); color: #fff; font-weight: 700; text-align: center; }
.camera-paused p { margin: 0; font-size: 18px; }
.camera.is-aligned .shutter { background: #2bd192; }

/* Photo */
.result { display: grid; justify-items: center; gap: 8px; width: 100%; }
.print { position: relative; width: min(100%, 440px); aspect-ratio: var(--aspect, 1 / 1); overflow: hidden; border-radius: 12px; background: var(--bg); box-shadow: 0 1px 2px rgba(11, 35, 64, .1), var(--shadow-photo); -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.print canvas { display: block; width: 100%; height: 100%; }
.print .highlight { position: absolute; inset: 0; pointer-events: none; }
.guides { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mark { vector-effect: non-scaling-stroke; }
.mark.is-pass { color: #16a068; }
.mark.is-warn { color: #e2a21c; }
.mark.is-fail { color: #f08a00; }
.mark.is-zone { fill: currentColor; fill-opacity: .32; }
.mark.is-bracket, .mark.is-tick { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }
.guide-chip { position: absolute; bottom: 8px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ready-ink); font: 500 12.5px/1.3 var(--mono); white-space: nowrap; box-shadow: 0 1px 3px rgba(11, 35, 64, .28); pointer-events: none; }
.guide-chip.is-left { left: 8px; }
.guide-chip.is-right { right: 8px; }
.guide-chip[data-status="warn"] { color: var(--amber); }
.guide-chip[data-status="fail"] { background: var(--amber-soft); color: var(--amber); }
.print .is-temporary { opacity: 0; transition: opacity .45s; }
.print.show-guides .is-temporary, .print.is-adjusting .is-temporary, .print.is-highlighting .is-temporary { opacity: 1; }
.print.is-highlighting .guides { animation: blink 1s ease-in-out 3; }
@keyframes blink { 50% { opacity: .35; } }
.photo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 14px; width: min(100%, 440px); }
.photo-note { display: grid; gap: 4px; width: min(100%, 440px); font-size: 14px; line-height: 1.45; color: var(--soft); text-align: center; }
.photo-note p { margin: 0; }
.adjust, .backdrop { width: min(100%, 440px); border-top: 1px solid var(--rule); }
.adjust summary, .backdrop summary, .passed summary, .spec-box summary, .save-formats summary, .retake-how summary, .more-info summary { display: flex; align-items: center; gap: 8px; min-height: 46px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--ink); }
:is(.adjust, .backdrop, .passed, .spec-box, .save-formats, .retake-how, .more-info) summary::-webkit-details-marker { display: none; }
:is(.adjust, .backdrop, .passed, .spec-box, .save-formats, .retake-how, .more-info) summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 3px auto; border-right: 1.8px solid var(--soft); border-bottom: 1.8px solid var(--soft); transform: rotate(45deg); transition: transform .15s; }
:is(.adjust, .backdrop, .passed, .spec-box, .save-formats, .retake-how, .more-info)[open] > summary::after { margin-bottom: -3px; transform: rotate(-135deg); }
.adjust-body { display: grid; gap: 12px; padding: 2px 0 14px; }
.zoom { display: flex; align-items: flex-end; gap: 10px; }
.zoom-label { display: grid; flex: 1; gap: 2px; font-size: 14px; font-weight: 600; color: var(--soft); }
.zoom input { width: 100%; height: 32px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.zoom input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, #c9d4e2 var(--zone-from, 0%), #7fd3ab var(--zone-from, 0%), #7fd3ab var(--zone-to, 100%), #c9d4e2 var(--zone-to, 100%)); }
.zoom input::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, #c9d4e2 var(--zone-from, 0%), #7fd3ab var(--zone-from, 0%), #7fd3ab var(--zone-to, 100%), #c9d4e2 var(--zone-to, 100%)); }
.zoom input::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -10px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 1px 4px rgba(11, 35, 64, .35); -webkit-appearance: none; appearance: none; }
.zoom input::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 1px 4px rgba(11, 35, 64, .35); }
.zoom input:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.nudges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.nudge { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 12px; background: var(--bg); color: var(--ink); font: 700 22px/1 var(--sans); cursor: pointer; }
.nudge:hover { border-color: var(--blue); color: var(--blue-deep); }
.fit-note { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--amber); }
.backdrop-warning { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 14px 5px 7px; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); font-size: 14.5px; cursor: pointer; }
.swatch input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.swatch-chip { width: 26px; height: 26px; border-radius: 50%; background: var(--chip, #fff); box-shadow: inset 0 0 0 1px rgba(11, 35, 64, .22); }
.swatch-chip.is-original { background: linear-gradient(135deg, #d7c6ad 0 50%, #93a7b8 50% 100%); }
.swatch-color { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.swatch:hover { border-color: var(--rule-strong); }
.swatch:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px var(--wash-deep); font-weight: 700; }
.swatch:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.backdrop-hint, .backdrop-error { margin: 10px 0 12px; font-size: 14px; color: var(--soft); }
.backdrop-error { font-weight: 700; color: var(--amber); }

.busy { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; border-radius: inherit; background: rgba(255, 255, 255, .92); text-align: center; font-weight: 600; }
.busy p { margin: 0; max-width: 320px; }
.spinner { width: 38px; height: 38px; border: 4px solid var(--wash-deep); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

.taps { display: grid; justify-items: center; gap: 10px; width: 100%; }
.taps-hint { display: grid; gap: 2px; width: min(100%, 480px); margin: 0; padding: 10px 14px; border-radius: var(--radius); background: var(--wash); font-size: 15.5px; line-height: 1.4; text-align: center; }
.taps-hint:focus { outline: none; }
.taps-hint strong { font-size: 17px; }
.taps-photo { display: block; max-width: 100%; max-height: 70vh; border-radius: 8px; cursor: crosshair; touch-action: manipulation; box-shadow: var(--shadow-card); }
.taps-actions { display: flex; gap: 16px; }

/* Stages */
.studio:not([data-stage="result"]) .panel { display: none; }
.studio:is([data-stage="camera"], [data-stage="taps"]) .studio-card, .studio[data-stage="result"] .studio-card { padding: 16px; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* Result panel */
.panel { display: grid; gap: 4px; align-content: start; min-width: 0; }
.verdict { display: flex; align-items: center; gap: 12px; margin: 2px 2px 10px; }
.verdict:focus { outline: none; }
.verdict:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.verdict-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--wash); color: var(--blue); }
.verdict-icon .icon { display: none; width: 20px; height: 20px; stroke-width: 2.2; }
.verdict[data-tone="ready"] .verdict-icon { background: var(--ready-soft); color: var(--ready); }
.verdict[data-tone="retake"] .verdict-icon { background: var(--amber-soft); color: var(--amber); }
.verdict[data-tone="ready"] .icon:nth-child(1), .verdict:is([data-tone="almost"], [data-tone="fixed"]) .icon:nth-child(2), .verdict[data-tone="retake"] .icon:nth-child(3) { display: block; }
.verdict-copy { display: grid; gap: 1px; margin: 0; }
.verdict-copy strong { font-size: 19px; line-height: 1.25; }
.verdict-copy span { font-size: 14.5px; line-height: 1.45; color: var(--soft); }
.verdict[data-tone="fixed"] .verdict-copy span { font-size: 13.5px; }
.check-list { display: grid; }
.check-list:empty { display: none; }
.checks { display: grid; margin: 0; padding: 0; list-style: none; }
.check { border-top: 1px solid var(--rule); }
.check-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 10px 2px; border: 0; background: none; color: var(--ink); font: 400 15.5px/1.35 var(--sans); text-align: left; cursor: pointer; }
.check-row:hover .check-label { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.check-label { flex: 1; min-width: 0; }
.check-chevron { flex: none; width: 16px; height: 16px; color: var(--soft); transition: transform .15s; }
.check-row[aria-expanded="true"] .check-chevron { transform: rotate(180deg); }
.pill { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px; background: var(--wash); color: var(--blue); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.pill[data-tone="good"] { background: var(--ready-soft); color: var(--ready-ink); }
.pill[data-tone="good"]::before { content: ""; width: 11px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.5L10 3.3' fill='none' stroke='%230b7a4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pill:is([data-tone="retake"], [data-tone="check"]) { background: var(--amber-soft); color: var(--amber); }
.check-more { padding: 0 2px 14px; }
.check-detail { margin: 0 0 4px; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.check-show { margin: 0; font-size: 14.5px; }
.passed { border-top: 1px solid var(--rule); }
.passed summary { font-size: 14.5px; font-weight: 400; color: var(--soft); }
.passed[open] summary { color: var(--ink); }
.passed .check:first-child { border-top: 0; }
.fix { display: grid; gap: 10px; margin-top: 8px; scroll-margin-top: 16px; }
.fix-title:focus { outline: none; }
.fix-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fix-actions .button { flex: 1 1 160px; }
.fix-main { min-height: 56px; font-size: 18px; }
.fix-note, .fix-hint { margin: -2px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--soft); }
.fix-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); font-size: 14px; font-weight: 700; color: var(--amber); }
.fix-group { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--wash); }
.fix-done-title { margin: 0; font-size: 15px; font-weight: 700; }
.fix-done { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.fix-done li { display: flex; gap: 8px; align-items: baseline; }
.fix-done li::before { content: ""; flex: none; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.5L10 3.3' fill='none' stroke='%2312925f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.fix-group .fix-actions .button { flex: 0 0 auto; }
.retake-how { border-top: 1px solid var(--rule); }
.fix-list { display: grid; gap: 14px; margin: 0; padding: 2px 0 12px; list-style: none; }
.fix-item { display: grid; gap: 4px; }
.fix-item strong { font-size: 15.5px; line-height: 1.35; }
.fix-steps { display: grid; gap: 3px; margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.45; color: var(--body); }
.save { display: grid; gap: 10px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.save .button { width: 100%; }
.save-main { min-height: 56px; font-size: 17px; }
.save-sub, .save-alt { margin: -4px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--soft); text-align: center; }
.save-more { display: grid; gap: 8px; }
.save-more:empty { display: none; }
.save-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin: 0; font-size: 14.5px; }
.save-links .link-button { margin: 0; }
.save-list { display: grid; gap: 8px; padding: 4px 0 6px; }
.save-formats { border-top: 1px solid var(--rule); }
.save-formats summary { color: var(--soft); }
.reminder { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--wash); font-size: 13.5px; line-height: 1.45; color: var(--body); }
.next-step { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius); background: var(--ready-soft); font-size: 15px; line-height: 1.45; }
.next-step:empty { padding: 0; }
.next-step p { margin: 0; }
.next-title { font-weight: 800; color: var(--ready-ink); }
.next-error { font-weight: 700; color: var(--amber); }
.save > .text-button { justify-self: center; }
.authority { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--soft); }
.report { margin: 0; font-size: 13px; }
.report a { display: inline-block; padding: 10px 0; color: var(--soft); }
.result-bar { display: none; }
.spec-box { max-width: 560px; }
.spec-box summary { font-size: 14.5px; color: var(--soft); }
.spec { display: grid; margin: 0 0 4px; }
.spec div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.spec dt { color: var(--soft); }
.spec dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.spec-source { margin: 8px 0 6px; font-size: 13.5px; color: var(--soft); }
.spec-source a { display: inline-block; margin: -14px 0; padding: 14px 0; }

/* Article */
.content-layout { display: grid; grid-template-columns: minmax(0, 760px); gap: 64px; margin-top: 56px; }
.content-layout.has-toc { grid-template-columns: minmax(0, 1fr) 240px; }
.content-layout.has-toc .toc { grid-column: 2; grid-row: 1; }
.content-layout.has-toc .content { grid-column: 1; grid-row: 1; }
.content-layout.is-landing { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
.toc { align-self: start; position: sticky; top: 20px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); }
.toc p { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--soft); }
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 5px 0; color: var(--soft); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.content { max-width: 760px; }
.is-landing .content { max-width: none; }
.content h2 { margin: 56px 0 14px; font: 800 clamp(26px, 3vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }
.content > h2:first-child, .content > p:first-child, .content > .updated + h2 { margin-top: 0; }
.content h3 { margin: 28px 0 8px; font: 700 21px/1.25 var(--display); letter-spacing: -.01em; }
.content p, .content li { color: var(--body); font-size: 17px; line-height: 1.7; }
.content li + li { margin-top: 6px; }
.content ol, .content ul { padding-left: 24px; }
.content ol li::marker { font-weight: 800; color: var(--blue-deep); }
.content table { width: 100%; margin: 20px 0; border-collapse: separate; border-spacing: 0; background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; font-size: 15.5px; }
.content th, .content td { padding: 11px 14px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.content tr:last-child td { border-bottom: 0; }
.content th { background: var(--wash); font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--soft); }
.table-wrap { margin: 20px 0; overflow-x: auto; }
.content .table-wrap table { margin: 0; }
.content td:first-child { font-weight: 600; color: var(--ink); }
.callout { margin: 24px 0; padding: 18px 20px; background: var(--wash); border-radius: var(--radius); }
.callout p { margin: 0; }
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; padding: 16px 40px 16px 0; cursor: pointer; list-style: none; font-size: 17.5px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq p { margin: 0; padding: 0 0 18px; }
.content .updated { margin: 0 0 32px; font-size: 13.5px; line-height: 1.6; color: var(--soft); }
.related { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--rule); }
.related h2 { margin-top: 24px; }
.related ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.related li + li { margin-top: 0; }
.related a { font-weight: 600; }
.example { margin: 22px 0 12px; }
.example img { display: block; width: 100%; max-width: 280px; height: auto; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.example figcaption { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--soft); }
.content .more { margin: 10px 0 0; font-weight: 600; }
.content .more a { text-decoration-color: rgba(26, 63, 174, .35); }

/* Landing sections */
.content .steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.content .steps li { display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 16px; border-radius: 18px; background: var(--wash); }
.steps .icon { box-sizing: content-box; width: 22px; height: 22px; padding: 9px; border-radius: 12px; background: var(--bg); color: var(--blue); }
.content .steps p { display: grid; gap: 2px; margin: 0; font-size: 15px; line-height: 1.5; }
.steps strong { font-size: 17px; color: var(--ink); }
.steps span { color: var(--soft); }
.more-info { margin: 8px 0 0; }
.more-info summary { min-height: 44px; font-size: 15px; color: var(--blue-deep); }
.more-info summary::after { border-color: var(--blue-deep); margin-left: 2px; }
.more-info > :not(summary) { margin-top: 4px; }
.more-info > p, .more-info li { font-size: 16px; }
.topics { display: grid; gap: 16px; margin-top: 44px; }
.topic { min-width: 0; padding: 22px 22px 18px; border: 1px solid var(--rule); border-radius: 18px; background: var(--bg); }
.content .topic h2 { margin: 0 0 8px; font-size: 23px; line-height: 1.15; letter-spacing: -.015em; }
.content .topic > p { margin: 0; font-size: 16px; line-height: 1.6; }
.topic .more-info { margin-top: 4px; }
.topic .more { margin-top: 6px; font-size: 15.5px; }
.is-landing .content > h2:first-child { margin-top: 16px; }
.is-landing .faq, .is-landing .related, .is-landing .content > h2#questions { max-width: 760px; }
.is-landing .content > h2#questions { margin-top: 64px; }
.is-landing .content .updated { margin: 24px 0 0; }

/* Footer */
.site-footer { margin-top: 96px; padding: 44px 0 56px; background: var(--bg); border-top: 1px solid var(--rule); color: var(--soft); font-size: 14px; }
.footer-inner { display: grid; gap: 32px; }
.footer-about { display: grid; gap: 14px; align-content: start; }
.footer-about p { max-width: 420px; margin: 0; font-size: 13.5px; line-height: 1.55; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.footer-title { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.footer-group ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.footer-group a { color: var(--soft); text-decoration: none; line-height: 1.4; }
.footer-group a:hover { color: var(--ink); text-decoration: underline; }
.footer-group a[aria-current="page"] { color: var(--ink); font-weight: 600; }

@media (min-width: 600px) {
  .empty-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic.is-wide { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 48px; }
}
@media (min-width: 981px) {
  .hero-grid { padding: 44px 0 56px; }
  .hero-grid.has-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; align-items: center; padding: 60px 0 44px; }
  .hero-grid.has-demo > .hero-copy, .hero-grid.has-demo > .studio { grid-column: 1; }
  .hero-grid.has-demo > .demo { grid-column: 2; grid-row: 1 / span 2; margin: 0; justify-self: center; }
  .hero-grid.has-demo > .spec-box { grid-column: 1; }
  .hero-grid:has(.studio:not([data-stage="empty"])) { grid-template-columns: minmax(0, 1fr); }
  .hero-grid:not(.has-demo) .studio[data-stage="empty"] { max-width: 640px; }
  .studio[data-stage="result"] .studio-card { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px; padding: 28px; }
  .studio[data-stage="result"] .stage { position: sticky; top: 16px; }
  .studio[data-stage="result"] .print { width: min(100%, 480px); }
  .studio[data-stage="result"] :is(.photo-bar, .photo-note, .adjust, .backdrop) { width: min(100%, 480px); }
  .studio:is([data-stage="camera"], [data-stage="taps"]) .studio-card { padding: 28px; }
}
@media (max-width: 980px) {
  .studio[data-stage="result"] .studio-card { display: flex; flex-direction: column; gap: 0; }
  .studio[data-stage="result"] :is(.stage, .stage-frame, .result, .panel) { display: contents; }
  .studio[data-stage="result"] .print { order: 1; align-self: center; }
  .studio[data-stage="result"] .photo-bar { order: 2; align-self: center; margin-top: 6px; }
  .studio[data-stage="result"] .photo-note { order: 3; align-self: center; margin-bottom: 8px; }
  .studio[data-stage="result"] .verdict { order: 4; margin-top: 8px; }
  .studio[data-stage="result"] .check-list { order: 5; }
  .studio[data-stage="result"] .fix { order: 6; }
  .studio[data-stage="result"] .adjust { order: 7; width: 100%; margin-top: 14px; }
  .studio[data-stage="result"] .backdrop { order: 8; width: 100%; }
  .studio[data-stage="result"] .save { order: 9; }
  .studio[data-stage="result"] .authority { order: 10; }
  .studio[data-stage="result"] .report { order: 11; }
  .studio[data-stage="result"] .busy { border-radius: var(--radius-lg); }
  .studio[data-stage="result"] .result-bar { position: sticky; bottom: 0; z-index: 20; display: grid; gap: 6px; margin: 0 calc(50% - 50vw); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--rule); box-shadow: 0 -10px 24px -12px rgba(11, 35, 64, .25); }
  .bar-note { margin: 0; font-size: 14px; font-weight: 700; color: var(--ready-ink); text-align: center; }
  .bar-note:empty { display: none; }
  .result-bar .button { width: min(100%, 560px); min-height: 52px; justify-self: center; font-size: 17px; }
  .content-layout.has-toc { grid-template-columns: minmax(0, 760px); gap: 32px; }
  .content-layout.has-toc .toc, .content-layout.has-toc .content { grid-column: 1; grid-row: auto; }
  .toc { position: static; }
  .header-inner { position: relative; flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 12px 0; }
  .site-nav { gap: 22px; }
  .nav-group { position: static; }
  .nav-group summary { padding: 6px 0 10px; }
  .nav-menu { top: 100%; left: 0; right: 0; min-width: 0; }
  .nav-menu a { white-space: normal; padding-block: 11px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-nav { gap: 18px; font-size: 14.5px; }
  .hero > .wrap { padding: 26px 0 22px; }
  .hero-intro { margin-top: 12px; font-size: 17px; }
  .lede, .studio-lede { font-size: 17px; }
  .hero-grid { gap: 16px; padding: 22px 0 32px; }
  .tool-hero .hero-grid:not(.has-demo) h1 { font-size: 34px; }
  .tool-intro { margin-top: 36px; font-size: 17px; }
  .studio[data-stage="camera"] .studio-card { padding: 0; border: 0; background: none; box-shadow: none; }
  .studio[data-stage="camera"] .camera { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100vh; height: 100dvh; max-height: none; aspect-ratio: auto; border-radius: 0; }
  .studio[data-stage="camera"] .busy { position: fixed; z-index: 61; border-radius: 0; }
  .studio[data-stage="taps"] .studio-card { padding: 12px; }
  .trust { gap: 6px; }
  .trust li { padding: 4px 9px 4px 7px; font-size: 12.5px; }
  .save-main { padding: 0 14px; font-size: 16px; }
  .camera { width: min(100%, calc(100svh * .75)); max-height: 100svh; }
  .camera-hint { font-size: 17px; }
  .swatches { gap: 6px; }
  .zoom input { height: 44px; }
  .taps-hint { min-height: 7.4em; align-content: center; }
  .swatch-color { width: 34px; height: 34px; }
  .content-layout { margin-top: 48px; }
  .content p, .content li { font-size: 16px; }
  .content th, .content td { padding: 8px 10px; }
  .topics { margin-top: 32px; gap: 12px; }
  .topic { padding: 18px 18px 14px; }
  .content .topic h2 { font-size: 21px; }
  .site-footer { margin-top: 72px; }
}
/* OCI photo and signature */
.oci-demo { max-width: 500px; }
.oci-files { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 22px; padding: 8px; }
.oci-file { display: grid; gap: 12px; margin: 0; }
.oci-file-photo { position: relative; }
.oci-photo-art { display: block; width: 100%; height: auto; border-radius: 4px; outline: 8px solid #fff; box-shadow: var(--shadow-photo); }
.oci-photo-art text { font: 500 8.5px var(--mono); letter-spacing: .02em; }
.oci-file.is-sign img { aspect-ratio: 3 / 1; object-fit: contain; border-radius: 4px; outline: 8px solid #fff; background: #fff; box-shadow: var(--shadow-photo); }
.demo .oci-file figcaption { display: grid; justify-items: center; gap: 0; margin-top: 8px; color: var(--ink); }
.oci-file figcaption span { font: 500 12.5px/1.4 var(--mono); color: var(--soft); white-space: nowrap; }
.demo .oci-demo-note, .oci-demo > .demo-note { margin-top: 14px; font-size: 13px; }
.oci-demo > .demo-note a { font-weight: 700; }
@media (max-width: 480px) { .oci-demo > .demo-note { flex-direction: column; gap: 2px; } .oci-demo > .demo-note .demo-sep { display: none; } }
.content .oci-steps { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 18px 0 6px; }
.facts div { padding: 13px 15px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); }
.facts dt { font-size: 13px; font-weight: 600; color: var(--soft); }
.facts dd { margin: 3px 0 0; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.facts div:last-child { border-color: transparent; background: var(--ready-soft); }
.facts div:last-child dd { color: var(--ready-ink); }
.sig { display: grid; gap: 14px; margin: 22px 0 8px; padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bg); box-shadow: var(--shadow-card); scroll-margin-top: 16px; }
.sig.is-dragging { outline: 3px dashed var(--blue); outline-offset: 6px; }
.content .sig p, .content .sig li { margin: 0; font-size: 15px; line-height: 1.45; }
.content .sig li + li { margin-top: 0; }
.sig-empty, .sig-work { display: grid; gap: 14px; }
.sig-demo { display: grid; gap: 4px; margin: 0 0 4px; }
.sig-demo figure { margin: 0; }
.sig-demo-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); align-items: center; gap: 10px; }
.sig-demo img { display: block; width: 100%; height: auto; }
.sig-demo-raw img { border-radius: 12px; }
.sig-demo-out img { border-radius: 4px; outline: 6px solid #fff; box-shadow: var(--shadow-photo); }
.sig-demo figcaption { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--soft); text-align: center; }
.sig-demo-out figcaption { color: var(--ink); }
.sig-demo-out figcaption .icon { width: 16px; height: 16px; color: var(--ready); stroke-width: 2.6; }
.sig-demo .demo-note { margin-top: 4px; font-size: 12px; font-weight: 400; }
.sig-stage { display: grid; gap: 8px; justify-items: center; }
.sig-canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; border-radius: 4px; background: #fff; box-shadow: 0 0 0 1px var(--rule-strong), var(--shadow-photo); cursor: grab; touch-action: none; }
.sig-canvas:active { cursor: grabbing; }
.content .sig .sig-hint { font-size: 13px; color: var(--soft); }
.sig-controls { display: grid; gap: 6px; }
.sig .zoom input { --zone-from: 0%; --zone-to: 0%; }
.content .sig .sig-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 14px; }
.content .sig-checks { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.sig-check { display: flex; align-items: flex-start; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--rule); }
.sig-check .pill { margin-top: 1px; }
.content .sig-check p { display: grid; gap: 1px; }
.sig-check strong { font-size: 15.5px; color: var(--ink); }
.sig-check span { color: var(--soft); }
.sig-save { display: grid; gap: 10px; }
.sig-save .save-main:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.content .oci-fixes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.content .oci-fixes li { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 14px 16px; border-radius: var(--radius); background: var(--wash); }
.oci-fixes .icon { margin-top: 2px; color: var(--ready); stroke-width: 2.6; }
.content .oci-fixes p { display: grid; gap: 2px; margin: 0; font-size: 15px; line-height: 1.45; }
.oci-fixes strong { font-size: 16px; color: var(--ink); }
.oci-fixes span { color: var(--soft); }
@media (min-width: 700px) {
  .sig { padding: 24px; }
}

.content .print-steps { display: grid; gap: 12px; margin: 20px 0 10px; padding: 0; list-style: none; counter-reset: none; }
.content .print-steps > li { display: grid; gap: 14px; margin: 0; padding: 18px; border-radius: 18px; background: var(--wash); }
.content .print-step h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 19px; }
.print-step-num { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font: 800 15px/1 var(--sans); }
.content .print-step-copy p { margin: 0; font-size: 16px; line-height: 1.55; }
.content .print-step-copy .print-test { margin-top: 12px; }
.print-step-art { justify-self: center; width: 100%; max-width: 300px; margin: 0; }
.print-step-art img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; box-shadow: var(--shadow-sm); }
.print-step-art figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--soft); text-align: center; }
.print-art { display: block; width: 100%; height: auto; }
@media (min-width: 700px) {
  .content .print-steps > li { grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 22px; padding: 20px 22px; }
}

.print-sheet { display: none; }
@page photo-sheet { size: 8.5in 11in; margin: 0; }
@media print {
  body.has-print-sheet { margin: 0; background: #fff; }
  body.has-print-sheet > :not(.print-sheet) { display: none !important; }
  body.has-print-sheet .print-sheet { page: photo-sheet; position: relative; display: block; width: 8.5in; height: 10.95in; overflow: hidden; color: #000; font-family: Helvetica, Arial, sans-serif; }
  .print-sheet img { position: absolute; display: block; outline: 0.5pt solid #b8b8b8; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .sheet-title { position: absolute; margin: 0; font-size: 9pt; color: #555; text-align: center; }
  .sheet-ruler { position: absolute; }
  .ruler-bar { position: absolute; left: 0; top: 50%; width: 1in; height: 0.16in; margin-top: -0.08in; border-left: 0.01in solid #000; border-right: 0.01in solid #000; background: linear-gradient(#000, #000) center / 100% 0.02in no-repeat; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .ruler-label { position: absolute; left: 1.12in; top: 50%; width: 4.5in; transform: translateY(-50%); font-size: 7pt; line-height: 1.3; }
}
@media (max-width: 400px) {
  .brand { white-space: normal; font-size: 16px; line-height: 1.2; }
  .site-nav { flex-wrap: wrap; gap: 0 16px; }
  .content table { font-size: 14.5px; }
  .content th, .content td { padding: 6px 8px; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
  .check-row { font-size: 15px; }
}
@media (max-width: 320px) {
  .camera-controls { grid-template-columns: 1fr 1fr; row-gap: 6px; }
  .shutter { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: 64px; height: 64px; }
  .round-button { min-width: 48px; font-size: 12px; }
  .round { width: 44px; height: 44px; }
  .camera-arrow { width: 56px; height: 56px; }
  .camera-arrow svg { width: 38px; height: 38px; }
  .camera-hint { padding: 6px 10px; font-size: 16px; }
  .countdown { bottom: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
  .button, .shutter, .switch-track, .switch-track::after, .print .is-temporary, .check-chevron, .nav-group summary::after, .faq summary::after, summary::after { transition: none; }
  .print.is-highlighting .guides { animation: none; }
}
