/* Mockup for doglover95.com/apps. Colours and type follow the main site
   (src/index.css): black background, near-white text, 58% grey, 15% borders,
   no radius, light weights. */
:root {
  --bg: hsl(0 0% 0%);
  --fg: hsl(0 0% 98%);
  --muted: hsl(0 0% 58%);
  --border: hsl(0 0% 15%);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 300 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--muted); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Navigation, same as the main site */
nav { position: sticky; top: 0; background: var(--bg); z-index: 10; }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
nav .logo { font-style: italic; font-size: 14px; }
/* The links to the rest of the site are hidden unless the visitor came from there */
nav .links { display: none; font-size: 16px; }
.from-site nav .links { display: block; }
nav .links span { margin: 0 16px; color: hsl(0 0% 58% / .5); }
nav .links .here { color: var(--muted); }
/* Phone menu, as on the front page: "95", a menu button, and the links in a list below */
nav .logo .short, nav .menu, nav .panel { display: none; }
nav .menu { padding: 0; background: none; border: 0; color: var(--fg); cursor: pointer; line-height: 0; }
nav .menu .close, nav .menu[aria-expanded="true"] .open { display: none; }
nav .menu[aria-expanded="true"] .close { display: inline; }

/* Back to the apps list: a thin arrow that slides left on hover */
.back { display: inline-flex; align-items: center; gap: 10px; margin-top: 40px; font-size: 16px; color: var(--muted); }
.back:hover { color: var(--fg); }
.back svg { transition: transform .2s ease; }
.back:hover svg { transform: translateX(-4px); }

h1 { font-weight: 200; font-style: italic; letter-spacing: .06em; line-height: 1; font-size: clamp(44px, 9vw, 104px); }
h2 { font-weight: 300; letter-spacing: .025em; line-height: 1; font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 28px; }
/* The 95 in FreezeScript95 is set raised; in the HTML it is still one word, "FreezeScript95" */
sup { font-size: .7em; line-height: 0; vertical-align: baseline; position: relative; top: -.45em; letter-spacing: 0; margin-left: .06em; }
h1 sup { font-size: .5em; top: -.75em; }
p { color: var(--muted); }
section { padding: 72px 0; border-top: 1px solid var(--border); }

/* Product hero */
.hero { padding: 48px 0 72px; }
.hero .lead { font-size: clamp(16px, 1.6vw, 20px); max-width: 760px; margin: 28px 0 32px; }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.btn { display: inline-block; background: var(--fg); color: var(--bg); padding: 12px 28px; font-size: 16px; font-weight: 400; }
.btn:hover { color: var(--bg); }
.meta { font-size: 13px; color: var(--muted); }

/* The demo: one looping screen recording */
a.demo { display: block; margin-top: 56px; }
a.demo video { display: block; width: 100%; height: auto; border: 1px solid var(--border); background: #111; }

/* Rows, like the installations list on the main site */
.rows .row { display: grid; grid-template-columns: 2fr 3fr 110px; gap: 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.rows .row:first-child { border-top: 1px solid var(--border); }
.rows .name { font-size: 18px; }
.rows .what, .rows .side { color: var(--muted); }
.rows .side { text-align: right; white-space: nowrap; }
.rows.apps .side { font-size: 14px; line-height: 1.7; }
a.row:hover { color: inherit; }
.rows .soon .name { color: var(--muted); }

/* Screenshot of the Max for Live device in Live (package/device.png, 369 x 374 px) */
img.device { display: block; flex: none; height: auto; border: 1px solid var(--border); }

/* The apps list: device image, then name and description beside it */
.rows.apps .row { display: block; padding: 28px 0; }
.rows.apps .item { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.rows.apps .grow { display: flex; align-items: center; gap: 32px; }
.rows.apps .about { display: flex; flex-direction: column; gap: 8px; }
.rows.apps .name { font-size: 26px; line-height: 1.2; }
.rows.apps .reqs { display: none; }

/* The device with a line from each button to what it does, as in the install guide.
   The buttons sit at 54.5 %, 69.5 % and 84.5 % of the screenshot's height. */
.fig { --w: 190px; position: relative; height: calc(var(--w) * 374 / 369); }
.fig .shot { position: absolute; left: 0; top: 0; display: block; }
.fig img { width: var(--w); }
/* One hotspot over each button in the screenshot (measured: 28-339 px of 369 across,
   44 px tall from 182, 238 and 294 px of 374). Hovering a button, or its line of
   text, lightens the button and brightens the text. */
.fig .shot i { position: absolute; left: 7.6%; width: 84.5%; height: 11.76%; transition: background-color .12s; }
.fig .shot i:nth-of-type(1) { top: 48.66%; }
.fig .shot i:nth-of-type(2) { top: 63.64%; }
.fig .shot i:nth-of-type(3) { top: 78.61%; }
.fig li, .fig li::before { transition: color .12s, background-color .12s; }
.fig:has(.shot i:nth-of-type(1):hover, li:nth-child(1):hover) :is(.shot i:nth-of-type(1)),
.fig:has(.shot i:nth-of-type(2):hover, li:nth-child(2):hover) :is(.shot i:nth-of-type(2)),
.fig:has(.shot i:nth-of-type(3):hover, li:nth-child(3):hover) :is(.shot i:nth-of-type(3)) { background-color: rgb(255 255 255 / .22); }
.fig:has(.shot i:nth-of-type(1):hover, li:nth-child(1):hover) li:nth-child(1),
.fig:has(.shot i:nth-of-type(2):hover, li:nth-child(2):hover) li:nth-child(2),
.fig:has(.shot i:nth-of-type(3):hover, li:nth-child(3):hover) li:nth-child(3) { color: var(--fg); }
.fig:has(.shot i:nth-of-type(1):hover, li:nth-child(1):hover) li:nth-child(1)::before,
.fig:has(.shot i:nth-of-type(2):hover, li:nth-child(2):hover) li:nth-child(2)::before,
.fig:has(.shot i:nth-of-type(3):hover, li:nth-child(3):hover) li:nth-child(3)::before { background-color: var(--fg); }
.fig ul { list-style: none; }
.fig li { position: absolute; left: calc(var(--w) * .92); display: flex; align-items: center; gap: 16px; transform: translateY(-50%); color: var(--muted); white-space: nowrap; }
.fig li::before { content: ""; width: 68px; height: 1px; background: hsl(0 0% 30%); }
.fig li:nth-child(1) { top: 54.5%; }
.fig li:nth-child(2) { top: 69.5%; }
.fig li:nth-child(3) { top: 84.5%; }
.fig li strong { display: none; }
.notes { margin-top: 20px; font-size: 14px; line-height: 1.7; color: hsl(0 0% 45%); }
.req { color: var(--fg); }
.req span { margin-left: 16px; font-size: 14px; color: hsl(0 0% 45%); }

/* The closing section: the one thing to do after reading */
.cta { padding: 128px 0 136px; text-align: center; }
/* The device as a link, with the album covers' hover: a light sweeps across.
   (The image and the buy buttons also grow near the pointer; see the page's script.) */
.art { display: block; position: relative; overflow: hidden; width: max-content; margin: 0 auto 48px; }
.art::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(to right, transparent, rgb(255 255 255 / .4), transparent); transform: translateX(-200%) skewX(-12deg); opacity: 0; pointer-events: none; }
/* In the apps list the image behaves like an album cover: it grows near the pointer
   (see the page's script) and the light sweeps across when it is hovered */
.rows.apps .art { flex: none; margin: 0; }
.art:hover::after { transform: translateX(350%) skewX(-12deg); opacity: 1; transition: transform .5s ease-out, opacity .2s; }
.btn.big { padding: 22px 64px; font-size: 22px; }
.cta .meta { margin-top: 28px; }

/* The bug report form: plain fields with a thin line under them */
.report { max-width: 640px; padding-bottom: 96px; }
.report label { display: block; margin-bottom: 28px; font-size: 14px; color: var(--muted); }
.report label span { margin-left: 8px; color: hsl(0 0% 40%); }
.report input, .report textarea, .report select { display: block; width: 100%; margin-top: 8px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid hsl(0 0% 30%); border-radius: 0; color: var(--fg); font: inherit; font-size: 16px; outline: none; appearance: none; }
.report textarea { resize: vertical; line-height: 1.5; }
/* A thin chevron marks the dropdowns */
.report select, .pick button { padding-right: 28px; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23949494' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 18px; }
.report option { background: #111; color: var(--fg); }
/* The dropdown drawn by the page (see the script): the chosen value, and a list under it */
.report select[hidden] { display: none; }
.pick { position: relative; }
.pick button { display: block; width: 100%; margin: 8px 0 0; padding: 10px 28px 10px 0; border: 0; border-bottom: 1px solid hsl(0 0% 30%); color: var(--fg); font: inherit; font-size: 16px; text-align: left; outline: none; }
.pick button:focus, .pick.open button { border-bottom-color: var(--fg); }
.pick ul { position: absolute; z-index: 5; left: 0; right: 0; top: 100%; margin-top: -1px; list-style: none; background: var(--bg); border: 1px solid hsl(0 0% 30%); border-top-color: var(--fg); }
.pick li { padding: 10px 12px; font-size: 16px; color: var(--muted); cursor: pointer; }
.pick li:hover { color: var(--fg); background: hsl(0 0% 8%); }
.pick li.on { color: var(--fg); }
.report input:focus, .report textarea:focus, .report select:focus { border-bottom-color: var(--fg); }
.report ::placeholder { color: hsl(0 0% 30%); }
.report .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.report .trap { position: absolute; left: -9999px; }
.report .notes { margin: -16px 0 28px; }
.report button.btn { margin-top: 8px; }
.report button.btn { border: 0; cursor: pointer; font-family: inherit; }
.report button:disabled { opacity: .5; cursor: default; }
.report .status { margin-top: 16px; min-height: 1.6em; font-size: 14px; color: var(--fg); }

footer { border-top: 1px solid var(--border); padding: 32px 0 48px; text-align: center; font-size: 13px; color: hsl(0 0% 58% / .6); }
footer a { color: var(--muted); }

.page-head { padding: 48px 0 56px; }
.page-head p { max-width: 560px; margin-top: 24px; }

@media (max-width: 767px) {
  nav .links, .from-site nav .links, nav .logo .full { display: none; }
  nav .logo .short { display: inline; font-size: 18px; }
  .from-site nav .menu { display: block; }
  nav .panel:not([hidden]) { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; padding: 16px 24px; border-top: 1px solid hsl(0 0% 15% / .3); }
  nav .panel .here { color: var(--muted); }
  section { padding: 48px 0; }
  .report .pair { grid-template-columns: 1fr; gap: 0; }
  /* On a phone the big title must fit a 320 px screen */
  h1 { font-size: min(44px, 11.5vw); }
  /* A separator that becomes a line break, so no line starts or ends with a dot */
  .dot { display: block; height: 0; overflow: hidden; }
  .rows.apps .reqs { display: block; font-size: 12px; line-height: 1.6; color: hsl(0 0% 45%); }
  .hero .buy { flex-direction: column; align-items: stretch; gap: 16px; }
  .hero .btn { text-align: center; padding: 16px; }
  .cta { padding: 80px 0 88px; }
  .btn.big { display: block; padding: 20px 16px; font-size: 19px; }
  .fig { height: auto; }
  .fig .shot { position: relative; width: max-content; }
  .fig ul { margin-top: 20px; }
  .fig li { position: static; transform: none; white-space: normal; padding: 6px 0; gap: 0; }
  .fig li::before { display: none; }
  .fig li strong { display: inline-block; width: 72px; flex: none; color: var(--fg); font-weight: 300; }
  .req span:not(.dot) { display: block; margin: 4px 0 0; }
  .rows .row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .rows .name { font-size: 15px; }
  .rows .what { grid-column: 1 / -1; grid-row: 2; font-size: 13px; }
  .rows.apps .grow { gap: 20px; }
  .rows.apps .name { font-size: 20px; }
  .rows.apps .side { display: none; }
  img.device.small { width: 110px; }
  .rows .side { font-size: 13px; }
}
