/* Ultimate Media Player support site — palette taken from the app's design tokens
   (Accent.primary #C65F3F, warm cream surfaces). No external fonts or scripts:
   a privacy page that phones home to a CDN would be a poor look. */

:root {
  --accent: #b4502f;
  --accent-bright: #c65f3f;
  --bg: #efe9df;
  --bg-tint: #f6f0e6;
  --surface: #fffbf6;
  --outline: #e0d6c7;
  --text: #241f1b;
  --text-dim: #6b6058;
  --radius: 14px;
  --maxw: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #d8935a;
    --accent-bright: #e0a978;
    --bg: #16130f;
    --bg-tint: #1c1815;
    --surface: #221d19;
    --outline: #362e27;
    --text: #f2ece4;
    --text-dim: #a89d92;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* Header */

header.site {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--outline);
  padding: 2.75rem 0 2rem;
}

header.site h1 {
  font-family: Iowan Old Style, Palatino, "Palatino Linotype", Georgia, serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 0.4rem;
  letter-spacing: -0.01em;
}

header.site p.tagline { margin: 0; color: var(--text-dim); font-size: 1.05rem; }

nav.site { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }

nav.site a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--outline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

nav.site a:hover { border-color: var(--accent); color: var(--accent); }
nav.site a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Content */

main { padding: 2.5rem 0 1rem; }

h2 {
  font-family: Iowan Old Style, Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.005em;
}

h2:first-child { margin-top: 0; }

h3 { font-size: 1.08rem; margin: 1.75rem 0 0.4rem; }

p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.35rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--accent); }
a:hover { color: var(--accent-bright); }

code {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  font-size: 0.88em;
}

.card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1rem;
}

.card h3 { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.lede {
  font-size: 1.1rem;
  color: var(--text-dim);
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 2rem; }

/* Summary table on the privacy page */

table { border-collapse: collapse; width: 100%; margin: 0 0 1.5rem; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--outline); vertical-align: top; }
th { font-weight: 600; }
thead th { border-bottom-width: 2px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.yes { color: #4e9a5b; font-weight: 600; }
.no { color: var(--accent-bright); font-weight: 600; }

/* Illustrated guide — screenshots and numbered steps.
   The guide runs wider than the text pages: a phone screenshot beside its instructions needs more than
   46rem, and iPad shots are wider still. Everything below is scoped to .guide so the text-only pages keep
   their original measure. */

.guide { max-width: 62rem; }

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: 1.5rem 2rem;
  /* Centred, not top-aligned: a phone screenshot is far taller than three lines of instructions, and
     top-aligning left a tall void under every short step. */
  align-items: center;
  margin: 0 0 2.5rem;
}

/* Wide shots (iPad, the landscape player) get the full column instead of a narrow phone slot. */
.step.wide { grid-template-columns: minmax(0, 1fr); }
.step.wide .shot { max-width: 100%; }

.step > .body > :first-child { margin-top: 0; }
.step > .body > :last-child { margin-bottom: 0; }

figure.shot { margin: 0; }

figure.shot img {
  display: block;
  /* Capped so a portrait phone screenshot can't run to 520px and stretch the page — it scales down and
     centres in its column instead. Landscape shots are well under the cap and are unaffected. */
  width: auto;
  max-width: 100%;
  max-height: 30rem;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--outline);
  /* Screenshots are photographs of a UI, not diagrams — a little lift stops them sitting flat on the page. */
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.10);
  background: var(--surface);
}

figure.shot figcaption {
  margin-top: 0.5rem;
  color: var(--text-dim);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* A row of two or three shots that belong together (e.g. before / after). */
.shot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.25rem;
  margin: 0 0 2rem;
}

/* Numbered step badge, so a long setup flow stays countable. */
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem; height: 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: 0.5rem;
  flex: none;
}

.step h3 { display: flex; align-items: center; margin-top: 0; }

/* Callout for the things support tickets are actually about. */
.note {
  border-left: 3px solid var(--accent);
  background: var(--bg-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.25rem;
}
.note > :first-child { margin-top: 0; }
.note > :last-child { margin-bottom: 0; }
.note strong { color: var(--accent); }

/* On a phone the two-column step collapses; the screenshot goes first so you see it before the words. */
@media (max-width: 46rem) {
  .step { grid-template-columns: minmax(0, 1fr); }
  figure.shot { max-width: 20rem; margin: 0 auto; }
}

/* Footer */

footer.site {
  border-top: 1px solid var(--outline);
  margin-top: 3.5rem;
  padding: 2rem 0 3rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}

footer.site a { color: var(--text-dim); }
footer.site a:hover { color: var(--accent); }
footer.site p { margin: 0 0 0.4rem; }

/* Guide index — three device sections, so a reader can jump straight to their hardware. */
.card.toc p { margin-bottom: 0.6rem; }
.card.toc p:last-child { margin-bottom: 0; }
.card.toc a { font-weight: 600; }

/* Anchored headings shouldn't hide under nothing — give jump targets a little breathing room. */
h2[id] { scroll-margin-top: 1rem; }
