/* OnlyM Remote website. One stylesheet, no scripts, nothing loaded from elsewhere. */

:root {
  color-scheme: light dark;

  --bg: #F7F5FA;
  --surface: #FFFFFF;
  --tint: #EEE9F5;
  --ink: #1C1924;
  --muted: #5A5468;
  --line: #E2DCEB;
  --accent: #684F90;
  --bezel: #0D0B11;

  --stage-top: #927CB7;
  --stage-mid: #684F90;
  --stage-bottom: #563A7E;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 20px;
  --page: 1080px;
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121016;
    --surface: #1A1721;
    --tint: #221D2D;
    --ink: #EEEAF4;
    --muted: #A8A1B8;
    --line: #2D2838;
    --accent: #A993D0;
    --bezel: #08070B;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.125rem, 1.4rem + 3.4vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.032em;
  line-height: 1.06;
}

h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.875rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

p,
ul,
ol {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 2;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  top: 0.75rem;
}

/* A heading for screen readers and outlines only */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The small uppercase label is the app's own: "NOW PLAYING", "ON SCREEN". */
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: pretty;
}

.muted {
  color: var(--muted);
}

/* Header (Support and Privacy) */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.012em;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--tint);
  color: var(--ink);
}

/* Device frames: a plain bezel, no shadow. Radii follow the 1206 x 2622 screen. */

.phone {
  background: var(--bezel);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 2.4%;
  border-radius: 14.5% / 6.75%;
}

.phone img {
  width: 100%;
  border-radius: 12.4% / 5.72%;
}

.phone--landscape {
  padding: 1.1%;
  border-radius: 6.75% / 14.5%;
}

.phone--landscape img {
  border-radius: 5.72% / 12.4%;
}

/* Home: one short page */

.intro {
  display: grid;
  gap: 16px;
  justify-items: center;
  max-width: 44rem;
  margin-inline: auto;
  padding-block: 36px 32px;
  text-align: center;
}

.intro__mark {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.intro__icon {
  width: 76px;
  height: 76px;
}

.intro__name {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

/* Apple's and Google's badges at one height. Their artwork is never recolored. */

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  padding: 0;
  list-style: none;
}

.badges a {
  display: block;
  border-radius: 8px;
}

.badges img {
  width: auto;
  height: 48px;
}

.platforms {
  font-size: 0.9375rem;
  color: var(--muted);
  text-wrap: balance;
}

/* The stage: the icon's own gradient, with three iPhones at true scale. The captions tell the
   story: pick an item, watch it play, step through it. The stage looks the same in both modes. */

.stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  padding: 26px 16px 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--stage-top) 0%, var(--stage-mid) 50%, var(--stage-bottom) 100%);
  color: #FFFFFF;
}

/* Each upright shot spans two stage rows (device, caption) through subgrid, so both stand on the
   same floor and both captions start on the same line, however many lines they wrap to. */
.shot {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: 14px;
  margin: 0;
}

.shot .phone {
  align-self: end;
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
}

.shot--landscape {
  grid-column: 1 / -1;
  margin-top: 28px;
}

.shot--landscape .phone {
  max-width: 478px;
}

.shot figcaption {
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  color: rgba(255, 255, 255, 0.86);
}

.shot figcaption strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #FFFFFF;
}

.features {
  margin-top: 36px;
}

.points {
  display: grid;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.points li {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.points strong {
  font-weight: 650;
  letter-spacing: -0.012em;
}

.points span {
  color: var(--muted);
}

/* What you need, and where it runs: one quiet tinted panel */

.basics {
  display: grid;
  gap: 24px;
  margin-top: 36px;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--tint);
}

.basics h2 {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

/* Both columns are the same quiet list: a name, then one muted line */
.rows {
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.rows li {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.rows li:last-child {
  border-bottom: 0;
}

.rows strong {
  font-weight: 650;
}

.rows span {
  color: var(--muted);
}

.basics__help {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-wrap: pretty;
}

/* Support and Privacy */

.doc-head {
  display: grid;
  gap: 14px;
  max-width: 44rem;
  padding-block: 28px 32px;
}

.doc-head h1 {
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--accent);
}

.section {
  padding-block: 40px;
  border-top: 1px solid var(--line);
}

.doc {
  max-width: 44rem;
}

.doc h2 {
  margin-bottom: 14px;
}

.doc * + h2 {
  margin-top: 40px;
}

.doc h3 {
  margin: 28px 0 6px;
}

.doc p + p,
.doc p + ul,
.doc ul + p,
.doc ol + p {
  margin-top: 12px;
}

.doc ul:not(.checks):not(.steps) {
  display: grid;
  gap: 8px;
  padding-left: 1.25rem;
}

.doc li::marker {
  color: var(--accent);
}

.summary {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--tint);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* Numbered steps (Support): a violet ring per step, joined by a thin line */

.steps {
  display: grid;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 0 0 28px 52px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 16.5px;
  top: 36px;
  bottom: 2px;
  width: 1px;
  background: var(--line);
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li:last-child::after {
  display: none;
}

.doc .steps h3 {
  margin: 0;
}

.steps p {
  color: var(--muted);
}

.doc .steps p + p {
  margin-top: 0;
}

.doc .after {
  margin-top: 28px;
}

/* The app's own Please Check... list, numbered */

.checks {
  display: grid;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  counter-reset: check;
  border-top: 1px solid var(--line);
}

.checks li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 18px 0 18px 44px;
  border-bottom: 1px solid var(--line);
  counter-increment: check;
}

.checks li::before {
  content: counter(check);
  position: absolute;
  left: 0;
  top: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}

.checks strong {
  font-weight: 650;
}

.checks span {
  color: var(--muted);
}

.only {
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--accent);
}

/* Support: the steps beside the screen they describe */

.split {
  display: grid;
  gap: 32px;
}

.split__shot {
  width: min(100%, 240px);
  margin: 0 auto;
}

.split__shot figcaption {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.contact {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--tint);
}

.contact h2 {
  margin-bottom: 8px;
}

/* Footer */

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: grid;
  gap: 8px;
  padding-block: 28px 44px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-footer nav a {
  display: inline-block;
  padding-block: 6px;
  color: var(--ink);
  font-weight: 550;
  text-decoration: none;
}

.site-footer nav a:hover {
  text-decoration: underline;
}

.site-footer nav a[aria-current="page"] {
  color: var(--accent);
}

/* The maker credit wraps as one piece, so the handle never sits alone on a line */
.site-footer .credit {
  white-space: nowrap;
}

/* The same centred footer on every page */
.site-footer nav {
  justify-content: center;
}

.site-footer .wrap {
  justify-items: center;
  text-align: center;
}

/* Wider screens */

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

  /* Two uprights side by side span exactly the landscape phone's width: 2 x 260 + 38 = 558 */
  .stage {
    grid-template-columns: repeat(2, minmax(0, 260px));
    justify-content: center;
    column-gap: 38px;
    padding: 44px 48px 36px;
  }

  .shot .phone {
    max-width: 260px;
  }

  .shot--landscape {
    margin-top: 40px;
  }

  .shot--landscape .phone {
    max-width: 558px;
  }

  .points {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }

  .basics {
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    padding: 32px 36px;
  }

  .basics__help {
    grid-column: 1 / -1;
  }

  .section {
    padding-block: 56px;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) 240px;
    align-items: start;
    gap: 56px;
  }

  .split__shot {
    position: sticky;
    top: 24px;
  }

  .contact {
    padding: 32px 36px;
  }
}

@media (min-width: 960px) {
  .intro {
    gap: 20px;
    padding-block: 64px 48px;
  }

  .intro__icon {
    width: 88px;
    height: 88px;
  }

  /* Three across: landscape is 2.174 times an upright phone's width, so all three share one scale.
     The clicker and its caption sit centered against the uprights, as on the coming-soon page. */
  .stage {
    grid-template-columns: 1fr 1fr 2.174fr;
    justify-content: normal;
    column-gap: 44px;
    padding: 56px 56px 40px;
  }

  .shot .phone,
  .shot--landscape .phone {
    max-width: none;
  }

  .shot--landscape {
    grid-column: 3;
    grid-row: 1 / span 2;
    grid-template-rows: none;
    align-self: center;
    margin-top: 0;
  }

  .features {
    margin-top: 48px;
  }

  .points {
    grid-template-columns: repeat(4, 1fr);
    column-gap: 32px;
    border-top: 0;
  }

  .points li {
    padding: 16px 0 0;
    border-bottom: 0;
    border-top: 1px solid var(--line);
  }

  .basics {
    margin-top: 56px;
    padding: 36px 44px;
  }

  .doc-head {
    padding-block: 48px 40px;
  }

  .section {
    padding-block: 64px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  a,
  .toc a {
    transition: color 0.15s ease, border-color 0.15s ease;
  }
}
