/* Streetbook website.
   Each page carries its styles on its own elements, copied from the approved mockups
   (the "Website Design" canvas), so a page always looks exactly like its mockup.
   This file holds only what is shared: page defaults, keyboard focus, hover, and the Home demo. */
body{margin:0;background:#0F2233}
a{color:#A9BCCB;text-decoration:none}a:hover{color:#FFFFFF}
input, select, textarea, button { font-family: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #F26B1D; outline-offset: 2px; }
a[style*="background: #F26B1D"]:hover, button[type="submit"]:hover { background: #FF8035 !important; }

/* Animated demo on Home: five scenes on a 20 second loop, drawn to match the app */
.demo { max-width: 1120px; margin: 0 auto; padding: 0 24px 88px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; }
.demo-text { flex: 1 1 380px; min-width: 0; }
.demo-text h2 { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 500; letter-spacing: -0.02em; }
.demo-text > p { margin: 14px 0 0; max-width: 520px; font-size: 17px; line-height: 1.55; font-weight: 500; color: #3F4E5B; }
.demo-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; max-width: 520px; }
.demo-steps li { display: flex; gap: 16px; align-items: flex-start; padding: 13px 18px; background: #FFFFFF; border: 1px solid rgba(15, 34, 51, 0.10); border-left: 4px solid rgba(15, 34, 51, 0.15); border-radius: 6px; opacity: 0.55; animation: demo-step 20s infinite; animation-delay: var(--d, 0s); }
.demo-steps b { font-family: system-ui, sans-serif; font-size: 22px; line-height: 1.15; color: #F26B1D; }
.demo-steps strong { display: block; font-size: 17px; font-weight: 700; color: #0F2233; }
.demo-steps span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; font-weight: 500; color: #3F4E5B; }
@keyframes demo-step { 0%, 20%, 100% { opacity: 0.55; border-left-color: rgba(15, 34, 51, 0.15); } 1.5%, 18.5% { opacity: 1; border-left-color: #F26B1D; } }

.demo-phone { flex: 0 0 auto; width: 320px; margin: 0 auto; background: #05101A; border-radius: 46px; padding: 11px; box-shadow: 0 30px 60px rgba(15, 34, 51, 0.28); }
.demo-screen { position: relative; height: 620px; border-radius: 36px; overflow: hidden; background: linear-gradient(180deg, #DDE2E6 0%, #C9CFD5 55%, #E6CBB9 100%); color: #0F2233; font-size: 12px; line-height: 1.3; font-weight: 600; }
.demo-screen svg { display: block; flex: 0 0 auto; }
.demo-status { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; padding: 13px 26px 0; font-family: system-ui, sans-serif; font-size: 11px; font-weight: 700; color: #FFFFFF; }
.demo-status span:last-child { color: #F9A26B; }
.demo-scene { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; animation: demo-scene 20s infinite; animation-delay: var(--d, 0s); }
@keyframes demo-scene { 0%, 20%, 100% { opacity: 0; } 1.5%, 18.5% { opacity: 1; } }

.demo-head { position: relative; overflow: hidden; background: linear-gradient(180deg, #0A1826, #172E44); color: #FFFFFF; padding: 40px 12px 12px; border-bottom: 2px solid #F26B1D; }
.demo-head > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo-head > div { position: relative; }
.demo-bar { display: flex; align-items: center; gap: 6px; }
.demo-bar .where { flex: 1; display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #A9BCCB; }
.demo-bar .where svg { width: 14px; height: 14px; filter: drop-shadow(0 0 4px rgba(215, 38, 61, 0.9)); }
.demo-sq { width: 28px; height: 28px; border-radius: 4px; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #FFFFFF; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.18); }
.demo-sq.red { background: #D7263D; border-color: #D7263D; box-shadow: 0 0 10px rgba(215, 38, 61, 0.6); }
.demo-sq.dark { background: rgba(10, 24, 38, 0.55); border-color: rgba(255, 255, 255, 0.14); }
.demo-sq svg { width: 15px; height: 15px; }
.demo-title { margin-top: 8px; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; }
.demo-search { margin-top: 8px; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 8px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 4px; font-size: 11px; font-weight: 500; color: #A9BCCB; }
.demo-search svg { width: 13px; height: 13px; }
.demo-search .grow { flex: 1; }
.demo-search.on { border-color: #F26B1D; color: #FFFFFF; }
.demo-search i { font-style: normal; opacity: 0; animation: demo-on 20s infinite; }
@keyframes demo-on { 0% { opacity: 0; } 0.3%, 100% { opacity: 1; } }

.demo-head.place { padding-bottom: 14px; border-bottom-color: #C2410C; background: linear-gradient(180deg, #D9480F 0%, #A8370B 45%, #2B1712 100%); }
.demo-head.place .ghost { position: absolute; right: 8px; top: 44px; width: 52px; height: 52px; color: rgba(255, 255, 255, 0.35); }
.demo-head.place .ghost svg { width: 100%; height: 100%; }
.demo-chip { display: inline-flex; align-items: center; gap: 4px; margin-top: 46px; font-size: 9px; font-weight: 800; color: #FFFFFF; background: #D9480F; border-radius: 4px; padding: 3px 7px; }
.demo-chip svg { width: 11px; height: 11px; }
.demo-name { margin-top: 8px; font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }
.demo-addr { margin-top: 3px; font-family: system-ui, sans-serif; font-size: 10.5px; font-weight: 400; color: #F3D9CC; }

.demo-body { flex: 1; min-height: 0; padding: 10px 10px 0; }
.demo-list { background: #FFFFFF; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 34, 51, 0.08); }
.demo-list + .demo-list { margin-top: 8px; }
.demo-row { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-top: 1px solid rgba(15, 34, 51, 0.07); }
.demo-row:first-child { border-top: 0; }
.demo-row .grow { flex: 1; min-width: 0; }
.demo-row em { display: block; font-family: system-ui, sans-serif; font-style: normal; font-size: 10px; font-weight: 400; color: #3F4E5B; }
.demo-row > svg { width: 13px; height: 13px; color: #6B7884; }
.demo-ic { flex: 0 0 24px; height: 24px; border-radius: 4px; display: grid; place-items: center; color: #FFFFFF; }
.demo-ic svg { width: 14px; height: 14px; }
.demo-open { border: 1.5px solid var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 35%, transparent); }
.demo-open .demo-row:first-child { background: var(--c); color: #FFFFFF; }
.demo-open .demo-row:first-child > svg { color: #FFFFFF; }
.demo-open .demo-row:first-child .demo-ic { background: #FFFFFF !important; color: var(--c); }
.demo-open .demo-row + .demo-row .demo-ic { background: var(--c); }
.demo-open .demo-row + .demo-row > svg { color: var(--c); }
.demo-dim { opacity: 0.45; }
.demo-label { display: flex; justify-content: space-between; margin: 10px 2px 6px; font-size: 10px; font-weight: 700; color: #3F4E5B; }
.demo-label:first-child { margin-top: 0; }
.demo-label span { color: #1F5FAD; }
.demo-btns { display: flex; gap: 6px; padding: 7px; }
.demo-btn { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; height: 28px; border-radius: 3px; font-size: 11px; font-weight: 700; color: #1F5FAD; background: #E7EEF7; }
.demo-btn.solid { color: #FFFFFF; background: #1F5FAD; }
.demo-btn svg { width: 12px; height: 12px; }
.demo-photos { display: flex; gap: 6px; }
.demo-photos div { flex: 1; height: 62px; border-radius: 4px; background: linear-gradient(160deg, #9FB3C4, #5E7385); }
.demo-photos div:nth-child(2) { background: linear-gradient(200deg, #C9B49A, #8A6E55); }
.demo-photos div:nth-child(3) { background: linear-gradient(140deg, #A9B9A2, #5F7560); }
.demo-turn { flex: 0 0 44px; text-align: center; font-size: 9px; font-weight: 800; border-radius: 3px; padding: 4px 0; color: #FFFFFF; background: #1F5FAD; }
.demo-turn.right { color: #0F2233; background: #F2A33C; }
.demo-warn { margin: 2px 9px 9px; background: #FDECEC; border: 1px solid #D7263D; border-radius: 4px; padding: 6px 8px; font-size: 10.5px; color: #8A1220; }
.demo-note { margin: 8px 2px 0; font-size: 10px; font-weight: 500; color: #3F4E5B; }
.demo-result { opacity: 0; animation: demo-result 20s infinite; animation-delay: var(--d, 0s); }
@keyframes demo-result { 0%, 6.5% { opacity: 0; transform: translateY(8px); } 8.5%, 100% { opacity: 1; transform: none; } }
.demo-mini { position: relative; flex: 0 0 26px; height: 26px; border-radius: 4px; display: grid; place-items: center; color: #1F5FAD; background: #E7EEF7; }
.demo-mini svg { width: 13px; height: 13px; }

.demo-tabs { display: flex; height: 54px; padding-bottom: 6px; background: rgba(255, 238, 229, 0.94); border-top: 1px solid rgba(15, 34, 51, 0.08); }
.demo-tabs div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 9px; font-weight: 700; color: #0F2233; border-top: 2px solid transparent; }
.demo-tabs svg { width: 19px; height: 19px; }
.demo-tabs .on { color: #1F5FAD; border-top-color: #F26B1D; }

.demo-tap { position: absolute; z-index: 2; right: 10px; top: 50%; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: rgba(242, 107, 29, 0.45); border: 2px solid #F26B1D; opacity: 0; animation: demo-tap 20s infinite; animation-delay: var(--d, 0s); }
.demo-btn .demo-tap, .demo-mini .demo-tap { right: 50%; margin-right: -18px; }
@keyframes demo-tap { 0%, 14.5% { opacity: 0; transform: scale(0.4); } 16.5% { opacity: 1; transform: scale(1); } 18.5%, 100% { opacity: 0; transform: scale(1.7); } }
@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::after { animation: none !important; }
  .demo-steps li, .demo-scene.s2, .demo-result { opacity: 1; }
}
