/* PowerShow — powershow.com.au
   One stylesheet for every page. The colours are the product datasheet's: Apple's own
   neutrals, and the two blues of the app icon, so the site, the datasheet and the icon read
   as one thing. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --panel: #f5f5f7;
  --raised: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --hairline: #d2d2d7;
  --link: #1f5fbf;
  --blue: #3a7bd5;
  --navy: #0a2647;
  --accent-gradient: linear-gradient(135deg, var(--blue), var(--navy));
  --text-gradient: linear-gradient(135deg, #3a7bd5 10%, #0a2647 95%);
  --header-bg: rgba(255, 255, 255, 0.82);
  --warn-bg: #fff6e5;
  --warn-edge: #f0b44c;
  --note-edge: #3a7bd5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 40px rgba(10, 38, 71, 0.16);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1120px;
  --gutter: 16px;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --panel: #161618;
    --raised: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --hairline: #38383a;
    --link: #6aa6ff;
    --text-gradient: linear-gradient(135deg, #7fb2ff 10%, #3a7bd5 95%);
    --header-bg: rgba(0, 0, 0, 0.72);
    --warn-bg: #2b2210;
    --warn-edge: #b98522;
    --note-edge: #6aa6ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Short pages keep the footer at the bottom of the window. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 72px); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--raised); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 24px;
  min-height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--link); font-weight: 600; }
.site-nav .button, .site-nav .button[aria-current="page"] { padding: 6px 14px; font-size: 14px; color: #fff; }

@media (max-width: 600px) {
  .site-header .wrap { padding-top: 8px; padding-bottom: 8px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 8px; font-size: 15px; }
}

/* Buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 17px; font-weight: 600; line-height: 1.2;
  background: var(--accent-gradient); color: #fff;
  border: 0; cursor: pointer;
}
.button:hover { text-decoration: none; filter: brightness(1.08); }
.button.secondary { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1.5px currentColor; }
.button.secondary:hover { filter: none; background: color-mix(in srgb, var(--link) 8%, transparent); }
.button.large { padding: 15px 30px; font-size: 19px; }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Hero */

.hero { text-align: center; padding: 64px 0 36px; }
.hero .app-icon { width: 128px; height: 128px; margin: 0 auto 18px; }
.hero .tagline {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.4vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
  margin: 6px 0 14px;
  background: var(--text-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .subhead { font-size: clamp(18px, 2.2vw, 22px); color: var(--ink-2); max-width: 720px; margin: 0 auto 28px; }
.hero .fineprint { font-size: 14px; color: var(--ink-2); margin: 18px 0 0; }

.nb { white-space: nowrap; }

.gradient-text { background: var(--text-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Screenshots: the app in its dark appearance, each on a stage — a quiet wash of slate with the
   icon's navy and a breath of its blue. The same in both appearances: on the white page it is a
   dark panel, and on the black one it keeps a dark window from losing its edges. */

.shot {
  margin: 0;
  padding: clamp(10px, 3vw, 28px);
  border-radius: 20px;
  background:
    radial-gradient(70% 60% at 12% 0%, rgba(58, 123, 213, 0.30), transparent 70%),
    radial-gradient(80% 70% at 100% 100%, rgba(10, 38, 71, 0.85), transparent 70%),
    linear-gradient(160deg, #1d2532 0%, #141a24 55%, #0d1119 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), var(--shadow);
}
/* The light edge and dark outline a Mac draws round a dark window, which a capture leaves out. */
.shot img {
  width: 100%; border-radius: 8px;
  background: #1e1e1e;
  outline: 1px solid rgba(255, 255, 255, 0.16);
  outline-offset: -1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 8px 24px rgba(0, 0, 0, 0.35), 0 30px 80px rgba(0, 0, 0, 0.5);
}
.shot figcaption { font-size: 14px; color: #a1a1a6; margin-top: 12px; text-align: center; }
.hero-shot { margin-top: 44px; padding: clamp(14px, 4.5vw, 56px); border-radius: 24px; }
.hero-shot img { border-radius: 10px; }

/* Sections */

section { padding: 72px 0; }
section.tight { padding-top: 40px; padding-bottom: 40px; }
.band { background: var(--panel); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head p { color: var(--ink-2); font-size: 19px; margin-top: 14px; }

.overview { text-align: center; }
.overview p { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.5; max-width: 820px; margin: 0 auto 18px; }
.overview p + p { color: var(--ink-2); }

/* Highlights */

.highlights {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--panel); border-radius: var(--radius);
  margin-top: 40px;
}
.highlights div { padding: 24px 22px; text-align: center; }
.highlights div + div { border-left: 1px solid var(--hairline); }
.highlights strong { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.01em; margin-bottom: 4px; }
.highlights span { color: var(--ink-2); font-size: 15px; }
.band .highlights { background: var(--raised); }

@media (max-width: 720px) {
  .highlights { grid-template-columns: 1fr; }
  .highlights div + div { border-left: 0; border-top: 1px solid var(--hairline); }
}

/* Spotlights: text beside a screenshot */

.spotlight { display: grid; gap: 32px; align-items: center; }
.spotlight + .spotlight { margin-top: 88px; }
.spotlight .eyebrow { font-size: 15px; font-weight: 600; color: var(--link); margin-bottom: 10px; }
.spotlight h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 16px; }
.spotlight p { color: var(--ink-2); font-size: 18px; }
.spotlight ul { color: var(--ink-2); font-size: 17px; padding-left: 1.2em; margin: 0; }
.spotlight li { margin-bottom: 6px; }
.spotlight li strong { color: var(--ink); font-weight: 600; }

@media (min-width: 900px) {
  .spotlight { grid-template-columns: 5fr 7fr; gap: 56px; }
  .spotlight.flip { grid-template-columns: 7fr 5fr; }
  .spotlight.flip .copy { order: 2; }
}

/* Feature grid */

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 36px 32px; }
.feature h3 { font-size: 18px; margin: 14px 0 6px; }
.feature p { color: var(--ink-2); font-size: 15.5px; line-height: 1.5; margin: 0; }
.tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-gradient); color: #fff;
}
.tile svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Call to action */

.cta { text-align: center; }
.cta img { width: 96px; height: 96px; margin: 0 auto 20px; }
.cta p { color: var(--ink-2); font-size: 19px; max-width: 620px; margin: 14px auto 28px; }

/* Content pages */

.page-head { padding: 56px 0 8px; }
.page-head p.lede { font-size: 21px; color: var(--ink-2); margin-top: 14px; max-width: 720px; }

.prose { padding-top: 32px; padding-bottom: 72px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 32px); margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 32px 0 10px; }
.prose ol, .prose ul { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--ink-2); }

.callout {
  background: var(--panel); border-left: 4px solid var(--note-edge);
  border-radius: 10px; padding: 14px 18px; margin: 20px 0;
  font-size: 16px;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { background: var(--warn-bg); border-left-color: var(--warn-edge); }

dl.defs { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 0; margin: 0 0 1.4em; border-top: 1px solid var(--hairline); }
dl.defs dt, dl.defs dd { padding: 14px 0; border-bottom: 1px solid var(--hairline); margin: 0; }
dl.defs dt { font-weight: 600; padding-right: 20px; }
dl.defs dd { color: var(--ink-2); }
dl.defs .optional { font-weight: 400; color: var(--ink-2); }
@media (max-width: 600px) {
  dl.defs { grid-template-columns: 1fr; }
  dl.defs dt { border-bottom: 0; padding-bottom: 2px; }
  dl.defs dd { padding-top: 0; }
}

kbd, code { font-family: var(--mono); font-size: 0.9em; background: var(--panel); border: 1px solid var(--hairline); border-radius: 5px; padding: 0.05em 0.35em; }

/* Download card */

.release {
  display: grid; gap: 24px; align-items: center;
  background: var(--panel); border-radius: 20px; padding: 32px;
  margin: 32px 0 8px;
}
.release img { width: 112px; height: 112px; }
.release h2 { font-size: 30px; margin: 0 0 4px; }
.release .version { color: var(--ink-2); margin: 0 0 18px; }
.release .agree { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; }
@media (min-width: 720px) {
  .release { grid-template-columns: auto 1fr; padding: 36px 40px; gap: 36px; }
}

.links-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 16px; font-size: 15px; }

/* Cards on the support page */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 32px 0 8px; }
.card { background: var(--panel); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 19px; margin: 14px 0 8px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card p:last-child { margin-bottom: 0; }

/* Licence */

.licence h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.licence .shout { font-size: 15px; letter-spacing: 0.01em; }
.licence .meta { color: var(--ink-2); }
.licence h2.title { font-size: 26px; margin-top: 0; }
/* Sub-clauses (2.1) and their lettered items ((a)): the number in a column, the text hanging. */
.licence p.sub, .licence p.item { display: grid; grid-template-columns: 2.8em 1fr; }
.licence p.item { margin-left: 2.8em; grid-template-columns: 2.2em 1fr; }
.licence .num { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Footer */

.site-footer { border-top: 1px solid var(--hairline); background: var(--panel); padding: 36px 0 44px; font-size: 14px; color: var(--ink-2); }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--ink); }
.site-footer p { margin: 0; }
.site-footer .legal { font-size: 13px; }

/* 404 */

.not-found { text-align: center; padding-top: 96px; padding-bottom: 96px; }
.not-found img { width: 96px; height: 96px; margin: 0 auto 24px; }
.not-found p { color: var(--ink-2); font-size: 19px; margin: 14px 0 28px; }
