/* MacXray's website. One stylesheet for every page, in MacXray's own look: the deep teal and the orange
   heartbeat of its icon, an X-ray light box's grid, and flat surfaces with hairline edges (no shadows,
   no shaded cards; a selected item is bold with a thin bar, as in the app). Light and Dark follow the Mac. */

:root {
  --bg: #f4f8f8;
  --bg-2: #e9f0f0;
  --panel: #ffffff;
  --ink: #0a1d21;
  --muted: #455b60;
  --faint: #5d7378;
  --line: rgba(10, 29, 33, 0.1);
  --line-2: rgba(10, 29, 33, 0.2);
  --teal: #0a777d;
  --pulse: #ff7a45;
  --on-pulse: #1f0e05;
  --grid: rgba(10, 119, 125, 0.075);
  --scan: rgba(10, 150, 156, 0.6);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #061215;
    --bg-2: #0a1a1e;
    --panel: #0c1f24;
    --ink: #e4eff0;
    --muted: #a0b5b9;
    --faint: #7d9398;
    --line: rgba(228, 239, 240, 0.09);
    --line-2: rgba(228, 239, 240, 0.18);
    --teal: #55d3c7;
    --pulse: #ff8a5c;
    --grid: rgba(85, 211, 199, 0.06);
    --scan: rgba(85, 211, 199, 0.65);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); letter-spacing: -0.025em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
code, kbd { font: 0.88em var(--mono); }
code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--ink); overflow-wrap: anywhere; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { padding-block: 104px; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 20; background: var(--panel); color: var(--ink); padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 8px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* The bar along the top */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 28px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 650 19px/1 var(--display); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.links a { color: var(--muted); }
.links a:hover { color: var(--ink); text-decoration: none; }
.bar .btn { padding: 8px 15px; font-size: 14px; }
@media (max-width: 760px) { .links { display: none; } .bar .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 999px; background: var(--pulse); color: var(--on-pulse); border: 1px solid transparent; font: 600 17px/1 var(--text); letter-spacing: -0.01em; padding: 15px 24px; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.07); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--ink); filter: none; }

/* Labels, headings, text */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }
.title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 700; margin-top: 14px; }
.lede { margin-top: 20px; color: var(--muted); font-size: clamp(18px, 1.8vw, 21px); max-width: 62ch; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 18px; font: 500 13px/1.6 var(--mono); color: var(--faint); }
.meta span:not(:last-child)::after { content: "·"; margin: 0 9px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* The first screen: the light box, the heartbeat and the window being x-rayed */
.hero { position: relative; overflow: hidden; padding-block: 84px 104px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center top;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 80%); mask-image: linear-gradient(to bottom, #000 25%, transparent 80%); }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
.hero h1 span { color: var(--teal); }
.hero .showcase { margin-top: 52px; }

/* A MacXray window around each screenshot */
.window { position: relative; margin: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--panel); }
.titlebar { position: relative; display: flex; align-items: center; gap: 8px; height: 30px; padding-inline: 13px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; }
.titlebar b { position: absolute; inset: 0; text-align: center; font: 600 12.5px/30px var(--text); color: var(--muted); pointer-events: none; }
.window img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; background: var(--panel); }

/* What MacXray tells you, in its own words */
.feed { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.feed li { display: grid; grid-template-columns: 96px 130px minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--line); }
.feed time { font: 500 13px var(--mono); color: var(--faint); }
.feed .who { font: 600 12px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.feed p { font-size: 18px; }
.note { margin-top: 18px; color: var(--faint); font-size: 14px; }
@media (max-width: 760px) { .feed li { grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; } .feed p { grid-column: 1 / -1; font-size: 17px; } }

/* A feature beside its screenshot */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 60px; align-items: center; }
.points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 15px; }
.points li { position: relative; padding-left: 24px; color: var(--muted); }
.points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 12px; height: 2px; background: var(--pulse); }
.points strong { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) { .split { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* The tour of the views: a sidebar like the app's, then the view */
.tour { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 52px; margin-top: 52px; }
.tabs { display: none; flex-direction: column; border-left: 1px solid var(--line); align-self: start; position: sticky; top: 88px; }
html.js .tabs { display: flex; }
.tabs button { all: unset; cursor: pointer; display: block; margin-left: -1px; padding: 11px 18px; border-left: 3px solid transparent; color: var(--muted); font: 500 17px/1.3 var(--text); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; border-left-color: var(--teal); }
.tabs button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.panels { display: grid; gap: 72px; }
html.js .panels { gap: 0; }
html.js .panel[hidden] { display: none; }
.panel h3 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; }
.panel p { margin-top: 12px; color: var(--muted); max-width: 66ch; }
.panel .window { margin-top: 30px; }
html:not(.js) .tour { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 980px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tabs { position: static; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { margin: 0 0 -1px; padding: 10px 14px; border-left: 0; border-bottom: 3px solid transparent; white-space: nowrap; font-size: 16px; }
  .tabs button[aria-selected="true"] { border-bottom-color: var(--teal); }
}

/* The films: real screenshots of MacXray played scene by scene (film.js), adapted from Statiku's. A MacXray window with
   a cursor and a label for what it points at; the tab playing is bold with a thin bar that fills as it plays. */
.showcase { margin-top: 8px; }
.film { position: relative; width: 100%; margin-inline: auto; }
.film > img { width: 100%; border: 1px solid var(--line-2); border-radius: 14px; }
.film-stage { position: relative; padding-bottom: 32px; }
.film-glow { position: absolute; inset: 12% -3% 8%; z-index: 0; opacity: .28; filter: blur(70px); transition: background .8s ease; pointer-events: none; }
.film-window { position: relative; z-index: 1; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--panel); }
.film-chrome { position: relative; display: flex; align-items: center; height: 30px; padding-inline: 13px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.film-dots { display: inline-flex; gap: 8px; }
.film-dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.film-dots i:nth-child(2) { background: #febc2e; }
.film-dots i:nth-child(3) { background: #28c840; }
.film-title { position: absolute; inset: 0; text-align: center; font: 600 12.5px/30px var(--text); color: var(--muted); pointer-events: none; }
.film-viewport { position: relative; width: 100%; aspect-ratio: 8 / 5; overflow: hidden; background: var(--panel); }
.film-frames { position: absolute; inset: 0; }
.film-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .3s ease; user-select: none; }
.film-frames img.on { opacity: 1; }
.film-cursor { position: absolute; left: 0; top: 0; z-index: 3; width: 22px; height: 26px; margin: -2px 0 0 -2px; opacity: 0; pointer-events: none;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1), opacity .25s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.film-label { position: absolute; left: 0; top: 0; z-index: 3; padding: 6px 12px; border-radius: 99px; background: rgba(6, 18, 21, .88); color: #fff;
  font: 600 13px var(--text); white-space: nowrap; pointer-events: none; opacity: 0; transition: transform .65s cubic-bezier(.4, 0, .2, 1), opacity .25s;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--glow, #fff) 70%, transparent); }
.film-ripple { position: absolute; left: -9px; top: -9px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--pulse); opacity: 0; }
.film-ripple.go { animation: film-ripple .5s ease-out; }
@keyframes film-ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.film-play { position: absolute; right: 16px; bottom: 16px; z-index: 4; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%; background: rgba(6, 18, 21, .8); color: #fff; cursor: pointer; }
.film-play:hover { background: rgba(6, 18, 21, .95); }
.film-tabs { position: absolute; left: 50%; bottom: 0; z-index: 6; display: flex; gap: 2px; width: max-content; max-width: calc(100% - 16px); padding: 3px 6px;
  border: 1px solid var(--line-2); border-radius: 12px; background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transform: translateX(-50%); overflow-x: auto; scrollbar-width: none; }
.film-tabs::-webkit-scrollbar { display: none; }
.film-tab { position: relative; flex: none; padding: 9px 13px 11px; border: 0; background: none; color: var(--muted); font: 500 15px var(--text); cursor: pointer; }
.film-tab:hover { color: var(--ink); }
.film-tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.film-progress { position: absolute; left: 0; bottom: 3px; width: 0; height: 3px; border-radius: 2px; background: var(--teal); transition: width .1s linear; }
.film-caption { margin: 22px auto 0; max-width: 680px; min-height: 3.2em; text-align: center; color: var(--muted); font-size: 17px; line-height: 1.55; text-wrap: balance; }
.film-caption b { color: var(--ink); font-weight: 650; }
.film-caption.in { animation: film-caption .3s ease both; }
@keyframes film-caption { from { opacity: 0; transform: translateY(4px); } }
.demo-note { margin-top: 10px; text-align: center; color: var(--faint); font-size: 13px; }
@media (max-width: 680px) {
  .film-stage { padding-bottom: 0; }
  .film-tabs { position: static; transform: none; flex-wrap: wrap; justify-content: center; width: auto; max-width: 100%; margin: 12px auto 0; border: 0; background: none;
    -webkit-backdrop-filter: none; backdrop-filter: none; }
  .film-tab { padding: 7px 10px 9px; font-size: 13.5px; }
  .film-label { font-size: 11px; padding: 4px 9px; }
  .film-play { right: 10px; bottom: 10px; width: 32px; height: 32px; }
  .film-caption { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .film-cursor, .film-label, .film-frames img { transition: none; } }

/* Columns of short facts, divided by hairlines */
.cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; margin-top: 52px; border-top: 1px solid var(--line); }
.cols > div { padding-top: 28px; }
.cols svg { width: 26px; height: 26px; color: var(--teal); margin-bottom: 16px; }
.cols h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.012em; line-height: 1.25; }
.cols p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.more { display: inline-block; margin-top: 40px; font-weight: 600; }
.window.wide { margin-top: 52px; }
@media (max-width: 980px) { .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; } .cols > div { padding-bottom: 8px; } }
@media (max-width: 560px) { .cols { grid-template-columns: minmax(0, 1fr); } }

/* The spec sheet */
.spec { margin: 48px 0 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 600 12.5px/1.9 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.spec dd { margin: 0; font-size: 18px; }
.spec dd small { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .spec div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); }
.steps li { padding-top: 26px; color: var(--muted); }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 12px; font: 600 13px var(--mono); letter-spacing: 0.12em; color: var(--pulse); }
.steps strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps li { padding-bottom: 6px; } }

/* Questions */
.faq { max-width: 880px; margin-top: 44px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 21px 44px 21px 0; font: 600 19px/1.35 var(--display); letter-spacing: -0.012em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font: 300 28px/1 var(--text); color: var(--faint); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > p { padding-bottom: 22px; color: var(--muted); max-width: 70ch; }
.faq details > p + p { margin-top: -10px; }

/* The last call */
.closing { text-align: center; }
.closing img { width: 80px; height: 80px; margin: 0 auto 24px; }
.closing h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 700; letter-spacing: -0.03em; }
.closing .lede { margin-inline: auto; }
.closing .actions, .closing .meta { justify-content: center; }

/* Documents: privacy and terms */
.doc { max-width: 780px; padding-block: 76px 104px; }
.doc h1 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; }
.doc .updated { margin-top: 14px; font: 500 13px var(--mono); color: var(--faint); }
.doc .lede { margin-top: 24px; }
.doc h2 { margin-top: 48px; font-size: 25px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--muted); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc strong { color: var(--ink); font-weight: 600; }

/* The download page */
.start { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
.start h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.03em; margin-top: 16px; }
.ready { border: 1px solid var(--line-2); border-radius: 18px; padding: 32px; }
.ready h2 { font-size: 26px; letter-spacing: -0.02em; }
.ready p { margin-top: 10px; color: var(--muted); }
.ready .btn { margin-top: 22px; }
.ready .meta { margin-top: 20px; }
.notice { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--pulse); border-radius: 12px; color: var(--ink); }
.tries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; margin-top: 52px; }
.try .window { margin-bottom: 22px; }
.try .num { font: 600 13px var(--mono); letter-spacing: 0.12em; color: var(--pulse); }
.try h3 { margin-top: 8px; font-size: 24px; letter-spacing: -0.02em; }
.try p { margin-top: 8px; color: var(--muted); }
@media (max-width: 900px) { .start, .tries { grid-template-columns: minmax(0, 1fr); } }

/* The foot of every page */
footer { border-top: 1px solid var(--line); padding-block: 34px 46px; font-size: 14px; color: var(--faint); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
footer .who { margin-right: auto; color: var(--muted); }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer .fine { flex-basis: 100%; margin-top: 10px; font-size: 12.5px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  section { padding-block: 76px; }
  .hero { padding-block: 56px 76px; }
  .btn { padding: 14px 20px; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .titlebar { height: 24px; }
  .titlebar i { width: 9px; height: 9px; }
  .titlebar b { line-height: 24px; font-size: 11px; }
}
