/* The showroom: a MacBook desktop on laptops, an iPhone home screen on phones.
   Wallpapers and app icons are Manus's (public/img/showroom). The Nigal marks come from
   the approved brand library only. */

@font-face { font-family: 'Inter'; src: url('/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/inter-600.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }

:root {
  color-scheme: light;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --ink: #1D1B19; --ink-2: #5E5850; --card: #FFFFFF; --line: rgba(0,0,0,.1);
  --ease: cubic-bezier(.25,.1,.25,1); --spring: cubic-bezier(.175,.885,.32,1.275); --out: cubic-bezier(0,0,.58,1);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; background: #1B1917; overflow: hidden; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }

.ico { display: inline-block; width: 16px; height: 16px; background: currentColor; flex: none; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-wifi { --i: url('/img/icons/l-wifi.svg'); }
.ico-battery { --i: url('/img/icons/l-battery-full.svg'); }
.ico-signal { --i: url('/img/icons/l-signal.svg'); }
.ico-key { --i: url('/img/icons/l-key-round.svg'); }
.ico-smartphone { --i: url('/img/icons/l-smartphone.svg'); }
.ico-store { --i: url('/img/icons/l-store.svg'); }
.ico-check { --i: url('/img/icons/l-check.svg'); }
.ico-close { --i: url('/img/icons/l-x.svg'); }

/* =====================================================================
   MAC
   ===================================================================== */

.mac { height: 100svh; display: grid; place-items: center; padding: 2.4vh 2vw 1vh;
  background: radial-gradient(80% 60% at 50% 40%, #3A342E 0%, #1B1917 70%); }
.macbook { --w: min(88vw, calc((100svh - 5vh) * 1.52)); width: var(--w); }
.lid { position: relative; background: #0B0B0C; border-radius: calc(var(--w) * .022) calc(var(--w) * .022) calc(var(--w) * .006) calc(var(--w) * .006);
  padding: calc(var(--w) * .014) calc(var(--w) * .014) calc(var(--w) * .02);
  box-shadow: 0 0 0 1px #3C3C40, 0 0 0 2px #1A1A1C, 0 40px 80px -30px rgba(0,0,0,.8); }
.camera { position: absolute; top: calc(var(--w) * .005); left: 50%; width: calc(var(--w) * .006); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: #1F2A36; box-shadow: inset 0 0 0 1px #0F141A; }
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--w) * .006);
  background: #BDB8B1 url('/img/showroom/wall-mac.webp') center / cover; container-type: size; }
.base { position: relative; height: calc(var(--w) * .03); margin: 0 calc(var(--w) * -.06);
  background: linear-gradient(#D6D6DA, #9C9CA2 60%, #6E6E73); border-radius: 0 0 calc(var(--w) * .05) calc(var(--w) * .05) / 0 0 calc(var(--w) * .03) calc(var(--w) * .03);
  box-shadow: 0 18px 30px -12px rgba(0,0,0,.7); }
.base i { position: absolute; top: 0; left: 50%; width: 16%; height: 38%; transform: translateX(-50%); background: linear-gradient(#8E8E94, #B9B9BE); border-radius: 0 0 12px 12px; }

.menubar { position: absolute; inset: 0 0 auto; height: 3.2cqh; min-height: 30px; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 0 1.2cqw;
  font-size: max(11px, 1.55cqh); color: #1D1B19;
  background: rgba(255,255,255,.34); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: url(#lg) blur(8px) saturate(180%);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.3); }
@supports not (backdrop-filter: url(#lg)) { .menubar { backdrop-filter: blur(24px) saturate(180%); } }
.mleft, .mright { display: flex; align-items: center; gap: 1.3cqw; }
.mleft b { font-weight: 700; }
.mleft button { appearance: none; border: 0; background: none; padding: 3px 8px; min-height: 24px; border-radius: 6px; cursor: pointer; font-size: inherit; }
.mleft button:hover { background: rgba(0,0,0,.08); }
.mlogo { height: 2.2cqh; min-height: 15px; width: auto; }
.mright .ico { width: max(13px, 1.9cqh); height: max(13px, 1.9cqh); }
.pinhint { padding: 1px 8px; border-radius: 99px; background: rgba(0,0,0,.08); font-weight: 600; }

.desk { position: absolute; inset: max(30px, 3.2cqh) 0 11cqh; }
.brand { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); text-align: center; width: 34cqw; pointer-events: none; }
.brand img { height: 17cqh; width: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.18)); }
.brand h1 { margin: 1.6cqh 0 .6cqh; font-size: 4.6cqh; letter-spacing: -.03em; font-weight: 700; color: #1E1A16; }
.brand p { margin: 0; font-size: 1.9cqh; line-height: 1.45; color: #3F3933; }
.icons { position: absolute; inset: 0; }
.dicon { appearance: none; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .7cqh; padding: .6cqh; border-radius: 1cqh; width: 9cqw; }
.icons .dicon { position: absolute; transform: translate(-50%, -50%); }
.dicon img { width: 7.2cqh; height: 7.2cqh; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); transition: transform 200ms var(--spring); }
.dicon span { font-size: max(11px, 1.55cqh); font-weight: 600; color: #1E1A16; text-shadow: 0 0 6px rgba(255,255,255,.9), 0 1px 1px rgba(255,255,255,.7); white-space: nowrap; }
.dicon:hover img { transform: scale(1.06); }
.dicon:focus-visible { outline: 2px solid rgba(255,255,255,.8); }

.dock { position: absolute; left: 50%; bottom: 1.4cqh; transform: translateX(-50%); z-index: 9; display: flex; align-items: flex-end; gap: .7cqw; padding: .9cqh 1cqw;
  border-radius: 2.4cqh; background: rgba(255,255,255,.28);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: url(#lg) blur(6px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 0 1px rgba(255,255,255,.2), 0 20px 40px -18px rgba(0,0,0,.45); }
@supports not (backdrop-filter: url(#lg)) { .dock { backdrop-filter: blur(24px) saturate(180%); } }
.dock .dicon { width: auto; padding: 0; position: relative; }
.dock .dicon img { width: 6.4cqh; height: 6.4cqh; transition: transform 220ms var(--spring); transform-origin: 50% 100%; }
.dock .dicon span { color: #fff; position: absolute; bottom: calc(100% + 1.4cqh); left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 8px; background: rgba(30,28,26,.8); text-shadow: none; opacity: 0; pointer-events: none; transition: opacity 120ms; }
.dock .dicon:hover img { transform: scale(1.35) translateY(-4px); }
.dock .dicon:hover span { opacity: 1; }
.dockdiv { align-self: stretch; width: 1px; margin: .6cqh .4cqw; background: rgba(0,0,0,.18); }

/* windows */
.winlayer { position: absolute; inset: max(30px, 3.2cqh) 0 0; pointer-events: none; z-index: 8; }
.win { position: absolute; left: 50%; top: 3cqh; width: 62cqw; height: 72cqh; transform: translateX(-50%) scale(.96); opacity: 0; pointer-events: auto;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 12px;
  background: rgba(246,244,241,.97); box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 40px 90px -30px rgba(0,0,0,.6);
  transition: transform 260ms var(--spring), opacity 180ms var(--ease); }
.win.big { width: 92cqw; height: 84cqh; top: 1.2cqh; }
.win.on { transform: translateX(-50%); opacity: 1; }
.win.on[style*="transform: none"] { transform: none; }
.win.max { left: 0 !important; top: 0 !important; width: 100%; height: calc(100cqh - 3.2cqh); transform: none !important; border-radius: 0; }
.titlebar { flex: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; height: 44px; padding: 0 12px; cursor: grab;
  background: linear-gradient(#EFEDEA, #E4E1DC); border-bottom: 1px solid rgba(0,0,0,.1); user-select: none; }
.titlebar:active { cursor: grabbing; }
.lights { display: flex; gap: 8px; }
.l { appearance: none; border: 0; width: 12px; height: 12px; border-radius: 50%; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.2); }
.l.red { background: #FF5F57; } .l.yellow { background: #FEBC2E; } .l.green { background: #28C840; }
.wtitle { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; }
.wtitle img { width: 20px; height: 20px; }
.wtools { display: flex; align-items: center; gap: 10px; }
.wseg { display: flex; padding: 2px; border-radius: 8px; background: rgba(0,0,0,.08); }
.wseg button { appearance: none; border: 0; background: none; cursor: pointer; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.wseg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.wpin { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #1D1B19; color: #fff; font-size: 12px; font-weight: 600; }
.wpin .ico { width: 13px; height: 13px; }

.wbody { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 34%) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 14px 22px; padding: 16px 22px 14px; }
.win[data-view="front"] .wbody { grid-template-columns: 1fr; }
.win[data-view="front"] .pane.back, .win[data-view="back"] .pane.front { display: none; }
.win[data-view="back"] .wbody { grid-template-columns: 1fr; }
.pane { min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.plabel { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-align: center; }
.plinks { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 12px; }
.plinks a, .plinks button { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: #6B3410; font-weight: 600; text-decoration: none; font-size: 12px; }
.plinks a:hover, .plinks button:hover { text-decoration: underline; }
.iphone { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; }
.fbox { flex: 1 1 auto; min-height: 0; min-width: 0; display: grid; place-items: center; }
.finner { position: relative; overflow: hidden; }
.finner iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.guestframe .finner { border-radius: 30px; box-shadow: 0 0 0 7px #111, 0 0 0 8px #3A3A3E, 0 24px 40px -18px rgba(0,0,0,.5); }
.counterframe .finner, .kitframe .finner { border-radius: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 24px 40px -18px rgba(0,0,0,.35); }
.tvframe .finner { border-radius: 8px; box-shadow: 0 0 0 10px #111, 0 30px 50px -20px rgba(0,0,0,.5); }
.steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 18px; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.steps li::before { content: counter(s); width: 18px; height: 18px; border-radius: 50%; background: #1D1B19; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.win[data-view="front"] .steps, .win[data-view="back"] .steps { display: none; }

.wbody.util { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.picker { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.picker button { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: rgba(0,0,0,.06); font-size: 13px; font-weight: 500; }
.picker button img { width: 26px; height: 26px; }
.picker button[aria-pressed="true"] { background: #1D1B19; color: #fff; }

.guide { max-width: 760px; margin: 0 auto; width: 100%; }
.guide h2 { margin: 6px 0 10px; font-size: 20px; letter-spacing: -.01em; }
.guide p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.gsteps { margin: 0 0 18px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.gsteps li { font-size: 14px; line-height: 1.45; }
.gsteps b { display: block; }
.gsteps span { color: var(--ink-2); }
.gtable { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.grow { display: grid; grid-template-columns: 1.8fr 1fr 1fr .6fr .6fr; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; }
.grow + .grow { border-top: 1px solid var(--line); }
.ghead { background: #F2F0EC; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.gname { display: flex; align-items: center; gap: 10px; }
.gname img { width: 28px; height: 28px; }
.grow a { color: #6B3410; font-weight: 600; text-decoration: none; }
.grow code { font: 600 13px ui-monospace, Menlo, monospace; background: #F2F0EC; padding: 2px 8px; border-radius: 6px; justify-self: start; }
.gnote { margin-top: 12px !important; font-size: 13px !important; }

/* =====================================================================
   IOS
   ===================================================================== */

.ios { position: relative; height: 100svh; overflow: hidden; display: flex; flex-direction: column;
  padding: calc(var(--safe-t) + 8px) 18px calc(var(--safe-b) + 12px);
  /* a light veil of shade keeps white labels readable on the silver wallpaper, as iOS does */
  background: linear-gradient(rgba(34,27,20,.34), rgba(34,27,20,.26)), url('/img/showroom/wall-phone.webp') center / cover; background-color: #5A534B; color: #fff; }
.statusbar { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 12px; font-size: 16px; position: relative; }
.statusbar b { font-weight: 600; letter-spacing: -.01em; }
.island { position: absolute; left: 50%; top: 4px; width: 118px; height: 32px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.sicons { display: flex; gap: 6px; }
.sicons .ico { width: 17px; height: 17px; }
@media (display-mode: standalone) { .island { display: none; } }

.widget { margin: 18px 4px 20px; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 26px;
  background: rgba(30,24,18,.42); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: url(#lg) blur(6px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 18px 36px -20px rgba(0,0,0,.35); }
@supports not (backdrop-filter: url(#lg)) { .widget { backdrop-filter: blur(22px) saturate(170%); } }
.widget img { width: 64px; height: auto; flex: none; background: #fff; border-radius: 18px; padding: 6px; }
.widget b { display: block; font-size: 18px; letter-spacing: -.01em; }
.widget p { margin: 2px 0 8px; font-size: 13px; line-height: 1.35; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.wpin { font-size: 12px; }

.springboard { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 22px; column-gap: 8px; align-content: start; }
.iicon { appearance: none; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; min-width: 0; }
.iicon img { width: min(64px, 17vw); height: min(64px, 17vw); filter: drop-shadow(0 6px 10px rgba(0,0,0,.2)); transition: transform 160ms var(--out); }
.iicon:active img { transform: scale(.9); filter: brightness(.85) drop-shadow(0 6px 10px rgba(0,0,0,.2)); }
.iicon span { font-size: 12px; font-weight: 500; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.55); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pagedots { margin-top: auto; display: flex; justify-content: center; gap: 8px; padding: 12px 0; }
.pagedots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.45); }
.pagedots i.on { background: #fff; }
.iosdock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 14px 12px; border-radius: 32px;
  background: rgba(255,255,255,.26); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: url(#lg) blur(6px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
@supports not (backdrop-filter: url(#lg)) { .iosdock { backdrop-filter: blur(24px) saturate(180%); } }
.iosdock .iicon span { display: none; }

/* app sheet, grows out of the tapped icon */
.sheetscrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease); }
.sheetscrim.on { opacity: 1; pointer-events: auto; }
.appsheet { --brand: #2A2622; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-height: 92svh; overflow-y: auto;
  padding: 10px 18px calc(var(--safe-b) + 22px); border-radius: 30px 30px 0 0; background: #F7F5F2; color: var(--ink);
  transform-origin: var(--ox, 50%) var(--oy, 100%); transform: translateY(40px) scale(.2); opacity: 0; pointer-events: none;
  transition: transform 420ms var(--spring), opacity 200ms var(--ease); }
.appsheet.on { transform: none; opacity: 1; pointer-events: auto; }
body[data-mode="mac"] .appsheet { display: none; }
.sgrab { width: 40px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.2); margin: 0 auto 10px; }
.sclose { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(0,0,0,.07); display: grid; place-items: center; }
.shero { display: flex; align-items: center; gap: 14px; margin: 6px 0 16px; }
.shero img { width: 64px; height: 64px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.2)); }
.shero b { display: block; font-size: 20px; letter-spacing: -.01em; }
.shero span { font-size: 13px; color: var(--ink-2); }
.choices2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bigchoice { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-radius: 22px; text-decoration: none; color: inherit; min-height: 150px; }
.bigchoice .ico { width: 26px; height: 26px; }
.bigchoice b { font-size: 17px; margin-top: 4px; }
.bigchoice small { font-size: 12.5px; line-height: 1.4; }
.bigchoice.front { background: var(--brand); color: #fff; box-shadow: 0 16px 30px -18px var(--brand); }
.bigchoice.front small { color: rgba(255,255,255,.85); }
.bigchoice.back { background: #1D1B19; color: #fff; }
.bigchoice.back small { color: rgba(255,255,255,.75); }
.bigchoice:active { transform: scale(.98); }
.stip { margin: 12px 2px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.sfeat { list-style: none; margin: 4px 0 14px; padding: 12px 14px; border-radius: 18px; background: #fff; display: flex; flex-direction: column; gap: 9px; }
.sfeat li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.4; }
.sfeat .ico { width: 16px; height: 16px; margin-top: 2px; color: #22803F; }
.srow { display: flex; gap: 8px; flex-wrap: wrap; }
.smini { flex: 1 1 auto; text-align: center; padding: 11px 12px; border-radius: 14px; background: #fff; border: 0; cursor: pointer; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.appsheet .guide h2 { font-size: 17px; }
.appsheet .grow { grid-template-columns: 1.6fr 1fr 1fr; }
.appsheet .grow > :nth-child(4), .appsheet .grow > :nth-child(5) { display: none; }
.appsheet .gname img { width: 24px; height: 24px; }
.appsheet .gname b { font-size: 12.5px; }
.appsheet .picker { justify-content: flex-start; }

@media (prefers-reduced-motion: reduce) { .win, .appsheet, .dock .dicon img { transition: none; } }
