/* 5.14.0: the First Look, a private preview of the demo for a small group of friends. Loaded only on firstlook.mindecholabs.com (server.js adds it).
   The look is the signed-off design (style-tests/preview-experience/design): slate panels, cream words, the teal light, the Mind Echo Labs lockup. */
:root { --fl-slate: #434D56; --fl-deep: #2B3238; --fl-cream: #FFF8EB; --fl-led: #65CDD2; --fl-teal: #137F7A; --fl-coral: #E2A07F; --fl-ease: cubic-bezier(.2,.8,.2,1); }

/* the landing's own card, brand and footer step aside: the First Look welcome takes their place over the same live city */
html.fl #cy-land .cy-panel, html.fl #cy-land .cy-top, html.fl #cy-land .cy-foot { display: none !important; }

/* the lockup: the soundwave always sits in a circle; the circle matches the words, the wave is the other colour */
.fl-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 Figtree, system-ui, sans-serif; letter-spacing: -.005em; }
.fl-brand .lk { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex: none; }
.fl-brand .lk svg { width: 14px; height: 14px; overflow: visible; }
.fl-brand .lk svg rect { transform-box: fill-box; transform-origin: center; animation: fl-wb 1.1s ease-in-out infinite; }
.fl-brand .lk svg rect:nth-child(2) { animation-duration: 1s; animation-delay: -.2s; }
.fl-brand .lk svg rect:nth-child(3) { animation-duration: .9s; animation-delay: -.4s; }
.fl-brand .lk svg rect:nth-child(4) { animation-duration: 1.05s; animation-delay: -.1s; }
.fl-brand .lk svg rect:nth-child(5) { animation-duration: 1.2s; animation-delay: -.3s; }
@keyframes fl-wb { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
.fl-brand.cream { color: var(--fl-cream); } .fl-brand.cream .lk { background: var(--fl-cream); color: var(--fl-slate); }
.fl-brand.slate { color: var(--fl-slate); } .fl-brand.slate .lk { background: var(--fl-slate); color: var(--fl-cream); }

/* ---------- the welcome: over the live city ---------- */
#fl-w { position: fixed; inset: 0; z-index: 2147482000; pointer-events: none; font-family: Figtree, system-ui, sans-serif; }
#fl-w .fl-top { position: absolute; left: 56px; top: 40px; pointer-events: auto; }
#fl-w .fl-top .fl-brand { font-size: 20px; gap: 12px; } #fl-w .fl-top .lk { width: 36px; height: 36px; } #fl-w .fl-top .lk svg { width: 16px; height: 16px; }
#fl-w.out { opacity: 0; transition: opacity 320ms var(--fl-ease); }

.fl-panel { position: absolute; background: var(--fl-slate); color: var(--fl-cream); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 50px rgba(30,38,48,.35); pointer-events: auto; font-family: Figtree, system-ui, sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased; }
#fl-w .fl-panel { left: 56px; top: 50%; transform: translateY(-50%); width: 440px; border-radius: 22px; padding: 34px 34px 30px; }
.fl-panel > * { opacity: 0; transform: translateY(10px); transition: opacity 360ms var(--fl-ease), transform 420ms var(--fl-ease); }
.fl-panel.in > * { opacity: 1; transform: none; }
.fl-panel.out > * { opacity: 0; transform: translateY(-6px); transition-duration: 160ms; transition-delay: 0ms !important; }

.fl-h { margin: 0; font-size: 32px; line-height: 1.16; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.fl-p { margin: 0; font-size: 16px; color: rgba(255,248,235,.86); }
.fl-s { margin: 0; font-size: 14px; color: rgba(255,248,235,.66); }
.fl-b { display: block; width: 100%; text-align: center; border-radius: 12px; padding: 14px 16px; font: 600 16px/1.2 Figtree, system-ui, sans-serif; cursor: pointer; border: 0; transition: transform 120ms var(--fl-ease), filter 120ms; }
.fl-b:active { transform: scale(.97); }
.fl-b.pri { background: var(--fl-cream); color: var(--fl-deep); }
.fl-b.pri:hover { filter: brightness(1.04); }
.fl-b.sec { background: transparent; color: var(--fl-cream); border: 1.5px solid rgba(255,248,235,.38); }
.fl-b.sec:hover { background: rgba(255,248,235,.06); }
.fl-b[disabled] { opacity: .55; cursor: default; }
.fl-l { display: block; margin: 0 auto; background: none; border: 0; padding: 4px; font: 500 14px/1.3 Figtree, system-ui, sans-serif; color: rgba(255,248,235,.75); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: center; }
.fl-row { display: flex; gap: 10px; align-items: center; } .fl-row > * { flex: 1; }
.fl-in { display: block; width: 100%; border-radius: 12px; background: rgba(255,248,235,.08); border: 1.5px solid rgba(255,248,235,.28); padding: 13px 14px; color: var(--fl-cream); font: 400 16px/1.4 Figtree, system-ui, sans-serif; outline: none; }
.fl-in::placeholder { color: rgba(255,248,235,.5); }
.fl-in:focus { border-color: var(--fl-led); }
textarea.fl-in { height: 104px; resize: none; }
.fl-ticks { display: flex; gap: 6px; justify-content: center; } .fl-ticks i { width: 26px; height: 4px; border-radius: 3px; background: rgba(255,248,235,.25); } .fl-ticks i.on { background: var(--fl-led); }
.fl-scene { width: 100%; height: 190px; object-fit: cover; object-position: 50% 30%; border-radius: 14px; display: block; }
.fl-opt { position: relative; display: flex; flex-direction: column; text-align: left; border-radius: 16px; background: rgba(255,248,235,.08); border: 1.5px solid rgba(255,248,235,.24); padding: 14px 40px 14px 16px; color: var(--fl-cream); cursor: pointer; font-family: inherit; transition: transform 120ms var(--fl-ease); }
.fl-opt:active { transform: scale(.98); }
.fl-opt.first { background: var(--fl-cream); color: var(--fl-deep); border-color: var(--fl-cream); }
.fl-opt b { font-size: 17px; } .fl-opt span { font-size: 14px; color: rgba(255,248,235,.7); } .fl-opt.first span { color: rgba(43,50,56,.7); }
.fl-opt i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 24px; }
.fl-wait { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -2px; margin-right: 8px; animation: fl-spin .8s linear infinite; }
@keyframes fl-spin { to { transform: rotate(360deg); } }

/* ---------- inside the demo: the First Look strip under the top bar ---------- */
html.fl-in #nx { --nx-top: 92px; }
html.fl-in #nx .nx-top { height: 52px; }
/* fixed above the induction's click blocker (z 79) and veil (80); fl.js keeps it under the top bar, matching its left and width */
.fl-strip { position: fixed; left: 0; width: 0; top: 52px; height: 40px; z-index: 81; display: flex; align-items: center; gap: 10px; padding: 0 16px 0 20px; background: var(--fl-cream); color: var(--fl-deep); border-bottom: 1px solid rgba(43,50,56,.12); pointer-events: auto; font-family: Figtree, system-ui, sans-serif; }
.fl-strip .fl-pr { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; font-weight: 600; color: #5f6871; }
.fl-strip .fl-pb { flex: 1; max-width: 520px; height: 4px; border-radius: 4px; background: rgba(43,50,56,.12); overflow: hidden; }
.fl-strip .fl-pb b { display: block; height: 100%; width: 0; background: var(--fl-teal); transition: width 600ms var(--fl-ease); }
.fl-strip .fl-pt { white-space: nowrap; }
.fl-strip button { border-radius: 99px; padding: 6px 14px; font: 600 14px/1.1 Figtree, system-ui, sans-serif; border: 1.5px solid rgba(43,50,56,.25); background: transparent; color: var(--fl-deep); white-space: nowrap; cursor: pointer; transition: transform 120ms var(--fl-ease); }
.fl-strip button:active { transform: scale(.96); }
.fl-strip button.pri { background: var(--fl-slate); color: var(--fl-cream); border-color: var(--fl-slate); }
.fl-strip .ph { display: none; }
html.fl-in.nx-phone #nx { --nx-top: calc(84px + env(safe-area-inset-top, 0px)); }
html.fl-in.nx-phone #nx .nx-top { height: calc(44px + env(safe-area-inset-top, 0px)); }
html.nx-phone .fl-strip { padding: 0 12px 0 16px; }
html.nx-phone .fl-strip .dk { display: none; } html.nx-phone .fl-strip .ph { display: inline-block; }
/* "Hi Sara." on Mel's first induction line */
.ind-card .fl-hi { font-weight: 700; }

/* ---------- feedback: over the dimmed demo ---------- */
#fl-o { position: fixed; inset: 0; z-index: 2147482500; font-family: Figtree, system-ui, sans-serif; }
#fl-o .fl-scrim { position: absolute; inset: 0; background: rgba(30,38,48,.55); opacity: 0; transition: opacity 300ms var(--fl-ease); }
#fl-o.on .fl-scrim { opacity: 1; }
#fl-o .fl-panel { left: 50%; top: 50%; width: 540px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto; border-radius: 22px; padding: 34px 36px 30px; transform: translate(-50%, calc(-50% + 16px)); opacity: 0; transition: opacity 300ms var(--fl-ease), transform 420ms var(--fl-ease); }
#fl-o.on .fl-panel { transform: translate(-50%, -50%); opacity: 1; }
#fl-o .fl-x { position: absolute; right: 16px; top: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: rgba(255,248,235,.75); font-size: 26px; line-height: 1; cursor: pointer; opacity: 1; transform: none; }
#fl-o .fl-x:hover { background: rgba(255,248,235,.08); }
.fl-prog { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,248,235,.7); padding-right: 34px; font-variant-numeric: tabular-nums; }
.fl-prog .fl-pb { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,248,235,.2); overflow: hidden; } .fl-prog .fl-pb b { display: block; height: 100%; background: var(--fl-led); }
.fl-scale { display: flex; gap: 8px; }
.fl-scale button { flex: 1; aspect-ratio: 1; border-radius: 14px; border: 1.5px solid rgba(255,248,235,.35); background: transparent; color: var(--fl-cream); font: 700 20px/1 Figtree, system-ui, sans-serif; cursor: pointer; transition: transform 120ms var(--fl-ease), background 160ms; }
.fl-scale button.on, .fl-chips button.on, .fl-pics button.on { background: var(--fl-cream); color: var(--fl-deep); border-color: var(--fl-cream); }
.fl-scale button:active, .fl-chips button:active, .fl-pics button:active { transform: scale(.95); }
.fl-ends { display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,248,235,.66); margin-top: -6px; }
.fl-pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fl-pics button { border-radius: 12px; overflow: hidden; background: rgba(255,248,235,.08); border: 1.5px solid rgba(255,248,235,.2); display: flex; flex-direction: column; padding: 0; color: var(--fl-cream); cursor: pointer; font-family: inherit; transition: transform 120ms var(--fl-ease); }
.fl-pics img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.fl-pics span { font-size: 13px; font-weight: 600; padding: 6px 8px; text-align: center; }
.fl-pics button.txt { justify-content: center; min-height: 92px; }
.fl-pics button.on span { color: var(--fl-deep); }
.fl-chips { display: flex; gap: 8px; }
.fl-chips button { flex: 1; border-radius: 99px; border: 1.5px solid rgba(255,248,235,.38); background: transparent; color: var(--fl-cream); padding: 13px 6px; font: 600 16px/1.2 Figtree, system-ui, sans-serif; cursor: pointer; transition: transform 120ms var(--fl-ease); }
.fl-wave { display: flex; gap: 5px; align-items: center; justify-content: center; height: 60px; }
.fl-wave b { width: 6px; height: 8px; border-radius: 3px; background: var(--fl-led); transition: height 90ms linear; }
.fl-wave .rec { width: 12px; height: 12px; border-radius: 50%; background: var(--fl-coral); margin-right: 10px; animation: fl-blink 1s ease-in-out infinite; }
@keyframes fl-blink { 50% { opacity: .35; } }
.fl-timer { text-align: center; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.fl-check { display: flex; gap: 10px; align-items: center; font-size: 16px; cursor: pointer; user-select: none; }
.fl-check input { position: absolute; opacity: 0; pointer-events: none; }
.fl-check i { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid rgba(255,248,235,.45); display: grid; place-items: center; font-style: normal; font-size: 14px; color: var(--fl-deep); flex: none; }
.fl-check input:checked + i { background: var(--fl-led); border-color: var(--fl-led); }
.fl-check input:not(:checked) + i { color: transparent; }
#fl-o [hidden], #fl-w [hidden] { display: none !important; }
.fl-check input:focus-visible + i { outline: 2px solid var(--fl-led); outline-offset: 2px; }
.fl-player { display: flex; align-items: center; gap: 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.fl-player button { width: 44px; height: 44px; border-radius: 50%; background: var(--fl-cream); color: var(--fl-deep); display: grid; place-items: center; font-size: 15px; flex: none; border: 0; cursor: pointer; }
.fl-player .fl-pb { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,248,235,.2); overflow: hidden; } .fl-player .fl-pb b { display: block; height: 100%; width: 0; background: var(--fl-led); }
.fl-err { margin: 0; font-size: 14px; color: #F3C3A8; min-height: 0; }
.fl-err:empty { display: none; }

/* phone: the welcome and feedback are bottom sheets */
@media (max-width: 760px) {
  #fl-w .fl-top { left: 20px; top: calc(18px + env(safe-area-inset-top, 0px)); }
  #fl-w .fl-top .fl-brand { font-size: 16px; } #fl-w .fl-top .lk { width: 30px; height: 30px; } #fl-w .fl-top .lk svg { width: 14px; height: 14px; }
  #fl-w .fl-panel { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; border-radius: 26px 26px 0 0; padding: 26px 22px calc(26px + env(safe-area-inset-bottom, 0px)); max-height: 88vh; overflow: auto; }
  .fl-h { font-size: 26px; }
  .fl-scene { height: 150px; }
  #fl-o .fl-scrim { background: rgba(30,38,48,.72); }
  #fl-o .fl-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; max-height: 92vh; border-radius: 26px 26px 0 0; padding: 26px 22px calc(26px + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); }
  #fl-o.on .fl-panel { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-panel > *, #fl-o .fl-panel, #fl-o .fl-scrim { transition: none !important; }
  .fl-brand .lk svg rect, .fl-wave .rec { animation: none; }
}
