:root {
  --ink: #22232a; --muted: #696a75; --accent: #625bdc; --line: #dedfe5; --paper: #f6f6f8;
  font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--paper); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
:is(button,a,input):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1,h2,h3,p { margin: 0; }
h2,h3 { letter-spacing: -.035em; font-weight: 500; line-height: 1.15; }
h2 { font-size: 30px; }
h3 { font-size: 27px; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 20; background: white; padding: 12px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.site-header { max-width: 520px; margin: 0 auto; min-height: 84px; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 7px; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.brand img { width: 28px; height: 28px; }
.brand span { display: none; }
.back-link { font-size: 12px; color: var(--muted); }
.back-link span { margin-left: 8px; }
.back-link:hover { color: var(--accent); }
.layout { max-width: 520px; margin: 10px auto 40px; padding: 0 24px; }
.experience-wrap { min-width: 0; scroll-margin-top: 16px; outline: none; }
.preview-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 15px; font-size: 10px; color: var(--muted); letter-spacing: .02em; }
.preview-label > span:first-child { display: none; }
.preview-end { margin-left: auto; }
.app { background: white; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.demo-steps { display: flex; list-style: none; margin: 0; padding: 0 22px; gap: 28px; border-bottom: 1px solid var(--line); }
.demo-steps li { display: flex; flex: 1; align-items: center; gap: 7px; padding-block: 17px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 12px; }
.demo-steps li span { color: #9a9ba5; font-size: 10px; }
.demo-steps li[aria-current] { border-color: var(--accent); color: var(--ink); }
.demo-steps li[aria-current] span { color: var(--accent); }
.screen h2:focus { outline: none; }
.cover { position: relative; height: 320px; background: #696052; }
.cover > img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.cover::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, #141419b8); }
.cover-copy { position: absolute; z-index: 1; inset: auto 26px 24px; color: white; }
.event-badge { display: block; font-size: 10px; letter-spacing: .04em; margin-bottom: 12px; }
.cover-copy h2 { font-size: 34px; font-weight: 500; }
.cover-copy p { margin-top: 8px; font-size: 12px; color: #eeedf1; }
.screen-content { padding: 30px; }
.eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .04em; line-height: 1.5; }
.screen-content :is(h2,h3) { margin-top: 12px; }
.description { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 14px 0 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 13px 16px; border: 1px solid #c7c8d0; border-radius: 4px; background: white; color: var(--ink); font-size: 13px; font-weight: 500; line-height: 1.5; transition: background-color .18s; }
.button:hover { background: #f5f5f8; }
.primary { color: white; background: var(--accent); border-color: var(--accent); }
.primary:hover { background: #514ac9; }
.screen-content > .button { width: 100%; justify-content: space-between; }
.small-note { font-size: 11px; line-height: 1.7; color: var(--muted); text-align: center; margin-top: 16px; }
.small-note a { text-decoration: underline; text-underline-offset: 3px; }
.back { display: block; min-height: 44px; padding: 12px 0; border: 0; background: none; color: var(--muted); font-size: 12px; }
.back:hover { color: var(--accent); }
.screen-content > .back { margin: -12px 0 16px; }
.selfie-frame { position: relative; width: 190px; height: 220px; margin: 24px auto; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.selfie-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.selfie-frame span { position: absolute; bottom: 0; left: 0; right: 0; padding: 9px 5px; font-size: 10px; color: white; background: #22232ac9; text-align: center; }
.acknowledgment { display: flex; align-items: flex-start; gap: 12px; border-top: 1px solid var(--line); padding: 20px 0; margin-bottom: 6px; font-size: 12px; line-height: 1.7; color: var(--muted); cursor: pointer; }
.acknowledgment input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.matching { min-height: 560px; padding: 60px 30px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.matching h2 { margin-top: 14px; }
.matching .description { max-width: 310px; }
.scan { margin-bottom: 30px; }
progress { height: 4px; width: 210px; accent-color: var(--accent); margin: 10px 0; }
.matching .back { margin-top: 22px; }
.gallery-header { padding: 28px 24px 24px; border-bottom: 1px solid var(--line); }
.gallery-header h2 { margin-top: 12px; }
.gallery-header .description { margin: 10px 0 22px; font-size: 12px; }
.gallery-actions { display: grid; gap: 10px; }
.gallery-actions .button { font-size: 13px; padding-inline: 16px; }
.gallery-actions .save-all { min-height: 54px; font-size: 15px; font-weight: 600; }
.save-hint { margin-top: 12px; font-size: 11px; line-height: 1.7; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 10px; }
.photo-grid button { position: relative; border: 0; padding: 0; background: #f0ece6; overflow: hidden; }
.photo-grid button:first-child { grid-column: 1 / -1; }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.photo-grid button:first-child img { aspect-ratio: 16/10; object-position: center 35%; }
.photo-grid button span { position: absolute; right: 8px; bottom: 8px; background: #ffffffeb; color: #22232a; font-size: 14px; height: 26px; width: 26px; display: grid; place-items: center; }
.photo-grid button:hover span { background: white; }
.gallery-footer { padding: 35px 24px; border-top: 1px solid var(--line); text-align: left; }
.gallery-footer h3 { margin: 14px 0 24px; font-size: 27px; max-width: 300px; }
.gallery-footer .back { margin-top: 10px; }
.gallery-footer .small-note { text-align: left; }
.powered { font-size: 10px; color: var(--muted); text-align: center; margin-top: 20px; }
.powered strong { color: var(--ink); font-weight: 500; }
#share-fallback { margin: 16px 24px; font-size: 12px; color: var(--muted); }
#share-link { display: block; width: 100%; margin-top: 8px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; color: var(--ink); }
dialog { padding: 0; border: 0; background: transparent; max-width: min(700px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); color: white; overflow: auto; }
dialog::backdrop { background: #111216f2; }
.lightbox-inner { padding: 50px 8px 15px; display: flex; align-items: center; flex-direction: column; }
#large-photo { max-width: 100%; max-height: 65dvh; object-fit: contain; }
.save-photo { width: 100%; min-height: 56px; flex-shrink: 0; font-size: 16px; font-weight: 600; border-color: #a69ff7; background: #5548ce; }
.save-photo:hover { background: #6659df; }
.save-photo:focus-visible { outline-color: white; }
.close { position: absolute; right: 0; top: 0; background: transparent; border: 1px solid #62636e; color: white; width: 44px; height: 44px; font-size: 28px; border-radius: 4px; }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding-block: 12px; }
.lightbox-toolbar button { height: 44px; width: 44px; background: transparent; color: white; border: 1px solid #62636e; border-radius: 4px; font-size: 20px; }
.lightbox-toolbar p { font-size: 12px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #22232a; color: white; padding: 14px 20px; border-radius: 4px; font-size: 12px; line-height: 1.6; max-width: calc(100% - 32px); z-index: 10; pointer-events: none; }
.toast:empty { display: none; }
.noscript { text-align: center; padding: 25px; font-size: 14px; }
.noscript a { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(max-width:480px) {
  .layout { padding: 0 14px; margin-top: 0; }
  .site-header { padding-inline: 18px; min-height: 76px; }
  .cover { height: 280px; }
  .screen-content { padding: 24px; }
  .gallery-actions .button { gap: 8px; }
  #large-photo { max-height: calc(100dvh - 210px); }
  .demo-steps { gap: 16px; padding-inline: 18px; }
  .demo-steps li { font-size: 11px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
