/* Recreated app screens. Built at 412x892 like a phone, scaled to fit by --s.
   Colors, type and wording follow the app. */
.demo-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%; }
.demo-wrap .phone { width: 100%; max-width: 300px; }
.demo-toggle {
  font: 500 14px var(--body); color: var(--ink-soft); background: none; border: 1px solid var(--rule);
  border-radius: 8px; padding: 4px 12px; cursor: pointer;
}
.demo-toggle:hover { color: var(--ink); border-color: var(--ink-soft); }

.screen-box { position: relative; aspect-ratio: 412 / 892; overflow: hidden; border-radius: calc(var(--phone-radius) - 7px); background: #F2F4F2; }
.app {
  position: absolute; left: 0; top: 0; width: 412px; height: 892px; transform: scale(var(--s, 0.7)); transform-origin: 0 0;
  background: #F2F4F2; color: #12283E; font: 400 15px/1.4 "Hanken Grotesk", sans-serif; overflow: hidden;
}
.app p { max-width: none; margin: 0; }
.app .ic { width: 24px; height: 24px; fill: currentColor; flex: none; }
.app small { color: #55677A; font-size: 13px; }
.app .serif { font-family: "Brygada 1918", Georgia, serif; font-weight: 600; }
.app .status { height: 34px; display: flex; justify-content: space-between; align-items: center; padding: 0 24px; font-size: 13px; font-weight: 600; }
.app .status i { display: inline-block; width: 16px; height: 9px; border: 1.5px solid #12283E; border-radius: 2px; margin-left: 4px; }
.app .head { padding: 8px 20px 12px; display: flex; align-items: center; gap: 14px; }
.app .head h4 { margin: 0; font: 600 30px/1.1 "Brygada 1918", Georgia, serif; letter-spacing: -0.01em; }
.app .head .grow { flex: 1; }

/* Bottom bar: five words, the current one circled in red wax pencil. */
.app .words { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; background: #F2F4F2; display: flex; justify-content: space-evenly; align-items: center; padding-bottom: 10px; }
.app .words::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; background: linear-gradient(rgba(242,244,242,0), #F2F4F2); }
.app .words span { position: relative; font: 600 17px "Brygada 1918", Georgia, serif; color: #55677A; padding: 6px 4px; }
.app .words span.on { color: #12283E; }
.app .words span.on svg { position: absolute; left: -10px; top: -5px; width: calc(100% + 20px); height: calc(100% + 10px); overflow: visible; }

/* Search field */
.app .field { margin: 6px 16px 0; height: 50px; border-radius: 25px; background: #fff; border: 2px solid #12283E; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 17px; font-weight: 500; }
.app .caret { display: inline-block; width: 2px; height: 20px; background: #12283E; margin-left: 1px; vertical-align: -4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.app .sec { padding: 18px 20px 8px; font-size: 14px; font-weight: 600; color: #55677A; }
.app .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 0 2px; }
.app .grid3 > div, .app .cell { position: relative; aspect-ratio: 1; overflow: hidden; }
.app .grid3 svg, .app .cell svg { width: 100%; height: 100%; }

/* People */
.app .faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; padding: 8px 18px; }
.app .face { display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity 300ms, transform 300ms; }
.app .face .disc { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; position: relative; }
.app .face b { font-size: 15px; font-weight: 600; }
.app .face small { margin-top: -6px; }
.app .face .ask { color: #C9252F; font-weight: 500; }
.app .banner { margin: 6px 16px 10px; padding: 14px 16px; border-radius: 12px; background: #DCE2E2; display: flex; align-items: center; gap: 12px; }
.app .banner b { display: block; font-size: 15px; }
.app .banner .dot { width: 10px; height: 10px; border-radius: 50%; background: #C9252F; flex: none; }

.app .sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; padding: 12px 22px 34px; box-shadow: 0 -10px 40px rgba(11,28,46,.18); transform: translateY(105%); }
.app .sheet .grab { display: block; width: 40px; height: 4px; border-radius: 2px; background: #CBD3D4; margin: 0 auto 16px; }
.app .sheet h5 { margin: 0; font: 600 24px "Brygada 1918", Georgia, serif; }
.app .pair { display: flex; gap: 12px; margin: 16px 0 18px; }
.app .pair > div { flex: 1; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.app .btns { display: grid; gap: 8px; }
.app .b { height: 48px; border-radius: 8px; display: grid; place-items: center; font-weight: 600; font-size: 15px; border: 1.5px solid #CBD3D4; transition: background 200ms, transform 120ms; }
.app .b.fill { background: #0F2E4D; color: #F2F4F2; border-color: #0F2E4D; }
.app .b.press { transform: scale(0.96); background: #1B4A78; }
.app .toast { position: absolute; left: 20px; right: 20px; bottom: 92px; background: #12283E; color: #F2F4F2; padding: 14px 16px; border-radius: 8px; font-size: 14px; opacity: 0; }

/* Words in photos */
.app .best { margin: 0 16px; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 1; }
.app .best svg { width: 100%; height: 100%; }
.app .hl { position: absolute; border: 3px solid #C9252F; border-radius: 40% 46% 42% 50%; transform: rotate(-4deg); }
.app .label { position: absolute; left: 10px; bottom: 10px; background: rgba(18,40,62,.88); color: #F2F4F2; font-size: 13px; font-weight: 600; border-radius: 12px; padding: 4px 10px; }

/* Cleanup */
.app .group { margin: 8px 16px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid #DCE2E2; }
.app .group-h { display: flex; justify-content: space-between; align-items: baseline; }
.app .group-h b { font-size: 16px; }
.app .group-h span { color: #1B4A78; font-weight: 600; font-size: 14px; }
.app .group p { color: #55677A; font-size: 13px; margin-top: 2px; }
.app .shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.app .shots .cell { border-radius: 8px; transition: opacity 400ms, transform 400ms; }
.app .badge { position: absolute; left: 5px; bottom: 5px; background: #12283E; color: #F2F4F2; font-size: 11px; font-weight: 700; border-radius: 9px; padding: 2px 7px; }
.app .tick { position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.85); border: 2px solid #fff; display: grid; place-items: center; }
.app .tick.on { background: #C9252F; }
.app .tick svg { width: 14px; height: 14px; fill: #fff; opacity: 0; }
.app .tick.on svg { opacity: 1; }
.app .delbar { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 28px !important; padding: 12px 16px; background: #fff; border-top: 1px solid #DCE2E2; display: flex; align-items: center; justify-content: space-between; transform: translateY(140%); }
.app .delbar .b { padding: 0 22px; height: 44px; }
.app .freed { font-family: "Brygada 1918", Georgia, serif; font-weight: 600; font-size: 34px; padding: 4px 20px 0; }
.app .words { z-index: 2; }
.app .sheet, .app .delbar { z-index: 3; }
.app .toast { z-index: 4; }
