/* magnifiquelauncher.com: the look of mockup D (website spec, "The look"). */

@font-face { font-family: "Archivo Black"; font-display: swap; src: url("/fonts/archivo_black.ttf") format("truetype"); }
@font-face { font-family: "Manrope"; font-display: swap; src: url("/fonts/manrope.ttf") format("truetype"); font-weight: 200 800; }
* { box-sizing: border-box; }
html, body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
/* The Mac and Android pages' switcher, under the download or join box. Mac windows keep their frame and a shadow. */
.page-gallery { margin: 12px 0 0; max-width: 1000px; }
.page-gallery:not(.bezel) .gallery-item img { box-shadow: var(--shadow); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; }
.tbl td.c, .tbl th.c { text-align: center; }

/* Mockup D's colours, background and buttons, shared by the page and its option sheets. */
:root, [data-theme="light"] {
  /* Mist */
  --bg: #eef0f3; --bg-from: #f7f8fa; --bg-to: #e3e6eb;
  --surface: #ffffff; --line: #d9dde4; --ink: #1c1e24; --muted: #5a5f6a;
  --heading: #2e2366;
  --purple: #6a3df0; --purple-hover: #5b2fe0; --purple-press: #4c24c4; --on-purple: #ffffff;
  --gold: #f2a63a; --on-gold: #2b1d04;
  --gold-wash: #fff6e6; --gold-wash-press: #fdeccc; --gold-line: #e2b871;
  --off: #e1e4e9; --off-ink: #868b95;
  --focus: #6a3df0;
  --frame: #15161a; --shadow: 0 24px 60px rgba(20, 24, 34, .16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* Charcoal */
    --bg: #1f1e1c; --bg-from: #2a2825; --bg-to: #191816;
    --surface: rgba(255, 255, 255, .05); --line: rgba(255, 255, 255, .1); --ink: #eeece8; --muted: #a8a49d;
    --heading: #ddd5ff;
    --purple: #b9a7ff; --purple-hover: #cbbdff; --purple-press: #a38df3; --on-purple: #1a1430;
    --gold: #ffb547; --on-gold: #2b1d04;
    --gold-wash: rgba(255, 181, 71, .08); --gold-wash-press: rgba(255, 181, 71, .15); --gold-line: rgba(255, 181, 71, .42);
    --off: rgba(255, 255, 255, .06); --off-ink: #7c7872;
    --focus: #b9a7ff;
    --frame: #121110; --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  }
}
[data-theme="dark"] {
  --bg: #1f1e1c; --bg-from: #2a2825; --bg-to: #191816;
  --surface: rgba(255, 255, 255, .05); --line: rgba(255, 255, 255, .1); --ink: #eeece8; --muted: #a8a49d;
  --heading: #ddd5ff;
  --purple: #b9a7ff; --purple-hover: #cbbdff; --purple-press: #a38df3; --on-purple: #1a1430;
  --gold: #ffb547; --on-gold: #2b1d04;
  --gold-wash: rgba(255, 181, 71, .08); --gold-wash-press: rgba(255, 181, 71, .15); --gold-line: rgba(255, 181, 71, .42);
  --off: rgba(255, 255, 255, .06); --off-ink: #7c7872;
  --focus: #b9a7ff;
  --frame: #121110; --shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 Manrope, system-ui, sans-serif; }
/* The fade is fixed to the window so it shows on every screen, not stretched over the whole page. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1;
               background: linear-gradient(155deg, var(--bg-from), var(--bg) 45%, var(--bg-to)); }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* Download buttons: a face-button letter, then what the button does. One focus colour everywhere: the app's purple. */
.prompt { display: inline-flex; align-items: center; gap: 12px; padding: 10px 24px 10px 10px; border-radius: 999px;
          border: 1px solid transparent; text-decoration: none; font-weight: 800; text-align: left; line-height: 1.3;
          transition: background-color .12s, border-color .12s, transform .08s; }
.prompt small { display: block; font-weight: 600; font-size: 13px; opacity: .9; }
.prompt .k { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
             font: 800 17px/1 Manrope, sans-serif; transition: transform .08s, box-shadow .08s; }
.prompt.mac { background: var(--purple); color: var(--on-purple); }
.prompt.mac .k { background: var(--on-purple); color: var(--purple); }
.prompt.droid { background: var(--surface); color: var(--ink); border-color: var(--line); }
.prompt.droid .k { background: var(--gold); color: var(--on-gold); }

.prompt.mac:not([aria-disabled="true"]):is(:hover, :focus-visible), .prompt.mac:is(.is-hover, .is-focus) { background: var(--purple-hover); }
.prompt.droid:not([aria-disabled="true"]):is(:hover, :focus-visible), .prompt.droid:is(.is-hover, .is-focus) { background: var(--gold-wash); border-color: var(--gold-line); }
/* Pressed: the button sinks a pixel and its letter presses in, like a face button. */
.prompt:not([aria-disabled="true"]):active, .prompt.is-press { transform: translateY(1px); }
.prompt.mac:not([aria-disabled="true"]):active, .prompt.mac.is-press { background: var(--purple-press); }
.prompt.droid:not([aria-disabled="true"]):active, .prompt.droid.is-press { background: var(--gold-wash-press); border-color: var(--gold-line); }
.prompt:not([aria-disabled="true"]):active .k, .prompt.is-press .k { transform: scale(.9); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .35); }
.prompt:focus-visible, .prompt.is-focus { outline: 3px solid var(--focus); outline-offset: 3px; }
/* Unavailable (e.g. the beta is full): flat grey, an outlined letter, no hover or press. */
/* Its words stay readable (--muted, 4.9:1 or more); only the letter goes grey. */
.prompt[aria-disabled="true"] { background: var(--off); border-color: transparent; color: var(--muted); cursor: not-allowed; }
.prompt[aria-disabled="true"] small { opacity: 1; }
.prompt[aria-disabled="true"]:focus-visible { background: var(--off); }
.prompt[aria-disabled="true"] .k { background: transparent; color: var(--off-ink); box-shadow: inset 0 0 0 2px var(--off-ink); }

/* Links in the top bar and footer. The current page is underlined in the focus purple. */
.navlink { display: inline-block; padding-block: 8px; color: var(--muted); text-decoration: none; text-decoration-thickness: 2px;
           text-underline-offset: 6px; border-radius: 4px; transition: color .12s; }
.navlink:is(:hover, :focus-visible), .navlink:is(.is-hover, .is-focus) { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--muted); }
.navlink[aria-current="page"] { color: var(--ink); text-decoration-line: underline; text-decoration-color: var(--purple); }
.navlink:focus-visible, .navlink.is-focus { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .prompt, .prompt .k, .navlink { transition: none; }
  .prompt:active, .prompt.is-press, .prompt:active .k, .prompt.is-press .k { transform: none; }
}

/* Skip link: hidden until reached with Tab, then shown at the top left. */
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 10px;
        background: var(--ink); color: var(--bg); font-weight: 800; text-decoration: none; }
.skip:focus-visible { top: 12px; }
/* Text for screen readers only (e.g. "Yes" beside a ✓). */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The name, the only text set in Archivo Black (as in the app). Solid violet: the icon above it carries the purple and gold. */
.wordmark { color: var(--heading); }

/* Page layout */

.bar .wrap { display: flex; justify-content: flex-end; padding-block: 12px; }
nav { display: flex; gap: 0 28px; font-weight: 600; font-size: 15px; color: var(--muted); }

/* The icon and the name are the first thing on the page, as on the app's welcome screen. */
.hero .wrap { text-align: center; padding-block: 28px 0; }
.appicon { width: 128px; height: 128px; border-radius: 30px; margin: 0 auto 22px; box-shadow: var(--shadow); }
h1 { font: 92px/0.95 "Archivo Black", sans-serif; letter-spacing: -.035em; margin: 0 0 20px; color: var(--heading); text-wrap: balance; }
.lede { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 auto 32px; }

.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.fine { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* The dark bezel round a framed picture (our own frame, not a drawn device): a spread shadow, so the picture keeps its
   rounded corners inside it. */
.bezel .gallery-item img, .bezel > img, .bezel > picture > img {
  width: calc(100% - 36px); margin: 18px; border-radius: 14px; box-shadow: 0 0 0 18px var(--frame), var(--shadow); }
.hero-gallery { margin: 36px auto 0; max-width: 1000px; }

/* Galleries (src/js/gallery.js). Without the script every picture shows stacked under its caption; with it, one at a
   time, picked by thumbnails, words or colour swatches. Nothing changes by itself. */
.gallery-items { display: grid; gap: 32px; }
/* The controls come first for screen readers (tabs, then the picture) and show under the picture. */
.gallery.is-tabs { display: flex; flex-direction: column; }
.gallery.is-tabs .gallery-controls { order: 2; }
.gallery.is-tabs .gallery-items { display: block; }
.gallery-item { margin: 0; border-radius: 14px; }
.gallery-item[hidden] { display: none; }
.gallery-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.gallery-item img { border-radius: 14px; }
/* Two lines kept for every caption, so a switcher's controls never move when a caption wraps. */
.gallery-item figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; min-height: 3em; color: var(--muted); text-align: center; }
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.gallery-controls[hidden] { display: none; }
.gallery-control { min-width: 44px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 12px;
                   background: var(--surface); color: var(--ink); font: 600 15px/1.2 Manrope, sans-serif; cursor: pointer;
                   transition: border-color .12s; }
.gallery-control:hover { border-color: var(--muted); }
/* The chosen one: a ring and heavier words, never colour alone. */
.gallery-control[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 800; }
.gallery-control:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.gallery-thumbs .gallery-control { width: 112px; padding: 4px; }
.gallery-thumbs .gallery-control img { display: block; width: 100%; border-radius: 8px; }
.swatch { display: inline-block; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%; vertical-align: -3px;
          background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3); }
@media (prefers-reduced-motion: no-preference) {
  .gallery.is-tabs .gallery-item:not([hidden]) { animation: gallery-in .15s ease-out; }
}
@keyframes gallery-in { from { opacity: .4; } to { opacity: 1; } }

/* The platforms strip: swipe, scroll or use the arrow keys; the next one peeks in. */
.strip { overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: 8px; border-radius: 12px; }
.strip:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.strip-list { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.strip-item { flex: 0 0 240px; scroll-snap-align: start; }
.strip-item figure { margin: 0; }
.strip-item img { border-radius: 12px; }
.strip-item figcaption { margin-top: 8px; font-weight: 700; font-size: 15px; }
.strip-nav { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 12px; }
.strip-nav button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface);
                    color: var(--ink); font: 800 22px/1 Manrope, sans-serif; cursor: pointer; }
.strip-nav button:hover:not([aria-disabled="true"]) { border-color: var(--muted); }
.strip-nav button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.strip-nav button[aria-disabled="true"] { opacity: .4; cursor: default; }
.strip-more { margin: 14px 0 0; color: var(--muted); font-size: 15px; max-width: 46em; }

section.band { padding-block: 76px; }
section.band + section.band { border-top: 1px solid var(--line); }
h2 { font: 800 40px/1.12 Manrope, sans-serif; letter-spacing: -.025em; margin: 0 0 12px; color: var(--heading); text-wrap: balance; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

/* A real sequence, so it's numbered. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li::before { counter-increment: s; content: counter(s); display: block; font: 800 40px/1 Manrope, sans-serif;
                    color: var(--muted); margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; } .steps p { margin: 0; color: var(--muted); }

.two { display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; align-items: center; }
.two img { border-radius: 14px; box-shadow: var(--shadow); }
/* Feature bands: a picture and one short claim, alternating sides on wide screens; the words come first on phones. */
.feature.flip { grid-template-columns: 1fr 1.15fr; }
.feature.flip .feature-pic { order: 2; }
.feature-text h2 { margin-bottom: 14px; }
.feature-text p { margin: 0 0 14px; font-size: 18px; max-width: 30em; }
.also { columns: 2 320px; column-gap: 48px; margin: 0; padding-left: 1.2em; font-size: 17px; }
.also li { margin: 0 0 10px; break-inside: avoid; }
.closing { text-align: center; }
.closing .sub { margin-inline: auto; }


/* The wrapper scrolls sideways if a long table ever outgrows a phone, instead of widening the page. */
/* Positioned, so the screen-reader words (.vh, absolute) inside scroll with the table instead of widening the page. */
.tbl-wrap { position: relative; max-width: 760px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.tbl thead small { display: block; font-weight: 600; font-size: 12.5px; }
.tbl thead th { color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--line); }
.tbl td, .tbl tbody th { border-bottom: 1px solid var(--line); } .tbl tbody th { font-weight: 600; }
.tbl tr:last-child td, .tbl tr:last-child th { border-bottom: 0; }
.yes { font-weight: 800; } .no, .later { color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 34px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.flinks { display: flex; gap: 0 22px; flex-wrap: wrap; font-size: 14px; }

@media (max-width: 760px) {
  nav { gap: 18px; font-size: 14px; } .bar .wrap { justify-content: center; padding-block: 6px; }
  .appicon { width: 96px; height: 96px; border-radius: 23px; }
  /* Fits a 320 px screen even with WCAG text spacing (1.4.10, 1.4.12). */
  h1 { font-size: clamp(36px, 11.5vw, 54px); } .lede { font-size: 18px; }
  .ctas { flex-direction: column; align-items: stretch; } .prompt { padding-right: 18px; }
  .hero-gallery { margin-top: 28px; }
  .bezel .gallery-item img, .bezel > img, .bezel > picture > img {
    width: calc(100% - 18px); margin: 9px; border-radius: 9px; box-shadow: 0 0 0 9px var(--frame), var(--shadow); }
  .gallery-controls { gap: 8px; }
  .gallery-thumbs .gallery-control { width: 56px; padding: 3px; }
  .strip-item { flex-basis: 75%; }
  section.band { padding-block: 56px; } h2 { font-size: 31px; }
  .steps, .two, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature .feature-text { order: -1; } .feature.flip .feature-pic { order: 0; }
  .tbl th, .tbl td { padding: 10px 8px; }
}

/* The top bar: the name links home on every page but Home, whose large icon and name sit just below. */
.bar .wrap { justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding-block: 6px; text-decoration: none; border-radius: 8px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font: 21px/1 "Archivo Black", sans-serif; letter-spacing: -.02em; color: var(--heading); }
.page-index .brand { visibility: hidden; }
.page-index .bar .wrap { justify-content: flex-end; }

/* Inner pages: a title and a short introduction, then the content in readable columns. */
.page-head { padding-block: 40px 8px; }
.page-head h1 { font: 800 48px/1.08 Manrope, sans-serif; letter-spacing: -.03em; margin: 0 0 12px; color: var(--heading); text-wrap: balance; }
.page-head .lede { margin: 0; text-align: left; max-width: 38em; }
/* Inner pages' sections sit inside .wrap (Home's wrap themselves): tighter than Home's bands, dividers full width. */
.wrap > .band { padding-block: 44px; }
.page-head + .band { padding-top: 20px; }
.prose > * { max-width: 42em; }
.prose > h2:first-child { margin-top: 0; }
.prose h2 { font-size: 30px; margin: 40px 0 10px; }
.prose h3 { font-size: 19px; font-weight: 800; margin: 26px 0 6px; }
.prose p, .prose li { color: var(--ink); }
.prose a { color: var(--heading); text-underline-offset: 3px; }
/* Hostnames, the support address and a checksum break rather than widen a phone's page. */
.prose, .facts dd { overflow-wrap: anywhere; }
.preview-more { margin: 18px 0 0; }
@media (max-width: 760px) {
  .page-head { padding-block: 24px 0; } .page-head h1 { font-size: 36px; }
  .wrap > .band { padding-block: 32px; }
  .page-index .brand { display: none; }
  .bar .wrap { justify-content: center; }
}

/* The Emulators page */
.legend { display: grid; gap: 4px; margin: 0 0 22px; padding: 0; list-style: none; color: var(--muted); }
.legend span[aria-hidden] { display: inline-block; width: 1.4em; font-weight: 800; color: var(--ink); }
.tbl-full { max-width: none; }
.tbl tbody th { text-align: left; vertical-align: top; }
.tbl .builds { display: block; font-weight: 500; font-size: 13px; color: var(--muted); margin-top: 2px; }
.tbl td.systems { color: var(--muted); font-size: 14px; min-width: 10em; }
.tbl td.systems summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.tbl td.systems details p { margin: 6px 0 0; }
.stamp { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.tbl .sys-inline { display: none; }
@media (max-width: 760px) {
  .tbl .col-systems, .tbl td.systems { display: none; }
  .tbl .sys-inline { display: block; margin-top: 4px; font-weight: 500; font-size: 13px; color: var(--muted); }
  .tbl .sys-inline summary { color: var(--ink); font-weight: 600; cursor: pointer; }
  .tbl-full .tbl th, .tbl-full .tbl td { padding-inline: 8px; }
}
@media (max-width: 400px) {
  /* Every Windows cell says "not yet" and the legend says so: on a phone the column gives its room to the names. */
  .tbl-full .col-win, .tbl-full td.later { display: none; }
  /* 16 px side margins and narrow mark columns: the emulator tables fit a 320 px screen without scrolling. */
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .tbl { font-size: 14px; }
  .tbl th, .tbl td, .tbl-full .tbl th, .tbl-full .tbl td { padding-inline: 6px; }
  .tbl th.c, .tbl td.c, .tbl-full .tbl th.c, .tbl-full .tbl td.c { padding-inline: 4px; }
}

/* Download and join pages */
.download { margin: 8px 0 0; padding: 26px 26px 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); max-width: 46em; }
.download .prompt { margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 10px; }
.facts dt { color: var(--muted); font-weight: 600; } .facts dd { margin: 0; }
.facts code, .fine code { font-size: 13px; word-break: break-all; }
.steps-list { padding-left: 1.3em; } .steps-list li { margin: 0 0 10px; padding-left: 4px; }
@media (max-width: 760px) { .download { padding: 20px 18px 16px; } .facts { grid-template-columns: 1fr; gap: 0 0; } .facts dd { margin-bottom: 8px; } }

/* Credits */
.credit-section { padding-block: 28px 8px; border-top: 1px solid var(--line); }
.credit-section:first-of-type { border-top: 0; padding-top: 0; }
.credit-section h2 { font-size: 26px; margin: 0 0 6px; }
.credit { max-width: 46em; padding-block: 12px; }
.credit h3 { font-size: 18px; font-weight: 800; margin: 0 0 2px; }
.credit-meta, .credit-files { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
.credit-intro p { margin: 0 0 8px; }
.credit-files a, .credit-intro a { color: var(--heading); }
/* Changelog */
.release h2 { margin-bottom: 4px; }
.release .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 10px; }
