/* GlassCam site. Assembly direction: cream paper, raspberry and teal inks, plum overprint. */
:root {
  --paper: #FFF8EC; --ink: #22101F; --pink: #E0436A; --teal: #6FD6C7; --plum: #613852; --muted: #6E5D6A;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
a { color: var(--pink); }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .14; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }

.nav { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 26px; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; }
.soon { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--plum); border: 2px solid var(--plum); border-radius: 999px; padding: 4px 12px; }

.intro { padding-block: 8px 28px; display: grid; gap: 18px; }
.hero-row { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap; }
.hero-icon { position: relative; width: clamp(76px, 10vw, 132px); aspect-ratio: 1; flex: none; }
.hero-icon img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 30px rgb(34 16 31 / .25)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-icon img { animation: none; } }
h1 { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .9;
  font-size: clamp(52px, 11vw, 132px); color: var(--plum); text-shadow: -4px -3px 0 var(--pink), 4px 3px 0 var(--teal); }
.lede { font-size: clamp(18px, 2.3vw, 21px); max-width: 44ch; margin: 0; }

/* The desktop: wallpaper, menu bar, the glass field and the overlay. No filters, masks or
   opacity on ancestors of the field: the glass needs to see the wallpaper. */
.poster { width: 100%; height: auto; display: block; border-radius: 14px; margin-top: 8px; }
.demo { padding-block: 72px 0; }
.demo-title { margin: 0 0 18px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(40px, 7vw, 84px); line-height: .95; color: var(--plum);
  text-shadow: -3px -2px 0 var(--pink), 3px 2px 0 var(--teal); }
.desktop { position: relative; height: clamp(500px, 74vh, 720px); border-radius: 18px; overflow: hidden; background: #2B1640;
  box-shadow: 0 30px 80px rgb(34 16 31 / .25); user-select: none; -webkit-user-select: none; }
.wallpaper { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.caption { margin: 14px 0 0; font-size: 18px; min-height: 1.6em; color: var(--plum); font-weight: 600; }
.menubar { position: absolute; inset: 0 0 auto 0; height: 28px; display: flex; align-items: center; gap: 18px; padding-inline: 16px;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; color: #fff; background: rgb(34 16 31 / .55); z-index: 3; }
.menubar span { font-weight: 400; }
.menubar .apple { width: 12px; height: 14px; border-radius: 6px 6px 7px 7px; background: #fff; }
.menubar .clock { margin-left: auto; font-variant-numeric: tabular-nums; }
.field { z-index: 1; --ag-tint: rgb(255 255 255 / .06); }
.field[data-mode="light"] { --ag-tint: rgb(255 248 236 / .06); }

.overlay { position: absolute; left: 0; top: 0; z-index: 2; width: 0; height: 0; }
.bubble { position: absolute; border-radius: 50%; cursor: grab; outline: none; transform-origin: center; }
.bubble:focus-visible { box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--pink); }
.bubble.dragging { cursor: grabbing; }
.bubble { cursor: default; }
.feed { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.feed img, .feed video { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; }
.feed .cut { object-position: 50% 100%; transform: scale(1.04) translateY(2%); transition: opacity .16s; }
.feed .cut.swap { opacity: 0; }
.feed .face { position: absolute; inset: 0; transform: scale(1.04) translateY(2%); pointer-events: none; transition: opacity .16s; }
.feed .face i { position: absolute; background-repeat: no-repeat; }
.feed .cut.swap + .face { opacity: 0; }
.feed .cut[hidden] + .face { display: none; }
.overlay .bubble { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.overlay .bubble.dragging { cursor: grabbing; }
.feed img, .feed video { -webkit-user-drag: none; user-select: none; }
.feed .spinner { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; margin: -11% 0 0 -11%; border-radius: 50%;
  border: 4px solid rgb(255 248 236 / .3); border-top-color: #FFF8EC; opacity: 0; transition: opacity .2s; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.booting .feed { background: #22101F; }
.booting .feed .cut, .booting .feed .face { opacity: 0; transition: none; }
.booting .feed .spinner { opacity: 1; }
.menubar .notch { position: absolute; left: 50%; top: 0; width: 170px; height: 28px; margin-left: -85px; background: #000; border-radius: 0 0 10px 10px; }
.notch .lens { position: absolute; left: 50%; top: 9px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a3a5a, #0b0b14 70%); }
.notch .led { position: absolute; left: 50%; top: 11.5px; width: 4px; height: 4px; margin-left: 10px; border-radius: 50%; background: #1b1b1b; transition: background .15s, box-shadow .15s; }
.notch .led.on { background: #34C759; box-shadow: 0 0 4px #34C759, 0 0 8px rgb(52 199 89 / .6); }
.feed video { transform: scaleX(-1); }

.rings { position: absolute; pointer-events: none; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid; opacity: 0; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.ring.pink { border-color: var(--pink); }
.ring.teal { border-color: var(--teal); }
.open .rings .ring { opacity: 1; }
.open .rings .ring.pink { transform: translate(-3px, -3px); }
.open .rings .ring.teal { transform: translate(3px, 3px); }

.buttons { position: absolute; left: 0; top: 0; }
.mbtn { position: absolute; border: 0; padding: 0; margin: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; }
.mbtn svg, .mbtn img { grid-area: 1 / 1; opacity: 0; transition: opacity .1s ease-in; pointer-events: none; }
.mbtn img { width: 60%; height: 60%; user-select: none; }
.icons .mbtn svg, .icons .mbtn img { opacity: 1; }
.mbtn img[data-if], .mbtn img[data-unless] { transition-duration: .2s; }
.icons .mbtn img[data-if], .icons.frosted img[data-unless="frosted"], .icons.cutout img[data-unless="cutout"] { opacity: 0; }
.icons.frosted img[data-if="frosted"], .icons.cutout img[data-if="cutout"] { opacity: 1; }
/* Glass tint per button: app.js sets --shade from the backdrop. The tint stays inside the rim. */
.overlay { --tint: 34 16 31; }
.overlay[data-mode="light"] { --tint: 255 248 236; }
.overlay[data-mode="light"] .mbtn { color: #613852; }
.mbtn { padding: 1.5px; background-clip: content-box; transition: background-color .2s; }
.icons .mbtn { background-color: rgb(var(--tint) / var(--shade, 0)); }
.mbtn:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.mbtn[data-kind="resize"] { cursor: nwse-resize; }
.dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #34C759; border: 1px solid rgb(255 255 255 / .7);
  box-shadow: 0 0 3px #34C759, 0 0 7px rgb(52 199 89 / .6); transform: scale(.1); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), opacity .2s; pointer-events: none; }
.dot.coral { background: #FF9E80; box-shadow: 0 0 3px #FF9E80, 0 0 7px rgb(255 158 128 / .6); }
.dot.lit { transform: scale(1); opacity: 1; }
.dot.lit::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid currentColor; color: inherit; animation: bloom .6s ease-out 1; }
@keyframes bloom { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }
.zoom-badge { position: absolute; transform: translate(-50%, -50%); padding: 5px 10px; border-radius: 10px; background: rgb(0 0 0 / .35); color: rgb(255 255 255 / .85);
  font: 500 14px/1 -apple-system, BlinkMacSystemFont, sans-serif; pointer-events: none; }

.cursor { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .6s; }
.cursor.show { opacity: 1; }
.dock { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; }
.dock-glass { --ag-radius: 22px; display: flex; gap: 10px; padding: 8px 10px; }
.app { position: relative; width: 52px; height: 52px; border-radius: 12px; display: block; }
.app.a1 { background: linear-gradient(160deg, #6FD6C7, #2E8F86); }
.app.a2 { background: linear-gradient(160deg, #FFC7A8, #FF9E80); }
.app.a3 { background: linear-gradient(160deg, #FFF8EC, #E9DCC9); }
.app.a4 { background: linear-gradient(160deg, #E0436A, #8E2246); }
.app.gc img { width: 52px; height: 52px; display: block; }
.running { position: absolute; left: 50%; bottom: -6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #FFF8EC; }
@media (max-width: 600px) { .app { width: 38px; height: 38px; border-radius: 9px; } .app.gc img { width: 38px; height: 38px; } .dock-glass { gap: 7px; padding: 6px 8px; } }
.hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; z-index: 3; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; background: rgb(34 16 31 / .72); color: #fff; font-size: 14px; }
.kbd { font-family: ui-monospace, Menlo, monospace; border: 1.5px solid currentColor; border-bottom-width: 3px; border-radius: 5px; padding: 0 5px; margin-right: 4px; }
.bring-back { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; font: 600 16px var(--body); color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 10px 20px; cursor: pointer; }

.consent { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px; }
.consent-card { --ag-radius: 26px; width: min(460px, 100%); padding: 24px 26px; color: #fff; }
.consent-card h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; }
.consent-card ul { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; font-size: 16px; }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.camera-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-block: 18px 6px; }
.cta { font: 700 17px var(--body); color: var(--paper); background: var(--plum); border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer;
  box-shadow: -3px -2px 0 var(--pink), 3px 2px 0 var(--teal); }
.cta:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.cta.on { background: var(--ink); }
.status { color: var(--muted); font-size: 15px; }
.note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; padding-block: 64px; }
.feature { border-top: 4px solid var(--plum); padding-top: 12px; }
.feature:nth-child(odd) { border-color: var(--pink); }
.feature:nth-child(3n) { border-color: var(--teal); }
.feature h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.feature p { margin: 0; color: var(--muted); }
.icon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-block: 8px 64px; }
.icon-row img { width: 160px; height: 160px; }
.icon-row p { max-width: 50ch; margin: 0; }
.footer { border-top: 2px solid var(--ink); padding-block: 22px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }
.tag { font-family: var(--display); font-weight: 800; color: var(--pink); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px;
  font-size: 15px; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .ring { transition: opacity .3s; }
  .open .rings .ring.pink, .open .rings .ring.teal { transform: none; }
  .dot.lit::after { animation: none; }
}

/* The live session: a presenting window, the screen-share bar, the live badge and the chat. */
.share-ind { width: 16px; height: 11px; border-radius: 3px; background: #34C759; margin-left: auto; box-shadow: inset 0 0 0 2px #1d7a35; }
.share-ind + .clock { margin-left: 0; }
.window { position: absolute; left: 3%; right: 3%; top: 40px; bottom: 84px; border-radius: 12px; overflow: hidden; z-index: 1;
  background: #1A0D18; box-shadow: 0 24px 60px rgb(0 0 0 / .45), 0 0 0 1px rgb(255 255 255 / .08); }
.titlebar { height: 28px; display: flex; align-items: center; gap: 7px; padding-inline: 12px; background: #2A1A28; color: #cdbfca;
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, sans-serif; }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.titlebar i:nth-child(2) { background: #FEBC2E; }
.titlebar i:nth-child(3) { background: #28C840; }
.titlebar span { margin-inline: auto; padding-right: 50px; }
.deck-frame { position: absolute; inset: 28px 0 0 0; width: 100%; height: calc(100% - 28px); border: 0; display: block; pointer-events: none; background: #22101F; }
.slide-count { position: absolute; right: 14px; bottom: 10px; font: 500 12px/1 -apple-system, sans-serif; color: rgb(255 248 236 / .5); }

.sharebar { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 12px; border-radius: 999px; background: rgb(30 20 30 / .82); color: #fff; font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; white-space: nowrap; }
.sharebar .rec { width: 9px; height: 9px; border-radius: 50%; background: #34C759; box-shadow: 0 0 0 3px rgb(52 199 89 / .3); animation: pulse 1.6s ease-in-out infinite; }
.sharebar .stop { background: #FF453A; border-radius: 999px; padding: 5px 10px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgb(52 199 89 / 0); } }
.live { position: absolute; top: 76px; right: calc(3% + 14px); z-index: 3; display: flex; align-items: center; gap: 8px;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.live b { background: #FF2D55; border-radius: 6px; padding: 5px 8px; letter-spacing: .06em; }
.live span { background: rgb(0 0 0 / .45); border-radius: 6px; padding: 5px 8px; }
.chat { position: absolute; right: calc(3% + 14px); top: 112px; z-index: 3; width: min(270px, 40%); display: grid; gap: 8px; justify-items: end; }
.msg { --ag-radius: 14px; padding: 8px 12px; color: #fff; font: 500 13px/1.35 -apple-system, BlinkMacSystemFont, sans-serif; max-width: 100%;
  animation: msgIn .45s cubic-bezier(.3,1.4,.5,1) both; }
.msg b { display: block; font-size: 11px; color: var(--teal); margin-bottom: 2px; }
.msg.out { animation: msgOut .4s ease-in forwards; }
@keyframes msgIn { from { transform: translateY(14px) scale(.96); } }
@keyframes msgOut { to { transform: translateY(-8px) scale(.96); visibility: hidden; } }
@media (max-width: 700px) { .live .viewers, .chat, .sharebar .stop { display: none; } .window { left: 2%; right: 2%; } }
@media (prefers-reduced-motion: reduce) { .ring { transition: opacity .3s; } .open .rings .ring.pink, .open .rings .ring.teal { transform: none; } .dot.lit::after, .sharebar .rec { animation: none; } }
