/* Fawzi homepage. System fonts only: no remote fonts, analytics or tracking. */
:root {
  color-scheme: light dark;
  --canvas: #FAF9FF; --surface: #FFFFFF; --glass: rgba(255,255,255,.74); --border: #E4E1F3; --hair: #ECEAF7;
  --text: #17142B; --text-muted: #625E7C; --text-subtle: #8F8AAA;
  --violet: #6E50D4; --violet-soft: #EFEBFF;
  --sky2: #ECE7FF; --sky3: #FAE8F4;
  --badge: #0B0A12; --on-badge: #FFFFFF;
  --ev-green: #4D7C57; --ev-blue: #507DD0;
  --shadow: rgba(37,26,102,.14);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #12111E; --surface: #1B1A2C; --glass: rgba(33,31,54,.74); --border: #37344F; --hair: #2A2840;
    --text: #F2F0FB; --text-muted: #B4B0CC; --text-subtle: #9894B2;
    --violet: #B2A3FF; --violet-soft: #2A2748;
    --sky2: #221F48; --sky3: #331F42;
    --badge: #F2F0FB; --on-badge: #0B0A12;
    --ev-green: #86B58F; --ev-blue: #7FA3E6;
    --shadow: rgba(0,0,0,.42);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--canvas); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 8px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
svg { display: block; }
.skip { position: absolute; top: -6rem; left: 1rem; z-index: 20; padding: .75rem 1rem; border-radius: 10px; background: var(--surface); }
.skip:focus { top: 1rem; }

/* nav */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(16px, 4vw, 48px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; text-decoration: none; }
.brand img { width: auto; height: 40px; }
.nav nav { display: flex; gap: 26px; font-size: 15px; font-weight: 500; color: var(--text-muted); }
.nav nav a { text-decoration: none; }
.nav nav a:hover { color: var(--text); }

/* hero */
.hero { position: relative; min-height: 100svh; padding: 92px 16px 48px; display: flex; flex-direction: column; align-items: center; text-align: center;
  background: radial-gradient(120% 70% at 50% 100%, var(--sky3), transparent 60%), linear-gradient(180deg, var(--canvas), var(--sky2)); }
.hero h1, .display { position: relative; z-index: 2; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.stage { position: relative; width: 100%; max-width: 1200px; height: 340px; margin: 20px 0 14px; }
.display { margin-bottom: 24px; font-size: clamp(34px, 4.6vw, 56px); }
.lede { position: relative; z-index: 2; margin-top: 14px; max-width: 52ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.45; color: var(--text-muted); text-wrap: balance; }

.fig { position: absolute; left: 50%; top: 0; height: 330px; aspect-ratio: 556 / 722; margin-left: calc(-330px * 556 / 722 / 2); z-index: 3; container-type: inline-size; }
.fig > img { width: 100%; height: 100%; display: block; }
.fig.hop { animation: hop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes hop { 40% { transform: translateY(-10px); } }
/* Eyes drawn over the painted ones, so Fawzi can look around. */
.eye { position: absolute; top: 31.9%; width: 13.6%; transition: transform .2s ease-out; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 46% 38%, #3A3552, #0F0D1C 72%); }
.eye.l { left: 29%; } .eye.r { left: 57.2%; }
.eye .g { position: absolute; inset: 0; transition: transform .18s ease-out; }
.eye .g::before { content: ""; position: absolute; width: 31%; height: 31%; left: 50%; top: 18%; border-radius: 50%; background: #fff; }
.eye .g::after { content: ""; position: absolute; width: 9%; height: 9%; left: 24%; top: 60%; border-radius: 50%; background: #fff; opacity: .75; }
.card { position: absolute; left: 24.6%; top: 46.4%; width: 50.6%; height: 36.2%; padding: 4.7cqw; list-style: none; display: flex; flex-direction: column; justify-content: center; gap: 2cqw; color: #17142B; text-align: left; }
.row { display: flex; gap: 2.8cqw; align-items: center; white-space: nowrap; font-size: 4.7cqw; line-height: 1.2; font-weight: 600; transition: opacity .35s, transform .35s cubic-bezier(.2,.9,.3,1.3); }
.row::before { content: ""; width: 3px; height: 1.2em; border-radius: 2px; background: #6E50D4; flex: none; }
.row span { order: -1; width: 13.4cqw; flex: none; color: #625E7C; font-weight: 500; font-size: 4.5cqw; font-variant-numeric: tabular-nums; }
.row.off { opacity: 0; transform: translateY(6px) scale(.9); }

/* floating requests */
.fl { position: absolute; left: calc(50% + var(--x)); top: var(--y); z-index: 4; will-change: transform; text-align: left; }
.fl { display: flex; gap: 10px; align-items: center; padding: 11px 15px 11px 11px; border-radius: 18px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--border); box-shadow: 0 18px 40px var(--shadow), 0 2px 6px var(--shadow); rotate: var(--r); animation: bob var(--dur) ease-in-out var(--del) infinite alternate; transition: box-shadow .25s, scale .25s, opacity .3s; }
@keyframes bob { from { translate: 0 -7px; } to { translate: 0 7px; } }
button.fl:hover { scale: 1.06; box-shadow: 0 26px 54px var(--shadow), 0 2px 6px var(--shadow); }
.fl .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); flex: none; }
.fl .ic svg { width: 16px; height: 16px; }
.fl .ic i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.fl b { display: block; font-size: 15px; line-height: 19px; font-weight: 600; white-space: nowrap; }
.fl small { display: block; font-size: 12px; line-height: 16px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fl.ghost { z-index: 1; filter: blur(1.6px); opacity: .55; padding: 8px 12px 8px 9px; border-radius: 14px; }
.fl.ghost b { font-size: 13px; } .fl.ghost .ic { width: 24px; height: 24px; border-radius: 8px; }
.fl.sent { opacity: 0; pointer-events: none; }
.fl.fly { position: fixed; rotate: none; animation: none; z-index: 30; margin: 0; pointer-events: none; transition: transform .7s cubic-bezier(.5,0,.25,1), opacity .7s; }

/* getting the app */
.get { position: relative; z-index: 2; display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.store { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 13px; background: var(--badge); color: var(--on-badge); text-decoration: none; text-align: left; transition: transform .2s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 11px; line-height: 13px; opacity: .85; }
.store b { display: block; font-size: 18px; line-height: 21px; font-weight: 600; letter-spacing: -.01em; }
.qr { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; line-height: 16px; color: var(--text-muted); text-align: left; }
.qr svg { width: 52px; height: 52px; border-radius: 6px; }
.qr b { display: block; color: var(--text); font-weight: 600; }
.ios-device .store.android, .android-device .store.ios { display: none; }

/* features: one row each, text beside a phone showing that screen as the app draws it */
.features { max-width: 1120px; margin: 0 auto; padding: 112px clamp(16px, 4vw, 48px) 96px; }
.features h2, .closing h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.feats { margin-top: 56px; display: grid; gap: clamp(56px, 8vw, 96px); }
.feat { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feat:nth-child(even) .copy { order: 2; }
.feat h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.feat .copy p { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--text-muted); max-width: 44ch; }
.shot { padding: 40px 16px; border-radius: 32px; background: radial-gradient(80% 90% at 100% 0%, var(--sky3), transparent 70%), var(--sky2); display: grid; place-items: center; overflow: hidden; }

/* The app's own colours (src/theme/tokens.ts), light then dark. */
.phone { --a-canvas: #FAF9FF; --a-surface: #FFF; --a-muted: #F1EFFB; --a-pressed: #E7E4F6; --a-border: #E4E1F3; --a-border2: #ECEAF7;
  --a-text: #17142B; --a-text2: #625E7C; --a-action: #251A66; --a-on-action: #FFF; --a-accent: #6E50D4; --a-fs: #EFEBFF; --a-on-fs: #07051B;
  --a-reply: linear-gradient(120deg, #EAF3FF, #F1EDFF, #FBEFF8); --a-on-reply: #17142B; --a-scrim: rgba(14,10,40,.64); --a-glow: .36; --a-ground: #FFF; --a-shadow: rgba(37,26,102,.12); --a-outline: #8E8AA8; --a-sky: linear-gradient(180deg, #E2EFFF, #ECE7FF, #FAE8F4);
  position: relative; width: 300px; height: 640px; flex: none; border-radius: 46px; border: 8px solid #0B0A12; background: var(--a-canvas); color: var(--a-text);
  overflow: hidden; box-shadow: 0 30px 60px -24px var(--shadow), 0 0 0 1px rgba(255,255,255,.06); font-size: 13px; line-height: 18px; text-align: left; }
.phone p { margin: 0; }
.phone svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: dark) {
  .phone { --a-canvas: #12111E; --a-surface: #1B1A2C; --a-muted: #252338; --a-pressed: #302D47; --a-border: #37344F; --a-border2: #2A2840;
    --a-text: #F2F0FB; --a-text2: #B4B0CC; --a-action: #E2DCFF; --a-on-action: #12111E; --a-accent: #B2A3FF; --a-fs: #2A2748; --a-on-fs: #E6E2FF;
    --a-reply: linear-gradient(120deg, #20294A, #29264A, #36264A); --a-on-reply: #EDE8FF; --a-scrim: rgba(8,7,18,.86); --a-glow: .26; --a-ground: #2C2540; --a-shadow: rgba(0,0,0,.3); --a-outline: #9894B2; --a-sky: linear-gradient(180deg, #1A2648, #221F48, #331F42); }
}

/* Event colours (src/lib/eventAppearance.ts): fill, words, edge. */
.green { --e-bg: #EDF7EF; --e-fg: #375B3C; --e-ac: #4D7C57; } .blue { --e-bg: #EAF0FF; --e-fg: #234983; --e-ac: #507DD0; }
.slate { --e-bg: #EEF1F5; --e-fg: #293445; --e-ac: #65758B; } .coral { --e-bg: #FFECE7; --e-fg: #8A4036; --e-ac: #C87565; }
.amber { --e-bg: #FFF3D8; --e-fg: #735118; --e-ac: #B48A30; } .violet { --e-bg: #F3EEFF; --e-fg: #4C3B76; --e-ac: #7C5CBE; }
.teal { --e-bg: #E4F4F0; --e-fg: #205D53; --e-ac: #378779; } .rose { --e-bg: #FAEAF1; --e-fg: #863E61; --e-ac: #B76F91; }
.purple { --e-bg: #F6EAF9; --e-fg: #70447C; --e-ac: #A16CAF; }
@media (prefers-color-scheme: dark) {
  .green { --e-bg: #23372C; --e-fg: #C5E8CF; --e-ac: #83C297; } .blue { --e-bg: #23324C; --e-fg: #C8DEFF; --e-ac: #86AEF0; }
  .slate { --e-bg: #29313E; --e-fg: #DCE5F1; --e-ac: #A0B2CA; } .coral { --e-bg: #442B2A; --e-fg: #FFD0C7; --e-ac: #ED9A88; }
  .amber { --e-bg: #403421; --e-fg: #F9DF9F; --e-ac: #E0BB65; } .violet { --e-bg: #322943; --e-fg: #E6D4FF; --e-ac: #BA98EF; }
  .teal { --e-bg: #1C3733; --e-fg: #C0EAE0; --e-ac: #75C3AD; } .rose { --e-bg: #412939; --e-fg: #F6CDE2; --e-ac: #DA93B6; }
  .purple { --e-bg: #3A2940; --e-fg: #EDCEF7; --e-ac: #CA9CDB; }
}

/* Calendar: month title, day bar, then the week timeline */
.cal { position: absolute; inset: 0; padding-top: 30px; }
.cal-top { display: flex; align-items: center; gap: 4px; padding: 0 14px 0 16px; height: 44px; }
.cal-top b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.cal-top svg { width: 18px; height: 18px; color: var(--a-text2); }
.cal-top span { flex: 1; }
.cal-top svg + svg, .cal-top span + svg { width: 21px; height: 21px; color: var(--a-text); margin-left: 12px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); margin-left: 38px; padding: 4px 0 8px; text-align: center; border-bottom: 1px solid var(--a-border); }
.days small { display: block; font-size: 11px; font-weight: 500; color: var(--a-text2); }
.days b { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-top: 2px; border-radius: 50%; font-size: 15px; font-weight: 800; }
.days b.today { background: linear-gradient(135deg, #B0D7FF, #BFB1FF, #F7ADE3); color: #1F1464; }
.tl { --hh: 41px; position: relative; display: flex; padding-top: 8px; }
.hrs { list-style: none; width: 38px; flex: none; margin: 0; padding: 0; }
.hrs li { height: var(--hh); margin-top: -7px; margin-bottom: 7px; padding-right: 5px; font-size: 10px; font-weight: 500; color: var(--a-text2); text-align: right; font-variant-numeric: tabular-nums; }
.grid { position: relative; flex: 1; height: calc(var(--hh) * 11);
  background: repeating-linear-gradient(to bottom, var(--a-border) 0 1px, transparent 1px calc(var(--hh) / 2), var(--a-border2) calc(var(--hh) / 2) calc(var(--hh) / 2 + 1px), transparent calc(var(--hh) / 2 + 1px) var(--hh)),
    linear-gradient(to right, var(--a-border) 1px, transparent 1px) 0 0 / calc(100% / 7) 100%; }
.blk { position: absolute; left: calc(var(--d) * 100% / 7 + 1px); width: calc(100% / 7 - 2px); top: calc(var(--s) * var(--hh) + 1px); height: calc(var(--l) * var(--hh) - 2px);
  border-radius: 8px; background: var(--e-bg); color: var(--e-fg); box-shadow: inset 3px 0 0 var(--e-ac); padding: 2px 2px 0 6px; overflow: hidden;
  font-size: 9.5px; line-height: 12px; font-weight: 600; white-space: nowrap; }
.blk.new { outline: 2px solid transparent; outline-offset: -2px; transition: opacity .35s, transform .35s, outline-color .6s; }

/* The floating Fawzi button on the calendar (CalendarScreen aiButton) */
.fab { position: absolute; right: 14px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; padding: 2px; background: var(--a-fs);
  box-shadow: 0 8px 18px rgba(37,26,102,.22); transition: transform .15s; }
.fab img { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--a-ground); }
.fab.down { transform: scale(.9); }

/* Fawzi's chat (AssistantChatSheet): a scrim over the calendar, Fawzi's portrait at the top, the thread, the composer */
.chat { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: 30px; background: var(--a-scrim); }
.chat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; pointer-events: none;
  background: radial-gradient(80% 70% at 50% 0%, rgba(191,177,255,var(--a-glow)), rgba(247,173,227,calc(var(--a-glow) / 3)) 45%, transparent 75%); }
.portrait { position: relative; align-self: center; width: 64px; height: 64px; padding: 2px; border-radius: 50%; background: linear-gradient(135deg, #7FB2F0, #8B6BE2, #D884C4); }
.portrait img { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--a-fs); }
.thread { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 12px 14px 10px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 28px); mask-image: linear-gradient(transparent, #000 28px); }
.msg { max-width: 88%; border-radius: 18px; padding: 10px 14px; box-shadow: 0 4px 10px var(--a-shadow); }
.msg.me { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--a-action); color: var(--a-on-action); font-size: 14px; line-height: 20px; }
.msg.wait { align-self: flex-start; border-bottom-left-radius: 5px; background: var(--a-reply); color: var(--a-on-reply); display: grid; gap: 3px; }
.dots { display: flex; gap: 4px; padding: 5px 0; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--a-accent); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.pv { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 20px; }
.pv span { font-size: 12px; color: var(--a-text2); font-variant-numeric: tabular-nums; }
.msg.prop { align-self: flex-start; width: 88%; border-bottom-left-radius: 5px; background: var(--a-fs); color: var(--a-on-fs); display: grid; gap: 7px; padding: 12px 14px; }
.note { font-size: 13.5px; line-height: 19px; }
.ch-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.ch-h i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--a-pressed); color: var(--a-accent); }
.ch-h svg { width: 14px; height: 14px; stroke-width: 2.6; }
.ch { position: relative; padding-left: 12px; font-size: 11.5px; line-height: 15px; color: var(--a-text2); }
.ch::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 4px; border-radius: 2px; background: var(--e-ac); }
.ch b { display: block; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--a-on-fs); }
.ch em { display: block; font-style: normal; font-weight: 600; color: var(--a-on-fs); }
.acts { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.pbtn { flex: 1; padding: 10px; border-radius: 14px; background: var(--a-action); color: var(--a-on-action); font-weight: 700; font-size: 14px; text-align: center; transition: transform .15s, filter .15s; }
.pbtn.down { transform: scale(.96); filter: brightness(1.25); }
.cbtn { padding: 10px 8px; color: var(--a-text2); font-weight: 600; font-size: 14px; }
.saved { display: none; font-size: 12.5px; color: var(--a-text2); }
.composer { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 12px 16px; }
.field { flex: 1; min-height: 46px; display: flex; align-items: center; padding: 0 16px; border-radius: 24px; font-size: 14px; color: var(--a-text); overflow: hidden; white-space: nowrap;
  border: 1.5px solid transparent; background: linear-gradient(var(--a-fs), var(--a-fs)) padding-box, linear-gradient(90deg, #7FB2F0, #8B6BE2, #D884C4) border-box; }
.field:has(.typed:not(:empty)) { justify-content: flex-end; }
.field .ph { color: var(--a-text2); }
.typed:not(:empty) { border-right: 1.5px solid var(--a-accent); padding-right: 1px; }
.field:has(.typed:not(:empty)) .ph { display: none; }
.send { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--a-fs); color: var(--a-accent); }
.send svg { width: 20px; height: 20px; }

/* The demo plays in steps that home.js sets with data-step; without it (or with reduced motion) the plan card shows. */
.demo:not([data-step]) .msg.wait, .demo:not([data-step]) .saved, .demo:not([data-step]) .blk.new { display: none; }
.demo .chat { transition: opacity .35s; }
.demo .chat > * { transition: transform .4s cubic-bezier(.3,.7,.2,1); }
.demo .msg { transition: opacity .3s, transform .3s; }
.demo[data-step] .chat { opacity: 0; pointer-events: none; }
.demo[data-step] .chat > :where(.portrait) { transform: translateY(-16px); }
.demo[data-step] .chat > :where(.composer) { transform: translateY(24px); }
.demo[data-step] .blk.new { opacity: 0; transform: scale(.85); }
.demo[data-step] .msg { display: none; opacity: 0; transform: translateY(8px); }
.demo[data-step] .pv { display: none; }
.demo[data-step="chat"] .chat, .demo[data-step="sent"] .chat, .demo[data-step="think"] .chat, .demo[data-step="plan"] .chat, .demo[data-step="saved"] .chat { opacity: 1; }
.demo[data-step="chat"] .chat > *, .demo[data-step="sent"] .chat > *, .demo[data-step="think"] .chat > *, .demo[data-step="plan"] .chat > *, .demo[data-step="saved"] .chat > * { transform: none; }
.demo[data-step="sent"] .msg.me, .demo[data-step="think"] .msg.me, .demo[data-step="plan"] .msg.me, .demo[data-step="saved"] .msg.me { display: block; opacity: 1; transform: none; }
.demo[data-step="think"] .msg.wait { display: grid; opacity: 1; transform: none; }
.demo[data-step="think"] .pv.on { display: flex; }
.demo[data-step="plan"] .msg.prop, .demo[data-step="saved"] .msg.prop { display: grid; opacity: 1; transform: none; }
.demo[data-step="saved"] .acts { display: none; }
.demo[data-step="saved"] .saved { display: block; }
.demo[data-step="done"] .blk.new { opacity: 1; transform: none; outline-color: var(--e-ac); }
.demo[data-step="rest"] .blk.new { opacity: 1; transform: none; }

/* Calendar logos around the week */
.shot.logos { position: relative; }
.logo { position: absolute; width: 58px; height: 58px; border-radius: 15px; box-shadow: 0 14px 28px -10px var(--shadow), 0 0 0 1px rgba(23,20,43,.06); }
.logo.g { left: calc(50% - 205px); top: 18%; rotate: -8deg; }
.logo.o { right: calc(50% - 205px); top: 42%; rotate: 7deg; }
.logo.a { left: calc(50% - 195px); bottom: 14%; rotate: 5deg; }

/* Focus Protection's guard screen (FocusGuardActivity) */
.guard { display: flex; flex-direction: column; align-items: stretch; padding: 40px 22px 18px; text-align: center; }
.guard img { width: 190px; height: auto; margin: 0 auto 14px; }
.guard .left { font-size: 27px; line-height: 32px; font-weight: 800; }
.guard .subj { margin-top: 4px; font-size: 14px; color: var(--a-text2); }
.guard .gbtn { margin-top: 12px; padding: 13px; border-radius: 18px; font-weight: 700; font-size: 14.5px; background: var(--a-muted); border: 1px solid var(--a-outline); }
.guard .gbtn.fill { margin-top: 18px; background: var(--a-action); color: var(--a-on-action); border-color: transparent; }
.guard .breaks { margin-top: 10px; font-size: 12.5px; color: var(--a-text2); }
.guard .open { margin-top: 10px; padding: 8px; font-size: 13px; font-weight: 700; }

/* The full-screen event alarm (EventAlarmActivity): Fawzi holds the card */
.alarm { background: var(--a-sky); --u: calc(280px / 390); }
.alarm img { position: absolute; display: block; }
.alarm .body, .alarm .hands { left: calc(50% - 195 * var(--u)); top: 0; width: calc(390 * var(--u)); height: auto; }
.alarm .hands { z-index: 2; pointer-events: none; }
.alarm .panel { position: absolute; z-index: 1; left: calc(50% - 171 * var(--u)); width: calc(342 * var(--u)); top: calc(394 * var(--u)); padding: 20px calc(46 * var(--u)) 22px;
  border-radius: 28px; background: var(--a-surface); }
.evt { position: relative; padding: 11px 11px 12px 15px; border-radius: 13px; background: var(--e-bg); color: var(--e-fg); font-size: 12.5px; font-weight: 700; overflow: hidden; }
.evt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--e-ac); }
.evt b { display: block; font-size: 19px; line-height: 24px; font-weight: 800; margin-bottom: 2px; }
.abtn { margin-top: 8px; padding: 12px; border-radius: 16px; background: var(--a-muted); font-weight: 700; font-size: 14.5px; text-align: center; }
.abtn.fill { margin-top: 14px; background: var(--a-action); color: var(--a-on-action); }

/* closing */
.closing { max-width: 1120px; margin: 0 auto 96px; padding: 48px clamp(20px, 5vw, 64px); display: flex; gap: clamp(24px, 6vw, 80px); align-items: center; justify-content: center; border-radius: 32px;
  background: radial-gradient(90% 120% at 0% 100%, var(--sky3), transparent 60%), var(--sky2); }
.closing img { width: clamp(140px, 18vw, 200px); height: auto; }
.closing p { font-size: 18px; color: var(--text-muted); margin: 10px 0 24px; }
.closing .stores { justify-content: flex-start; }

/* footer */
.foot { max-width: 1120px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid var(--border); font-size: 15px; line-height: 22px; color: var(--text-muted); }
.foot-top { display: flex; gap: 36px clamp(40px, 6vw, 72px); flex-wrap: wrap; }
.foot-brand { flex: 1 1 260px; }
.foot .brand { display: inline-flex; color: var(--text); }
.foot-brand p { margin-top: 10px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; min-width: 120px; }
.foot nav h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); text-decoration: underline; text-underline-offset: .2em; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hair); font-size: 13.5px; }

/* tablets and phones: the requests sit in a row under Fawzi */
@media (max-width: 1080px) {
  .fl.ghost { display: none; }
  .stage { height: auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
  .fig { position: relative; left: auto; margin-left: 0; }
  .requests { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 640px; }
  .fl { position: relative; left: auto; top: auto; padding: 8px 12px 8px 8px; border-radius: 14px; rotate: none; animation: none; }
  .fl .ic { width: 26px; height: 26px; border-radius: 8px; }
  .fl small { display: none; }
  .fl.sent { opacity: .4; }
  .fl b { font-size: 14px; }
  .qr { display: none; }
}
@media (max-width: 760px) {
  .nav nav a:not(.keep) { display: none; }
  .hero { padding-top: 92px; min-height: auto; }
  .fig { height: 290px; }
  .feat { grid-template-columns: 1fr; gap: 24px; }
  .feat:nth-child(even) .copy { order: 0; }
  .logo { width: 46px; height: 46px; border-radius: 12px; }
  .logo.g, .logo.a { left: 4px; } .logo.o { right: 4px; }
  .closing { flex-direction: column; text-align: center; margin-inline: 16px; }
  .closing .stores { justify-content: center; }
}
@media (hover: none) { .qr { display: none; } }
/* Apple Watch: watchOS is always dark, so the dark event colours are fixed here. */
.watch { width: 232px; padding: 14px; border-radius: 64px; background: linear-gradient(160deg, #3A3A40, #121216); box-shadow: 0 24px 48px rgba(20, 16, 48, .28), inset 0 0 0 1.5px #55555D; position: relative; }
.watch::after { content: ""; position: absolute; right: -9px; top: 70px; width: 9px; height: 40px; border-radius: 0 6px 6px 0; background: #2C2C32; }
.face { aspect-ratio: 41 / 50; border-radius: 50px; background: #000; color: #F4F4F7; padding: 14px 14px 0; font-size: 12px; overflow: hidden; }
.face p { margin: 0; }
.face .w-time { text-align: right; font-weight: 600; font-size: 13px; padding: 0 10px 8px; }
.face .w-ask { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 9px; border-radius: 999px; background: #2B2A3D; color: #C9C2FF; font-weight: 700; margin-bottom: 8px; }
.w-ask svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.face .w-row { padding: 7px 10px; border-radius: 12px; background: #1C1C1F; border-left: 3px solid var(--e-ac); color: #A9A9B2; margin-bottom: 5px; font-size: 11px; }
.w-row b { display: block; color: #F4F4F7; font-size: 13px; }
.watch .green { --e-ac: #83C297; } .watch .blue { --e-ac: #86AEF0; } .watch .slate { --e-ac: #A0B2CA; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fl, .fig.hop { animation: none; }
  .fly, .row, .eye, .eye .g, .store { transition: none; }
}

/* /get/: where the QR code lands */
.get-page { min-height: 100svh; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: radial-gradient(120% 70% at 50% 100%, var(--sky3), transparent 60%), linear-gradient(180deg, var(--canvas), var(--sky2)); }
.get-page img { width: 150px; height: auto; margin-bottom: 8px; }
.get-page h1 { font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.get-page p { font-size: 17px; color: var(--text-muted); margin-bottom: 10px; }
.get-page .back { margin-top: 18px; font-size: 15px; color: var(--text-muted); text-underline-offset: .2em; }
