/* Wallripple — the page is a macOS desktop: the wallpaper plays behind Liquid Glass surfaces. */
:root {
  --text: #fff;
  --text-2: rgba(255, 255, 255, .82);
  --text-3: rgba(255, 255, 255, .62);
  --accent: #0a84ff;          /* macOS system blue, dark appearance */
  --good: #30d158;            /* macOS system green */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  background: #0b1a1f;
  color: var(--text);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- desktop (the live wallpaper) ---------- */
.desktop { position: fixed; inset: 0; z-index: -1; }
.wall {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .8s ease;
}
.wall.is-on { opacity: 1; }
.shade {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 55%);
}

/* ---------- Liquid Glass material ---------- */
.glass {
  --blur: 18px;
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
  backdrop-filter: blur(var(--blur)) saturate(170%);
  box-shadow:
    inset 0 1px .5px rgba(255, 255, 255, .5),     /* light catching the top lip */
    inset 0 -1px .5px rgba(255, 255, 255, .1),
    inset 0 0 0 .5px rgba(255, 255, 255, .18),
    0 12px 40px rgba(0, 0, 0, .28);
}
/* specular rim: brighter on the top-left and bottom-right edges, like light sliding round the lens */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .75), rgba(255, 255, 255, .08) 30%,
    rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
/* text sits on a slightly darker, frostier glass so it stays readable over any wallpaper */
.glass--text {
  --blur: 26px;
  background: linear-gradient(180deg, rgba(16, 24, 28, .34), rgba(16, 24, 28, .22));
  text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.glass--tint {
  --blur: 10px;
  background: linear-gradient(180deg, rgba(10, 132, 255, .92), rgba(0, 110, 230, .82));
}

/* ---------- menu bar ---------- */
.menubar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: 30px; padding: 0 14px;
  display: flex; align-items: center; gap: 22px;
  font-size: 13px; font-weight: 500;
  background: rgba(0, 0, 0, .14);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 -.5px 0 rgba(255, 255, 255, .14);
}
.menubar a { text-decoration: none; }
.menubar-app { display: flex; align-items: center; gap: 8px; }
.menubar-app strong { font-weight: 700; }
.glyph { width: 15px; height: 15px; fill: #fff; stroke: #fff; }
.menubar-nav { display: flex; gap: 18px; }
.menubar-nav a { color: var(--text-2); }
.menubar-nav a:hover { color: var(--text); }
.menubar-status { margin-left: auto; display: flex; gap: 16px; color: var(--text-2); white-space: nowrap; }
#nowShowing::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px;
  border-radius: 50%; background: var(--good); vertical-align: 1px;
}

/* ---------- stage ---------- */
.stage {
  min-height: 100svh;
  padding: clamp(64px, 14vh, 140px) clamp(16px, 6vw, 96px) 150px;
  display: grid;
  grid-template-columns: minmax(0, 600px) 1fr minmax(0, 320px);
  align-items: start;
  gap: 24px;
}

/* every block of content is a window on the desktop */
.window { border-radius: 28px; padding: 18px 30px 30px; }
.stage > .window { grid-column: 1; }
.titlebar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  margin: 0 -12px 26px; min-height: 14px;
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.wtitle { font-size: 13px; font-weight: 600; color: var(--text-2); text-shadow: none; }

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.window .lede { margin: 0 0 26px; font-size: 17px; line-height: 1.5; color: var(--text-2); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none; text-shadow: none;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.97); }
.req { font-size: 13px; color: var(--text-3); }

/* the measurement sits where a macOS desktop widget would */
.widget { grid-column: 3; border-radius: 24px; padding: 18px 20px 16px; --blur: 22px; }
.widget h2 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.bars { margin: 0; }
.pair {
  display: grid; grid-template-columns: 78px 1fr; gap: 6px 10px; align-items: center;
  padding: 10px 0; border-top: .5px solid rgba(255, 255, 255, .14);
}
.pair:first-child { border-top: 0; padding-top: 0; }
.pair dt { font-size: 12px; color: var(--text-2); }
.pair dt.us { color: var(--text); font-weight: 600; }
.pair dd { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.pair dd b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar {
  height: 8px; border-radius: 4px; width: calc(var(--v) * 6.5%);
  background: rgba(255, 255, 255, .42);
}
.bar.us { background: var(--good); }
.fine { margin: 10px 0 0; font-size: 11px; line-height: 1.4; color: var(--text-3); }
.fine a { color: var(--text-2); }

/* ---------- windows further down the desktop ---------- */
.desk {
  display: grid; gap: clamp(48px, 12vh, 120px);
  padding: clamp(24px, 6vh, 64px) clamp(16px, 6vw, 96px) 40px;
}
.desk > .window { width: min(100%, 880px); scroll-margin-top: 48px; }
.desk > .win-right { justify-self: end; }
.desk > .win-price { width: min(100%, 480px); margin-left: clamp(0px, 8vw, 140px); }
.desk > .win-faq { width: min(100%, 720px); }

h2 { margin: 0 0 12px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.widget h2 { letter-spacing: 0; }
h3 { margin: 26px 0 6px; font-size: 17px; line-height: 1.3; font-weight: 600; }
.window p { margin: 0 0 12px; color: var(--text-2); max-width: 68ch; }
.window .answer { font-size: 17px; line-height: 1.5; color: var(--text); margin-bottom: 18px; }
.window .fine { font-size: 12px; color: var(--text-3); margin-top: 18px; }
.window b { color: var(--text); font-weight: 600; }

/* library: the same grid the app's Library window shows */
.library {
  list-style: none; margin: 6px 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 18px 14px;
}
.library button {
  display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.library img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .3), inset 0 0 0 .5px rgba(255, 255, 255, .2);
  transition: transform .2s ease;
}
.library button:hover img { transform: translateY(-2px); }
.library li.is-on img { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.library .name { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; }
.library .meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.library .free { color: var(--good); font-weight: 600; }
.lock { width: 9px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.note { font-size: 14px; }

/* CPU test: laid out like Activity Monitor, the place Mac users already check CPU */
.table-wrap { overflow-x: auto; margin: 4px -10px 20px; }
.am { width: 100%; border-collapse: collapse; font-size: 13px; text-shadow: none; }
.am caption { caption-side: bottom; text-align: left; padding: 8px 10px 0; font-size: 12px; color: var(--text-3); }
.am thead th { font-size: 12px; font-weight: 500; color: var(--text-3); text-align: left; padding: 6px 10px; border-bottom: .5px solid rgba(255, 255, 255, .2); }
.am td { padding: 7px 10px; color: var(--text-2); }
.am .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.am tr.file th { text-align: left; font-size: 12px; font-weight: 500; color: var(--text-3); padding: 14px 10px 4px; }
.am tbody tr:not(.file):nth-child(even) td { background: rgba(255, 255, 255, .05); }
.am tr.us td { color: var(--text); font-weight: 600; }
.am tr.us td:first-child { white-space: nowrap; }
.am tr.us td:first-child::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px;
  border-radius: 50%; background: var(--good); vertical-align: 1px;
}

/* price */
.amount { margin: 4px 0 10px !important; font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--text) !important; }
.amount span { font-size: 19px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }

/* footer sits on the wallpaper itself */
.foot { padding: 24px 16px 120px; text-align: center; font-size: 12px; color: var(--text-2); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.foot p { margin: 0; }

/* ---------- dock ---------- */
.dock {
  --blur: 8px;
  position: fixed; left: 50%; bottom: 10px; z-index: 10;
  transform: translateX(-50%);
  border-radius: 24px; padding: 8px 10px 12px;
  max-width: calc(100vw - 32px);
}
.dock ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 8px; }
.dock li { --s: 1; position: relative; flex: 0 0 auto; }
.dock button {
  display: block; width: 54px; height: 54px; padding: 0; border: 0; cursor: pointer;
  border-radius: 13px; overflow: hidden; background: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3), inset 0 0 0 .5px rgba(255, 255, 255, .25);
  transform: scale(var(--s)); transform-origin: 50% 100%;
  margin: 0 calc((var(--s) - 1) * 27px);
  transition: transform .18s ease, margin .18s ease;
}
.dock img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dock li.is-on::after {
  content: ""; position: absolute; left: 50%; bottom: -8px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(255, 255, 255, .85);
}
.tip {
  position: absolute; left: 50%; bottom: calc(54px * var(--s) + 14px);
  transform: translateX(-50%); padding: 4px 10px; border-radius: 8px;
  font-size: 12px; white-space: nowrap; pointer-events: none;
  background: rgba(40, 40, 40, .62);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  opacity: 0; transition: opacity .12s ease, bottom .18s ease;
}
@media (hover: hover) {
  .dock li:hover { --s: 1.45; }
  .dock li:hover + li, .dock li:has(+ li:hover) { --s: 1.2; }
  .dock li:hover .tip { opacity: 1; }
}
.dock button:focus-visible + .tip { opacity: 1; }

/* ---------- narrow screens ---------- */
@media (max-width: 960px) {
  .stage { grid-template-columns: minmax(0, 1fr); padding-top: 56px; padding-bottom: 120px; }
  .stage > .window, .widget { grid-column: 1; }
  .widget { max-width: 420px; }
  .desk > .win-price { margin-left: 0; }
}
@media (max-width: 640px) {
  .menubar-nav, #nowShowing { display: none; }
  .window { padding: 16px 20px 22px; border-radius: 24px; }
  .titlebar { margin: 0 -6px 20px; }
  .library { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .table-wrap { margin: 4px -14px 18px; }
  .am td, .am thead th, .am tr.file th { padding-left: 8px; padding-right: 8px; }
  .window .lede { font-size: 16px; }
  .dock { overflow-x: auto; scrollbar-width: none; padding: 7px 8px 11px; border-radius: 20px; }
  .dock button { width: 46px; height: 46px; border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .wall, .dock button, .tip { transition: none; }
}
