/* Real window contents (assets/apps.js). Sizes use em so the same window
   reads at hero size and at demo size. */
html, body { overflow-x: clip; }
.wwin { font-size: 12px; }
.wwin-bar .ico { flex: none; width: 1.3em; height: 1.3em; }
.wwin-bar .ico svg, .dock i svg, .wtaskbar button svg, .appico svg { width: 100%; height: 100%; display: block; }
.dock i.svg { background: none; box-shadow: none; }
.dock i.svg svg { filter: drop-shadow(0 2px 3px rgba(10, 30, 80, .18)); }
.wtaskbar button.svg { background: none; }
.wwin-body:has(> [class^="ui-"]) { padding: 0; display: block; }

.ui-sheet { font-size: .92em; }
.ui-sheet .fx { display: flex; gap: .7em; padding: .45em .8em; border-bottom: 1px solid #edf1f7; color: var(--ink-soft); font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: .9em; }
.ui-sheet .fx b { color: #13834a; font-style: italic; }
.ui-sheet table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ui-sheet th, .ui-sheet td { border: 1px solid #edf1f7; padding: .28em .5em; text-align: left; white-space: nowrap; }
.ui-sheet th { background: #f6f8fb; color: #8a96aa; font-weight: 500; font-size: .85em; text-align: center; }
.ui-sheet td.h { font-weight: 600; background: #f0faf4; color: #13834a; }
.ui-sheet td.n { text-align: right; }
.ui-sheet td.sel { outline: 2px solid #13834a; outline-offset: -2px; background: #e7f6ed; }

.ui-task { font-size: .92em; }
.ui-task .tabs { display: flex; gap: 1em; padding: .45em .8em; border-bottom: 1px solid #edf1f7; color: var(--ink-soft); }
.ui-task .tabs .on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 #1f55e6; padding-bottom: .2em; }
.ui-task table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ui-task th { text-align: left; font-weight: 500; color: #8a96aa; padding: .35em .8em; font-size: .9em; }
.ui-task td { padding: .32em .8em; border-top: 1px solid #f1f4f8; white-space: nowrap; }
.ui-task td + td, .ui-task th + th { text-align: right; }
.ui-task tr.hot td { background: #fff4dc; }
.ui-task .spark { display: block; width: 100%; height: 2em; padding: 0 .8em .4em; }

.ui-cad svg { display: block; width: 100%; height: auto; }

.ui-files { display: grid; grid-template-columns: 30% 1fr; font-size: .92em; }
.ui-files aside { display: grid; gap: .15em; align-content: start; padding: .5em; background: #f6f8fb; border-right: 1px solid #edf1f7; }
.ui-files aside span { padding: .28em .5em; border-radius: .35em; color: var(--ink-soft); white-space: nowrap; }
.ui-files aside span.on { background: #e3ecff; color: var(--ink); font-weight: 600; }
.ui-files .r { display: flex; justify-content: space-between; gap: 1em; padding: .32em .7em; border-bottom: 1px solid #f1f4f8; white-space: nowrap; }
.ui-files .r.h { color: #8a96aa; font-size: .9em; }
.ui-files .r span:first-child { display: flex; align-items: center; gap: .5em; overflow: hidden; text-overflow: ellipsis; }
.ui-files .r span:last-child { color: var(--ink-soft); }
.ui-files i { flex: none; width: 1.1em; height: .9em; border-radius: .15em; background: #f2b13b; }
.ui-files i.exe { background: #1f55e6; height: 1.1em; }
.ui-files i.doc { background: #c9d6ea; height: 1.15em; width: .9em; }

.ui-mix { padding: .6em .8em .7em; background: #faf9ff; }
.ui-mix svg { display: block; width: 100%; height: 3.2em; border-radius: .4em; background: #f0ecff; }
.ui-mix .faders { display: flex; justify-content: space-between; margin-top: .6em; font-size: .85em; color: var(--ink-soft); text-align: center; }
.ui-mix .faders > div { display: grid; justify-items: center; gap: .3em; }
.ui-mix .faders span { position: relative; width: .35em; height: 4.2em; border-radius: 1em; background: #e2dcf7; }
.ui-mix .faders i { position: absolute; left: 50%; width: 1.4em; height: .7em; margin-left: -.7em; border-radius: .2em; background: #fff; box-shadow: 0 1px 3px rgba(60, 30, 140, .35); }

.ui-games { padding: .6em; background: #12151d; color: #fff; }
.ui-games .hero-g { display: flex; align-items: flex-end; justify-content: space-between; height: 5.2em; padding: .6em .7em; border-radius: .5em; background: linear-gradient(120deg, rgba(10,12,20,.1), rgba(10,12,20,.75)), linear-gradient(160deg, #e2525c, #3a1a5c 70%); }
.ui-games .hero-g b { font-size: 1.15em; letter-spacing: -.01em; }
.ui-games .hero-g span { padding: .3em .9em; border-radius: .4em; background: #3fcf8e; color: #062b1a; font-weight: 700; font-size: .9em; }
.ui-games .grid-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; margin-top: .45em; }
.ui-games .grid-g span { display: flex; align-items: flex-end; height: 3.6em; padding: .35em .45em; border-radius: .4em; font-size: .8em; font-weight: 600; }

/* Demo sizes */
.stage .wwin { font-size: clamp(9px, 1vw, 12px); }
.wdesk .wwin, .mdesk .wwin { font-size: clamp(7px, .72vw, 10px); }
.wdesk .wwin-bar, .mdesk .wwin-bar { height: auto; padding: .45em .7em; font-size: 1.05em; }
.cross-win { font-size: clamp(9px, 1vw, 12px); }
.appico { display: inline-block; width: 34px; height: 34px; flex: none; }

/* Fix: tray menu rows were inheriting no colour on the blue tile */
.tray { color: var(--ink); }

/* Explainer thumbnails: the same windows, tiny */
.mini .wwin.w { height: auto; font-size: 4.2px; overflow: hidden; border-radius: 4px; background: #fff; }
.mini .wwin.w::before { content: none; }
.mini .wwin.w .wwin-bar { height: auto; padding: .9em 1.2em; font-size: 1.6em; gap: .6em; }
.mini .wwin.w .tag { display: none; }
.mini .dk i.svg { background: none; width: 12px; height: 12px; }
.mini .dk i.svg svg { width: 100%; height: 100%; display: block; }
.cross-win .tag { display: none; }

/* Demo: Windows programs sitting on the Mac's desktop */
.wdesk .wwin.off, .wtaskbar button.off { display: none; }
.wdesk .wwin.launching { animation: dw-launch .9s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes dw-launch { 0% { opacity: 0; transform: scale(.92); } 35% { opacity: 1; transform: none; box-shadow: 0 0 0 3px #ffd84d, 0 20px 40px -18px rgba(0,0,0,.5); } 100% { box-shadow: 0 0 0 3px #ffd84d, 0 20px 40px -18px rgba(0,0,0,.5); } }
.mfiles { position: absolute; right: 3%; top: 34px; display: grid; gap: 10px; z-index: 2; }
.mfile { display: grid; justify-items: center; gap: 4px; width: 86px; padding: 6px 4px; border: 0; border-radius: 8px; background: none; cursor: pointer; font: inherit; color: #0d1b33; transition: background-color .16s ease, transform .16s ease-out; }
.mfile:hover { background: rgba(255, 255, 255, .45); }
.mfile:active { transform: scale(.97); }
.mfile:focus-visible { outline: 2px solid #1f55e6; outline-offset: 2px; }
.mfile .fi { position: relative; width: 40px; height: 40px; }
.mfile .fi svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 5px rgba(10, 30, 80, .22)); }
.mfile .fi em { position: absolute; right: -6px; bottom: -4px; padding: 1px 4px; border-radius: 4px; background: #fff; color: #1f55e6; font: 700 8px/1.3 system-ui, sans-serif; font-style: normal; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.mfile .fn { font-size: 11px; line-height: 1.25; text-align: center; text-shadow: 0 1px 2px rgba(255,255,255,.7); }
@media (max-width: 700px) { .mfile { width: 64px; } .mfile .fi { width: 30px; height: 30px; } .mfile .fn { font-size: 9px; } }
@media (prefers-reduced-motion: reduce) { .wdesk .wwin.launching { animation: none; } }

/* Hero PC: real windows, small */
.pc-screen .pc-win.wwin { height: auto; font-size: 4px; background: #fff; border-radius: 4px; overflow: hidden; }
.pc-screen .pc-win.wwin:nth-child(2) { background: #12151d; }
.pc-screen .pc-win .wwin-bar { height: auto; padding: .9em 1.2em; font-size: 1.6em; gap: .6em; }
.pc-screen .pc-win .tag { display: none; }
/* Clouds stay behind headings */
.demo-sky .section-head, .demo-sky .demo2 { position: relative; z-index: 1; }

/* Windows taskbar Start button was picking up the generic .start card style */
.wtaskbar .start { padding: 0; background: none; box-shadow: none; border-radius: 4px; }

.ui-game { background: #07060f; }
.ui-game svg { display: block; width: 100%; height: auto; }

/* Features page: real content instead of blank blocks */
.fcard .mini .wwin.w { font-size: 5.4px; }
.fcard .mini .dk i { width: 16px; height: 16px; }
.fcard .mini .dk i.svg { width: 16px; height: 16px; }
.mini-pc .tbar { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: rgba(8, 20, 60, .55); }
.appico.svg { background: none; }
.notif i.appico { width: 28px; height: 28px; }
.tray .ttl { font-weight: 700; color: var(--ink-soft); font-size: 10.5px; }
.dockrow { display: flex; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgba(255,255,255,.7); box-shadow: 0 14px 30px -16px rgba(10,40,120,.45), inset 0 0 0 1px rgba(255,255,255,.8); }
.dockrow i { position: relative; width: 46px; height: 46px; }
.dockrow i svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 5px rgba(10,30,80,.2)); }
.dockrow i::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #4a5872; }
.fan { display: flex; align-items: flex-end; gap: 14px; }
.fan-list { display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.92); box-shadow: 0 16px 34px -16px rgba(10,40,120,.45); font-size: 11.5px; color: var(--ink); }
.fan-list span { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 7px; white-space: nowrap; }
.fan-list span:first-child { background: #e8efff; }
.fan-list i, .fan-tile i { display: block; width: 22px; height: 22px; }
.fan-list i svg, .fan-tile i svg { width: 100%; height: 100%; display: block; }
.fan-tile { display: grid; justify-items: center; gap: 6px; }
.fan-tile i { width: 48px; height: 48px; }
.fan-tile em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--ink); }
.finder .main.list { display: block; padding: 0; font-size: 11px; }
.finder .main.list > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-bottom: 1px solid #f1f4f8; white-space: nowrap; }
.finder .main.list > div.h { color: #8a96aa; font-size: 10px; }
.finder .main.list span:first-child { display: flex; align-items: center; gap: 7px; }
.finder .main.list span:last-child { color: var(--ink-soft); }
.finder .main.list i { width: 12px; height: 10px; border-radius: 2px; background: #f2b13b; }
.finder .main.list i.exe { background: #1f55e6; height: 12px; }
.finder .main.list i.doc { background: #c9d6ea; width: 10px; height: 13px; }
.clip .pane { width: 150px; }
.clip .pane p { margin: 0; font-size: 11px; line-height: 1.5; color: var(--ink); }
.clip .pane mark { background: #cfe0ff; color: inherit; border-radius: 3px; padding: 0 2px; }
.clip .pane p.cell { padding: 4px 6px; border: 2px solid #13834a; border-radius: 3px; background: #f0faf4; }
.vis .term { width: 88%; font-size: 11px; white-space: pre; overflow: hidden; }
.ctx { color: var(--ink); }
.finder .main.list span { aspect-ratio: auto; border-radius: 0; background: none; }
.finder .main.list span:nth-child(3n) { background: none; }
.clip { gap: 8px; }
.clip .pane { width: 128px; }
.clip .mid { flex: none; width: 36px; height: 36px; }
.fcard .mini-mac .wwin.w { font-size: 4.6px; }

/* Demo frame: nothing touches or crosses the Mac screen's edge */
.mfiles { right: 14px; top: 30px; gap: 6px; }
.mfile { outline: none; }
.mfile:focus-visible { outline: 2px solid #1f55e6; outline-offset: -2px; }
.mdesk .dock { max-width: calc(100% - 20px); }
.mdesk .dock i { flex: none; }
.mdesk .dock i:focus { outline: none; }

/* ---- Nav account link */
.nav-account { margin-left: auto; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: inherit; opacity: .92; }
.nav-account[aria-current="page"] { background: rgba(255,255,255,.26); opacity: 1; }
.nav.solid .nav-account[aria-current="page"] { background: var(--mist); }
.nav-links + .nav-account { margin-left: 0; }
@media (hover: hover) and (pointer: fine) { .nav-account:hover { opacity: 1; background: rgba(255,255,255,.18); } .nav.solid .nav-account:hover { background: var(--mist); } }

/* ---- Account page */
.acct-hero { padding-bottom: 56px; }
.acct { padding-top: 0; margin-top: -24px; position: relative; z-index: 2; }
.acct-loading { text-align: center; color: var(--ink-soft); padding: 40px 0; }
.auth-card { width: min(440px, 100%); margin: 0 auto; padding: 28px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-float); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 22px; border-radius: 999px; background: var(--mist); }
.auth-tabs button { height: 38px; border: 0; border-radius: 999px; background: none; font: 600 15px/1 var(--font); color: var(--ink-soft); cursor: pointer; transition: background-color .16s ease, color .16s ease; }
.auth-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(13,27,51,.12); }
.field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.field small { font-weight: 400; color: var(--ink-soft); }
.field input { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: 400 16px var(--font); color: var(--ink); transition: border-color .16s ease, box-shadow .16s ease; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,85,230,.16); }
.field[hidden], [data-show][hidden] { display: none; }
.form-msg { min-height: 1.4em; margin: 2px 0 12px; font-size: 14px; color: #c4302b; }
.form-msg:empty { min-height: 0; margin: 0; }
.form-msg.ok { color: #13834a; }
.btn.wide { width: 100%; justify-content: center; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn-danger { background: #d93a33; color: #fff; }
.link { border: 0; background: none; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link.small { font-size: 13px; }
.auth-alt { margin: 14px 0 0; text-align: center; font-size: 14px; }
.auth-note { margin: 16px 0 0; text-align: center; }

.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.acard { padding: 26px; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 1px 2px rgba(13,27,51,.04), 0 0 0 1px rgba(13,27,51,.05); min-width: 0; }
.acard header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.acard h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.dev-card { grid-row: span 2; }
.badge { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--mist); color: var(--ink-soft); white-space: nowrap; }
.badge.pro { background: #e3ecff; color: var(--blue-deep); }
.badge.trial { background: #fff1d6; color: #8a5a00; }
.plan-line { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }
.plan-buy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.buy { position: relative; display: grid; gap: 2px; justify-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .16s ease, transform .16s ease-out; }
.buy b { font-size: 20px; letter-spacing: -.01em; }
.buy span { font-size: 13px; color: var(--ink-soft); }
.buy em { position: absolute; top: -9px; right: 10px; padding: 2px 8px; border-radius: 999px; background: var(--blue); color: #fff; font: 700 11px/1.4 var(--font); }
.buy.best { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.buy:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .buy:hover { border-color: var(--blue); } }
.plan-manage { display: flex; flex-wrap: wrap; gap: 10px; }
.plan-manage[hidden], .plan-buy[hidden] { display: none; }
.plan-card .form-msg { margin-top: 12px; }

.seats-count { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.seat-bar { height: 6px; border-radius: 99px; background: var(--mist); overflow: hidden; margin-bottom: 8px; }
.seat-bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .3s ease-out; }
.dev-list { list-style: none; margin: 0 0 14px; padding: 0; }
.dev { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dev:last-child { border-bottom: 0; }
.dev-os { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--mist); }
.dev-os svg { width: 18px; height: 18px; }
.dev-os.os-win { color: var(--blue); }
.dev-os.os-mac { color: var(--ink); }
.dev-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.dev-name b { font-size: 16px; overflow-wrap: anywhere; }
.dev-meta { display: flex; align-items: center; gap: 7px; margin: 4px 0 0; font-size: 14px; }
.dev-meta.soft { color: var(--ink-soft); font-size: 13px; }
.dev-apps { margin: 4px 0 0; font-size: 13px; color: var(--ink-soft); }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #b7c2d4; }
.dot.on { background: #22a65a; box-shadow: 0 0 0 3px rgba(34,166,90,.16); }
.dev-act { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.confirm { font-size: 13px; color: var(--ink-soft); }
.confirm.err { color: #c4302b; }
.rename { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.rename input { flex: 1 1 160px; height: 34px; padding: 0 10px; border: 1px solid var(--blue); border-radius: 9px; font: 15px var(--font); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 18px; font-size: 15px; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.pw-form { padding-top: 16px; border-top: 1px solid var(--line); }
.sec-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .acct-grid { grid-template-columns: minmax(0, 1fr); }
  .dev-card { grid-row: auto; }
  .plan-buy { grid-template-columns: minmax(0, 1fr); }
  .dev { grid-template-columns: 36px minmax(0, 1fr); }
  .dev-act { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 900px) { .nav-account { margin-left: auto; } }

/* ---- Long-form pages: help, privacy, terms */
.prose { max-width: 72ch; }
.prose h2 { margin: 44px 0 12px; font-size: 28px; letter-spacing: -.015em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 6px; font-size: 19px; }
.prose p, .prose li { color: #24324c; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose code { padding: 2px 7px; border-radius: 6px; background: #e8eef8; font: 500 .9em ui-monospace, "SF Mono", Consolas, monospace; }
.prose a { color: var(--blue); }
.section > .wrap.prose { margin-inline: auto; }
.howto { counter-reset: h; list-style: none; padding: 0 !important; }
.howto li { position: relative; padding-left: 44px; margin: 14px 0; }
.howto li::before { counter-increment: h; content: counter(h); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e3ecff; color: var(--blue-deep); font-weight: 700; font-size: 14px; }
.help-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.help-toc { position: sticky; top: 96px; display: grid; gap: 2px; padding: 10px; border-radius: var(--radius-md); background: #fff; box-shadow: 0 0 0 1px rgba(13,27,51,.05); }
.help-toc a { padding: 8px 12px; border-radius: 9px; text-decoration: none; color: var(--ink-soft); font-size: 15px; }
@media (hover: hover) and (pointer: fine) { .help-toc a:hover { background: var(--mist); color: var(--ink); } }
.help-body .faq { max-width: none; }
.fixes details { margin: 8px 0; padding: 0 18px; border-radius: var(--radius-sm); background: #fff; box-shadow: 0 0 0 1px rgba(13,27,51,.06); }
.fixes summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.fixes details p { margin: 0 0 14px; }
@media (max-width: 860px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .help-toc { position: static; display: flex; flex-wrap: wrap; }
}

/* [hidden] always wins over display rules */
[hidden] { display: none !important; }
