/* /mac, /windows and /linux: the hero is that system's desktop, drawn in CSS, with Ratio open at the bottom of the screen.
   Built on bind.css; only what those pages add lives here. */

.pf-hero { padding: 104px 0 0; display: grid; justify-items: center; gap: 22px; }

/* Mac · Windows · Linux */
.pf-switch { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--chip); }
.pf-switch a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--dim); transition: background .2s, color .2s; }
.pf-switch a:hover { color: var(--text); }
.pf-switch a[aria-current] { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.pf-switch svg { width: 14px; height: 14px; fill: currentColor; flex: none; }

/* The desktop */
.desk { position: relative; width: var(--wrap); border-radius: 22px; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif; letter-spacing: 0;
  box-shadow: 0 30px 80px -30px rgba(10, 30, 80, .35); animation: hero-demo-enter 1.4s cubic-bezier(.16, 1, .3, 1) .1s both; }
.desk::before, .desk::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.desk-center { display: grid; justify-items: center; gap: 0; padding: clamp(64px, 11vw, 120px) 20px 0; }
.desk-icon { width: 84px; height: 84px; border-radius: 19px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.desk h1 { margin-top: 26px; font-family: var(--sans); font-size: clamp(40px, 6.4vw, 68px); line-height: 1; letter-spacing: -0.06em; font-weight: 600; text-shadow: 0 2px 24px rgba(0, 0, 0, .18); }
.desk-sub { margin-top: 16px; max-width: 460px; font-family: var(--sans); font-size: 18px; line-height: 1.4; letter-spacing: -0.01em; color: rgba(255, 255, 255, .86); text-wrap: balance; }
.desk .cta-row { margin-top: 30px; }
.desk .pill { font-family: var(--sans); }
.pill-glass { background: rgba(255, 255, 255, .94); color: #000; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.pill-glass:hover { background: #fff; }
.pill-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pill-ghost:hover { background: rgba(255, 255, 255, .22); }
.pill small { font-size: 12.5px; font-weight: 400; opacity: .6; }
.desk-fine { margin-top: 16px; font-family: var(--sans); font-size: 13px; color: rgba(255, 255, 255, .72); }

/* Ratio, open at the bottom of the screen: only its top shows. */
.desk-peek { height: clamp(250px, 30vw, 330px); margin-top: clamp(44px, 6vw, 64px); padding: 0 20px; overflow: hidden; }
.desk-peek .app-win { width: min(820px, 100%); margin: 0 auto; min-height: 520px; text-align: left; box-shadow: 0 24px 70px rgba(0, 0, 0, .35), 0 0 0 .5px rgba(0, 0, 0, .2); }
.desk-peek .app-sheet { padding: 22px 44px 0 40px; }
/* Windows and Linux draw their window buttons on the right. */
.app-ctl { display: flex; margin: 0 -6px 0 10px; }
.app-ctl svg { width: 34px; height: 30px; padding: 9px 11px; fill: none; stroke: var(--a-text); stroke-opacity: .7; stroke-width: 1.2; }
.desk-linux .app-ctl { gap: 8px; margin-right: 0; }
.desk-linux .app-ctl svg { width: 24px; height: 24px; padding: 7px; border-radius: 50%; background: rgba(0, 0, 0, .06); stroke-width: 1.6; }

/* Status icons, shared by the three bars */
.desk-ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.desk-ico.solid { fill: currentColor; stroke: none; }

/* macOS: menu bar on a blue Sequoia-like wallpaper */
.desk-mac { background:
  radial-gradient(70% 60% at 100% 100%, #17388a 0%, transparent 70%),
  radial-gradient(60% 55% at 0% 0%, #a9c6f2 0%, transparent 60%),
  linear-gradient(165deg, #7ea3e4 0%, #5079cc 42%, #2d55ad 100%); }
.desk-mac::before { left: -45%; top: 18%; width: 150%; height: 140%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); box-shadow: inset 0 0 140px rgba(255, 255, 255, .16), 0 0 80px rgba(255, 255, 255, .08); transform: rotate(-14deg); }
.desk-mac::after { left: 30%; top: -60%; width: 120%; height: 130%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); box-shadow: inset 0 0 120px rgba(255, 255, 255, .12); transform: rotate(22deg); }
.mac-bar { display: flex; align-items: center; gap: 18px; height: 30px; padding: 0 16px; font-size: 13px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); text-align: left; }
.mac-bar b { font-weight: 700; }
.mac-bar .apple { width: 14px; height: 14px; fill: #fff; margin-top: -2px; }
.mac-bar .menus { display: flex; gap: 18px; }
.mac-bar .right { margin-left: auto; display: flex; align-items: center; gap: 16px; font-variant-numeric: tabular-nums; }

/* Windows 11: Bloom-like wallpaper, taskbar at the bottom */
.desk-windows { background:
  radial-gradient(38% 46% at 50% 64%, rgba(170, 215, 255, .95) 0%, rgba(80, 150, 245, .55) 45%, transparent 75%),
  radial-gradient(80% 70% at 50% 110%, #1c66e0 0%, transparent 70%),
  linear-gradient(180deg, #0a2a6e 0%, #134aa8 55%, #0b2c72 100%); }
.desk-windows::before { left: 50%; top: 38%; width: 70%; height: 90%; transform: translateX(-50%); border-radius: 50%;
  background: conic-gradient(from 200deg, transparent, rgba(150, 205, 255, .35), transparent 30%, rgba(90, 160, 255, .3), transparent 60%, rgba(180, 220, 255, .3), transparent);
  filter: blur(40px); }
.desk-windows .desk-center { padding-top: clamp(84px, 13vw, 140px); }
.win-taskbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px;
  background: rgba(32, 36, 48, .78); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border-top: 1px solid rgba(255, 255, 255, .08); }
.win-taskbar .tb { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; }
.win-taskbar .tb.on { background: rgba(255, 255, 255, .08); }
.win-taskbar .tb.on::after { content: ""; position: absolute; bottom: 2px; width: 16px; height: 3px; border-radius: 2px; background: #6cb4ff; }
.win-taskbar .tb svg { width: 20px; height: 20px; }
.win-taskbar .tb img { width: 24px; height: 24px; border-radius: 5px; }
.win-taskbar .search { display: flex; align-items: center; gap: 8px; height: 32px; width: 170px; padding: 0 12px; margin: 0 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; color: rgba(255, 255, 255, .7); }
.win-taskbar .tray { position: absolute; right: 12px; top: 0; bottom: 0; display: flex; align-items: center; gap: 12px; font-size: 12px; line-height: 1.25; text-align: right; font-variant-numeric: tabular-nums; }
.win-taskbar .tray .icons { display: flex; gap: 8px; }
.win-taskbar .tray .icons .desk-ico { width: 15px; height: 15px; }

/* Ubuntu: GNOME's black top bar, the dock on the left */
.desk-linux { background:
  radial-gradient(70% 70% at 100% 100%, #f06a2c 0%, transparent 60%),
  radial-gradient(60% 70% at 0% 0%, #2c001e 0%, transparent 70%),
  linear-gradient(140deg, #3b0a32 0%, #772953 45%, #c7431f 85%, #e95420 100%); }
.desk-linux::before { left: 20%; top: 35%; width: 90%; height: 110%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 0 120px rgba(255, 190, 140, .12); transform: rotate(-20deg); }
.gnome-bar { position: relative; display: flex; align-items: center; height: 30px; padding: 0 14px; font-size: 13px; font-weight: 600; background: #000; text-align: left; font-variant-numeric: tabular-nums; }
.gnome-bar .ws { display: flex; gap: 5px; align-items: center; }
.gnome-bar .ws i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .5); }
.gnome-bar .ws i:first-child { width: 28px; background: #fff; }
.gnome-bar .clock { position: absolute; left: 50%; transform: translateX(-50%); }
.gnome-bar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; padding: 2px 10px; border-radius: 999px; }
.gnome-dock { position: absolute; left: 10px; top: 50%; transform: translateY(-40%); z-index: 3; display: grid; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.gnome-dock span { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.gnome-dock span.on::before { content: ""; position: absolute; left: -6px; width: 4px; height: 4px; border-radius: 50%; background: #e95420; }
.gnome-dock img { width: 36px; height: 36px; border-radius: 8px; }
.gnome-dock svg { width: 30px; height: 30px; }

/* Features */
.pf-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-feature { padding: 28px 26px 30px; display: grid; gap: 10px; align-content: start; }
.pf-feature .pf-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; background: var(--chip); }
.pf-feature .pf-ico svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pf-feature h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.04em; }
.pf-feature p { font-size: 15.5px; line-height: 1.5; color: var(--dim); }

/* Install steps */
.pf-steps { width: min(820px, 100%); margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 14px; counter-reset: s; }
.pf-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 24px 26px; align-items: start; }
.pf-steps li > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 600; }
.pf-steps b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.03em; }
.pf-steps p { margin-top: 4px; color: var(--dim); font-size: 15.5px; line-height: 1.5; }
.pf-steps code { display: inline-block; margin-top: 10px; padding: 7px 12px; border-radius: 8px; background: var(--chip); font: 13.5px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; user-select: all; }
.pf-req { margin-top: 26px; text-align: center; font-size: 14px; color: var(--faint); text-wrap: balance; }
.pf-req a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 960px) {
  .pf-features { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .pf-hero { padding-top: 92px; }
  .desk { border-radius: 18px; }
  .mac-bar .menus, .mac-bar .right .desk-ico, .gnome-bar .right .desk-ico:not(:last-child), .win-taskbar .search, .win-taskbar .tray .icons, .win-taskbar .tb.extra { display: none; }
  .mac-bar .right { gap: 0; }
  .gnome-dock { display: none; }
  .desk-peek { padding: 0 14px; }
  .desk-peek .app-sheet { padding: 18px 22px 0; }
  .desk-peek .app-bar > .app-ico:not(:nth-child(2)), .desk-peek .app-trial { display: none; }
  .desk-sub { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { .desk { animation: hero-demo-fade .45s ease .08s both; } }

/* Dark theme: the desktop keeps its own colors; only the page around it changes. */
